/* ====================================
   36DJ 播放器 - 高级视觉设计
   ==================================== */

/* ========== 播放页布局 ========== */
.player-page {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    margin: 20px 0;
}

/* ========== 播放器主卡片 ========== */
.player-main {
    position: relative;
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px;
    padding: 36px 32px 28px;
    overflow: hidden;
    box-shadow:
        0 0 60px rgba(168, 85, 247, 0.15),
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* 卡片光效装饰 */
.player-main::before {
    content: "";
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(168, 85, 247, 0.12), transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(236, 72, 153, 0.10), transparent 50%);
    pointer-events: none;
    animation: glow-shift 8s ease-in-out infinite alternate;
}
@keyframes glow-shift {
    0%   { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(15deg) scale(1.1); }
}

/* ========== 顶部区：唱片 + 信息 ========== */
.vinyl-wrap {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

/* ========== 黑胶唱片 ========== */
.vinyl-stage {
    position: relative;
    width: 220px;
    height: 220px;
    flex-shrink: 0;
}

/* 7彩LED灯环 */
.led-ring {
    position: absolute;
    top: 50%; left: 50%;
    width: 240px; height: 240px;
    transform: translate(-50%, -50%);
    z-index: 0;
    animation: led-rotate 6s linear infinite;
    animation-play-state: paused;
}
.led-ring.playing { animation-play-state: running; }
@keyframes led-rotate { to { transform: translate(-50%, -50%) rotate(360deg); } }

.led {
    position: absolute;
    width: 14px; height: 14px;
    border-radius: 50%;
    top: 50%; left: 50%;
    margin: -7px 0 0 -7px;
    opacity: 0.2;
    transition: opacity 0.18s ease-out, box-shadow 0.18s ease-out;
}
/* 7个LED沿圆环分布 - 基础弱光晕 */
.led-1 { transform: rotate(0deg) translateY(-120px); background: #ff0044; box-shadow: 0 0 6px #ff0044; }
.led-2 { transform: rotate(51.4deg) translateY(-120px); background: #ff6600; box-shadow: 0 0 6px #ff6600; }
.led-3 { transform: rotate(102.8deg) translateY(-120px); background: #ffdd00; box-shadow: 0 0 6px #ffdd00; }
.led-4 { transform: rotate(154.2deg) translateY(-120px); background: #00ff66; box-shadow: 0 0 6px #00ff66; }
.led-5 { transform: rotate(205.6deg) translateY(-120px); background: #00ddff; box-shadow: 0 0 6px #00ddff; }
.led-6 { transform: rotate(257deg) translateY(-120px); background: #0044ff; box-shadow: 0 0 6px #0044ff; }
.led-7 { transform: rotate(308.4deg) translateY(-120px); background: #aa00ff; box-shadow: 0 0 6px #aa00ff; }

/* 节拍同时闪烁 - 柔和亮度 */
.led.flash {
    opacity: 0.7 !important;
}
.led-1.flash { box-shadow: 0 0 14px 3px #ff0044, 0 0 24px 5px rgba(255,0,68,0.25); }
.led-2.flash { box-shadow: 0 0 14px 3px #ff6600, 0 0 24px 5px rgba(255,102,0,0.25); }
.led-3.flash { box-shadow: 0 0 14px 3px #ffdd00, 0 0 24px 5px rgba(255,221,0,0.25); }
.led-4.flash { box-shadow: 0 0 14px 3px #00ff66, 0 0 24px 5px rgba(0,255,102,0.25); }
.led-5.flash { box-shadow: 0 0 14px 3px #00ddff, 0 0 24px 5px rgba(0,221,255,0.25); }
.led-6.flash { box-shadow: 0 0 14px 3px #0044ff, 0 0 24px 5px rgba(0,68,255,0.25); }
.led-7.flash { box-shadow: 0 0 14px 3px #aa00ff, 0 0 24px 5px rgba(170,0,255,0.25); }

.vinyl {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    position: relative;
    background:
        radial-gradient(circle at center,
            transparent 24%,
            rgba(255,255,255,0.02) 24.5%,
            transparent 25%,
            rgba(255,255,255,0.02) 30%,
            transparent 30.5%,
            rgba(255,255,255,0.02) 35%,
            transparent 35.5%,
            rgba(255,255,255,0.02) 40%,
            transparent 40.5%,
            rgba(255,255,255,0.01) 45%,
            transparent 45.5%,
            #0a0a0a 50%
        ),
        radial-gradient(circle at 35% 35%, #1a1a1a, #050505 70%);
    box-shadow:
        0 0 50px rgba(168, 85, 247, 0.35),
        0 8px 32px rgba(0, 0, 0, 0.6),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    animation: vinyl-spin 10s linear infinite;
    animation-play-state: paused;
}
.vinyl.playing { animation-play-state: running; }
@keyframes vinyl-spin { to { transform: rotate(360deg); } }

/* 唱片光泽反射 */
.vinyl::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg,
        rgba(255,255,255,0.06) 0%,
        transparent 40%,
        transparent 60%,
        rgba(255,255,255,0.03) 100%);
    pointer-events: none;
}

/* 唱片中心标签 - 显示封面 */
.vinyl-label {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.6), inset 0 0 10px rgba(0,0,0,0.3);
    overflow: hidden;
}
.vinyl-label img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.vinyl-label::after {
    content: "";
    position: absolute;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #000;
    box-shadow: 0 0 4px rgba(255,255,255,0.3);
    z-index: 2;
}

/* 唱针 */
.tonearm {
    position: absolute;
    top: -15px; right: -10px;
    width: 100px; height: 100px;
    z-index: 2;
    pointer-events: none;
    transform-origin: top right;
    transform: rotate(-30deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.tonearm.playing { transform: rotate(-10deg); }
.tonearm-arm {
    position: absolute;
    top: 0; right: 10px;
    width: 6px; height: 80px;
    background: linear-gradient(to bottom, #555, #333);
    border-radius: 3px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}
.tonearm-pivot {
    position: absolute;
    top: -5px; right: 5px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #666, #222);
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.tonearm-head {
    position: absolute;
    bottom: -8px; left: -4px;
    width: 18px; height: 14px;
    background: linear-gradient(to bottom, #444, #222);
    border-radius: 2px;
}

/* ========== 播放信息 ========== */
.player-info { flex: 1; min-width: 0; position: relative; z-index: 1; }
.player-info h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
    line-height: 1.35;
    text-shadow: 0 2px 10px rgba(168, 85, 247, 0.3);
}
.player-meta {
    color: var(--text-dim);
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 14px;
}
.player-meta span { display: flex; align-items: center; gap: 5px; }
.player-meta a { color: var(--cyan); text-decoration: none; transition: color .2s; }
.player-meta a:hover { color: var(--pink); }
.player-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* ========== 频谱可视化（已移除，保留样式以防回滚） ========== */
.spectrum {
    display: none !important;  /* 波浪特效已移除，隐藏不显示 */
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 60px;
    margin: 16px 0 12px;
    position: relative;
    z-index: 1;
}
.spectrum span {
    width: 4px;
    min-height: 4px;
    background: linear-gradient(to top, var(--purple), var(--pink), var(--cyan));
    border-radius: 3px;
    animation: spectrum-bounce 0.8s ease-in-out infinite;
    animation-play-state: paused;
    opacity: 0.5;
    transition: opacity 0.3s;
}
.spectrum.playing span { animation-play-state: running; opacity: 1; }
@keyframes spectrum-bounce {
    0%, 100% { height: 6px; }
    50%      { height: 50px; }
}
@keyframes preview-pulse {
    0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
    50%      { opacity: 0.8; transform: translateX(-50%) scale(1.05); }
}
/* 试听模式徽章脉冲（不偏移，避免被左侧裁切） */
@keyframes preview-badge-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.85; transform: scale(1.06); }
}
.spectrum span:nth-child(1)  { animation-delay: 0.00s; }
.spectrum span:nth-child(2)  { animation-delay: 0.05s; }
.spectrum span:nth-child(3)  { animation-delay: 0.10s; }
.spectrum span:nth-child(4)  { animation-delay: 0.15s; }
.spectrum span:nth-child(5)  { animation-delay: 0.20s; }
.spectrum span:nth-child(6)  { animation-delay: 0.25s; }
.spectrum span:nth-child(7)  { animation-delay: 0.30s; }
.spectrum span:nth-child(8)  { animation-delay: 0.35s; }
.spectrum span:nth-child(9)  { animation-delay: 0.40s; }
.spectrum span:nth-child(10) { animation-delay: 0.45s; }
.spectrum span:nth-child(11) { animation-delay: 0.50s; }
.spectrum span:nth-child(12) { animation-delay: 0.55s; }
.spectrum span:nth-child(13) { animation-delay: 0.60s; }
.spectrum span:nth-child(14) { animation-delay: 0.65s; }
.spectrum span:nth-child(15) { animation-delay: 0.70s; }
.spectrum span:nth-child(16) { animation-delay: 0.75s; }
.spectrum span:nth-child(17) { animation-delay: 0.80s; }
.spectrum span:nth-child(18) { animation-delay: 0.85s; }
.spectrum span:nth-child(19) { animation-delay: 0.90s; }
.spectrum span:nth-child(20) { animation-delay: 0.95s; }
.spectrum span:nth-child(21) { animation-delay: 1.00s; }
.spectrum span:nth-child(22) { animation-delay: 1.05s; }
.spectrum span:nth-child(23) { animation-delay: 1.10s; }
.spectrum span:nth-child(24) { animation-delay: 1.15s; }

/* ========== MV 视频播放页（video.php，独立于音乐播放页） ========== */
/* 页面布局：左视频主区 + 右相关视频列表 */
.video-page {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    margin: 20px 0;
}
.video-main {
    position: relative;
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(236, 72, 153, 0.2);
    border-radius: 20px;
    padding: 20px;
    box-shadow:
        0 0 60px rgba(236, 72, 153, 0.10),
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}
/* 大视频播放器（16:9，始终可见） */
.video-stage-lg {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 40px rgba(236, 72, 153, 0.18);
    border: 1px solid rgba(236, 72, 153, 0.25);
    aspect-ratio: 16 / 9;
}
.video-stage-lg video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
}
.video-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(245, 158, 11, 0.9));
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(239, 68, 68, 0.4);
    z-index: 2;
    pointer-events: none;
}
/* 游客试看提示条（默认隐藏，JS 控制显示） */
.video-preview-tip {
    display: none;
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 10px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    z-index: 3;
    pointer-events: none;
}
.video-preview-tip-text {
    color: #fbbf24;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    animation: video-preview-blink 1.6s ease-in-out infinite;
}
.video-preview-tip-text a { color: var(--pink); text-decoration: underline; }
@keyframes video-preview-blink {
    0%, 100% { opacity: 0.65; }
    50%      { opacity: 1; }
}
/* 视频信息区 */
.video-info { margin-top: 18px; position: relative; z-index: 1; }
.video-info h1 {
    font-size: 20px;
    color: var(--text);
    margin: 0 0 10px;
    font-weight: 800;
    line-height: 1.4;
}
.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 16px;
}
.video-meta a { color: var(--text-dim); text-decoration: none; }
.video-meta a:hover { color: var(--pink); }
.video-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 6px;
}
/* ===== 右侧：相关视频列表 ===== */
.video-sidebar {
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 16px 14px;
    align-self: start;
}
.video-list-box h3 {
    font-size: 14px;
    color: var(--pink);
    font-weight: 700;
    margin: 0 0 12px;
    padding: 0 4px;
}
.video-list-count {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: normal;
}
.video-list-item {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.15s;
    margin-bottom: 4px;
}
.video-list-item:hover { background: rgba(236, 72, 153, 0.08); }
.video-list-item.playing {
    background: linear-gradient(90deg, rgba(236,72,153,0.15), transparent);
    border-left: 3px solid var(--pink);
    padding-left: 5px;
}
.video-list-cover {
    position: relative;
    width: 96px;
    height: 54px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}
.video-list-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.video-list-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.15s;
}
.video-list-item:hover .video-list-play { opacity: 1; }
.video-list-vip {
    position: absolute;
    top: 4px; right: 4px;
    background: linear-gradient(135deg, #f59e0b, #ec4899);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
}
.video-list-title {
    flex: 1;
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    align-self: center;
}
.video-list-item.playing .video-list-title { color: #fff; }
/* ===== 移动端适配 ===== */
@media (max-width: 768px) {
    .video-page { grid-template-columns: 1fr; gap: 12px; }
    .video-main { padding: 12px; }
    .video-stage-lg { border-radius: 10px; }
    .video-badge { font-size: 10px; padding: 3px 8px; top: 8px; right: 8px; }
    .video-info h1 { font-size: 17px; }
    .video-sidebar { padding: 10px 8px; }
    .video-list-cover { width: 84px; height: 48px; }
}

/* ========== 进度条 ========== */
.progress-wrap { margin: 8px 0 20px; position: relative; z-index: 1; }
/* 试听模式：增加顶部留白，避免提示文字被歌词区遮挡 */
.progress-wrap.preview-mode-wrap { margin-top: 34px; }
.progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: visible;
    transition: height 0.15s;
}
.progress-bar:hover { height: 10px; }
/* 试听模式下进度条底色微微泛红 */
.progress-bar.preview-mode {
    background: rgba(255, 68, 68, 0.12);
    box-shadow: 0 0 0 1px rgba(255, 68, 68, 0.15);
}
.progress-filled {
    height: 100%;
    background: linear-gradient(to right, var(--purple), var(--pink), var(--cyan));
    border-radius: 4px;
    width: 0%;
    transition: width 0.15s linear;
    position: relative;
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.6);
}
.progress-filled::after {
    content: "";
    position: absolute;
    right: -7px; top: 50%;
    transform: translateY(-50%);
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.9), 0 0 4px rgba(255,255,255,0.8);
    opacity: 0;
    transition: opacity 0.2s;
}
.progress-bar:hover .progress-filled::after { opacity: 1; }
.progress-time {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 8px;
    font-variant-numeric: tabular-nums;
}

/* ========== 控制按钮区 ========== */
.controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    z-index: 1;
}
.controls {
    display: flex;
    align-items: center;
    gap: 14px;
}
.ctrl-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.ctrl-btn:hover {
    color: var(--pink);
    border-color: var(--pink);
    background: rgba(236, 72, 153, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.3);
}
.ctrl-btn:active { transform: translateY(0) scale(0.95); }
.ctrl-btn.play {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: #fff;
    border: none;
    font-size: 24px;
    box-shadow:
        0 0 30px rgba(236, 72, 153, 0.5),
        0 8px 24px rgba(168, 85, 247, 0.4);
}
.ctrl-btn.play:hover {
    transform: scale(1.08);
    box-shadow:
        0 0 40px rgba(236, 72, 153, 0.7),
        0 8px 32px rgba(168, 85, 247, 0.5);
}

/* 音量控制 */
.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}
.volume-icon {
    font-size: 18px;
    cursor: pointer;
    color: var(--text-dim);
    transition: color 0.2s;
    user-select: none;
}
.volume-icon:hover { color: var(--pink); }
.volume-slider {
    width: 90px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    cursor: pointer;
    box-shadow: 0 0 8px rgba(236, 72, 153, 0.6);
    transition: transform 0.15s;
}
.volume-slider::-webkit-slider-thumb:hover { transform: scale(1.3); }
.volume-slider::-moz-range-thumb {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    border: none;
    cursor: pointer;
}

/* 播放速度 */
.speed-control {
    display: flex;
    align-items: center;
    gap: 6px;
}
.speed-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-dim);
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.speed-btn:hover { color: var(--cyan); border-color: var(--cyan); }
.speed-btn.active {
    color: var(--cyan);
    border-color: var(--cyan);
    background: rgba(6, 182, 212, 0.1);
}
/* 锁定状态（无权限/未登录） */
.speed-btn.locked {
    opacity: 0.45;
    cursor: not-allowed;
    border-style: dashed;
    border-color: rgba(255,255,255,0.12);
}
.speed-btn.locked:hover {
    color: var(--text-dim);
    border-color: rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
}

/* ========== 音效模式（酷狗风格） ========== */
.effect-control {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    position: relative;
    z-index: 1;
}
.effect-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}
.effect-toggle {
    font-size: 12px;
    color: var(--text-dim);
    transition: transform 0.2s;
    padding: 2px 8px;
}
.effect-body {
    display: block;
}
.effect-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dim);
    white-space: nowrap;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.effect-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.effect-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-dim);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    white-space: nowrap;
}
.effect-btn:hover {
    color: var(--pink);
    border-color: var(--pink);
    background: rgba(236, 72, 153, 0.08);
    transform: translateY(-1px);
}
.effect-btn.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    box-shadow: 0 0 14px rgba(236, 72, 153, 0.4);
}

/* 锁定状态（无权限/未登录） */
.effect-btn.locked {
    opacity: 0.45;
    cursor: not-allowed;
    border-style: dashed;
    border-color: rgba(255,255,255,0.12);
}
.effect-btn.locked:hover {
    color: var(--text-dim);
    border-color: rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    transform: none;
}
.effect-hint {
    margin-top: 10px;
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.5;
}
.effect-hint a {
    color: var(--cyan);
    text-decoration: none;
}
.effect-hint a:hover { color: var(--pink); }

/* ========== DJ 打碟搓盘样式 ========== */
/* 黑胶唱片舞台可拖动光标 */
.vinyl-stage {
    cursor: grab;
}
.vinyl-stage:active {
    cursor: grabbing;
}
/* 搓盘时唱片停止CSS自动旋转，由JS手动控制transform */
.vinyl.scratching {
    animation-play-state: paused !important;
    box-shadow:
        0 0 80px rgba(236, 72, 153, 0.7),
        0 8px 32px rgba(0, 0, 0, 0.6),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    filter: brightness(1.15) saturate(1.2);
}
/* 搓盘时灯环加速旋转 */
.led-ring:has(.vinyl.scratching) {
    animation-duration: 1.5s !important;
}

/* 打碟提示文字 - 默认弱显示，悬停/激活时高亮 */
.scratch-hint {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(236, 72, 153, 0.15);
    color: var(--pink);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.25s, background 0.25s, box-shadow 0.25s;
    border: 1px solid rgba(236, 72, 153, 0.3);
    z-index: 3;
}
.vinyl-stage:hover .scratch-hint {
    opacity: 1;
    background: rgba(236, 72, 153, 0.25);
    box-shadow: 0 0 14px rgba(236, 72, 153, 0.4);
}
.scratch-hint.active {
    opacity: 1;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: #fff;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.7);
    animation: scratch-pulse 0.6s ease-in-out infinite alternate;
}
@keyframes scratch-pulse {
    from { transform: translateX(-50%) scale(1); }
    to   { transform: translateX(-50%) scale(1.08); }
}

/* H5端隐藏打碟提示文字（移动端搓盘体验不佳，避免误触） */
@media (max-width: 768px) {
    .scratch-hint { display: none; }
}

/* ========== 侧边栏 ========== */
.player-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.related-box {
    background: rgba(20, 20, 30, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
}
.related-box::-webkit-scrollbar { width: 4px; }
.related-box::-webkit-scrollbar-track { background: transparent; }
.related-box::-webkit-scrollbar-thumb { background: rgba(236,72,153,0.3); border-radius: 2px; }
.related-box h3 {
    color: var(--text);
    margin-bottom: 14px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.related-box h3::before {
    content: "";
    width: 4px; height: 18px;
    background: linear-gradient(to bottom, var(--purple), var(--pink));
    border-radius: 2px;
}
.related-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 8px;
    color: var(--text-dim);
    font-size: 13px;
    transition: all 0.2s;
    text-decoration: none;
}
.related-item:hover {
    color: var(--text);
    background: rgba(236, 72, 153, 0.08);
    transform: translateX(4px);
}
.related-item .num {
    color: var(--text-muted);
    width: 24px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.related-item:nth-child(2) .num,
.related-item:nth-child(3) .num,
.related-item:nth-child(4) .num {
    color: var(--pink);
}

/* 播放列表项样式（当前播放高亮） */
.playlist-item.playing {
    background: linear-gradient(90deg, rgba(236,72,153,0.15), rgba(124,58,237,0.08));
    color: var(--text);
    border-left: 3px solid var(--pink);
    padding-left: 5px;
}
.playlist-item.playing .num {
    color: var(--pink);
    font-size: 16px;
}
.playlist-item.playing .playlist-title {
    color: var(--text);
    font-weight: 600;
}
.playlist-item .playlist-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.playlist-item .playlist-vip {
    flex-shrink: 0;
    padding: 1px 6px;
    border: 1px solid var(--pink);
    border-radius: 3px;
    font-size: 10px;
}
.playlist-count {
    margin-left: 8px;
}

/* ========== 评论区 ========== */
.comments-section {
    background: rgba(20, 20, 30, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 28px;
    margin-top: 20px;
}
.comments-section h3 {
    color: var(--text);
    margin-bottom: 18px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.comments-section h3::before {
    content: "";
    width: 4px; height: 20px;
    background: linear-gradient(to bottom, var(--purple), var(--pink));
    border-radius: 2px;
}
.comment-form textarea {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: var(--text);
    padding: 14px;
    min-height: 90px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s;
}
.comment-form textarea:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}
.comment-form .form-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.comment-list { margin-top: 20px; }
.comment-item {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    display: flex;
    gap: 12px;
}
.comment-item:last-child { border-bottom: none; }
.comment-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}
.comment-body { flex: 1; min-width: 0; }
.comment-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}
.comment-user { color: var(--cyan); font-size: 13px; font-weight: 600; }
.comment-time { color: var(--text-muted); font-size: 11px; }
.comment-content { color: var(--text); font-size: 14px; line-height: 1.6; }

/* ========== 背景模糊封面 ========== */
.player-bg-cover {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    filter: blur(80px) brightness(0.3) saturate(1.5);
    opacity: 0.5;
    transition: background-image 0.5s;
}

/* ========== KTV 风格歌词显示区域 ========== */
/* 整体容器：渐变背景 + 圆角边框，类似 KTV 屏幕效果 */
.lyrics-ktv-box {
    margin: 10px 0 6px;
    padding: 8px 14px 10px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.35));
    border: 1px solid rgba(236, 72, 153, 0.25);
    border-radius: 10px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    position: relative;
    z-index: 1;
}
.lyrics-ktv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.lyrics-ktv-label {
    color: var(--pink, #ec4899);
    font-size: 12px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(236, 72, 153, 0.5);
}
.lyrics-ktv-toggle {
    color: var(--text-muted, #888);
    font-size: 11px;
    cursor: pointer;
    padding: 1px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}
.lyrics-ktv-toggle:hover {
    color: var(--pink, #ec4899);
    background: rgba(236, 72, 153, 0.1);
}
.lyrics-ktv-body {
    text-align: center;
    height: 44px;            /* 固定高度，仅显示 2 行 */
    overflow: hidden;        /* 隐藏溢出内容 */
    position: relative;      /* 子元素 translateY 定位基准 */
    mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 70%, transparent 100%);
}
/* 滚动容器：通过 translateY 实现平滑滚动 */
.lyrics-scroll {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 16px 0;         /* 上下留白，让首尾行也能滚到中间 */
}
/* 歌词行：默认弱化显示 */
.lyrics-scroll-line {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.3);
    padding: 2px 10px;
    word-break: break-word;
    transition: all 0.35s ease;
    filter: blur(0.5px);
}
/* 当前行：高亮显示，KTV 风格金色发光 */
.lyrics-scroll-line.active {
    color: #ffd700;
    font-size: 14px;
    font-weight: 700;
    text-shadow:
        0 0 6px rgba(255, 215, 0, 0.8),
        0 0 12px rgba(255, 215, 0, 0.5),
        0 0 20px rgba(255, 165, 0, 0.4);
    filter: none;
    transform: scale(1.02);
}
/* 移动端歌词样式调整 */
@media (max-width: 640px) {
    .lyrics-ktv-box { padding: 6px 10px 8px; margin: 8px 0 4px; }
    .lyrics-ktv-body { height: 40px; }
    .lyrics-scroll { padding: 14px 0; }
    .lyrics-scroll-line { font-size: 11px; padding: 2px 8px; }
    .lyrics-scroll-line.active { font-size: 13px; }
}

/* 暂无歌词提示 + 在线获取按钮 */
.lyrics-empty {
    text-align: center;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.lyrics-empty-text {
    color: var(--text-muted, #888);
    font-size: 14px;
    line-height: 1.6;
}
.lyrics-fetch-btn {
    font-size: 13px !important;
    padding: 6px 16px !important;
    border-color: rgba(236, 72, 153, 0.4) !important;
    color: var(--pink, #ec4899) !important;
}
.lyrics-fetch-btn:hover:not(:disabled) {
    background: rgba(236, 72, 153, 0.15) !important;
}
.lyrics-fetch-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}
/* 歌词开关按钮激活状态（player.js 动态设置 inline style，此处仅作 fallback） */
#lyrics-toggle-btn.active {
    background: var(--pink, #ec4899);
    color: #fff;
    border-color: var(--pink, #ec4899);
}

/* ========== 响应式 ========== */
@media (max-width: 900px) {
    .player-page { grid-template-columns: 1fr; gap: 16px; }
    .player-main { padding: 24px 20px; }
    .vinyl-wrap { flex-direction: column; text-align: center; gap: 20px; }
    .vinyl-stage { width: 120px; height: 120px; }   /* H5 端转盘缩小 3 分之 1（180→120） */
    .vinyl { width: 120px; height: 120px; }
    .player-info h1 { font-size: 20px; }
    .controls-row { flex-direction: column; gap: 14px; }
    .controls { gap: 10px; }
    .ctrl-btn { width: 40px; height: 40px; font-size: 14px; }
    .ctrl-btn.play { width: 56px; height: 56px; font-size: 20px; }
    .volume-slider { width: 70px; }
    .comments-section { padding: 20px 16px; }
}
