
/* ========== 音乐页面基础样式 ========== */
body[data-current-page="music"] .content {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 100vh !important;
    position: relative;
}

/* 导航栏固定 */
body[data-current-page="music"] .navbar {
    position: fixed; /* 固定定位，不随页面滚动 */
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 20; /* 确保导航栏在背景卡片之上 */
    background-color: transparent;
    backdrop-filter: blur(100px);
    -webkit-backdrop-filter: blur(100px);
/* 遮罩层（增强对比度） */
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(20,20,30,0.1) 100%);
}



body[data-current-page="music"] .sidebar {
    z-index: 100000 !important;
}

body[data-current-page="music"] .sidebar-overlay {
    z-index: 99998 !important;
}

/* ========== 背景卡片 ========== */
.music-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    z-index: 1;
}

/* 背景图层 */
.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: center/cover no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.bg-layer.active {
    opacity: 1;
}

/* 默认背景（当没有歌手背景图时显示） */
.bg-layer.default-bg {
    background-image: url('/assets/image/backgroundVideo.jpg');
    opacity: 1;
}

/* ========== 内容区域 ========== */
.music-content-area {
    position: relative;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    padding: 80px 20px 40px;
    pointer-events: auto;
}

.music-content-area * {
    pointer-events: auto !important;
}

/* ========== PC端左右布局 ========== */
@media (min-width: 769px) {
    .music-player-card {
        display: grid;
        grid-template-columns: 280px 1fr;
        grid-template-rows: auto auto auto auto auto;
        gap: 0 30px;
        padding: 40px;
        max-width: 900px;
        overflow: hidden;
    }
    
    /* PC端播放器卡片遮罩层 */
    .music-player-card::before {
        border-radius: 20px;
    }
    
    .music-song-info {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .music-cover-wrapper {
        grid-column: 1;
        grid-row: 2;
        width: 320px;
        height: 240px;
        margin: 0;
        align-self: center;
        justify-self: center;
    }
    
    .music-vinyl {
        width: 210px;
        height: 210px;
        margin-top: -105px;
        margin-left: -38px;
    }
    
    .music-vinyl::before {
        width: 133px;
        height: 133px;
        margin-top: -66.5px;
        margin-left: -66.5px;
    }
    
    .music-vinyl::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        margin-top: -10px;
        margin-left: -10px;
        border-radius: 50%;
        background: transparent;
        border: 2px solid rgba(255,255,255,0.3);
        box-shadow: inset 0 0 5px rgba(0,0,0,0.3);
        z-index: 3;
    }
    
    .music-cover {
        width: 220px;
        height: 220px;
        margin-top: -110px;
        margin-left: -125px;
    }
    
    .music-lyrics-box {
        grid-column: 2;
        grid-row: 2;
        margin-bottom: 0;
        height: 240px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .music-visualizer {
        grid-column: 1 / -1;
        grid-row: 3;
        margin-top: 25px;
    }
    
    .music-progress {
        grid-column: 1 / -1;
        grid-row: 4;
    }
    
    .music-controls {
        grid-column: 1 / -1;
        grid-row: 5;
    }
}

/* ========== 标题 ========== */
.music-title {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 40px;
    letter-spacing: 4px;
    text-align: center;
}

/* ========== 播放器卡片 ========== */
.music-player-card {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 30px 40px;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    backdrop-filter: blur(100px);
    -webkit-backdrop-filter: blur(100px);
    border: 1px solid rgba(255,255,255,0.15);
    position: relative;
    overflow: hidden;
}

/* 播放器卡片遮罩层（增强对比度） */
.music-player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(20,20,30,0.6) 100%);
    border-radius: 20px;
    z-index: 0;
    pointer-events: none;
}

/* 确保卡片内容在遮罩层之上 */
.music-player-card > * {
    position: relative;
    z-index: 1;
}

/* 播放器卡片交互遮罩层（用于加载状态） */
.music-player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.music-player-overlay.show {
    opacity: 1;
    visibility: visible;
}

.music-player-overlay-content {
    text-align: center;
    color: #fff;
}

.music-player-overlay-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.music-player-overlay-text {
    font-size: 18px;
    font-weight: 500;
}

/* 移动端交互遮罩层 */
@media (max-width: 768px) {
    .music-player-overlay {
        border-radius: 16px;
    }
}

/* 歌曲信息 */
    .music-song-info {
        text-align: center;
        margin-bottom: 10px;
    }

.music-song-name {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.music-artist-name {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
}

/* 封面容器 */
.music-cover-wrapper {
    position: relative;
    width: 280px;
    height: 200px;
    margin: 0 auto 25px;
}

/* 唱片（在后面旋转） */
.music-vinyl {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 180px;
    margin-top: -90px;
    margin-left: -45px;
    border-radius: 50%;
    background: 
        /* 高光效果 */
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(0,0,0,0.3) 0%, transparent 40%),
        /* 黑胶纹理 */
        repeating-radial-gradient(circle at center, 
            rgba(0,0,0,0.3) 0px, 
            rgba(0,0,0,0.3) 1px, 
            transparent 1px, 
            transparent 3px
        ),
        /* 封面主色调 - 覆盖整个唱片 */
        linear-gradient(135deg, var(--cover-color, #555) 0%, var(--cover-color-dark, #333) 100%);
    box-shadow: 
        0 4px 20px rgba(0,0,0,0.5),
        inset 0 0 30px rgba(0,0,0,0.2);
    animation: vinylRotate 8s linear infinite;
    animation-play-state: paused;
    z-index: 1;
    overflow: hidden;
}

/* 唱片中间封面区域 */
.music-vinyl::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    margin-top: -60px;
    margin-left: -60px;
    border-radius: 50%;
    background-image: var(--cover-image, url('/assets/image/avatar.jpg'));
    background-size: cover;
    background-position: center;
    box-shadow: 
        0 2px 10px rgba(0,0,0,0.4),
        inset 0 0 20px rgba(0,0,0,0.2);
}

/* 唱片中心孔 - 透明圆点 */
.music-vinyl::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: inset 0 0 5px rgba(0,0,0,0.3);
    z-index: 3;
}

/* 封面图（在前面，左圆角右直角） */
.music-cover {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 180px;
    margin-top: -90px;
    margin-left: -105px;
    border-radius: 12px 0 0 12px;
    object-fit: cover;
    box-shadow:
        0 10px 40px rgba(0,0,0,0.3),
        0 2px 8px rgba(0,0,0,0.2);
    z-index: 2;
    opacity: 1;
}

/* 百叶窗容器 */
.music-cover-blinds {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 180px;
    margin-top: -90px;
    margin-left: -105px;
    z-index: 3;
    pointer-events: none;
    border-radius: 12px 0 0 12px;
    overflow: hidden;
}

/* 扇叶条 */
.music-blind {
    position: absolute;
    top: 0;
    height: 100%;
    overflow: hidden;
    transform-origin: left center;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 1.2s ease;
    backface-visibility: hidden;
    will-change: transform;
    box-shadow: 
        inset -2px 0 5px rgba(0,0,0,0.3),
        2px 0 8px rgba(0,0,0,0.4);
}

/* 扇叶内的图片 */
.music-blind img {
    position: absolute;
    top: 0;
    left: 0;
    width: 180px;
    height: 180px;
    object-fit: cover;
}

/* 扇叶之间的分隔线 */
.music-blind::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(255,255,255,0.3) 20%, 
        rgba(255,255,255,0.3) 80%, 
        transparent 100%);
    box-shadow: 1px 0 2px rgba(0,0,0,0.5);
    z-index: 2;
}

/* 扇叶翻转状态 */
.music-blind.flipping {
    transform: perspective(1000px) rotateY(-85deg) translateZ(20px);
    box-shadow: 
        inset -5px 0 15px rgba(0,0,0,0.5),
        10px 5px 20px rgba(0,0,0,0.6);
}

/* 播放时旋转 */
.music-cover-wrapper.playing .music-vinyl {
    animation-play-state: running;
}

/* 播放时封面容器居中 */
.music-cover-wrapper.playing {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

@keyframes vinylRotate {
    from { transform: rotate(0deg) translateZ(0); }
    to { transform: rotate(360deg) translateZ(0); }
}

/* 歌词 - 支持滚动 */
.music-lyrics-box {
    height: 200px;
    overflow: hidden;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.lyrics-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transition: transform 0.5s ease-out;
    will-change: transform;
}

.lyrics-line {
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    padding: 8px 0;
    line-height: 1.6;
    transition: all 0.3s ease;
    opacity: 0.6;
    margin: 0;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lyrics-line.prev {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    opacity: 0.6;
    transform: scale(0.9);
}

.lyrics-line.current {
    font-size: 20px;
    font-weight: 600;
    opacity: 1;
    color: rgba(255,255,255,0.4);
}

/* 逐字歌词样式 */
.lyrics-word {
    display: inline-block;
    position: relative;
    vertical-align: baseline;
    transition: transform 0.15s ease-out;
}

/* 底层 - 未播放的灰色 */
.lyrics-word .word-base {
    color: rgba(255,255,255,0.4);
    visibility: visible;
    display: inline-block;
}

/* 上层 - 填充层，用于显示播放进度（高对比度渐变） */
.lyrics-word .word-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    overflow: hidden;
    white-space: nowrap;
    width: 0%;
    transition: none;
    pointer-events: none;
    display: inline-block;
    /* 高对比度渐变：白色 → 亮黄 → 橙色 */
    background: linear-gradient(90deg, 
        #ffffff 0%, 
        #fff700 40%, 
        #ff8800 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

/* 发光扫光动画 */
@keyframes shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

/* 逐字播放时的扫光效果 - 更醒目的白色+金色 */
.lyrics-word.playing .word-fill {
    background: linear-gradient(90deg, 
        #ffffff 0%, 
        #fff700 20%, 
        #ffffff 40%, 
        #ffd700 60%, 
        #ffffff 80%, 
        #fff700 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 0.8s linear infinite;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 1),
        0 0 20px rgba(255, 247, 0, 0.9),
        0 0 40px rgba(255, 136, 0, 0.7);
}

/* 当前播放的字 - 放大+白色强光 */
.lyrics-word.active {
    transform: scale(1.15);
    z-index: 10;
}

.lyrics-word.active .word-fill {
    text-shadow: 
        0 0 10px #ffffff,
        0 0 20px #ffffff,
        0 0 40px #fff700,
        0 0 60px #ff8800;
    filter: brightness(1.4) drop-shadow(0 0 10px rgba(255,255,255,0.8));
}

/* 弹跳动画 */
@keyframes bounce {
    0%, 100% { transform: scale(1.15) translateY(0); }
    50% { transform: scale(1.22) translateY(-4px); }
}

.lyrics-word.active-bounce {
    animation: bounce 0.4s ease-in-out infinite;
}

/* 已完成播放的字（白色+淡金） */
.lyrics-word.played .word-base {
    background: linear-gradient(90deg, #ffffff 0%, #fffacd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lyrics-word.played .word-fill {
    width: 100% !important;
    background: linear-gradient(90deg, #ffffff 0%, #fff700 50%, #ffcc00 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* 已完成字的发光效果 - 柔和白光 */
.lyrics-word.played {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.lyrics-line.next {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    opacity: 0.6;
}

.lyrics-placeholder {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    padding: 40px 0;
}

/* 音频频谱 */
.music-visualizer {
    height: 60px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3px;
    padding: 0 5px;
    width: 100%;
}

.visualizer-bar {
    flex: 1;
    background: linear-gradient(to top, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 4px 4px 0 0;
    transition: height 0.04s ease-out;
    min-height: 4px;
    max-height: 100%;
    min-width: 4px;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.4);
    position: relative;
}

.visualizer-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 25%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    border-radius: 4px 4px 0 0;
}

/* 频谱条动画 */
@keyframes barGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

/* 频谱条滑块基础样式 - 横着的长方形条状 */
.visualizer-knob {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 3px;
    background: linear-gradient(90deg, #fff 0%, #e0e0e0 100%);
    border-radius: 2px;
    box-shadow: 
        0 0 10px rgba(255,255,255,0.9), 
        0 0 20px rgba(102,126,234,0.7),
        0 2px 4px rgba(0,0,0,0.3);
    pointer-events: none;
    z-index: 10;
    transition: none;
}

/* PC端频谱加高 */
@media (min-width: 769px) {
    .music-visualizer {
        height: 100px;
        gap: 4px;
    }
    
    .visualizer-bar {
        border-radius: 6px 6px 0 0;
        box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
    }
    
    .visualizer-bar::after {
        border-radius: 6px 6px 0 0;
    }
}

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

.music-time {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    min-width: 40px;
    text-align: center;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.progress-track {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: visible;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

/* 拖动时的进度条样式 */
.progress-track.dragging {
    height: 10px;
    margin-top: -2px;
    margin-bottom: -2px;
}

.progress-track.dragging .progress-fill {
    border-radius: 5px;
}

.progress-buffer {
    height: 100%;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        #ffffff 0%, 
        #fff700 30%, 
        #ffaa00 70%, 
        #ff6600 100%
    );
    border-radius: 3px;
    width: 0%;
    transition: width 0.05s linear;
    position: relative;
    overflow: visible;
    z-index: 1;
}

/* 播放时的发光效果 - 与歌词风格一致 */
.progress-fill.playing {
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8), 
        0 0 20px rgba(255, 247, 0, 0.6),
        0 0 30px rgba(255, 170, 0, 0.4);
}

/* 进度条最右边流光指示器 - 播放时显示 */
.progress-fill.playing::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #ffffff 0%, #fff700 40%, transparent 70%);
    border-radius: 50%;
    box-shadow: 
        0 0 10px #ffffff,
        0 0 20px #fff700,
        0 0 30px #ffaa00;
    animation: progressGlow 1s ease-in-out infinite alternate;
}

/* 流光指示器脉冲动画 */
@keyframes progressGlow {
    0% { 
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 10px #ffffff, 0 0 20px #fff700, 0 0 30px #ffaa00;
    }
    100% { 
        transform: translateY(-50%) scale(1.3);
        box-shadow: 0 0 15px #ffffff, 0 0 30px #fff700, 0 0 45px #ffaa00;
    }
}

/* 进度条内部流动光效 */
.progress-fill.playing::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255,255,255,0.4) 20%,
        rgba(255,255,255,0.8) 50%,
        rgba(255,255,255,0.4) 80%,
        transparent 100%
    );
    background-size: 200% 100%;
    border-radius: 3px;
    animation: progressShine 1.5s linear infinite;
}

/* 进度条光效动画 */
@keyframes progressShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes progressPulse {
    0% { 
        left: -100%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    40% {
        left: 100%;
        opacity: 1;
    }
    50%, 100% { 
        left: 100%;
        opacity: 0;
    }
}

/* 进度条移动端样式 - 与PC端保持一致效果 */
@media (max-width: 768px) {
    .music-progress {
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .music-time {
        font-size: 11px;
        min-width: 36px;
    }
    
    .progress-track {
        height: 5px;
    }
    
    .progress-fill {
        border-radius: 3px;
    }
    
    .progress-fill.playing::before {
        width: 10px;
        height: 10px;
        right: -5px;
    }
}

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

.music-controls .btn-ctl img {
    width: 35px;
    height: 35px;
}

@media (min-width: 769px) {
    .music-controls .btn-ctl img {
        width: 40px;
        height: 40px;
    }
}

.btn-ctl {
    width: 45px;
    height: 45px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    padding: 0;
}

.btn-ctl:hover {
    transform: scale(1.1);
}

.btn-ctl.btn-play {
    width: 60px;
    height: 60px;
    background: transparent;
    font-size: 22px;
}

.btn-ctl.btn-play:hover {
    transform: scale(1.05);
}

/* ========== 播放列表侧边栏 - 二次元风格 ========== */
.playlist-panel {
    position: fixed;
    top: 60px;
    right: 0;
    bottom: 0;
    width: 380px;
    background: linear-gradient(180deg, 
        rgba(255, 182, 193, 0.15) 0%, 
        rgba(147, 112, 219, 0.2) 50%,
        rgba(138, 43, 226, 0.15) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 100001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 
        -8px 0 40px rgba(255, 105, 180, 0.3),
        inset 0 0 60px rgba(255, 182, 193, 0.1);
    border-left: 2px solid rgba(255, 182, 193, 0.3);
    border-radius: 20px 0 0 20px;
}

.playlist-panel.show {
    transform: translateX(0);
}

/* 简洁头部 */
.playlist-header-simple {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 182, 193, 0.2);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10001;
}

.playlist-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.btn-close-list {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
    margin-left: 10px;
}

.btn-close-list:hover {
    background: rgba(255,105,180,0.3);
    color: #fff;
}

.playlist-header-right {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: 10px;
}

/* 定位当前歌曲按钮 */
.btn-locate-song {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border: none;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}
.btn-locate-song:hover {
    background: rgba(102,126,234,0.4);
    color: #fff;
}
.btn-locate-song.located {
    animation: locatePulse 0.6s ease-out;
}
@keyframes locatePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(102,126,234,0.6); }
    50% { transform: scale(1.15); box-shadow: 0 0 20px 5px rgba(102,126,234,0.3); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; }
}

/* 简洁搜索框 */
.playlist-search-simple {
    flex: 1;
    max-width: 150px;
}

.playlist-search-simple input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(255,182,193,0.3);
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
}

.playlist-search-simple input:focus {
    border-color: rgba(255,182,193,0.5);
    background: rgba(255,182,193,0.1);
}

.playlist-search-simple input::placeholder {
    color: rgba(255,255,255,0.4);
}

/* 简洁分类下拉 */
.playlist-cats-dropdown {
    position: relative;
    z-index: 10000;
}

.cat-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255,182,193,0.3);
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cat-dropdown-toggle:hover {
    border-color: rgba(255,182,193,0.5);
    background: rgba(255,182,193,0.1);
}

.cat-dropdown-toggle.active {
    background: rgba(255,105,180,0.2);
    border-color: rgba(255,182,193,0.6);
}

.cat-dropdown-text {
    flex: 1;
    text-align: left;
}

.cat-dropdown-arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
    color: rgba(255,182,193,0.8);
}

.cat-dropdown-toggle.active .cat-dropdown-arrow {
    transform: rotate(180deg);
}

/* 简洁下拉菜单 - 无透明背景 */
.cat-dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    min-width: 120px;
    background: #2d1b4e;
    border: 1px solid #ff69b4;
    border-radius: 8px;
    padding: 4px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, transform 0.2s ease, max-height 0.2s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    z-index: 1000;
    pointer-events: none;
}

.cat-dropdown-menu.show {
    max-height: 250px;
    overflow-y: auto;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cat-dropdown-menu::-webkit-scrollbar {
    width: 3px;
}

.cat-dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(255,182,193,0.3);
    border-radius: 2px;
}

.cat-dropdown-item {
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.cat-dropdown-item:hover {
    background: rgba(255,105,180,0.15);
    color: #fff;
}

.cat-dropdown-item.active {
    background: rgba(255,105,180,0.3);
    color: #fff;
}

.cat-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cat-count {
    font-size: 11px;
    color: rgba(255,182,193,0.7);
    background: rgba(255,105,180,0.2);
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* 歌曲列表 - 二次元风格 */
.playlist-songs {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,182,193,0.4) transparent;
    position: relative;
    z-index: 1;
}

.playlist-songs::-webkit-scrollbar {
    width: 6px;
}

.playlist-songs::-webkit-scrollbar-track {
    background: rgba(255,182,193,0.1);
    border-radius: 3px;
}

.playlist-songs::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff69b4 0%, #9370db 100%);
    border-radius: 3px;
}

.playlist-songs::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff1493 0%, #8a2be2 100%);
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.song-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    margin: 8px 0;
    background: rgba(255,255,255,0.05);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.song-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,182,193,0.2), transparent);
    transition: left 0.5s ease;
}

.song-item:hover::before {
    left: 100%;
}

.song-item:hover {
    background: rgba(255,182,193,0.15);
    transform: translateX(5px) scale(1.02);
    border-color: rgba(255,182,193,0.3);
    box-shadow: 
        0 5px 20px rgba(255,105,180,0.2),
        inset 0 0 20px rgba(255,182,193,0.1);
}

.song-item.active {
    background: linear-gradient(135deg, 
        rgba(255, 105, 180, 0.4) 0%, 
        rgba(147, 112, 219, 0.4) 100%);
    border: 2px solid rgba(255,182,193,0.5);
    box-shadow: 
        0 0 20px rgba(255,105,180,0.4),
        inset 0 0 30px rgba(255,182,193,0.1);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255,105,180,0.4), inset 0 0 30px rgba(255,182,193,0.1); }
    50% { box-shadow: 0 0 30px rgba(255,105,180,0.6), inset 0 0 40px rgba(255,182,193,0.2); }
}

.song-item.active .song-num {
    color: #ffb6c1;
    text-shadow: 0 0 10px rgba(255,182,193,0.8);
}

.song-cover-small {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255,182,193,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

/* 懒加载占位图样式 */
.song-cover-small.lazy-cover {
    object-fit: cover;
    background: rgba(255,255,255,0.05);
    opacity: 0.7;
}

.song-item:hover .song-cover-small {
    transform: scale(1.1) rotate(3deg);
    border-color: rgba(255,182,193,0.6);
    box-shadow: 0 6px 20px rgba(255,105,180,0.3);
}

.song-num {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,182,193,0.6);
    font-size: 14px;
    flex-shrink: 0;
    font-weight: 600;
    background: rgba(255,182,193,0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.song-item:hover .song-num {
    background: rgba(255,182,193,0.2);
    color: #ffb6c1;
}

.song-detail {
    flex: 1;
    overflow: hidden;
}

.song-title {
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.song-item:hover .song-title {
    color: #ffb6c1;
}

.song-singer {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

.song-item:hover .song-singer {
    color: rgba(255,182,193,0.9);
}

.song-length {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.loading, .empty {
    text-align: center;
    padding: 40px;
    color: rgba(255,182,193,0.8);
    font-size: 14px;
}

.loading::before {
    content: '🎵 ';
    font-size: 24px;
    animation: bounce 1s infinite;
    display: block;
    margin-bottom: 10px;
}

.empty::before {
    content: '🌸 ';
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

/* 骨架屏加载 - 静态样式 */
.skeleton-loading {
    padding: 15px;
}

.skeleton-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    margin: 8px 0;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
}

.skeleton-cover {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255,182,193,0.15);
}

.skeleton-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-title {
    height: 14px;
    width: 60%;
    border-radius: 7px;
    background: rgba(255,182,193,0.15);
}

.skeleton-artist {
    height: 12px;
    width: 40%;
    border-radius: 6px;
    background: rgba(147,112,219,0.15);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* 遮罩 */
.music-overlay {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.music-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
    .music-card {
        min-height: 100vh;
    }
    
    .music-content-area {
        padding: 40px 15px 20px;
    }
    
    .music-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .music-player-card {
        background: rgba(255,255,255,0.1);
        padding: 20px;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.3);
        /* 与PC端一致的磨砂效果 */
        backdrop-filter: blur(100px);
        -webkit-backdrop-filter: blur(100px);
        border: 1px solid rgba(255,255,255,0.15);
        overflow: hidden;
    }
    
    /* 移动端播放器卡片遮罩层 */
    .music-player-card::before {
        border-radius: 16px;
    }
    
    .music-song-name {
        font-size: 18px;
    }
    
    .music-artist-name {
        font-size: 14px;
    }
    
    .music-cover-wrapper {
        width: 160px;
        height: 120px;
        margin: 0 auto 10px;
        /* 移动端优化：GPU加速 */
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
    .music-cover-wrapper.playing {
        width: 160px;
        height: 120px;
        margin: 0 auto 10px;
    }
    
    .music-vinyl {
        width: 95px;
        height: 95px;
        margin-top: -47.5px;
        margin-left: -23.75px;
        /* 与PC端一致的黑胶纹理 */
        background: 
            /* 高光效果 */
            radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15) 0%, transparent 40%),
            radial-gradient(circle at 70% 70%, rgba(0,0,0,0.3) 0%, transparent 40%),
            /* 黑胶纹理 */
            repeating-radial-gradient(circle at center, 
                rgba(0,0,0,0.3) 0px, 
                rgba(0,0,0,0.3) 1px, 
                transparent 1px, 
                transparent 3px
            ),
            /* 封面主色调 - 覆盖整个唱片 */
            linear-gradient(135deg, var(--cover-color, #555) 0%, var(--cover-color-dark, #333) 100%);
        /* 移动端优化：GPU加速旋转 */
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        will-change: transform;
    }
    
    .music-vinyl::before {
        width: 76px;
        height: 76px;
        margin-top: -38px;
        margin-left: -38px;
    }
    
    .music-vinyl::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 12px;
        height: 12px;
        margin-top: -6px;
        margin-left: -6px;
        border-radius: 50%;
        background: transparent;
        border: 1px solid rgba(255,255,255,0.3);
        box-shadow: inset 0 0 3px rgba(0,0,0,0.3);
        z-index: 3;
    }
    
    .music-cover {
        width: 100px;
        height: 100px;
        margin-top: -50px;
        margin-left: -60px;
        border-radius: 12px 0 0 12px;
        /* 移动端优化：GPU加速 */
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
    /* 移动端百叶窗容器 */
    .music-cover-blinds {
        width: 100px;
        height: 100px;
        margin-top: -50px;
        margin-left: -60px;
    }
    
    /* 移动端扇叶 */
    .music-blind {
        box-shadow: 
            inset -1px 0 3px rgba(0,0,0,0.3),
            1px 0 5px rgba(0,0,0,0.4);
    }
    
    .music-blind img {
        width: 100px;
        height: 100px;
    }
    
    .music-blind.flipping {
        transform: perspective(800px) rotateY(-85deg) translateZ(10px);
        box-shadow: 
            inset -3px 0 10px rgba(0,0,0,0.5),
            5px 3px 12px rgba(0,0,0,0.6);
    }
    
    .music-lyrics-box {
        height: 180px;
        /* 移动端优化：GPU加速 */
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
    .lyrics-content {
        /* 移动端优化：使用transform代替top定位 */
        will-change: transform;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
.lyrics-line {
    min-height: 24px;
    padding: 6px 0;
    line-height: 1.5;
    /* 移动端优化：移除过渡 */
    transition: none;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}
    
    .lyrics-line.current {
        font-size: 16px;
        color: #fff;
    }
    
    .lyrics-line.prev,
    .lyrics-line.next {
        font-size: 12px;
        color: rgba(255,255,255,0.3);
    }
    
    .lyrics-word {
        font-size: inherit;
        line-height: inherit;
        display: inline-block;
        position: relative;
        transition: transform 0.15s ease-out;
    }
    
    .lyrics-word .word-base {
        display: inline-block;
        color: rgba(255,255,255,0.4);
    }
    
    .lyrics-word .word-fill {
        display: inline-block;
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        overflow: hidden;
        white-space: nowrap;
        width: 0%;
        /* 高对比度渐变：白色 → 亮黄 → 橙色 */
        background: linear-gradient(90deg, #ffffff 0%, #fff700 40%, #ff8800 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
        /* 移动端简化过渡 */
        transition: none;
        pointer-events: none;
        will-change: width;
    }
    
    /* 移动端频谱优化 - 二次元风格 */
    .music-visualizer {
        height: 50px;
        gap: 3px;
        /* 移动端优化：GPU加速 */
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        padding: 0 8px;
    }
    
    .visualizer-bar {
        /* 二次元粉紫渐变 */
        background: linear-gradient(to top, 
            #ff69b4 0%, 
            #ff8dc7 30%,
            #da70d6 60%,
            #9370db 100%);
        box-shadow: 
            0 0 8px rgba(255, 105, 180, 0.5),
            inset 0 0 3px rgba(255, 255, 255, 0.3);
        border-radius: 3px 3px 0 0;
        position: relative;
        min-width: 6px;
    }
    
    .visualizer-bar::after {
        display: none;
    }
    
    .btn-ctl {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .btn-ctl.btn-play {
        width: 55px;
        height: 55px;
        font-size: 18px;
    }
    
    /* 移动端列表改为弹窗 - 极简风格 */
    .playlist-panel {
        top: 10%;
        left: 5%;
        right: 5%;
        bottom: 10%;
        transform: none;
        width: auto;
        max-width: none;
        height: auto;
        max-height: 80vh;
        border-radius: 16px;
        background: #1a1025;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(255, 105, 180, 0.2);
        display: none;
    }
    
    .playlist-panel.show {
        display: flex;
        transform: none;
    }
    
    /* 移动端简洁头部 - 纯色背景 */
    .playlist-header-simple {
        padding: 10px 12px;
        background: rgba(45, 27, 78, 0.95);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    
    .playlist-header-left {
        gap: 8px;
    }
    
    .cat-dropdown-toggle {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .playlist-search-simple {
        max-width: none;
        flex: 1;
    }
    
    .playlist-search-simple input {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .btn-close-list {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .cat-dropdown-menu {
        min-width: 100px;
    }
    
    .cat-dropdown-item {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* 移动端歌曲项调整 - 移除动画效果 */
    .song-item {
        padding: 10px 12px;
        margin: 4px 0;
        transition: none;
        border-radius: 12px;
    }
    
    .song-item:hover,
    .song-item:active {
        transform: none;
        background: rgba(255, 105, 180, 0.1);
    }
    
    .song-cover-small {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }
    
    .song-num {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }
}

/* Toast动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateX(-50%) translateY(0); }
    to { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

/* ========== 音乐缓存提示 ========== */
.music-loading-tip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    font-size: 14px;
    z-index: 100002;
    display: none;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.music-loading-tip.show {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.music-loading-tip .loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 移动端缓存提示适配 */
@media (max-width: 768px) {
    .music-loading-tip {
        padding: 16px 24px;
        font-size: 13px;
        max-width: 80%;
        white-space: normal;
        text-align: center;
        flex-direction: column;
        gap: 8px;
    }
}

/* 点击恢复播放覆盖层 */
.click-resume-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100002;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.click-resume-overlay.show {
    display: flex;
}

.click-resume-content {
    text-align: center;
    color: #fff;
    animation: pulse 1.5s infinite;
}

.click-resume-icon {
    font-size: 60px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.click-resume-text {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
}

.click-resume-subtext {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}
