/* ========== VARIABLES ========== */
:root {
    --primary: #8B5CF6;
    --primary-dark: #7C3AED;
    --primary-light: #A78BFA;
    --accent: #06D6A0;
    --accent-dark: #05B384;
    --bg-dark: #0A0A0F;
    --bg-card: #13131A;
    --bg-card-hover: #1A1A24;
    --bg-surface: #1E1E2E;
    --text-primary: #FFFFFF;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    --gradient-1: linear-gradient(135deg, #8B5CF6, #06D6A0);
    --gradient-2: linear-gradient(135deg, #EC4899, #8B5CF6);
    --gradient-3: linear-gradient(135deg, #F59E0B, #EF4444);
    --gradient-4: linear-gradient(135deg, #06D6A0, #3B82F6);
    --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Poppins', sans-serif;
}

/* ========== RESET ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== UTILITIES ========== */
.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accent {
    color: var(--accent);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 14px;
}

.btn-social {
    flex: 1;
    background: var(--bg-surface);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
    padding: 12px;
}

.btn-social:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: white;
}

.logo-icon {
    font-size: 28px;
    color: var(--primary);
    animation: spin 4s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-links a {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
    background: rgba(139, 92, 246, 0.15);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-surface);
    border-radius: 50px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.search-bar i {
    color: var(--text-muted);
    font-size: 14px;
}

.search-bar input {
    background: none;
    border: none;
    outline: none;
    color: white;
    font-family: var(--font);
    font-size: 14px;
    width: 180px;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: white;
    transition: var(--transition);
    border-radius: 2px;
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(6, 214, 160, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 60% 80%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
}

.hero-particles {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 6s infinite;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    50% { opacity: 0.8; }
    100% { opacity: 0; transform: translateY(-100px) scale(1); }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title .line1,
.hero-title .line3 {
    display: block;
}

.hero-title .line2 {
    display: block;
    font-size: 1.3em;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-suffix {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.hero-visual {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-card {
    position: absolute;
    width: 160px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
    animation: float 6s ease-in-out infinite;
    opacity: 0.4;
}

.floating-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.floating-card .card-info {
    padding: 10px;
}

.card-title {
    display: block;
    font-size: 12px;
    font-weight: 600;
}

.card-artist {
    font-size: 11px;
    color: var(--text-muted);
}

.card-1 { top: 20%; left: 5%; animation-delay: 0s; }
.card-2 { top: 30%; right: 5%; animation-delay: -2s; }
.card-3 { bottom: 15%; left: 10%; animation-delay: -4s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

/* ========== SECTIONS COMMON ========== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary-light);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ========== FEATURES ========== */
.features {
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(19, 19, 26, 1) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 28px;
    color: white;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========== TRENDING ========== */
.trending {
    background: var(--bg-card);
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.song-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bg-surface);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.song-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(139, 92, 246, 0.15);
    transform: translateX(4px);
}

.song-rank {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-muted);
    min-width: 30px;
    text-align: center;
}

.song-card:hover .song-rank {
    color: var(--primary);
}

.song-art {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.song-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.song-art-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.song-card:hover .song-art-overlay {
    opacity: 1;
}

.song-art-overlay i {
    color: white;
    font-size: 18px;
}

.song-details {
    flex: 1;
    min-width: 0;
}

.song-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    font-size: 12px;
    color: var(--text-muted);
}

.song-duration {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.song-card.playing {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.08);
}

.song-card.playing .song-rank {
    color: var(--primary);
}

.song-card.playing .song-name {
    color: var(--primary-light);
}

/* ========== GENRES ========== */
.genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.genre-card {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.genre-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    background: rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.genre-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-glow);
}

.genre-card:hover::before {
    opacity: 1;
}

.genre-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    opacity: 0.3;
    transition: var(--transition);
}

.genre-card:hover .genre-icon {
    opacity: 0.6;
    transform: scale(1.2) rotate(10deg);
}

.genre-name {
    font-size: 18px;
    font-weight: 700;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ========== PLAYLISTS ========== */
.playlists {
    background: var(--bg-card);
}

.playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.playlist-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.playlist-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(139, 92, 246, 0.2);
}

.playlist-art {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.playlist-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.playlist-card:hover .playlist-art img {
    transform: scale(1.1);
}

.playlist-play {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(6, 214, 160, 0.4);
    transform: translateY(10px);
    opacity: 0;
    transition: var(--transition);
}

.playlist-card:hover .playlist-play {
    transform: translateY(0);
    opacity: 1;
}

.playlist-info {
    padding: 16px;
}

.playlist-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.playlist-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========== DOWNLOAD SECTION ========== */
.download-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 100%);
    position: relative;
}

.download-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.download-box {
    max-width: 750px;
    margin: 0 auto 48px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.download-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
}

.download-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.download-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-surface);
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: 50px;
    padding: 4px 16px;
    transition: var(--transition);
}

.download-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

.download-input-wrapper i {
    color: var(--text-muted);
    font-size: 16px;
}

.download-input-wrapper input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: white;
    font-family: var(--font);
    font-size: 15px;
    padding: 12px 0;
}

.download-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.download-clear {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 6px;
    border-radius: 50%;
    transition: var(--transition);
    display: none;
}

.download-clear.visible {
    display: block;
}

.download-clear:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.download-search-btn {
    flex-shrink: 0;
    border-radius: 50px;
    padding: 14px 28px;
}

/* Download Preview */
.download-preview {
    margin-bottom: 24px;
}

.preview-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-surface);
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeInUp 0.4s ease;
}

.preview-thumb {
    width: 120px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-thumb .thumb-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.preview-info {
    flex: 1;
    min-width: 0;
}

.preview-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-channel {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Download Formats */
.download-formats h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.download-formats h3 i {
    color: var(--primary-light);
}

.format-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.format-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.format-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.format-column-header {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-light);
    padding: 10px 16px;
    background: rgba(139, 92, 246, 0.08);
    border-radius: var(--radius);
    border: 1px solid rgba(139, 92, 246, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
}

.format-column-header i {
    font-size: 1.1rem;
}

.format-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.format-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(139, 92, 246, 0.2);
    transform: translateX(4px);
}

.format-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.format-icon.audio {
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary-light);
}

.format-icon.video {
    background: rgba(6, 214, 160, 0.15);
    color: var(--accent);
}

.format-info {
    flex: 1;
}

.format-type {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.format-quality {
    font-size: 12px;
    color: var(--text-muted);
}

.format-card .btn {
    padding: 8px 14px;
    font-size: 13px;
    flex-shrink: 0;
}

/* Loading */
.download-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spinLoader 0.8s linear infinite;
}

@keyframes spinLoader {
    100% { transform: rotate(360deg); }
}

.download-loading span {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

/* Download Tips */
.download-tips {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.tip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.tip i {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-light);
}

.tip span {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.tip-arrow {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: -20px;
}

@media (max-width: 768px) {
    .download-input-group {
        flex-direction: column;
    }
    .download-search-btn {
        width: 100%;
        justify-content: center;
    }
    .format-cards {
        grid-template-columns: 1fr;
    }
    .format-columns {
        grid-template-columns: 1fr;
    }
    .preview-card {
        flex-direction: column;
        text-align: center;
    }
    .preview-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
    .download-tips {
        flex-direction: column;
        gap: 12px;
    }
    .tip-arrow {
        transform: rotate(90deg);
        margin-top: 0;
    }
}

/* ========== EQUALIZER SECTION ========== */
.equalizer-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%);
}

.eq-content {
    display: flex;
    align-items: center;
    gap: 80px;
}

.eq-text {
    flex: 1;
}

.eq-text p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 32px;
}

.eq-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.equalizer {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 200px;
    padding: 20px;
}

.eq-bar {
    width: 12px;
    border-radius: 6px;
    background: var(--gradient-1);
    animation: eqBounce 1.2s ease-in-out infinite;
    animation-delay: var(--delay);
    min-height: 20px;
}

@keyframes eqBounce {
    0%, 100% { height: 20px; opacity: 0.5; }
    50% { height: 160px; opacity: 1; }
}

/* ========== PLAYER BAR ========== */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(19, 19, 26, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.player-bar.visible {
    transform: translateY(0);
}

.player-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.player-song {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.player-album-art {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.player-album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 12px;
    border: 2px solid var(--primary);
    opacity: 0;
    animation: pulse 2s infinite;
}

.player-bar.playing .album-pulse {
    opacity: 1;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.15); opacity: 0; }
}

.player-info {
    min-width: 0;
}

.player-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-artist {
    font-size: 12px;
    color: var(--text-muted);
}

.player-controls {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.player-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    transition: var(--transition);
    border-radius: 50%;
}

.player-btn:hover {
    color: white;
    transform: scale(1.1);
}

.player-btn.active {
    color: var(--accent);
}

.play-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: white;
    color: var(--bg-dark) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 600px;
}

.time-current, .time-total {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    min-width: 35px;
}

.time-total {
    text-align: right;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    transition: height 0.1s;
}

.progress-bar:hover {
    height: 6px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 2px;
    width: 0%;
    transition: none;
}

.progress-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.15s;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.progress-bar:hover .progress-thumb {
    transform: translate(-50%, -50%) scale(1);
}

.player-extra {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: flex-end;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.volume-fill {
    height: 100%;
    width: 70%;
    background: var(--gradient-1);
    border-radius: 2px;
}

/* ========== MODAL ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 420px;
    width: 100%;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
}

.modal-close:hover {
    color: white;
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-logo {
    font-size: 48px;
    color: var(--primary);
    animation: spin 4s linear infinite;
    margin-bottom: 16px;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-header p {
    font-size: 14px;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group label i {
    margin-right: 6px;
    color: var(--primary-light);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    color: white;
    font-family: var(--font);
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.modal-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.modal-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.modal-divider span {
    background: var(--bg-card);
    padding: 0 16px;
    font-size: 12px;
    color: var(--text-muted);
    position: relative;
}

.social-login {
    display: flex;
    gap: 12px;
}

.modal-footer-text {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 24px;
}

.modal-footer-text a {
    font-weight: 600;
}

/* ========== TOAST ========== */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    background: var(--bg-surface);
    border: 1px solid rgba(6, 214, 160, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 3000;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast i {
    color: var(--accent);
    font-size: 18px;
}

/* ========== FOOTER ========== */
.footer {
    padding: 80px 0 120px;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 280px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-secondary);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .eq-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .floating-card {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .search-bar, .nav-actions .btn {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .hero {
        padding: 100px 20px 60px;
    }
    .hero-title {
        font-size: 36px;
    }
    .hero-title .line2 {
        font-size: 1.2em;
    }
    .hero-subtitle {
        font-size: 15px;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .hero-stats {
        gap: 30px;
    }
    .stat-number {
        font-size: 28px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .trending-grid {
        grid-template-columns: 1fr;
    }
    .genres-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .playlists-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .player-container {
        flex-wrap: wrap;
    }
    .player-extra {
        display: none;
    }
    .player-song {
        flex: 0 0 auto;
    }
    .player-controls {
        flex: 1 1 100%;
        order: 3;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .modal {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .genres-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .playlists-grid {
        grid-template-columns: 1fr;
    }
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-surface);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ========== SELECTION ========== */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: white;
}
