/* 🎵 Idoki Music - 超级美化版本 CSS */
/* 保持紫色渐变主题，全面提升视觉体验，完美匹配HTML结构 */

:root {
    /* 保持原有主题色彩 */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    
    /* 新增高级配色系统 */
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --dark-glass: rgba(0, 0, 0, 0.15);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.95);
    --text-muted: rgba(255, 255, 255, 0.85);
    
    /* 高级阴影系统 */
    --shadow-soft: 0 6px 24px rgba(0, 0, 0, 0.12);
    --shadow-medium: 0 12px 32px rgba(0, 0, 0, 0.18);
    --shadow-strong: 0 20px 48px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.4);
    --shadow-glow-strong: 0 0 60px rgba(102, 126, 234, 0.6);
    
    /* 流畅动画系统 */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* 全局重置与基础美化 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: var(--primary-gradient);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    
    /* 高级纹理背景 */
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(120, 119, 198, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 75% 75%, rgba(255, 119, 198, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(120, 200, 255, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            rgba(255, 255, 255, 0.005) 1px,
            transparent 2px
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            rgba(255, 255, 255, 0.005) 1px,
            transparent 2px
        );
    pointer-events: none;
    z-index: -1;
}

/* 主容器美化 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    position: relative;
}

/* 顶部标题区域美化 */
header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 1s ease-out;
}

header h1 {
    font-size: 4.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #ffffff, #f0f0ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
    letter-spacing: -0.02em;
    position: relative;
}

header h1 i {
    margin-right: 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

/* 主播放器区域 - 超级毛玻璃效果 */
.player-main {
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(1.5);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 50px 40px;
    box-shadow: 
        var(--shadow-strong),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-slow);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.player-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 25%, 
        rgba(255, 255, 255, 0.6) 50%, 
        rgba(255, 255, 255, 0.4) 75%, 
        transparent 100%);
}

.player-main::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        transparent 25%, 
        transparent 75%, 
        rgba(255, 255, 255, 0.08) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.player-main:hover {
    transform: translateY(-5px) scale(1.005);
    box-shadow: 
        var(--shadow-strong), 
        var(--shadow-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.player-main:hover::after {
    opacity: 1;
}

/* 播放器内容区域 */
.player-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

/* 专辑封面区域 - 3D旋转效果 */
.album-cover {
    flex-shrink: 0;
    perspective: 1500px;
    animation: slideInLeft 0.8s ease-out 0.5s both;
}

#albumArt {
    width: 280px;
    height: 280px;
    border-radius: 24px;
    object-fit: cover;
    transition: all var(--transition-smooth);
    transform-style: preserve-3d;
    position: relative;
    cursor: pointer;
    
    /* 多层阴影效果 */
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 8px rgba(102, 126, 234, 0.1),
        0 0 40px rgba(102, 126, 234, 0.2);
}

#albumArt::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: var(--primary-gradient);
    border-radius: 32px;
    z-index: -1;
    opacity: 0;
    transition: all var(--transition-smooth);
    filter: blur(20px);
}

#albumArt:hover {
    transform: rotateY(8deg) rotateX(8deg) scale(1.05);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.2),
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 0 12px rgba(102, 126, 234, 0.15),
        0 0 80px rgba(102, 126, 234, 0.4);
}

#albumArt:hover::before {
    opacity: 0.6;
}

/* 播放器信息区域 */
.player-info {
    flex: 1;
    min-width: 300px;
    text-align: center;
    animation: slideInRight 0.8s ease-out 0.7s both;
}

.song-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #ffffff 0%, #f0f0ff 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
    letter-spacing: -0.01em;
    word-break: break-word;
}

.song-artist {
    font-size: 1.4rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 20px;
    opacity: 0.9;
}

.song-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.song-meta span {
    background: var(--dark-glass);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
}

.song-meta span:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    transform: translateY(-2px);
}

/* 可视化效果美化 */
.visualizer {
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 4px;
    height: 60px;
    margin-bottom: 30px;
    opacity: 0.7;
}

.visualizer .bar {
    width: 4px;
    min-height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
    animation: visualizer 1s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.3);
}

.visualizer .bar:nth-child(1) { animation-delay: -0.4s; }
.visualizer .bar:nth-child(2) { animation-delay: -0.2s; }
.visualizer .bar:nth-child(3) { animation-delay: 0s; }
.visualizer .bar:nth-child(4) { animation-delay: -0.6s; }
.visualizer .bar:nth-child(5) { animation-delay: -0.8s; }

@keyframes visualizer {
    0%, 100% { height: 4px; }
    50% { height: 60px; }
}

/* 进度控制区域美化 */
.progress-section {
    margin-bottom: 35px;
    animation: fadeIn 0.8s ease-out 0.9s both;
}

.progress-container {
    width: 100%;
    height: 12px;
    background: var(--dark-glass);
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 
        inset 0 2px 8px rgba(0, 0, 0, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
}

.progress-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        transparent 100%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.progress-container:hover {
    height: 16px;
    box-shadow: 
        inset 0 2px 12px rgba(0, 0, 0, 0.25),
        0 2px 8px rgba(102, 126, 234, 0.2);
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 20px;
    transition: width var(--transition-fast);
    position: relative;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
    overflow: hidden;
}

.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        rgba(255, 255, 255, 0.2) 100%);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 
        0 2px 12px rgba(0, 0, 0, 0.3),
        0 0 8px rgba(102, 126, 234, 0.5);
    opacity: 0;
    transition: all var(--transition-fast);
}

.progress-container:hover .progress-fill::after {
    opacity: 1;
    right: -12px;
    width: 28px;
    height: 28px;
}

.progress-buffer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: width var(--transition-fast);
}

.time-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
    font-feature-settings: 'tnum' 1;
}

/* 播放控制按钮区域 - 超级美化 */
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease-out 1.1s both;
}

.control-btn {
    border: none;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    
    /* 基础阴影 */
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.control-btn:hover::before {
    opacity: 1;
}

.control-btn:active {
    transform: scale(0.95);
}

/* 小按钮样式 */
.control-btn.small {
    width: 65px;
    height: 65px;
    font-size: 20px;
}

.control-btn.small:hover {
    transform: translateY(-4px) scale(1.08);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 大按钮（主播放按钮）样式 */
.control-btn.large {
    width: 85px;
    height: 85px;
    font-size: 32px;
    background: var(--primary-gradient);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(102, 126, 234, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    position: relative;
}

.control-btn.large::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: rotate 3s linear infinite;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.control-btn.large:hover::after {
    opacity: 1;
}

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

.control-btn.large:hover {
    transform: translateY(-6px) scale(1.12);
    box-shadow: 
        0 20px 48px rgba(0, 0, 0, 0.25),
        0 0 50px rgba(102, 126, 234, 0.7),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

/* 激活状态按钮 */
.control-btn.active {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(102, 126, 234, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 音量控制区域美化 */
.volume-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding: 25px 30px;
    background: var(--glass-bg);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(30px);
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-smooth);
    animation: fadeIn 0.8s ease-out 1.3s both;
}

.volume-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: rgba(255, 255, 255, 0.2);
}

.volume-icon {
    font-size: 22px;
    color: var(--text-secondary);
    min-width: 28px;
    transition: all var(--transition-fast);
}

.volume-icon:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

#volumeSlider {
    flex: 1;
    height: 8px;
    border-radius: 10px;
    background: var(--dark-glass);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
}

#volumeSlider::-webkit-slider-track {
    height: 8px;
    border-radius: 10px;
    background: var(--dark-glass);
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-gradient);
    cursor: pointer;
    box-shadow: 
        0 2px 12px rgba(0, 0, 0, 0.3),
        0 0 8px rgba(102, 126, 234, 0.4);
    transition: all var(--transition-fast);
    position: relative;
}

#volumeSlider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 16px rgba(102, 126, 234, 0.6);
}

#volumeValue {
    min-width: 50px;
    text-align: right;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-secondary);
    font-feature-settings: 'tnum' 1;
}

/* 播放列表容器美化 */
.playlist-section {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    margin-top: 40px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-smooth);
    animation: fadeInUp 0.8s ease-out 1.5s both;
}

.playlist-section:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.playlist-header {
    padding: 30px 35px 25px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.08) 100%);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
}

.playlist-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 35px;
    right: 35px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
}

.playlist-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

#songCount {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
}

/* 播放列表美化 */
#songList {
    max-height: 450px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    padding: 0;
}

#songList::-webkit-scrollbar {
    width: 12px;
}

#songList::-webkit-scrollbar-track {
    background: transparent;
}

#songList::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    border: 3px solid transparent;
    background-clip: content-box;
    transition: all var(--transition-fast);
}

#songList::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
    background-clip: content-box;
}

/* 歌曲条目超级美化 */
.song-item {
    display: flex;
    align-items: center;
    padding: 20px 35px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
    animation: slideInFromLeft 0.5s ease-out;
}

.song-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--primary-gradient);
    transform: scaleY(0);
    transition: transform var(--transition-smooth);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
}

.song-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.song-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(12px);
    padding-left: 47px;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.song-item:hover::before {
    transform: scaleY(1);
}

.song-item:hover::after {
    opacity: 1;
}

.song-item.active {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(8px);
    box-shadow: 
        inset 0 0 20px rgba(102, 126, 234, 0.2),
        0 4px 20px rgba(102, 126, 234, 0.2);
}

.song-item.active::before {
    transform: scaleY(1);
}

.song-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.song-info .song-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.song-info .song-artist {
    font-size: 0.95rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.song-duration {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-left: 20px;
    min-width: 50px;
    text-align: right;
    font-feature-settings: 'tnum' 1;
    position: relative;
    z-index: 1;
}

/* 通知系统超级美化 */
.notification {
    position: fixed;
    top: 30px;
    right: 30px;
    min-width: 320px;
    max-width: 450px;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(30px) saturate(1.5);
    color: white;
    padding: 20px 25px;
    border-radius: 16px;
    font-weight: 600;
    z-index: 10000;
    transform: translateX(500px);
    transition: all var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        var(--shadow-strong),
        0 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: hidden;
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    animation: notificationProgress 3s linear;
}

@keyframes notificationProgress {
    from { width: 100%; }
    to { width: 0%; }
}

.notification.show {
    transform: translateX(0);
    animation: notificationBounce 0.6s ease-out;
}

@keyframes notificationBounce {
    0% { transform: translateX(500px); }
    60% { transform: translateX(-20px); }
    100% { transform: translateX(0); }
}

.notification.success {
    background: rgba(76, 175, 80, 0.95);
    border-color: rgba(129, 199, 132, 0.4);
}

.notification.error {
    background: rgba(244, 67, 54, 0.95);
    border-color: rgba(239, 154, 154, 0.4);
}

.notification.warning {
    background: rgba(255, 152, 0, 0.95);
    border-color: rgba(255, 183, 77, 0.4);
}

.notification.info {
    background: rgba(33, 150, 243, 0.95);
    border-color: rgba(100, 181, 246, 0.4);
}

/* 加载指示器美化 */
.loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(30px);
    color: white;
    padding: 40px 50px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    z-index: 10000;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-strong);
    animation: loadingPulse 2s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.02); }
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 进入动画定义 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 响应式设计 - 超级优化 */

/* 🔧 移动端和平板版改进补丁 */

/* 修复潜在的横向滚动问题 */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* 改进的平板版样式 (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 30px 20px;
        max-width: 100%;
    }

    .player-main {
        padding: 45px 35px;
        border-radius: 32px;
        max-width: 100%;
    }

    .player-content {
        gap: 35px;
        max-width: 100%;
    }

    #albumArt {
        width: 280px;
        height: 280px;
        flex-shrink: 0;
    }

    .song-title {
        font-size: 3rem;
        line-height: 1.2;
    }

    .song-artist {
        font-size: 1.3rem;
    }

    .controls {
        gap: 25px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .control-btn.small {
        width: 65px;
        height: 65px;
        font-size: 20px;
        min-height: 44px; /* Apple最小触控建议 */
        min-width: 44px;
    }

    .control-btn.large {
        width: 80px;
        height: 80px;
        font-size: 30px;
    }

    .volume-section {
        padding: 25px 30px;
        max-width: 100%;
    }

    .playlist-section {
        max-width: 100%;
        overflow-x: hidden;
    }

    .song-item {
        padding: 20px 30px;
        word-break: break-word;
    }

    .song-item .song-title {
        font-size: 1.1rem;
    }

    .song-item .song-artist {
        font-size: 0.9rem;
    }
}

/* 改进的手机版样式 (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 25px 15px;
        max-width: 100vw;
    }

    header h1 {
        font-size: 3.5rem;
        text-align: center;
        word-break: break-word;
    }

    .subtitle {
        font-size: 1.1rem;
        text-align: center;
    }

    .player-main {
        padding: 40px 30px;
        border-radius: 28px;
        max-width: 100%;
    }

    .player-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        max-width: 100%;
    }

    #albumArt {
        width: 260px;
        height: 260px;
        margin: 0 auto;
        flex-shrink: 0;
    }

    .song-title {
        font-size: 2.2rem;
        line-height: 1.3;
        word-break: break-word;
        hyphens: auto;
    }

    .song-artist {
        font-size: 1.2rem;
        word-break: break-word;
    }

    .controls {
        gap: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .control-btn.small {
        width: 60px;
        height: 60px;
        font-size: 18px;
        min-height: 44px;
        min-width: 44px;
    }

    .control-btn.large {
        width: 75px;
        height: 75px;
        font-size: 28px;
    }

    .volume-section {
        padding: 22px 25px;
        max-width: 100%;
    }

    .playlist-header {
        padding: 25px 30px 20px;
        text-align: center;
    }

    .playlist-header h3 {
        font-size: 1.8rem;
    }

    .song-item {
        padding: 18px 25px;
        word-break: break-word;
    }

    .song-item:hover {
        transform: translateX(5px);
        padding-left: 30px;
    }
}

/* 改进的小屏手机版样式 (≤480px) */
@media (max-width: 480px) {
    .container {
        padding: 20px 12px;
        max-width: 100vw;
        margin: 0;
    }

    header {
        text-align: center;
        margin-bottom: 25px;
    }

    header h1 {
        font-size: 2.8rem;
        line-height: 1.2;
        word-break: break-word;
        hyphens: auto;
    }

    .subtitle {
        font-size: 1rem;
        margin-top: 8px;
    }

    .player-main {
        padding: 25px 18px;
        border-radius: 24px;
        max-width: 100%;
        margin: 0 0 25px 0;
    }

    .player-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        max-width: 100%;
    }

    #albumArt {
        width: 220px;
        height: 220px;
        border-radius: 24px;
        margin: 0 auto;
        flex-shrink: 0;
    }

    .song-info {
        max-width: 100%;
        overflow: hidden;
    }

    .song-title {
        font-size: 1.6rem;
        line-height: 1.3;
        word-break: break-word;
        hyphens: auto;
        margin-bottom: 8px;
    }

    .song-artist {
        font-size: 1rem;
        word-break: break-word;
        opacity: 0.9;
    }

    .controls {
        gap: 12px;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 20px;
    }

    .control-btn.small {
        width: 52px;
        height: 52px;
        font-size: 16px;
        min-height: 44px;
        min-width: 44px;
    }

    .control-btn.large {
        width: 68px;
        height: 68px;
        font-size: 26px;
    }

    /* 音量控制优化 */
    .volume-section {
        padding: 18px 20px;
        border-radius: 20px;
        max-width: 100%;
    }

    .volume-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .volume-slider {
        width: 100%;
        margin: 8px 0;
    }

    /* 播放列表优化 */
    .playlist-section {
        border-radius: 24px;
        max-width: 100%;
        overflow: hidden;
    }

    .playlist-header {
        padding: 20px 20px 15px;
        text-align: center;
    }

    .playlist-header h3 {
        font-size: 1.6rem;
        word-break: break-word;
    }

    .playlist {
        max-height: 300px; /* 限制高度，避免过长 */
        overflow-y: auto;
    }

    .song-item {
        padding: 15px 18px;
        word-break: break-word;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .song-item .song-info {
        flex: 1;
        min-width: 0; /* 允许flex收缩 */
    }

    .song-item .song-title {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 4px;
    }

    .song-item .song-artist {
        font-size: 0.85rem;
        opacity: 0.8;
    }

    .song-item:hover,
    .song-item.playing {
        transform: translateX(6px);
        padding-left: 24px;
    }

    /* 通知优化 */
    .notification {
        right: 12px;
        left: 12px;
        max-width: none;
        border-radius: 12px;
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    /* 触控优化 */
    .song-item,
    .control-btn,
    .volume-slider {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    /* 防止文本选择（移动端） */
    .song-title,
    .song-artist,
    .control-btn {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
}

/* 极小屏幕优化 (≤360px) */
@media (max-width: 360px) {
    .container {
        padding: 15px 8px;
    }

    header h1 {
        font-size: 2.4rem;
    }

    .player-main {
        padding: 20px 15px;
    }

    #albumArt {
        width: 180px;
        height: 180px;
    }

    .song-title {
        font-size: 1.4rem;
    }

    .control-btn.small {
        width: 48px;
        height: 48px;
        font-size: 14px;
    }

    .control-btn.large {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }
}

/* 横屏模式优化 */
@media (orientation: landscape) and (max-height: 600px) {
    .container {
        padding: 15px;
    }

    .player-main {
        padding: 20px 25px;
    }

    .player-content {
        flex-direction: row !important;
        gap: 25px;
    }

    #albumArt {
        width: 160px;
        height: 160px;
        flex-shrink: 0;
    }

    .song-title {
        font-size: 1.4rem;
    }

    .controls {
        gap: 15px;
    }
    
    .playlist {
        max-height: 200px;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .player-main,
    .volume-section,
    .playlist-section {
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .control-btn {
        border: 1px solid rgba(255, 255, 255, 0.5);
    }

    .song-title,
    .song-artist {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
}

/* 减少动画（用户偏好） */
@media (prefers-reduced-motion: reduce) {
    .song-item:hover {
        transform: none;
        padding-left: inherit;
    }

    .control-btn:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    :root {
        --glass-bg: rgba(255, 255, 255, 0.25);
        --glass-border: rgba(255, 255, 255, 0.4);
        --text-primary: #ffffff;
        --text-secondary: #f0f0f0;
    }
}

/* 深色模式优化 */
@media (prefers-color-scheme: dark) {
    :root {
        --glass-bg: rgba(0, 0, 0, 0.3);
        --glass-border: rgba(255, 255, 255, 0.15);
        --dark-glass: rgba(255, 255, 255, 0.15);
    }
}

/* 打印样式 */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    .player-main {
        background: none !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-smooth);
    animation: fadeInUp 0.8s ease-out 1.5s both;
}

.playlist-section:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.playlist-header {
    padding: 30px 35px 25px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.08) 100%);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
}

.playlist-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 35px;
    right: 35px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
}

.playlist-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.playlist-title i {
    color: var(--primary-color);
}

.playlist-count {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
}

/* 播放列表美化 */
.song-list {
    max-height: 450px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    padding: 0;
}

.song-list::-webkit-scrollbar {
    width: 12px;
}

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

.song-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    border: 3px solid transparent;
    background-clip: content-box;
    transition: all var(--transition-fast);
}

.song-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
    background-clip: content-box;
}

/* 歌曲条目超级美化 */
.song-item {
    display: flex;
    align-items: center;
    padding: 20px 35px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
    animation: slideInFromLeft 0.5s ease-out;
}

.song-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--primary-gradient);
    transform: scaleY(0);
    transition: transform var(--transition-smooth);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
}

.song-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.song-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(12px);
    padding-left: 47px;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.song-item:hover::before {
    transform: scaleY(1);
}

.song-item:hover::after {
    opacity: 1;
}

.song-item.active {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(8px);
    box-shadow: 
        inset 0 0 20px rgba(102, 126, 234, 0.2),
        0 4px 20px rgba(102, 126, 234, 0.2);
}

.song-item.active::before {
    transform: scaleY(1);
}

.song-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.song-info .song-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.song-info .song-artist {
    font-size: 0.95rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.song-duration {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-left: 20px;
    min-width: 50px;
    text-align: right;
    font-feature-settings: 'tnum' 1;
    position: relative;
    z-index: 1;
}

/* 加载容器美化 */
.loading-container {
    padding: 60px 40px;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.loading {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* 通知系统超级美化 */
.notification {
    position: fixed;
    top: 30px;
    right: 30px;
    min-width: 320px;
    max-width: 450px;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(30px) saturate(1.5);
    color: white;
    padding: 20px 25px;
    border-radius: 16px;
    font-weight: 600;
    z-index: 10000;
    transform: translateX(500px);
    transition: all var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        var(--shadow-strong),
        0 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: hidden;
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    animation: notificationProgress 3s linear;
}

@keyframes notificationProgress {
    from { width: 100%; }
    to { width: 0%; }
}

.notification.show {
    transform: translateX(0);
    animation: notificationBounce 0.6s ease-out;
}

@keyframes notificationBounce {
    0% { transform: translateX(500px); }
    60% { transform: translateX(-20px); }
    100% { transform: translateX(0); }
}

.notification.success {
    background: rgba(76, 175, 80, 0.95);
    border-color: rgba(129, 199, 132, 0.4);
}

.notification.error {
    background: rgba(244, 67, 54, 0.95);
    border-color: rgba(239, 154, 154, 0.4);
}

.notification.warning {
    background: rgba(255, 152, 0, 0.95);
    border-color: rgba(255, 183, 77, 0.4);
}

.notification.info {
    background: rgba(33, 150, 243, 0.95);
    border-color: rgba(100, 181, 246, 0.4);
}

/* 加载指示器美化 */
.loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(30px);
    color: white;
    padding: 40px 50px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    z-index: 10000;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-strong);
    animation: loadingPulse 2s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.02); }
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 进入动画定义 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 响应式设计 - 超级优化 */
@media (max-width: 1024px) {
    .container {
        padding: 25px 15px;
    }
    
    .player-main {
        padding: 40px 30px;
        border-radius: 28px;
    }
    
    .player-content {
        gap: 30px;
    }
    
    #albumArt {
        width: 260px;
        height: 260px;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 3.2rem;
    }
    
    .player-main {
        padding: 35px 25px;
        border-radius: 24px;
    }
    
    .player-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    
    #albumArt {
        width: 240px;
        height: 240px;
    }
    
    .song-title {
        font-size: 2.8rem;
    }
    
    .song-artist {
        font-size: 1.2rem;
    }
    
    .controls {
        gap: 20px;
    }
    
    .control-btn.small {
        width: 60px;
        height: 60px;
        font-size: 18px;
    }
    
    .control-btn.large {
        width: 75px;
        height: 75px;
        font-size: 28px;
    }
    
    .volume-section {
        padding: 20px 25px;
    }
    
    .playlist-header {
        padding: 25px 30px 20px;
    }
    
    .song-item {
        padding: 18px 25px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 10px;
    }
    
    header h1 {
        font-size: 2.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .player-main {
        padding: 25px 20px;
        border-radius: 20px;
    }
    
    #albumArt {
        width: 200px;
        height: 200px;
        border-radius: 20px;
    }
    
    .song-title {
        font-size: 1.8rem;
    }
    
    .song-artist {
        font-size: 1.1rem;
    }
    
    .controls {
        gap: 15px;
    }
    
    .control-btn.small {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    .control-btn.large {
        width: 65px;
        height: 65px;
        font-size: 24px;
    }
    
    .volume-section {
        padding: 18px 20px;
        border-radius: 20px;
    }
    
    .playlist-section {
        border-radius: 24px;
    }
    
    .playlist-header {
        padding: 20px 25px 18px;
    }
    
    .song-item {
        padding: 15px 20px;
    }
    
    .song-item:hover {
        transform: translateX(8px);
        padding-left: 32px;
    }
    
    .notification {
        right: 15px;
        left: 15px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

/* 无障碍和可用性增强 */
.control-btn:focus,
.song-item:focus,
#volumeSlider:focus {
    outline: 3px solid rgba(255, 255, 255, 0.6);
    outline-offset: 3px;
}

/* 减少动画（尊重用户偏好） */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    :root {
        --glass-bg: rgba(255, 255, 255, 0.25);
        --glass-border: rgba(255, 255, 255, 0.4);
        --text-primary: #ffffff;
        --text-secondary: #f0f0f0;
    }
}

/* 深色模式优化 */
@media (prefers-color-scheme: dark) {
    :root {
        --glass-bg: rgba(0, 0, 0, 0.3);
        --glass-border: rgba(255, 255, 255, 0.15);
        --dark-glass: rgba(255, 255, 255, 0.15);
    }
}

/* 打印样式 */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    .player-main {
        background: none !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}
/* 为重要文本添加阴影以增强可读性 */
header h1,
.song-title,
.song-artist,
.playlist-title,
.song-info .song-title,
.song-info .song-artist,
.song-duration,
.volume-text,
.time-display {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.8);
}

.subtitle {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* 增强播放列表可读性 */
.song-item {
    background: rgba(0, 0, 0, 0.2);
}

.song-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.song-item.active {
    background: rgba(102, 126, 234, 0.3);
    color: #ffffff;
}

/* 增强控制按钮文字对比度 */
.control-btn {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* 增强时间显示的对比度 */
.progress-info {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 播放列表玻璃效果优化 */
.playlist-section {
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(15px) !important;
}

.playlist-header {
    background: rgba(0, 0, 0, 0.3) !important;
}

.song-item {
    background: rgba(0, 0, 0, 0.3) !important;
}

.song-item:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.song-item.active {
    background: rgba(102, 126, 234, 0.4) !important;
}

/* 标题优化样式 */
header h1 {
    font-size: 4.2rem !important;
    font-weight: 900 !important;
    margin-bottom: 20px !important;
}

.subtitle {
    font-size: 1.5rem !important;
    color: #c8b5ff !important; /* 淡紫色 */
    font-weight: 600 !important;
    opacity: 1 !important;
    letter-spacing: 0.8px !important;
    text-shadow: 0 2px 10px rgba(200, 181, 255, 0.3) !important;
    background: linear-gradient(45deg, #c8b5ff, #e0d4ff, #c8b5ff) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* 响应式标题优化 */
@media (max-width: 768px) {
    header h1 {
        font-size: 3.2rem !important;
    }
    
    .subtitle {
        font-size: 1.3rem !important;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2.8rem !important;
    }
    
    .subtitle {
        font-size: 1.2rem !important;
    }
}

/* 取消播放列表玻璃效果，改为紫色渐变 */
.playlist-section {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.85) 0%, 
        rgba(118, 75, 162, 0.85) 50%, 
        rgba(102, 126, 234, 0.85) 100%) !important;
    backdrop-filter: none !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 
        0 20px 40px rgba(102, 126, 234, 0.3),
        0 8px 20px rgba(118, 75, 162, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.playlist-section:hover {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.9) 0%, 
        rgba(118, 75, 162, 0.9) 50%, 
        rgba(102, 126, 234, 0.9) 100%) !important;
    box-shadow: 
        0 25px 50px rgba(102, 126, 234, 0.4),
        0 10px 25px rgba(118, 75, 162, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.playlist-header {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.05) 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25) !important;
}

/* 歌曲项目紫色渐变样式 */
.song-item {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.1) 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
}

.song-item:hover {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0.25) 100%) !important;
    box-shadow: 
        0 4px 15px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.song-item.active {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.35) 0%, 
        rgba(255, 255, 255, 0.25) 50%, 
        rgba(255, 255, 255, 0.35) 100%) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 
        0 6px 20px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1) !important;
}

.song-item.active::before {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(255, 255, 255, 0.6) 100%) !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4) !important;
}

/* 播放列表标题优化 */
.playlist-title {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

.playlist-count {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3) !important;
}

/* 歌曲信息文字优化 */
.song-info .song-title {
    color: #ffffff !important;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3) !important;
}

.song-info .song-artist {
    color: rgba(255, 255, 255, 0.85) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.song-duration {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* 滚动条优化 */
.song-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4) !important;
    border-radius: 10px !important;
    border: 2px solid transparent !important;
    background-clip: content-box !important;
}

.song-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.6) !important;
    background-clip: content-box !important;
}

/* 移除玻璃效果相关属性 */
.playlist-section,
.playlist-header,
.song-item,
.song-item:hover,
.song-item.active {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* 歌曲项目显示增强 */
.song-item {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.08) 50%, 
        rgba(255, 255, 255, 0.15) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    margin-bottom: 8px !important;
    padding: 20px 25px !important;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.song-item:hover {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(255, 255, 255, 0.18) 50%, 
        rgba(255, 255, 255, 0.25) 100%) !important;
    transform: translateX(8px) translateY(-2px) !important;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.3),
        0 4px 15px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.song-item.active {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0.4) 100%) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateX(5px) !important;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.3),
        0 5px 20px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2) !important;
}

/* 歌曲信息超级增强 */
.song-info .song-title {
    color: #ffffff !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.5),
        0 1px 3px rgba(0, 0, 0, 0.7) !important;
    margin-bottom: 8px !important;
    letter-spacing: 0.3px !important;
}

.song-info .song-artist {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    text-shadow: 
        0 1px 5px rgba(0, 0, 0, 0.5),
        0 1px 2px rgba(0, 0, 0, 0.7) !important;
    letter-spacing: 0.2px !important;
}

.song-duration {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-shadow: 
        0 1px 5px rgba(0, 0, 0, 0.5),
        0 1px 2px rgba(0, 0, 0, 0.7) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* 播放列表容器增强 */
.song-list {
    padding: 20px !important;
    max-height: 500px !important;
}

/* 播放列表头部增强 */
.playlist-header {
    padding: 25px 30px !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.playlist-title {
    color: #ffffff !important;
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    text-shadow: 
        0 3px 10px rgba(0, 0, 0, 0.4),
        0 1px 5px rgba(0, 0, 0, 0.6) !important;
    margin-bottom: 8px !important;
}

.playlist-title i {
    color: rgba(255, 255, 255, 0.9) !important;
    margin-right: 12px !important;
}

.playlist-count {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

/* 确保播放列表可见性 */
.playlist-section {
    border-radius: 25px !important;
    overflow: visible !important;
    margin-top: 30px !important;
}

/* 左侧指示条增强 */
.song-item::before {
    width: 4px !important;
    border-radius: 2px !important;
}

.song-item.active::before {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0.8) 100%) !important;
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 10px rgba(255, 255, 255, 0.4) !important;
}
