:root {
    --primary-color: #ff3366; /* Vibrant Pink */
    --secondary-color: #00d2ff; /* Cyan Blue */
    --dark-bg: #121212;
    --card-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --border-color: #333;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding-top: 70px; /* For fixed navbar */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-color);
}

/* Navbar */
.navbar {
    background-color: rgba(18, 18, 18, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.search-form input {
    background-color: #2a2a2a;
    border: 1px solid #333;
    color: #fff;
    border-radius: 20px 0 0 20px;
}

.search-form input:focus {
    background-color: #333;
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: none;
}

.search-form button {
    border-radius: 0 20px 20px 0;
    border: 1px solid #333;
    border-left: none;
    background-color: #2a2a2a;
    color: var(--text-muted);
}

.search-form button:hover {
    background-color: #333;
    color: var(--primary-color);
}

/* Cards */
.song-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border-color);
    height: 100%;
}

.song-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-color: var(--primary-color);
}

.card-img-top {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    position: relative;
}

.card-body {
    padding: 15px;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.badges-container {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.8rem;
}

.badge-duration {
    background-color: rgba(255, 51, 102, 0.1);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 4px;
}

.badge-downloads {
    background-color: rgba(0, 210, 255, 0.1);
    color: var(--secondary-color);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Audio Player in Song Page */
.player-container {
    background: linear-gradient(145deg, #1e1e1e, #252525);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 30px;
}

.player-artwork {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    margin: 0 auto 20px;
    display: block;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.btn-play {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-play:hover {
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: #000;
    padding: 40px 0;
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
}

.footer-link {
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.footer-link:hover {
    color: var(--primary-color);
}

/* Ads */
.ad-slot {
    background-color: #111;
    color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    text-align: center;
    border: 1px dashed #333;
    min-height: 90px;
    width: 100%;
    max-width: 728px;
}

.ad-sidebar {
    max-width: 300px;
    height: 600px;
}

/* Utilities */
.section-title {
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
    margin-bottom: 20px;
    font-weight: 700;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Pagination */
.pagination .page-item .page-link {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-collapse {
        background-color: var(--card-bg);
        padding: 15px;
        border-radius: 10px;
        margin-top: 10px;
        border: 1px solid var(--border-color);
    }
}
