        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: #08080f;
            color: #fff;
            overflow: hidden;
            width: 100vw;
            height: 100vh;
        }

        /* ===== 海报级动态背景 ===== */
        #poster-bg {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            z-index: 0;
            pointer-events: none;
            overflow: hidden;
            background: #08080f;
        }
        /* 动态渐变光球 */
        .gradient-orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(80px);
            opacity: 0.45;
            transition: opacity 1.5s ease, background 2s ease, transform 3s ease;
            will-change: transform, opacity;
        }
        .gradient-orb.orb-1 {
            width: 60vw; height: 60vw;
            top: -15%; left: -10%;
            background: radial-gradient(circle, #4a00e0 0%, transparent 70%);
        }
        .gradient-orb.orb-2 {
            width: 50vw; height: 50vw;
            bottom: -10%; right: -10%;
            background: radial-gradient(circle, #ff006e 0%, transparent 70%);
        }
        .gradient-orb.orb-3 {
            width: 45vw; height: 45vw;
            top: 30%; right: 5%;
            background: radial-gradient(circle, #00b4d8 0%, transparent 70%);
            opacity: 0.3;
        }
        /* 段落主题色覆盖 */
        .gradient-orb[data-section="intro"] { opacity: 0.25; }
        .gradient-orb[data-section="verse"] { opacity: 0.35; }
        .gradient-orb[data-section="chorus"] { opacity: 0.5; }
        .gradient-orb[data-section="climax"] { opacity: 0.65; }
        .gradient-orb[data-section="outro"] { opacity: 0.2; }

        /* 电影感暗角 */
        #vignette {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            z-index: 2;
            pointer-events: none;
            background: radial-gradient(ellipse at center,
                transparent 30%,
                rgba(8,8,15,0.4) 70%,
                rgba(8,8,15,0.85) 100%);
            transition: opacity 0.8s ease;
        }
        /* 胶片噪点纹理 */
        #film-grain {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            z-index: 3;
            pointer-events: none;
            opacity: 0.035;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
            mix-blend-mode: overlay;
        }
        #canvas-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
        }
        #ui-layer {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 10;
            pointer-events: none;
            display: flex;
            flex-direction: column;
        }
        #ui-layer > * { pointer-events: auto; }
        .search-section {
            position: relative;
            z-index: 20;
            padding: 14px 24px;
            background: rgba(10,10,20,0.55);
            backdrop-filter: blur(30px) saturate(1.5);
            -webkit-backdrop-filter: blur(30px) saturate(1.5);
            border-bottom: 1px solid rgba(255,255,255,0.06);
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        .search-box {
            display: flex;
            gap: 8px;
            flex: 1;
            min-width: 200px;
            max-width: 500px;
        }
        .search-box input {
            flex: 1;
            padding: 12px 16px;
            border: 1px solid rgba(255,255,255,0.15);
            border-radius: 10px;
            background: rgba(255,255,255,0.08);
            color: #fff;
            font-size: 14px;
            outline: none;
            transition: all 0.3s;
            min-width: 0;
        }
        .search-box input:focus {
            border-color: rgba(255,255,255,0.4);
            background: rgba(255,255,255,0.12);
        }
        .search-box input::placeholder { color: rgba(255,255,255,0.35); }
        .search-box button {
            padding: 12px 20px;
            border: none;
            border-radius: 10px;
            background: #1db954;
            color: #fff;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            white-space: nowrap;
        }
        .search-box button:hover { background: #1ed760; transform: scale(1.02); }
        .search-box button:active { transform: scale(0.97); }
        .search-box button:disabled { opacity: 0.5; cursor: not-allowed; }
        .results-panel {
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            width: min(600px, calc(100vw - 64px));
            max-height: 50vh;
            overflow-y: auto;
            background: rgba(20,20,20,0.95);
            backdrop-filter: blur(20px);
            border-radius: 12px;
            border: 1px solid rgba(255,255,255,0.1);
            display: none;
            z-index: 100;
        }
        .results-panel.active { display: block; animation: slideDown 0.25s ease; }
        /* 搜索结果过滤状态条 */
        .results-filter-status {
            padding: 8px 20px;
            font-size: 12px;
            color: rgba(255,180,60,0.9);
            background: rgba(255,180,60,0.08);
            border-bottom: 1px solid rgba(255,180,60,0.15);
            text-align: center;
            position: sticky;
            top: 0;
            z-index: 1;
            backdrop-filter: blur(10px);
        }
        .result-item {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 14px 20px;
            cursor: pointer;
            transition: background 0.2s;
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }
        .result-item:hover { background: rgba(255,255,255,0.08); }
        .result-item img {
            width: 48px;
            height: 48px;
            border-radius: 6px;
            object-fit: cover;
        }
        .result-info { flex: 1; }
        .result-info .title { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
        .result-info .artist { font-size: 13px; color: rgba(255,255,255,0.5); }
        .play-icon {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: #1db954;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
        }
        .result-duration { font-size: 12px; color: rgba(255,255,255,0.4); margin-right: 12px; }
        .player-bar {
            margin-top: auto;
            padding: 18px 32px;
            background: rgba(10,10,20,0.55);
            backdrop-filter: blur(30px) saturate(1.5);
            -webkit-backdrop-filter: blur(30px) saturate(1.5);
            border-top: 1px solid rgba(255,255,255,0.06);
            display: flex;
            align-items: center;
            gap: 20px;
        }
        .now-playing {
            display: flex;
            align-items: center;
            gap: 14px;
            min-width: 200px;
        }
        .now-playing img {
            width: 56px;
            height: 56px;
            border-radius: 8px;
            object-fit: cover;
        }
        .now-playing .info .title { font-weight: 600; font-size: 14px; }
        .now-playing .info .artist { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 3px; }
        .controls {
            display: flex;
            align-items: center;
            gap: 16px;
            flex: 1;
            justify-content: center;
        }
        .control-btn {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            border: none;
            background: rgba(255,255,255,0.1);
            color: #fff;
            font-size: 18px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }
        .control-btn:hover { background: rgba(255,255,255,0.2); transform: scale(1.05); }
        .control-btn:active { transform: scale(0.92); }
        .control-btn.play { width: 56px; height: 56px; background: #fff; color: #000; font-size: 22px; }
        .control-btn.play:hover { transform: scale(1.08); }
        .progress-area {
            flex: 1;
            max-width: 400px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .progress-bar {
            flex: 1;
            height: 6px;
            background: rgba(255,255,255,0.15);
            border-radius: 2px;
            cursor: pointer;
            position: relative;
            user-select: none;
            -webkit-user-select: none;
        }
        .progress-bar:hover { height: 8px; }
        .progress-bar .progress-thumb { position:absolute; right:-5px; top:50%; transform:translateY(-50%); width:12px; height:12px; border-radius:50%; background:#fff; opacity:0; transition:opacity 0.2s; }
        .progress-bar:hover .progress-thumb { opacity:1; }
        .progress-fill {
            height: 100%;
            background: #1db954;
            border-radius: 2px;
            width: 0%;
            transition: width 0.1s linear;
            position: relative;
        }
        .time { font-size: 12px; color: rgba(255,255,255,0.5); min-width: 36px; text-align: center; }
        .volume-area {
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 120px;
        }
        .volume-slider {
            width: 80px;
            height: 4px;
            background: rgba(255,255,255,0.15);
            border-radius: 2px;
            cursor: pointer;
            position: relative;
            user-select: none;
            -webkit-user-select: none;
        }
        .volume-slider:hover { height: 6px; }
        .volume-slider .volume-thumb { position:absolute; right:-5px; top:50%; transform:translateY(-50%); width:12px; height:12px; border-radius:50%; background:#fff; opacity:0; transition:opacity 0.2s; }
        .volume-slider:hover .volume-thumb { opacity:1; }
        .volume-fill {
            height: 100%;
            background: #fff;
            border-radius: 2px;
            width: 70%;
            position: relative;
        }
        .loading {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 100;
            display: none;
            text-align: center;
        }
        .loading::before {
            content: '';
            display: block;
            width: 36px;
            height: 36px;
            border: 3px solid rgba(255,255,255,0.15);
            border-top-color: #1db954;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin: 0 auto 12px;
        }
        .loading::after {
            content: attr(data-text);
            font-size: 13px;
            color: rgba(255,255,255,0.5);
        }
        @keyframes spin { to { transform: rotate(360deg); } }
        .loading.active { display: block; }

        /* ===== 播放错误卡片（无法播放时的优雅提示） ===== */
        .play-error-card {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.92);
            z-index: 200;
            display: none;
            flex-direction: column;
            align-items: center;
            gap: 14px;
            width: min(420px, calc(100vw - 48px));
            padding: 32px 28px 26px;
            text-align: center;
            background: rgba(22,22,28,0.92);
            backdrop-filter: blur(24px);
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 18px;
            box-shadow: 0 24px 80px rgba(0,0,0,0.55);
            opacity: 0;
            transition: opacity 0.28s ease, transform 0.28s ease;
        }
        .play-error-card.active {
            display: flex;
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
        .pec-icon {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255,80,80,0.12);
            color: #ff6b6b;
        }
        .pec-body { width: 100%; }
        .pec-title {
            font-size: 17px;
            font-weight: 700;
            color: #fff;
            margin-bottom: 8px;
        }
        .pec-song {
            font-size: 14px;
            color: rgba(255,255,255,0.85);
            margin-bottom: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .pec-artist { color: rgba(255,255,255,0.5); font-size: 12px; }
        .pec-reason {
            font-size: 13px;
            color: rgba(255,255,255,0.5);
            line-height: 1.5;
        }
        .pec-actions { display: flex; gap: 12px; margin-top: 4px; }
        .pec-btn {
            flex: 1;
            padding: 11px 18px;
            border: 1px solid rgba(255,255,255,0.16);
            border-radius: 10px;
            background: rgba(255,255,255,0.06);
            color: rgba(255,255,255,0.8);
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        .pec-btn:hover { background: rgba(255,255,255,0.14); color: #fff; }
        .pec-btn-primary {
            border-color: transparent;
            background: #1db954;
            color: #fff;
        }
        .pec-btn-primary:hover { background: #1ed760; }

        .no-lyrics {
            position: fixed;
            bottom: 120px;
            left: 50%;
            transform: translateX(-50%);
            color: rgba(255,255,255,0.4);
            font-size: 14px;
            z-index: 10;
        }
        .empty-guide {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            z-index: 5;
            pointer-events: auto;
            transition: opacity 0.5s;
            animation: breathe 3s ease-in-out infinite;
        }
        @keyframes breathe { 0%,100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.02); } }
        .empty-guide.hidden { opacity: 0; pointer-events: none; }
        .empty-guide-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
        .empty-guide-text { font-size: 18px; color: rgba(255,255,255,0.75); margin-bottom: 8px; }
        .empty-guide-hint { font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 20px; }
        .empty-guide-btn {
            padding: 10px 28px;
            border: 1px solid rgba(255,255,255,0.15);
            border-radius: 10px;
            background: rgba(255,255,255,0.08);
            color: rgba(255,255,255,0.7);
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s;
        }
        .empty-guide-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }
        .play-icon:active { transform: scale(0.9); }
        .result-item:active { background: rgba(255,255,255,0.12); }
        /* 无法播放的歌曲：置灰 + 标记 */
        .result-item.unplayable { opacity: 0.5; cursor: not-allowed; }
        .result-item.unplayable:hover { background: rgba(255,80,80,0.08); }
        .result-item.unplayable .play-icon {
            background: rgba(255,80,80,0.18);
            color: #ff6b6b;
        }
        .result-item.unplayable .play-icon polygon { display: none; }
        .result-unplayable-tag {
            font-size: 10px;
            color: #ff6b6b;
            background: rgba(255,80,80,0.14);
            padding: 2px 7px;
            border-radius: 6px;
            margin-left: 8px;
            white-space: nowrap;
        }

        /* ===== 内置播放列表 ===== */
        .playlist-toggle {
            padding: 10px 18px;
            border: 1px solid rgba(255,255,255,0.15);
            border-radius: 10px;
            background: rgba(255,255,255,0.08);
            color: rgba(255,255,255,0.7);
            font-size: 13px;
            cursor: pointer;
            transition: all 0.3s;
            white-space: nowrap;
            flex-shrink: 0;
            margin-left: auto;
        }
        .playlist-toggle:hover { background: rgba(255,255,255,0.15); color: #fff; }
        .playlist-toggle:active { transform: scale(0.97); }
        .playlist-panel {
            position: absolute;
            top: calc(100% + 8px);
            right: 20px;
            width: min(380px, calc(100vw - 40px));
            max-height: 55vh;
            overflow-y: auto;
            background: rgba(20,20,20,0.95);
            backdrop-filter: blur(20px);
            border-radius: 12px;
            border: 1px solid rgba(255,255,255,0.1);
            display: none;
            z-index: 100;
        }
        .playlist-panel.active { display: block; animation: slideDown 0.25s ease; }
        .playlist-header {
            padding: 16px 20px 12px;
            font-weight: 700;
            font-size: 15px;
            color: rgba(255,255,255,0.8);
            border-bottom: 1px solid rgba(255,255,255,0.08);
            position: sticky;
            top: 0;
            background: rgba(20,20,20,0.98);
            backdrop-filter: blur(10px);
            z-index: 1;
        }
        .playlist-item {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 12px 20px;
            cursor: pointer;
            transition: background 0.2s;
            border-bottom: 1px solid rgba(255,255,255,0.04);
        }
        .playlist-item:hover { background: rgba(255,255,255,0.08); }
        .playlist-item.playing { background: rgba(29,185,84,0.15); }
        .playlist-item.playing .pl-name { color: #1db954; }
        .pl-index {
            width: 28px;
            font-size: 13px;
            color: rgba(255,255,255,0.35);
            text-align: center;
            flex-shrink: 0;
        }
        .playlist-item.playing .pl-index { color: #1db954; }
        .pl-info { flex: 1; min-width: 0; }
        .pl-name { font-size: 14px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .pl-artist { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .pl-tags-row { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: middle; }
        .pl-tag {
            display: inline-block;
            padding: 1px 6px;
            border-radius: 8px;
            font-size: 10px;
            font-weight: 400;
            background: rgba(29,185,84,0.15);
            color: #1db954;
            white-space: nowrap;
        }
        .pl-play-btn {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(29,185,84,0.2);
            color: #1db954;
            border: none;
            font-size: 12px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: all 0.2s;
            flex-shrink: 0;
        }
        .playlist-item:hover .pl-play-btn,
        .playlist-item.playing .pl-play-btn { opacity: 1; }
        .playlist-item.playing .pl-play-btn { background: #1db954; color: #fff; }
        /* 无法播放的播放列表项 */
        .playlist-item.unplayable { opacity: 0.45; }
        .playlist-item.unplayable .pl-name { color: rgba(255,255,255,0.5); }
        .playlist-item.unplayable .pl-play-btn {
            background: rgba(255,80,80,0.18);
            color: #ff6b6b;
            opacity: 1;
        }
        .pl-unplayable-tag {
            display: inline-block;
            margin-left: 6px;
            padding: 1px 6px;
            border-radius: 8px;
            font-size: 10px;
            background: rgba(255,80,80,0.16);
            color: #ff6b6b;
            vertical-align: middle;
        }
        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }

        /* ===== 响应式设计 ===== */
        @media (max-width: 768px) {
            .search-section { padding: 12px 14px; gap: 8px; }
            .search-box { flex: 1; min-width: 0; }
            .search-box input { padding: 10px 14px; font-size: 13px; }
            .search-box button { padding: 10px 16px; font-size: 13px; }
            .playlist-toggle { padding: 8px 14px; font-size: 12px; }
            .results-panel { width: calc(100vw - 28px); left: 14px; transform: none; }
            .playlist-panel { width: calc(100vw - 28px); right: 14px; }
            .player-bar { padding: 10px 14px; gap: 8px; }
            .now-playing { min-width: 0; gap: 10px; }
            .now-playing img { width: 40px; height: 40px; }
            .now-playing .title { font-size: 13px; }
            .now-playing .artist { font-size: 11px; }
            .controls { gap: 8px; }
            .control-btn { width: 36px; height: 36px; font-size: 14px; }
            .control-btn.play { width: 44px; height: 44px; font-size: 18px; }
            .progress-area { gap: 8px; max-width: 100%; }
            .volume-area { display: none; }
            .time { font-size: 11px; }
            .css-lyric-line { font-size: clamp(28px, 6vw, 48px) !important; }
            .css-lyric-prev, .css-lyric-next { font-size: clamp(16px, 3vw, 24px) !important; }
            .playlist-item { padding: 10px 14px; gap: 10px; }
            .pl-name { font-size: 13px; }
            .pl-artist { font-size: 11px; }
        }
        @media (max-width: 400px) {
            .search-box input { font-size: 12px; padding: 10px 12px; }
            .search-box button { padding: 10px 12px; font-size: 12px; }
            .playlist-toggle { font-size: 11px; padding: 8px 10px; }
            .now-playing img { width: 36px; height: 36px; }
            .now-playing .title { font-size: 12px; }
            .control-btn { width: 32px; height: 32px; font-size: 12px; }
            .control-btn.play { width: 40px; height: 40px; font-size: 16px; }
        }

        @keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

        /* ===== CSS 粒子背景 + 动态歌词 ===== */
        #css-lyrics-bg {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            z-index: 1; pointer-events: none; overflow: hidden;
            background: transparent;
        }
        #particle-canvas {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            /* 粒子以"加光"方式与下层背景融合，黑色/透明区域不影响背景 */
            mix-blend-mode: screen;
        }

        #css-lyric-display {
            position: fixed; top: 40%; left: 50%;
            transform: translate(-50%, -50%);
            z-index: 5; pointer-events: none;
            text-align: center; width: 90%; max-width: 900px;
            background: transparent; /* 无背景，直接与粒子融合 */
        }

        /* ===== LDAT Motion Engine: 7 种入场动画模板 ===== */

        /* 歌词内分段效果 — 排比统一布局：所有段 inline-block + baseline 对齐 */
        .lyric-seg {
            display: inline-block;
            opacity: 0;
            vertical-align: baseline;
        }
        /* 歌词分行容器：每行 block，阶梯缩进形成艺术化排版 */
        .lyric-line-row {
            display: block;
            text-align: center;
            margin: 0.08em 0;
            transition: margin 0.3s ease;
        }
        .lyric-line-row:first-child {
            margin-top: 0;
        }
        .lyric-line-row:last-child {
            margin-bottom: 0;
        }

        /* A段（主句）：纯白主色，按行模3循环切换字体族，增加节奏变化 */
        .lyric-seg-a {
            color: #ffffff;
            font-family: 'Noto Serif SC', 'Songti SC', serif;
            font-size: 1em;
            font-weight: 900;
            font-style: normal;
            letter-spacing: -0.02em;
        }
        /* 第2行：无衬线黑体，硬朗对比 */
        .lyric-line-row:nth-child(3n+2) .lyric-seg-a {
            font-family: 'Noto Sans SC', 'PingFang SC', sans-serif;
            font-weight: 800;
            letter-spacing: 0.02em;
        }
        /* 第3行：文艺细衬线，柔和收束 */
        .lyric-line-row:nth-child(3n) .lyric-seg-a {
            font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
            font-weight: 400;
            letter-spacing: 0.05em;
        }
        /* A 段情绪增强：在循环字体基础上叠加字重/字距微调 */
        .css-lyric-line[data-emotion="passion"] .lyric-seg-a {
            font-weight: 900;
            letter-spacing: -0.03em;
        }
        .css-lyric-line[data-emotion="epic"] .lyric-seg-a {
            font-family: 'Noto Serif SC', 'Songti SC', serif;
            font-weight: 900;
            letter-spacing: 0.1em;
        }
        .css-lyric-line[data-emotion="romance"] .lyric-seg-a {
            font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
            font-weight: 400;
            letter-spacing: 0.08em;
        }
        .css-lyric-line.visible .lyric-seg-a {
            animation-name: seg-a-in;
            animation-duration: 0.28s;
            animation-timing-function: cubic-bezier(0.34,1.56,0.64,1);
            animation-fill-mode: forwards;
        }
        @keyframes seg-a-in {
            0%   { opacity: 0.3; transform: translateY(20px) scale(0.85); }
            60%  { opacity: 1; transform: translateY(-4px) scale(1.05); }
            100% { opacity: 1; transform: translateY(0) scale(1); }
        }

        /* B段（关键词）：高饱和金色对比色，斜体大幅放大，旋转弹跳入场 + 持续脉冲 */
        .lyric-seg-b {
            color: var(--seg-highlight-color, #ffcc00);
            font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
            font-size: 1.35em;
            font-weight: 600;
            font-style: italic;
            letter-spacing: 0.04em;
            margin: 0 0.08em;
            /* 无阴影，与粒子完全融合 */
            filter: none;
        }
        /* B 段字体随情绪变化：不同情绪关键词用不同字体族 + 字重/字距 */
        .css-lyric-line[data-emotion="nostalgia"] .lyric-seg-b {
            font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
            font-style: normal;
            font-weight: 400;
            letter-spacing: 0.06em;
        }
        .css-lyric-line[data-emotion="passion"] .lyric-seg-b {
            font-family: 'Ma Shan Zheng', 'Noto Sans SC', sans-serif;
            font-style: normal;
            font-weight: 400;
            letter-spacing: 0.02em;
        }
        .css-lyric-line[data-emotion="romance"] .lyric-seg-b {
            font-family: 'Cormorant Garamond', 'ZCOOL XiaoWei', serif;
            font-style: italic;
            font-weight: 500;
            letter-spacing: 0.08em;
        }
        .css-lyric-line[data-emotion="epic"] .lyric-seg-b {
            font-family: 'Noto Serif SC', 'Songti SC', serif;
            font-style: normal;
            font-weight: 900;
            letter-spacing: 0.12em;
        }
        .css-lyric-line[data-emotion="sadness"] .lyric-seg-b {
            font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
            font-style: italic;
            font-weight: 400;
            letter-spacing: 0.05em;
        }
        .css-lyric-line[data-emotion="joy"] .lyric-seg-b {
            font-family: 'Ma Shan Zheng', 'Noto Sans SC', sans-serif;
            font-style: normal;
            font-weight: 400;
            letter-spacing: 0.03em;
        }
        .css-lyric-line.visible .lyric-seg-b {
            animation-name: seg-b-in, seg-b-pulse;
            animation-duration: 0.35s, 1.5s;
            animation-timing-function: cubic-bezier(0.34,1.56,0.64,1), ease-in-out;
            animation-fill-mode: forwards, none;
            animation-iteration-count: 1, infinite;
        }
        .css-lyric-line.visible .lyric-seg-b {
            animation-delay: var(--seg-b-delay, 0s), 0.35s;
        }
        @keyframes seg-b-in {
            0%   { opacity: 0.3; transform: scale(0.5) rotate(-15deg) translateY(15px); }
            50%  { opacity: 1; transform: scale(1.2) rotate(6deg) translateY(-4px); }
            100% { opacity: 1; transform: scale(1) rotate(0) translateY(0); }
        }
        @keyframes seg-b-pulse {
            0%, 100% { transform: scale(1) rotate(0); }
            50% { transform: scale(1.12) rotate(2deg); }
        }

        /* C段（后半句）：次要色，小字，从右侧大幅滑入 */
        .lyric-seg-c {
            color: rgba(255,255,255,0.88);
            font-family: 'Noto Sans SC', 'PingFang SC', sans-serif;
            font-size: 0.82em;
            font-weight: 300;
            font-style: normal;
            letter-spacing: 0.06em;
            transform-origin: left center;
        }
        /* C 段按行模3循环切换字体族：奇数行无衬线细，第2行衬线斜体，第3行手写体 */
        .lyric-line-row:nth-child(3n+2) .lyric-seg-c {
            font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
            font-weight: 400;
            font-style: italic;
            letter-spacing: 0.02em;
        }
        .lyric-line-row:nth-child(3n) .lyric-seg-c {
            font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
            font-weight: 400;
            font-style: normal;
            letter-spacing: 0.04em;
        }
        .css-lyric-line.visible .lyric-seg-c {
            animation-name: seg-c-in;
            animation-duration: 0.3s;
            animation-timing-function: cubic-bezier(0.34,1.56,0.64,1);
            animation-fill-mode: forwards;
        }
        @keyframes seg-c-in {
            0%   { opacity: 0.3; transform: translateX(30px) scale(0.85); }
            60%  { opacity: 0.88; transform: translateX(-5px) scale(1.05); }
            100% { opacity: 0.88; transform: translateX(0) scale(1); }
        }

        /* D段（标点/连接词）：较暗淡，最小字，从上方落下 */
        .lyric-seg-d {
            color: rgba(255,255,255,0.7);
            font-size: 0.65em;
            font-weight: 600;
            margin: 0 0.15em;
        }
        .css-lyric-line.visible .lyric-seg-d {
            animation-name: seg-d-in;
            animation-duration: 0.4s;
            animation-timing-function: ease;
            animation-fill-mode: forwards;
            /* animation-delay 由内联样式设置 */
        }
        @keyframes seg-d-in {
            0%   { opacity: 0; transform: translateY(-50px) rotate(20deg) scale(0.3); }
            100% { opacity: 0.7; transform: translateY(0) rotate(0) scale(1); }
        }

        /* 退出动画：各段大幅消散 */
        .css-lyric-line.exiting .lyric-seg-a {
            animation: seg-a-out 0.35s ease forwards !important;
        }
        @keyframes seg-a-out {
            0%   { opacity: 1; transform: translateY(0) scale(1); }
            100% { opacity: 0; transform: translateY(-60px) scale(0.6); }
        }
        .css-lyric-line.exiting .lyric-seg-b {
            animation: seg-b-out 0.35s ease forwards !important;
        }
        @keyframes seg-b-out {
            0%   { opacity: 1; transform: scale(1) rotate(0); }
            100% { opacity: 0; transform: scale(0.1) rotate(35deg) translateY(-30px); }
        }
        .css-lyric-line.exiting .lyric-seg-c {
            animation: seg-c-out 0.35s ease forwards !important;
        }
        @keyframes seg-c-out {
            0%   { opacity: 0.55; transform: translateX(0) scale(1); }
            100% { opacity: 0; transform: translateX(80px) scale(0.5); }
        }
        .css-lyric-line.exiting .lyric-seg-d {
            animation: seg-d-out 0.3s ease forwards !important;
        }
        @keyframes seg-d-out {
            0%   { opacity: 0.35; transform: translateY(0); }
            100% { opacity: 0; transform: translateY(40px) scale(0.2); }
        }

        /* 当前歌词 — 纯白文字，无背景，与粒子融合 */
        .css-lyric-line {
            position: relative;
            font-family: 'Noto Serif SC', 'Songti SC', serif;
            font-size: clamp(36px, 7vw, 72px);
            font-weight: 900;
            line-height: 1.3;
            letter-spacing: 0.01em;
            display: inline-block;
            opacity: 1;
            transform: none;
            background: transparent;
            color: rgba(255,255,255,0.75);
            text-shadow: 0 0 8px rgba(255,255,255,0.06);
        }
        .css-lyric-line.visible {
            color: rgba(255,255,255,0.92);
            text-shadow: none;
        }

        /* 元数据行（作词/作曲/credits）：统一简洁格式，无动画/无渐变/无 glow */
        .css-lyric-line.is-meta {
            font-family: 'Noto Sans SC', 'PingFang SC', sans-serif;
            font-size: clamp(13px, 2.2vw, 18px) !important;
            font-weight: 400;
            letter-spacing: 0.02em;
            line-height: 1.6;
            color: rgba(255,255,255,0.5);
            background: none;
            -webkit-text-fill-color: rgba(255,255,255,0.5);
            filter: none;
            animation: none;
        }
        .css-lyric-line.is-meta.visible {
            background: none;
            -webkit-text-fill-color: rgba(255,255,255,0.5);
            filter: none;
            animation: none;
        }

        /* 逐字歌词状态：按词组/节奏段分组，整组共用特效（非逐字卡拉OK） */
        .lyric-char {
            display: inline-block;
            transition: opacity 0.4s ease, filter 0.4s ease, transform 0.3s ease, text-shadow 0.4s ease;
        }
        /* 未唱：暗淡、略模糊 */
        .lyric-char.pre-sing {
            opacity: 0.28;
            filter: brightness(0.4) blur(1px);
        }
        /* 正在唱的词组：整组高亮 + 发光 + 微缩放 */
        .lyric-char.singing {
            opacity: 1;
            -webkit-text-fill-color: #fff !important;
            background: none !important;
            filter: brightness(1.35);
            transform: scale(1.06);
            text-shadow: none;
        }
        /* 已唱完的词组：柔和保持 */
        .lyric-char.sung {
            opacity: 0.8;
            -webkit-text-fill-color: rgba(255,255,255,0.85) !important;
            background: none !important;
            filter: brightness(0.95);
        }
        /* B段关键词：差异化样式 — 加粗、加大、不同字重 */
        .lyric-seg-b .lyric-char {
            font-weight: 600;
            font-size: 1.08em;
            letter-spacing: 0.02em;
        }
        .lyric-seg-b .lyric-char.singing {
            font-weight: 800;
            transform: scale(1.18);
            filter: brightness(1.5);
        }
        .lyric-seg-b .lyric-char.sung {
            font-weight: 700;
        }
        /* --- EXPAND_CENTER: 高能量 → 从中心向两侧展开 --- */
        .css-lyric-line.anim-expand {
            transform: scaleX(0) scale(1);
            transform-origin: center;
            opacity: 0;
            filter: blur(0);
            transition: transform 0.25s cubic-bezier(0.16,1,0.3,1),
                        opacity 0.2s ease;
        }
        .css-lyric-line.anim-expand.visible {
            transform: scaleX(1) scale(1);
            opacity: 1;
        }

        /* --- FADE_OVERLAY: 低能量 → 从黑色叠加渐显 --- */
        .css-lyric-line.anim-fade {
            transform: translateY(0) scale(1);
            opacity: 0;
            filter: blur(3px);
            transition: opacity 0.3s ease, filter 0.25s ease;
        }
        .css-lyric-line.anim-fade.visible {
            opacity: 1;
            filter: blur(0);
        }

        /* --- FLOAT_FROM_BEHIND: 时光/流动 → 从后方飘出聚焦 --- */
        .css-lyric-line.anim-float {
            transform: translateY(20px) scale(0.92);
            opacity: 0;
            filter: blur(4px);
            transition: opacity 0.25s ease,
                        transform 0.3s cubic-bezier(0.22,1,0.36,1),
                        filter 0.25s ease;
        }
        .css-lyric-line.anim-float.visible {
            opacity: 1;
            transform: translateY(0) scale(1);
            filter: blur(0);
        }

        /* --- SCALE_UP_FADE: 副歌高潮 → 从小到大放大渐入 --- */
        .css-lyric-line.anim-scale {
            transform: scale(0.6);
            opacity: 0;
            filter: blur(0);
            transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1),
                        opacity 0.4s ease;
        }
        .css-lyric-line.anim-scale.visible {
            transform: scale(1);
            opacity: 1;
        }

        /* --- TYPED_REVEAL: 叙事/民谣 → 逐字显示 --- */
        .css-lyric-line.anim-typed {
            transform: translateY(0) scale(1);
            opacity: 1;
            filter: blur(0);
            clip-path: inset(0 100% 0 0);
            transition: clip-path 0.6s steps(12, end),
                        opacity 0.3s ease;
        }
        .css-lyric-line.anim-typed.visible {
            clip-path: inset(0 0 0 0);
            opacity: 1;
        }

        /* --- REVEAL_LINEAR: 节奏感强 → 从左到右逐字揭示 --- */
        .css-lyric-line.anim-reveal {
            transform: translateY(0) scale(1);
            opacity: 1;
            filter: blur(0);
            clip-path: inset(0 100% 0 0);
            transition: clip-path 0.5s linear,
                        opacity 0.2s ease;
        }
        .css-lyric-line.anim-reveal.visible {
            clip-path: inset(0 0 0 0);
            opacity: 1;
        }

        /* --- GLITCH_IN: 电子/摇滚 → RGB 撕裂故障入场 --- */
        .css-lyric-line.anim-glitch {
            transform: translateY(0) scale(1);
            opacity: 0;
            filter: blur(0);
            animation: glitch-enter 0.5s steps(6, end) forwards;
        }
        @keyframes glitch-enter {
            0%   { opacity: 0; transform: translate(-8px, 4px) skewX(-15deg); filter: hue-rotate(90deg) blur(2px); }
            20%  { opacity: 0.5; transform: translate(6px, -3px) skewX(10deg); filter: hue-rotate(-45deg); }
            40%  { opacity: 0.7; transform: translate(-4px, 2px) skewX(-5deg); filter: hue-rotate(45deg); }
            60%  { opacity: 0.9; transform: translate(3px, -1px) skewX(3deg); filter: hue-rotate(-15deg); }
            80%  { opacity: 1; transform: translate(-1px, 0) skewX(0deg); filter: hue-rotate(5deg); }
            100% { opacity: 1; transform: translate(0, 0) skewX(0deg); filter: none; }
        }

        /* --- WAVE_FLOW: 流动感强 → 3D波浪逐字涌出 --- */
        .css-lyric-line.anim-wave {
            opacity: 0;
            filter: blur(0);
            transform: perspective(800px) rotateX(30deg);
            transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.22,1,0.36,1), filter 0.6s ease;
        }
        .css-lyric-line.anim-wave.visible {
            opacity: 1;
            transform: perspective(800px) rotateX(0deg);
        }

        /* --- SCATTER_GATHER: 散落聚合 → 粒子从四周聚拢 --- */
        .css-lyric-line.anim-scatter {
            opacity: 0;
            filter: blur(8px);
            transform: scale(1.3);
            transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.34,1.56,0.64,1), filter 0.5s ease;
        }
        .css-lyric-line.anim-scatter.visible {
            opacity: 1;
            filter: blur(0);
            transform: scale(1);
        }

        /* --- NEON_PULSE: 赛博朋克 → 霓虹灯闪烁入场 --- */
        .css-lyric-line.anim-neon {
            opacity: 0;
            filter: blur(0);
            animation: neon-flicker 1.2s ease-out forwards;
        }
        @keyframes neon-flicker {
            0%   { opacity: 0; filter: brightness(3) blur(4px); text-shadow: 0 0 20px #0ff, 0 0 40px #0ff, 0 0 60px #0ff; }
            10%  { opacity: 0.8; filter: brightness(2.5) blur(2px); }
            15%  { opacity: 0.3; filter: brightness(1) blur(0); }
            20%  { opacity: 1; filter: brightness(2) blur(1px); text-shadow: 0 0 15px #0ff, 0 0 30px #0ff; }
            25%  { opacity: 0.6; filter: brightness(1.2); }
            35%  { opacity: 1; filter: brightness(1.5) blur(0); text-shadow: 0 0 10px rgba(0,255,255,0.6), 0 0 20px rgba(0,255,255,0.4); }
            100% { opacity: 1; filter: none; }
        }

        /* ===== RHYTHM_PULSE: 节拍脉冲 — 仅非关键词段微缩放，B段已有独立脉冲 ===== */
        .css-lyric-line.beat .lyric-seg:not(.lyric-seg-b) {
            transform: scale(1.05);
            transition: transform 0.08s ease;
        }

        /* ===== Detail Engine: 低能量半透明 ===== */
        .css-lyric-line.low-energy {
            opacity: var(--energy-opacity, 0.65);
        }

        /* ===== Detail Engine: 关键词虚化 — 怀旧词触发暖色柔焦 ===== */
        .css-lyric-line.keyword-blur {
            filter: blur(0.5px) brightness(1.08) sepia(0.15);
        }

        /* ===== 上一句：已隐藏，仅显示当前句 ===== */
        .css-lyric-prev {
            display: none !important;
        }

        /* ===== 下一句：已隐藏，仅显示当前句 ===== */
        .css-lyric-next {
            display: none !important;
        }


        /* ===== 歌曲信息开场动画 ===== */
        .song-intro {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            pointer-events: none;
            opacity: 0;
            z-index: 10;
            max-width: 96vw;
            overflow: visible;
        }
        .song-intro.show {
            animation: intro-in 1s ease forwards;
        }
        .song-intro.hiding {
            animation: intro-out 0.8s ease forwards;
        }
        @keyframes intro-in {
            0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
            100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
        }
        @keyframes intro-out {
            0%   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
            100% { opacity: 0; transform: translate(-50%, -50%) scale(1.1); }
        }

        /* ===== 能量爆发环 — 高能量节拍触发的扩散光环 ===== */
        .energy-burst {
            position: fixed;
            top: 40%;
            left: 50%;
            width: 100px;
            height: 100px;
            border-radius: 50%;
            border: 2px solid rgba(255,180,40,0.6);
            transform: translate(-50%, -50%) scale(0);
            pointer-events: none;
            z-index: 3;
            animation: burst-expand 0.8s ease-out forwards;
        }
        @keyframes burst-expand {
            0%   { transform: translate(-50%, -50%) scale(0); opacity: 0.8; border-width: 3px; }
            50%  { opacity: 0.4; border-width: 2px; }
            100% { transform: translate(-50%, -50%) scale(8); opacity: 0; border-width: 0; }
        }

        .song-intro-name {
            font-size: clamp(32px, 5.5vw, 64px);
            font-weight: 900;
            color: transparent;
            background: linear-gradient(135deg, #ffffff 0%, #e0d5ff 50%, #fff5e0 100%);
            -webkit-background-clip: text;
            background-clip: text;
            letter-spacing: 0.08em;
            /* text-shadow 对透明填充文字无效，改用 drop-shadow 跟随渐变形状发光；
               双层柔光与背景光球融合，不产生硬边 */
            filter: drop-shadow(0 0 24px rgba(255,255,255,0.22))
                    drop-shadow(0 0 60px var(--intro-glow, rgba(200,170,255,0.28)));
            margin-bottom: 12px;
            white-space: nowrap;
        }
        .song-intro-artist {
            font-size: clamp(14px, 2vw, 22px);
            font-weight: 300;
            color: rgba(255,255,255,0.6);
            letter-spacing: 0.15em;
            text-transform: uppercase;
            margin-bottom: 24px;
            text-shadow: 0 0 18px rgba(8,8,15,0.4);
        }
        .song-intro-line {
            width: 0;
            height: 2px;
            margin: 0 auto;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
            box-shadow: 0 0 12px rgba(255,255,255,0.3);
        }
        .song-intro.show .song-intro-line {
            animation: intro-line-in 1s ease forwards;
        }
        .song-intro.hiding .song-intro-line {
            animation: intro-line-out 0.8s ease forwards;
        }
        @keyframes intro-line-in {
            0%   { width: 0; }
            100% { width: 300px; }
        }
        @keyframes intro-line-out {
            0%   { width: 300px; }
            100% { width: 0; }
        }

        /* 开场粒子 canvas — 与背景光融合 */
        #intro-particles {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 960px;
            height: 600px;
            pointer-events: none;
            z-index: -1;
            /* 粒子以"加光"方式与下层背景融合，黑色/透明区域不影响背景 */
            mix-blend-mode: screen;
            /* 边缘径向渐隐，消除矩形边界感 */
            -webkit-mask-image: radial-gradient(ellipse 50% 60% at center, #000 55%, transparent 85%);
            mask-image: radial-gradient(ellipse 50% 60% at center, #000 55%, transparent 85%);
        }
