/* ════════════════════════════════════════════════════════════
   Music Visualizer — styles.css
   ════════════════════════════════════════════════════════════ */

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design tokens ─────────────────────────────────────────── */
:root {
    --glass-bg:     rgba(18, 18, 28, 0.55);
    --glass-border: rgba(255, 255, 255, 0.09);
    --glass-blur:   20px;
    --white-hi:     rgba(255, 255, 255, 0.95);
    --white-mid:    rgba(255, 255, 255, 0.55);
    --white-lo:     rgba(255, 255, 255, 0.28);
    --radius-card:  28px;
    --radius-pill:  9999px;
    --trans-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base ──────────────────────────────────────────────────── */
html, body {
    height: 100%;
    font-family: 'Inter', system-ui, sans-serif;
    background: #080810;
    color: #fff;
    overflow: hidden;
    cursor: default;
    -webkit-font-smoothing: antialiased;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

/* ── Ambient background ────────────────────────────────────── */
.cover-art-background {
    position: fixed;
    inset: -12%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    filter: blur(90px) saturate(180%) brightness(0.4);
    opacity: 0;
    transition: opacity 1.8s ease, background-image 1.8s ease;
    pointer-events: none;
}
.cover-art-background.visible { opacity: 0.85; }

/* ── Aurora fullscreen canvas ──────────────────────────────── */
.aurora-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;          /* above cover-bg(0), below player(10) */
    pointer-events: none;
}

/* ── Root container ────────────────────────────────────────── */
.main-container {
    position: relative;
    height: 100vh;
    z-index: 1;
}

/* ════ UPLOAD SCREEN ════════════════════════════════════════ */
.upload-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: opacity var(--trans-smooth), transform var(--trans-smooth);
}
.upload-screen.hidden {
    opacity: 0;
    transform: scale(0.96);
    pointer-events: none;
}

.upload-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    padding: 3rem 3.5rem;
    width: min(460px, 92vw);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px dashed rgba(255,255,255,0.14);
    border-radius: var(--radius-card);
    box-shadow: 0 32px 80px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.04);
    text-align: center;
    cursor: pointer;
    transition: border-color var(--trans-smooth), box-shadow var(--trans-smooth), transform var(--trans-smooth);
    user-select: none;
}
.upload-card:hover {
    border-color: rgba(255,255,255,0.26);
    transform: translateY(-3px);
}
.upload-card.drag-over {
    border-color: rgba(255,255,255,0.55);
    box-shadow: 0 0 60px rgba(255,255,255,0.1), 0 32px 80px rgba(0,0,0,0.6);
    transform: scale(1.02);
}

.upload-card-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: var(--white-mid);
    animation: float 3.5s ease-in-out infinite;
}
.upload-card-icon svg { width: 34px; height: 34px; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-7px); }
}

.upload-card-title {
    font-size: 1.75rem; font-weight: 700;
    letter-spacing: -0.03em; color: var(--white-hi);
}
.upload-card-sub {
    font-size: 0.875rem; color: var(--white-lo); line-height: 1.5;
}

.upload-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    margin-top: 0.4rem; padding: 0.7rem 1.6rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius-pill);
    font-size: 0.875rem; font-weight: 600;
    color: var(--white-hi); cursor: pointer;
    transition: background var(--trans-smooth), transform 0.15s ease, box-shadow var(--trans-smooth);
}
.upload-btn:hover {
    background: rgba(255,255,255,0.18);
    box-shadow: 0 6px 24px rgba(255,255,255,0.08);
    transform: translateY(-1px);
}

.upload-formats {
    font-size: 0.68rem; letter-spacing: 0.12em;
    color: var(--white-lo); text-transform: uppercase;
}


/* ════ PLAYER SCREEN ════════════════════════════════════════ */
.player-screen {
    position: fixed; inset: 0;
    display: flex; flex-direction: column;
    z-index: 10;
    opacity: 0; pointer-events: none;
    transition: opacity var(--trans-smooth);
}
.player-screen.visible { opacity: 1; pointer-events: all; }

/* Fullscreen button — top-right corner */
.fs-btn {
    position: absolute;
    top: 1.25rem; right: 1.25rem;
    z-index: 40;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    color: var(--white-lo);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: color var(--trans-smooth), background var(--trans-smooth), transform 0.15s ease;
}
.fs-btn svg { width: 16px; height: 16px; }
.fs-btn:hover { color: var(--white-hi); background: rgba(255,255,255,0.1); transform: scale(1.1); }

/* Now-playing panel */
.now-playing {
    position: absolute;
    top: 0; left: 0; right: 0;
    bottom: 45vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 1.1rem; padding: 2rem;
    pointer-events: none;
}

/* Cover art wrapper — passthrough in normal mode, positioned in radial */
.cover-art-wrap { flex-shrink: 0; }

/* Cover art — beat-reactive scale + glow driven by JS each frame */
.cover-art {
    width: 170px; height: 170px;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--glass-border);
    background-size: cover; background-position: center;
    /* box-shadow driven by JS every frame — no CSS transition on it */
    box-shadow: 0 24px 64px rgba(0,0,0,0.75);
    display: flex; align-items: center; justify-content: center;
    font-size: 3.5rem;
    flex-shrink: 0;
    transform: scale(var(--beat-scale, 1));
    transition: background-image 0.6s ease, transform 0.08s ease-out;
    will-change: transform, box-shadow;
}
.cover-art.has-cover { font-size: 0; }

/* ── Radial mode — full-screen canvas + cover art at centre ── */
.player-screen.radial-mode .visualizer-section {
    height: 100%;
    background: none;   /* remove the dark gradient overlay */
    z-index: 1;
}
.player-screen.radial-mode .now-playing {
    bottom: 0;          /* override bottom:45vh → span full viewport */
    z-index: 5;
}
.player-screen.radial-mode .cover-art-wrap {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
}
.player-screen.radial-mode .track-meta {
    position: absolute;
    bottom: 5.5rem; left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    text-align: center;
    text-shadow: 0 2px 12px rgba(0,0,0,0.9);
    z-index: 6;
}
/* Shrink cover art to fit inside innerR=108px ring (diameter 216px).
   160px gives a clean 28px gap on each side.                         */
.player-screen.radial-mode .cover-art {
    width: 160px;
    height: 160px;
    font-size: 2.8rem;
    border-radius: 50%;   /* circle looks better surrounded by a ring */
}

.track-meta { text-align: center; }

.track-name {
    font-size: 1.1rem; font-weight: 600;
    letter-spacing: -0.02em; color: var(--white-hi);
    max-width: 340px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: 0.2rem;
}
.track-artist {
    font-size: 0.82rem; font-weight: 400;
    color: var(--white-mid);
    max-width: 340px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: 0.3rem;
    min-height: 1.1em; /* preserve space when empty */
}
.track-duration {
    font-family: 'Orbitron', monospace;
    font-size: 0.62rem; color: var(--white-lo); letter-spacing: 0.1em;
}

/* ── Visualizer ────────────────────────────────────────────── */
.visualizer-section {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 45vh;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(8,8,16,0.15) 25%,
        rgba(8,8,16,0.6)  65%,
        rgba(8,8,16,0.97) 100%
    );
}
#visualizer { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ── Controls pill ─────────────────────────────────────────── */
.controls-pill {
    position: absolute; bottom: 1.75rem; left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    display: flex; align-items: center; gap: 0.35rem;
    padding: 0.5rem 0.85rem;
    background: var(--glass-bg);
    backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 32px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.04);
    transition: opacity var(--trans-smooth), transform var(--trans-smooth);
    white-space: nowrap;
}
.controls-pill.hidden {
    opacity: 0; transform: translateX(-50%) translateY(16px);
    pointer-events: none;
}

/* Buttons */
.ctrl-btn {
    width: 34px; height: 34px;
    border-radius: 50%; border: none;
    background: transparent; color: var(--white-mid);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}
.ctrl-btn svg { width: 17px; height: 17px; }
.ctrl-btn:hover { background: rgba(255,255,255,0.1); color: var(--white-hi); transform: scale(1.1); }

.ctrl-btn--primary {
    background: rgba(255,255,255,0.92); color: #0a0a14;
    width: 38px; height: 38px;
}
.ctrl-btn--primary svg { width: 19px; height: 19px; }
.ctrl-btn--primary:hover { background: #fff; color: #000; transform: scale(1.1); box-shadow: 0 0 18px rgba(255,255,255,0.28); }

.ctrl-btn--icon { color: var(--white-lo); }
.ctrl-btn--icon:hover { color: var(--white-hi); }

.ctrl-add { border: 1px dashed rgba(255,255,255,0.18); color: var(--white-lo); }
.ctrl-add:hover { border-color: rgba(255,255,255,0.38); background: rgba(255,255,255,0.06); color: var(--white-hi); }

/* Mode button — glows with current palette accent on hover */
.ctrl-btn--mode { color: var(--white-lo); }
.ctrl-btn--mode:hover {
    color: var(--white-hi);
    background: rgba(255,255,255,0.08);
}
.ctrl-btn--mode.active {
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 10px rgba(255,255,255,0.12);
}

/* Divider */
.ctrl-divider { width: 1px; height: 18px; background: var(--glass-border); flex-shrink: 0; margin: 0 0.15rem; }

/* Seek */
.seek-group {
    display: flex; align-items: center; gap: 0.5rem;
    min-width: 220px;
}
.time-lbl {
    font-family: 'Orbitron', monospace;
    font-size: 0.62rem; color: var(--white-lo);
    min-width: 32px; text-align: center; letter-spacing: 0.05em;
}
.seek-track {
    flex: 1; height: 3px;
    background: rgba(255,255,255,0.12);
    border-radius: 2px; cursor: pointer;
    position: relative;
}
.seek-track:hover { height: 5px; }
.seek-track { transition: height 0.15s ease; }
.seek-fill {
    height: 100%; background: rgba(255,255,255,0.85);
    border-radius: 2px; width: 0%; position: relative;
    transition: width 0.1s linear;
}
.seek-fill::after {
    content: '';
    position: absolute; right: -5px; top: 50%; transform: translateY(-50%);
    width: 10px; height: 10px; border-radius: 50%;
    background: #fff; box-shadow: 0 0 5px rgba(255,255,255,0.5);
    opacity: 0; transition: opacity 0.15s ease;
}
.seek-track:hover .seek-fill::after { opacity: 1; }

/* Volume */
.vol-group { display: flex; align-items: center; gap: 0.25rem; }
.vol-slider {
    -webkit-appearance: none; appearance: none;
    width: 66px; height: 3px;
    background: rgba(255,255,255,0.14);
    border-radius: 2px; outline: none; cursor: pointer;
}
.vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.9); cursor: pointer;
    transition: transform 0.15s ease;
}
.vol-slider::-webkit-slider-thumb:hover { transform: scale(1.3); }
.vol-slider::-moz-range-thumb {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.9); border: none; cursor: pointer;
}

/* ── Toast ─────────────────────────────────────────────────── */
.toast {
    position: fixed; top: 1.5rem; left: 50%;
    transform: translate(-50%, -8px);
    background: var(--glass-bg);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    color: var(--white-hi);
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--glass-border);
    font-size: 0.8rem; font-weight: 500;
    z-index: 100; opacity: 0; pointer-events: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* ══════════════════════════════════════════════════════════
   LYRICS DISPLAY
   ══════════════════════════════════════════════════════════ */

.lyrics-display {
    position: absolute;
    bottom: calc(45vh + 1.6rem);
    left: 50%;
    transform: translateX(-50%);
    width: min(680px, 88vw);
    text-align: center;
    z-index: 8;
    pointer-events: none;
    /* Hidden until lyrics are loaded */
    opacity: 0;
    transition: opacity 0.5s ease;
}
.lyrics-display.has-lyrics { opacity: 1; }

/* Radial mode — move lyrics to TOP (above the ring) to avoid
   clashing with track-meta + controls at the bottom              */
.player-screen.radial-mode .lyrics-display {
    bottom: auto;
    top: 1.8rem;
}

/* Line styles */
.lyrics-line {
    margin: 0;
    padding: 0.15rem 0;
    line-height: 1.45;
    transition: opacity 0.45s ease, transform 0.45s ease, font-size 0.3s ease, color 0.3s ease;
    white-space: pre-wrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.lyrics-prev {
    font-size: 0;
    opacity: 0;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    pointer-events: none;
}
.lyrics-current {
    font-size: 1.55rem;
    font-weight: 700;
    opacity: 1;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.35;
    /* Soft legibility shadow only — no reactive glow on text */
    text-shadow: 0 2px 20px rgba(0,0,0,0.8), 0 0 40px rgba(0,0,0,0.5);
    transition: opacity 0.4s ease;
}
.lyrics-next {
    font-size: 0;
    opacity: 0;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Wrapper — clean, no background, fixed height keeps layout stable */
.lyrics-current-wrap {
    position: relative;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 8px; /* room for progress line */
}

/* Thin progress line under the text */
.lyrics-progress {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    width: 0%;
    max-width: 260px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 2px;
    transition: width 0.12s linear;
    pointer-events: none;
}

/* Instrumental break indicator */
.lyrics-break {
    display: flex;
    gap: 7px;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 2.2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    position: absolute;
    inset: 0;
}
.lyrics-display.is-break .lyrics-break  { opacity: 1; }
.lyrics-display.is-break .lyrics-current { opacity: 0; }

.lbreak-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--lyric-glow-color, rgba(255,255,255,0.55));
    animation: lbreak-pulse 1.3s ease-in-out infinite;
}
.lbreak-dot:nth-child(2) { animation-delay: 0.22s; }
.lbreak-dot:nth-child(3) { animation-delay: 0.44s; }
@keyframes lbreak-pulse {
    0%, 100% { transform: scale(0.55); opacity: 0.25; }
    50%       { transform: scale(1);    opacity: 0.85; }
}

/* Line-change pop animation — only current line is visible */
.lyrics-display.line-change .lyrics-current {
    animation: lyr-pop-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes lyr-pop-in {
    from { opacity: 0; transform: translateY(14px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* LRC button — glows when loaded, pulses while fetching */
.ctrl-btn--lrc { color: var(--white-lo); }
.ctrl-btn--lrc.lrc-loaded {
    color: var(--white-hi);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 10px rgba(255,255,255,0.12);
}
.ctrl-btn--lrc.lrc-fetching {
    color: var(--white-mid);
    animation: lrc-fetch-pulse 0.9s ease-in-out infinite alternate;
}
@keyframes lrc-fetch-pulse {
    from { opacity: 0.4; transform: scale(0.9); }
    to   { opacity: 1.0; transform: scale(1.05); }
}



/* ══════════════════════════════════════════════════════════
   QUEUE SIDEBAR
   ══════════════════════════════════════════════════════════ */

/* Queue toggle button — glows when active */
.ctrl-btn--queue { color: var(--white-lo); }
.ctrl-btn--queue.queue-open {
    color: var(--white-hi);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 12px rgba(255,255,255,0.14);
}

/* Side panel */
.queue-panel {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 320px;
    z-index: 50;
    display: flex; flex-direction: column;
    background: rgba(10, 10, 20, 0.72);
    backdrop-filter: blur(32px) saturate(160%);
    -webkit-backdrop-filter: blur(32px) saturate(160%);
    border-left: 1px solid rgba(255,255,255,0.08);
    box-shadow: -12px 0 48px rgba(0,0,0,0.6);
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.queue-panel.open {
    transform: translateX(0);
    pointer-events: all;
}

/* Header */
.queue-header {
    display: flex; align-items: center;
    gap: 0.6rem;
    padding: 1.4rem 1.25rem 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}
.queue-title {
    font-size: 0.95rem; font-weight: 700;
    letter-spacing: -0.01em; color: var(--white-hi);
    flex: 1;
}
.queue-count {
    font-size: 0.7rem; color: var(--white-lo);
    font-weight: 500; letter-spacing: 0.04em;
}
.queue-close {
    width: 28px; height: 28px;
    border-radius: 50%; border: none;
    background: rgba(255,255,255,0.06);
    color: var(--white-lo);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
    flex-shrink: 0;
}
.queue-close:hover {
    background: rgba(255,255,255,0.14);
    color: var(--white-hi);
    transform: scale(1.1);
}

/* Scrollable track list */
.queue-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.12) transparent;
}
.queue-list::-webkit-scrollbar { width: 4px; }
.queue-list::-webkit-scrollbar-track { background: transparent; }
.queue-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.14);
    border-radius: 2px;
}
.queue-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.28);
}

/* Empty state */
.queue-empty {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 0.6rem;
    height: 100%; padding: 2rem;
    text-align: center;
}
.queue-empty-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    color: var(--white-lo);
    margin-bottom: 0.3rem;
}
.queue-empty-icon svg { width: 24px; height: 24px; }
.queue-empty-text {
    font-size: 0.8rem; color: var(--white-lo);
    line-height: 1.5;
}

/* Individual track row */
.queue-track {
    display: flex; align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 1.1rem 0.55rem 0.9rem;
    cursor: pointer;
    border-radius: 0;
    position: relative;
    transition: background 0.15s ease;
    user-select: none;
    min-height: 56px;
}
.queue-track::before {
    content: '';
    position: absolute;
    left: 0; top: 8px; bottom: 8px;
    width: 3px;
    border-radius: 0 2px 2px 0;
    background: transparent;
    transition: background 0.2s ease;
}
.queue-track:hover { background: rgba(255,255,255,0.06); }
.queue-track:active { background: rgba(255,255,255,0.09); }

/* Active (now playing) */
.queue-track.active { background: rgba(255,255,255,0.09); }
.queue-track.active::before { background: rgba(255,255,255,0.7); }
.queue-track.active .qt-name { color: var(--white-hi); font-weight: 600; }
.queue-track.active .qt-index { display: none; }
.queue-track.active .qt-playing { display: flex !important; }

/* Track index number */
.qt-index-wrap {
    width: 24px; text-align: center;
    flex-shrink: 0;
    position: relative;
}
.qt-index {
    font-size: 0.72rem; color: var(--white-lo);
    font-family: 'Orbitron', monospace;
}
.qt-playing {
    display: none;
    align-items: center; justify-content: center;
    width: 24px; height: 24px;
}
/* Animated equalizer bars for now-playing */
.qt-eq-bar {
    width: 3px; border-radius: 2px;
    background: var(--white-hi);
    margin: 0 1px;
    animation: qt-eq 0.9s ease-in-out infinite alternate;
    transform-origin: bottom;
}
.qt-eq-bar:nth-child(1) { height: 8px;  animation-delay: 0s; }
.qt-eq-bar:nth-child(2) { height: 14px; animation-delay: 0.15s; }
.qt-eq-bar:nth-child(3) { height: 6px;  animation-delay: 0.3s; }
@keyframes qt-eq {
    from { transform: scaleY(0.35); opacity: 0.6; }
    to   { transform: scaleY(1);    opacity: 1; }
}

/* Track thumbnail */
.qt-thumb {
    width: 40px; height: 40px;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    background-size: cover; background-position: center;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.queue-track.active .qt-thumb {
    box-shadow: 0 0 0 1.5px rgba(255,255,255,0.35);
}

/* Track info */
.qt-info { flex: 1; min-width: 0; }
.qt-name {
    font-size: 0.82rem; font-weight: 500;
    color: rgba(255,255,255,0.8);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    line-height: 1.3;
}
.qt-artist {
    font-size: 0.7rem; color: var(--white-lo);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-top: 0.15rem;
    line-height: 1.3;
}

/* Remove button */
.qt-remove {
    width: 24px; height: 24px;
    border-radius: 50%; border: none;
    background: transparent; color: var(--white-lo);
    cursor: pointer; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.qt-remove svg { width: 14px; height: 14px; pointer-events: none; }
.queue-track:hover .qt-remove { opacity: 1; }
.qt-remove:hover {
    background: rgba(255, 80, 80, 0.2);
    color: rgba(255,120,120,0.9);
    transform: scale(1.15);
}

/* ── Cursor hide ───────────────────────────────────────────── */
body.hide-cursor, body.hide-cursor * { cursor: none !important; }

/* ══════════════════════════════════════════════════════════
   SUPPORT MODAL & BUTTON
   ══════════════════════════════════════════════════════════ */

/* Support button at top-left */
.support-btn {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 40;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-pill);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    color: var(--white-mid);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: opacity var(--trans-smooth), transform var(--trans-smooth), color var(--trans-smooth), background var(--trans-smooth), box-shadow var(--trans-smooth);
}
.support-btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.25s ease;
}
.support-btn:hover {
    color: var(--white-hi);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.support-btn:hover svg {
    transform: scale(1.15);
}
.support-btn.hidden {
    opacity: 0;
    transform: translateY(-16px);
    pointer-events: none;
}

/* Fullscreen button transition/hidden support */
.fs-btn {
    transition: opacity var(--trans-smooth), transform var(--trans-smooth), color var(--trans-smooth), background var(--trans-smooth);
}
.fs-btn.hidden {
    opacity: 0;
    transform: translateY(-16px);
    pointer-events: none;
}

/* Support Modal */
.support-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.support-modal.open {
    opacity: 1;
    pointer-events: all;
}

.support-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 4, 8, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1;
}

.support-card {
    position: relative;
    z-index: 2;
    width: min(440px, 90vw);
    padding: 2.5rem 2rem;
    background: rgba(18, 18, 28, 0.65);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-card);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    text-align: center;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.support-modal.open .support-card {
    transform: scale(1) translateY(0);
}

.support-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white-mid);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--trans-smooth), color var(--trans-smooth), transform 0.15s ease;
}
.support-close-btn svg {
    width: 14px;
    height: 14px;
}
.support-close-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white-hi);
    transform: scale(1.1);
}

.support-header {
    margin-bottom: 2rem;
}
.support-icon-heart {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 60, 100, 0.1);
    border: 1px solid rgba(255, 60, 100, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff3c64;
    margin: 0 auto 1rem;
    animation: heartbeat 2s infinite ease-in-out;
}
.support-icon-heart svg {
    width: 24px;
    height: 24px;
}
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.12); }
    28% { transform: scale(1); }
    42% { transform: scale(1.12); }
    70% { transform: scale(1); }
}

.support-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--white-hi);
    margin-bottom: 0.5rem;
}
.support-subtitle {
    font-size: 0.85rem;
    color: var(--white-mid);
    line-height: 1.5;
}

.support-content {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    align-items: center;
}

.qr-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    transition: transform var(--trans-smooth), border-color var(--trans-smooth), box-shadow var(--trans-smooth);
}
.qr-container:hover {
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}
.qr-image {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #fff;
    padding: 4px;
}
.qr-label {
    font-size: 0.72rem;
    color: var(--white-lo);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.upi-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}
.upi-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white-mid);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: left;
    padding-left: 0.5rem;
}
.upi-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.35rem 0.35rem 0.35rem 1rem;
    transition: border-color var(--trans-smooth), background var(--trans-smooth);
}
.upi-box:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
}
.upi-id {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--white-hi);
    text-align: left;
    user-select: all;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.upi-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white-hi);
    padding: 0.45rem 0.9rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--trans-smooth);
}
.upi-copy-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.22);
}
.upi-copy-btn svg {
    width: 13px;
    height: 13px;
}
.upi-copy-btn.copied {
    background: #00c853;
    border-color: #00c853;
    color: #fff;
}
