/* Musify — gaya dasar (variabel warna, kaca, krom, scrollbar, komponen umum). */
* { -webkit-tap-highlight-color: transparent; }

:root {
    --bg-color: #1a1b22;
    --text-primary: #ffffff;
    --text-secondary: #a0a5b0;
    --nm-shadow-flat: 0 4px 6px rgba(0,0,0,0.3);
    --nm-shadow-inset: inset 0 2px 4px rgba(0,0,0,0.2);
    --nm-shadow-flat-sm: 0 2px 4px rgba(0,0,0,0.3);
    --nm-shadow-inset-sm: inset 0 1px 3px rgba(0,0,0,0.2);
    --border-color: rgba(255, 255, 255, 0.05);
}


html, body { background: var(--bg-color); color: var(--text-primary);  }
.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: rgba(255,255,255,0.92) !important; color: black !important; box-shadow: 0 4px 20px rgba(255,255,255,0.15); }

/* ===== Light-weight Clean Solid Dark Theme Background ===== */
.app-bg {
    position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
    background: #08090d;
}

/* ===== Solid Gray Dark Theme Cards & Base Styles ===== */
.glass-card {
    background: #20222c;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: all 0.25s ease;
}
.glass-card:hover {
    background: #282b38;
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
.glass-dock {
    background: #1c1e26;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.glass {
    background: #20222c;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.glass-hover {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}
.glass-hover:hover {
    background: #282b38;
    transform: translateY(-2px);
}
.glass-strong {
    background: var(--bg-color);
    box-shadow: var(--nm-shadow-flat);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.glass-input {
    background: var(--bg-color);
    box-shadow: var(--nm-shadow-inset-sm);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    transition: box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.glass-input:focus-within, .glass-input:focus {
    box-shadow: var(--nm-shadow-inset);
}
.glass-pane {
    background: var(--bg-color);
}
.glass-edge {
    border: 1px solid var(--border-color);
}

/* Chrome / glossy gray accent */
.chrome-text{color:#ffffff;font-weight:900;}

.btn-chrome {
    position: relative;
    overflow: hidden;
    background: var(--bg-color);
    box-shadow: var(--nm-shadow-flat-sm);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 0.75rem;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-chrome:hover {
    transform: scale(1.02);
}
.btn-chrome:active {
    box-shadow: var(--nm-shadow-inset-sm);
    transform: scale(0.98);
}

.shine-sweep{position:relative;}

.nav-blur {
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
    box-shadow: var(--nm-shadow-flat);
}
.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(--bg-color); }

/* High-Performance Blurred Artwork Background for Player & Lyrics */
.player-bg-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    background-color: #06070a;
    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-glow {
    position: absolute;
    inset: -25%;
    z-index: 0;
    opacity: 0;
    mix-blend-mode: screen;
    filter: blur(34px);
    background-repeat: no-repeat;
    background-image:
        radial-gradient(circle at 22% 28%, var(--glow-c1, transparent) 0%, transparent 60%),
        radial-gradient(circle at 78% 35%, var(--glow-c2, transparent) 0%, transparent 60%),
        radial-gradient(circle at 42% 82%, var(--glow-c3, transparent) 0%, transparent 60%);
    background-size: 140% 140%;
    animation: glowDrift 9s ease-in-out infinite;
    will-change: transform;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

@keyframes glowDrift {
    0%   { transform: translate3d(0%, 0%, 0) scale(1) rotate(0deg); }
    20%  { transform: translate3d(6%, -8%, 0) scale(1.14) rotate(9deg); }
    40%  { transform: translate3d(-9%, 4%, 0) scale(0.92) rotate(-7deg); }
    60%  { transform: translate3d(5%, 9%, 0) scale(1.1) rotate(11deg); }
    80%  { transform: translate3d(-6%, -6%, 0) scale(0.95) rotate(-9deg); }
    100% { transform: translate3d(0%, 0%, 0) scale(1) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
    .player-bg-glow { animation: none; }
}

.player-bg-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(8,9,13,0.55) 0%, rgba(8,9,13,0.25) 45%, rgba(8,9,13,0.8) 100%);
}

/* Extra Dark & Heavy Blur Background for Lyrics Overlay */
#lyrics-overlay {
    background-color: #05060a !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, rgba(4,5,8,0.82) 0%, rgba(4,5,8,0.96) 100%),
                linear-gradient(to bottom, rgba(4,5,8,0.9) 0%, rgba(4,5,8,0.8) 50%, rgba(4,5,8,0.98) 100%) !important;
}

/* Premium Lyric Highlighting Styling */
#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);
}
.lyric-line.past-lyric {
    opacity: 0.28 !important;
    color: rgba(255, 255, 255, 0.4) !important;
    transform: scale(0.97);
}
.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;
}
.inline-lyric-line .lyric-translation {
    font-size: 0.78em;
    margin-top: 2px;
    opacity: 0.8;
    font-weight: 500;
}

/* Inline Lyric Highlighting for FullPlayer Compact Box */
.inline-lyric-line {
    transition: opacity 0.25s ease, color 0.25s ease;
    font-size: 0.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;
}

/* Neumorphic Equalizer & Slider styling */
.eq-slider {
    -webkit-appearance: none;
    width: 8px;
    height: 150px;
    background: var(--bg-color);
    box-shadow: var(--nm-shadow-inset-sm);
    border-radius: 4px;
    outline: none;
    writing-mode: bt-lr; /* IE */
    -webkit-appearance: slider-vertical; /* WebKit */
}
.eq-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-color);
    box-shadow: var(--nm-shadow-flat-sm);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.1s;
}
.eq-slider::-webkit-slider-thumb:active {
    transform: scale(1.15);
    box-shadow: var(--nm-shadow-inset-sm);
}



/* Animated Bouncing Equalizer Bars for Active Track */
@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; }

/* Equalizer live-animated bar visualizer */
.eq-bar {
    width: 5px;
    height: 10px;
    background: linear-gradient(to top, #6b7280, #ffffff);
    border-radius: 2px;
    transition: height 0.1s ease-out;
}

/* Responsive Bottom Navigation Bar Styles */
.nav-blur {
    background: rgba(14, 15, 22, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}
.nav-icon-wrapper {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
