* {
            box-sizing: border-box;
        }

        /* ── TOKENS ─────────────────────────────────────────── */
        :root {
            /* Track feed theme tokens (theme.js sets --terminal-* + --green on <html>) */
            --green: var(--terminal-green, #ff4d6d);
            --cyan: var(--terminal-dim, #ff859b);
            --accent-rgb: 255, 77, 109;
            --accent-dim-rgb: 255, 133, 155;
            --pink: #ff00c1;
            --white: #ffffff;
            --dim: rgba(var(--accent-rgb), 0.42);
            --glass: rgba(18, 6, 8, 0.82);
            --glass2: rgba(14, 4, 6, 0.72);
            --font: 'Space Grotesk', 'Courier New', monospace;
            --mono: 'Space Mono', 'Courier New', monospace;
        }

        /* ── KEYFRAMES ──────────────────────────────────────── */
        @keyframes glitch {

            0%,
            95%,
            100% {
                clip-path: none;
                transform: none;
                text-shadow: 0 0 18px var(--pink);
            }

            96% {
                clip-path: inset(20% 0 60% 0);
                transform: translateX(-4px);
                text-shadow: 3px 0 var(--cyan);
            }

            97% {
                clip-path: inset(60% 0 10% 0);
                transform: translateX(4px);
                text-shadow: -3px 0 var(--pink);
            }

            98% {
                clip-path: inset(40% 0 40% 0);
                transform: translateX(-2px);
                text-shadow: 2px 0 var(--green);
            }

            99% {
                clip-path: none;
                transform: none;
            }
        }

        @keyframes sweep {
            from {
                transform: translateX(-100%) skewX(-12deg);
            }

            to {
                transform: translateX(300%) skewX(-12deg);
            }
        }

        @keyframes pulse-ring {
            0% {
                box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.45), 0 0 32px rgba(255, 0, 193, 0.18);
            }

            50% {
                box-shadow: 0 0 0 12px rgba(var(--accent-rgb), 0.0), 0 0 48px rgba(255, 0, 193, 0.28);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.0), 0 0 32px rgba(255, 0, 193, 0.18);
            }
        }

        @keyframes line-slide {
            0% {
                left: -60%;
            }

            100% {
                left: 160%;
            }
        }

        @keyframes scanline-drift {
            from {
                background-position: 0 0;
            }

            to {
                background-position: 0 120px;
            }
        }

        @keyframes fade-up {
            from {
                opacity: 0;
                transform: translateY(14px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes corner-glow {

            0%,
            100% {
                opacity: 0.4;
            }

            50% {
                opacity: 1;
            }
        }

        @keyframes info-border {
            from {
                background-position: 0% 50%;
            }

            to {
                background-position: 100% 50%;
            }
        }

        @keyframes lyric-pulse {

            0%,
            100% {
                text-shadow: 0 0 6px rgba(var(--accent-rgb), 0.5);
            }

            50% {
                text-shadow: 0 0 18px rgba(var(--accent-rgb), 0.9), 0 0 30px rgba(var(--accent-dim-rgb), 0.5);
            }
        }

        @keyframes track-in {
            from {
                opacity: 0;
                transform: translateX(-8px);
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        html {
            overflow: hidden;
            height: 100%;
            height: 100dvh;
            overscroll-behavior: none;
        }

        /* ── BODY ───────────────────────────────────────────── */
        body {
            margin: 0;
            padding: 0;
            font-family: var(--font);
            color: #ffffff;
            overflow: hidden;
            overflow-x: hidden;
            width: 100vw;
            display: block;
            height: 100vh;
            height: 100dvh;
            max-height: 100dvh;
            max-width: 100vw;
            overscroll-behavior: none;
            user-select: none;
            background:
                radial-gradient(circle at 15% 20%, rgba(var(--accent-dim-rgb), 0.09), transparent 32%),
                radial-gradient(circle at 85% 12%, rgba(var(--accent-rgb), 0.10), transparent 30%),
                radial-gradient(circle at 50% 85%, rgba(255, 0, 193, 0.07), transparent 38%),
                #0a0304;
            transition: background 0.6s ease;
        }

        /* CRT scanline overlay */
        body::after {
            content: "";
            position: fixed;
            inset: 0;
            background: repeating-linear-gradient(0deg,
                    rgba(0, 0, 0, 0) 0px, rgba(0, 0, 0, 0) 3px,
                    rgba(0, 0, 0, 0.13) 4px);
            pointer-events: none;
            z-index: 9998;
            animation: scanline-drift 8s linear infinite;
        }

        /* ── BACKGROUND ART ─────────────────────────────────── */
        #bg-art {
            position: absolute;
            inset: -12%;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            opacity: 0.32;
            filter: blur(55px) saturate(1.8) brightness(0.45);
            z-index: 0;
            transform-origin: center;
            will-change: transform, background-image;
            transition: background-image 1.2s ease;
        }

        #bg-art::after {
            content: "";
            position: absolute;
            inset: 0;
            background:
                radial-gradient(60% 60% at 50% 50%, rgba(255, 0, 193, 0.20), transparent 55%),
                radial-gradient(50% 50% at 20% 80%, rgba(var(--accent-rgb), 0.20), transparent 50%),
                radial-gradient(50% 50% at 80% 25%, rgba(0, 158, 255, 0.18), transparent 55%);
            mix-blend-mode: screen;
        }

        #visualizer {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
            mix-blend-mode: screen;
            pointer-events: none;
        }

        #bg-art,
        #visualizer,
        #three-container {
            transition:
                left 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        }

        #three-container canvas {
            pointer-events: auto !important;
        }

        /* ── LAYOUT ─────────────────────────────────────────── */
        .layout {
            position: relative;
            z-index: 2;
            display: flex;
            gap: 18px;
            align-items: stretch;
            justify-content: center;
            max-width: 1200px;
            width: 100%;
            padding: 18px;
            animation: fade-up 0.4s ease both;
            pointer-events: none;
        }

        /* ── MAIN GLASS CARD ─────────────────────────────────── */
        .overlay {
            position: relative;
            z-index: 10;
            text-align: center;
            background: var(--glass);
            padding: 24px;
            border-radius: 16px;
            backdrop-filter: blur(28px) saturate(1.4);
            -webkit-backdrop-filter: blur(28px) saturate(1.4);
            border: 1px solid var(--dim);
            box-shadow:
                0 0 0 1px rgba(var(--accent-rgb), 0.06),
                0 8px 60px rgba(0, 0, 0, 0.9),
                0 0 80px rgba(var(--accent-rgb), 0.06),
                inset 0 1px 0 rgba(var(--accent-rgb), 0.06);
            width: 500px;
            max-width: 95vw;
            max-height: 90vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            overflow-y: auto;
            overflow-x: hidden;
            pointer-events: auto;
        }

        .overlay::-webkit-scrollbar {
            width: 3px;
        }

        .overlay::-webkit-scrollbar-thumb {
            background: rgba(var(--accent-rgb), 0.25);
            border-radius: 2px;
        }

        /* animated top-edge glow line */
        .overlay::before {
            content: "";
            position: absolute;
            top: 0;
            left: -60%;
            width: 60%;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--cyan), var(--green), transparent);
            opacity: 0.6;
            animation: line-slide 5s ease-in-out infinite;
        }

        /* corner brackets */
        .overlay::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 44px;
            height: 44px;
            border-top: 2px solid rgba(var(--accent-rgb), 0.45);
            border-left: 2px solid rgba(var(--accent-rgb), 0.45);
            border-radius: 16px 0 0 0;
            pointer-events: none;
            animation: corner-glow 3s ease-in-out infinite;
        }

        /* ── INFO PANEL ─────────────────────────────────────── */
        .info-panel {
            position: relative;
            z-index: 10;
            background: var(--glass2);
            padding: 20px;
            border-radius: 16px;
            backdrop-filter: blur(22px) saturate(1.3);
            -webkit-backdrop-filter: blur(22px) saturate(1.3);
            border: 1px solid var(--dim);
            box-shadow:
                0 0 60px rgba(0, 0, 0, 0.85),
                0 0 40px rgba(var(--accent-rgb), 0.05),
                inset 0 1px 0 rgba(var(--accent-rgb), 0.05);
            width: 360px;
            max-width: 90vw;
            max-height: 90vh;
            display: flex;
            flex-direction: column;
            gap: 14px;
            overflow-y: auto;
            overflow-x: hidden;
            pointer-events: auto;
        }

        .info-panel::-webkit-scrollbar {
            width: 3px;
        }

        .info-panel::-webkit-scrollbar-thumb {
            background: rgba(var(--accent-rgb), 0.2);
            border-radius: 2px;
        }

        .info-panel::before {
            content: "";
            position: absolute;
            top: 0;
            left: -60%;
            width: 60%;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--pink), var(--cyan), transparent);
            opacity: 0.5;
            animation: line-slide 7s ease-in-out infinite 1.5s;
        }

        .info-heading {
            font-family: var(--mono);
            letter-spacing: 3px;
            font-size: 0.76rem;
            font-weight: 700;
            color: var(--green);
            text-shadow: 0 0 12px rgba(var(--accent-rgb), 0.75);
            text-transform: uppercase;
        }

        .meta-grid {
            display: grid;
            grid-template-columns: 90px 1fr;
            gap: 5px 10px;
            font-size: 0.75rem;
            color: #ffffff;
        }

        .meta-label {
            font-family: var(--mono);
            color: var(--green);
            font-size: 0.68rem;
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
        }

        /* ── LYRICS ─────────────────────────────────────────── */
        .lyrics-box {
            position: relative;
            background: rgba(14, 4, 6, 0.75);
            border: 1px solid rgba(var(--accent-rgb), 0.42);
            border-left: 3px solid var(--green);
            border-radius: 10px;
            padding: 10px;
            min-height: 180px;
            max-height: 260px;
            overflow-y: auto;
            color: #ffffff;
            font-size: 0.82rem;
            text-align: left;
            white-space: pre-wrap;
            scroll-behavior: smooth;
        }

        .lyrics-box::-webkit-scrollbar {
            width: 3px;
        }

        .lyrics-box::-webkit-scrollbar-thumb {
            background: rgba(var(--accent-rgb), 0.4);
            border-radius: 2px;
        }

        .lyrics-toolbar {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin: 0 0 8px;
            padding: 8px 10px;
            border: 1px solid rgba(var(--accent-rgb), 0.42);
            border-radius: 10px;
            background: rgba(14, 4, 6, 0.72);
        }

        .lyrics-toolbar-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .lyrics-toolbar-row--size {
            gap: 8px;
        }

        .viz-tuning-row {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
            margin-bottom: 6px;
            padding: 5px 8px;
            background: rgba(18, 5, 9, 0.72);
            border: 1px solid rgba(var(--accent-rgb), 0.42);
            border-radius: 4px;
            font-family: var(--mono);
        }

        #viz-energy-label,
        #viz-energy-value {
            color: #ffffff;
            font-size: 0.7rem;
            font-weight: 700;
        }

        .lyrics-toolbar-label {
            font-family: var(--mono);
            font-size: 0.7rem;
            font-weight: 600;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: #f1f5f9;
        }

        .lyrics-scroll-toggle {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            user-select: none;
        }

        .lyrics-scroll-toggle input {
            position: absolute;
            opacity: 0;
            pointer-events: none;
        }

        .lyrics-scroll-switch {
            position: relative;
            width: 40px;
            height: 22px;
            border-radius: 999px;
            border: 1px solid rgba(var(--accent-dim-rgb), 0.28);
            background: rgba(0, 0, 0, 0.58);
            box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.03);
            transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .lyrics-scroll-switch::after {
            content: '';
            position: absolute;
            top: 2px;
            left: 2px;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: rgba(var(--accent-rgb), 0.94);
            box-shadow: 0 0 10px rgba(var(--accent-dim-rgb), 0.24);
            transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
        }

        .lyrics-scroll-toggle input:checked+.lyrics-scroll-switch {
            background: rgba(var(--accent-rgb), 0.18);
            border-color: rgba(var(--accent-rgb), 0.48);
            box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.08);
        }

        .lyrics-scroll-toggle input:checked+.lyrics-scroll-switch::after {
            transform: translateX(18px);
            background: var(--green);
            box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.44);
        }

        .lyrics-scroll-toggle input:focus-visible+.lyrics-scroll-switch {
            outline: 2px solid rgba(var(--accent-dim-rgb), 0.56);
            outline-offset: 2px;
        }

        .lyrics-scroll-value {
            min-width: 58px;
            text-align: right;
            font-family: var(--mono);
            font-size: 0.64rem;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: rgba(var(--accent-rgb), 0.84);
        }

        .lyrics-line {
            padding: 5px 8px;
            margin: 2px 0;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.2s, color 0.2s, border-left-color 0.2s;
            line-height: 1.65;
            border-left: 2px solid transparent;
            white-space: pre-wrap;
            overflow-wrap: anywhere;
            color: #ffffff;
        }

        .lyrics-line:hover {
            background: rgba(var(--accent-rgb), 0.18);
            color: #ffffff;
            border-left-color: var(--green);
        }

        .lyrics-line.active {
            background: rgba(var(--accent-rgb), 0.26);
            color: #ffffff;
            font-weight: 700;
            border-left: 3px solid var(--green);
            padding-left: 6px;
            animation: lyric-pulse 1.6s ease-in-out infinite;
            text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.9), 0 0 20px rgba(var(--accent-dim-rgb), 0.6);
        }

        .linkish {
            color: var(--cyan);
            text-decoration: none;
        }

        .linkish:hover {
            text-decoration: underline;
            text-shadow: 0 0 6px var(--cyan);
        }

        /* ── HEADER SECTION + COVER ART ─────────────────────── */
        .header-section {
            width: 100%;
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 14px;
            margin-bottom: 14px;
            min-height: 180px;
        }

        .header-media {
            flex: 0 0 46%;
            min-width: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .cover-art {
            border-radius: 12px;
            border: 2px solid rgba(var(--accent-rgb), 0.45);
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            background-color: #090f09;
            box-shadow:
                0 0 0 1px rgba(var(--accent-rgb), 0.1),
                0 8px 40px rgba(0, 0, 0, 0.85),
                0 0 28px rgba(255, 0, 193, 0.18);
            transition: background-image 0.6s ease, width 0.25s ease, height 0.25s ease;
            animation: pulse-ring 4s ease-in-out infinite;
            position: relative;
            overflow: hidden;
        }

        .cover-art.cover-shape-square {
            aspect-ratio: 1;
            width: 100%;
            max-width: 200px;
            max-height: 200px;
        }

        .cover-art.cover-shape-portrait {
            aspect-ratio: 9 / 16;
            width: 100%;
            max-width: 100%;
            max-height: min(300px, 38vh);
            height: auto;
        }

        /* scanline on cover */
        .cover-art::before {
            content: "";
            position: absolute;
            inset: 0;
            background: repeating-linear-gradient(0deg,
                    rgba(0, 0, 0, 0) 0px, rgba(0, 0, 0, 0) 2px,
                    rgba(0, 0, 0, 0.18) 3px);
            pointer-events: none;
            border-radius: 12px;
        }

        .cover-art:hover {
            transform: translateY(-4px) scale(1.02);
            box-shadow:
                0 0 0 2px rgba(var(--accent-rgb), 0.45),
                0 16px 50px rgba(0, 0, 0, 0.9),
                0 0 40px rgba(255, 0, 193, 0.28);
        }

        .header-info {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: flex-start;
            text-align: left;
            padding: 6px 0;
        }

        .artist {
            font-family: var(--mono);
            font-size: clamp(1.05rem, 4.2vw, 1.45rem);
            color: #ffffff;
            margin-bottom: 12px;
            padding: 8px 12px;
            border-radius: 6px;
            background: rgba(0, 0, 0, 0.72);
            border-left: 4px solid #ff5fd4;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: bold;
            line-height: 1.3;
            word-break: break-word;
            text-shadow:
                0 2px 4px rgba(0, 0, 0, 1),
                0 0 18px rgba(255, 95, 212, 0.55);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
        }

        .glitch {
            font-family: var(--font);
            font-size: clamp(1.15rem, 3.5vw, 1.85rem);
            font-weight: 700;
            text-transform: uppercase;
            color: #fff;
            margin-bottom: 8px;
            line-height: 1.15;
            word-break: break-word;
            display: -webkit-box;
            -webkit-line-clamp: 4;
            -webkit-box-orient: vertical;
            overflow: hidden;
            max-width: 100%;
            animation: glitch 8s ease-in-out infinite;
            text-shadow: 0 0 10px rgba(0,0,0,0.9), 0 0 24px rgba(255,0,193,0.45);
        }

        .glitch a {
            color: inherit;
        }

        .stats {
            font-family: var(--mono);
            font-size: 0.62rem;
            color: #ffffff;
            letter-spacing: 1.5px;
            margin-bottom: 0;
            text-shadow: 0 0 10px rgba(0, 0, 0, 0.85);
        }

        /* ── GLOBAL TEXT INPUTS ─────────────────────────────── */
        input[type=text],
        input[type=search] {
            padding: 6px 8px;
            background: rgba(18, 5, 9, 0.85);
            color: #ffffff;
            border: 1px solid rgba(var(--accent-rgb), 0.45);
            font-family: var(--mono);
            font-size: 0.75rem;
            border-radius: 5px;
            outline: none;
            width: 100%;
            transition: border-color 0.18s, box-shadow 0.18s;
        }

        input[type=text]:focus,
        input[type=search]:focus {
            border-color: var(--terminal-green);
            box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.35);
        }

        input[type=text]::placeholder,
        input[type=search]::placeholder {
            color: rgba(255, 255, 255, 0.55);
        }

        /* ── TRACK ITEM REMOVE BUTTON (✕) ──────────────────── */
        /* Smaller inline pill, not the full playlist-item-btn */
        .track-item .playlist-item-btn {
            padding: 2px 7px;
            font-size: 0.6rem;
            border-radius: 3px;
            height: auto;
            line-height: 1.4;
            background: rgba(255, 0, 193, 0.1);
            border-color: rgba(255, 0, 193, 0.35);
            color: var(--pink);
            flex-shrink: 0;
        }

        .track-item .playlist-item-btn:hover {
            background: rgba(255, 0, 193, 0.25);
            border-color: var(--pink);
            box-shadow: 0 0 8px rgba(255, 0, 193, 0.3);
        }

        /* ── OFFLINE BADGE COMPACT ──────────────────────────── */
        .track-item .offline-badge {
            font-size: 0.5rem;
            padding: 1px 5px;
            letter-spacing: 0.5px;
            flex-shrink: 0;
        }

        /* ── TRACK ITEM INNER LAYOUT FIX ────────────────────── */
        .track-item>div:first-child {
            min-width: 0;
        }

        /* ── TRACK ITEM FLEX FIX (OVERRIDE) ────────────────── */
        /* Remove text-overflow props from the flex container;  */
        /* they caused OFFLINE+✕ to fall below the track name.  */
        .track-item {
            white-space: normal !important;
            overflow: visible !important;
            text-overflow: clip !important;
        }

        .track-item>div:first-child {
            min-width: 0;
            overflow: hidden;
        }

        .track-item>div:first-child>span:last-child {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            display: block;
        }

        /* Right-side container: never shrink, never push off */
        .track-item>div:last-child {
            flex-shrink: 0;
            margin-left: auto;
        }

        /* Offline badge: remove the stray margin-left:auto */
        .track-item .offline-badge {
            margin-left: 0 !important;
        }

        /* ── CONTROLS BLOCK ─────────────────────────────────── */
        .controls {
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-bottom: 14px;
            background: rgba(0, 8, 0, 0.55);
            padding: 14px 16px;
            border-radius: 10px;
            border: 1px solid rgba(var(--accent-rgb), 0.12);
            box-shadow:
                inset 0 1px 0 rgba(var(--accent-rgb), 0.04),
                inset 0 -1px 0 rgba(0, 0, 0, 0.3);
        }

        .time-row {
            display: flex;
            justify-content: space-between;
            font-family: var(--mono);
            font-size: 0.62rem;
            color: #ffffff;
            letter-spacing: 1px;
            margin-bottom: 2px;
        }

        /* ── SEEK BAR ───────────────────────────────────────── */
        input[type=range] {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            height: 16px;
            /* hit area */
            background: transparent;
            cursor: pointer;
            outline: none;
            margin: 0;
            padding: 0;
        }

        /* The track */
        input[type=range]::-webkit-slider-runnable-track {
            width: 100%;
            height: 3px;
            background: rgba(var(--accent-rgb), 0.38);
            border-radius: 3px;
            border: none;
            box-shadow: 0 0 6px rgba(var(--accent-rgb), 0.25);
        }

        input[type=range]::-moz-range-track {
            width: 100%;
            height: 3px;
            background: rgba(var(--accent-rgb), 0.38);
            border-radius: 3px;
            border: none;
        }

        /* The thumb */
        input[type=range]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            height: 13px;
            width: 13px;
            border-radius: 50%;
            background: var(--green);
            margin-top: -5px;
            box-shadow:
                0 0 8px var(--green),
                0 0 18px rgba(var(--accent-rgb), 0.45);
            border: 2px solid rgba(0, 0, 0, 0.7);
            transition: box-shadow 0.15s, transform 0.15s;
        }

        input[type=range]::-moz-range-thumb {
            height: 13px;
            width: 13px;
            border-radius: 50%;
            background: var(--green);
            box-shadow: 0 0 8px var(--green), 0 0 18px rgba(var(--accent-rgb), 0.45);
            border: 2px solid rgba(0, 0, 0, 0.7);
        }

        input[type=range]:hover::-webkit-slider-thumb {
            box-shadow:
                0 0 12px var(--green),
                0 0 28px rgba(var(--accent-rgb), 0.65);
            transform: scale(1.18);
        }

        input[type=range]:focus {
            outline: none;
        }

        input[type=range]:disabled::-webkit-slider-thumb {
            background: rgba(var(--accent-rgb), 0.25);
            box-shadow: none;
        }

        input[type=range]:disabled::-webkit-slider-runnable-track {
            background: rgba(var(--accent-rgb), 0.06);
        }

        /* ── CONTROLS ROW ───────────────────────────────────── */
        .controls-top {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            flex-wrap: wrap;
            margin-top: 4px;
        }

        .volume-cluster {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            min-width: 168px;
            padding: 5px 8px 5px 6px;
            border-radius: 999px;
            border: 1px solid rgba(var(--accent-dim-rgb), 0.22);
            background: linear-gradient(180deg, rgba(0, 18, 14, 0.7), rgba(0, 6, 4, 0.86));
            box-shadow: inset 0 1px 0 rgba(var(--accent-rgb), 0.03);
        }

        .btn.volume-btn {
            flex: 0 0 36px;
            width: 36px;
            height: 30px;
            border: 0 !important;
            color: var(--cyan);
            font-size: 0.78rem;
            background: transparent !important;
            box-shadow: none !important;
            text-shadow: 0 0 10px rgba(var(--accent-dim-rgb), 0.45);
        }

        .btn.volume-btn::before {
            display: none;
        }

        .btn.volume-btn:hover {
            color: var(--white);
            border: 0 !important;
            background: rgba(var(--accent-dim-rgb), 0.06) !important;
            box-shadow: 0 0 10px rgba(var(--accent-dim-rgb), 0.14) !important;
            text-shadow: 0 0 14px rgba(var(--accent-dim-rgb), 0.65);
        }

        .btn.volume-btn:active,
        .btn.volume-btn:focus,
        .btn.volume-btn:focus-visible {
            border: 0 !important;
            outline: none;
            box-shadow: 0 0 10px rgba(var(--accent-dim-rgb), 0.16) !important;
        }

        .volume-slider-wrap {
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
            flex: 1;
        }

        .volume-label {
            color: rgba(var(--accent-dim-rgb), 0.9);
            font-family: var(--mono);
            font-size: 0.56rem;
            letter-spacing: 0.14em;
            white-space: nowrap;
        }

        #volume-bar {
            flex: 1;
            min-width: 70px;
            height: 14px;
        }

        .volume-readout {
            min-width: 34px;
            text-align: right;
            color: rgba(var(--accent-rgb), 0.95);
            font-family: var(--mono);
            font-size: 0.56rem;
            letter-spacing: 0.08em;
        }

        /* ── PLAYBACK BUTTONS (.btn) ─────────────────────────── */
        .btn {
            position: relative;
            overflow: hidden;
            background: rgba(16, 5, 8, 0.78);
            border: 1px solid rgba(var(--accent-rgb), 0.5);
            color: #ffffff;
            width: 40px;
            height: 34px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 6px;
            font-family: var(--mono);
            font-size: 0.75rem;
            letter-spacing: 0.5px;
            transition: border-color 0.18s, color 0.18s, box-shadow 0.18s, background 0.18s;
            text-shadow: 0 0 6px rgba(var(--accent-rgb), 0.4);
        }

        /* sweep flash on hover */
        .btn::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(105deg, transparent 30%, rgba(var(--accent-rgb), 0.28) 50%, transparent 70%);
            transform: translateX(-100%) skewX(-12deg);
            pointer-events: none;
        }

        .btn:hover::before {
            animation: sweep 0.38s ease-out forwards;
        }

        .btn:hover {
            border-color: var(--green);
            color: #ffffff;
            background: rgba(var(--accent-rgb), 0.22);
            box-shadow:
                0 0 14px rgba(var(--accent-rgb), 0.45),
                inset 0 0 12px rgba(var(--accent-rgb), 0.12);
            text-shadow: 0 0 10px var(--green);
        }

        .btn:active {
            transform: scale(0.95);
            box-shadow: 0 0 6px rgba(var(--accent-rgb), 0.2);
        }

        .btn:disabled {
            opacity: 0.28;
            cursor: not-allowed;
            border-color: rgba(var(--accent-rgb), 0.1);
            color: rgba(var(--accent-rgb), 0.3);
            box-shadow: none;
            text-shadow: none;
        }

        .btn:disabled::before {
            display: none;
        }

        /* ── ACTION BUTTON (CACHE/DOWNLOAD) ─────────────────── */
        .action-btn {
            font-size: 0.58rem;
            width: auto;
            padding: 0 12px;
            border-color: rgba(var(--accent-rgb), 0.55);
            color: #ffffff;
            text-shadow: 0 0 8px rgba(var(--accent-rgb), 0.5);
            letter-spacing: 1px;
        }

        .action-btn::before {
            background: linear-gradient(105deg, transparent 30%, rgba(var(--accent-rgb), 0.25) 50%, transparent 70%);
        }

        .action-btn:hover {
            border-color: var(--green);
            color: #ffffff;
            background: rgba(var(--accent-rgb), 0.22);
            box-shadow:
                0 0 14px rgba(var(--accent-rgb), 0.45),
                inset 0 0 10px rgba(var(--accent-rgb), 0.12);
            text-shadow: 0 0 14px var(--green);
        }

        /* ── SUPPORT ARTIST BUTTON ──────────────────────────── */
        .support-btn {
            position: relative;
            overflow: hidden;
            margin-top: 8px;
            width: 100%;
            padding: 9px 12px;
            background: transparent;
            color: var(--pink);
            border: 1px solid rgba(255, 0, 193, 0.4);
            font-family: var(--mono);
            font-size: 0.7rem;
            letter-spacing: 2px;
            cursor: pointer;
            border-radius: 6px;
            transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
            text-transform: uppercase;
            text-shadow: 0 0 8px rgba(255, 0, 193, 0.4);
        }

        .support-btn::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(105deg, transparent 30%, rgba(255, 0, 193, 0.18) 50%, transparent 70%);
            transform: translateX(-100%) skewX(-12deg);
            pointer-events: none;
        }

        .support-btn:hover::before {
            animation: sweep 0.42s ease-out forwards;
        }

        .support-btn:hover {
            border-color: var(--pink);
            background: rgba(255, 0, 193, 0.07);
            box-shadow: 0 0 14px rgba(255, 0, 193, 0.3), inset 0 0 10px rgba(255, 0, 193, 0.05);
            text-shadow: 0 0 16px var(--pink);
        }

        .support-btn:active {
            transform: scale(0.98);
        }

        /* ── SMALL BUTTONS (SAVE, MANAGE, SEARCH…) ──────────── */
        .small-btn {
            position: relative;
            overflow: hidden;
            padding: 5px 10px;
            background: rgba(18, 5, 9, 0.82);
            color: #f1f5f9;
            border: 1px solid rgba(var(--accent-rgb), 0.45);
            cursor: pointer;
            font-family: var(--mono);
            font-size: 0.65rem;
            font-weight: 600;
            letter-spacing: 1px;
            border-radius: 4px;
            white-space: nowrap;
            transition: border-color 0.16s, color 0.16s, box-shadow 0.16s, background 0.16s;
        }

        .small-btn::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(105deg, transparent 30%, rgba(var(--accent-rgb), 0.18) 50%, transparent 70%);
            transform: translateX(-100%) skewX(-12deg);
            pointer-events: none;
        }

        .small-btn:hover::before {
            animation: sweep 0.34s ease-out forwards;
        }

        .small-btn:hover {
            border-color: var(--terminal-green);
            color: #ffffff;
            background: rgba(var(--accent-rgb), 0.22);
            box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.35);
        }

        /* ── SELECT DROPDOWNS ───────────────────────────────── */
        select {
            flex: 1;
            padding: 5px 8px;
            background: rgba(18, 5, 9, 0.85);
            color: #ffffff;
            border: 1px solid rgba(var(--accent-rgb), 0.45);
            outline: none;
            cursor: pointer;
            font-family: var(--mono);
            font-size: 0.7rem;
            letter-spacing: 0.5px;
            border-radius: 4px;
            transition: border-color 0.16s, box-shadow 0.16s;
            appearance: none;
            -webkit-appearance: none;
            background-image: none;
            background-repeat: no-repeat;
            background-position: right 8px center;
            padding-right: 24px;
        }

        select option {
            background: #120509;
            color: #ffffff;
        }

        select:hover,
        select:focus {
            border-color: var(--terminal-green);
            box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.35);
            color: #ffffff;
        }

        select option {
            background: #030a03;
            color: var(--green);
            font-family: var(--mono);
        }

        /* ── PLAYLIST CONTAINER ─────────────────────────────── */
        .playlist-container {
            width: 100%;
            flex-grow: 1;
            overflow-y: auto;
            background: rgba(0, 4, 0, 0.5);
            border: 1px solid rgba(var(--accent-rgb), 0.1);
            border-radius: 8px;
            text-align: left;
            box-shadow: inset 0 1px 0 rgba(var(--accent-rgb), 0.03);
        }

        .queue-playlist-container {
            flex: 1;
            min-height: 0;
            max-height: none;
            margin-bottom: 0;
        }

        .playlist-container::-webkit-scrollbar {
            width: 3px;
        }

        .playlist-container::-webkit-scrollbar-thumb {
            background: rgba(var(--accent-rgb), 0.2);
            border-radius: 2px;
        }

        /* ── TRACK ITEMS ─────────────────────────────────────── */
        .track-item {
            padding: 7px 12px;
            border-bottom: 1px solid rgba(var(--accent-rgb), 0.04);
            font-family: var(--mono);
            font-size: 0.7rem;
            color: rgba(var(--accent-dim-rgb), 0.88);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: background 0.15s, color 0.15s, border-left-color 0.15s;
            border-left: 2px solid transparent;
            animation: track-in 0.25s ease both;
        }

        .track-item:hover {
            background: rgba(var(--accent-rgb), 0.07);
            color: rgba(var(--accent-rgb), 0.9);
            border-left-color: rgba(var(--accent-rgb), 0.3);
        }

        .track-item.active {
            background: rgba(var(--accent-rgb), 0.12);
            color: var(--green);
            border-left: 2px solid var(--green);
            text-shadow: 0 0 8px rgba(var(--accent-rgb), 0.35);
        }

        .track-item .index {
            color: rgba(var(--accent-dim-rgb), 0.65);
            font-size: 0.58rem;
            min-width: 18px;
            flex-shrink: 0;
        }

        .track-item-main {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 8px;
            overflow: hidden;
            cursor: pointer;
            min-width: 0;
        }

        .track-item-text {
            display: flex;
            flex-direction: column;
            gap: 2px;
            min-width: 0;
            overflow: hidden;
        }

        .track-item-title {
            color: #ffffff;
            font-size: 0.72rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .track-item-artist {
            color: rgba(var(--accent-dim-rgb), 0.88);
            font-size: 0.62rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .track-item-actions {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
        }

        .track-item .playlist-item-btn {
            min-width: 32px;
            min-height: 32px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .offline-badge {
            padding: 1px 6px;
            background: rgba(var(--accent-rgb), 0.1);
            border: 1px solid rgba(var(--accent-rgb), 0.3);
            border-radius: 3px;
            font-size: 0.52rem;
            color: var(--green);
            letter-spacing: 0.5px;
            text-shadow: 0 0 6px rgba(var(--accent-rgb), 0.4);
            flex-shrink: 0;
        }

        /* ── PLAYLIST MANAGER ───────────────────────────────── */
        .playlist-manager {
            width: 100%;
            margin-bottom: 8px;
            display: flex;
            flex-direction: column;
            gap: 7px;
        }

        .playlist-row {
            display: flex;
            gap: 7px;
            align-items: center;
        }

        /* ── SAVE FORM ──────────────────────────────────────── */
        .playlist-save-form {
            display: none;
            flex-direction: column;
            gap: 8px;
            padding: 10px 12px;
            background: rgba(0, 4, 0, 0.7);
            border: 1px solid rgba(var(--accent-rgb), 0.15);
            border-radius: 6px;
        }

        .playlist-save-form.active {
            display: flex;
        }

        /* ── MANAGE / SEARCH PANELS ─────────────────────────── */
        .playlist-manage-panel {
            display: none;
            flex-direction: column;
            gap: 5px;
            padding: 10px 12px;
            background: rgba(0, 4, 0, 0.7);
            border: 1px solid rgba(var(--accent-rgb), 0.13);
            border-radius: 6px;
            max-height: min(40vh, 320px);
            overflow-y: auto;
        }

        .playlist-manage-panel::-webkit-scrollbar {
            width: 3px;
        }

        .playlist-manage-panel::-webkit-scrollbar-thumb {
            background: rgba(var(--accent-rgb), 0.2);
            border-radius: 2px;
        }

        .playlist-manage-panel.active {
            display: flex;
        }

        /* ── PLAYLIST ITEMS (in MANAGE panel) ───────────────── */
        .playlist-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 5px 8px;
            background: rgba(0, 5, 0, 0.5);
            border: 1px solid rgba(var(--accent-rgb), 0.09);
            border-radius: 4px;
            font-size: 0.68rem;
            transition: border-color 0.15s;
        }

        .playlist-item:hover {
            border-color: rgba(var(--accent-rgb), 0.25);
        }

        .playlist-item-name {
            flex: 1;
            color: rgba(var(--accent-rgb), 0.8);
            font-family: var(--mono);
            font-size: 0.65rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .playlist-item-btn {
            position: relative;
            overflow: hidden;
            padding: 3px 8px;
            background: rgba(0, 5, 0, 0.7);
            color: rgba(var(--accent-rgb), 0.7);
            border: 1px solid rgba(var(--accent-rgb), 0.2);
            cursor: pointer;
            font-family: var(--mono);
            font-size: 0.58rem;
            border-radius: 3px;
            transition: border-color 0.15s, background 0.15s, color 0.15s;
            white-space: nowrap;
            letter-spacing: 0.5px;
        }

        .playlist-item-btn:hover {
            border-color: rgba(var(--accent-rgb), 0.5);
            background: rgba(var(--accent-rgb), 0.1);
            color: var(--green);
        }

        .playlist-item-btn.delete {
            color: rgba(255, 0, 193, 0.7);
            border-color: rgba(255, 0, 193, 0.2);
        }

        .playlist-item-btn.delete:hover {
            color: var(--pink);
            border-color: rgba(255, 0, 193, 0.55);
            background: rgba(255, 0, 193, 0.08);
            box-shadow: 0 0 6px rgba(255, 0, 193, 0.2);
        }

        /* ── VIZ SELECTOR ROW ───────────────────────────────── */
        .viz-select-row {
            display: flex;
            gap: 7px;
            width: 100%;
            margin-bottom: 6px;
            align-items: center;
        }

        #viz-surprise-btn.active {
            border-color: var(--green);
            color: var(--green);
            box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.28);
        }

        /* ── SETTINGS ROW ──────────────────────────────────── */
        .settings-row {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            width: 100%;
            margin-bottom: 6px;
            padding: 5px 8px;
            background: rgba(18, 5, 9, 0.72);
            border: 1px solid rgba(var(--accent-rgb), 0.38);
            border-radius: 4px;
            font-family: var(--mono);
        }

        .settings-label {
            font-size: 0.75rem;
            font-weight: 600;
            color: #ffffff;
            flex-shrink: 0;
        }

        .settings-toggle {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 0.65rem;
            font-weight: 600;
            letter-spacing: 0.5px;
            color: #f1f5f9;
            cursor: pointer;
            white-space: nowrap;
            user-select: none;
        }

        .settings-toggle input[type="checkbox"] {
            accent-color: var(--green);
            cursor: pointer;
        }

        .settings-select {
            padding: 3px 5px;
            font-size: 0.6rem;
            flex: 0 0 auto;
        }

        .settings-cap-input {
            width: 38px;
            padding: 2px 4px;
            background: rgba(18, 5, 9, 0.85);
            border: 1px solid rgba(var(--accent-rgb), 0.45);
            color: #ffffff;
            font-family: var(--mono);
            font-size: 0.65rem;
            border-radius: 3px;
            outline: none;
            text-align: center;
        }

        .settings-cap-input:focus {
            border-color: var(--terminal-green);
        }

        /* ── CAMERA CONTROLS ROW ────────────────────────────── */
        .cam-control-row {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
            width: 100%;
            margin-bottom: 6px;
            padding: 5px 8px;
            background: rgba(18, 5, 9, 0.72);
            border: 1px solid rgba(var(--accent-rgb), 0.38);
            border-radius: 4px;
            font-family: var(--mono);
        }

        .cam-control-label {
            font-size: 0.68rem;
            font-weight: 700;
            color: #ffffff;
            flex-shrink: 0;
            letter-spacing: 0.5px;
        }

        .cam-btn {
            padding: 3px 8px;
            font-size: 0.62rem;
            font-weight: 600;
            font-family: var(--mono);
            letter-spacing: 0.5px;
            background: rgba(18, 5, 9, 0.75);
            border: 1px solid rgba(var(--accent-rgb), 0.42);
            color: #f1f5f9;
            border-radius: 3px;
            cursor: pointer;
            transition: background 0.15s, color 0.15s, border-color 0.15s;
            white-space: nowrap;
        }

        .cam-btn:hover {
            background: rgba(var(--accent-rgb), 0.22);
            color: #ffffff;
            border-color: var(--terminal-green);
        }

        .cam-btn.active {
            background: rgba(var(--accent-rgb), 0.32);
            color: #ffffff;
            border-color: var(--terminal-green);
            text-shadow: 0 0 8px rgba(var(--accent-rgb), 0.6);
        }

        .cam-fov-group {
            display: flex;
            align-items: center;
            gap: 4px;
            margin-left: auto;
        }

        .cam-fov-label {
            font-size: 0.62rem;
            font-weight: 600;
            color: #ffffff;
            font-family: var(--mono);
            letter-spacing: 0.5px;
        }

        .cam-fov-input {
            width: 44px;
            padding: 2px 4px;
            background: rgba(18, 5, 9, 0.85);
            border: 1px solid rgba(var(--accent-rgb), 0.45);
            color: #ffffff;
            font-family: var(--mono);
            font-size: 0.65rem;
            border-radius: 3px;
            outline: none;
            text-align: center;
        }

        .cam-fov-input:focus {
            border-color: var(--terminal-green);
        }

        /* ── FLY-MODE HINT OVERLAY ──────────────────────────── */
        #fly-hint {
            display: none;
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 9000;
            background: rgba(0, 5, 0, 0.88);
            border: 1px solid rgba(var(--accent-dim-rgb), 0.5);
            border-radius: 6px;
            padding: 10px 18px;
            color: rgba(var(--accent-dim-rgb), 0.85);
            font-family: var(--mono);
            font-size: 0.65rem;
            letter-spacing: 0.5px;
            pointer-events: none;
            text-align: center;
            line-height: 1.7;
        }

        #fly-hint.visible {
            display: block;
        }

        /* ── SCREEN-SPACE CYBER LYRICS HUD OVERLAY ───────────── */
        .viz-lyrics-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 10;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-end;
            padding-bottom: 38px;
            box-sizing: border-box;
            opacity: 0;
            transform: translateY(14px) scale(0.98);
            transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .viz-lyrics-overlay.active {
            opacity: 1;
            transform: translateY(0) scale(1);
        }

        .viz-lyrics-hud {
            --lyric-scale: 1;
            --lyric-glow-blur: 14px;
            --lyric-size-multiplier: 0.68;
            max-width: min(88%, 920px);
            background: linear-gradient(180deg, rgba(10, 4, 16, 0.76) 0%, rgba(4, 2, 8, 0.88) 100%);
            border: 1px solid rgba(var(--accent-rgb, 255, 59, 77), 0.38);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65), 0 0 var(--lyric-glow-blur) rgba(var(--accent-rgb, 255, 59, 77), 0.25);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-radius: 12px;
            padding: 12px 24px;
            text-align: center;
            transform: scale(var(--lyric-scale));
            transition: transform 0.08s ease-out, box-shadow 0.12s ease-out, border-color 0.2s ease;
            position: relative;
        }

        /* Subtle cyber corner brackets */
        .viz-lyrics-hud::before,
        .viz-lyrics-hud::after {
            content: '';
            position: absolute;
            width: 10px;
            height: 10px;
            pointer-events: none;
            border-color: rgba(var(--accent-rgb, 255, 59, 77), 0.7);
            border-style: solid;
        }
        .viz-lyrics-hud::before {
            top: -2px;
            left: -2px;
            border-width: 2px 0 0 2px;
            border-top-left-radius: 12px;
        }
        .viz-lyrics-hud::after {
            bottom: -2px;
            right: -2px;
            border-width: 0 2px 2px 0;
            border-bottom-right-radius: 12px;
        }

        .viz-lyrics-current {
            font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
            font-size: calc(1.5rem * var(--lyric-size-multiplier, 0.68) * 1.45);
            font-weight: 700;
            line-height: 1.25;
            letter-spacing: -0.01em;
            color: #ffffff;
            text-shadow: 0 0 16px rgba(var(--accent-rgb, 255, 59, 77), 0.85),
                         0 0 32px rgba(var(--accent-rgb, 255, 59, 77), 0.45);
            transition: color 0.2s ease, text-shadow 0.2s ease;
            overflow-wrap: break-word;
            word-break: break-word;
        }

        .viz-lyrics-current.pulse-line {
            animation: viz-lyric-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        }

        @keyframes viz-lyric-pop {
            0% { transform: scale(0.96); opacity: 0.85; }
            50% { transform: scale(1.02); opacity: 1; }
            100% { transform: scale(1); opacity: 1; }
        }

        .viz-lyrics-next {
            display: none;
            margin-top: 6px;
            font-family: var(--mono, 'Space Mono', monospace);
            font-size: calc(0.72rem * var(--lyric-size-multiplier, 0.68) * 1.3);
            letter-spacing: 0.04em;
            color: rgba(255, 255, 255, 0.45);
            line-height: 1.35;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
        }

        .viz-lyrics-next::before {
            content: '› ';
            color: rgba(var(--accent-rgb, 255, 59, 77), 0.65);
        }

        @media (max-width: 768px) {
            .viz-lyrics-overlay {
                padding-bottom: 20px;
            }
            .viz-lyrics-hud {
                max-width: 94%;
                padding: 10px 16px;
            }
            .viz-lyrics-current {
                font-size: calc(1.2rem * var(--lyric-size-multiplier, 0.68) * 1.45);
            }
            .viz-lyrics-next {
                font-size: calc(0.65rem * var(--lyric-size-multiplier, 0.68) * 1.3);
            }
        }

        /* ── FULLSCREEN / HIDE-UI MODE ──────────────────────── */
        body.fullscreen .info-panel,
        body.fullscreen .playlist-container,
        body.fullscreen .playlist-manager,
        body.fullscreen .queue-up-next,
        body.fullscreen .viz-select-row,
        body.fullscreen .settings-row,
        body.fullscreen .cam-control-row,
        body.fullscreen .support-btn {
            display: none !important;
        }

        /*
         * body is display:block by default so the #side-panel can be position:fixed.
         * In fullscreen (HIDE UI) mode the side panel is hidden and the .layout becomes
         * the direct flex child of body, centred at the bottom of the viewport.
         */
        body.fullscreen {
            display: flex;
            align-items: flex-end;
            justify-content: center;
            padding-bottom: 28px;
        }

        body.fullscreen .layout {
            padding-bottom: 0;
        }

        body.fullscreen .overlay {
            width: 100%;
            max-width: 860px;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            padding: 10px 20px;
            background: rgba(2, 8, 2, 0.55);
            backdrop-filter: blur(18px) saturate(1.3);
            -webkit-backdrop-filter: blur(18px) saturate(1.3);
            border-color: rgba(var(--accent-rgb), 0.12);
            box-shadow:
                0 0 40px rgba(0, 0, 0, 0.85),
                inset 0 1px 0 rgba(var(--accent-rgb), 0.04);
            overflow: visible;
        }

        body.fullscreen .overlay::before,
        body.fullscreen .overlay::after {
            display: none !important;
        }

        body.fullscreen .header-section {
            width: auto;
            min-height: 0;
            flex-direction: row;
            align-items: center;
            margin-bottom: 0;
            gap: 14px;
            text-align: left;
        }

        body.fullscreen .header-media {
            flex: 0 0 auto;
        }

        body.fullscreen .header-info {
            padding: 0;
        }

        body.fullscreen .cover-art,
        body.fullscreen .cover-art.cover-shape-square,
        body.fullscreen .cover-art.cover-shape-portrait {
            width: 46px;
            height: 46px;
            max-width: 46px;
            max-height: 46px;
            aspect-ratio: 1;
            margin-bottom: 0;
            border-width: 1px;
            flex-shrink: 0;
            animation: none;
            box-shadow: 0 0 12px rgba(255, 0, 193, 0.2);
        }

        body.fullscreen .glitch {
            font-size: 0.88rem;
            margin-bottom: 2px;
            white-space: nowrap;
        }

        body.fullscreen .artist {
            font-size: 0.6rem;
            margin-bottom: 0;
        }

        body.fullscreen .stats {
            display: none;
        }

        /* ── BROADCAST EMBED (iframe inside broadcast.html) ───── */
        body.broadcast-embed #side-panel,
        body.broadcast-embed #collapsed-now-playing,
        body.broadcast-embed #fly-hint {
            display: none !important;
        }

        body.broadcast-embed {
            display: block !important;
            padding: 0 !important;
            overflow: hidden;
        }

        body.broadcast-embed .layout,
        body.broadcast-embed.fullscreen .overlay {
            display: none !important;
        }

        body.fullscreen .controls {
            width: 380px;
            flex-shrink: 0;
            margin-bottom: 0;
            padding: 0;
            background: transparent;
            border: none;
            box-shadow: none;
        }

        /* ── RESPONSIVE ─────────────────────────────────────── */
        /* Mobile Fixes Moved to Consolidated Section at Bottom */

        /* ── SIDE PANEL ──────────────────────────────────────────── */
        #side-panel {
            position: fixed;
            left: 0;
            top: 0;
            height: 100vh;
            width: 620px;
            max-width: 96vw;
            z-index: 20;
            display: flex;
            flex-direction: column;
            background: rgba(2, 8, 2, 0.62);
            backdrop-filter: blur(20px) saturate(1.4);
            -webkit-backdrop-filter: blur(20px) saturate(1.4);
            border-right: 1px solid rgba(var(--accent-rgb), 0.18);
            box-shadow: 4px 0 40px rgba(0, 0, 0, 0.8), inset -1px 0 0 rgba(var(--accent-rgb), 0.06);
            overflow: hidden;
            transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        }

        body.panel-collapsed #side-panel {
            transform: translateX(-100%);
        }

        /* ── DESKTOP FEED LAYER (wide browse beside / behind panel) ── */
        #feed-layer {
            display: none;
        }

        @media (min-width: 981px) {
            body.tab-feed #feed-layer {
                display: flex;
                flex-direction: column;
                position: fixed;
                top: 0;
                right: 0;
                height: 100vh;
                z-index: 12;
                overflow: hidden;
                background:
                    radial-gradient(circle at top, rgba(var(--accent-dim-rgb), 0.08), transparent 34%),
                    linear-gradient(180deg, rgba(4, 16, 10, 0.82), rgba(2, 9, 5, 0.88));
                transition:
                    left 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            }

            #feed-layer #bg-viz {
                position: absolute;
                inset: 0;
                width: 100%;
                height: 100%;
                z-index: 0;
                pointer-events: none;
                opacity: 0.38;
                mix-blend-mode: screen;
            }

            #feed-layer #tab-content-feed {
                position: relative;
                z-index: 1;
            }

            body[data-bancamp-integrated-feed="true"]:not(.tab-feed) #bg-viz {
                display: none !important;
            }

            body.tab-feed:not(.panel-collapsed) #feed-layer {
                left: 620px;
                width: calc(100vw - 620px);
            }

            body.tab-feed.panel-collapsed #feed-layer {
                left: 0;
                width: 100vw;
            }

            body.tab-feed #feed-layer #tab-content-feed {
                display: flex !important;
                flex: 1;
                min-height: 0;
                width: 100%;
            }

            body.tab-feed #feed-layer #tab-content-feed #main-site {
                max-width: 1200px;
                margin: 0 auto;
                width: 100%;
            }

            body.tab-feed:not(.panel-collapsed) #side-panel #tab-content-player {
                display: flex !important;
            }

            body.tab-feed #side-panel #tab-content-queue {
                display: none !important;
            }

            body.tab-queue #feed-layer {
                display: none !important;
            }

            body.tab-queue:not(.panel-collapsed) #side-panel #tab-content-queue {
                display: flex !important;
            }

            body.tab-queue #side-panel #tab-content-player,
            body.tab-queue #side-panel #tab-content-feed {
                display: none !important;
            }

            body.tab-feed #side-panel #tab-content-feed {
                display: none !important;
            }

            body.tab-feed #tab-content-feed .content-wrapper {
                max-width: 1200px;
            }

            /* Split view: full player deck is already on the left */
            body.tab-feed:not(.panel-collapsed) #feed-mini-player {
                display: none !important;
            }

        }

        /* On mobile, collapse slides the panel DOWN (not left) */
        @media (max-width: 980px) {
            body.panel-collapsed #side-panel {
                transform: translateY(calc(100% - 60px)) !important;
            }
        }

        /* ── PANEL TAB ROW ───────────────────────────────────────── */
        .panel-tab-row {
            display: flex;
            gap: 4px;
            padding: 10px 12px 8px;
            border-bottom: 1px solid rgba(var(--accent-rgb), 0.14);
            background: rgba(0, 4, 0, 0.55);
            flex-shrink: 0;
            align-items: center;
        }

        .panel-collapse-btn {
            margin-left: auto;
            flex-shrink: 0;
            padding: 6px 10px;
            background: rgba(var(--bg-rgb, 0, 5, 0), 0.65);
            color: rgba(var(--accent-rgb), 0.75);
            border: 1px solid rgba(var(--accent-rgb), 0.28);
            border-radius: 4px;
            cursor: pointer;
            font-family: var(--mono);
            font-size: 0.65rem;
            letter-spacing: 1px;
            white-space: nowrap;
        }

        .panel-collapse-btn:hover {
            border-color: rgba(var(--accent-rgb), 0.55);
            color: var(--green);
            background: rgba(var(--accent-rgb), 0.08);
        }

        .panel-tab {
            position: relative;
            overflow: hidden;
            padding: 6px 14px;
            background: rgba(14, 4, 6, 0.75);
            color: #e2e8f0;
            border: 1px solid rgba(var(--accent-rgb), 0.45);
            cursor: pointer;
            font-family: var(--mono);
            font-size: 0.65rem;
            letter-spacing: 1.5px;
            border-radius: 4px;
            white-space: nowrap;
            transition: border-color 0.16s, color 0.16s, box-shadow 0.16s, background 0.16s;
            text-decoration: none;
        }

        .panel-tab:hover {
            border-color: var(--green);
            color: #ffffff;
            background: rgba(var(--accent-rgb), 0.16);
            box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.35);
        }

        .panel-tab.active {
            border-color: var(--green);
            color: #ffffff;
            background: rgba(var(--accent-rgb), 0.22);
            box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.4);
            text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.8);
        }

        @keyframes player-tab-hint-pulse {
            0%, 100% {
                box-shadow: 0 0 3px rgba(var(--accent-rgb), 0.1);
                border-color: rgba(var(--accent-rgb), 0.32);
                color: rgba(var(--accent-rgb), 0.68);
            }
            50% {
                box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.32);
                border-color: rgba(var(--accent-rgb), 0.58);
                color: rgba(var(--accent-rgb), 0.92);
            }
        }

        .panel-tab.is-playing-hint:not(.active) {
            animation: player-tab-hint-pulse 2.6s ease-in-out infinite;
            background: rgba(var(--accent-rgb), 0.06);
        }

        @media (prefers-reduced-motion: reduce) {
            .panel-tab.is-playing-hint:not(.active) {
                animation: none;
                box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.22);
                border-color: rgba(var(--accent-rgb), 0.48);
                color: rgba(var(--accent-rgb), 0.82);
            }
        }

        @media (max-width: 980px) {
            .panel-tab {
                font-size: 0.58rem;
                padding: 6px 10px;
                letter-spacing: 1px;
            }
        }

        /* ── TAB CONTENT AREAS ───────────────────────────────────── */
        #tab-content-player {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 0;
        }

        #tab-content-queue {
            flex: 1;
            display: flex;
            flex-direction: column;
            min-height: 0;
            overflow: hidden;
            padding: 0;
        }

        #queue-panel-root {
            display: flex;
            flex-direction: column;
            flex: 1;
            min-height: 0;
            padding: 14px 14px 20px;
            gap: 10px;
        }

        .queue-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            flex-shrink: 0;
            padding: 8px 10px;
            background: rgba(0, 4, 0, 0.55);
            border: 1px solid rgba(var(--accent-rgb), 0.14);
            border-radius: 8px;
        }

        .queue-header-left,
        .queue-header-right {
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
        }

        .queue-header-title {
            font-family: var(--mono);
            font-size: 0.68rem;
            letter-spacing: 1.5px;
            color: var(--green);
        }

        .queue-header-count {
            font-family: var(--mono);
            font-size: 0.62rem;
            color: rgba(var(--accent-dim-rgb), 0.9);
            white-space: nowrap;
        }

        .queue-source-badge {
            font-family: var(--mono);
            font-size: 0.58rem;
            color: rgba(var(--accent-dim-rgb), 0.95);
            padding: 3px 8px;
            border: 1px solid rgba(var(--accent-rgb), 0.2);
            border-radius: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 160px;
        }

        .queue-clear-btn {
            min-width: 32px;
            min-height: 32px;
            color: rgba(255, 0, 193, 0.75);
            border-color: rgba(255, 0, 193, 0.25);
        }

        .queue-action-row .small-btn {
            flex: 1;
            min-height: 34px;
        }

        #load-playlist-btn {
            flex-shrink: 0;
            min-width: 58px;
            min-height: 34px;
        }

        .queue-up-next {
            width: 100%;
            margin-bottom: 12px;
            padding: 10px 12px;
            background: rgba(18, 5, 9, 0.75);
            border: 1px solid rgba(var(--accent-rgb), 0.45);
            border-radius: 8px;
            text-align: left;
        }

        .queue-up-next-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 8px;
        }

        .queue-up-next-label {
            font-family: var(--mono);
            font-size: 0.68rem;
            letter-spacing: 1.2px;
            color: #ffffff;
            font-weight: 700;
        }

        .queue-up-next-list {
            display: flex;
            flex-direction: column;
            gap: 4px;
            max-height: 108px;
            overflow: hidden;
        }

        .queue-up-next-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 5px 6px;
            border-radius: 4px;
            cursor: pointer;
            transition: background 0.15s;
        }

        .queue-up-next-item:hover {
            background: rgba(var(--accent-rgb), 0.15);
        }

        .queue-up-next-text {
            display: flex;
            flex-direction: column;
            gap: 1px;
            min-width: 0;
            overflow: hidden;
        }

        .queue-up-next-title {
            font-family: var(--mono);
            font-size: 0.68rem;
            color: #ffffff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .queue-up-next-artist {
            font-family: var(--mono);
            font-size: 0.58rem;
            color: rgba(255, 255, 255, 0.72);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .queue-up-next-empty {
            font-family: var(--mono);
            font-size: 0.62rem;
            color: rgba(var(--accent-dim-rgb), 0.75);
            text-align: center;
            padding: 6px 0;
        }

        .player-details-accordion {
            border: none;
            margin: 0;
            padding: 0;
        }

        .player-details-summary {
            cursor: pointer;
            list-style: none;
            user-select: none;
        }

        .player-details-summary::-webkit-details-marker {
            display: none;
        }

        .player-details-summary::before {
            content: '▸ ';
            color: rgba(var(--accent-dim-rgb), 0.88);
        }

        .player-details-accordion[open] .player-details-summary::before {
            content: '▾ ';
        }

        .player-details-accordion .meta-grid {
            margin-top: 10px;
        }

        #tab-content-queue .playlist-manager {
            flex-shrink: 0;
            margin-bottom: 0;
        }

        #tab-content-feed {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 0;
            min-height: 0;
            position: relative;
            background:
                radial-gradient(circle at top, rgba(var(--accent-dim-rgb), 0.08), transparent 34%),
                linear-gradient(180deg, rgba(4, 16, 10, 0.94), rgba(2, 9, 5, 0.98));
        }

        #feed-mini-player {
            position: relative;
            display: flex;
            flex-direction: column;
            gap: 8px;
            grid-column: 1 / -1;
            width: 100%;
            margin-bottom: 0;
            padding: 10px 12px 9px;
            border: 1px solid rgba(var(--accent-rgb), 0.14);
            border-radius: 14px;
            background:
                linear-gradient(180deg, rgba(2, 11, 8, 0.97), rgba(2, 11, 8, 0.88)),
                radial-gradient(circle at top, rgba(var(--accent-dim-rgb), 0.12), transparent 54%);
            backdrop-filter: blur(16px);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
        }

        #feed-mini-player .feed-mini-main {
            display: grid;
            grid-template-columns: 64px minmax(0, 1fr) 42px;
            gap: 12px;
            align-items: stretch;
        }

        #feed-mini-cover {
            width: 64px;
            height: 64px;
            border-radius: 12px;
            border: 1px solid rgba(var(--accent-rgb), 0.16);
            cursor: pointer;
            background:
                linear-gradient(180deg, rgba(var(--accent-rgb), 0.05), rgba(0, 0, 0, 0.2)),
                url('/icons/icon-512.png') center/cover no-repeat;
            box-shadow: inset 0 1px 0 rgba(var(--accent-rgb), 0.04), 0 10px 20px rgba(0, 0, 0, 0.18);
            transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
        }

        #feed-mini-cover:hover {
            transform: translateY(-1px);
            border-color: rgba(var(--accent-dim-rgb), 0.34);
            box-shadow: inset 0 1px 0 rgba(var(--accent-rgb), 0.04), 0 14px 26px rgba(0, 0, 0, 0.24);
        }

        #feed-mini-player .feed-mini-meta {
            display: flex;
            flex-direction: column;
            gap: 8px;
            min-width: 0;
        }

        #feed-mini-player .feed-mini-now-playing {
            display: flex;
            flex-direction: column;
            gap: 2px;
            min-width: 0;
            cursor: pointer;
        }

        #feed-mini-player .feed-mini-artist {
            color: rgba(var(--accent-dim-rgb), 0.82);
            font-size: 0.62rem;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        #feed-mini-player .feed-mini-title {
            color: #ffffff;
            font-family: var(--mono);
            font-size: 0.78rem;
            letter-spacing: 0.08em;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        #feed-mini-player .feed-mini-now-playing:hover .feed-mini-title {
            color: #ffffff;
            text-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
        }

        #feed-mini-player .feed-mini-time-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            font-family: var(--mono);
            font-size: 0.64rem;
            letter-spacing: 0.12em;
            color: rgba(255, 255, 255, 0.85);
        }

        #feed-mini-player .feed-mini-time-row span {
            white-space: nowrap;
        }

        #feed-mini-seek {
            height: 14px;
        }

        #feed-mini-player .feed-mini-controls {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
        }

        #feed-mini-player .feed-mini-btn {
            min-width: 42px;
            min-height: 34px;
            padding: 0 9px;
            border-radius: 999px;
            border: 1px solid rgba(var(--accent-rgb), 0.18);
            background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.08), rgba(0, 0, 0, 0.24));
            color: var(--white);
            font-family: var(--font);
            font-size: 0.78rem;
            letter-spacing: 0.08em;
            cursor: pointer;
            transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
        }

        #feed-mini-player .feed-mini-btn--transport {
            flex: 1 1 0;
        }

        #feed-mini-player .feed-mini-btn--viz {
            min-width: 42px;
            flex: 0 0 auto;
        }

        #feed-mini-player .feed-mini-btn--panel {
            display: none;
            min-width: 42px;
            flex: 0 0 auto;
            letter-spacing: 0;
        }

        @media (min-width: 981px) {
            body.tab-feed.panel-collapsed #feed-mini-player .feed-mini-btn--panel {
                display: inline-flex;
            }
        }

        #feed-mini-player .feed-mini-volume {
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 0;
        }

        #feed-mini-player .feed-mini-volume-shell {
            position: relative;
            width: 42px;
            min-height: 100%;
            border-radius: 999px;
            border: 1px solid rgba(var(--accent-dim-rgb), 0.16);
            background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(var(--accent-rgb), 0.08));
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 8px 0;
        }

        #feed-mini-volume {
            width: 98px;
            height: 18px;
            margin: 0;
            transform: rotate(-90deg);
            transform-origin: center;
        }

        #feed-mini-player .feed-mini-btn:hover:not(:disabled) {
            transform: translateY(-1px);
            border-color: rgba(var(--accent-dim-rgb), 0.38);
            box-shadow: 0 0 20px rgba(var(--accent-dim-rgb), 0.12);
            background: linear-gradient(180deg, rgba(var(--accent-dim-rgb), 0.14), rgba(0, 0, 0, 0.2));
        }

        #feed-mini-player .feed-mini-btn:disabled {
            opacity: 0.45;
            cursor: not-allowed;
            box-shadow: none;
        }

        #tab-content-feed::-webkit-scrollbar {
            width: 5px;
        }

        #tab-content-feed::-webkit-scrollbar-thumb {
            background: rgba(var(--accent-rgb), 0.2);
            border-radius: 999px;
        }

        #tab-content-player::-webkit-scrollbar {
            width: 4px;
        }

        #tab-content-player::-webkit-scrollbar-thumb {
            background: rgba(var(--accent-rgb), 0.22);
            border-radius: 2px;
        }

        /* Make .layout fill panel width, not centered */
        #tab-content-player .layout {
            max-width: none;
            width: 100%;
            padding: 14px 14px 20px;
            flex-direction: column;
            align-items: stretch;
            animation: none;
        }

        #tab-content-player .overlay {
            width: 100%;
            max-width: none;
            max-height: none;
            border-radius: 12px;
        }

        #tab-content-player .info-panel {
            width: 100%;
            max-width: none;
            max-height: none;
            border-radius: 12px;
        }

        /* ── TOP-RIGHT CONTROLS ─────────────────────────────────── */
        #top-right-controls {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 9999;
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 10px 16px;
            background: rgba(0, 0, 0, 0.82);
            border: 1px solid rgba(var(--accent-rgb), 0.25);
            border-radius: 14px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(12px);
            transition: opacity 0.3s ease;
        }
        /* ── COLLAPSED NOW PLAYING (player / queue, panel hidden) ── */
        #collapsed-now-playing {
            display: none;
            position: fixed;
            top: 20px;
            left: 20px;
            z-index: 10040;
            align-items: center;
            gap: 12px;
            max-width: min(420px, calc(100vw - 200px));
            padding: 10px 14px;
            border: 1px solid rgba(var(--accent-rgb), 0.18);
            border-radius: 14px;
            background:
                linear-gradient(180deg, rgba(2, 11, 8, 0.94), rgba(2, 11, 8, 0.82)),
                radial-gradient(circle at top, rgba(var(--accent-dim-rgb), 0.1), transparent 54%);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
            cursor: pointer;
            transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
        }

        body.panel-collapsed:not(.fullscreen):not(.tab-feed) #collapsed-now-playing {
            display: flex;
        }

        #collapsed-now-playing:hover {
            transform: translateY(-1px);
            border-color: rgba(var(--accent-dim-rgb), 0.32);
            box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
        }

        #collapsed-now-playing-cover {
            flex: 0 0 56px;
            width: 56px;
            height: 56px;
            border-radius: 10px;
            border: 1px solid rgba(var(--accent-rgb), 0.16);
            background:
                linear-gradient(180deg, rgba(var(--accent-rgb), 0.05), rgba(0, 0, 0, 0.2)),
                url('/icons/icon-512.png') center/cover no-repeat;
            box-shadow: inset 0 1px 0 rgba(var(--accent-rgb), 0.04), 0 8px 18px rgba(0, 0, 0, 0.22);
        }

        .collapsed-now-playing-meta {
            display: flex;
            flex-direction: column;
            gap: 3px;
            min-width: 0;
        }

        #collapsed-now-playing-artist {
            color: rgba(var(--accent-dim-rgb), 0.82);
            font-family: var(--mono);
            font-size: 0.62rem;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        #collapsed-now-playing-title {
            color: #ffffff;
            font-family: var(--mono);
            font-size: 0.82rem;
            letter-spacing: 0.08em;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        #collapsed-now-playing:hover #collapsed-now-playing-title {
            color: #ffffff;
            text-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
        }

        body.player-modal-open #collapsed-now-playing {
            opacity: 0.35;
            pointer-events: none;
        }

        #lyrics-toggle-btn {
            min-width: 72px;
        }

        #viz-energy-label {
            font-family: var(--mono);
            font-size: 0.64rem;
            letter-spacing: 0.18em;
            color: rgba(195, 247, 255, 0.86);
            text-transform: uppercase;
            white-space: nowrap;
        }

        #viz-energy-slider {
            width: 112px;
            height: 16px;
        }

        #viz-energy-value {
            min-width: 36px;
            text-align: right;
            font-family: var(--mono);
            font-size: 0.62rem;
            letter-spacing: 0.12em;
            color: rgba(var(--accent-rgb), 0.74);
        }

        #lyric-size-label {
            font-family: var(--mono);
            font-size: 0.64rem;
            letter-spacing: 0.18em;
            color: rgba(255, 228, 199, 0.84);
            text-transform: uppercase;
            white-space: nowrap;
        }

        #lyric-size-slider {
            width: 96px;
            height: 16px;
        }

        #lyric-size-value {
            min-width: 36px;
            text-align: right;
            font-family: var(--mono);
            font-size: 0.62rem;
            letter-spacing: 0.12em;
            color: rgba(255, 235, 214, 0.76);
        }

        /* ── FEED SECTION (index.html styles inside panel) ───────── */
        /* Override index.html's top-nav for panel context */
        #tab-content-feed #main-site {
            width: 100%;
            max-width: 100%;
            min-height: 100%;
            box-sizing: border-box;
            overflow-x: hidden;
        }

        #tab-content-feed .top-nav {
            position: sticky;
            top: 0;
            z-index: 100;
            display: flex;
            flex-direction: row;
            flex-wrap: nowrap;
            justify-content: space-between;
            align-items: center;
            gap: 10px 14px;
            padding: 8px 16px;
            min-height: 48px;
            box-sizing: border-box;
            background: linear-gradient(180deg, rgba(14, 4, 7, 0.96), rgba(18, 5, 9, 0.90));
            backdrop-filter: blur(14px);
            border-bottom: 1px solid rgba(var(--accent-rgb), 0.35);
            box-shadow: 0 18px 34px rgba(0, 0, 0, 0.45);
        }

        #tab-content-feed #feed-mini-player {
            width: calc(100% - 32px);
            margin: 10px 16px 0 16px;
            box-sizing: border-box;
        }

        #tab-content-feed .integrated-feed-brand {
            display: flex;
            flex-direction: row;
            flex-wrap: nowrap;
            align-items: center;
            gap: 8px 12px;
            flex-shrink: 0;
        }

        #tab-content-feed .integrated-feed-brand .logo {
            color: #ffffff;
            font-size: 1.15rem;
            font-weight: 800;
            text-shadow: 0 0 14px rgba(var(--accent-rgb), 0.5);
            text-decoration: none;
            letter-spacing: 0.04em;
            white-space: nowrap;
        }

        #tab-content-feed .integrated-feed-brand .blink {
            color: var(--terminal-green);
        }

        #tab-content-feed .integrated-feed-status {
            display: inline-flex;
            align-items: center;
            width: fit-content;
            gap: 8px;
            padding: 4px 8px;
            border: 1px solid rgba(var(--accent-dim-rgb), 0.35);
            border-radius: 999px;
            background: rgba(var(--accent-dim-rgb), 0.12);
            color: #f1f5f9;
            font-size: 0.65rem;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            white-space: nowrap;
        }

        #tab-content-feed .integrated-feed-status::before {
            content: '';
            width: 7px;
            height: 7px;
            border-radius: 999px;
            background: var(--green);
            box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.8);
        }

        #tab-content-feed .user-nav {
            display: flex;
            flex-direction: row;
            flex-wrap: nowrap;
            justify-content: flex-start;
            align-items: center;
            gap: 6px;
            margin-left: auto;
            flex: 1 1 auto;
            min-width: 0;
            padding: 0;
            overflow-x: auto;
            overflow-y: hidden;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        #tab-content-feed .user-nav::-webkit-scrollbar {
            display: none;
        }

        #tab-content-feed .user-nav .loading-text {
            flex: 0 0 auto;
            white-space: nowrap;
            color: #ffffff;
            font-size: 0.72rem;
            letter-spacing: 0.14em;
            text-transform: uppercase;
        }

        #tab-content-feed .user-nav .nav-item,
        #tab-content-feed .user-nav .nav-link,
        #tab-content-feed .user-nav button {
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            height: 32px !important;
            min-height: 32px !important;
            padding: 0 8px !important;
            border-radius: 4px;
            border: 1px solid rgba(var(--accent-rgb), 0.48);
            background: rgba(18, 5, 9, 0.85);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
            color: #f1f5f9;
            text-decoration: none;
            font-size: 0.74rem !important;
            font-weight: 600;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            white-space: nowrap;
            transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
        }

        #tab-content-feed .user-nav .nav-item:hover,
        #tab-content-feed .user-nav .nav-link:hover,
        #tab-content-feed .user-nav button:hover {
            border-color: var(--terminal-green);
            background: rgba(var(--accent-rgb), 0.25);
            box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.35);
            color: #ffffff;
            transform: translateY(-1px);
        }

        #tab-content-feed .nav-text-short {
            display: none;
        }
        body.tab-feed:not(.panel-collapsed) #tab-content-feed .nav-text-full {
            display: none;
        }
        body.tab-feed:not(.panel-collapsed) #tab-content-feed .nav-text-short {
            display: inline;
        }
        @media (max-width: 1400px) {
            #tab-content-feed .nav-text-full {
                display: none;
            }
            #tab-content-feed .nav-text-short {
                display: inline;
            }
        }

        #tab-content-feed .user-nav .nav-emoji {
            color: #ff00c1 !important;
            text-shadow: 0 0 8px rgba(255, 0, 193, 0.45);
            font-size: 1.1em;
        }

        #tab-content-feed .user-nav .nav-item:hover .nav-emoji,
        #tab-content-feed .user-nav .nav-link:hover .nav-emoji {
            color: #ffffff !important;
            text-shadow: none;
        }

        #tab-content-feed .user-nav a[href="/api/auth/login"] {
            order: -1;
            margin-left: auto;
            padding-inline: 18px;
            border-color: var(--terminal-green);
            background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.35), rgba(18, 5, 9, 0.9));
            color: #ffffff;
            font-weight: 700;
            box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.3);
        }

        #tab-content-feed .user-nav a[href="/api/auth/login"]:hover {
            border-color: #ffffff;
            background: var(--terminal-green);
            color: #000000;
            box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.6);
        }

        #tab-content-feed .content-wrapper {
            padding: 18px 18px 32px;
            max-width: none;
        }

        #tab-content-feed .global-banner {
            margin: 0 0 14px;
            max-width: none;
        }

        #tab-content-feed .hero-section {
            margin-bottom: 14px;
        }

        #tab-content-feed .spotlight-banner {
            margin-bottom: 18px;
        }

        #tab-content-feed .track-page-head {
            grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
            gap: 16px;
            width: 100%;
        }

        #tab-content-feed .track-page-meta {
            min-width: 0;
        }

        #tab-content-feed .track-page-artist {
            font-size: clamp(1.3rem, 3.1vw, 2.15rem);
            line-height: 1.02;
            overflow-wrap: anywhere;
            word-break: break-word;
            text-wrap: balance;
        }

        #tab-content-feed .track-page-title {
            max-width: 100%;
            font-size: clamp(0.94rem, 1.8vw, 1.08rem);
            line-height: 1.45;
            overflow-wrap: anywhere;
            word-break: break-word;
        }

        #tab-content-feed .track-page-actions .bc-btn,
        #tab-content-feed .action-bar .bc-btn {
            flex: 1 1 9rem;
            min-width: min(9rem, 100%);
        }

        #tab-content-feed .track-page-actions--admin {
            margin-top: 8px;
            gap: 6px;
            flex-wrap: wrap;
            align-items: center;
            width: 100%;
        }

        #tab-content-feed .track-page-actions--admin:not(:has(> :not([style*="display: none"]):not([style*="display:none"]))) {
            display: none !important;
        }

        #tab-content-feed .track-page-actions--admin .bc-btn,
        #tab-content-feed .track-page-actions--admin a.bc-btn {
            flex: 0 0 auto !important;
            min-width: auto !important;
            height: 30px !important;
            min-height: 30px !important;
            padding: 0 8px !important;
            font-size: 0.74rem !important;
            letter-spacing: 0.02em !important;
            white-space: nowrap !important;
        }

        #tab-content-feed .track-page-facts {
            overflow-wrap: anywhere;
        }

        #tab-content-feed #search-modal {
            align-items: center;
            justify-content: center;
            padding: 20px;
            background: rgba(2, 8, 6, 0.82);
            backdrop-filter: blur(14px);
        }

        /* Feed modals portaled to #player-modal-root — full viewport, above side panel + top controls */
        #player-modal-root {
            position: relative;
            z-index: 10050;
            pointer-events: none;
        }

        #player-modal-root > * {
            pointer-events: auto;
        }

        #player-modal-root .modal-overlay,
        #player-modal-root .contact-modal {
            z-index: 10050;
            align-items: center;
            justify-content: center;
            padding: max(20px, env(safe-area-inset-top, 0px)) 20px max(20px, env(safe-area-inset-bottom, 0px));
        }

        body.player-modal-open #side-panel {
            pointer-events: none;
        }

        #tab-content-feed .search-modal-shell {
            width: min(760px, calc(100vw - 40px));
            max-height: min(82vh, 820px);
            display: flex;
            flex-direction: column;
            border: 1px solid rgba(var(--accent-dim-rgb), 0.16);
            box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
            background:
                radial-gradient(circle at top right, rgba(var(--accent-dim-rgb), 0.08), transparent 30%),
                linear-gradient(180deg, rgba(2, 14, 8, 0.98), rgba(1, 8, 5, 0.98));
        }

        #tab-content-feed .search-modal-shell .modal-content {
            display: flex;
            flex-direction: column;
            gap: 14px;
            overflow: hidden;
        }

        #tab-content-feed .search-head {
            display: grid;
            gap: 12px;
        }

        #tab-content-feed .search-input-shell {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 10px;
            align-items: center;
            padding: 12px 14px;
            border: 1px solid rgba(var(--accent-rgb), 0.18);
            border-radius: 14px;
            background: rgba(0, 0, 0, 0.24);
        }

        #tab-content-feed .search-input-shell input {
            width: 100%;
            padding: 0;
            border: none;
            outline: none;
            background: transparent;
            color: var(--white);
            font-family: var(--font);
            font-size: 0.92rem;
            letter-spacing: 0.05em;
        }

        #tab-content-feed .search-input-shell input::placeholder {
            color: rgba(var(--accent-rgb), 0.48);
        }

        #tab-content-feed .search-shortcut {
            padding: 6px 10px;
            border-radius: 999px;
            border: 1px solid rgba(var(--accent-dim-rgb), 0.22);
            color: rgba(197, 249, 255, 0.8);
            font-size: 0.68rem;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            white-space: nowrap;
        }

        #tab-content-feed .search-meta {
            color: rgba(var(--accent-rgb), 0.72);
            font-size: 0.72rem;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }

        #tab-content-feed .search-tabs {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        #tab-content-feed .search-tab,
        #tab-content-feed .search-chip,
        #tab-content-feed .pagination-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 38px;
            padding: 0 12px;
            border-radius: 999px;
            border: 1px solid rgba(var(--accent-rgb), 0.2);
            background: rgba(0, 0, 0, 0.22);
            color: rgba(var(--accent-rgb), 0.88);
            font-family: var(--font);
            font-size: 0.73rem;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            cursor: pointer;
            transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease, color 0.18s ease;
        }

        #tab-content-feed .search-tab:hover,
        #tab-content-feed .search-chip:hover,
        #tab-content-feed .pagination-btn:hover:not(:disabled) {
            border-color: rgba(var(--accent-rgb), 0.45);
            background: rgba(var(--accent-rgb), 0.08);
            color: var(--white);
            transform: translateY(-1px);
        }

        #tab-content-feed .search-tab.active {
            border-color: rgba(var(--accent-dim-rgb), 0.42);
            background: rgba(var(--accent-dim-rgb), 0.1);
            color: var(--white);
            box-shadow: 0 0 18px rgba(var(--accent-dim-rgb), 0.1);
        }

        #tab-content-feed .search-filters {
            display: flex;
            gap: 10px;
            align-items: center;
            flex-wrap: wrap;
        }

        #tab-content-feed .search-filter-group {
            display: flex;
            gap: 6px;
            align-items: center;
            padding: 8px 10px;
            border-radius: 12px;
            border: 1px solid rgba(var(--accent-rgb), 0.12);
            background: rgba(0, 0, 0, 0.18);
        }

        #tab-content-feed .search-filter-label {
            color: rgba(var(--accent-rgb), 0.68);
            font-size: 0.68rem;
            letter-spacing: 0.14em;
            text-transform: uppercase;
        }

        #tab-content-feed .search-filter-group select {
            padding: 6px;
            background: #050505;
            color: #e5e5e5;
            border: 1px solid rgba(var(--accent-rgb), 0.2);
            font-family: var(--font);
        }

        #tab-content-feed #search-results {
            overflow-y: auto;
            min-height: 220px;
            max-height: min(48vh, 460px);
            margin: 0;
            padding-right: 4px;
        }

        #tab-content-feed .search-discovery {
            display: grid;
            gap: 14px;
        }

        #tab-content-feed .search-discovery-panel {
            padding: 14px;
            border-radius: 16px;
            border: 1px solid rgba(var(--accent-rgb), 0.12);
            background: rgba(0, 0, 0, 0.18);
        }

        #tab-content-feed .search-discovery-title {
            margin-bottom: 10px;
            color: var(--cyan);
            font-size: 0.72rem;
            letter-spacing: 0.16em;
            text-transform: uppercase;
        }

        #tab-content-feed .search-chip-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        #tab-content-feed .search-chip--recent {
            border-color: rgba(var(--accent-dim-rgb), 0.22);
        }

        #tab-content-feed .search-empty-copy {
            color: rgba(var(--accent-rgb), 0.68);
            line-height: 1.6;
            font-size: 0.86rem;
        }

        #tab-content-feed .search-result-item {
            display: grid;
            grid-template-columns: auto 1fr auto;
            gap: 12px;
            align-items: center;
            padding: 12px 14px;
            border: 1px solid rgba(var(--accent-rgb), 0.12);
            border-radius: 16px;
            background: rgba(0, 0, 0, 0.18);
            cursor: pointer;
            transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
        }

        #tab-content-feed .search-result-item+.search-result-item {
            margin-top: 10px;
        }

        #tab-content-feed .search-result-item:hover {
            border-color: rgba(var(--accent-rgb), 0.34);
            background: rgba(var(--accent-rgb), 0.06);
            transform: translateY(-1px);
        }

        #tab-content-feed .search-result-cover {
            width: 58px;
            height: 58px;
            border-radius: 12px;
            object-fit: cover;
            border: 1px solid rgba(var(--accent-rgb), 0.16);
            background: rgba(0, 0, 0, 0.3);
        }

        #tab-content-feed .search-result-info {
            min-width: 0;
        }

        #tab-content-feed .search-result-title {
            color: var(--white);
            font-size: 0.88rem;
            letter-spacing: 0.05em;
            overflow-wrap: anywhere;
        }

        #tab-content-feed .search-result-meta {
            margin-top: 4px;
            color: rgba(var(--accent-rgb), 0.62);
            font-size: 0.72rem;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }

        #tab-content-feed .search-result-action {
            min-width: 110px;
        }

        #tab-content-feed .pagination-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        #tab-content-feed .pagination-info {
            color: rgba(var(--accent-rgb), 0.68);
            font-size: 0.72rem;
            letter-spacing: 0.14em;
            text-transform: uppercase;
        }

        #tab-content-feed .pagination-btn:disabled {
            opacity: 0.35;
            cursor: not-allowed;
            transform: none;
        }

        #tab-content-feed .content-wrapper {
            padding: 18px 18px 32px;
        }

        #tab-content-feed .hero-section h2 {
            font-size: clamp(1.2rem, 2.6vw, 1.8rem);
        }

        #tab-content-feed .broadcast-hero {
            margin-top: 0;
        }

        /* ── FULLSCREEN: hide panel + toggle ─────────────────────── */
        body.fullscreen #side-panel {
            display: none;
        }

        /* ── RESPONSIVE: full-width panel on mobile ──────────────── */
        @media (max-width: 980px) {
            #side-panel {
                width: 100vw !important;
                max-width: 100vw !important;
                border-right: none;
            }

            #tab-content-feed .top-nav {
                display: flex !important;
                flex-direction: row !important;
                flex-wrap: nowrap !important;
                justify-content: space-between !important;
                align-items: center !important;
                padding: 8px 12px !important;
                gap: 8px !important;
            }

            #tab-content-feed .integrated-feed-brand {
                justify-content: flex-start;
                text-align: left;
            }

            #tab-content-feed .integrated-feed-status {
                margin: 0;
            }

            #tab-content-feed .user-nav {
                justify-content: flex-end !important;
                flex-wrap: nowrap !important;
                width: auto !important;
                max-width: none;
                padding: 0;
                gap: 6px;
                overflow-x: auto !important;
            }

            #tab-content-feed .user-nav .loading-text {
                text-align: left;
            }

            #tab-content-feed .user-nav a[href="/api/auth/login"] {
                margin-left: 0;
            }

            #tab-content-feed .content-wrapper {
                padding: 14px 14px 26px;
            }

            #feed-mini-player {
                width: 100%;
                padding: 9px 11px 8px;
            }

            #feed-mini-player .feed-mini-main {
                grid-template-columns: 52px minmax(0, 1fr) 36px;
                gap: 10px;
            }

            #feed-mini-cover {
                width: 52px;
                height: 52px;
            }

            #feed-mini-player .feed-mini-controls {
                gap: 6px;
            }

            #feed-mini-player .feed-mini-btn {
                min-width: 38px;
                min-height: 32px;
                padding: 0 7px;
            }

            #feed-mini-player .feed-mini-volume-shell {
                width: 36px;
                padding: 7px 0;
            }

            #feed-mini-volume {
                width: 82px;
                height: 16px;
            }

            #tab-content-feed .search-modal-shell {
                width: calc(100vw - 24px);
                max-height: calc(100vh - 24px);
            }

            #tab-content-feed .track-page-head {
                grid-template-columns: 1fr;
            }

            #tab-content-feed .track-page-cover {
                width: 100%;
                max-width: 260px;
                height: auto;
                aspect-ratio: 1;
            }

            #tab-content-feed .track-page-actions .bc-btn,
            #tab-content-feed .action-bar .bc-btn {
                min-width: 100%;
            }

            #tab-content-feed .search-input-shell,
            #tab-content-feed .search-result-item {
                grid-template-columns: 1fr;
            }

            #feed-mini-player .feed-mini-controls {
                gap: 6px;
            }

            #tab-content-feed .search-result-action {
                width: 100%;
            }

            #tab-content-feed .pagination-controls {
                justify-content: center;
            }

            /* Fix rail and card truncation — must reset grid-auto-flow */
            #tab-content-feed .rail-track {
                width: 100% !important;
                grid-auto-flow: row !important;
                grid-auto-columns: unset !important;
                grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
                overflow-x: visible !important;
                gap: 10px !important;
            }

            #tab-content-feed .track-card2 {
                max-width: none !important;
                width: 100% !important;
            }

            /* Handled in earlier media query with !important */
        }

        /* ── CONSOLIDATED MOBILE OVERRIDES (max-width: 980px) ───── */
        @media (max-width: 980px) {

            /* Side Panel Layout */
            #side-panel {
                width: 100vw !important;
                max-width: 100vw !important;
                height: 100dvh !important;
                border-right: none;
                top: 0;
                bottom: 0;
                left: 0;
                background: linear-gradient(180deg, rgba(3, 8, 3, 0.95), rgba(3, 8, 3, 0.9)) !important;
                border-radius: 0 !important;
                transform: translateZ(0);
            }

            body.panel-collapsed #side-panel {
                transform: translateY(calc(100% - 60px)) !important;
            }

            /* Top-Right Controls - Vertical Stack */
            #top-right-controls {
                display: flex !important;
                flex-direction: column !important;
                align-items: flex-end !important;
                top: 10px !important;
                right: 8px !important;
                left: auto !important;
                width: auto !important;
                gap: 8px !important;
                padding: 10px !important;
                background: rgba(0, 0, 0, 0.9) !important;
                border: 1px solid rgba(var(--accent-rgb), 0.4) !important;
                border-radius: 14px !important;
                z-index: 10001 !important;
            }

            #viz-energy-control,
            #lyric-size-control {
                display: flex !important;
                flex-direction: column !important;
                align-items: center !important;
                width: 100% !important;
                gap: 4px !important;
            }

            #viz-energy-slider,
            #lyric-size-slider {
                width: 120px !important;
                height: 44px !important;
            }

            body:not(.panel-collapsed) #top-right-controls {
                opacity: 0.1 !important;
                pointer-events: none !important;
            }

            body.tab-feed #lyrics-toggle-btn,
            body.tab-feed #viz-energy-control,
            body.tab-feed #lyric-size-control {
                display: none !important;
            }

            body.tab-feed.panel-collapsed #tab-content-feed .top-nav {
                padding-right: 64px !important;
            }
            #collapsed-now-playing {
                top: 10px;
                left: 10px;
                max-width: calc(100vw - 88px);
                padding: 8px 10px;
                gap: 10px;
            }

            #collapsed-now-playing-cover {
                flex-basis: 48px;
                width: 48px;
                height: 48px;
            }

            /* Branding & Nav in Feed Tab */
            #tab-content-feed .top-nav {
                display: flex !important;
                flex-direction: row !important;
                flex-wrap: nowrap !important;
                justify-content: space-between !important;
                align-items: center !important;
                padding: 8px 10px !important;
                gap: 6px !important;
            }

            #tab-content-feed .integrated-feed-brand {
                align-items: center !important;
                text-align: left !important;
            }

            #tab-content-feed .integrated-feed-brand .logo {
                font-size: 0.95rem !important;
            }

            #tab-content-feed .integrated-feed-status {
                margin: 0 !important;
            }

            #tab-content-feed .user-nav {
                justify-content: flex-end !important;
                flex-wrap: nowrap !important;
                width: auto !important;
                max-width: none !important;
                margin: 0 !important;
                padding: 0 !important;
                gap: 4px !important;
                overflow-x: auto !important;
                scrollbar-width: none !important;
            }
            #tab-content-feed .user-nav::-webkit-scrollbar {
                display: none !important;
            }

            #tab-content-feed .user-nav .nav-item,
            #tab-content-feed .user-nav .nav-link,
            #tab-content-feed .user-nav button {
                height: 28px !important;
                min-height: 28px !important;
                padding: 0 6px !important;
                font-size: 0.7rem !important;
            }

            /* Cards & Grid Fixes — must reset grid-auto-flow from style.css */
            #tab-content-feed .rail-track {
                width: 100% !important;
                grid-auto-flow: row !important;
                grid-auto-columns: unset !important;
                grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
                overflow-x: visible !important;
                gap: 12px !important;
            }

            #tab-content-feed .track-card2 {
                max-width: none !important;
                width: 100% !important;
            }

            /* Broadcast Hero Fixes */
            .broadcast-hero-inner {
                grid-template-columns: 1fr !important;
            }

            .broadcast-hero-cover {
                width: 100% !important;
                height: auto !important;
                aspect-ratio: 1 !important;
                max-width: 280px !important;
                margin: 0 auto !important;
            }

            .broadcast-actions {
                flex-wrap: wrap !important;
                justify-content: center !important;
                gap: 10px !important;
            }

            /* Mobile Open Button */
            #mobile-panel-open-btn {
                display: none;
                position: fixed;
                top: calc(10px + env(safe-area-inset-top, 0px));
                right: calc(10px + env(safe-area-inset-right, 0px));
                z-index: 10000;
                min-height: 44px;
                min-width: 44px;
                padding: 10px 14px;
                background: rgba(0, 0, 0, 0.8) !important;
                border: 1px solid rgba(var(--accent-rgb), 0.5) !important;
                color: var(--green) !important;
                border-radius: 8px;
            }

            body.panel-collapsed #mobile-panel-open-btn {
                display: block !important;
            }

            .panel-tab,
            .panel-collapse-btn {
                min-height: 44px;
                padding: 10px 14px !important;
                touch-action: manipulation;
            }
            /* Refresh Button Polish */
            .refresh-btn {
                padding: 4px 8px !important;
                font-size: 0.8rem !important;
                min-width: 44px !important;
                min-height: 44px !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                margin-left: 5px !important;
            }
        }

        .hidden {
            display: none !important;
        }
