/* =====================================================================
   ZEN MUSIC — DESIGN SYSTEM
   Gabungan CSS lama (tema, glass, splash, dll) + CSS baru (navbar, home).
===================================================================== */

/* ═══════════════════════════════════════════════════════════
   TEMA — CSS VARIABLES
   ═══════════════════════════════════════════════════════════ */
:root, [data-theme="zen"] {
    --bg-color: #0a0906;
    --bg-elevated: #12100a;
    --surface: #1a1710;
    --surface-2: #211d13;
    --text-primary: #fffaf0;
    --text-secondary: #c8b896;
    --text-muted: #8a7a58;
    --border-color: rgba(255,240,200,0.08);
    --accent: #f5c542;
    --accent-2: #ffe08a;
    --accent-3: #c99a1e;
    --accent-contrast: #1a1400;
    --accent-rgb: 245,197,66;
    --nm-shadow-flat: 0 6px 20px rgba(0,0,0,0.55);
    --nm-shadow-inset: inset 0 2px 6px rgba(0,0,0,0.5);
    --nm-shadow-flat-sm: 0 3px 10px rgba(0,0,0,0.45);
    --nm-shadow-inset-sm: inset 0 1px 3px rgba(0,0,0,0.45);
    --app-bg-grad: radial-gradient(circle at 50% -10%, #1f1808 0%, #0d0b06 45%, #0a0906 100%);
    --splash-bg-grad: radial-gradient(circle at 50% 45%, #1d1706 0%, #050402 70%);

    /* Navbar/Home baru */
    --spring: cubic-bezier(.2,.82,.18,1);
    --spring-pop: cubic-bezier(.18,1.4,.28,1);
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --surface-card: var(--surface-2);
    --surface-elevated: color-mix(in srgb, var(--surface-2) 84%, var(--text-primary));
    --font-display: system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: ui-monospace, "JetBrains Mono", Menlo, monospace;
}

[data-theme="light"] {
    --bg-color: #faf6ec;
    --bg-elevated: #ffffff;
    --surface: #ffffff;
    --surface-2: #f2ecdd;
    --text-primary: #1a1400;
    --text-secondary: #5c5030;
    --text-muted: #998a5c;
    --border-color: rgba(60,40,10,0.09);
    --accent: #d4af37;
    --accent-2: #f5c542;
    --accent-3: #a8861a;
    --accent-contrast: #ffffff;
    --accent-rgb: 212,175,55;
    --nm-shadow-flat: 0 6px 18px rgba(60,40,10,0.10);
    --nm-shadow-inset: inset 0 2px 5px rgba(60,40,10,0.07);
    --nm-shadow-flat-sm: 0 3px 8px rgba(60,40,10,0.08);
    --nm-shadow-inset-sm: inset 0 1px 2px rgba(60,40,10,0.06);
    --app-bg-grad: radial-gradient(circle at 50% -10%, #ffeeb8 0%, #f8f1dc 45%, #faf6ec 100%);
    --splash-bg-grad: radial-gradient(circle at 50% 45%, #ffeeb8 0%, #faf6ec 70%);
}

[data-theme="sea"] {
    --bg-color: #051821; --bg-elevated: #0a222c; --surface: #0d2833; --surface-2: #113039;
    --text-primary: #eaf7f9; --text-secondary: #9dc6cf; --text-muted: #6c939c;
    --border-color: rgba(170,230,240,0.09);
    --accent: #22d3ee; --accent-2: #7de6f7; --accent-3: #0ea5c4;
    --accent-contrast: #01232b; --accent-rgb: 34,211,238;
    --nm-shadow-flat: 0 6px 20px rgba(0,0,0,0.45);
    --nm-shadow-inset: inset 0 2px 6px rgba(0,0,0,0.4);
    --nm-shadow-flat-sm: 0 3px 10px rgba(0,0,0,0.4);
    --nm-shadow-inset-sm: inset 0 1px 3px rgba(0,0,0,0.35);
    --app-bg-grad: radial-gradient(circle at 50% -10%, #0d3947 0%, #071e27 45%, #051821 100%);
    --splash-bg-grad: radial-gradient(circle at 50% 45%, #0e3f4c 0%, #04141a 70%);
}

[data-theme="purple"] {
    --bg-color: #130a1e; --bg-elevated: #1b0f29; --surface: #1f1230; --surface-2: #261638;
    --text-primary: #f4eeff; --text-secondary: #b6a4d1; --text-muted: #85729f;
    --border-color: rgba(220,190,255,0.09);
    --accent: #a855f7; --accent-2: #cb98ff; --accent-3: #8b31e0;
    --accent-contrast: #170626; --accent-rgb: 168,85,247;
    --nm-shadow-flat: 0 6px 20px rgba(0,0,0,0.45);
    --nm-shadow-inset: inset 0 2px 6px rgba(0,0,0,0.4);
    --nm-shadow-flat-sm: 0 3px 10px rgba(0,0,0,0.4);
    --nm-shadow-inset-sm: inset 0 1px 3px rgba(0,0,0,0.35);
    --app-bg-grad: radial-gradient(circle at 50% -10%, #2d1247 0%, #170b25 45%, #130a1e 100%);
    --splash-bg-grad: radial-gradient(circle at 50% 45%, #301250 0%, #0e0716 70%);
}

/* ═══════════════════════════════════════════════════════════
   BASE
   ═══════════════════════════════════════════════════════════ */
* { -webkit-tap-highlight-color: transparent; }
html, body {
    background: var(--bg-color);
    color: var(--text-primary);
    overflow-anchor: none;
}
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.pb-safe { padding-bottom: env(safe-area-inset-bottom, 20px); }
.pt-safe { padding-top: max(2.5rem, env(safe-area-inset-top)); }
.fill-current { fill: currentColor; }
.filter-tab.active { background: var(--accent) !important; color: var(--accent-contrast) !important; box-shadow: 0 4px 20px color-mix(in srgb, var(--accent) 35%, transparent); border-color: transparent !important; }

/* ═══ OPTIMASI: Matikan transisi pas ganti tema ═══ */
.theme-switching *,
.theme-switching *::before,
.theme-switching *::after {
    transition: none !important;
    animation: none !important;
}
.tab-hidden *,
.tab-hidden *::before,
.tab-hidden *::after {
    animation-play-state: paused !important;
}

/* ═══ OPTIMASI SCROLL: Matiin blur & animasi pas scroll ═══ */
html.is-scrolling .nav-bar,
html.is-scrolling .glass-pane,
html.is-scrolling #mini-player-inner,
html.is-scrolling .fp-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
html.is-scrolling .animate-card-up,
html.is-scrolling .animate-card-left,
html.is-scrolling .animate-stagger,
html.is-scrolling .animate-slide-up,
html.is-scrolling .animate-slide-right,
html.is-scrolling .animate-slide-left {
    animation: none !important;
}
html.is-scrolling .spin-record,
html.is-scrolling .shine-sweep::before,
html.is-scrolling .bento-record {
    animation-play-state: paused !important;
}
#main-area > div { contain: layout style paint; }

/* ═══════════════════════════════════════════════════════════
   APP BACKGROUND
   ═══════════════════════════════════════════════════════════ */
.app-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: var(--app-bg-grad);
}
.app-bg span { display: none; }

/* ═══════════════════════════════════════════════════════════
   GLASS / CARD / BUTTON
   ═══════════════════════════════════════════════════════════ */
.glass, .glass-strong, .glass-input, .glass-pane, .btn-chrome {
    transition: background-color 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.glass { background: var(--surface); box-shadow: var(--nm-shadow-flat); border: 1px solid var(--border-color); border-radius: 1rem; }
.glass-hover { transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease; }
.glass-hover:hover { box-shadow: var(--nm-shadow-inset); border-color: color-mix(in srgb, var(--accent) 35%, var(--border-color)); transform: translateY(-1px); }
.glass-strong { background: var(--surface); box-shadow: var(--nm-shadow-flat); border: 1px solid var(--border-color); border-radius: 1.25rem; }
.glass-input { background: var(--surface); box-shadow: var(--nm-shadow-inset-sm); border: 1px solid var(--border-color); border-radius: 0.75rem; transition: box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease; }
.glass-input:focus-within, .glass-input:focus { box-shadow: var(--nm-shadow-inset); border-color: color-mix(in srgb, var(--accent) 45%, var(--border-color)); }
.glass-pane { background: color-mix(in srgb, var(--bg-elevated) 88%, transparent); -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3); }
.glass-edge { border: 1px solid var(--border-color); }

.chrome-text {
    font-weight: 900;
    background: linear-gradient(120deg, var(--text-primary) 0%, var(--text-primary) 50%, var(--accent) 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
}

.btn-chrome { position: relative; overflow: hidden; background: var(--surface); box-shadow: var(--nm-shadow-flat-sm); border: 1px solid var(--border-color); color: var(--text-primary); border-radius: 0.75rem; }
.btn-chrome:hover { transform: scale(1.02); border-color: color-mix(in srgb, var(--accent) 40%, var(--border-color)); box-shadow: 0 4px 18px color-mix(in srgb, var(--accent) 18%, transparent), var(--nm-shadow-flat-sm); }
.btn-chrome:active { box-shadow: var(--nm-shadow-inset-sm); transform: scale(0.98); }

.shine-sweep { position: relative; }
.shine-sweep::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.22) 48%, transparent 66%);
    background-size: 250% 250%;
    animation: sheenMove 4.5s ease-in-out infinite;
    pointer-events: none; z-index: 3;
}
@keyframes sheenMove { 0%, 100% { background-position: -50% 0; } 50% { background-position: 150% 0; } }

.artist-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--border-color); box-shadow: var(--nm-shadow-flat); background: var(--surface); }

/* ═══════════════════════════════════════════════════════════
   SPLASH SCREEN
   ═══════════════════════════════════════════════════════════ */
#splash-screen {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: var(--splash-bg-grad);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.8s cubic-bezier(0.22, 1, 0.36, 1), background 0.8s ease;
    overflow: hidden;
}
#splash-screen.hide { opacity: 0; visibility: hidden; pointer-events: none; }

.splash-logo-wrap {
    position: relative; width: 90px; height: 90px; border-radius: 26px;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border-color));
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    animation: splashGlow 2.4s ease-in-out infinite;
    box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 40%, transparent);
}
.splash-logo-wrap svg { width: 55%; height: 55%; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)); }
@keyframes splashGlow {
    0%, 100% { box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 30%, transparent); }
    50% { box-shadow: 0 0 50px color-mix(in srgb, var(--accent) 55%, transparent); }
}

.splash-eq { display: flex; align-items: flex-end; justify-content: center; gap: 6px; height: 64px; margin: 26px 0 22px; }
.splash-eq i {
    display: block; width: 6px; border-radius: 3px;
    background: linear-gradient(to top, var(--accent-3), var(--accent), var(--accent-2));
    animation-iteration-count: infinite;
    animation-timing-function: cubic-bezier(.45,0,.55,1);
}
@keyframes splashEq1 { 0%, 100% { height: 14px; } 50% { height: 58px; } }
@keyframes splashEq2 { 0%, 100% { height: 40px; } 50% { height: 16px; } }
@keyframes splashEq3 { 0%, 100% { height: 20px; } 50% { height: 64px; } }
@keyframes splashEq4 { 0%, 100% { height: 52px; } 50% { height: 12px; } }
@keyframes splashEq5 { 0%, 100% { height: 16px; } 50% { height: 46px; } }
@keyframes splashEq6 { 0%, 100% { height: 60px; } 50% { height: 22px; } }
@keyframes splashEq7 { 0%, 100% { height: 26px; } 50% { height: 50px; } }
.splash-eq-1 { animation-name: splashEq1; animation-duration: .68s; }
.splash-eq-2 { animation-name: splashEq2; animation-duration: .52s; }
.splash-eq-3 { animation-name: splashEq3; animation-duration: .74s; }
.splash-eq-4 { animation-name: splashEq4; animation-duration: .46s; }
.splash-eq-5 { animation-name: splashEq5; animation-duration: .60s; }
.splash-eq-6 { animation-name: splashEq6; animation-duration: .80s; }
.splash-eq-7 { animation-name: splashEq7; animation-duration: .56s; }

.splash-word { font-size: 1.55rem; letter-spacing: .12em; font-weight: 900; opacity: 0; animation: splashRise .6s cubic-bezier(0.22, 1, 0.36, 1) .35s forwards; }
.splash-sub { margin-top: 8px; font-size: .68rem; color: var(--text-muted); letter-spacing: .22em; text-transform: uppercase; opacity: 0; animation: splashRise .6s cubic-bezier(0.22, 1, 0.36, 1) .5s forwards; }
@keyframes splashRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ═══════════════════════════════════════════════════════════
   LYRICS (floating card)
   ═══════════════════════════════════════════════════════════ */
#lyrics-scroll-container { -webkit-overflow-scrolling: touch; }
.lyric-line {
    transition: opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1), transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), color 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    font-size: 1.45rem; font-weight: 800;
    color: rgba(255, 255, 255, 0.35); opacity: 0.4;
    padding: 10px 0; line-height: 1.35;
    letter-spacing: -0.02em;
    will-change: opacity, color, transform;
    cursor: pointer; text-align: left;
    transform-origin: left center;
}
@media (min-width: 768px) { .lyric-line { font-size: 2.15rem; padding: 14px 0; line-height: 1.3; } }
.lyric-line.active-lyric {
    opacity: 1 !important; color: #ffffff !important;
    transform: scale(1.06) translateX(4px);
    text-shadow: 0 0 24px color-mix(in srgb, var(--accent) 55%, transparent);
}
.lyric-line.past-lyric { opacity: 0.28 !important; color: rgba(255, 255, 255, 0.4) !important; transform: scale(0.97); }

.inline-lyric-line {
    transition: opacity 0.25s ease, color 0.25s ease;
    font-size: .92rem; line-height: 1.4; font-weight: 600;
    color: rgba(255, 255, 255, 0.4); opacity: 0.5;
    padding: 5px 0; letter-spacing: -0.01em;
    cursor: pointer; text-align: left; word-break: break-word;
}
.inline-lyric-line.active-lyric { opacity: 1 !important; color: #ffffff !important; font-weight: 800 !important; }
.inline-lyric-line.past-lyric { opacity: 0.3 !important; color: rgba(255, 255, 255, 0.35) !important; }
.lyric-translation { display: block; font-size: 0.58em; font-weight: 500; opacity: 0.75; margin-top: 4px; letter-spacing: 0; line-height: 1.35; color: inherit; }

/* ═══════════════════════════════════════════════════════════
   EQUALIZER (slider) + BAR ANIMATION
   ═══════════════════════════════════════════════════════════ */
.eq-slider {
    --webkit-appearance: none;
    width: 8px; height: 150px;
    background: var(--surface);
    box-shadow: var(--nm-shadow-inset-sm);
    border-radius: 4px; outline: none;
    writing-mode: bt-lr; --webkit-appearance: slider-vertical;
}
.eq-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 2px 10px color-mix(in srgb, var(--accent) 50%, transparent);
    border: 2px solid var(--accent-2);
    cursor: pointer;
    transition: transform 0.15s ease;
}
.eq-slider::-webkit-slider-thumb:active { transform: scale(1.15); }

.spin-record { animation: spinRecord 10s linear infinite; will-change: transform; }
@keyframes spinRecord { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

@keyframes eqBounce1 { 0%, 100% { height: 3px; } 50% { height: 20px; } }
@keyframes eqBounce2 { 0%, 100% { height: 18px; } 50% { height: 4px; } }
@keyframes eqBounce3 { 0%, 100% { height: 5px; } 50% { height: 24px; } }
@keyframes eqBounce4 { 0%, 100% { height: 22px; } 50% { height: 6px; } }
@keyframes eqBounce5 { 0%, 100% { height: 4px; } 50% { height: 16px; } }
@keyframes eqBounce6 { 0%, 100% { height: 26px; } 50% { height: 8px; } }
.animate-eq-1 { animation: eqBounce1 0.45s ease-in-out infinite; }
.animate-eq-2 { animation: eqBounce2 0.65s ease-in-out infinite; }
.animate-eq-3 { animation: eqBounce3 0.50s ease-in-out infinite; }
.animate-eq-4 { animation: eqBounce4 0.80s ease-in-out infinite; }
.animate-eq-5 { animation: eqBounce5 0.60s ease-in-out infinite; }
.animate-eq-6 { animation: eqBounce6 0.70s ease-in-out infinite; }
.eq-bar { width: 5px; height: 10px; background: linear-gradient(to top, var(--accent-3), var(--accent-2)); border-radius: 2px; transition: height 0.1s ease-out; }

/* ═══════════════════════════════════════════════════════════
   ANIMASI UMUM
   ═══════════════════════════════════════════════════════════ */
@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.animate-slide-up { animation: slideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

@keyframes slideInRight { 0% { transform: translateX(30px); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
@keyframes slideInLeft { 0% { transform: translateX(-30px); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
.animate-slide-right { animation: slideInRight 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.animate-slide-left { animation: slideInLeft 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

@keyframes cardUp { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes cardLeft { 0% { opacity: 0; transform: translateX(-10px); } 100% { opacity: 1; transform: translateX(0); } }
.animate-card-up { animation: cardUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.animate-card-left { animation: cardLeft 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }

@keyframes staggerIn { 0% { opacity: 0; transform: translateY(14px) scale(0.97); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-stagger { animation: staggerIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }

.transition-all, .transition, .transition-colors, .transition-opacity, .transition-transform {
    transition-duration: 200ms; transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

button, .glass-hover, .btn-chrome { -webkit-tap-highlight-color: transparent; }
button:active { transform: scale(0.96); }

/* ═══════════════════════════════════════════════════════════
   GLOBAL ACCENT REMAP (Tailwind utility → tema)
   ═══════════════════════════════════════════════════════════ */
.bg-white.text-black { background-color: var(--accent) !important; color: var(--accent-contrast) !important; }
[class*="border-white"]:not([class*="border-white/"]) { border-color: var(--accent) !important; }
[class*="ring-white"]:not([class*="ring-white/"]) { --tw-ring-color: var(--accent) !important; }
[class*="shadow-white"] { --tw-shadow-color: var(--accent) !important; }
[class*="bg-white/90"] { background-color: var(--accent) !important; }
[class*="text-rose-4"], [class*="text-rose-5"] { color: var(--accent) !important; }
[class*="bg-rose-4"], [class*="bg-rose-5"] { background-color: var(--accent) !important; }
[class*="border-rose-5"] { border-color: color-mix(in srgb, var(--accent) 55%, transparent) !important; }
[class*="from-rose-5"], [class*="from-rose-6"] { --tw-gradient-from: color-mix(in srgb, var(--accent) 30%, transparent) !important; }
[class*="via-rose-5"] { --tw-gradient-via: color-mix(in srgb, var(--accent) 18%, transparent) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-via), var(--tw-gradient-to) !important; }
[class*="to-rose-6"] { --tw-gradient-to: color-mix(in srgb, var(--accent-3) 45%, transparent) !important; }
[class*="text-[#cfd3d8]"] { color: var(--accent) !important; }
[class*="bg-[#cfd3d8]"] { background-color: var(--accent) !important; }
[class*="border-[#cfd3d8]"] { border-color: var(--accent) !important; }
[class*="bg-[#cfd3d8]/10"] { background-color: color-mix(in srgb, var(--accent) 12%, transparent) !important; }
[class*="bg-[#cfd3d8]/20"] { background-color: color-mix(in srgb, var(--accent) 22%, transparent) !important; }
[class*="bg-[#1a1b22]"], [class*="bg-[#1a1a1a]"], [class*="bg-[#1e202e]"],
[class*="bg-[#181922]"], [class*="bg-[#12131b]"], [class*="bg-[#050507]"], [class*="bg-[#14151a]"] { background-color: var(--surface) !important; }
[class*="bg-[#0d0e15]"] { background-color: var(--bg-color) !important; }
[class*="from-[#050507]"], [class*="from-[#14151a]"] { --tw-gradient-from: var(--bg-color) !important; }
[class*="via-[#050507]"], [class*="via-[#14151a]"] { --tw-gradient-via: color-mix(in srgb, var(--bg-color) 65%, transparent) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-via), var(--tw-gradient-to) !important; }
[class*="via-[#0d0e15]"] { --tw-gradient-via: color-mix(in srgb, var(--bg-color) 70%, transparent) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-via), var(--tw-gradient-to) !important; }
[class*="to-[#0d0e15]"] { --tw-gradient-to: var(--bg-color) !important; }
[class*="text-[#a0a5b0]"], [class*="text-[#b3b3b3]"] { color: var(--text-secondary) !important; }
[class*="text-[#6b7280]"], [class*="text-[#8e95a2]"], [class*="text-[#4b5563]"] { color: var(--text-muted) !important; }
[class*="placeholder-[#a0a5b0]"], [class*="placeholder-[#b3b3b3]"] { color: var(--text-secondary) !important; }
[class*="bg-[#000000]"] { background-color: #08060a !important; }

[data-theme="light"] [class*="text-white"] { color: var(--text-primary) !important; }
[data-theme="light"] [class*="text-white/50"] { color: color-mix(in srgb, var(--text-primary) 55%, transparent) !important; }
[data-theme="light"] [class*="text-white/60"] { color: color-mix(in srgb, var(--text-primary) 62%, transparent) !important; }
[data-theme="light"] [class*="text-white/70"] { color: color-mix(in srgb, var(--text-primary) 70%, transparent) !important; }
[data-theme="light"] [class*="text-white/80"] { color: color-mix(in srgb, var(--text-primary) 80%, transparent) !important; }
[data-theme="light"] [class*="text-white/90"] { color: color-mix(in srgb, var(--text-primary) 90%, transparent) !important; }
[data-theme="light"] [class*="bg-white/5"] { background-color: rgba(60,40,10,0.035) !important; }
[data-theme="light"] [class*="bg-white/10"] { background-color: rgba(60,40,10,0.055) !important; }
[data-theme="light"] [class*="bg-white/15"] { background-color: rgba(60,40,10,0.07) !important; }
[data-theme="light"] [class*="bg-white/20"] { background-color: rgba(60,40,10,0.09) !important; }
[data-theme="light"] [class*="border-white/5"] { border-color: rgba(60,40,10,0.05) !important; }
[data-theme="light"] [class*="border-white/10"] { border-color: rgba(60,40,10,0.08) !important; }
[data-theme="light"] [class*="border-white/15"] { border-color: rgba(60,40,10,0.1) !important; }
[data-theme="light"] [class*="border-white/20"] { border-color: rgba(60,40,10,0.12) !important; }
[data-theme="light"] [class*="border-white/30"] { border-color: rgba(60,40,10,0.18) !important; }
[data-theme="light"] [class*="border-white/40"] { border-color: rgba(60,40,10,0.24) !important; }
[data-theme="light"] [class*="border-white/60"] { border-color: rgba(60,40,10,0.35) !important; }
[data-theme="light"] [class*="ring-white/60"] { --tw-ring-color: rgba(60,40,10,0.35) !important; }
[data-theme="light"] [class*="from-white/10"] { --tw-gradient-from: rgba(60,40,10,0.08) !important; }
[data-theme="light"] [class*="via-white/5"] { --tw-gradient-via: rgba(60,40,10,0.04) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-via), var(--tw-gradient-to) !important; }
[data-theme="light"] [class*="to-white"]:not([class*="to-white/"]) { --tw-gradient-to: rgba(60,40,10,0.12) !important; }

/* ═══════════════════════════════════════════════════════════
   SOCIAL BUTTON
   ═══════════════════════════════════════════════════════════ */
.social-circle-btn {
    width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    box-shadow: var(--nm-shadow-flat-sm);
    color: var(--text-secondary);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.4, 1), color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.social-circle-btn:hover { color: var(--accent-contrast); background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 45%, transparent); }
.social-circle-btn:active { transform: scale(0.88); }

/* ═══════════════════════════════════════════════════════════
   HOME AMBIENT GLOW + FULL PLAYER BG
   ═══════════════════════════════════════════════════════════ */
#home-ambient {
    position: absolute; top: 0; left: 0; right: 0; height: 340px;
    pointer-events: none; z-index: 0;
    background: radial-gradient(ellipse 100% 100% at 50% 0%, color-mix(in srgb, var(--now-accent, var(--accent)) 32%, transparent) 0%, transparent 70%);
    filter: blur(10px); opacity: 0.75;
    transition: background 1.1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease;
}
#view-home { position: relative; }
#full-bg-artwork { filter: blur(55px) saturate(1.5) brightness(0.75); transform: scale(1.35); opacity: 0.55 !important; transition: opacity 0.7s ease; }

/* ═══════════════════════════════════════════════════════════
   THEME PICKER SHEET
   ═══════════════════════════════════════════════════════════ */
.theme-swatch {
    position: relative; border-radius: 18px; padding: 14px 10px 10px;
    border: 2px solid var(--border-color); background: var(--surface);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    transition: transform 0.3s cubic-bezier(0.34, 1.45, 0.4, 1), border-color 0.3s ease;
}
.theme-swatch:active { transform: scale(0.94); }
.theme-swatch.active { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.theme-swatch-preview { width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); }
.theme-swatch.active .theme-swatch-preview::after {
    content: ''; display: block; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cg fill='white'%3E%3Crect x='7' y='1' width='1.05' height='1.05'/%3E%3Crect x='6' y='2' width='1.05' height='1.05'/%3E%3Crect x='5' y='3' width='1.05' height='1.05'/%3E%3Crect x='1' y='4' width='1.05' height='1.05'/%3E%3Crect x='4' y='4' width='1.05' height='1.05'/%3E%3Crect x='2' y='5' width='1.05' height='1.05'/%3E%3Crect x='3' y='5' width='1.05' height='1.05'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 60%; background-position: center; background-repeat: no-repeat;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

.pixel-icon { display: inline-block; image-rendering: pixelated; flex-shrink: 0; }
.pixel-icon-inline { display: inline-flex; align-items: center; vertical-align: -3px; margin: 0 3px 0 1px; }
.pixel-icon-inline:first-child { margin-left: 0; }

/* ═══════════════════════════════════════════════════════════
   NAVBAR BARU (4 tab + FAB)
   ═══════════════════════════════════════════════════════════ */
#nav-container {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    display: flex;
    justify-content: center;
    padding: 0 14px calc(10px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
}
.nav-dock {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: max(16px, env(safe-area-inset-bottom, 16px));
    width: min(500px, calc(100vw - 20px));
    z-index: 40;
    pointer-events: auto;
}
.nav-bar {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 62px;
    padding: 0 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg-elevated) 90%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
    box-shadow:
        0 24px 44px -18px rgba(0, 0, 0, 0.80),
        0 8px 20px -12px color-mix(in srgb, var(--accent) 35%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    user-select: none;
    -webkit-user-select: none;
    isolation: isolate;
}
.nav-group { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(36px, 1fr)); height: 100%; }
.nav-slot { flex: 0 0 clamp(70px, 20%, 86px); }
.nav-tab {
    position: relative;
    z-index: 2;
    display: flex; align-items: center; justify-content: center;
    min-width: 36px; height: 100%;
    border: 0; padding: 0;
    color: var(--accent); background: transparent;
    cursor: pointer;
    touch-action: manipulation;
    transition: color .26s ease;
    -webkit-tap-highlight-color: transparent;
}
.nav-tab.is-active { color: #ffffff; }
.nav-tab:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 78%, transparent); outline-offset: -6px; border-radius: 18px; }
.nav-lift {
    display: inline-flex; position: relative; z-index: 2; line-height: 0;
    transform: translate3d(0, 0, 0);
    transition: transform .46s var(--spring-pop), filter .28s ease;
    will-change: transform;
}
.nav-ico { display: block; transition: transform .32s var(--spring-pop), filter .28s ease; }
.nav-tab.is-active .nav-lift { transform: translate3d(0, -14px, 0); }
.nav-tab.is-active .nav-ico { filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .26)); }
@media (hover: hover) {
    .nav-tab:not(.is-active):hover .nav-lift { transform: translate3d(0, -4px, 0); }
    .nav-tab:not(.is-active):hover .nav-ico { transform: scale(1.1); }
    .nav-tab.is-active:hover .nav-lift { transform: translate3d(0, -16px, 0) scale(1.04); }
    .nav-fab:hover { transform: translateX(-50%) translateY(-2px) rotate(90deg) scale(1.06); }
}
.nav-tab:active .nav-lift { transform: translate3d(0, -2px, 0) scale(.92); transition-duration: .12s; }
.nav-tab.is-active:active .nav-lift { transform: translate3d(0, -13px, 0) scale(.94); }
.nav-circle {
    --x: 0px;
    position: absolute; left: 0; top: -12px;
    z-index: 1; width: 48px; height: 48px;
    pointer-events: none;
    transform: translate3d(var(--x), 0, 0);
    transition: transform .56s var(--spring);
    will-change: transform;
}
.nav-circle::before {
    content: ""; position: absolute; inset: 0;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    box-shadow:
        0 14px 24px -10px color-mix(in srgb, var(--accent) 72%, transparent),
        0 0 14px color-mix(in srgb, var(--accent) 40%, transparent);
    transition: background .4s ease, box-shadow .4s ease;
}
.nav-circle::after {
    content: ""; position: absolute; inset: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 64%);
}
.nav-circle.no-transition { transition: none !important; }
.nav-circle.is-moving::before { animation: navCirclePop .44s ease-out; }
@keyframes navCirclePop {
    0% { transform: scale(1); }
    34% { transform: scale(1.16, .82); }
    72% { transform: scale(.97, 1.06); }
    100% { transform: scale(1); }
}
.nav-fab {
    position: absolute; left: 50%; top: -18px;
    z-index: 4; width: 54px; height: 54px;
    border: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    color: #ffffff; cursor: pointer;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    box-shadow:
        0 0 0 9px var(--bg-color),
        0 16px 32px -10px color-mix(in srgb, var(--accent) 65%, transparent),
        0 8px 16px -8px color-mix(in srgb, var(--accent) 48%, transparent);
    transform: translateX(-50%);
    transition: transform .42s var(--spring-pop), box-shadow .32s ease, background .4s ease;
    -webkit-tap-highlight-color: transparent;
}
.nav-fab:active { transform: translateX(-50%) rotate(90deg) scale(.93); transition-duration: .12s; }
.nav-fab:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 82%, transparent); outline-offset: 4px; }
.nav-fab svg { position: relative; z-index: 1; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .25)); transition: transform .4s var(--spring-pop); }
.nav-fab.is-tapping svg { animation: navFabSpin .45s var(--spring-pop); }
@keyframes navFabSpin { from { transform: rotate(0); } to { transform: rotate(135deg); } }
.nav-ripple {
    position: absolute; left: 50%; top: 50%;
    width: 100%; aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .85);
    transform: translate(-50%, -50%) scale(.2);
    pointer-events: none;
    animation: navRipple .58s ease-out forwards;
}
@keyframes navRipple { to { transform: translate(-50%, -50%) scale(2.15); opacity: 0; } }
@media (max-width: 420px) {
    .nav-dock { width: calc(100vw - 20px); }
    .nav-bar { height: 60px; padding: 0 8px; }
    .nav-slot { flex-basis: 68px; }
    .nav-circle { width: 44px; height: 44px; top: -10px; }
    .nav-fab { width: 50px; height: 50px; top: -16px; box-shadow: 0 0 0 8px var(--bg-color), 0 16px 32px -10px color-mix(in srgb, var(--accent) 65%, transparent), 0 8px 16px -8px color-mix(in srgb, var(--accent) 48%, transparent); }
}

/* ═══════════════════════════════════════════════════════════
   HOME BARU
   ═══════════════════════════════════════════════════════════ */
h1, h2, h3, h4 { font-family: var(--font-display); }

.home-topbar { position: relative; padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px 6px; }
.home-user-line { display: flex; align-items: center; gap: 12px; }
.home-avatar {
    flex-shrink: 0; width: 52px; height: 52px;
    padding: 2px; border-radius: 50%; overflow: hidden;
    background: conic-gradient(from 200deg, var(--accent), var(--accent-2), var(--accent-3, var(--accent)), var(--accent));
}
.home-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg-color); }
.home-brand-label {
    display: flex; flex-direction: column; min-width: 0;
    font-family: var(--font-display); font-weight: 800;
    font-size: 1.1rem; line-height: 1.1; letter-spacing: -.01em;
}
.home-brand-label span { color: var(--accent); }
.home-brand-label small { margin-top: 3px; font-size: .58rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); }
.home-header-actions { margin-left: auto; display: flex; gap: 8px; }
.home-greeting-copy { margin: 20px 0 14px; }
.home-greeting-title { display: flex; align-items: center; flex-wrap: wrap; font-size: 1.85rem; font-weight: 900; line-height: 1.1; letter-spacing: -.02em; }
.greeting-dot { color: var(--accent); }
.home-greeting-sub { margin-top: 5px; font-size: .84rem; line-height: 1.45; color: var(--text-secondary); }
#home-category-bar { gap: 8px; padding: 4px 0 10px; }
.home-chip-btn {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid var(--border-color); flex-shrink: 0;
    transition: transform .2s var(--spring-pop), background .25s ease, color .25s ease;
}
.home-chip-btn:active { transform: scale(.94); }
.home-content { padding: 0 16px; }
.home-section-list { display: flex; flex-direction: column; gap: 28px; padding: 6px 0 24px; }
.home-section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.home-section-title-row h2 { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.home-see-all { display: inline-flex; align-items: center; gap: 3px; font-size: .74rem; font-weight: 800; color: var(--accent); flex-shrink: 0; }
.home-see-all svg { width: 14px; height: 14px; }
.section-overline { font-size: .6rem; font-weight: 800; letter-spacing: .2em; color: var(--text-muted); }

/* Bento grid */
.discovery-bento { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.home-featured {
    position: relative; grid-column: 1 / -1; min-height: 230px;
    border-radius: 28px; overflow: hidden; isolation: isolate;
    background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 55%, transparent), color-mix(in srgb, var(--accent-2) 25%, transparent) 55%, var(--surface-card));
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    box-shadow: 0 16px 40px -14px color-mix(in srgb, var(--accent) 45%, transparent);
}
.home-featured::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,.62)); }
.home-featured-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .6; }
.home-featured-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 18px 16px; color: #fff; }
.home-featured-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: .58rem; font-weight: 800; letter-spacing: .2em; color: rgba(255,255,255,.85); }
.home-featured-eyebrow span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.home-featured-title { margin-top: 6px; font-size: 2rem; font-weight: 900; line-height: 1.02; letter-spacing: -.02em; }
.home-featured-artist { margin-top: 6px; font-size: .78rem; line-height: 1.4; color: rgba(255,255,255,.78); }
.home-featured-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.home-featured-play {
    width: 52px; height: 52px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--accent-contrast);
    box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--accent) 80%, transparent);
    transition: transform .22s var(--spring-pop), opacity .2s;
}
.home-featured-play:active { transform: scale(.9); }
.home-featured-play[disabled] { opacity: .5; }
.home-featured-play svg { width: 22px; height: 22px; fill: currentColor; margin-left: 2px; }
.home-featured-icon {
    width: 40px; height: 40px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    transition: transform .2s var(--spring-pop);
}
.home-featured-icon:active { transform: scale(.88); }
.home-featured-icon[disabled] { opacity: .5; }
.home-featured-icon svg { width: 18px; height: 18px; }
.home-featured-icon[aria-pressed="true"] { background: var(--accent); color: var(--accent-contrast); }
.featured-edition { position: absolute; top: 14px; right: 16px; font-family: var(--font-mono); font-size: .56rem; letter-spacing: .16em; color: rgba(255,255,255,.7); }

.bento-mood {
    position: relative; display: flex; flex-direction: column;
    justify-content: flex-end; gap: 4px;
    min-height: 160px; padding: 16px;
    border-radius: 24px; overflow: hidden;
    text-align: left; isolation: isolate;
    border: 1px solid var(--border-color);
    transition: transform .25s var(--spring-pop), border-color .25s ease;
}
.bento-mood:active { transform: scale(.96); }
.bento-focus { background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 42%, transparent), var(--surface-card) 78%); }
.bento-chill { background: linear-gradient(150deg, color-mix(in srgb, var(--accent-2) 30%, transparent), var(--surface-card) 78%); }
.bento-eyebrow { display: inline-flex; align-items: center; gap: 5px; font-size: .54rem; font-weight: 800; letter-spacing: .16em; color: var(--accent-2); }
.bento-eyebrow svg { width: 12px; height: 12px; }
.bento-mood-title { font-size: 1.3rem; font-weight: 900; line-height: 1.08; letter-spacing: -.02em; color: var(--text-primary); }
.bento-mood-caption { font-size: .7rem; color: var(--text-secondary); }
.bento-arrow {
    position: absolute; top: 12px; right: 12px;
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.1);
    color: var(--text-primary);
}
.bento-arrow svg { width: 14px; height: 14px; }
.bento-record {
    position: absolute; top: -26px; left: -26px;
    width: 96px; height: 96px; border-radius: 50%; z-index: -1;
    background: repeating-radial-gradient(circle, rgba(255,255,255,.07) 0 1px, transparent 2px 6px), color-mix(in srgb, var(--accent) 12%, transparent);
    animation: spinRecord 24s linear infinite;
}
.bento-record span { position: absolute; inset: 34px; border-radius: 50%; background: var(--accent); opacity: .7; }
.bento-orbit {
    position: absolute; top: -34px; left: -34px;
    width: 110px; height: 110px; border-radius: 50%; z-index: -1;
    border: 1px solid color-mix(in srgb, var(--accent-2) 40%, transparent);
    box-shadow: inset 0 0 0 14px color-mix(in srgb, var(--accent-2) 6%, transparent);
}

/* Daily track grid */
.daily-track-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.home-grid-card {
    display: grid;
    grid-template-columns: 22px 56px minmax(0, 1fr) auto;
    align-items: center; gap: 12px;
    padding: 8px 12px 8px 10px;
    text-align: left; width: 100%;
    border-radius: 18px;
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    transition: transform .22s var(--spring), border-color .25s ease, background .25s ease;
}
.home-grid-card:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.home-grid-card:active { transform: scale(.98); }
.home-grid-card.is-current,
.home-grid-card[data-active="true"] {
    border-color: color-mix(in srgb, var(--accent) 60%, transparent);
    background: color-mix(in srgb, var(--accent) 10%, var(--surface-card));
}
.home-grid-card img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--surface); }
.track-index { font-family: var(--font-mono); font-size: .66rem; font-weight: 700; color: var(--text-muted); text-align: center; }
.home-track-copy { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.home-grid-title { font-size: .92rem; font-weight: 800; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-track-artist { font-size: .74rem; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-grid-icon {
    width: 34px; height: 34px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface);
    color: var(--text-secondary);
}
.home-grid-card.is-current .home-grid-icon,
.home-grid-card[data-active="true"] .home-grid-icon { background: var(--accent); color: var(--accent-contrast); }
.home-grid-icon svg { width: 15px; height: 15px; }
.track-loading {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--accent) 30%, transparent);
    border-top-color: var(--accent);
    animation: spin360 .8s linear infinite;
    display: inline-block;
}
@keyframes spin360 { to { transform: rotate(360deg); } }
.home-cat-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: 12px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface); color: var(--accent);
}
.home-feed-footer {
    margin-top: 6px; padding: 22px 0 10px;
    text-align: center; font-size: .72rem; font-weight: 700;
    letter-spacing: .12em; color: var(--text-muted);
}
.library-empty-state {
    padding: 26px 18px; text-align: center;
    border-radius: 20px;
    border: 1px dashed var(--border-color);
    background: var(--surface-card);
}
.home-section { min-width: 0; }
.tiny-wave { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; vertical-align: middle; }
.tiny-wave i { width: 3px; height: 4px; border-radius: 2px; background: var(--accent); animation: tinyWave 1.1s ease-in-out infinite; }
.tiny-wave i:nth-child(2) { animation-delay: .15s; }
.tiny-wave i:nth-child(3) { animation-delay: .3s; }
.tiny-wave i:nth-child(4) { animation-delay: .45s; }
@keyframes tinyWave { 0%, 100% { height: 3px; } 50% { height: 12px; } }

/* Liquid button */
.liquid-button {
    width: 40px; height: 40px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: transform .22s var(--spring-pop), border-color .25s ease, background .25s ease;
}
.liquid-button:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.liquid-button:active { transform: scale(.88); }
.liquid-button svg { width: 18px; height: 18px; }
.liquid-surface { background-image: linear-gradient(135deg, rgba(255,255,255,.05), transparent 55%); }

@media (min-width: 1024px) {
    .daily-track-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .discovery-bento { grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr 1fr; }
    .home-featured { grid-column: 1; grid-row: 1 / span 2; min-height: 340px; }
    .home-featured-title { font-size: 2.6rem; }
}
@media (min-width: 640px) and (max-width: 1023px) {
    .daily-track-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ═══════════════════════════════════════════════════════════
   FULL PLAYER (fp-*)
   ═══════════════════════════════════════════════════════════ */
.player-bg-container {
    position: absolute; inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    background-color: var(--bg-color);
    will-change: transform;
    transform: translateZ(0);
}
.player-bg-blur-img {
    position: absolute; inset: -10%;
    width: 120%; height: 120%;
    object-fit: cover;
    filter: blur(24px) brightness(0.65) contrast(1.1);
    -webkit-filter: blur(24px) brightness(0.65) contrast(1.1);
    opacity: 0.85;
    transition: opacity 0.3s ease;
    will-change: opacity, transform;
    transform: translateZ(0);
}
.player-bg-vignette {
    position: absolute; inset: 0;
    pointer-events: none; z-index: 1;
    background: linear-gradient(to bottom, color-mix(in srgb, var(--bg-color) 60%, transparent) 0%, color-mix(in srgb, var(--bg-color) 28%, transparent) 45%, color-mix(in srgb, var(--bg-color) 85%, transparent) 100%);
}

#full-player {
    background: color-mix(in srgb, var(--bg-color) 60%, transparent);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.fp-card {
    position: relative;
    width: 100%;
    max-width: 430px;
    height: 100%;
    max-height: 900px;
    margin: 0 auto;
    border-radius: 34px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 24px 70px rgba(0,0,0,0.65), 0 4px 18px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
    background: linear-gradient(180deg, color-mix(in srgb, var(--fp-accent, var(--accent)) 32%, transparent) 0%, color-mix(in srgb, var(--bg-elevated) 94%, transparent) 45%, var(--bg-color) 100%);
    transition: background 0.6s cubic-bezier(0.22,1,0.36,1);
    display: flex;
    flex-direction: column;
}
@media (min-width: 640px) { .fp-card { max-height: 94vh; } }

.fp-thumb { width: 13px; height: 13px; box-shadow: 0 1px 4px rgba(0,0,0,0.4); border-radius: 50%; background: #fff; }

.fp-header {
    position: relative; z-index: 5;
    display: flex; align-items: center; gap: 10px;
    padding: max(14px, env(safe-area-inset-top, 0px)) 16px 6px;
}
.fp-header .liquid-button { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.16); color: #fff; }
.fp-header-title { flex: 1; min-width: 0; text-align: center; }
.fp-header-title p:first-child { font-size: .6rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.fp-header-title p:last-child { margin-top: 2px; font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.9); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fp-art-stage {
    position: relative; z-index: 2;
    flex: 1 1 auto; min-height: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; padding: 6px 26px;
}
.fp-art-frame { position: relative; width: 100%; max-width: min(78vw, 330px); aspect-ratio: 1 / 1; }
#full-cover-view { position: absolute; inset: 0; }
#full-artwork-spin {
    width: 100%; height: 100%;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 24px 50px -12px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08);
    transition: border-radius .55s var(--spring);
}
#full-artwork-spin img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fp-card[data-artwork="circle"] #full-artwork-spin {
    border-radius: 50%;
    animation: spinRecord 26s linear infinite;
    box-shadow: 0 24px 50px -12px rgba(0,0,0,.7), 0 0 0 6px rgba(255,255,255,.06), 0 0 0 7px rgba(255,255,255,.1);
}
#full-cover-next-overlay { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
#full-cover-next-overlay img { width: 100%; height: 100%; object-fit: cover; }
#full-cover-overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; border-radius: 28px;
    background: rgba(0,0,0,.5); color: #fff;
    font-size: .8rem; font-weight: 700;
}
.fp-artwork-options {
    display: inline-flex; gap: 4px; padding: 3px;
    border-radius: 999px; background: rgba(255,255,255,.1);
}
.fp-artwork-options button {
    width: 32px; height: 28px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.65);
    transition: background .25s, color .25s;
}
.fp-artwork-options button svg { width: 15px; height: 15px; }
.fp-artwork-options button[aria-pressed="true"] { background: rgba(255,255,255,.9); color: #111; }

.fp-lyrics-panel {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    border-radius: 26px; overflow: hidden;
    background: rgba(0,0,0,.34);
    border: 1px solid rgba(255,255,255,.12);
}
.fp-lyrics-panel.hidden { display: none; }
.inline-lyrics-track { display: flex; align-items: center; gap: 10px; padding: 12px 14px 4px; flex-shrink: 0; }
.inline-lyrics-track img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; }
.inline-lyrics-track div { min-width: 0; display: flex; flex-direction: column; }
.inline-lyrics-track span:first-child { font-size: .84rem; font-weight: 800; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inline-lyrics-track span:last-child { font-size: .7rem; color: rgba(255,255,255,.62); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#full-inline-lyrics-scroll { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 4px 14px; }
.fp-lyrics-footer {
    flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
    gap: 8px; padding: 8px 12px 10px;
    font-size: .68rem; font-weight: 700;
    color: rgba(255,255,255,.7);
}
.fp-lyrics-footer > div { display: inline-flex; align-items: center; gap: 6px; }
.fp-lyrics-footer button {
    min-width: 28px; height: 28px; padding: 0 8px;
    border-radius: 999px; background: rgba(255,255,255,.12);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    gap: 4px;
}
.fp-lyrics-footer svg { width: 13px; height: 13px; }
.fp-card[data-view="lyrics"] .fp-art-frame { max-width: 100%; aspect-ratio: auto; height: 100%; }
.fp-card[data-view="lyrics"] .fp-artwork-options,
.fp-card[data-view="lyrics"] .fp-lyric-preview { display: none; }

.fp-info { position: relative; z-index: 2; padding: 4px 26px 0; }
#full-meta-container { position: relative; }
#full-meta-current h2, #full-meta-next h2 {
    font-size: 1.45rem; font-weight: 900;
    line-height: 1.15; letter-spacing: -.02em;
    color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#full-artist, #full-artist-next {
    margin-top: 3px; font-size: .9rem; font-weight: 600;
    color: rgba(255,255,255,.72);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    cursor: pointer;
}
#full-meta-next { position: absolute; inset: 0; }
#full-status-tag, #full-next-countdown-badge {
    display: inline-block; margin-top: 4px;
    padding: 2px 9px; border-radius: 999px;
    font-size: .58rem; font-weight: 800; letter-spacing: .12em;
    background: var(--accent); color: var(--accent-contrast);
}
.fp-lyric-preview {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; align-items: center;
    gap: 2px; margin: 8px 26px 0; padding: 8px 10px;
    min-height: 74px; border-radius: 16px;
    text-align: center;
    background: rgba(255,255,255,.06);
    overflow: hidden;
}
.fp-lyric-preview span { font-size: .84rem; font-weight: 700; line-height: 1.3; color: rgba(255,255,255,.4); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-lyric-preview span:nth-child(2) { font-size: .98rem; color: #fff; }
.fp-lyric-preview[data-empty="true"] span { color: rgba(255,255,255,.5); }

.fp-bottom {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; gap: 12px;
    padding: 12px 22px calc(env(safe-area-inset-bottom, 0px) + 16px);
}
.fp-timeline { display: flex; flex-direction: column; gap: 4px; }
.fp-seek-track { position: relative; height: 18px; }
.fp-seek-track::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 5px; margin-top: -2.5px; border-radius: 99px; background: rgba(255,255,255,.2); }
.fp-seek-track input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 2; }
#full-progress { position: absolute; left: 0; top: 50%; height: 5px; margin-top: -2.5px; border-radius: 99px; pointer-events: none; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
#full-progress .fp-thumb { position: absolute; right: -6px; top: 50%; transform: translateY(-50%); border-radius: 50%; background: #fff; }
.fp-timeline-labels { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: .68rem; color: rgba(255,255,255,.65); }
.fp-timeline-labels > span { display: inline-flex; align-items: center; gap: 6px; }
.fp-seek-skip { position: relative; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: rgba(255,255,255,.7); }
.fp-seek-skip svg { width: 20px; height: 20px; }
.fp-seek-skip small { position: absolute; font-size: .46rem; font-weight: 900; }
.fp-transport { display: flex; align-items: center; justify-content: space-between; }
.fp-transport button { position: relative; width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: transform .2s var(--spring-pop), color .2s; }
.fp-transport button:active { transform: scale(.86); }
.fp-transport button svg { width: 22px; height: 22px; }
.fp-transport button[aria-pressed="true"] { color: var(--accent); }
#full-shuffle-dot { position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
#full-prev-btn svg, #full-next-btn svg { width: 26px; height: 26px; fill: currentColor; }
#full-play-btn-wrap { width: 70px !important; height: 70px !important; }
#full-play-btn { width: 100%; height: 100%; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--accent-contrast); background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--accent) 75%, transparent); }
#full-play-btn svg { width: 28px; height: 28px; fill: currentColor; }
.fp-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fp-mode-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.1); }
.fp-mode-switch button { padding: 6px 13px; border-radius: 999px; font-size: .72rem; font-weight: 800; color: rgba(255,255,255,.7); transition: background .25s, color .25s; }
.fp-mode-switch button[aria-pressed="true"] { background: rgba(255,255,255,.92); color: #111; }
.fp-tool-button { position: relative; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.1); color: #fff; flex-shrink: 0; transition: transform .2s var(--spring-pop), background .2s; }
.fp-tool-button:active { transform: scale(.88); }
.fp-tool-button svg { width: 17px; height: 17px; }
#repeat-one { position: absolute; top: 5px; right: 6px; font-size: .52rem; font-weight: 900; color: var(--accent); }
.fp-volume-popover { position: relative; }
.fp-volume-popover > summary { list-style: none; cursor: pointer; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.1); color: #fff; }
.fp-volume-popover > summary::-webkit-details-marker { display: none; }
.fp-volume-popover > summary svg { width: 17px; height: 17px; }
.fp-volume { position: absolute; right: -40px; bottom: 48px; z-index: 10; display: flex; align-items: center; gap: 10px; padding: 10px 12px; width: 230px; border-radius: 18px; background: rgba(20,20,26,.94); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 16px 36px rgba(0,0,0,.55); color: #fff; }
.fp-volume button { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.1); flex-shrink: 0; }
.fp-volume button svg { width: 15px; height: 15px; }
.fp-volume-track { position: relative; flex: 1; height: 18px; }
.fp-volume-track::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 99px; background: rgba(255,255,255,.2); }
.fp-volume-track input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 2; }
#full-vol-progress { position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 99px; background: var(--accent); pointer-events: none; }
#full-vol-text { min-width: 32px; font-family: var(--font-mono); font-size: .68rem; color: rgba(255,255,255,.7); text-align: right; }
@media (max-height: 700px) { .fp-art-frame { max-width: min(62vw, 250px); } .fp-lyric-preview { display: none; } }

/* Full player more sheet */
.fp-sheet { animation: fpSheetSlide 0.3s cubic-bezier(0.22,1,0.36,1) forwards; touch-action: none; }
@keyframes fpSheetSlide { from { transform: translateY(100%); } to { transform: translateY(0); } }
.fp-sheet-row {
    display: flex; align-items: center; gap: 14px;
    padding: 13px 6px; border-radius: 16px;
    transition: background 0.2s ease, transform 0.15s ease;
    cursor: pointer;
}
.fp-sheet-row:active { background: rgba(255,255,255,0.08); transform: scale(0.98); }
.fp-sheet-icon {
    width: 38px; height: 38px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

/* Lyrics overlay (full screen) */
#lyrics-overlay { background-color: var(--bg-color) !important; }
#lyrics-overlay .player-bg-blur-img {
    filter: blur(60px) brightness(0.18) contrast(1.2) saturate(110%) !important;
    -webkit-filter: blur(60px) brightness(0.18) contrast(1.2) saturate(110%) !important;
    opacity: 0.65 !important;
}
#lyrics-overlay .player-bg-vignette {
    background: radial-gradient(circle at center, color-mix(in srgb, var(--bg-color) 82%, transparent) 0%, color-mix(in srgb, var(--bg-color) 96%, transparent) 100%),
                linear-gradient(to bottom, color-mix(in srgb, var(--bg-color) 90%, transparent) 0%, color-mix(in srgb, var(--bg-color) 80%, transparent) 50%, color-mix(in srgb, var(--bg-color) 98%, transparent) 100%) !important;
}

/* Mini prev/next button */
#mini-prev-btn, #mini-next-btn { transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.18s ease; }
#mini-prev-btn:active, #mini-next-btn:active { transform: scale(0.85); }
#mini-prev-btn div, #mini-next-btn div { transition: background-color 0.2s ease, transform 0.2s ease; }
#mini-prev-btn:hover div, #mini-next-btn:hover div { transform: scale(1.08); }
@media (hover: none) {
    #mini-prev-btn:hover div, #mini-next-btn:hover div { transform: none; background-color: transparent; }
}

/* UI popup animations */
@keyframes uiFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes uiFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes uiSheetIn { from { opacity: 0; transform: translateY(30px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes uiSheetOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(22px) scale(0.99); } }
.ui-fade-in { animation: uiFadeIn 0.28s ease-out both; }
.ui-sheet { animation: uiSheetIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both; }
.ui-pop.is-closing { animation: uiFadeOut 0.2s ease-in both; pointer-events: none; }
.ui-pop.is-closing > .ui-sheet { animation: uiSheetOut 0.2s ease-in both; }

/* Search */
.search-song-item { background: var(--surface-card); border: 1px solid var(--border-color); }
.search-song-title { font-size: .9rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-song-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: .58rem; font-weight: 800; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); vertical-align: 1px; }
.search-song-btn { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--surface); color: var(--text-secondary); transition: transform .2s var(--spring-pop), background .2s; }
.search-song-btn:active { transform: scale(.88); }
.search-song-btn:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.search-rec-item { background: var(--surface-card); }
.search-rec-btn { position: absolute; right: 6px; bottom: 6px; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent) !important; color: var(--accent-contrast) !important; box-shadow: 0 6px 14px rgba(0,0,0,.4); }
.search-rec-title { font-size: .8rem; font-weight: 800; }

/* Home carousel (kalau masih dipakai) */
.home-carousel-wrap { position: relative; padding: 14px 16px 4px; }
.home-carousel-viewport { position: relative; width: 100%; aspect-ratio: 16 / 7.2; border-radius: 22px; overflow: hidden; box-shadow: var(--nm-shadow-flat); border: 1px solid var(--border-color); background: var(--surface); }
.home-carousel-track { display: flex; width: 100%; height: 100%; transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1); will-change: transform; }
.home-carousel-slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; overflow: hidden; cursor: pointer; }
.home-carousel-slide img.hc-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-carousel-slide .hc-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.35) 42%, rgba(0,0,0,0.05) 68%, transparent 100%); }
.home-carousel-slide .hc-content { position: relative; z-index: 2; height: 100%; display: flex; align-items: flex-end; gap: 12px; padding: 16px 18px 30px; }
.home-carousel-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; }
.home-carousel-dot { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.45); transition: width 0.4s cubic-bezier(0.22,1,0.36,1), background 0.4s ease; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.home-carousel-dot.active { width: 20px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.home-carousel-play { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-contrast); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 50%, transparent); transition: transform 0.3s cubic-bezier(0.34,1.45,0.4,1); }
.home-carousel-slide:active .home-carousel-play { transform: scale(0.88); }