/* ===================================================================
   歌手「泪」个人音乐主页 - 宇宙星空与黑胶唱片主题样式
   =================================================================== */

:root {
    --bg-space-dark: #070913;
    --bg-space-deep: #0b0f24;
    --accent-blue: #38bdf8;
    --accent-cyan: #22d3ee;
    --accent-purple: #a855f7;
    --accent-indigo: #6366f1;
    --accent-glow: rgba(56, 189, 248, 0.45);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --glass-bg: rgba(15, 23, 42, 0.65);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-highlight: rgba(255, 255, 255, 0.05);
    --font-serif: 'Noto Serif SC', 'Cinzel', serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-drag: none;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-space-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
    position: relative;
}

/* ================== 唯美星空背景轮播层 ================== */
.bg-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background-color: var(--bg-space-dark);
}

.bg-slide {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 2.5s cubic-bezier(0.4, 0, 0.2, 1), transform 10s ease-out;
    filter: brightness(0.65) saturate(1.25) contrast(1.1);
}

.bg-slide:nth-child(1) { background-color: #080d24; }
.bg-slide:nth-child(2) { background-color: #12092b; }
.bg-slide:nth-child(3) { background-color: #061826; }
.bg-slide:nth-child(4) { background-color: #041424; }
.bg-slide:nth-child(5) { background-color: #0f0a21; }
.bg-slide:nth-child(6) { background-color: #0a0e1c; }

.bg-slide.active {
    opacity: 1;
    transform: scale(1.0);
    z-index: 1;
}

/* 宇宙幽邃渐变遮罩，保证文字与控件的清晰度 */
.bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 45%, rgba(4, 7, 17, 0.2) 0%, rgba(4, 7, 17, 0.75) 75%, rgba(4, 7, 17, 0.95) 100%),
                linear-gradient(to bottom, rgba(4, 7, 17, 0.5) 0%, transparent 35%, rgba(4, 7, 17, 0.8) 100%);
    z-index: 2;
    pointer-events: none;
}

/* 全屏画布层 */
#sky-canvas, #fx-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
}

#sky-canvas {
    z-index: 3;
}

#fx-canvas {
    z-index: 99;
}

/* 毛玻璃质感面板基础类 */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-card {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ================== 顶部导航栏 ================== */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1200px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 50;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-symbol {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tear-svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 10px rgba(147, 197, 253, 0.7));
    animation: gentleBreathe 4s ease-in-out infinite;
}

.sparkle-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px #38bdf8, 0 0 14px #38bdf8;
    animation: twinkle 2s ease-in-out infinite;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.artist-name {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, #ffffff 0%, #bae6fd 60%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.artist-subtitle {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-badges {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-badge {
    font-size: 0.78rem;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 6px 12px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background: #22d3ee;
    border-radius: 50%;
    box-shadow: 0 0 8px #22d3ee;
    animation: pulseGlow 1.8s infinite;
}

.btn-glow-sm {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.3));
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #f8fafc;
    font-size: 0.8rem;
    padding: 7px 14px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-glow-sm:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.6), rgba(168, 85, 247, 0.6));
    border-color: rgba(216, 180, 254, 0.8);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.5);
    transform: translateY(-1px);
}

/* ================== 主容器布局 ================== */
.main-container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 105px auto 40px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    align-items: center;
    min-height: calc(100vh - 180px);
}

/* ================== 黑胶唱片机区域 ================== */
.turntable-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.turntable-wrapper {
    position: relative;
    width: 440px;
    height: 440px;
    max-width: 90vw;
    max-height: 90vw;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6),
                0 0 80px rgba(99, 102, 241, 0.15);
    transition: box-shadow 0.6s ease;
}

/* 音频可视化波形环 Canvas */
#visualizer-canvas {
    position: absolute;
    top: -30px;
    left: -30px;
    width: calc(100% + 60px);
    height: calc(100% + 60px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.vinyl-outer-glow {
    position: relative;
    width: 380px;
    height: 380px;
    max-width: 80vw;
    max-height: 80vw;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* 黑胶唱片圆盘 */
.vinyl-disk {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at center,
        #11131c 0%,
        #090a10 60%,
        #05060a 100%);
    box-shadow: 0 0 20px rgba(0,0,0,0.8),
                inset 0 0 15px rgba(255,255,255,0.1),
                inset 0 0 40px rgba(0,0,0,0.9);
    cursor: pointer;
    overflow: hidden;
    animation: spinDisk 20s linear infinite;
    animation-play-state: paused; /* 默认暂停 */
    transition: transform 0.3s ease;
}

/* 黑胶声槽同心圆反射效果 */
.vinyl-texture {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: repeating-radial-gradient(
        circle at 50% 50%,
        transparent 0,
        transparent 3px,
        rgba(255, 255, 255, 0.02) 4px,
        transparent 5px
    );
    pointer-events: none;
}

.vinyl-groove-rings {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(255, 255, 255, 0.12) 0deg,
        transparent 45deg,
        rgba(255, 255, 255, 0.12) 90deg,
        transparent 135deg,
        rgba(255, 255, 255, 0.12) 180deg,
        transparent 225deg,
        rgba(255, 255, 255, 0.12) 270deg,
        transparent 315deg,
        rgba(255, 255, 255, 0.12) 360deg
    );
    opacity: 0.75;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* 唱片中心印章与头像 */
.vinyl-center-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 146px;
    height: 146px;
    border-radius: 50%;
    background: radial-gradient(circle, #3b82f6 0%, #1e1b4b 100%);
    border: 4px solid #1e293b;
    box-shadow: 0 0 15px rgba(0,0,0,0.8),
                0 0 25px rgba(99, 102, 241, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar-holder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vinyl-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.05) brightness(0.95);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease, filter 0.5s ease;
}

.vinyl-avatar.easter-egg-reveal {
    animation: easterEggFlip 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes easterEggFlip {
    0% { transform: scale(1) rotate(0deg); filter: brightness(1); }
    50% { transform: scale(0.2) rotate(180deg); filter: brightness(2.5) drop-shadow(0 0 25px #38bdf8); }
    100% { transform: scale(1) rotate(360deg); filter: brightness(1); }
}

.center-spindle {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 0%, #94a3b8 40%, #0f172a 100%);
    border: 2px solid rgba(255,255,255,0.4);
    box-shadow: 0 2px 6px rgba(0,0,0,0.9);
}

/* 机械唱针组件 */
.tonearm-assembly {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 70px;
    height: 220px;
    z-index: 10;
    pointer-events: none;
    transform-origin: 35px 30px;
    transform: rotate(-32deg); /* 初始停靠状态 */
    transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tonearm-assembly.playing {
    transform: rotate(4deg); /* 播放时切入唱片 */
}

.tonearm-base {
    position: absolute;
    top: 15px;
    left: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, #e2e8f0 0%, #475569 70%, #0f172a 100%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.8), 0 0 6px rgba(255,255,255,0.3);
}

.tonearm-rod {
    position: absolute;
    top: 30px;
    left: 33px;
    width: 5px;
    height: 150px;
    background: linear-gradient(to right, #94a3b8, #f8fafc, #64748b);
    border-radius: 3px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    transform: rotate(5deg);
}

.tonearm-head {
    position: absolute;
    bottom: 25px;
    left: 14px;
    width: 22px;
    height: 38px;
    background: linear-gradient(135deg, #334155 0%, #0f172a 100%);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 3px;
    transform: rotate(-18deg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

.tonearm-head::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 9px;
    width: 4px;
    height: 6px;
    background: #38bdf8;
    border-radius: 1px;
    box-shadow: 0 0 6px #38bdf8;
}

/* 唱片底部光晕 */
.turntable-glow-base {
    position: absolute;
    inset: 15px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    filter: blur(25px);
    z-index: 0;
    pointer-events: none;
}

/* 当前曲目文字卡片 */
.current-track-info {
    text-align: center;
    margin-top: 10px;
}

/* 黑胶外圈呼吸流光 (播放时激活动态光晕) */
.vinyl-outer-glow.playing-aura {
    box-shadow: 0 0 35px rgba(56, 189, 248, 0.4), 0 0 70px rgba(168, 85, 247, 0.25);
    animation: vinylAuraPulse 3s ease-in-out infinite;
}

/* 当前曲目文字卡片 */
.current-track-info {
    text-align: center;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.track-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.track-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--accent-cyan);
    background: rgba(34, 211, 238, 0.1);
    padding: 3px 12px;
    border-radius: 20px;
    border: 1px solid rgba(34, 211, 238, 0.2);
}

.btn-like {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 3px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.25s ease;
}

.btn-like:hover {
    background: rgba(244, 63, 94, 0.15);
    border-color: rgba(244, 63, 94, 0.4);
    color: #fb7185;
    transform: scale(1.05);
}

.btn-like.liked {
    background: rgba(244, 63, 94, 0.2);
    border-color: #f43f5e;
    color: #fb7185;
}

.btn-like.liked .heart-svg {
    fill: #f43f5e;
    stroke: #f43f5e;
    animation: heartBeat 0.4s ease-in-out;
}

.sparkle-icon {
    animation: twinkle 1.5s infinite;
}

.track-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #ffffff;
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.4);
    max-width: 420px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.track-artist {
    font-size: 0.95rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

/* ================== 右侧：控制与歌单面板 ================== */
.player-section {
    padding: 32px;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 歌手简介卡片 */
.singer-intro-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px;
    border-radius: 20px;
}

.intro-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.quote-symbol {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    line-height: 1;
    color: var(--accent-blue);
    opacity: 0.8;
}

.singer-quote {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #e2e8f0;
    font-style: italic;
    font-family: var(--font-serif);
}

.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 12px;
}

/* 播放控制卡片 */
.controller-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 20px 24px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* 进度条 */
.progress-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.progress-bar-bg {
    position: relative;
    width: 100%;
    height: 7px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    overflow: visible;
    transition: height 0.2s ease;
}

.progress-bar-bg:hover {
    height: 9px;
}

.progress-tooltip {
    position: absolute;
    top: -30px;
    left: 0;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    font-variant-numeric: tabular-nums;
    z-index: 10;
}

.progress-bar-bg:hover .progress-tooltip {
    opacity: 1;
}

.progress-bar-fill {
    position: relative;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
    transition: width 0.1s linear;
}

.progress-sparkle {
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 11px;
    height: 11px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px #ffffff, 0 0 18px #38bdf8;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.progress-bar-bg:hover .progress-sparkle {
    opacity: 1;
}

/* 核心按键栏 */
.playback-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ctrl-btn-play {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #38bdf8, #818cf8, #a855f7);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.45);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.ctrl-btn-play:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 30px rgba(129, 140, 248, 0.7);
}

.ctrl-btn-play:active {
    transform: scale(0.96);
}

.play-btn-glow {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: inherit;
    filter: blur(8px);
    opacity: 0.6;
    z-index: -1;
}

.ctrl-btn-step {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ctrl-btn-step:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: scale(1.06);
    border-color: rgba(255, 255, 255, 0.3);
}

.ctrl-btn-secondary {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ctrl-btn-secondary:hover {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
}

/* 音量滑动条 */
.volume-box {
    display: flex;
    align-items: center;
    gap: 6px;
}

.volume-slider-wrapper {
    width: 75px;
    display: flex;
    align-items: center;
}

#volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
    outline: none;
    cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
    cursor: pointer;
    transition: transform 0.15s ease;
}

#volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

/* ================== 歌曲曲目列表 ================== */
.playlist-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 220px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #f1f5f9;
}

.starlight-icon {
    color: #38bdf8;
}

.track-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: normal;
}

.album-badge {
    font-size: 0.72rem;
    color: var(--accent-cyan);
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.2);
    padding: 2px 8px;
    border-radius: 6px;
}

.playlist-scroll {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

.playlist-scroll::-webkit-scrollbar {
    width: 4px;
}

.playlist-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

/* 列表单曲卡片 */
.track-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
}

.track-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.track-item.active {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.18), rgba(168, 85, 247, 0.15));
    border-color: rgba(56, 189, 248, 0.4);
}

.track-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.track-index {
    font-size: 0.8rem;
    color: var(--text-muted);
    width: 20px;
    font-variant-numeric: tabular-nums;
}

.track-item.active .track-index {
    color: #38bdf8;
    font-weight: 600;
}

.track-meta {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.track-meta-title {
    font-size: 0.88rem;
    color: #f8fafc;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-item.active .track-meta-title {
    color: #38bdf8;
    font-weight: 600;
}

.track-meta-artist {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.track-item-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.track-format-tag {
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* 播放跳动音浪指示器 */
.equalizer-bars {
    display: none;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.track-item.active .equalizer-bars {
    display: flex;
}

.eq-bar {
    width: 3px;
    background: #38bdf8;
    border-radius: 2px;
    animation: eqBounce 1s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.eq-bar:nth-child(2) { height: 14px; animation-delay: 0.3s; }
.eq-bar:nth-child(3) { height: 9px; animation-delay: 0.2s; }

/* ================== 页脚与星空背景控制器 ================== */
.site-footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 16px 20px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.bg-switch-control {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.bg-switch-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s, transform 0.2s;
}

.bg-switch-btn:hover {
    color: #38bdf8;
    transform: scale(1.2);
}

.bg-dots-container {
    display: flex;
    align-items: center;
    gap: 7px;
}

.bg-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-dot:hover {
    background: rgba(56, 189, 248, 0.7);
    transform: scale(1.2);
}

.bg-dot.active {
    width: 22px;
    border-radius: 10px;
    background: linear-gradient(90deg, #38bdf8, #a855f7);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
}

.bg-timer-hint {
    font-size: 0.7rem;
    color: #64748b;
    margin-left: 6px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 10px;
}

.interactive-tip {
    font-size: 0.78rem;
    color: #7dd3fc;
    letter-spacing: 0.15em;
    opacity: 0.85;
    animation: textGlow 3s ease-in-out infinite;
}

/* ================== 弹窗与消息提示 (Toast & Modal) ================== */
.toast-container {
    position: fixed;
    top: 96px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.toast-message {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #f8fafc;
    font-size: 0.82rem;
    padding: 8px 18px;
    border-radius: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(56, 189, 248, 0.25);
    animation: toastFadeIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast-message.fade-out {
    animation: toastFadeOut 0.3s forwards ease-in;
}

/* 快捷键弹窗 */
.shortcut-modal {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 17, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.shortcut-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.shortcut-card {
    width: 90%;
    max-width: 440px;
    padding: 24px;
    border-radius: 24px;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.shortcut-modal.active .shortcut-card {
    transform: scale(1);
}

.shortcut-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.shortcut-header h3 {
    font-size: 1.1rem;
    color: #f8fafc;
    font-weight: 600;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #94a3b8;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.shortcut-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #cbd5e1;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 3px 8px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: #38bdf8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* ================== 核心动画定义 ================== */
@keyframes spinDisk {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes vinylAuraPulse {
    0%, 100% {
        box-shadow: 0 0 25px rgba(56, 189, 248, 0.35), 0 0 50px rgba(168, 85, 247, 0.2);
    }
    50% {
        box-shadow: 0 0 45px rgba(56, 189, 248, 0.6), 0 0 90px rgba(168, 85, 247, 0.4);
    }
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

@keyframes toastFadeIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastFadeOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-12px) scale(0.9); }
}

@keyframes gentleBreathe {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(147, 197, 253, 0.6));
    }
    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 16px rgba(168, 85, 247, 0.9));
    }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes pulseGlow {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(34, 211, 238, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

@keyframes eqBounce {
    0% { height: 3px; }
    100% { height: 14px; }
}

@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 8px rgba(56, 189, 248, 0.3); }
    50% { text-shadow: 0 0 18px rgba(168, 85, 247, 0.8), 0 0 24px rgba(56, 189, 248, 0.5); }
}

/* ================== 响应式适配 ================== */
@media (max-width: 960px) {
    .main-container {
        grid-template-columns: 1fr;
        margin-top: 90px;
        gap: 36px;
    }

    .turntable-wrapper {
        width: 340px;
        height: 340px;
    }

    .vinyl-outer-glow {
        width: 300px;
        height: 300px;
    }

    .vinyl-center-label {
        width: 115px;
        height: 115px;
    }

    .tonearm-assembly {
        height: 180px;
        right: 15px;
    }
}

@media (max-width: 540px) {
    .navbar {
        width: calc(100% - 24px);
        padding: 0 16px;
    }

    .artist-subtitle {
        display: none;
    }

    .turntable-wrapper {
        width: 290px;
        height: 290px;
    }

    .vinyl-outer-glow {
        width: 250px;
        height: 250px;
    }

    .vinyl-center-label {
        width: 95px;
        height: 95px;
    }

    .player-section {
        padding: 20px;
    }

    .playback-buttons {
        gap: 6px;
    }

    .volume-slider-wrapper {
        width: 50px;
    }
}
