
        /* =====================================================================
           Sidetrack Record Store — app-style layout
           Library rail | main panel | Now Playing panel, full-width player bar.
           Palette: near-black canvas, ember accent, teal "now playing" colour.
           ===================================================================== */
        :root {
            --canvas: #050608;
            --panel: #0f1217;
            --panel-2: #151a21;
            --panel-3: #1c222b;
            --hover: rgba(255, 255, 255, 0.07);
            --line: rgba(255, 255, 255, 0.08);
            --line-2: rgba(255, 255, 255, 0.14);
            --text: #f4f6f8;
            --text-2: #b3bcc7;
            --text-3: #7c8794;
            --accent: #ff7a1a;
            --accent-2: #ffa24d;
            --accent-ink: #1f0d00;
            --live: #2ee6c8;
            --live-ink: #032a24;
            --bad: #ff8a8a;
            --ok: #6ee7b7;
            --r-s: 8px; --r-m: 12px; --r-l: 16px; --r-xl: 22px;
            --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            --display: "Space Grotesk", "Inter", -apple-system, sans-serif;
            --player-h: 84px;
            --wash: 40, 52, 70;   /* set from cover art at runtime */
            /* legacy names still used by inline styles/JS */
            --bg-0: var(--panel); --muted: var(--text-2); --accent-2-legacy: var(--live);
        }
        * { box-sizing: border-box; }
        html, body { height: 100%; }
        body {
            margin: 0; background: var(--canvas); color: var(--text);
            font-family: var(--font); font-size: 15px; line-height: 1.45;
            -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
        }
        a { color: inherit; }
        button { font-family: inherit; }
        ::selection { background: rgba(255, 122, 26, 0.35); }
        .muted { color: var(--text-2); }
        .tiny { font-size: 0.75rem; }
        .st-icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; fill: currentColor; flex: none; }

        /* ---------- buttons ---------- */
        .btn {
            display: inline-flex; align-items: center; justify-content: center; gap: 8px;
            border: 1px solid var(--line-2); background: transparent; color: var(--text);
            border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 0.88rem;
            text-decoration: none; cursor: pointer; white-space: nowrap;
            transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
        }
        .btn:hover { border-color: rgba(255,255,255,0.35); transform: scale(1.02); }
        .btn:active { transform: scale(0.98); }
        .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
        .btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
        .btn.secondary { background: var(--text); border-color: var(--text); color: #0b0d10; }
        .btn.secondary:hover { background: #fff; }
        .btn.ghost { background: var(--hover); border-color: transparent; }
        .btn.ghost:hover { background: rgba(255,255,255,0.12); }
        .btn.in-basket { background: rgba(46,230,200,0.12) !important; border-color: rgba(46,230,200,0.45) !important; color: var(--live) !important; }
        .btn:disabled, .btn[disabled] {
            background: rgba(255,255,255,0.06) !important; border-color: transparent !important;
            color: rgba(244,246,248,0.35) !important; box-shadow: none !important; cursor: not-allowed; transform: none !important;
        }
        .icon-btn {
            display: inline-flex; align-items: center; gap: 6px; background: transparent; border: none;
            color: var(--text-2); cursor: pointer; padding: 6px 8px; border-radius: 999px; font-size: 0.82rem;
            transition: color 0.15s ease, background 0.15s ease;
        }
        .icon-btn:hover { color: var(--text); background: var(--hover); }
        .icon-btn.liked { color: #ff6b8b; }
        .round-btn {
            width: 40px; height: 40px; border-radius: 50%; border: none; display: inline-grid; place-items: center;
            background: rgba(0,0,0,0.45); color: var(--text); cursor: pointer; font-size: 1.05rem; transition: transform 0.12s ease, background 0.15s ease;
        }
        .round-btn:hover { background: rgba(0,0,0,0.7); transform: scale(1.05); }
        .play-fab {
            width: 56px; height: 56px; border-radius: 50%; border: none; display: inline-grid; place-items: center;
            background: var(--accent); color: var(--accent-ink); font-size: 1.35rem; cursor: pointer;
            box-shadow: 0 8px 24px rgba(0,0,0,0.45); transition: transform 0.12s ease, background 0.15s ease;
        }
        .play-fab:hover { transform: scale(1.06); background: var(--accent-2); }
        .pill {
            display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 10px;
            background: var(--hover); color: var(--text-2); font-size: 0.74rem; font-weight: 500;
        }
        .price { font-family: var(--display); font-weight: 700; color: var(--text); }

        /* ---------- app layout ---------- */
        .st-app {
            display: grid; height: 100vh; padding: 8px; gap: 8px;
            grid-template-columns: 296px minmax(0, 1fr);
            grid-template-rows: 56px minmax(0, 1fr);
            grid-template-areas: "top top" "side main";
        }
        body.np-open .st-app { grid-template-columns: 296px minmax(0, 1fr) 340px; grid-template-areas: "top top top" "side main now"; }
        body.has-player .st-app { height: calc(100vh - var(--player-h)); }

        .st-topbar { grid-area: top; display: flex; align-items: center; gap: 14px; padding: 0 8px; }
        .st-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; margin-right: auto; }
        .st-brand-mark { width: 34px; height: 34px; flex: none; }
        .st-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
        .st-brand-text b { font-family: var(--display); font-size: 1.06rem; letter-spacing: -0.01em; }
        .st-brand-text span { font-size: 0.7rem; color: var(--text-3); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; }
        .st-search {
            position: absolute; left: 50%; transform: translateX(-50%);
            width: min(480px, 40vw); display: flex; align-items: center; gap: 10px;
            background: var(--panel-2); border: 1px solid transparent; border-radius: 999px; padding: 0 16px; height: 46px;
            transition: border-color 0.15s ease, background 0.15s ease;
        }
        .st-search:hover { background: var(--panel-3); }
        .st-search:focus-within { border-color: rgba(255,255,255,0.4); background: var(--panel-3); }
        .st-search .st-icon { color: var(--text-3); font-size: 1.15rem; }
        .st-search input { flex: 1; min-width: 0; background: transparent; border: none; outline: none; color: var(--text); font-size: 0.95rem; font-family: inherit; }
        .st-search input::placeholder { color: var(--text-3); }
        .st-top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
        .st-user { font-size: 0.8rem; color: var(--text-3); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .rs-basket-btn { position: relative; }
        .rs-basket-badge {
            position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px;
            border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 0.7rem; font-weight: 800;
            display: none; align-items: center; justify-content: center; box-shadow: 0 0 0 3px var(--canvas);
        }
        .rs-basket-badge.show { display: flex; }

        .st-side, .st-main, .st-now { background: var(--panel); border-radius: var(--r-l); min-height: 0; }
        .st-side { grid-area: side; display: flex; flex-direction: column; overflow: hidden; }
        .st-main { grid-area: main; position: relative; overflow: hidden; }
        .st-main-scroll { height: 100%; overflow-y: auto; scroll-behavior: smooth; }
        .st-now { grid-area: now; display: none; overflow: hidden; }
        body.np-open .st-now { display: flex; flex-direction: column; }

        /* thin scrollbars */
        .st-main-scroll, .st-side-scroll, .st-now-scroll, .rs-song-scroll, .rs-basket-items { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.18) transparent; }

        /* ---------- library rail ---------- */
        .st-side-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 10px; }
        .st-side-head h2 { margin: 0; font-family: var(--display); font-size: 1rem; }
        .st-nav { display: grid; gap: 2px; padding: 0 8px 10px; }
        .st-nav button {
            display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: none; background: transparent;
            color: var(--text-2); font-weight: 700; font-size: 0.93rem; padding: 10px 12px; border-radius: var(--r-s); cursor: pointer;
        }
        .st-nav button:hover { color: var(--text); background: var(--hover); }
        .st-nav button.active { color: var(--text); background: var(--hover); }
        .st-nav .st-icon { font-size: 1.25rem; }
        .st-side-sep { height: 1px; background: var(--line); margin: 4px 16px 12px; }
        .st-side-scroll { flex: 1; overflow-y: auto; padding: 0 8px 12px; }
        .st-side-label { padding: 6px 12px 8px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-3); font-weight: 700; }
        .st-promo { margin: 4px 4px 12px; background: var(--panel-2); border-radius: var(--r-m); padding: 16px; }
        .st-promo b { display: block; font-family: var(--display); margin-bottom: 4px; }
        .st-promo p { margin: 0 0 12px; font-size: 0.82rem; color: var(--text-2); }
        .st-lib-row { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: var(--r-s); text-decoration: none; }
        .st-lib-row:hover { background: var(--hover); }
        .st-lib-thumb { width: 44px; height: 44px; border-radius: 6px; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, #3b2a70, #1d6b8a); color: #fff; }
        .st-lib-meta { min-width: 0; flex: 1; }
        .st-lib-meta b { display: block; font-weight: 600; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .st-lib-meta span { font-size: 0.76rem; color: var(--text-3); }
        .st-side-foot { padding: 10px 18px 16px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.72rem; }
        .st-side-foot a { color: var(--text-3); text-decoration: none; }
        .st-side-foot a:hover { color: var(--text); text-decoration: underline; }
        #myPurchases { list-style: none; margin: 0; padding: 0; }

        /* ---------- main panel ---------- */
        .st-main-wash {
            position: absolute; inset: 0 0 auto 0; height: 340px; pointer-events: none; z-index: 0;
            background: linear-gradient(180deg, rgba(var(--wash), 0.55) 0%, rgba(var(--wash), 0.18) 55%, rgba(15,18,23,0) 100%);
            transition: background 0.6s ease;
        }
        .st-main-inner { position: relative; z-index: 1; padding: 18px 24px 40px; }
        .st-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
        .st-seg { border: none; border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 0.86rem; cursor: pointer; background: rgba(255,255,255,0.08); color: var(--text); }
        .st-seg:hover { background: rgba(255,255,255,0.14); }
        .st-seg.active { background: var(--text); color: #0b0d10; }
        .st-filters-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
        .st-select {
            appearance: none; -webkit-appearance: none; background: rgba(255,255,255,0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23b3bcc7' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 8px center / 18px;
            color: var(--text); border: none; border-radius: 999px; padding: 7px 32px 7px 14px; font-size: 0.86rem; font-weight: 600; cursor: pointer; font-family: inherit;
        }
        .st-select option { background: var(--panel-2); }
        .st-pricebox { position: relative; }
        .st-pricebox summary { list-style: none; }
        .st-pricebox summary::-webkit-details-marker { display: none; }
        .st-pricebox-pop {
            position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 240px; padding: 14px;
            background: var(--panel-3); border: 1px solid var(--line-2); border-radius: var(--r-m); box-shadow: 0 18px 40px rgba(0,0,0,0.55);
            display: grid; gap: 10px;
        }
        .st-pricebox-pop label { font-size: 0.75rem; color: var(--text-2); display: grid; gap: 4px; }
        .st-input, .st-pricebox-pop input, .field input, .rs-basket-email input {
            width: 100%; background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r-s);
            padding: 9px 12px; font-size: 0.9rem; font-family: inherit; outline: none;
        }
        .st-input:focus, .st-pricebox-pop input:focus, .field input:focus, .rs-basket-email input:focus { border-color: rgba(255,255,255,0.45); }
        .chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 22px; scrollbar-width: none; }
        .chip-row::-webkit-scrollbar { display: none; }
        .chip {
            border: 1px solid var(--line-2); background: transparent; color: var(--text-2); border-radius: 999px;
            padding: 5px 12px; font-size: 0.78rem; font-weight: 600; cursor: pointer; white-space: nowrap; font-family: inherit;
        }
        .chip:hover { color: var(--text); border-color: rgba(255,255,255,0.35); }
        .chip.active { background: rgba(255,122,26,0.16); border-color: rgba(255,122,26,0.6); color: var(--accent-2); }
        .status { min-height: 0; margin: 0 0 12px; font-size: 0.88rem; color: var(--text-2); }
        .status:empty { display: none; }
        .status.error { color: var(--bad); }
        .status.ok { color: var(--ok); }

        .section { margin: 0 0 40px; }
        .section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
        .section-head h2 { margin: 0; font-family: var(--display); font-size: 1.5rem; letter-spacing: -0.02em; }
        .section-eyebrow { display: block; font-size: 0.74rem; color: var(--text-3); font-weight: 600; margin-bottom: 2px; }
        .section-head .muted { font-size: 0.82rem; }

        /* ---------- featured hero ---------- */
        .rs-hero {
            position: relative; display: grid; grid-template-columns: 232px 1fr; gap: 28px; align-items: end;
            padding: 8px 0 34px; margin-bottom: 8px;
        }
        .rs-hero.empty { display: none; }
        .rs-hero-art { width: 232px; height: 232px; border-radius: var(--r-s); object-fit: cover; box-shadow: 0 24px 60px rgba(0,0,0,0.55); cursor: pointer; background: var(--panel-3); }
        .rs-hero-eyebrow { font-size: 0.78rem; font-weight: 700; color: var(--text); opacity: 0.85; }
        .rs-hero-title {
            font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; line-height: 0.98;
            font-size: clamp(2.4rem, 5.4vw, 4.8rem); margin: 6px 0 12px; cursor: pointer; overflow-wrap: anywhere;
        }
        .rs-hero-title:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
        .rs-hero-artist { font-weight: 700; font-size: 0.95rem; }
        .rs-hero-artist span { color: var(--text-2); font-weight: 500; }
        .rs-hero-row { display: flex; gap: 14px; align-items: center; margin-top: 22px; flex-wrap: wrap; }
        .rs-hero-price { font-family: var(--display); font-size: 1.35rem; font-weight: 700; }

        /* ---------- quick tiles ---------- */
        .st-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-bottom: 40px; }
        .st-tile {
            position: relative; display: flex; align-items: center; gap: 12px; height: 60px; padding-right: 54px;
            background: rgba(255,255,255,0.07); border-radius: 6px; overflow: hidden; cursor: pointer; transition: background 0.15s ease;
        }
        .st-tile:hover { background: rgba(255,255,255,0.14); }
        .st-tile img { width: 60px; height: 60px; object-fit: cover; flex: none; box-shadow: 4px 0 16px rgba(0,0,0,0.35); background: var(--panel-3); }
        .st-tile b { font-size: 0.86rem; font-weight: 700; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
        .st-tile .st-tile-play {
            position: absolute; right: 10px; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; border: none;
            background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer;
            opacity: 0; transform: translateY(4px); transition: opacity 0.15s ease, transform 0.15s ease; box-shadow: 0 6px 16px rgba(0,0,0,0.45);
        }
        .st-tile:hover .st-tile-play, .st-tile.is-playing .st-tile-play { opacity: 1; transform: none; }
        .st-tile.is-playing b { color: var(--live); }

        /* ---------- track list (songs) ---------- */
        .st-tracklist { display: grid; }
        .st-tracklist-head, .st-track {
            display: grid; align-items: center; gap: 14px;
            grid-template-columns: 34px minmax(0, 1.6fr) minmax(0, 1fr) 64px 92px 150px;
            padding: 0 14px;
        }
        .st-tracklist-head {
            height: 36px; color: var(--text-3); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
            border-bottom: 1px solid var(--line); margin-bottom: 8px;
        }
        .st-tracklist-head .num, .st-track .num { text-align: center; }
        .st-tracklist-head .dur, .st-track .dur { text-align: right; }
        .st-track { min-height: 62px; border-radius: 6px; transition: background 0.12s ease; }
        .st-track:hover { background: var(--hover); }
        .st-track .num { color: var(--text-3); font-variant-numeric: tabular-nums; position: relative; height: 32px; display: grid; place-items: center; }
        .st-track .num .n { transition: opacity 0.1s; }
        .st-track .num button {
            position: absolute; inset: 0; border: none; background: transparent; color: var(--text); cursor: pointer; opacity: 0; font-size: 1rem;
            display: grid; place-items: center;
        }
        .st-track:hover .num .n { opacity: 0; }
        .st-track:hover .num button { opacity: 1; }
        .st-track.is-playing .num .n { opacity: 0; }
        .st-track.is-playing .num button { opacity: 1; color: var(--live); }
        .st-track-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
        .st-track-main img { width: 44px; height: 44px; border-radius: 4px; object-fit: cover; flex: none; background: var(--panel-3); cursor: pointer; }
        .st-track-text { min-width: 0; }
        .st-track-text .title { display: block; font-weight: 600; color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .st-track-text .title:hover { text-decoration: underline; }
        .st-track.is-playing .st-track-text .title { color: var(--live); }
        .st-track-text .artist { font-size: 0.82rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .st-track-tags { display: flex; gap: 6px; overflow: hidden; }
        .st-track-tags .pill { white-space: nowrap; }
        .st-track .dur { color: var(--text-3); font-size: 0.86rem; font-variant-numeric: tabular-nums; }
        .st-track-social { display: flex; justify-content: flex-end; opacity: 0.75; }
        .st-track:hover .st-track-social { opacity: 1; }
        .st-track-buy { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
        .st-track-buy .price { font-size: 0.95rem; }
        .st-track-buy .btn { padding: 6px 14px; font-size: 0.8rem; }
        .st-track.store-focus, .card.store-focus { animation: storeFocusPulse 1.2s ease-in-out 3; box-shadow: 0 0 0 2px rgba(255,122,26,0.8); }
        @keyframes storeFocusPulse { 50% { box-shadow: 0 0 0 6px rgba(255,122,26,0.18); } }
        .st-eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
        .st-eq i { width: 3px; background: var(--live); border-radius: 1px; animation: stEq 0.9s ease-in-out infinite; }
        .st-eq i:nth-child(2) { animation-delay: -0.3s; } .st-eq i:nth-child(3) { animation-delay: -0.6s; }
        @keyframes stEq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
        body.is-paused .st-eq i { animation-play-state: paused; }

        /* ---------- album cards ---------- */
        .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
        .card {
            position: relative; padding: 12px; border-radius: var(--r-s); cursor: pointer; transition: background 0.18s ease;
            display: flex; flex-direction: column; min-width: 0;
        }
        .card:hover { background: var(--hover); }
        .card .cover-wrap { position: relative; margin-bottom: 12px; }
        .card .cover { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; display: block; background: var(--panel-3); box-shadow: 0 10px 28px rgba(0,0,0,0.45); }
        .card .cover-play {
            position: absolute; right: 8px; bottom: 8px; width: 48px; height: 48px; border-radius: 50%; border: none;
            background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; font-size: 1.1rem;
            opacity: 0; transform: translateY(8px); transition: opacity 0.18s ease, transform 0.18s ease; box-shadow: 0 8px 22px rgba(0,0,0,0.5);
        }
        .card:hover .cover-play, .card.is-playing .cover-play { opacity: 1; transform: none; }
        .card .title { display: block; font-weight: 700; color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .card .title:hover { text-decoration: underline; }
        .card .artist { font-size: 0.82rem; color: var(--text-2); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .card .card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
        .card .card-foot .btn { padding: 5px 12px; font-size: 0.78rem; }
        .card .card-tools { position: absolute; top: 16px; left: 16px; display: flex; gap: 4px; opacity: 0; transition: opacity 0.15s; }
        .card:hover .card-tools { opacity: 1; }
        .card .card-tools .icon-btn { background: rgba(0,0,0,0.6); color: var(--text); }
        .st-empty { color: var(--text-3); font-size: 0.9rem; padding: 18px 14px; }

        /* ---------- your library ---------- */
        body.view-library .st-filters, body.view-library #tagChips, body.view-library #rsHero, body.view-library #stTiles,
        body.view-library #songsSection, body.view-library #albumsSection, body.view-library #sellerSection { display: none !important; }
        .st-library[hidden] { display: none; }
        .st-lib-h { font-family: var(--display); font-size: 1.15rem; margin: 26px 0 10px; }
        .st-claim { background: var(--panel-2); border-radius: var(--r-m); padding: 16px 18px; margin-bottom: 8px; }
        .st-claim label { display: block; font-weight: 700; margin-bottom: 8px; }
        .st-claim-row { display: flex; gap: 8px; }
        .st-claim-row .st-input { flex: 1; min-width: 0; }
        .st-claim-hint { font-size: 0.76rem; color: var(--text-3); margin-top: 8px; }
        .st-claim-msg { font-size: 0.84rem; margin-top: 8px; min-height: 1.1em; }
        .st-claim-msg.ok { color: var(--ok); } .st-claim-msg.err { color: var(--bad); }
        .st-lib-track { grid-template-columns: 34px minmax(0, 1fr) 64px auto !important; }
        .st-lib-track .btn { padding: 6px 14px; font-size: 0.8rem; }
        img.st-lib-thumb { object-fit: cover; background: var(--panel-3); }
        .st-lib-row { cursor: pointer; }
        .st-lib-row.is-playing .st-lib-meta b { color: var(--live); }
        .st-lib-dl { color: var(--text-3); padding: 6px; border-radius: 50%; display: grid; place-items: center; }
        .st-lib-dl:hover { color: var(--text); background: var(--hover); }
        .st-side-label button { all: unset; cursor: pointer; }
        .st-side-label button:hover { color: var(--text); }
        .rs-auth-intro { background: rgba(46,230,200,0.08); border: 1px solid rgba(46,230,200,0.3); border-radius: var(--r-m); padding: 14px 16px; margin: 0 0 18px; }
        .rs-auth-intro b { display: block; font-family: var(--display); font-size: 1.05rem; margin-bottom: 4px; }
        .rs-auth-intro p { margin: 0; font-size: 0.84rem; color: var(--text-2); line-height: 1.5; }
        .rs-auth-skip { display: block; width: 100%; margin-top: 10px; background: transparent; border: none; color: var(--text-3); font-size: 0.84rem; cursor: pointer; padding: 6px; }
        .rs-auth-skip:hover { color: var(--text); text-decoration: underline; }
        .rs-basket-acct { font-size: 0.74rem; color: var(--text-3); margin-top: 6px; line-height: 1.45; }
        .rs-basket-acct a { color: var(--accent-2); }

        /* ---------- seller tools ---------- */
        .st-tools { display: grid; gap: 10px; }
        .st-panel { background: var(--panel-2); border-radius: var(--r-m); overflow: hidden; }
        .st-panel > summary {
            list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
            padding: 16px 18px; font-weight: 700;
        }
        .st-panel > summary::-webkit-details-marker { display: none; }
        .st-panel > summary::after { content: ''; width: 9px; height: 9px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg); transition: transform 0.2s; margin-right: 4px; }
        .st-panel[open] > summary::after { transform: rotate(-135deg); }
        .st-panel > summary span { font-weight: 500; color: var(--text-3); font-size: 0.8rem; margin-left: auto; }
        .st-panel-body { padding: 0 18px 18px; }
        .dash-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 14px; }
        .dash-stat { background: var(--panel-3); border-radius: var(--r-m); padding: 14px 16px; }
        .dash-stat .v { font-family: var(--display); font-size: 1.6rem; font-weight: 700; }
        .dash-stat .k { font-size: 0.72rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }
        .line-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 0.86rem; color: var(--text-2); }
        .line-list li { padding: 9px 12px; border-radius: var(--r-s); background: rgba(255,255,255,0.03); }
        .field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
        .field { display: grid; gap: 5px; margin-bottom: 12px; }
        .field label { font-size: 0.76rem; color: var(--text-2); font-weight: 600; }
        .actions { display: flex; gap: 8px; flex-wrap: wrap; }
        body:not(.signed-in) .seller-only { display: none !important; }
        .rs-dash-toggle { cursor: pointer; user-select: none; }
        .st-footer { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 0.8rem; display: flex; gap: 16px; flex-wrap: wrap; }
        .st-footer a { color: var(--text-3); text-decoration: none; }
        .st-footer a:hover { color: var(--text); }

        /* ---------- Now Playing panel ---------- */
        .st-now-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 10px; }
        .st-now-head b { font-family: var(--display); font-size: 0.98rem; }
        .st-now-scroll { flex: 1; overflow-y: auto; padding: 0 16px 20px; }
        .st-now-art { width: 100%; aspect-ratio: 1 / 1; border-radius: var(--r-m); object-fit: cover; display: block; background: var(--panel-3); box-shadow: 0 16px 40px rgba(0,0,0,0.45); cursor: pointer; }
        .st-now-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin: 16px 0 14px; }
        .st-now-title a { font-family: var(--display); font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; text-decoration: none; }
        .st-now-title a:hover { text-decoration: underline; }
        .st-now-title .artist { color: var(--text-2); font-size: 0.9rem; margin-top: 4px; }
        .st-now-context { font-size: 0.76rem; color: var(--text-3); margin-bottom: 10px; }
        .st-now-buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--panel-2); border-radius: var(--r-m); padding: 12px 14px; margin-bottom: 14px; }
        .st-now-buy .price { font-size: 1.15rem; }
        .st-lyric-card { border-radius: var(--r-m); padding: 18px; background: rgb(var(--wash)); margin-bottom: 14px; position: relative; overflow: hidden; }
        .st-lyric-card h4 { margin: 0 0 10px; font-size: 0.86rem; font-weight: 700; }
        .st-lyric-lines { font-family: var(--display); font-weight: 700; font-size: 1.32rem; line-height: 1.32; letter-spacing: -0.01em;
            max-height: 10.6em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
        .st-lyric-lines div { opacity: 0.92; }
        .st-lyric-card .btn { margin-top: 12px; }
        .st-now-about { background: var(--panel-2); border-radius: var(--r-m); padding: 16px; font-size: 0.86rem; color: var(--text-2); white-space: pre-wrap; }
        .st-now-about b { display: block; color: var(--text); font-family: var(--display); font-size: 0.95rem; margin-bottom: 6px; white-space: normal; }

        /* ---------- player bar ---------- */
        .rs-nowplaying {
            position: fixed; left: 0; right: 0; bottom: 0; height: var(--player-h); z-index: 60;
            display: grid; grid-template-columns: minmax(180px, 1fr) minmax(320px, 1.6fr) minmax(180px, 1fr); align-items: center; gap: 16px;
            padding: 0 16px; background: var(--canvas); transform: translateY(105%); transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
        }
        .rs-nowplaying.show { transform: none; }
        .rs-np-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
        .rs-nowplaying img { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; flex: none; cursor: pointer; background: var(--panel-3); }
        .rs-np-meta { min-width: 0; }
        .rs-np-title { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
        .rs-np-title:hover { text-decoration: underline; }
        .rs-np-artist { font-size: 0.78rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .rs-np-main { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
        .rs-np-controls { display: flex; align-items: center; gap: 18px; }
        .rs-np-ctl { background: transparent; border: none; color: var(--text-2); cursor: pointer; font-size: 1.1rem; display: grid; place-items: center; padding: 4px; }
        .rs-np-ctl:hover { color: var(--text); }
        .rs-np-ctl:disabled { opacity: 0.3; cursor: default; }
        .rs-np-btn { width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--text); color: #0b0d10; cursor: pointer; display: grid; place-items: center; font-size: 1rem; transition: transform 0.12s; }
        .rs-np-btn:hover { transform: scale(1.06); }
        .rs-np-scrub { display: flex; align-items: center; gap: 10px; width: 100%; }
        .rs-np-time { font-size: 0.7rem; color: var(--text-3); font-variant-numeric: tabular-nums; min-width: 36px; text-align: center; }
        .rs-np-seek, .rs-np-vol {
            flex: 1; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 999px; cursor: pointer; outline: none;
            background: linear-gradient(to right, var(--text) var(--pct, 0%), rgba(255,255,255,0.22) var(--pct, 0%));
        }
        .rs-np-seek:hover, .rs-np-vol:hover { background: linear-gradient(to right, var(--live) var(--pct, 0%), rgba(255,255,255,0.22) var(--pct, 0%)); }
        .rs-np-seek::-webkit-slider-thumb, .rs-np-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; opacity: 0; transition: opacity 0.1s; }
        .rs-np-seek:hover::-webkit-slider-thumb, .rs-np-vol:hover::-webkit-slider-thumb { opacity: 1; }
        .rs-np-seek::-moz-range-thumb, .rs-np-vol::-moz-range-thumb { width: 12px; height: 12px; border: none; border-radius: 50%; background: #fff; }
        .rs-np-right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
        .rs-np-right .rs-np-vol { flex: 0 0 96px; }
        .rs-np-ctl.on { color: var(--live); }
        .rs-np-close { background: transparent; border: none; color: var(--text-3); cursor: pointer; font-size: 1.1rem; padding: 4px; }
        .rs-np-close:hover { color: var(--text); }

        /* ---------- song & album pages (open inside the main panel) ---------- */
        .rs-song [hidden] { display: none !important; }
        .rs-song { position: absolute; inset: 0; z-index: 5; display: none; background: var(--panel); border-radius: var(--r-l); overflow: hidden; }
        .rs-song.show { display: block; animation: stFade 0.22s ease; }
        @keyframes stFade { from { opacity: 0; } to { opacity: 1; } }
        .rs-song-scroll { position: relative; height: 100%; overflow-y: auto; }
        .rs-song-bg {
            position: absolute; inset: 0 0 auto 0; height: 520px; pointer-events: none;
            background: linear-gradient(180deg, rgba(var(--page-wash, var(--wash)), 0.95) 0%, rgba(var(--page-wash, var(--wash)), 0.55) 45%, rgba(15,18,23,0) 100%);
        }
        .rs-song-inner { position: relative; padding: 16px 28px 48px; }
        .rs-song-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }
        .rs-song-top-actions { display: flex; gap: 8px; }
        .rs-song-top .btn { background: rgba(0,0,0,0.35); border-color: transparent; }
        .rs-song-top .btn:hover { background: rgba(0,0,0,0.6); }
        .rs-song-count { background: var(--accent); color: var(--accent-ink); border-radius: 999px; font-size: 0.68rem; font-weight: 800; padding: 1px 7px; }
        .rs-song-count:empty, .rs-song-count[data-n="0"] { display: none; }
        .rs-song-hero { display: grid; grid-template-columns: 232px 1fr; gap: 28px; align-items: end; padding-bottom: 26px; }
        .rs-song-art-wrap { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-s); overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,0.55); background: var(--panel-3); }
        .rs-song-art-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
        .rs-song-art-play { display: none; }
        .rs-song-eyebrow { font-size: 0.8rem; font-weight: 700; }
        .rs-song-info h1 {
            font-family: var(--display); font-weight: 700; letter-spacing: -0.04em; line-height: 0.98; overflow-wrap: anywhere;
            font-size: clamp(2.3rem, 6vw, 5.4rem); margin: 6px 0 14px;
        }
        .rs-song-byline { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 0.9rem; }
        .rs-song-artist { font-weight: 700; }
        .rs-song-meta { color: var(--text-2); display: inline-flex; gap: 6px; flex-wrap: wrap; }
        .rs-song-meta::before { content: '\2022'; color: var(--text-3); }
        .rs-song-meta:empty::before { content: none; }
        .rs-song-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
        .rs-song-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 6px 0 24px; }
        .rs-song-actions .play-fab { width: 60px; height: 60px; }
        .rs-song-price { font-family: var(--display); font-size: 1.5rem; font-weight: 700; }
        .rs-song-actions .btn { padding: 10px 20px; font-size: 0.92rem; }
        .rs-song-social { display: flex; gap: 2px; margin-left: 4px; }
        .rs-song-social .icon-btn { font-size: 0.9rem; padding: 8px 10px; }
        .rs-song-social .icon-btn .st-icon { font-size: 1.3rem; }
        .rs-song-notice { margin: 0 0 22px; padding: 12px 16px; border-radius: var(--r-m); background: rgba(255,122,26,0.12); border: 1px solid rgba(255,122,26,0.35); font-size: 0.86rem; }
        .rs-song-body { display: grid; gap: 34px; max-width: 980px; }
        .rs-song-card h2 { margin: 0 0 14px; font-family: var(--display); font-size: 1.4rem; letter-spacing: -0.02em; }
        .rs-song-about { white-space: pre-wrap; line-height: 1.65; color: var(--text-2); margin: 0; font-size: 1rem; max-width: 720px; }
        .rs-song-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-m); overflow: hidden; background: #000; max-width: 880px; box-shadow: 0 18px 44px rgba(0,0,0,0.45); }
        .rs-song-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
        .rs-song-lyrics { columns: 2 280px; column-gap: 56px; line-height: 1.7; font-size: 1.04rem; color: var(--text); }
        .rs-song-lyrics .ly-line { break-inside: avoid; }
        .rs-song-lyrics .ly-section { break-after: avoid; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.68rem; font-weight: 700; color: var(--accent-2); margin: 18px 0 4px; }
        .rs-song-lyrics .ly-section:first-child { margin-top: 0; }
        .rs-song-lyrics .ly-gap { height: 0.8em; }
        .rs-song-empty { color: var(--text-3); font-size: 0.92rem; }
        .rs-song-empty button { margin-left: 8px; }
        .rs-song-error { text-align: center; padding: 16vh 16px; }
        .rs-song-error h1 { font-family: var(--display); }
        /* album track list */
        .st-album-tracks { display: grid; }
        .st-album-track {
            display: grid; grid-template-columns: 34px minmax(0, 1fr) 64px auto; align-items: center; gap: 14px;
            min-height: 54px; padding: 0 14px; border-radius: 6px; cursor: pointer;
        }
        .st-album-track:hover { background: var(--hover); }
        .st-album-track .num { color: var(--text-3); text-align: center; font-variant-numeric: tabular-nums; }
        .st-album-track .t { min-width: 0; }
        .st-album-track .t b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .st-album-track .t a { text-decoration: none; }
        .st-album-track .t a:hover { text-decoration: underline; }
        .st-album-track .t span { font-size: 0.8rem; color: var(--text-2); }
        .st-album-track .dur { color: var(--text-3); text-align: right; font-size: 0.86rem; font-variant-numeric: tabular-nums; }
        .st-album-track .x { display: flex; justify-content: flex-end; }
        .st-album-track .x .btn { padding: 5px 12px; font-size: 0.78rem; }
        .st-album-track.is-playing b { color: var(--live); }
        .st-album-track.is-playing .num { color: var(--live); }

        /* ---------- basket drawer ---------- */
        .rs-basket-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(3px); z-index: 1500; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
        .rs-basket-overlay.show { opacity: 1; pointer-events: auto; }
        .rs-basket {
            position: fixed; top: 8px; right: 8px; bottom: 8px; width: min(420px, calc(100vw - 16px)); z-index: 1600;
            background: var(--panel-2); border-radius: var(--r-l); box-shadow: 0 30px 80px rgba(0,0,0,0.6);
            transform: translateX(calc(100% + 24px)); transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
            display: flex; flex-direction: column; overflow: hidden;
        }
        .rs-basket.show { transform: none; }
        .rs-basket-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 12px; }
        .rs-basket-head h2 { margin: 0; font-family: var(--display); font-size: 1.3rem; }
        .rs-basket-x { background: var(--hover); border: none; color: var(--text); width: 34px; height: 34px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; line-height: 1; }
        .rs-basket-items { flex: 1; overflow-y: auto; padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
        .rs-basket-empty { color: var(--text-3); text-align: center; margin-top: 60px; font-size: 0.92rem; line-height: 1.6; }
        .rs-basket-item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-m); }
        .rs-basket-item:hover { background: var(--hover); }
        .rs-basket-item img { width: 52px; height: 52px; border-radius: 6px; object-fit: cover; background: var(--panel-3); flex-shrink: 0; }
        .rs-basket-item .bi-meta { flex: 1; min-width: 0; }
        .rs-basket-item .bi-title { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .rs-basket-item .bi-sub { font-size: 0.78rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .rs-basket-item .bi-price { font-family: var(--display); font-weight: 700; font-size: 0.95rem; }
        .rs-basket-item .bi-pwyw { margin-top: 4px; }
        .rs-basket-item .bi-pwyw label { display: block; font-size: 0.72rem; color: var(--accent-2); font-weight: 700; margin-bottom: 3px; }
        .rs-basket-item .bi-pwyw label small { font-weight: 500; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.62rem; margin-left: 4px; }
        .rs-basket-item .bi-pwyw-row { display: flex; align-items: center; gap: 4px; }
        .rs-basket-item .bi-pwyw-row .cur { color: var(--text-2); font-size: 0.85rem; }
        .rs-basket-item .bi-pwyw-row input { width: 80px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 6px; color: #fff; padding: 4px 8px; font-size: 0.85rem; font-weight: 700; }
        .rs-basket-item .bi-pwyw-hint { display: block; font-size: 0.66rem; color: var(--text-3); margin-top: 3px; }
        .rs-basket-item .bi-remove { background: transparent; border: none; color: var(--text-3); cursor: pointer; font-size: 1.2rem; padding: 4px 6px; border-radius: 50%; }
        .rs-basket-item .bi-remove:hover { color: var(--bad); background: var(--hover); }
        .rs-basket-album { display: grid; gap: 10px; align-items: stretch; }
        .rs-basket-item-main { display: flex; gap: 12px; align-items: center; }
        .rs-basket-album-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }
        .rs-basket-album-body { padding: 8px 0 0 64px; display: grid; gap: 6px; }
        .rs-basket-track-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.82rem; }
        .rs-basket-track-meta { display: flex; align-items: center; gap: 8px; min-width: 0; }
        .rs-basket-track-num { color: var(--text-3); flex-shrink: 0; font-variant-numeric: tabular-nums; }
        .rs-basket-track-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .rs-basket-track-preview { padding: 3px 10px !important; font-size: 0.72rem !important; }
        .rs-basket-track-empty { color: var(--text-3); font-size: 0.8rem; padding: 4px 0; }
        .rs-basket-foot { border-top: 1px solid var(--line); padding: 16px 20px 20px; display: grid; gap: 12px; background: var(--panel-2); }
        .rs-basket-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
        .rs-basket-total .v { font-family: var(--display); font-size: 1.45rem; }
        .rs-basket-email { display: none; }
        .rs-basket-email label { font-size: 0.76rem; color: var(--text-2); display: block; margin-bottom: 5px; font-weight: 600; }
        .rs-basket-checkout { width: 100%; padding: 13px !important; font-size: 1rem !important; }
        .rs-basket-note { font-size: 0.72rem; color: var(--text-3); text-align: center; }
        .rs-basket-licence { font-size: 0.76rem; color: var(--text-2); background: var(--panel); border-radius: var(--r-s); padding: 10px 12px; }
        .rs-basket-licence summary { cursor: pointer; font-weight: 600; color: var(--text); list-style: none; }
        .rs-basket-licence summary::-webkit-details-marker { display: none; }
        .rs-basket-licence summary::before { content: '\25b8  '; color: var(--text-3); }
        .rs-basket-licence[open] summary::before { content: '\25be  '; }
        .rs-basket-licence p { margin: 8px 0 0; line-height: 1.55; }
        .rs-basket-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 0.78rem; line-height: 1.45; color: var(--text); cursor: pointer; }
        .rs-basket-consent input { accent-color: var(--accent); cursor: pointer; margin-top: 2px; flex: none; width: 17px; height: 17px; }
        .rs-basket-consent a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }

        /* ---------- sign-in modal ---------- */
        .rs-auth-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(6px); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; }
        .rs-auth-overlay.show { display: flex; }
        .rs-auth-modal { width: 100%; max-width: 420px; background: var(--panel-2); border-radius: var(--r-xl); padding: 28px; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
        .rs-auth-x { position: absolute; top: 14px; right: 14px; background: var(--hover); border: none; color: var(--text); width: 32px; height: 32px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; }
        .rs-auth-tabs { display: flex; gap: 6px; margin-bottom: 20px; background: var(--panel); padding: 4px; border-radius: 999px; width: fit-content; }
        .rs-auth-tab { background: transparent; border: none; color: var(--text-2); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-weight: 600; font-size: 0.86rem; }
        .rs-auth-tab.active { background: var(--text); color: #0b0d10; }
        .rs-auth-body .field { margin-bottom: 14px; }
        .rs-auth-msg { font-size: 0.85rem; min-height: 18px; margin-bottom: 8px; color: var(--bad); }
        .rs-auth-msg.ok { color: var(--ok); }

        /* ---------- toast ---------- */
        .rs-toast {
            position: fixed; left: 50%; bottom: calc(var(--player-h) + 18px); transform: translateX(-50%) translateY(16px); z-index: 2200;
            background: var(--text); color: #0b0d10; font-weight: 600; padding: 10px 18px; border-radius: var(--r-s);
            box-shadow: 0 14px 36px rgba(0,0,0,0.5); opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; font-size: 0.88rem;
        }
        .rs-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

        /* the middle panel is narrower while the Now Playing panel is open */
        body.np-open .rs-song-info h1 { font-size: clamp(2.1rem, 4.2vw, 4.3rem); }
        body.np-open .rs-hero-title { font-size: clamp(2.1rem, 4vw, 4rem); }
        body.np-open .rs-song-hero, body.np-open .rs-hero { grid-template-columns: 200px 1fr; }
        body.np-open .rs-hero-art { width: 200px; height: 200px; }

        /* ---------- responsive ---------- */
        @media (max-width: 1280px) {
            body.np-open .st-app { grid-template-columns: 260px minmax(0, 1fr) 300px; }
            .st-app { grid-template-columns: 260px minmax(0, 1fr); }
            .st-tracklist-head, .st-track { grid-template-columns: 34px minmax(0, 1.6fr) 64px 92px 150px; }
            .st-tracklist-head .tags, .st-track-tags { display: none; }
        }
        @media (max-width: 1060px) {
            body.np-open .st-app { grid-template-columns: 220px minmax(0, 1fr); grid-template-areas: "top top" "side main"; }
            body.np-open .st-now { display: none; }
            .st-app { grid-template-columns: 220px minmax(0, 1fr); }
            .st-search { position: static; transform: none; width: auto; flex: 1; }
            .st-brand-text span { display: none; }
            .st-user { display: none; }
        }
        @media (max-width: 860px) {
            body { font-size: 14px; }
            .st-app, body.np-open .st-app, body.has-player .st-app { display: block; height: auto; padding: 0; }
            .st-side, .st-now { display: none !important; }
            .st-topbar { position: sticky; top: 0; z-index: 30; background: rgba(5,6,8,0.92); backdrop-filter: blur(12px);
                         height: auto; padding: 10px 12px; gap: 10px; flex-wrap: wrap; }
            .st-brand-text { display: flex; }
            .st-brand-text span { display: none; }
            .st-search { order: 3; flex: 1 1 100%; }
            .st-top-actions .btn .st-label { display: none; }
            .st-top-actions .btn { padding: 8px 12px; }
            .st-search { height: 42px; padding: 0 14px; }
            .st-main { border-radius: 0; overflow: visible; min-height: 100vh; }
            .st-main-scroll { height: auto; overflow: visible; }
            .st-main-inner { padding: 14px 16px 40px; }
            body.has-player .st-main-inner { padding-bottom: calc(var(--player-h) + 40px); }
            .st-filters-right { margin-left: 0; }
            .rs-hero { grid-template-columns: 1fr; gap: 18px; text-align: left; padding-bottom: 24px; }
            .rs-hero-art { width: min(260px, 70vw); height: auto; aspect-ratio: 1; }
            .st-tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
            .st-tile { height: 52px; padding-right: 8px; }
            .st-tile img { width: 52px; height: 52px; }
            .st-tile .st-tile-play { display: none; }
            .st-tracklist-head { display: none; }
            .st-track { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; padding: 6px 4px; }
            .st-track .dur, .st-track-social { display: none; }
            .st-track .num .n { display: none; }
            .st-track .num button { opacity: 1; color: var(--text-2); }
            .st-track-buy .price { display: none; }
            .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
            .card { padding: 8px; }
            .card .cover-play { opacity: 1; transform: none; width: 40px; height: 40px; }
            .field-grid { grid-template-columns: 1fr; }
            .rs-song { position: fixed; inset: 0; z-index: 40; border-radius: 0; }
            body.rs-song-open { overflow: hidden; }
            .rs-song-inner { padding: 12px 16px 120px; }
            .rs-song-hero { grid-template-columns: 1fr; gap: 18px; }
            .rs-song-art-wrap { width: min(300px, 76vw); margin: 0 auto; }
            .rs-song-top .rs-hide-sm { display: none; }
            .rs-nowplaying { grid-template-columns: minmax(0, 1fr) auto; height: 72px; padding: 0 12px; gap: 10px;
                left: 8px; right: 8px; bottom: 8px; border-radius: var(--r-m); background: rgba(28,34,43,0.96); backdrop-filter: blur(14px); }
            :root { --player-h: 80px; }
            .rs-nowplaying img { width: 46px; height: 46px; }
            .rs-np-main { grid-column: 2; grid-row: 1; flex-direction: row; }
            .rs-np-scrub { position: absolute; left: 12px; right: 12px; bottom: 0; }
            .rs-np-scrub .rs-np-time { display: none; }
            .rs-np-seek { height: 2px; }
            .rs-np-controls { gap: 10px; }
            .rs-np-controls #rsNpPrev { display: none; }
            .rs-np-right { display: none; }
            .st-album-track { grid-template-columns: 26px minmax(0, 1fr) auto; padding: 0 6px; }
            .st-album-track .dur { display: none; }
        }
    