        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        html, body { touch-action: manipulation; }

        :root {
            --bg: #0a0a0f;
            --surface: rgba(255, 255, 255, 0.04);
            --surface-hover: rgba(255, 255, 255, 0.08);
            --border: rgba(255, 255, 255, 0.08);
            --text: #f0f0f5;
            --text-muted: #8888a0;
            --accent: #7c5cfc;
            --accent-glow: rgba(124, 92, 252, 0.35);
            --accent-soft: rgba(124, 92, 252, 0.15);
            --playing: #4ade80;
            --player-h: 96px;
            --radius: 14px;
            --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
            --cat-audio: #7c5cfc;
            --cat-document: #60a5fa;
            --cat-image: #f472b6;
            --cat-video: #fb923c;
            --cat-archive: #a3e635;
            --cat-other: #94a3b8;
            --cat-folder: #fbbf24;
            --player-bg: rgba(12, 12, 18, 0.92);
            --lyrics-glass-bg:
                linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012) 44%, rgba(124, 92, 252, 0.075)),
                linear-gradient(180deg, rgba(20, 19, 31, 0.9), rgba(8, 8, 14, 0.82));
            --lyrics-active-bg: #20183f;
            --player-control-bg: rgba(255, 255, 255, 0.08);
            --player-control-hover: rgba(255, 255, 255, 0.14);
            --player-progress-track: rgba(255, 255, 255, 0.06);
            --player-volume-track: rgba(255, 255, 255, 0.1);
            --ambient-bg:
                radial-gradient(ellipse 80% 60% at 20% 10%, rgba(124, 92, 252, 0.12) 0%, transparent 60%),
                radial-gradient(ellipse 60% 50% at 80% 80%, rgba(74, 222, 128, 0.06) 0%, transparent 60%);
            color-scheme: dark;
        }

        html[data-theme="light"] {
            --bg: #f7f7fb;
            --surface: rgba(18, 20, 32, 0.055);
            --surface-hover: rgba(18, 20, 32, 0.095);
            --border: rgba(18, 20, 32, 0.12);
            --text: #171821;
            --text-muted: #676b7d;
            --accent: #6d4df2;
            --accent-glow: rgba(109, 77, 242, 0.22);
            --accent-soft: rgba(109, 77, 242, 0.12);
            --playing: #168a48;
            --player-bg: #ffffff;
            --lyrics-glass-bg:
                linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.18) 44%, rgba(109, 77, 242, 0.08)),
                linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(246, 247, 252, 0.76));
            --lyrics-active-bg: #e9e4ff;
            --player-control-bg: rgba(23, 24, 33, 0.075);
            --player-control-hover: rgba(23, 24, 33, 0.13);
            --player-progress-track: rgba(23, 24, 33, 0.16);
            --player-volume-track: rgba(23, 24, 33, 0.18);
            --ambient-bg:
                radial-gradient(ellipse 80% 60% at 18% 8%, rgba(124, 92, 252, 0.13) 0%, transparent 60%),
                radial-gradient(ellipse 60% 50% at 82% 78%, rgba(74, 222, 128, 0.08) 0%, transparent 60%);
            color-scheme: light;
        }

        html { scroll-behavior: smooth; }

        body {
            font-family: var(--font);
            background: var(--bg);
            color: var(--text);
            min-height: 100vh;
            line-height: 1.5;
            overflow-x: hidden;
        }

        html.audio-eq-open,
        body.audio-eq-open {
            overflow: hidden;
            overscroll-behavior: none;
        }

        body.no-player .app {
            padding-bottom: 2.5rem;
        }

        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background: var(--ambient-bg);
            pointer-events: none;
            z-index: 0;
        }

        .app {
            position: relative;
            z-index: 1;
            max-width: 860px;
            margin: 0 auto;
            padding: 2.5rem 1.25rem calc(var(--player-h) + 2.5rem);
        }

        /* ── Header ── */
        .header {
            position: relative;
            text-align: center;
            margin-bottom: 2.5rem;
        }

        .header-photo-wrap {
            position: relative;
            width: 80px;
            height: 80px;
            margin: 0 auto 1rem;
        }

        .header-photo-wrap::before,
        .header-photo-wrap::after {
            content: '';
            position: absolute;
            border-radius: 50%;
            pointer-events: none;
        }

        .header-photo-wrap::before {
            inset: -4px;
            background: conic-gradient(
                from 0deg,
                #7c5cfc,
                #a78bfa,
                #e879f9,
                #f472b6,
                #c084fc,
                #7c5cfc
            );
            filter: blur(5px);
            opacity: 0.85;
            animation: halo-rotate 5s linear infinite;
        }

        .header-photo-wrap::after {
            inset: -8px;
            background: radial-gradient(
                circle,
                rgba(124, 92, 252, 0.55) 0%,
                rgba(244, 114, 182, 0.35) 50%,
                transparent 68%
            );
            filter: blur(6px);
            animation: halo-pulse 3.5s ease-in-out infinite alternate;
        }

        .header-photo {
            position: relative;
            z-index: 1;
            width: 80px;
            height: 80px;
            border-radius: 50%;
            object-fit: cover;
            display: block;
            border: 2px solid rgba(167, 139, 250, 0.5);
            animation: halo-border 3.5s ease-in-out infinite alternate;
        }

        @keyframes halo-rotate {
            to { transform: rotate(360deg); }
        }

        @keyframes halo-pulse {
            0% {
                opacity: 0.5;
                transform: scale(0.96);
            }
            100% {
                opacity: 0.9;
                transform: scale(1.04);
            }
        }

        @keyframes halo-border {
            0% {
                border-color: rgba(124, 92, 252, 0.55);
                box-shadow: 0 0 12px rgba(124, 92, 252, 0.45);
            }
            100% {
                border-color: rgba(244, 114, 182, 0.65);
                box-shadow: 0 0 14px rgba(244, 114, 182, 0.5);
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .header-photo-wrap::before,
            .header-photo-wrap::after,
            .header-photo {
                animation: none;
            }

            .header-photo-wrap::before { opacity: 0.6; }
            .header-photo-wrap::after { opacity: 0.5; }
        }

        .header h1 {
            font-size: 1.75rem;
            font-weight: 700;
            letter-spacing: -0.02em;
        }

        .header p {
            color: var(--text-muted);
            font-size: 0.9rem;
            margin-top: 0.35rem;
        }

        .count-badge {
            display: inline-block;
            margin-top: 0.75rem;
            padding: 0.25rem 0.75rem;
            background: var(--accent-soft);
            color: var(--accent);
            border-radius: 99px;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .lang-switcher {
            position: absolute;
            top: 0;
            right: 0;
            display: flex;
            gap: 0.25rem;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 0.2rem;
        }

        .lang-switcher a {
            padding: 0.3rem 0.65rem;
            border-radius: 8px;
            font-size: 0.75rem;
            font-weight: 600;
            text-decoration: none;
            color: var(--text-muted);
            transition: background 0.2s, color 0.2s;
        }

        .lang-switcher a:hover {
            color: var(--text);
            background: var(--surface-hover);
        }

        .lang-switcher a.active {
            background: var(--accent-soft);
            color: var(--accent);
        }

        .lang-switcher .lang-short { display: none; }

        .theme-toggle {
            position: absolute;
            top: 0;
            left: 0;
            width: 36px;
            height: 36px;
            border: 1px solid var(--border);
            border-radius: 10px;
            background: var(--surface);
            color: var(--text-muted);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s, color 0.2s, border-color 0.2s;
        }

        .theme-toggle:hover {
            color: var(--text);
            background: var(--surface-hover);
            border-color: rgba(124, 92, 252, 0.25);
        }

        .theme-toggle svg {
            width: 18px;
            height: 18px;
            fill: currentColor;
        }

        .theme-toggle .icon-sun { display: none; }
        html[data-theme="light"] .theme-toggle .icon-moon { display: none; }
        html[data-theme="light"] .theme-toggle .icon-sun { display: block; }

        /* ── Breadcrumbs ── */
        .breadcrumbs {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.35rem;
            margin-bottom: 1.25rem;
            font-size: 0.85rem;
        }

        .breadcrumbs a {
            color: var(--text-muted);
            text-decoration: none;
            transition: color 0.2s;
        }

        .breadcrumbs a:hover { color: var(--accent); }

        .breadcrumbs .sep {
            color: var(--text-muted);
            opacity: 0.5;
            user-select: none;
        }

        .breadcrumbs .current {
            color: var(--text);
            font-weight: 600;
        }

        /* ── File list ── */
        .file-list {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .file-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 0.85rem 1rem;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            transition: background 0.2s, border-color 0.2s, transform 0.15s;
            user-select: none;
        }

        .file-item.folder,
        .file-item.parent-folder {
            text-decoration: none;
            color: inherit;
            cursor: pointer;
        }

        .file-item.folder:hover,
        .file-item.parent-folder:hover {
            background: var(--surface-hover);
            border-color: rgba(251, 191, 36, 0.25);
        }

        .file-item.playable {
            cursor: pointer;
        }

        .file-item.playable:hover {
            background: var(--surface-hover);
            border-color: rgba(124, 92, 252, 0.25);
        }

        .file-item.folder:active,
        .file-item.parent-folder:active,
        .file-item.playable:active { transform: scale(0.99); }

        .file-item.active {
            background: var(--accent-soft);
            border-color: rgba(124, 92, 252, 0.4);
        }

        .file-index {
            width: 2rem;
            text-align: center;
            font-size: 0.8rem;
            color: var(--text-muted);
            font-variant-numeric: tabular-nums;
            flex-shrink: 0;
        }

        .file-item.active .file-index { color: var(--playing); }

        .file-badge {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.65rem;
            font-weight: 700;
            letter-spacing: 0.03em;
            flex-shrink: 0;
            text-transform: uppercase;
        }

        .file-badge.cat-audio    { background: rgba(124, 92, 252, 0.2);  color: var(--cat-audio); }
        .file-badge.cat-document { background: rgba(96, 165, 250, 0.2); color: var(--cat-document); }
        .file-badge.cat-image    { background: rgba(244, 114, 182, 0.2); color: var(--cat-image); }
        .file-badge.cat-video    { background: rgba(251, 146, 60, 0.2);  color: var(--cat-video); }
        .file-badge.cat-archive  { background: rgba(163, 230, 53, 0.2);  color: var(--cat-archive); }
        .file-badge.cat-other    { background: rgba(148, 163, 184, 0.2); color: var(--cat-other); }
        .file-badge.cat-folder   { background: rgba(251, 191, 36, 0.2);  color: var(--cat-folder); }
        .file-badge.cat-parent   { background: rgba(255, 255, 255, 0.08); color: var(--text-muted); }

        .file-badge svg {
            width: 18px;
            height: 18px;
            fill: currentColor;
        }

        .file-info {
            flex: 1;
            min-width: 0;
        }

        .file-title {
            font-weight: 600;
            font-size: 0.95rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .file-meta {
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-top: 0.1rem;
        }

        .file-actions {
            display: flex;
            gap: 0.4rem;
            flex-shrink: 0;
        }

        .btn-icon {
            width: 36px;
            height: 36px;
            border: none;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.06);
            color: var(--text-muted);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s, color 0.2s;
            text-decoration: none;
        }

        .btn-icon:hover {
            background: rgba(255, 255, 255, 0.12);
            color: var(--text);
        }

        .btn-icon svg { width: 16px; height: 16px; fill: currentColor; }

        .btn-download:hover { color: var(--accent); }
        .btn-open:hover { color: #60a5fa; }

        .file-item.image-item {
            cursor: pointer;
        }

        .file-item.image-item:hover {
            background: var(--surface-hover);
            border-color: rgba(244, 114, 182, 0.25);
        }

        /* ── Image modal ── */
        .image-modal {
            position: fixed;
            inset: 0;
            z-index: 200;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
            pointer-events: none;
        }

        .image-modal.is-open {
            display: flex;
            pointer-events: auto;
        }

        .image-modal-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.82);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            cursor: pointer;
        }

        .image-modal-panel {
            position: relative;
            z-index: 1;
            max-width: min(92vw, 960px);
            max-height: 90vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.85rem;
            pointer-events: auto;
        }

        .image-modal-close {
            position: absolute;
            top: -0.25rem;
            right: -0.25rem;
            width: 40px;
            height: 40px;
            border: none;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            color: var(--text);
            font-size: 1.5rem;
            line-height: 1;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
            z-index: 2;
        }

        .image-modal-close:hover {
            background: rgba(255, 255, 255, 0.18);
        }

        .image-modal-img {
            max-width: 100%;
            max-height: calc(90vh - 5rem);
            border-radius: 12px;
            object-fit: contain;
            box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
        }

        .image-modal-footer {
            display: flex;
            align-items: center;
            gap: 1rem;
            width: 100%;
            justify-content: center;
        }

        .image-modal-caption {
            color: var(--text-muted);
            font-size: 0.9rem;
            text-align: center;
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .image-modal-download {
            flex-shrink: 0;
            padding: 0.45rem 0.9rem;
            border-radius: 10px;
            background: var(--accent-soft);
            color: var(--accent);
            text-decoration: none;
            font-size: 0.8rem;
            font-weight: 600;
            transition: background 0.2s;
        }

        .image-modal-download:hover {
            background: rgba(124, 92, 252, 0.25);
        }

        /* ── Empty state ── */
        .empty {
            text-align: center;
            padding: 4rem 2rem;
            color: var(--text-muted);
        }

        .empty svg {
            width: 48px;
            height: 48px;
            fill: var(--text-muted);
            opacity: 0.4;
            margin-bottom: 1rem;
        }

        .empty code {
            display: inline-block;
            margin-top: 0.75rem;
            padding: 0.3rem 0.6rem;
            background: var(--surface);
            border-radius: 6px;
            font-size: 0.85rem;
            color: var(--accent);
        }

        /* ── Player bar ── */
        .player {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: var(--player-h);
            background: var(--player-bg);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-top: 1px solid var(--border);
            z-index: 100;
            display: flex;
            flex-direction: column;
            padding: 0 1.25rem;
        }

        .player-progress {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--player-progress-track);
            cursor: pointer;
            touch-action: none;
        }

        .player-progress::before {
            content: '';
            position: absolute;
            inset: -9px 0;
        }

        .player-progress-fill {
            height: 100%;
            width: 100%;
            background: linear-gradient(90deg, var(--accent), #a78bfa);
            transform: scaleX(0);
            transform-origin: left center;
            will-change: transform;
            pointer-events: none;
        }

        .player-body {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 1rem;
            padding-top: 3px;
        }

        .player-track {
            flex: 1;
            min-width: 0;
        }

        .player-title-row {
            display: flex;
            align-items: center;
            gap: 0.55rem;
            min-width: 0;
        }

        .player-track-title {
            font-weight: 600;
            font-size: 0.9rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .player-eq {
            width: 49px;
            height: 14px;
            display: none;
            align-items: center;
            gap: 2px;
            flex: 0 0 auto;
            border: 0;
            padding: 0;
            background: transparent;
            cursor: pointer;
        }

        .player-eq:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px; }

        .player-eq span {
            width: 3px;
            height: 100%;
            border-radius: 999px;
            background: linear-gradient(180deg, #a78bfa 0%, var(--accent) 50%, #a78bfa 100%);
            transform: scaleY(var(--eq-level, 0.18));
            transform-origin: center;
            transition: none;
        }

        .player.has-track .player-eq {
            display: inline-flex;
        }

        .audio-eq-modal {
            position: fixed;
            inset: 0 0 var(--player-h);
            z-index: 220;
            display: none;
            align-items: flex-end;
            justify-content: center;
            padding: 1rem;
            background: rgba(4, 4, 9, 0.62);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
        }

        .audio-eq-modal.is-open { display: flex; }

        .audio-eq-panel {
            width: min(700px, 100%);
            max-height: calc(100vh - var(--player-h) - 2rem);
            max-height: calc(100dvh - var(--player-h) - 2rem);
            overflow: auto;
            border: 1px solid var(--border);
            border-radius: 20px;
            padding: 1.35rem;
            background:
                linear-gradient(145deg, rgba(124, 92, 252, 0.07), transparent 34%),
                var(--player-bg);
            box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
            touch-action: manipulation;
            overscroll-behavior: contain;
        }

        .audio-eq-header, .audio-eq-toolbar, .audio-eq-actions {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
        }
        .audio-eq-header { position: relative; align-items: flex-start; }

        .audio-eq-close, .audio-eq-button {
            border: 1px solid var(--border);
            border-radius: 10px;
            background: var(--player-control-bg);
            color: var(--text);
            padding: 0.65rem 0.85rem;
            cursor: pointer;
        }

        .audio-eq-close { position: absolute; top: -0.15rem; right: 0; width: 34px; height: 34px; padding: 0; font-size: 1.3rem; }
        .audio-eq-button.is-active, .audio-eq-enable { background: var(--accent); color: #fff; }
        .audio-eq-heading { flex: 1; width: 100%; min-width: 0; }
        .audio-eq-title-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
        .audio-eq-heading h2 { min-width: 0; overflow: hidden; font-size: 1.1rem; letter-spacing: -0.015em; text-overflow: ellipsis; white-space: nowrap; }
        .audio-eq-heading p { margin-top: 0.15rem; color: var(--text-muted); font-size: 0.72rem; }
        .audio-eq-mode { display: flex; width: auto; min-width: 0; margin-left: auto; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
        .audio-eq-mode button { border: 0; border-radius: 7px; padding: 0.42rem 0.8rem; background: transparent; color: var(--text-muted); cursor: pointer; font-size: 0.7rem; font-weight: 700; }
        .audio-eq-mode button.is-active { background: var(--accent); color: #fff; box-shadow: 0 4px 14px var(--accent-glow); }
        .audio-eq-mode .audio-eq-enable { display: inline-flex; align-items: center; gap: .4rem; margin-left: .4rem; background: rgba(248, 113, 113, 0.12); color: #f87171; }
        .audio-eq-mode .audio-eq-enable[hidden] { display: none; }
        .audio-eq-mode .audio-eq-enable::after { content: ''; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #f87171; box-shadow: 0 0 4px rgba(248, 113, 113, 0.9), 0 0 9px rgba(248, 113, 113, 0.55); }
        .audio-eq-mode .audio-eq-enable.is-processing { background: rgba(74, 222, 128, 0.12); color: var(--playing); }
        .audio-eq-mode .audio-eq-enable.is-processing::after { background: var(--playing); box-shadow: 0 0 4px rgba(74, 222, 128, 0.95), 0 0 10px rgba(74, 222, 128, 0.6); }
        .audio-eq-toolbar { margin-top: 1.1rem; padding: 0.8rem; border: 1px solid var(--border); border-radius: 13px; background: rgba(255,255,255,0.025); }
        .audio-eq-toolbar label { display: grid; gap: 0.3rem; color: var(--text-muted); font-size: 0.75rem; }
        .audio-eq-toolbar select { min-width: 170px; padding: 0.55rem; border-radius: 9px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }

        .audio-eq-toolbar-actions { display: flex; align-items: center; gap: 0.55rem; }
        .audio-eq-safety { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--text-muted); font-size: 0.68rem; white-space: nowrap; }
        .audio-eq-safety::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--playing); box-shadow: 0 0 9px color-mix(in srgb, var(--playing) 65%, transparent); }

        .audio-eq-section-title { display: flex; align-items: center; justify-content: space-between; margin: 1rem 0 0.45rem; color: var(--text-muted); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
        .audio-eq-section-title span:last-child { font-weight: 500; letter-spacing: 0; text-transform: none; }
        .audio-eq-spectrum-sticky { position: sticky; top: -1.35rem; z-index: 6; margin: 0 -0.35rem; padding: 0.25rem 0.35rem 0.7rem; background: linear-gradient(180deg, var(--player-bg) 82%, transparent); }
        .audio-eq-panel.is-pro { border-color: rgba(74, 222, 128, 0.24); }
        .audio-eq-panel.is-pro .audio-eq-toolbar { border-color: rgba(74, 222, 128, 0.18); }
        .audio-eq-panel.is-pro .audio-eq-section-title { color: var(--playing); }
        .audio-eq-panel.is-pro .audio-eq-bands { box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.06); }

        .audio-eq-visualizer {
            height: 92px;
            display: grid;
            grid-template-columns: repeat(14, 1fr);
            align-items: end;
            gap: 0.55rem;
            margin: 0;
            padding: 0.8rem 1rem;
            overflow: hidden;
            border: 1px solid var(--border);
            border-radius: 14px;
            background: linear-gradient(180deg, rgba(124, 92, 252, 0.08), rgba(124, 92, 252, 0.015));
            position: relative;
        }
        .audio-eq-visualizer > span:nth-child(even) { display: none; }
        .audio-eq-panel.is-pro .audio-eq-visualizer { grid-template-columns: repeat(28, 1fr); gap: .32rem; }
        .audio-eq-panel.is-pro .audio-eq-visualizer > span { display: block; }

        .audio-eq-visualizer::before,
        .audio-eq-visualizer::after { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: rgba(255,255,255,0.055); pointer-events: none; }
        .audio-eq-visualizer::before { top: 33.333%; }
        .audio-eq-visualizer::after { top: 66.666%; }

        .audio-eq-visualizer span {
            position: relative;
            height: 100%;
            min-height: 4px;
        }

        .audio-eq-visualizer span::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 7px 7px 3px 3px;
            background: linear-gradient(180deg, #c4b5fd, var(--accent) 58%, #4c2bc9);
            box-shadow: 0 0 18px rgba(124, 92, 252, 0.28);
            transform: scaleY(var(--eq-level, 0.12));
            transform-origin: bottom center;
            will-change: transform;
        }

        .audio-eq-visualizer span::after {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            bottom: calc(var(--eq-peak, 0.12) * 100% - 1px);
            height: 2px;
            border-radius: 2px;
            background: #fff;
            box-shadow: 0 0 7px rgba(255,255,255,0.85);
            opacity: 0.92;
            transition: bottom 80ms linear;
        }
        .audio-eq-panel:not(.is-pro) .audio-eq-visualizer span::after { display: none; }

        .audio-eq-preamp {
            display: grid;
            grid-template-columns: 74px 1fr 72px;
            align-items: center;
            gap: 0.8rem;
            margin-top: 1rem;
            padding: 0.75rem 0.9rem;
            border: 1px solid var(--border);
            border-radius: 12px;
            background: rgba(255,255,255,0.025);
        }
        .audio-eq-preamp strong { font-size: 0.76rem; }
        .audio-eq-preamp input { width: 100%; accent-color: var(--accent); }
        .audio-eq-preamp output { padding: 0.35rem 0.45rem; border-radius: 7px; background: var(--bg); color: var(--text); text-align: center; font-size: 0.7rem; font-variant-numeric: tabular-nums; }

        .audio-eq-bands {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 0.4rem;
            margin: 0 0 1.1rem;
            padding: 0.9rem 0.6rem 0.7rem;
            border: 1px solid var(--border);
            border-radius: 14px;
            background: rgba(255,255,255,0.02);
            touch-action: pan-y;
            user-select: none;
            -webkit-user-select: none;
        }

        .audio-eq-band { display: grid; justify-items: center; gap: 0.45rem; min-width: 0; touch-action: pan-y; }
        .audio-eq-band output { min-width: 56px; padding: 0.25rem 0.3rem; border-radius: 6px; background: var(--bg); color: var(--text); text-align: center; font-size: 0.65rem; font-variant-numeric: tabular-nums; }
        .audio-eq-band .audio-eq-frequency { color: var(--text); font-size: 0.7rem; font-weight: 700; white-space: nowrap; }
        .audio-eq-band .audio-eq-band-name { min-height: 1.8em; color: var(--text-muted); font-size: 0.58rem; line-height: 1.15; text-align: center; }
        .audio-eq-fader-track { position: relative; width: 100%; height: 112px; display: grid; place-items: center; touch-action: none; user-select: none; -webkit-user-select: none; }
        .audio-eq-fader-track::after { content: ''; position: absolute; left: 1px; right: 1px; top: 50%; height: 1px; background: rgba(167,139,250,0.45); pointer-events: none; }
        .audio-eq-band input[type="range"] { position: relative; z-index: 1; writing-mode: vertical-lr; direction: rtl; width: 100%; height: 106px; accent-color: var(--accent); touch-action: none; user-select: none; -webkit-user-select: none; }
        .audio-eq-band-advanced { display: grid; gap: .22rem; width: 100%; }
        .audio-eq-band-advanced label { display: grid; gap: .1rem; color: var(--text-muted); font-size: .48rem; text-align: center; }
        .audio-eq-band-advanced input { box-sizing: border-box; width: 100%; min-width: 0; padding: .22rem .08rem; border: 1px solid var(--border); border-radius: 5px; background: var(--bg); color: var(--text); font: inherit; font-size: .54rem; text-align: center; }
        .audio-eq-panel:not(.is-pro) .audio-eq-band-advanced { display: none; }
        .audio-eq-panel:not(.is-pro) #audioEqResetDsp { display: none; }
        .audio-eq-warning { position: relative; display: flex; align-items: flex-start; gap: 0.65rem; margin: 1rem 0; padding: 0.8rem; border: 1px solid rgba(251, 191, 36, 0.35); border-radius: 10px; color: #fbbf24; font-size: 0.78rem; }
        .audio-eq-warning[hidden] { display: none; }
        .audio-eq-warning span { flex: 1; }
        .audio-eq-warning-close { flex: 0 0 auto; width: 26px; height: 26px; margin: -0.35rem -0.35rem 0 0; border: 0; border-radius: 7px; background: rgba(251, 191, 36, 0.1); color: #fbbf24; cursor: pointer; font-size: 1rem; line-height: 1; }
        .audio-eq-warning-close:hover { background: rgba(251, 191, 36, 0.2); }
        .audio-eq-status { margin-top: 0.8rem; color: var(--text-muted); font-size: 0.75rem; }

        /* Light studio theme: stronger separation and readable controls. */
        html[data-theme="light"] .audio-eq-modal {
            background: rgba(42, 38, 64, 0.24);
        }
        html[data-theme="light"] .audio-eq-panel {
            background:
                linear-gradient(145deg, rgba(109, 77, 242, 0.07), transparent 35%),
                #f8f8fc;
            border-color: rgba(44, 39, 71, 0.18);
            box-shadow: 0 24px 70px rgba(45, 39, 73, 0.2);
        }
        html[data-theme="light"] .audio-eq-spectrum-sticky {
            background: linear-gradient(180deg, #f8f8fc 84%, rgba(248, 248, 252, 0));
        }
        html[data-theme="light"] .audio-eq-mode,
        html[data-theme="light"] .audio-eq-toolbar,
        html[data-theme="light"] .audio-eq-preamp,
        html[data-theme="light"] .audio-eq-bands {
            background: rgba(255, 255, 255, 0.82);
            border-color: rgba(49, 43, 76, 0.18);
            box-shadow: 0 5px 18px rgba(55, 46, 91, 0.055);
        }
        html[data-theme="light"] .audio-eq-visualizer {
            background: linear-gradient(180deg, #f1edff, #ffffff);
            border-color: rgba(109, 77, 242, 0.22);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 6px 18px rgba(85, 62, 180, 0.08);
        }
        html[data-theme="light"] .audio-eq-visualizer::before,
        html[data-theme="light"] .audio-eq-visualizer::after {
            background: rgba(75, 61, 126, 0.12);
        }
        html[data-theme="light"] .audio-eq-visualizer span::before {
            background: linear-gradient(180deg, #9f8cff, #6d4df2 58%, #4526bd);
            box-shadow: 0 0 12px rgba(83, 49, 210, 0.42);
        }
        html[data-theme="light"] .audio-eq-visualizer span::after {
            background: #34206f;
            box-shadow: 0 0 5px rgba(74, 43, 164, 0.62);
        }
        html[data-theme="light"] .audio-eq-fader-track::after {
            background: rgba(109, 77, 242, 0.34);
        }
        html[data-theme="light"] .audio-eq-band input[type="range"],
        html[data-theme="light"] .audio-eq-preamp input[type="range"] {
            accent-color: #6d4df2;
            filter: saturate(1.65) contrast(1.12);
        }
        html[data-theme="light"] .audio-eq-preamp output,
        html[data-theme="light"] .audio-eq-band-advanced input {
            background: #f1f0f7;
            border-color: rgba(49, 43, 76, 0.17);
        }
        html[data-theme="light"] .audio-eq-warning {
            color: #8a5a00;
            border-color: rgba(180, 119, 0, 0.35);
            background: rgba(255, 185, 35, 0.09);
        }
        html[data-theme="light"] .audio-eq-warning-close {
            color: #8a5a00;
            background: rgba(180, 119, 0, 0.1);
        }
        html[data-theme="light"] .audio-eq-button,
        html[data-theme="light"] .audio-eq-close {
            border-color: rgba(49, 43, 76, 0.16);
            box-shadow: 0 2px 8px rgba(49, 43, 76, 0.06);
        }
        html[data-theme="light"] .studio-meter-card,
        html[data-theme="light"] .studio-history-wrap,
        html[data-theme="light"] .studio-vectorscope {
            background: #efeff6;
            border-color: rgba(49, 43, 76, 0.24);
        }
        html[data-theme="light"] .studio-meter-track {
            background: rgba(42, 36, 70, 0.13);
        }
        html[data-theme="light"] .studio-history-legend {
            border-color: rgba(49, 43, 76, 0.18);
            background: rgba(255, 255, 255, 0.5);
        }
        html[data-theme="light"] .studio-history-toggle {
            border-color: rgba(49, 43, 76, 0.2);
            background: #fff;
        }
        html[data-theme="light"] .studio-metric,
        html[data-theme="light"] .studio-listen,
        html[data-theme="light"] .audio-eq-pro-control {
            background: rgba(255, 255, 255, 0.72);
            border-color: rgba(49, 43, 76, 0.2);
        }
        html[data-theme="light"] .studio-correlation::after,
        html[data-theme="light"] .studio-meter-peak {
            filter: drop-shadow(0 0 2px rgba(49, 28, 112, 0.65));
        }
        html[data-theme="light"] .player {
            border-color: rgba(49, 43, 76, 0.15);
            box-shadow: 0 -10px 32px rgba(44, 38, 64, 0.13);
        }
        .audio-eq-pro-panel[hidden] { display: none; }
        .audio-eq-pro-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.55rem; margin-bottom: 1rem; }
        .audio-eq-pro-control { display: grid; grid-template-columns: 1fr auto; gap: 0.4rem 0.7rem; padding: 0.7rem; border: 1px solid var(--border); border-radius: 11px; background: rgba(255,255,255,0.025); }
        .audio-eq-pro-control strong { font-size: 0.7rem; }
        .audio-eq-pro-control output { color: var(--text-muted); font-size: 0.68rem; font-variant-numeric: tabular-nums; }
        .audio-eq-pro-control input { grid-column: 1 / -1; width: 100%; accent-color: var(--accent); }
        .audio-eq-pro-control select { grid-column: 1 / -1; width: 100%; padding: .38rem; border: 1px solid var(--border); border-radius: 7px; background: var(--control-bg); color: var(--text); }
        .studio-monitor { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; margin-bottom: 0.75rem; }
        .studio-meter-card { padding: 0.75rem; border: 1px solid var(--border); border-radius: 12px; background: rgba(0,0,0,0.16); }
        .studio-meter-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; color: var(--text-muted); font-size: 0.66rem; font-weight: 700; }
        .studio-meter-row { display: grid; grid-template-columns: 15px 1fr 52px; align-items: center; gap: 0.45rem; margin: 0.3rem 0; font-size: 0.65rem; }
        .studio-meter-track { position: relative; height: 8px; overflow: hidden; border-radius: 5px; background: rgba(255,255,255,0.07); }
        .studio-meter-fill { position: absolute; inset: 0; background: linear-gradient(90deg,#4ade80 0 68%,#fbbf24 84%,#f87171); transform: scaleX(0); transform-origin: left; }
        .studio-meter-peak { position: absolute; inset: -2px 0; background: linear-gradient(90deg, transparent 0, transparent calc(var(--peak-position, 0%) - 1px), #fff calc(var(--peak-position, 0%) - 1px), #fff calc(var(--peak-position, 0%) + 1px), transparent calc(var(--peak-position, 0%) + 1px)); }
        .studio-meter-value { color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
        .studio-clip { color: var(--text-muted); }
        .studio-clip.is-clipping { color: #f87171; text-shadow: 0 0 8px rgba(248,113,113,.7); }
        .studio-analysis-row { display: grid; grid-template-columns: 1fr 52px; gap: 0.5rem; align-items: center; margin-top: 0.55rem; font-size: 0.65rem; color: var(--text-muted); }
        .studio-correlation { position: relative; height: 8px; border-radius: 5px; background: linear-gradient(90deg,rgba(248,113,113,.4),rgba(251,191,36,.3) 50%,rgba(74,222,128,.4)); }
        .studio-correlation::after { content:''; position:absolute; inset:-3px 0; background:linear-gradient(90deg, transparent 0, transparent calc(var(--correlation-position, 100%) - 1px), #fff calc(var(--correlation-position, 100%) - 1px), #fff calc(var(--correlation-position, 100%) + 1px), transparent calc(var(--correlation-position, 100%) + 1px)); filter:drop-shadow(0 0 3px rgba(255,255,255,.8)); }
        .studio-monitor-actions { display:flex; gap:.45rem; margin-top:.7rem; }
        .studio-compare-match { align-self: center; color: var(--text-muted); font-size: .62rem; font-variant-numeric: tabular-nums; }
        .studio-fold { margin: 0 0 .75rem; }
        .studio-fold summary { list-style: none; cursor: pointer; }
        .studio-fold summary::-webkit-details-marker { display: none; }
        .studio-fold summary::after { content: '⌄'; margin-left: .45rem; transition: transform .18s ease; }
        .studio-fold[open] summary::after { transform: rotate(180deg); }
        .studio-fold > .audio-eq-pro-grid { margin-top: .55rem; }
        .studio-history-wrap { position: relative; grid-column: 1 / -1; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: rgba(0,0,0,.18); }
        .studio-history { width: 100%; height: 116px; display: block; }
        .studio-history-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; padding: 0.4rem 0.6rem; border-top: 1px solid var(--border); }
        .studio-history-toggle { appearance: none; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: .3rem .55rem; background: rgba(255,255,255,.045); color: var(--text); font: inherit; font-size: 0.58rem; font-weight: 700; cursor: pointer; transition: opacity .18s ease, background .18s ease, border-color .18s ease; }
        .studio-history-toggle::before { content: ''; display: inline-block; width: 12px; height: 2px; margin: 0 5px 2px 0; border-radius: 2px; background: #8b6cff; }
        .studio-history-toggle[data-curve="truePeak"]::before { background: #45d7e8; }
        .studio-history-toggle[data-curve="reduction"]::before { height: 7px; margin-bottom: -1px; background: rgba(251,191,36,.48); }
        .studio-history-toggle[aria-pressed="false"] { opacity: .4; background: transparent; border-color: transparent; text-decoration: line-through; }
        .studio-metrics { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: .45rem; }
        .studio-metric { min-width: 0; padding: .55rem .45rem; border: 1px solid var(--border); border-radius: 9px; background: rgba(255,255,255,.025); text-align: center; }
        .studio-metric span { display: block; overflow: hidden; color: var(--text-muted); font-size: .54rem; font-weight: 700; letter-spacing: .03em; text-overflow: ellipsis; white-space: nowrap; }
        .studio-metric output { display: block; margin-top: .2rem; color: var(--text); font-size: .72rem; font-variant-numeric: tabular-nums; }
        .studio-stereo-tools { grid-column: 1 / -1; display: grid; grid-template-columns: 126px 1fr; gap: .65rem; }
        .studio-vectorscope { width: 126px; height: 126px; display: block; border: 1px solid var(--border); border-radius: 12px; background: rgba(0,0,0,.22); }
        .studio-listen { display: flex; flex-direction: column; gap: .55rem; padding: .65rem; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.025); }
        .studio-listen-title { display: flex; justify-content: space-between; color: var(--text-muted); font-size: .58rem; font-weight: 700; }
        .studio-listen-modes { display: grid; grid-template-columns: repeat(3,1fr); gap: .3rem; }
        .studio-listen-mode { border: 1px solid var(--border); border-radius: 7px; padding: .4rem .2rem; background: rgba(255,255,255,.04); color: var(--text-muted); font: inherit; font-size: .58rem; font-weight: 700; cursor: pointer; }
        .studio-listen-mode.is-active { border-color: rgba(139,108,255,.72); background: rgba(139,108,255,.2); color: var(--text); }
        .studio-listen-mode:disabled { opacity: .38; cursor: not-allowed; }
        .studio-width { display: grid; grid-template-columns: 1fr auto; gap: .3rem .5rem; color: var(--text-muted); font-size: .58rem; font-weight: 700; }
        .studio-width input { grid-column: 1 / -1; width: 100%; accent-color: var(--accent); }
        .mobile-param-editor { position: fixed; z-index: 260; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: calc(var(--player-h) + 12px); display: grid; grid-template-columns: 1fr auto; gap: .55rem .75rem; align-items: center; padding: .8rem; border: 1px solid rgba(139,108,255,.55); border-radius: 14px; background: rgba(20,19,31,.97); box-shadow: 0 16px 50px rgba(0,0,0,.55); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
        .mobile-param-editor[hidden] { display: none; }
        .mobile-param-editor strong { min-width: 0; overflow: hidden; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
        .mobile-param-editor output { margin-right: 20px; color: var(--text); font-size: .78rem; font-variant-numeric: tabular-nums; }
        .mobile-param-editor input { grid-column: 1 / -1; width: 100%; height: 34px; accent-color: var(--accent); }
        .mobile-param-close { position: absolute; top: -.65rem; right: -.4rem; width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 50%; background: var(--player-control-bg); color: var(--text); opacity: .58; font-size: 1rem; cursor: pointer; }
        .mobile-param-close:active, .mobile-param-close:focus-visible { opacity: .9; }

        @media (max-width: 560px) {
            .audio-eq-modal { padding: 0; }
            .audio-eq-panel { max-height: calc(100vh - var(--player-h)); max-height: calc(100dvh - var(--player-h)); border-radius: 18px 18px 0 0; }
            .audio-eq-panel { padding: 1rem; }
            .audio-eq-header { position: sticky; top: -1rem; z-index: 20; margin: -1rem -1rem .75rem; padding: .8rem 1rem .65rem; background: var(--player-bg); border-bottom: 1px solid var(--border); }
            .audio-eq-header h2 { font-size: 1rem; }
            .audio-eq-header p { display: none; }
            .audio-eq-title-row { gap: .4rem; }
            .audio-eq-mode button { padding: .38rem .52rem; font-size: .62rem; white-space: nowrap; }
            .audio-eq-spectrum-sticky { position: relative; top: auto; z-index: 1; }
            .audio-eq-toolbar { align-items: flex-end; }
            .audio-eq-safety { display: none; }
            .audio-eq-bands { gap: 0.1rem; padding-inline: 0.25rem; }
            .audio-eq-fader-track { height: 106px; }
            .studio-metrics { grid-template-columns: repeat(3, minmax(0,1fr)); }
            .studio-stereo-tools { grid-template-columns: 106px 1fr; }
            .studio-vectorscope { width: 106px; height: 106px; }
            .audio-eq-band input[type="range"] { height: 100px; width: 100%; }
            .audio-eq-band output { min-width: 44px; font-size: 0.58rem; }
            .audio-eq-band .audio-eq-band-name { display: none; }
            .audio-eq-band-advanced input { height: 36px; padding: .2rem 0; font-size: 16px; line-height: 1; scroll-margin-top: 90px; touch-action: manipulation; }
            .audio-eq-pro-grid { grid-template-columns: 1fr; }
            .studio-fold { margin-bottom: .65rem; }
            .studio-fold > summary.audio-eq-section-title {
                min-height: 48px;
                margin: 0;
                padding: .55rem .55rem .55rem .75rem;
                border: 1px solid var(--border);
                border-radius: 12px;
                background: var(--surface);
                color: var(--text);
                text-transform: none;
                letter-spacing: .025em;
                transition: background .18s ease, border-color .18s ease;
            }
            .studio-fold > summary.audio-eq-section-title::after {
                content: '+';
                width: 30px;
                height: 30px;
                display: inline-grid;
                place-items: center;
                flex: 0 0 30px;
                margin-left: .55rem;
                border: 1px solid var(--border);
                border-radius: 9px;
                background: var(--player-control-bg);
                color: var(--accent);
                font-size: 1.15rem;
                font-weight: 500;
                line-height: 1;
                transform: none;
                transition: background .18s ease, color .18s ease, transform .18s ease;
            }
            .studio-fold[open] > summary.audio-eq-section-title {
                border-color: color-mix(in srgb, var(--accent) 34%, var(--border));
                background: var(--accent-soft);
            }
            .studio-fold[open] > summary.audio-eq-section-title::after {
                content: '−';
                background: var(--accent);
                color: #fff;
                transform: none;
            }
            .studio-fold > summary.audio-eq-section-title:focus-visible {
                outline: 3px solid var(--accent-soft);
                outline-offset: 2px;
            }
            .audio-eq-actions, .studio-monitor-actions { flex-wrap: wrap; }
            .audio-eq-actions .audio-eq-status { flex-basis: 100%; }
        }

        @media (prefers-reduced-motion: reduce) {
            .player-eq span {
                transition: none;
                transform: scaleY(0.35);
            }
        }

        .player-track-time {
            display: flex;
            align-items: center;
            gap: 0.35rem;
            font-size: 0.75rem;
            color: var(--text-muted);
            font-variant-numeric: tabular-nums;
        }

        .player-controls {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .btn-control {
            width: 44px;
            height: 44px;
            border: none;
            border-radius: 50%;
            background: var(--player-control-bg);
            color: var(--text);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s, transform 0.15s;
        }

        .btn-control:hover { background: var(--player-control-hover); }
        .btn-control:active { transform: scale(0.93); }
        .btn-control:disabled { opacity: 0.35; cursor: default; }
        .btn-control.is-active {
            color: var(--accent);
            background: var(--accent-soft);
        }

        .btn-control svg { width: 20px; height: 20px; fill: currentColor; }
        .btn-control .mode-icon { display: none; }
        .btn-control[data-mode="shuffle"] .mode-shuffle,
        .btn-control[data-mode="repeat-all"] .mode-repeat-all,
        .btn-control[data-mode="repeat-one"] .mode-repeat-one { display: block; }

        .btn-play {
            width: 52px;
            height: 52px;
            background: var(--accent);
            color: #fff;
            box-shadow: 0 4px 20px var(--accent-glow);
        }

        .btn-play:hover { background: #6b4de0; }
        .btn-play svg { width: 24px; height: 24px; }

        .player-volume {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            width: 120px;
        }

        .player-volume svg { width: 18px; height: 18px; fill: var(--text-muted); flex-shrink: 0; }

        .volume-slider {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            height: 4px;
            border-radius: 2px;
            background: var(--player-volume-track);
            outline: none;
            cursor: pointer;
        }

        .volume-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: var(--accent);
            cursor: pointer;
        }

        .volume-slider::-moz-range-thumb {
            width: 14px;
            height: 14px;
            border: none;
            border-radius: 50%;
            background: var(--accent);
            cursor: pointer;
        }

        .lyrics-panel {
            position: fixed;
            left: 50%;
            bottom: calc(var(--player-h) + 1rem);
            transform: translateX(-50%);
            z-index: 80;
            width: min(720px, calc(100vw - 2rem));
            display: grid;
            grid-template-rows: auto auto auto;
            gap: 0.75rem;
            padding: 1rem;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            background: var(--lyrics-glass-bg);
            background-clip: padding-box;
            backdrop-filter: blur(24px) saturate(160%);
            -webkit-backdrop-filter: blur(24px) saturate(160%);
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.16),
                inset 0 -1px 0 rgba(255, 255, 255, 0.05),
                0 18px 60px rgba(0, 0, 0, 0.42);
            overflow: hidden;
            isolation: isolate;
        }

        .lyrics-panel::before {
            content: "";
            position: absolute;
            inset: 0;
            z-index: 0;
            border-radius: inherit;
            background:
                radial-gradient(ellipse 85% 120% at 20% 0%, rgba(255, 255, 255, 0.075), transparent 58%),
                linear-gradient(110deg, rgba(255, 255, 255, 0.055), transparent 42%);
            opacity: 0.62;
            pointer-events: none;
        }

        .lyrics-panel > * {
            position: relative;
            z-index: 1;
        }

        .lyrics-panel[hidden] { display: none; }

        .lyrics-panel.is-reduced .lyrics-toolbar {
            display: none;
        }

        .lyrics-panel.is-reduced .lyrics-song-titles {
            display: none;
        }

        .lyrics-panel.is-reduced {
            grid-template-rows: auto;
            gap: 0;
            padding: 0.75rem;
        }

        .lyrics-toolbar {
            display: flex;
            flex-wrap: nowrap;
            gap: 0.45rem;
            align-items: center;
            min-width: 0;
        }

        .lyrics-toolbar strong {
            flex: 0 0 auto;
            font-size: 0.85rem;
        }

        .lyrics-language-controls {
            display: flex;
            gap: 0.45rem;
            align-items: center;
            margin-left: auto;
            min-width: 0;
        }

        .lyrics-language-reset {
            display: inline-grid;
            place-items: center;
            width: 2.15rem;
            height: 2.15rem;
            flex: 0 0 2.15rem;
            padding: 0;
            border: 1px solid var(--border);
            border-radius: 8px;
            background: var(--player-control-bg);
            color: var(--text-muted);
            cursor: pointer;
            transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
        }

        .lyrics-language-reset[hidden] {
            display: none;
        }

        .lyrics-language-reset:hover,
        .lyrics-language-reset:focus-visible {
            border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
            background: color-mix(in srgb, var(--accent) 12%, var(--player-control-bg));
            color: var(--accent);
        }

        .lyrics-language-reset:active {
            transform: rotate(-28deg) scale(0.94);
        }

        .lyrics-language-reset svg {
            width: 1rem;
            height: 1rem;
            fill: currentColor;
        }

        .lyrics-song-titles {
            display: grid;
            grid-template-columns: max-content minmax(0, 1fr);
            align-items: baseline;
            gap: 0.5rem 1rem;
            padding: 0.75rem 0.85rem;
            border: 1px solid var(--border);
            border-radius: 10px;
            background: rgba(0, 0, 0, 0.12);
        }

        html[data-theme="light"] .lyrics-song-titles {
            background: rgba(255, 255, 255, 0.3);
        }

        .lyrics-song-titles[hidden] {
            display: none;
        }

        .lyrics-original-title,
        .lyrics-localized-title {
            display: contents;
        }

        .lyrics-original-title small,
        .lyrics-localized-title small {
            color: var(--text-muted);
            font-size: 0.66rem;
            font-weight: 500;
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }

        .lyrics-localized-titles {
            display: contents;
        }

        .lyrics-original-title strong,
        .lyrics-localized-title strong {
            min-width: 0;
            color: var(--text);
            font-size: 1rem;
            font-weight: 700;
            line-height: 1.25;
            overflow-wrap: anywhere;
            unicode-bidi: plaintext;
        }

        .lyrics-toolbar select,
        .lyrics-toolbar label {
            border: 1px solid var(--border);
            border-radius: 8px;
            background: var(--player-control-bg);
            color: var(--text);
            font: inherit;
            font-size: 0.78rem;
        }

        .lyrics-toolbar select {
            padding: 0.45rem 0.55rem;
        }

        .lyrics-toolbar label {
            display: inline-flex;
            gap: 0.35rem;
            align-items: center;
            padding: 0.45rem 0.55rem;
            color: var(--text-muted);
            cursor: pointer;
        }

        .lyrics-toolbar select {
            min-width: 0;
            max-width: 8.25rem;
        }

        .lyrics-lines {
            --lyrics-row-h: 4rem;
            overflow: hidden;
            display: grid;
            grid-template-rows: repeat(3, var(--lyrics-row-h));
            gap: 0.45rem;
            height: calc(var(--lyrics-row-h) * 3 + 0.9rem);
        }

        .lyrics-lines.is-single-language {
            --lyrics-row-h: 3rem;
        }

        .lyrics-lines.is-minimal {
            grid-template-rows: var(--lyrics-row-h);
            height: var(--lyrics-row-h);
        }

        .lyrics-panel.is-reduced .lyrics-lines.is-minimal {
            --lyrics-row-h: 3.7rem;
        }

        .lyrics-panel.is-reduced .lyrics-lines.is-minimal.is-single-language {
            --lyrics-row-h: 2.85rem;
        }

        .lyrics-line {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 2.5rem;
            align-items: center;
            align-content: center;
            column-gap: 0.45rem;
            row-gap: 0.16rem;
            height: var(--lyrics-row-h);
            min-height: var(--lyrics-row-h);
            padding: 0.4rem 0.5rem 0.4rem 0.6rem;
            border-radius: 10px;
            color: var(--text-muted);
            opacity: 0.42;
            transition: background 0.2s, color 0.2s, opacity 0.28s ease, transform 0.28s ease;
            white-space: nowrap;
            overflow: hidden;
            line-height: 1.2;
        }

        .lyrics-lines.is-single-language .lyrics-line {
            grid-template-columns: minmax(0, 1fr) 2.5rem;
            grid-template-rows: 1fr;
            row-gap: 0;
            padding-top: 0.35rem;
            padding-bottom: 0.35rem;
        }

        .lyrics-lines.is-single-language .lyrics-line .primary {
            grid-row: 1;
            align-self: center;
        }

        .lyrics-lines.is-single-language .lyrics-resize {
            grid-row: 1;
        }

        .lyrics-panel.is-reduced .lyrics-line {
            grid-template-columns: minmax(0, 1fr) 2.5rem;
            padding: 0.35rem 0.45rem 0.35rem 0.55rem;
        }

        .lyrics-panel.is-reduced .lyrics-lines.is-single-language .lyrics-line {
            grid-template-columns: minmax(0, 1fr) 2.5rem;
            padding: 0.32rem 0.4rem 0.32rem 0.55rem;
        }

        .lyrics-line.placeholder {
            pointer-events: none;
            visibility: hidden;
        }

        .lyrics-line.nearby {
            opacity: 0.42;
        }

        .lyrics-line.active {
            background: var(--lyrics-active-bg);
            background-image: none;
            color: var(--text);
            opacity: 1;
            box-shadow: none;
        }

        .lyrics-line .secondary {
            grid-column: 1;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: 0.78em;
            color: var(--text-muted);
            transition: opacity 0.28s ease, transform 0.28s ease;
        }

        .lyrics-line .primary {
            grid-column: 1;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            transition: opacity 0.28s ease, transform 0.28s ease;
        }

        .lyrics-panel.is-reduced .lyrics-line .primary {
            font-size: clamp(1rem, 4.2vw, 1.28rem);
        }

        .lyrics-panel.is-reduced .lyrics-lines.is-single-language .lyrics-line .primary {
            font-size: clamp(0.95rem, 4vw, 1.18rem);
            line-height: 1;
            transform: none;
        }

        .lyrics-resize {
            grid-column: 2;
            grid-row: 1 / span 2;
            align-self: center;
            width: 2.25rem;
            height: 2.25rem;
            border: 1px solid var(--border);
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.04);
            color: var(--text-muted);
            display: none;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0.78;
            transition: opacity 0.2s, background 0.2s, color 0.2s;
        }

        .lyrics-panel.is-reduced .lyrics-resize {
            opacity: 0.78;
        }

        .lyrics-resize:hover {
            opacity: 0.9;
            background: var(--player-control-bg);
            color: var(--text);
        }

        .lyrics-line.active .lyrics-resize {
            display: inline-flex;
        }

        .lyrics-resize svg {
            width: 1.15rem;
            height: 1.15rem;
            fill: currentColor;
            pointer-events: none;
        }

        .lyrics-line.break {
            padding: 0.2rem 0.6rem;
        }

        .lyrics-line.break.active {
            background: transparent;
            transform: none;
        }

        /* ── Responsive ── */
        @media (max-width: 600px) {
            .app { padding: 1.5rem 1rem calc(var(--player-h) + 1.5rem); }
            body.no-player .app { padding-bottom: 1.5rem; }
            .lang-switcher {
                top: 0;
                right: 0;
                transform: none;
                padding: 0.15rem;
            }
            .lang-switcher a {
                padding: 0.25rem 0.45rem;
                font-size: 0.7rem;
                min-width: 1.75rem;
                text-align: center;
            }
            .lang-switcher .lang-full { display: none; }
            .lang-switcher .lang-short { display: inline; }
            .header h1 { font-size: 1.4rem; }
            .file-item { padding: 0.75rem 0.85rem; gap: 0.75rem; }
            .player-volume { display: none; }
            .player-body { gap: 0.75rem; }
            .btn-control { width: 40px; height: 40px; }
            .btn-play { width: 48px; height: 48px; }
            .lyrics-panel {
                bottom: calc(var(--player-h) + 0.75rem);
                width: calc(100vw - 1rem);
                max-height: calc(100vh - var(--player-h) - 1.5rem);
                max-height: calc(100dvh - var(--player-h) - 1.5rem);
                overflow-x: hidden;
                overflow-y: auto;
                overscroll-behavior: contain;
            }
            .lyrics-toolbar {
                overflow-x: auto;
                padding-bottom: 0.1rem;
            }
        }

        @media (max-width: 420px) {
            :root {
                --player-h: 126px;
            }

            .player {
                padding-inline: 0.75rem;
            }

            .player-body {
                display: grid;
                grid-template-columns: minmax(0, 1fr);
                grid-template-rows: 2.35rem minmax(0, 1fr);
                align-content: stretch;
                gap: 0;
                width: 100%;
                padding: 3px 0 0.25rem;
            }

            .player-track {
                display: grid;
                grid-template-columns: minmax(0, 1fr) auto;
                align-items: center;
                align-self: center;
                gap: 0.75rem;
                width: 100%;
            }

            .player-title-row {
                min-width: 0;
            }

            .player-track-title {
                font-size: 0.78rem;
            }

            .player-track-time {
                justify-self: end;
                white-space: nowrap;
            }

            .player-controls {
                align-self: center;
                justify-content: center;
                gap: 0.4rem;
                width: 100%;
            }

            .btn-control {
                width: 44px;
                height: 44px;
            }

            .btn-play {
                width: 56px;
                height: 56px;
            }
        }

        @media (max-width: 400px) {
            .file-index { display: none; }
            .file-actions .btn-icon { width: 32px; height: 32px; }
        }
