        :root {
            --bg-deep: #0a0a14;
            --text-primary: #e8e8f0;
            --text-secondary: #a0a5c0;
            --accent: #7b9ec7;
            --accent-glow: #a0c4e8;
            --panel-bg: rgba(14, 16, 30, 0.8);
            --slider-track: #2a3050;
            --btn-bg: rgba(30, 35, 60, 0.6);
            --border-subtle: rgba(255, 255, 255, 0.08);
            --radius-lg: 22px;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', 'Hiragino Sans GB', sans-serif;
            background: #050508;
            color: var(--text-primary);
            overflow: hidden;
            height: 100vh;
            width: 100vw;
            position: relative;
            -webkit-tap-highlight-color: transparent;
            user-select: none;
        }

        /* 频谱 Canvas */
        #spectrumCanvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
        }

        #particleCanvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 12;
            pointer-events: none;
        }

        /* 背景歌词虚化层 */
        .bg-lyrics-layer {
            position: fixed;
            inset: 0;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: none;
            padding: 2rem;
        }
        .bg-lyrics-text {
            font-size: clamp(2rem, 6vw, 4rem);
            font-weight: 300;
            color: rgba(255, 255, 255, 0.54);
            text-align: center;
            line-height: 1.4;
            filter: blur(1px);
            transition: opacity 0.6s;
            letter-spacing: 0.08em;
            text-shadow: 0 0 60px rgba(180, 200, 255, 0.3);
            max-width: 85vw;
            word-break: break-word;
        }

        /* 歌词掉落容器 */
        .lyric-fall-container {
            position: fixed;
            inset: 0;
            z-index: 15;
            pointer-events: none;
            overflow: hidden;
        }
        .merge-left, .merge-right {
            position: absolute;
            color: #ffffff;
            text-shadow: 0 0 25px rgba(255, 255, 255, 1), 0 0 50px rgba(180, 200, 255, 0.9), 0 0 80px rgba(140, 160, 255, 0.6);
            font-weight: bold;
            white-space: nowrap;
            pointer-events: none;
            z-index: 20;
        }
        .merge-left { left: 0; animation: mergeLeftIn 0.5s ease-out forwards; }
        .merge-right { right: 0; animation: mergeRightIn 0.5s ease-out forwards; }
        @keyframes mergeLeftIn {
            0% { left: 0; opacity: 0; transform: translateX(-100%) rotate(-3deg);}
            100% { left: 50%; opacity: 1; transform: translateX(-100%) rotate(0deg);}
        }
        @keyframes mergeRightIn {
            0% { right: 0; opacity: 0; transform: translateX(100%) rotate(3deg);}
            100% { right: 50%; opacity: 1; transform: translateX(100%) rotate(0deg);}
        }
        @keyframes shake {
            0%,100%{ transform: translateX(-50%); }
            10%{ transform: translateX(calc(-50% - 8px)); }
            20%{ transform: translateX(calc(-50% + 8px)); }
            30%{ transform: translateX(calc(-50% - 6px)); }
            40%{ transform: translateX(calc(-50% + 6px)); }
            50%{ transform: translateX(calc(-50% - 4px)); }
            60%{ transform: translateX(calc(-50% + 4px)); }
            70%{ transform: translateX(calc(-50% - 2px)); }
            80%{ transform: translateX(calc(-50% + 2px)); }
            90%{ transform: translateX(-50%); }
        }
        .shaking { animation: shake 0.5s ease-in-out; }
        @keyframes lyricFallTilted {
            0% { transform: translateY(0) translateX(-50%) rotate(0deg); opacity: 1; filter: blur(0px); }
            70% { opacity: 0.6; filter: blur(1px); }
            100% { transform: translateY(105vh) translateX(-50%) rotate(var(--fall-angle, 0deg)); opacity: 0; filter: blur(4px); }
        }
        .falling-lyric {
            position: absolute;
            white-space: nowrap;
            color: rgba(255, 255, 255, 0.45);
            text-shadow: 0 0 8px rgba(180, 200, 255, 0.4);
            pointer-events: none;
            z-index: 16;
            font-weight: 400;
        }
        .falling-lyric.tilted-fall { animation: lyricFallTilted var(--fall-duration, 6s) linear forwards; }
        .falling-lyric.normal-fall { animation: normalFall var(--fall-duration, 5s) linear forwards; }
        @keyframes normalFall {
            0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0.8; }
            100% { transform: translateY(105vh) translateX(30px) rotate(8deg); opacity: 0; filter: blur(3px); }
        }

        /* 播放器 UI */
        .main-container {
            position: relative;
            z-index: 10;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            height: 100vh;
            padding: env(safe-area-inset-top, 24px) 20px env(safe-area-inset-bottom, 20px) 20px;
            pointer-events: none;
        }
        .main-container>* { pointer-events: auto; }
        .header-area {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding-top: max(3vh, 18px);
            gap: 6px;
            flex-shrink: 0;
        }
        .avatar-wrapper {
            position: relative;
            width: clamp(70px, 12vw, 100px);
            height: clamp(70px, 12vw, 100px);
            border-radius: 50%;
            overflow: hidden;
            box-shadow: 0 0 40px rgba(120,150,200,0.25), 0 0 80px rgba(120,150,200,0.1), 0 8px 30px rgba(0,0,0,0.4);
            border: 2px solid rgba(180,200,230,0.3);
            background: #0d1020;
        }
        .avatar-wrapper img { width: 100%; height: 100%; object-fit: cover; }
        .avatar-ring {
            position: absolute;
            inset: -3px;
            border-radius: 50%;
            border: 1.5px solid transparent;
            border-top-color: rgba(180,200,230,0.5);
            border-right-color: rgba(180,200,230,0.25);
            animation: ringRotate 8s linear infinite;
            pointer-events: none;
        }
        @keyframes ringRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
        .name-tag {
            font-size: clamp(1.3rem, 2.5vw, 1.8rem);
            font-weight: 300;
            letter-spacing: 0.3em;
            color: #fff;
            text-shadow: 0 0 30px rgba(180,200,230,0.6);
        }
        .subtitle-tag {
            font-size: clamp(0.85rem, 1.5vw, 1.1rem);
            font-weight: 300;
            letter-spacing: 0.2em;
            color: #c0d0e8;
            opacity: 0.8;
        }
        .player-area {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            padding-bottom: max(2vh, 10px);
            width: 100%;
            max-width: 480px;
        }
        .player-card {
            background: var(--panel-bg);
            border-radius: var(--radius-lg);
            padding: clamp(16px, 3vw, 22px) clamp(14px, 3vw, 20px);
            border: 1px solid var(--border-subtle);
            backdrop-filter: blur(24px);
            width: 100%;
            box-shadow: 0 20px 50px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.04);
        }
        .song-names-row {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            width: 100%;
            gap: 8px;
        }
        .song-minor {
            font-size: 0.7rem;
            color: var(--text-secondary);
            opacity: 0.6;
            cursor: pointer;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 30%;
        }
        .song-minor:hover { opacity: 1; color: var(--accent-glow); }
        .song-major {
            font-size: clamp(0.9rem, 2vw, 1.2rem);
            font-weight: 500;
            color: #fff;
            text-align: center;
            flex: 1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        /* 控制栏（包含按钮组） */
        .controls-row {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: clamp(16px, 5vw, 32px);
            margin-bottom: 8px;
        }
        /* 辅助按钮行（播放列表、歌词开关、效果开关） */
        .aux-buttons {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 8px;
            margin-bottom: 4px;
        }
        .aux-btn {
            background: rgba(20,25,50,0.6);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 30px;
            padding: 6px 14px;
            font-size: 0.75rem;
            color: #e0e5f0;
            cursor: pointer;
            transition: all 0.2s;
            backdrop-filter: blur(5px);
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .aux-btn.active {
            background: rgba(100, 150, 220, 0.5);
            border-color: rgba(255,255,255,0.5);
            color: white;
            text-shadow: 0 0 4px rgba(255,255,255,0.5);
        }
        .aux-btn:active { transform: scale(0.96); }
        .nav-btn {
            width: clamp(36px, 7vw, 44px);
            height: clamp(36px, 7vw, 44px);
            border-radius: 50%;
            border: 1px solid rgba(255,255,255,0.15);
            background: rgba(20,25,50,0.6);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #c8d4e8;
            font-size: clamp(0.9rem, 1.8vw, 1.2rem);
            backdrop-filter: blur(10px);
        }
        .play-btn {
            width: clamp(54px, 10vw, 68px);
            height: clamp(54px, 10vw, 68px);
            border-radius: 50%;
            border: 2px solid rgba(200,210,230,0.3);
            background: rgba(18,22,45,0.7);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 35px rgba(120,150,200,0.25), 0 4px 25px rgba(0,0,0,0.5);
        }
        .play-btn .icon-play {
            width: 0;
            height: 0;
            border-left: clamp(16px, 3vw, 22px) solid #fff;
            border-top: clamp(10px, 1.8vw, 14px) solid transparent;
            border-bottom: clamp(10px, 1.8vw, 14px) solid transparent;
            margin-left: 4px;
        }
        .play-btn .icon-pause { display: flex; gap: clamp(5px,1vw,7px); }
        .play-btn .icon-pause span { width: clamp(4px,0.8vw,6px); height: clamp(16px,3vw,22px); background: #fff; border-radius: 2px; }
        .play-btn:not(.playing) .icon-pause { display: none; }
        .play-btn.playing .icon-play { display: none; }
        .play-btn.playing .icon-pause { display: flex; }
        .progress-wrapper {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
            margin-top: 8px;
            margin-bottom: 12px;
        }
        .time-label {
            font-size: 0.7rem;
            color: var(--text-secondary);
            min-width: 38px;
            text-align: center;
        }
        .progress-bar-outer {
            flex: 1;
            height: 4px;
            background: var(--slider-track);
            border-radius: 2px;
            cursor: pointer;
        }
        .progress-bar-inner {
            height: 100%;
            background: linear-gradient(90deg, #8aacd0, #b0cce8);
            border-radius: 2px;
            transition: width 0.1s linear;
        }
        /* 移除旧的右上角播放列表按钮 */
        .playlist-toggle {
            display: none;
        }
        /* 播放列表面板样式不变 */
        .playlist-panel {
            position: fixed;
            top: 0;
            right: -340px;
            width: min(320px, 85vw);
            height: 100vh;
            z-index: 99;
            background: rgba(8,10,22,0.95);
            border-left: 1px solid rgba(255,255,255,0.06);
            backdrop-filter: blur(35px);
            padding: 60px 20px 20px;
            transition: right 0.35s;
            overflow-y: auto;
        }
        .playlist-panel.open { right: 0; }
        .playlist-items {
            display: flex;
            flex-direction: column;
            gap: 4px;
            max-height: 55vh;
            overflow-y: auto;
        }
        .playlist-item {
            padding: 12px 14px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.82rem;
            color: #b0bcd0;
            border: 1px solid transparent;
        }
        .playlist-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
        .playlist-item.active {
            background: rgba(120,160,210,0.2);
            border-color: rgba(180,200,230,0.25);
            color: #fff;
            font-weight: 500;
        }
        .spectrum-selector {
            margin-top: 20px;
            padding: 10px 0;
            border-top: 1px solid rgba(255,255,255,0.1);
        }
        .spectrum-selector h4 {
            font-size: 0.8rem;
            font-weight: 300;
            color: #a0b0c8;
            margin-bottom: 8px;
            text-align: center;
        }
        .spectrum-selector select {
            width: 100%;
            padding: 8px 12px;
            background: rgba(20,25,50,0.6);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 20px;
            color: #e0e5f0;
            font-size: 0.8rem;
            cursor: pointer;
            outline: none;
        }
        .playlist-overlay {
            position: fixed;
            inset: 0;
            z-index: 98;
            background: rgba(0,0,0,0.5);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.35s;
        }
        .playlist-overlay.active { opacity: 1; pointer-events: auto; }
        .icp {
            position: fixed;
            bottom: 12px;
            left: 0;
            right: 0;
            text-align: center;
            font-size: 12px;
            color: rgba(255,255,255,0.4);
            z-index: 100;
            pointer-events: none;
            letter-spacing: 1px;
        }
        @media (max-width: 768px) {
            .aux-btn { padding: 4px 10px; font-size: 0.7rem; }
            .aux-buttons { gap: 12px; }
        }
/* 卡片内部底部备案号 */
.icp-in-card {
    text-align: center;
    font-size: 10px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

