/* ========================================
   途声驿站 · 留声阁 - 完整样式
   ======================================== */

/* CSS 变量 */
:root {
    --bg-primary: #0d0f14;
    --bg-secondary: #161920;
    --bg-card: rgba(30, 34, 44, 0.75);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);
    
    --text-primary: #e8e4df;
    --text-secondary: #9a9590;
    --text-muted: #6b6560;
    
    --accent-gold: #c9935c;
    --accent-gold-light: #e0b47a;
    --accent-gold-dim: #8b683e;
    --accent-warm: #d4915e;
    
    --border-color: rgba(201, 147, 92, 0.15);
    --border-hover: rgba(201, 147, 92, 0.35);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(201, 147, 92, 0.12);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --font-serif: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 全局重置 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* 滚动条美化 */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { 
    background: var(--accent-gold-dim); 
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-gold); }

/* ========================================
   动态背景层
   ======================================== */
.bg-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    /* 古风水墨渐变背景 */
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(139, 104, 62, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(201, 147, 92, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(30, 25, 35, 0.9) 0%, transparent 70%),
        linear-gradient(180deg, #0d0f14 0%, #141018 50%, #0d0f14 100%);
}

/* 水墨粒子 */
.ink-particles {
    position: absolute;
    inset: 0;
}

.ink-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(201, 147, 92, 0.2);
    border-radius: 50%;
    animation: float-ink 15s infinite ease-in-out;
}

@keyframes float-ink {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    50% { transform: translateY(-200px) translateX(50px); }
}

/* 漂浮光点 */
.floating-lights {
    position: absolute;
    inset: 0;
}

.float-light {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(224, 180, 122, 0.7), transparent);
    border-radius: 50%;
    animation: float-light 8s infinite ease-in-out;
}

@keyframes float-light {
    0%, 100% { opacity: 0; transform: translateY(0) scale(1); }
    25% { opacity: 0.8; }
    75% { opacity: 0.3; }
    50% { transform: translateY(-80px) scale(1.5); }
}

/* 装饰灯笼（背景层） */
.lantern {
    position: absolute;
    top: 60px;
    width: 36px;
    opacity: 0.12;
    animation: lantern-swing 6s infinite ease-in-out;
}
.lantern-left { left: 120px; }
.lantern-right { right: 320px; animation-delay: -3s; }

.lantern::before {
    content: '🏮';
    font-size: 28px;
    display: block;
    filter: blur(0.5px) sepia(0.5) brightness(1.2);
}

@keyframes lantern-swing {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

/* ========================================
   顶部导航栏
   ======================================== */
.top-nav {
    position: relative;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
    background: linear-gradient(180deg, rgba(13, 15, 20, 0.95), rgba(13, 15, 20, 0.7));
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

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

/* 返回按钮 */
.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.back-btn:hover {
    color: var(--accent-gold-light);
    background: rgba(201,147,92,0.1);
    border-color: rgba(201,147,92,0.25);
}

.back-btn svg {
    display: block;
}

.logo-icon {
    font-size: 24px;
    filter: drop-shadow(0 0 8px rgba(201, 147, 92, 0.4));
}

.site-title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 3px;
    background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-slogan {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: 8px;
    letter-spacing: 1px;
    padding-top: 4px;
}

.nav-center {
    display: flex;
    gap: 8px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border: none;
    border-radius: 20px;
    background: var(--bg-glass);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 12px;
}

.nav-btn:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.nav-btn.active {
    background: rgba(201, 147, 92, 0.15);
    color: var(--accent-gold-light);
}

.nav-btn .icon { font-size: 14px; }

.user-avatar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    object-fit: cover;
}

.user-name {
    font-size: 13px;
    color: var(--text-primary);
}

.vip-badge {
    font-size: 10px;
    color: var(--accent-gold-light);
    background: rgba(201, 147, 92, 0.15);
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 600;
}

.vip-crown {
    font-size: 12px;
}

/* ========================================
   左侧导航栏
   ======================================== */
.left-sidebar {
    position: fixed;
    left: 0;
    top: 64px;
    bottom: 0;
    width: 80px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(13,15,20,0.97), rgba(18,20,28,0.95));
    border-right: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0 12px;
    gap: 4px;
}

.sidenav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 64px;
    padding: 10px 0;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition);
    cursor: pointer;
}

.sidenav-item:hover {
    background: var(--bg-glass-hover);
    color: var(--text-secondary);
}

.sidenav-item.active {
    background: rgba(201, 147, 92, 0.12);
    color: var(--accent-gold-light);
}

.si-icon { font-size: 20px; }
.si-text { font-size: 10px; letter-spacing: 1px; }

.sidenav-divider {
    width: 32px;
    height: 1px;
    margin: 8px 0;
    background: var(--border-color);
}

.sidebar-bottom {
    padding: 20px 8px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* 点亮心灯按钮 — 固定在侧边栏底部，不拖拽 */
.sidebar-bottom .light-lantern-btn {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    top: auto;
    width: 56px;
    height: 56px;
    font-size: 9px;
    cursor: pointer;
}

.sidebar-bottom .lantern-count {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    top: auto;
    font-size: 9px;
    width: auto;
    line-height: 1.4;
}

/* ========================================
   主内容区
   ======================================== */
.main-content {
    position: relative;
    z-index: 10;
    margin-left: 80px;
    padding: 20px 28px 120px 28px;
    max-width: calc(100vw - 80px - 300px);
}

/* ========================================
   播放器卡片区域
   ======================================== */
.player-section {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
}

.player-card {
    display: flex;
    gap: 36px;
    flex: 1;
    padding: 32px 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(40px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

/* 唱片机区域 */
.turntable-area {
    position: relative;
    width: 260px;
    flex-shrink: 0;
}

.turntable {
    width: 240px;
    height: 240px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vinyl-record {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: 
        repeating-radial-gradient(
            circle at center,
            transparent 0px,
            transparent 3px,
            rgba(40, 38, 48, 0.6) 3px,
            rgba(40, 38, 48, 0.6) 4px
        );
    box-shadow: 
        0 0 0 8px #1a1820,
        0 0 0 10px rgba(201, 147, 92, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 40px rgba(0, 0, 0, 0.4);
    animation: vinyl-spin 8s linear infinite paused;
    transition: box-shadow 0.5s ease;
}

.vinyl-record.playing {
    animation-play-state: running;
    box-shadow: 
        0 0 0 8px #1a1820,
        0 0 0 10px rgba(201, 147, 92, 0.2),
        0 0 30px rgba(201, 147, 92, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 40px rgba(0, 0, 0, 0.4);
}

.vinyl-record::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 20px; height: 20px;
    margin: -10px;
    border-radius: 50%;
    background: var(--accent-gold-dim);
}

@keyframes vinyl-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.record-label {
    position: absolute;
    top: 50%; left: 50%;
    width: 110px; height: 110px;
    margin: -55px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(201, 147, 92, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.album-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 唱臂 */
.tonearm {
    position: absolute;
    top: -5px;
    right: 10px;
    width: 100px;
    height: 160px;
    transform-origin: 85% 10%;
    transform: rotate(-25deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
}

.tonearm.playing {
    transform: rotate(-8deg);
}

.arm-base {
    position: absolute;
    top: 0; right: 0;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #555, #333);
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.arm-stick {
    position: absolute;
    top: 8px; left: 18px;
    width: 4px; height: 130px;
    background: linear-gradient(180deg, #888, #555);
    border-radius: 2px;
    transform: rotate(25deg);
    transform-origin: top center;
}

.cartridge {
    position: absolute;
    bottom: -5px; left: 55px;
    width: 14px; height: 22px;
    background: linear-gradient(135deg, #666, #444);
    border-radius: 3px;
}

/* 收藏按钮 */
.like-btn {
    position: absolute;
    bottom: 10px; left: 50%;
    transform: translateX(-50%);
    width: 42px; height: 42px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: var(--bg-glass);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.like-btn:hover {
    border-color: var(--accent-gold);
    background: rgba(201, 147, 92, 0.1);
}

.like-btn .heart-icon {
    font-size: 20px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.like-btn.active .heart-icon {
    color: #e25555;
    animation: heart-pop 0.4s ease;
}

@keyframes heart-pop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* 歌曲信息区域 */
.track-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.track-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.track-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 2px;
}

.hq-badge {
    font-size: 10px;
    color: var(--accent-gold-light);
    border: 1px solid var(--accent-gold);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 1px;
}

.track-artist {
    font-size: 14px;
    color: var(--text-secondary);
}

.track-desc {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

.track-tags {
    display: flex;
    gap: 8px;
}

.tag {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(201, 147, 92, 0.1);
    color: var(--accent-gold);
    border: 1px solid rgba(201, 147, 92, 0.15);
}

/* 波形条容器 */
.waveform-container {
    position: relative;
    height: 48px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 0 4px;
    gap: 2px;
}

.waveform-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.waveform-bars-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 4px 4px;
    gap: 2px;
}

.waveform-bar {
    flex: 1;
    min-width: 2px;
    max-width: 5px;
    background: linear-gradient(to top, var(--accent-gold), var(--accent-gold-light));
    border-radius: 2px;
    opacity: 0.95;
    transition: height 0.1s ease;
    animation: wave-idle 1.2s ease-in-out infinite alternate;
}

.waveform-bar:nth-child(even) { animation-delay: 0.1s; }
.waveform-bar:nth-child(3n) { animation-delay: 0.2s; }
.waveform-bar:nth-child(4n) { animation-delay: 0.3s; }
.waveform-bar:nth-child(5n) { animation-delay: 0.05s; }

@keyframes wave-idle {
    from { opacity: 0.5; transform: scaleY(0.6); }
    to { opacity: 1; transform: scaleY(1); }
}

.waveform-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(201, 147, 92, 0.1);
    pointer-events: none;
    border-radius: 8px;
    transition: width 0.3s linear;
}

/* 进度条 */
.progress-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.time-current, .time-total {
    font-size: 11px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    min-width: 36px;
}

.time-total {
    text-align: right;
}

.progress-bar-container {
    flex: 1;
}

.progress-bar {
    position: relative;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    cursor: pointer;
    transition: height 0.15s;
}

.progress-bar:hover {
    height: 6px;
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
    border-radius: 4px;
    border-radius: inherit;
    transition: width 0.1s linear;
}

.progress-thumb {
    position: absolute;
    right: -6px;
    top: 50%;
    width: 12px;
    height: 12px;
    background: var(--accent-gold-light);
    border-radius: 50%;
    transform: translateY(-50%) scale(0);
    transition: transform 0.15s;
    box-shadow: 0 0 10px rgba(201, 147, 92, 0.4);
}

.progress-bar:hover .progress-thumb {
    transform: translateY(-50%) scale(1);
}

/* 控制按钮 */
.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

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

.ctrl-btn:hover {
    color: var(--text-primary);
    background: var(--bg-glass-hover);
}

.ctrl-btn svg {
    fill: currentColor;
}

.play-btn {
    width: 56px;
    height: 56px;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    background: rgba(201, 147, 92, 0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(201, 147, 92, 0.15);
}

.play-btn:hover {
    background: rgba(201, 147, 92, 0.18);
    box-shadow: 0 0 30px rgba(201, 147, 92, 0.3);
    transform: scale(1.06);
}

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

.play-btn-inner {
    position: relative;
    width: 32px;
    height: 32px;
}

.play-btn-inner svg {
    fill: var(--accent-gold-light);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 底部操作 */
.extra-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: auto;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: var(--bg-glass-hover);
}

.collect-btn.collected {
    border-color: var(--accent-gold);
    color: var(--accent-gold-light);
    background: rgba(201, 147, 92, 0.1);
}

/* 歌词预览区 */
.lyric-preview {
    width: 220px;
    max-height: 420px;
    padding: 20px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}

/* 自定义滚动条 */
.lyric-preview::-webkit-scrollbar { width: 4px; }
.lyric-preview::-webkit-scrollbar-track { background: transparent; }
.lyric-preview::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }

.lyric-song-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.lyric-line {
    font-family: var(--font-serif);
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-muted);
    transition: var(--transition);
}

.lyric-line.active {
    color: var(--accent-gold-light);
    font-weight: 500;
    text-shadow: 0 0 15px rgba(201, 147, 92, 0.3);
}

/* ========================================
   推荐歌单区域
   ======================================== */
.playlist-section {
    margin-bottom: 28px;
}

.playlist-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 18px;
}

.tab-btn {
    padding: 8px 18px;
    border: none;
    border-radius: 20px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.tab-btn.active {
    background: rgba(201, 147, 92, 0.15);
    color: var(--accent-gold-light);
}

/* 驿站官方印章 */
.tab-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}

.official-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    display: block;
}

.official-seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-family: var(--font-serif);
    font-weight: 700;
    color: #c9935c;
    border: 1.5px solid #c9935c;
    border-radius: 3px;
    background: linear-gradient(135deg, rgba(13, 15, 20, 0.95), rgba(22, 25, 32, 0.9));
    box-shadow: 
        0 0 0 1px rgba(201, 147, 92, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 0 4px rgba(201, 147, 92, 0.12);
    letter-spacing: 0;
    line-height: 1;
    transform: rotate(8deg);
    animation: seal-float 3s ease-in-out infinite;
}

@keyframes seal-float {
    0%, 100% { transform: rotate(8deg) translateY(0); }
    50% { transform: rotate(6deg) translateY(-2px); }
}

/* 精选卡片外层容器（定位参考系，箭头固定在此） */
.featured-scroll-wrap {
    position: relative;
}

/* 精选卡片内层滚动区 */
.playlist-cards-inner {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.playlist-cards-inner::-webkit-scrollbar { height: 4px; }

.playlist-cards {
    /* 保留兼容性 */
}

.playlist-card {
    flex-shrink: 0;
    width: 170px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.playlist-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md), 0 0 25px rgba(201, 147, 92, 0.08);
}

.card-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.playlist-card:hover .card-cover img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.playlist-card:hover .card-overlay {
    opacity: 1;
}

.play-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    box-shadow: 0 4px 20px rgba(201, 147, 92, 0.4);
    transform: scale(0.7);
    transition: var(--transition);
}

.playlist-card:hover .play-icon {
    transform: scale(1);
}

.card-play-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 10px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 7px;
    border-radius: 10px;
    backdrop-filter: blur(4px);
}

.card-info {
    padding: 12px;
}

.card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-desc {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scroll-more-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 60px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    color: var(--text-secondary);
    font-size: 22px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-more-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* ========================================
   播放列表区域
   ======================================== */
.tracklist-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 24px 28px;
    backdrop-filter: blur(20px);
}

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

.section-title {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

/* 播放模式选择器 */
.play-mode-select {
    font-family: var(--font-serif);
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.play-mode-select:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold-light);
}

.play-mode-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.track-count {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}

.track-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 520px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 147, 92, 0.3) transparent;
}

.track-list::-webkit-scrollbar {
    width: 4px;
}

.track-list::-webkit-scrollbar-track {
    background: transparent;
}

.track-list::-webkit-scrollbar-thumb {
    background-color: rgba(201, 147, 92, 0.3);
    border-radius: 4px;
}

.track-list::-webkit-scrollbar-thumb:hover {
    background-color: rgba(201, 147, 92, 0.5);
}

.track-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
}

.track-item:hover {
    background: var(--bg-glass-hover);
}

.track-item.active {
    background: rgba(201, 147, 92, 0.08);
}

.track-rank {
    width: 28px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    position: relative;
}

.rank-num { display: block; }

.track-rank.playing .rank-num { display: none; }
.track-rank:not(.playing) .equalizer { display: none; }

.equalizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    height: 16px;
}

.equalizer i {
    width: 3px;
    background: var(--accent-gold);
    border-radius: 1px;
    animation: eq-bounce 0.6s infinite ease-in-out;
}

.equalizer i:nth-child(1) { height: 6px; animation-delay: 0s; }
.equalizer i:nth-child(2) { height: 12px; animation-delay: 0.15s; }
.equalizer i:nth-child(3) { height: 8px; animation-delay: 0.3s; }
.equalizer i:nth-child(4) { height: 14px; animation-delay: 0.1s; }

@keyframes eq-bounce {
    0%, 100% { height: 4px; }
    50% { height: 14px; }
}

.track-item-cover {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.track-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.track-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.hq-tag {
    font-size: 9px;
    color: var(--accent-gold-light);
    border: 1px solid var(--accent-gold-dim);
    padding: 0 4px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
}

.track-artist-name {
    font-size: 13px;
    color: var(--text-secondary);
    width: 80px;
    flex-shrink: 0;
}

.track-duration {
    font-size: 13px;
    color: var(--text-muted);
    width: 46px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.track-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: var(--transition);
}

.track-item:hover .track-actions {
    opacity: 1;
}

.track-action {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: transparent;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-muted);
}

.track-action:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.track-action.liked {
    color: #e25555;
}

/* ========================================
   歌曲操作菜单（⋯ 按钮）
   ======================================== */
@keyframes tmFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.track-menu {
    position: fixed;
    z-index: 99999;
    min-width: 140px;
    background: rgba(30,25,20,0.95);
    border: 1px solid rgba(201,147,92,0.3);
    border-radius: 8px;
    padding: 6px 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.tm-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.15s;
    font-family: var(--font-serif);
}

.tm-item:hover {
    background: rgba(201,147,92,0.12);
    color: var(--accent-gold-light);
}

.tm-icon {
    font-size: 14px;
    width: 20px;
    text-align: center;
}

/* ========================================
   歌词弹窗
   ======================================== */
#_lyricModal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lmFadeIn 0.2s ease-out;
}

@keyframes lmFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.lm-container {
    position: relative;
    width: 90%;
    max-width: 480px;
    max-height: 75vh;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.lm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.lm-song-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lm-cover {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.lm-title {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 3px 0;
    line-height: 1.2;
}

.lm-artist {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.lm-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}

.lm-close:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
}

.lm-body {
    padding: 20px 24px;
    overflow-y: auto;
    max-height: 55vh;
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(201,147,92,0.2) transparent;
}

.lm-body::-webkit-scrollbar { width: 4px; }
.lm-body::-webkit-scrollbar-track { background: transparent; }
.lm-body::-webkit-scrollbar-thumb { background: rgba(201,147,92,0.2); border-radius: 4px; }

.lm-line {
    font-family: var(--font-serif);
    font-size: 14px;
    line-height: 2;
    color: var(--text-secondary);
    margin: 0;
    padding: 2px 0;
}

/* 列表底部 */
.tracklist-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.footer-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.footer-select {
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-glass);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    outline: none;
}

.footer-select option {
    background: var(--bg-secondary);
}

/* ========================================
   右侧边栏
   ======================================== */
.right-sidebar {
    position: fixed;
    right: 0;
    top: 64px;
    bottom: 0;
    width: 300px;
    padding: 20px 18px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px;
    backdrop-filter: blur(20px);
}

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

.sidebar-widget h3 {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.refresh-btn {
    font-size: 11px;
    padding: 3px 10px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.refresh-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* 今日推荐列表 */
.today-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.today-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.today-item:hover {
    background: var(--bg-glass-hover);
}

.today-cover {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.today-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.today-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.today-artist {
    font-size: 11px;
    color: var(--text-muted);
}

.today-play {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: var(--bg-glass);
    color: var(--text-secondary);
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.today-play:hover {
    background: var(--accent-gold);
    color: #fff;
}

/* 听歌时光统计 */
.listen-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-header {
    font-size: 12px;
    color: var(--text-muted);
}

.stat-time {
    font-size: 26px;
    font-weight: 700;
    color: var(--accent-gold-light);
    font-family: var(--font-serif);
}

.stat-visual {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.stat-visual img {
    width: 100%;
    display: block;
}

.stat-avatar {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 28px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

/* 热门标签云 */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cloud-tag {
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 14px;
    background: var(--bg-glass);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.cloud-tag:hover, .cloud-tag.highlight {
    background: rgba(201, 147, 92, 0.15);
    color: var(--accent-gold-light);
    border-color: rgba(201, 147, 92, 0.25);
}

/* 点亮心灯按钮 */
.light-lantern-btn {
    position: fixed;
    bottom: 50px;
    left: 18px;
    width: 68px;
    height: 68px;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(201, 147, 92, 0.15), rgba(212, 145, 94, 0.08));
    color: var(--accent-gold-light);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: box-shadow 0.3s ease, background 0.3s ease, transform 0.25s ease;
    box-shadow: 0 0 30px rgba(201, 147, 92, 0.2), var(--shadow-md);
    z-index: 200;
    user-select: none;
    -webkit-user-select: none;
}

.light-lantern-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 45px rgba(201, 147, 92, 0.35), var(--shadow-lg);
    background: linear-gradient(135deg, rgba(201, 147, 92, 0.25), rgba(212, 145, 94, 0.15));
}

.light-lantern-btn .lantern-icon {
    font-size: 24px;
}

.light-lantern-btn span {
    font-size: 10px;
    letter-spacing: 1px;
    font-family: var(--font-serif);
}

/* 点亮心灯计数 */
.lantern-count {
    position: fixed;
    bottom: 8px;
    left: 18px;
    width: 68px;
    text-align: center;
    font-size: 9px;
    color: var(--accent-gold);
    opacity: 0.7;
    font-family: var(--font-serif);
    letter-spacing: 0.5px;
    line-height: 1.4;
    z-index: 200;
    pointer-events: none;
    user-select: none;
}

/* ========================================
   迷你播放器 (移动端)
   ======================================== */
.mini-player {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    z-index: 300;
    padding: 0 16px;
    align-items: center;
    gap: 12px;
}

.mini-cover {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
}

.mini-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mini-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.mini-artist {
    font-size: 12px;
    color: var(--text-muted);
}

.mini-play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--accent-gold);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   动画与特效
   ======================================== */

/* 入场动画 */
.player-section {
    animation: fade-slide-up 0.8s ease-out both;
}

.playlist-section {
    animation: fade-slide-up 0.8s ease-out 0.15s both;
}

.tracklist-section {
    animation: fade-slide-up 0.8s ease-out 0.3s both;
}

@keyframes fade-slide-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 光晕扩散效果 */
@keyframes glow-spread {
    0% { box-shadow: 0 0 0 0 rgba(201, 147, 92, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(201, 147, 92, 0); }
    100% { box-shadow: 0 0 0 0 rgba(201, 147, 92, 0); }
}

.play-btn.pulse {
    animation: glow-spread 0.6s ease-out;
}

/* ========================================
   顶部分类标签栏
   ======================================== */
.category-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 4px;
}

.category-tabs {
    display: flex;
    gap: 6px;
}

.cat-tab {
    padding: 8px 22px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.cat-tab:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.cat-tab.active {
    background: linear-gradient(135deg, rgba(201,147,92,0.18), rgba(212,145,94,0.1));
    color: var(--accent-gold-light);
    border-color: rgba(201, 147, 92, 0.35);
    box-shadow: 0 0 16px rgba(201, 147, 92, 0.08);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--accent-gold);
    box-shadow: 0 0 12px rgba(201, 147, 92, 0.1);
}

.search-icon { font-size: 14px; }

.search-box input {
    width: 180px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
}

.search-box input::placeholder { color: var(--text-muted); }

/* ========================================
   精选推荐大卡片区
   ======================================== */
.hero-cards-section { margin-bottom: 28px; }

.section-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.view-all-link {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 1px;
    transition: var(--transition);
}

.view-all-link:hover { color: var(--accent-gold-light); }

.hero-cards-scroll {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.hero-cards-scroll::-webkit-scrollbar { height: 4px; }
.hero-cards-scroll::-webkit-scrollbar-track { background: transparent; }
.hero-cards-scroll::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }

.hero-card {
    flex-shrink: 0;
    width: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.hero-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md), 0 0 30px rgba(201, 147, 92, 0.08);
}

.hero-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-card:hover .hero-cover img { transform: scale(1.08); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.75) 100%);
    display: flex;
    align-items: flex-end;
    padding: 18px;
}

.hero-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-gold);
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(201, 147, 92, 0.4);
}

/* 当前正在播放的歌曲卡片：播放按钮始终可见 */
.hero-card.playing .hero-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* 暂停态：显示双竖线 */
.hero-card.playing .hero-play-btn::after {
    content: '';
    display: block;
    width: 14px;
    height: 22px;
    margin-left: 2px;
    background:
        linear-gradient(#000, #000) no-repeat,
        linear-gradient(#000, #000) no-repeat;
    background-size: 5px 22px, 5px 22px;
    background-position: 0 0, 9px 0;
}

/* 非播放态：隐藏伪元素，使用文字▶ */
.hero-play-btn:not(.btn-paused)::after { display: none; }

.hero-card:hover .hero-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* 播放中hover时按钮脉冲动画 */
.hero-card.playing .hero-play-btn {
    animation: hero-btn-pulse 2s ease-in-out infinite 0.3s;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-meta {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-tag {
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(201,147,92,0.25);
    color: var(--accent-gold-light);
    font-size: 10px;
}

/* ========================================
   官方歌单区块
   ======================================== */
.official-playlist-section { margin-bottom: 28px; }

.official-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.op-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.op-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm), 0 0 16px rgba(201, 147, 92, 0.06);
}

.op-cover {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
}

.op-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.op-card:hover .op-cover img { transform: scale(1.06); }

.op-count {
    position: absolute;
    bottom: 8px; right: 8px;
    font-size: 10px;
    color: #fff;
    background: rgba(0,0,0,0.55);
    padding: 2px 8px;
    border-radius: 10px;
    backdrop-filter: blur(4px);
}

.op-info { padding: 12px 14px; }

.op-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.op-desc {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   曲目详情面板
   ======================================== */
.track-detail-widget { margin-bottom: 20px; }

.track-detail-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.detail-row:last-child { border-bottom: none; padding-bottom: 0; }

.detail-label {
    font-size: 11px;
    color: var(--text-muted);
}

.detail-value {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

.license-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(70,170,90,0.1);
    color: #46aa5a;
    border: 1px solid rgba(70,170,90,0.2);
}

/* ========================================
   创作者卡片
   ======================================== */
.creator-card-widget { margin-bottom: 20px; }

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

.creator-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 2px solid var(--accent-gold-dim);
    object-fit: cover;
}

.creator-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.creator-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.creator-badge {
    font-size: 10px;
    color: #46aa5a;
}

.follow-btn {
    padding: 5px 14px;
    border: 1px solid var(--accent-gold);
    border-radius: 16px;
    background: transparent;
    color: var(--accent-gold-light);
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition);
}

.follow-btn:hover {
    background: rgba(201, 147, 92, 0.15);
}

.follow-btn.followed {
    background: rgba(201, 147, 92, 0.15);
    border-color: var(--text-muted);
    color: var(--text-muted);
}

.creator-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.cs-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.cs-item strong {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 700;
}

.cs-item span {
    font-size: 10px;
    color: var(--text-muted);
}
@media (max-width: 1280px) {
    .main-content {
        max-width: calc(100vw - 80px - 240px);
    }
    .right-sidebar { width: 240px; }
    .lyric-preview { max-height: 340px; width: 180px; padding: 14px 10px; }
}

@media (max-width: 1024px) {
    .left-sidebar { display: none; }
    .main-content {
        margin-left: 0;
        padding: 16px;
        max-width: 100vw;
    }
    .right-sidebar { display: none; }
    .light-lantern-btn {
        bottom: 84px;
        right: 20px;
        position: fixed;
        left: auto;
    }
    .mini-player {
        display: flex;
    }
}

@media (max-width: 768px) {
    .player-card {
        flex-direction: column;
        padding: 20px;
    }
    .turntable-area {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .top-nav {
        padding: 10px 16px;
    }
    .nav-center { display: none; }
    .site-slogan { display: none; }
    .playlist-cards {
        gap: 12px;
    }
    .playlist-card {
        width: 140px;
    }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   心境共鸣区（四色按钮）
   ======================================== */
.mood-section {
    position: fixed;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 150;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(30px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.mood-section.visible {
    opacity: 1;
    pointer-events: auto;
}

.mood-label {
    font-family: var(--font-serif);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.mood-lamps {
    display: flex;
    gap: 8px;
}

.slb {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1.5px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.slb-emoji { font-size: 15px; }
.slb-text { font-size: 11px; color: var(--text-secondary); white-space: nowrap; }
.slb-count {
    font-size: 9px;
    min-width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.25s ease;
}

/* 红色 — 在路上 */
.slb-red {
    background: rgba(220, 80, 60, 0.08);
}
.slb-red:hover {
    background: rgba(220, 80, 60, 0.18);
    border-color: rgba(220, 80, 60, 0.35);
    box-shadow: 0 0 16px rgba(220, 80, 60, 0.15);
}
.slb-red .slb-count { color: #dc503c; background: rgba(220, 80, 60, 0.12); }

/* 黄色 — 受启发 */
.slb-yellow {
    background: rgba(210, 160, 40, 0.08);
}
.slb-yellow:hover {
    background: rgba(210, 160, 40, 0.18);
    border-color: rgba(210, 160, 40, 0.35);
    box-shadow: 0 0 16px rgba(210, 160, 40, 0.15);
}
.slb-yellow .slb-count { color: #d2a028; background: rgba(210, 160, 40, 0.12); }

/* 绿色 — 报平安 */
.slb-green {
    background: rgba(70, 170, 90, 0.08);
}
.slb-green:hover {
    background: rgba(70, 170, 90, 0.18);
    border-color: rgba(70, 170, 90, 0.35);
    box-shadow: 0 0 16px rgba(70, 170, 90, 0.15);
}
.slb-green .slb-count { color: #46aa5a; background: rgba(70, 170, 90, 0.12); }

/* 踩蛋 — 不好听 */
.slb-egg {
    background: rgba(140, 140, 140, 0.06);
}
.slb-egg:hover {
    background: rgba(180, 120, 60, 0.18);
    border-color: rgba(180, 120, 60, 0.3);
    box-shadow: 0 0 16px rgba(180, 120, 60, 0.12);
}
.slb-egg .slb-count { color: #999; background: rgba(140, 140, 140, 0.12); }

/* 点击反馈 */
.slb.just-clicked {
    animation: slb-pop 0.4s ease;
}

@keyframes slb-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* ========================================
   心境提示弹窗
   ======================================== */
.mood-nudge {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mood-nudge-inner {
    position: relative;
    width: 320px;
    padding: 32px 28px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--accent-gold-dim);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(201, 147, 92, 0.12);
    animation: nudge-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes nudge-in {
    from { transform: scale(0.85) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.mood-nudge-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-gold-light);
    margin-bottom: 8px;
}

.mood-nudge-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 22px;
}

.mood-nudge-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.nudge-skip-btn,
.nudge-done-btn {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.nudge-skip-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}
.nudge-skip-btn:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.nudge-done-btn {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-warm));
    border: none;
    color: #fff;
    font-weight: 500;
}
.nudge-done-btn:hover {
    box-shadow: 0 4px 16px rgba(201, 147, 92, 0.35);
    transform: translateY(-1px);
}

.nudge-close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.nudge-close-btn:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

/* 心境区域在播放时显示（通过JS控制） */
.mood-section.active .mood-lamps .slb:not(.disabled) {
    animation: mood-float 2s ease-in-out infinite alternate;
}
.mood-section.active .mood-lamps .slb:nth-child(2) { animation-delay: 0.15s; }
.mood-section.active .mood-lamps .slb:nth-child(3) { animation-delay: 0.3s; }
.mood-section.active .mood-lamps .slb:nth-child(4) { animation-delay: 0.45s; }

@keyframes mood-float {
    from { transform: translateY(0); }
    to { transform: translateY(-3px); }
}

/* ========================================
   Step4: BGM 商业授权/购买弹窗
   ======================================== */
.license-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 8, 6, 0.65);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.license-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.license-modal {
    position: relative;
    width: 600px;
    max-width: 92vw;
    max-height: 88vh;
    overflow-y: auto;
    background: linear-gradient(165deg, #1e1914, #161310);
    border: 1px solid rgba(201, 147, 92, 0.2);
    border-radius: 20px;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(201, 147, 92, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    animation: lm-slide-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes lm-slide-in {
    from { transform: scale(0.9) translateY(30px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

/* 金色顶部装饰条 */
.lm-gold-bar {
    height: 3px;
    background: linear-gradient(90deg,
        transparent,
        var(--accent-gold-dim) 20%,
        var(--accent-gold) 50%,
        var(--accent-gold-dim) 80%,
        transparent
    );
    border-radius: 20px 20px 0 0;
}

/* 关闭按钮 */
.lm-close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px; height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 5;
}
.lm-close-btn:hover {
    background: rgba(201, 147, 92, 0.15);
    color: var(--accent-gold-light);
    transform: rotate(90deg);
}

/* ===== 头部：歌曲信息 ===== */
.lm-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px 18px;
    border-bottom: 1px solid rgba(201, 147, 92, 0.08);
}

.lm-cover {
    width: 64px; height: 64px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(201, 147, 92, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.lm-song-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lm-title {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.lm-artist {
    font-size: 12px;
    color: var(--text-muted);
}

.lm-badge {
    display: inline-block;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(70, 170, 90, 0.1);
    color: #46aa5a;
    border: 1px solid rgba(70, 170, 90, 0.2);
    margin-top: 2px;
}

/* ===== 授权方案选择 ===== */
.lm-plans {
    padding: 22px 28px 14px;
}

.lm-plans h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-gold-light);
    margin: 0 0 14px;
    letter-spacing: 0.3px;
}

.lm-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.lm-plan-card {
    position: relative;
    padding: 16px 14px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
}

.lm-plan-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(201, 147, 92, 0.2);
    transform: translateY(-2px);
}

.lm-plan-card:has(input:checked) {
    border-color: var(--accent-gold);
    background: rgba(201, 147, 92, 0.06);
    box-shadow: 0 0 24px rgba(201, 147, 92, 0.1), inset 0 0 20px rgba(201, 147, 92, 0.03);
}

.lpc-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.lpc-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.lpc-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-gold-light);
}
.lpc-price small {
    font-size: 11px;
    margin-right: 1px;
}

.lpc-features {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
}
.lpc-features li {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lpc-tag {
    display: inline-block;
    font-size: 9px;
    padding: 1px 7px;
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.tag-green { background: rgba(70, 170, 90, 0.12); color: #46aa5a; }
.tag-gold { background: rgba(201, 147, 92, 0.15); color: var(--accent-gold-light); }
.tag-purple { background: rgba(160, 120, 200, 0.12); color: #b09cc8; }

/* 方案卡片选中时的微动画 */
.lm-plan-card:has(input:checked)::after {
    content: '✓';
    position: absolute;
    top: 8px; right: 10px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: #fff;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lmc-check-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes lmc-check-pop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* ===== 表单区域 ===== */
.lm-form-section {
    padding: 14px 28px 18px;
    border-top: 1px solid rgba(201, 147, 92, 0.06);
}
.lm-form-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-gold-light);
    margin: 0 0 14px;
}

.lm-field {
    margin-bottom: 12px;
}

.lm-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 5px;
}
.required { color: #d97c7c; }

.lm-select,
.lm-input,
.lm-textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
}
.lm-select:focus,
.lm-input:focus,
.lm-textarea:focus {
    border-color: var(--accent-gold);
    background: rgba(201, 147, 92, 0.04);
    box-shadow: 0 0 0 3px rgba(201, 147, 92, 0.08);
}
.lm-select option {
    background: #1e1914;
    color: var(--text-primary);
}
.lm-textarea {
    resize: vertical;
    min-height: 56px;
}

/* ===== 底部操作栏 ===== */
.lm-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 28px 24px;
    border-top: 1px solid rgba(201, 147, 92, 0.06);
}

.lm-cancel-btn {
    padding: 10px 22px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.lm-cancel-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.lm-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 26px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-warm));
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(201, 147, 92, 0.25);
}
.lm-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(201, 147, 92, 0.4);
}
.lm-submit-btn:active {
    transform: scale(0.97);
}
.lm-submit-icon {
    transition: transform 0.25s ease;
}
.lm-submit-btn:hover .lm-submit-icon {
    transform: translateX(4px);
}

/* 提交按钮 loading 状态 */
.lm-submit-btn.loading {
    pointer-events: none;
    opacity: 0.75;
}
.lm-submit-btn.loading .lm-submit-text::after {
    content: '';
    display: inline-block;
    width: 12px; height: 12px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    margin-left: 8px;
    vertical-align: middle;
    animation: lm-spin 0.65s linear infinite;
}
@keyframes lm-spin { to { transform: rotate(360deg); } }

/* 底部提示文字 */
.lm-footer-note {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    padding: 0 28px 20px;
    margin: -8px 0 0;
    line-height: 1.5;
}

/* 详情面板中的授权购买小按钮 */
.purchase-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 8px;
    border: 1px solid var(--accent-gold-dim);
    background: rgba(201, 147, 92, 0.08);
    color: var(--accent-gold-light);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 4px;
    font-family: inherit;
}
.purchase-btn:hover {
    background: rgba(201, 147, 92, 0.16);
    box-shadow: 0 2px 12px rgba(201, 147, 92, 0.2);
    transform: translateY(-1px);
}

/* 歌曲菜单中「商业授权」项样式增强 */
.tm-item.tm-license {
    /* 复用 tm-item 基础样式，通过 icon 区分 */
}
.tm-item.tm-license:hover {
    background: rgba(201, 147, 92, 0.15);
    color: var(--accent-gold-light);
}

/* 授权成功提示（toast 变体） */
.license-toast {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 3000;
    padding: 14px 28px;
    background: linear-gradient(135deg, #1e1914, #161310);
    border: 1px solid rgba(201, 147, 92, 0.3);
    border-radius: 14px;
    color: var(--accent-gold-light);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 24px rgba(201,147,92,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
}
.license-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 歌单为空提示 */
.empty-hint {
    padding: 48px 24px;
    text-align: center;
    color: var(--text-muted);
    font-family: var(--font-serif);
    font-size: 16px;
    letter-spacing: 3px;
}

/* 响应式：心境区 */
@media (max-width: 1024px) {
    .mood-section {
        bottom: 84px;
        padding: 10px 18px;
        gap: 6px;
    }
    .mood-label { font-size: 10px; }
    .slb { padding: 5px 8px; gap: 2px; }
    .slb-text { font-size: 10px; }
    .slb-emoji { font-size: 13px; }
    .slb-count { font-size: 8px; min-width: 14px; height: 14px; }
}

/* ========================================
   Step3: 动态视觉增强 — 粒子背景 Canvas
   ======================================== */
#particleCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ========================================
   Step3: 骨架屏加载态
   ======================================== */
.skeleton {
    background: linear-gradient(90deg,
        rgba(255,255,255,0.04) 25%,
        rgba(255,255,255,0.08) 50%,
        rgba(255,255,255,0.04) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-card {
    width: 170px;
    height: 220px;
}

.skeleton-hero {
    width: 300px;
    height: 169px;
    border-radius: var(--radius-lg);
}

.skeleton-op {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
    border-radius: 4px;
}
.skeleton-text.short { width: 60%; }
.skeleton-text.medium { width: 80%; }

.skeleton-row {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    justify-content: center;
}

/* ========================================
   Step3: 卡片光晕扫光效果
   ======================================== */
.hero-card::before,
.playlist-card::before,
.op-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(201, 147, 92, 0.06),
        rgba(224, 180, 122, 0.10),
        transparent
    );
    transition: none;
    pointer-events: none;
    z-index: 2;
}

.hero-card:hover::before {
    animation: card-shine 0.7s ease forwards;
}

.playlist-card:hover::before {
    animation: card-shine 0.6s ease forwards;
}

.op-card:hover::before {
    animation: card-shine 0.6s ease forwards;
}

@keyframes card-shine {
    from { left: -100%; }
    to { left: 150%; }
}

/* Hero 卡片播放按钮脉冲 */
.hero-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    /* ...existing styles... */ 
}
.hero-card:hover .hero-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: hero-btn-pulse 2s ease-in-out infinite 0.3s;
}

@keyframes hero-btn-pulse {
    0%, 100% { box-shadow: 0 8px 32px rgba(201, 147, 92, 0.4); }
    50% { box-shadow: 0 8px 40px rgba(201, 147, 92, 0.6), 0 0 20px rgba(201, 147, 92, 0.15); }
}

/* ========================================
   Step3: 播放器增强动效
   ======================================== */

/* 进度条渐变流动效果 */
.progress-fill {
    background-size: 200% 100%;
    background-image: linear-gradient(
        90deg,
        var(--accent-gold-dim),
        var(--accent-gold),
        var(--accent-gold-light),
        var(--accent-gold)
    );
    animation: progress-flow 3s linear infinite;
}

@keyframes progress-flow {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* 播放中波形条增强动画 */
.waveform-bar.playing {
    animation: wave-playing 0.5s ease-in-out infinite alternate !important;
}

@keyframes wave-playing {
    from { transform: scaleY(0.35); opacity: 0.55; }
    to { transform: scaleY(1); opacity: 1; }
}

.waveform-bar.playing:nth-child(even) { animation-delay: 0.05s !important; }
.waveform-bar.playing:nth-child(3n) { animation-delay: 0.12s !important; }
.waveform-bar.playing:nth-child(4n) { animation-delay: 0.02s !important; }
.waveform-bar.playing:nth-child(5n) { animation-delay: 0.08s !important; }

/* 唱片机发光环 — 播放时 */
.vinyl-record.playing::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(201, 147, 92, 0.15);
    animation: vinyl-glow-ring 3s ease-in-out infinite;
}

@keyframes vinyl-glow-ring {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.02); }
}

/* Play 按钮 hover 发光涟漪 */
.play-btn::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.play-btn:hover::after {
    border-color: rgba(201, 147, 92, 0.25);
    animation: btn-ripple-out 0.8s ease-out;
}

@keyframes btn-ripple-out {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ========================================
   Step3: 滚动入场动画（IntersectionObserver 配合）
   ======================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 交错延迟 */
.scroll-reveal.delay-1 { transition-delay: 0.08s; }
.scroll-reveal.delay-2 { transition-delay: 0.16s; }
.scroll-reveal.delay-3 { transition-delay: 0.24s; }
.scroll-reveal.delay-4 { transition-delay: 0.32s; }
.scroll-reveal.delay-5 { transition-delay: 0.40s; }
.scroll-reveal.delay-6 { transition-delay: 0.48s; }

/* 左侧入场变体 */
.scroll-reveal.from-left {
    transform: translateX(-30px) translateY(0);
}
.scroll-reveal.from-left.revealed {
    transform: translateX(0) translateY(0);
}

/* 右侧入场变体 */
.scroll-reveal.from-right {
    transform: translateX(30px) translateY(0);
}
.scroll-reveal.from-right.revealed {
    transform: translateX(0) translateY(0);
}

/* 缩放入场变体 */
.scroll-reveal.scale-in {
    transform: scale(0.94) translateY(16px);
}
.scroll-reveal.scale-in.revealed {
    transform: scale(1) translateY(0);
}

/* ========================================
   Step3: 歌曲列表行动效
   ======================================== */
.track-item {
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background 0.2s ease;
}

.track-item:hover {
    background: var(--bg-glass-hover);
    transform: translateX(4px);
}

.track-item.active {
    background: rgba(201, 147, 92, 0.08);
    border-left: 2px solid var(--accent-gold);
}

.track-item.track-enter {
    animation: track-slide-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes track-slide-in {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ========================================
   Step3: 侧边栏微动效
   ======================================== */

/* 今日推荐项 hover */
.today-item {
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.today-item:hover {
    background: var(--bg-glass-hover);
    transform: translateX(3px);
}

/* 标签云 hover 弹跳 */
.cloud-tag {
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cloud-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(201, 147, 92, 0.1);
}

/* Follow 按钮点击反馈 */
.follow-btn {
    position: relative;
    overflow: hidden;
}
.follow-btn::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(201, 147, 92, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}
.follow-btn:active::after {
    width: 120px; height: 120px;
}

/* 创作者头像呼吸光环 */
.creator-avatar {
    transition: box-shadow 0.3s ease;
}
.creator-avatar:hover {
    box-shadow: 0 0 0 3px rgba(201, 147, 92, 0.2), 0 0 16px rgba(201, 147, 92, 0.1);
}

/* 官方歌单卡片 stagger 入场 */
.op-card {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
    animation: op-card-enter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.op-card:nth-child(1) { animation-delay: 0.05s; }
.op-card:nth-child(2) { animation-delay: 0.12s; }
.op-card:nth-child(3) { animation-delay: 0.19s; }
.op-card:nth-child(4) { animation-delay: 0.26s; }

@keyframes op-card-enter {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ========================================
   Step3: 分类标签栏动效
   ======================================== */
.cat-tab {
    position: relative;
    overflow: hidden;
}
.cat-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.cat-tab.active::after {
    width: 70%;
}
.cat-tab:hover::after {
    width: 40%;
}

/* Tab 切换弹跳 */
.cat-tab.active {
    animation: tab-bounce 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes tab-bounce {
    0% { transform: scale(1); }
    40% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

/* ========================================
   Step3: 数字计数动画
   ======================================== */
.stat-time,
.cs-item strong {
    display: inline-block;
}

/* ========================================
   Step3: 导航栏项目微动效
   ======================================== */
.sidenav-item {
    position: relative;
}
.sidenav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    background: var(--accent-gold);
    border-radius: 0 2px 2px 0;
    transform: translateY(-50%);
    transition: height 0.25s ease;
}
.sidenav-item.active::before,
.sidenav-item:hover::before {
    height: 20px;
}

.nav-btn {
    position: relative;
    overflow: hidden;
}
.nav-btn::after {
    content: '';
    position: absolute;
    bottom: 0; left: 20%; right: 20%;
    height: 1px;
    background: var(--accent-gold);
    opacity: 0;
    transition: opacity 0.2s, left 0.3s, right 0.3s;
}
.nav-btn:hover::after { opacity: 1; left: 10%; right: 10%; }
.nav-btn.active::after { opacity: 1; left: 5%; right: 5%; }

/* ========================================
   Step3: 搜索框聚焦增强
   ======================================== */
.search-box {
    position: relative;
    overflow: hidden;
}
.search-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(201,147,92,0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.search-box:focus-within::before {
    opacity: 1;
}

/* ========================================
   Step3: 心境按钮增强
   ======================================== */
.mood-section.visible {
    animation: mood-section-enter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes mood-section-enter {
    from { opacity: 0; transform: translateX(-50%) translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* ========================================
   Step3: 页面整体加载动画
   ======================================== */
body {
    animation: page-fade-in 0.6s ease-out;
}

@keyframes page-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
