/* =============================================
   音乐页面样式 - 窗口化设计
   设计理念：优雅、梦幻、女性化
   ============================================= */

/* =============================================
   页面容器
   ============================================= */

.music-container {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--navbar-height) + 20px) 20px 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* =============================================
   渐变背景（默认，无背景图时使用）
   ============================================= */

.music-gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #fda085 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -2;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* =============================================
   发光圆点上浮效果
   ============================================= */

.bubbles-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
    border-radius: 50%;
    animation: floatUp linear infinite;
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 40px rgba(255, 182, 193, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-120vh) scale(0.5);
        opacity: 0;
    }
}

/* 不同大小和速度的圆点 */
.bubble:nth-child(1) { width: 80px; height: 80px; left: 10%; animation-duration: 12s; animation-delay: 0s; }
.bubble:nth-child(2) { width: 60px; height: 60px; left: 20%; animation-duration: 15s; animation-delay: 2s; }
.bubble:nth-child(3) { width: 100px; height: 100px; left: 35%; animation-duration: 18s; animation-delay: 4s; }
.bubble:nth-child(4) { width: 50px; height: 50px; left: 50%; animation-duration: 14s; animation-delay: 1s; }
.bubble:nth-child(5) { width: 70px; height: 70px; left: 65%; animation-duration: 16s; animation-delay: 3s; }
.bubble:nth-child(6) { width: 90px; height: 90px; left: 75%; animation-duration: 13s; animation-delay: 5s; }
.bubble:nth-child(7) { width: 55px; height: 55px; left: 85%; animation-duration: 17s; animation-delay: 2.5s; }
.bubble:nth-child(8) { width: 65px; height: 65px; left: 5%; animation-duration: 19s; animation-delay: 6s; }
.bubble:nth-child(9) { width: 45px; height: 45px; left: 45%; animation-duration: 11s; animation-delay: 1.5s; }
.bubble:nth-child(10) { width: 75px; height: 75px; left: 90%; animation-duration: 20s; animation-delay: 4.5s; }

/* =============================================
   自定义背景图（用户设置时）
   ============================================= */

.custom-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -3;
    display: none;
}

.custom-background.active {
    display: block;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
    transition: background 0.3s ease;
}

/* =============================================
   窗口化播放器容器
   ============================================= */

.player-window {
    width: 100%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 60px rgba(255, 182, 193, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

/* =============================================
   窗口标题栏
   ============================================= */

.window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.window-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.window-title-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.window-title h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.window-control-btn:hover {
    transform: scale(1.2);
}

.window-control-btn.close {
    background: #ff5f57;
}

.window-control-btn.minimize {
    background: #ffbd2e;
}

.window-control-btn.maximize {
    background: #28ca42;
}

/* =============================================
   主内容区
   ============================================= */

.music-content {
    display: flex;
    gap: 0;
    flex: 1;
}

/* =============================================
   左侧：专辑封面区
   ============================================= */

.album-section {
    flex: 0 0 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.album-cover-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    margin-bottom: 30px;
}

.album-cover {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.3),
        0 0 0 8px rgba(255, 255, 255, 0.15),
        0 0 0 16px rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.album-cover.playing {
    animation: rotate 20s linear infinite;
}

.album-cover:hover {
    transform: scale(1.05);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 10px rgba(255, 255, 255, 0.2),
        0 0 0 20px rgba(255, 255, 255, 0.08);
}

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

/* 黑胶唱片中心 */
.vinyl-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-radius: 50%;
    box-shadow: 
        inset 0 0 0 6px rgba(255, 255, 255, 0.08),
        0 0 15px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vinyl-center::before {
    content: '';
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(240, 147, 251, 0.5);
}

/* =============================================
   右侧：歌曲信息与歌词
   ============================================= */

.song-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 30px;
    min-width: 0;
}

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

.song-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #fff, #f0e6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.song-artist {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-bottom: 4px;
}

.song-album {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* 歌词面板 */
.lyrics-panel {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    max-height: 350px;
}

.lyrics-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lyrics-header svg {
    color: rgba(255, 255, 255, 0.7);
}

.lyrics-header h3 {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.lyrics-content {
    flex: 1;
    overflow-y: auto;
    padding: 6px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 自定义滚动条 */
.lyrics-content::-webkit-scrollbar {
    width: 5px;
}

.lyrics-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.lyrics-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.lyrics-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lyrics-line {
    font-size: 0.95rem;
    line-height: 2.2;
    color: rgba(255, 255, 255, 0.5);
    padding: 6px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.lyrics-line:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

.lyrics-line.active {
    color: white;
    font-weight: 600;
    font-size: 1.05rem;
    background: rgba(240, 147, 251, 0.2);
    text-shadow: 0 0 20px rgba(240, 147, 251, 0.5);
}

/* 歌词主题样式 */
.lyrics-theme-pink .lyrics-line { color: rgba(255, 255, 255, 0.4); }
.lyrics-theme-pink .lyrics-line.active { color: #f093fb; }

.lyrics-theme-purple .lyrics-line { color: rgba(255, 255, 255, 0.4); }
.lyrics-theme-purple .lyrics-line.active { color: #a78bfa; }

.lyrics-theme-blue .lyrics-line { color: rgba(255, 255, 255, 0.4); }
.lyrics-theme-blue .lyrics-line.active { color: #60a5fa; }

.lyrics-theme-green .lyrics-line { color: rgba(255, 255, 255, 0.4); }
.lyrics-theme-green .lyrics-line.active { color: #4ade80; }

.lyrics-theme-rainbow .lyrics-line:nth-child(6n+1) { color: rgba(251, 113, 133, 0.7); }
.lyrics-theme-rainbow .lyrics-line:nth-child(6n+2) { color: rgba(251, 191, 36, 0.7); }
.lyrics-theme-rainbow .lyrics-line:nth-child(6n+3) { color: rgba(163, 230, 53, 0.7); }
.lyrics-theme-rainbow .lyrics-line:nth-child(6n+4) { color: rgba(45, 212, 191, 0.7); }
.lyrics-theme-rainbow .lyrics-line:nth-child(6n+5) { color: rgba(96, 165, 250, 0.7); }
.lyrics-theme-rainbow .lyrics-line:nth-child(6n+6) { color: rgba(167, 139, 250, 0.7); }

/* =============================================
   进度条区域
   ============================================= */

.progress-section {
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-bar-container {
    padding: 6px 0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    transition: height 0.2s ease;
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f093fb, #f5576c);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.progress-bar:hover .progress-fill::after {
    opacity: 1;
}

.time-display {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-variant-numeric: tabular-nums;
}

/* =============================================
   设置按钮
   ============================================= */

.settings-btn {
    position: fixed;
    top: calc(var(--navbar-height) + 20px);
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
}

.settings-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg) scale(1.05);
}

.settings-btn svg {
    width: 22px;
    height: 22px;
}

/* =============================================
   设置弹窗
   ============================================= */

.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.settings-overlay.active {
    display: flex;
}

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

.settings-modal {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 28px;
    padding: 28px;
    width: 90%;
    max-width: 440px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.settings-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
}

.settings-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.settings-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.settings-group {
    margin-bottom: 20px;
}

.settings-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 10px;
    font-weight: 500;
}

.settings-value {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-variant-numeric: tabular-nums;
}

.settings-slider {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.settings-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(240, 147, 251, 0.5);
    transition: transform 0.2s ease;
}

.settings-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* 颜色选择器 */
.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-option {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.active {
    border-color: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.color-option.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* =============================================
   底部播放控制栏
   ============================================= */

.player-controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1160px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 16px 24px;
    z-index: 100;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.controls-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 迷你封面 */
.mini-cover {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 迷你信息 */
.mini-info {
    flex: 0 0 160px;
    min-width: 0;
}

.mini-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-artist {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 进度区域 */
.progress-area {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.progress-time {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-variant-numeric: tabular-nums;
    min-width: 40px;
}

.progress-bar-wrapper {
    flex: 1;
    padding: 6px 0;
}

/* 播放控制按钮 */
.controls-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
}

.control-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

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

.control-btn.active {
    color: #f093fb;
}

/* 播放/暂停按钮 */
.control-btn.play-pause-btn {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    box-shadow: 0 4px 20px rgba(240, 147, 251, 0.4);
}

.control-btn.play-pause-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 30px rgba(240, 147, 251, 0.5);
}

/* 音量控制 */
.volume-area {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 130px;
}

.volume-slider {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(240, 147, 251, 0.4);
    transition: transform 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* =============================================
   响应式设计
   ============================================= */

@media (max-width: 1024px) {
    .player-window {
        max-width: 95%;
    }
    
    .music-content {
        flex-direction: column;
    }
    
    .album-section {
        flex: none;
        padding: 30px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .album-cover-wrapper {
        width: 220px;
        height: 220px;
        margin-bottom: 20px;
    }
    
    .vinyl-center {
        width: 70px;
        height: 70px;
    }
    
    .vinyl-center::before {
        width: 22px;
        height: 22px;
    }
    
    .song-title {
        font-size: 1.6rem;
    }
    
    .lyrics-panel {
        max-height: 250px;
    }
    
    .player-controls {
        width: calc(100% - 20px);
        padding: 12px 16px;
    }
    
    .mini-info {
        display: none;
    }
}

@media (max-width: 768px) {
    .music-container {
        padding: calc(var(--navbar-height) + 10px) 10px 10px;
    }
    
    .player-window {
        border-radius: 24px;
    }
    
    .album-cover-wrapper {
        width: 180px;
        height: 180px;
    }
    
    .vinyl-center {
        width: 60px;
        height: 60px;
    }
    
    .vinyl-center::before {
        width: 18px;
        height: 18px;
    }
    
    .song-title {
        font-size: 1.4rem;
    }
    
    .song-artist {
        font-size: 1rem;
    }
    
    .lyrics-panel {
        padding: 16px;
        max-height: 200px;
    }
    
    .settings-btn {
        top: calc(var(--navbar-height) + 10px);
        right: 10px;
        width: 42px;
        height: 42px;
    }
    
    .settings-modal {
        padding: 20px;
        margin: 15px;
    }
    
    .controls-buttons {
        gap: 8px;
    }
    
    .control-btn {
        width: 36px;
        height: 36px;
    }
    
    .control-btn.play-pause-btn {
        width: 44px;
        height: 44px;
    }
    
    .volume-area {
        display: none;
    }
}

@media (max-width: 480px) {
    .window-header {
        padding: 12px 16px;
    }
    
    .window-title h2 {
        font-size: 0.95rem;
    }
    
    .album-section {
        padding: 20px;
    }
    
    .album-cover-wrapper {
        width: 150px;
        height: 150px;
    }
    
    .vinyl-center {
        width: 50px;
        height: 50px;
    }
    
    .vinyl-center::before {
        width: 16px;
        height: 16px;
    }
    
    .song-title {
        font-size: 1.2rem;
    }
    
    .lyrics-panel {
        padding: 12px;
        max-height: 180px;
    }
    
    .lyrics-line {
        font-size: 0.9rem;
        line-height: 2;
    }
    
    .progress-time {
        font-size: 0.75rem;
        min-width: 35px;
    }
    
    .player-controls {
        border-radius: 20px;
    }
}

/* =============================================
   动画性能优化
   ============================================= */

@media (prefers-reduced-motion: reduce) {
    .album-cover {
        animation: none;
    }
    
    .bubble {
        animation: none;
    }
    
    .music-gradient-bg {
        animation: none;
    }
    
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* =============================================
   音频可视化Canvas
   ============================================= */

.audio-visualizer-canvas {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    pointer-events: none;
    opacity: 0.2;
    z-index: 1;
}

/* =============================================
   歌词区域内的进度条
   ============================================= */

.lyrics-progress {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lyrics-progress .progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
}

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

.lyrics-progress .progress-fill {
    background: linear-gradient(90deg, #f093fb, #f5576c);
}

.lyrics-progress .progress-fill::after {
    width: 12px;
    height: 12px;
    right: -6px;
}

.lyrics-progress .time-display {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-variant-numeric: tabular-nums;
}

/* =============================================
   音乐上传按钮（右下角，仅超级管理员可见）
   ============================================= */

.upload-music-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 100;
}

.upload-music-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.6);
}

.upload-music-btn svg {
    width: 24px;
    height: 24px;
}

/* =============================================
   音乐上传弹窗
   ============================================= */

.upload-music-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.upload-music-modal {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.upload-music-overlay.active .upload-music-modal {
    transform: scale(1) translateY(0);
}

.upload-music-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.upload-music-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.upload-music-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.2s ease;
}

.upload-music-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.upload-music-content {
    padding: 24px;
    max-height: calc(85vh - 80px);
    overflow-y: auto;
}

/* 上传区块 */
.upload-section {
    margin-bottom: 24px;
}

.upload-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
}

.upload-label svg {
    color: #667eea;
}

.upload-hint {
    font-size: 0.8rem;
    color: #999;
    font-weight: 400;
    margin-left: auto;
}

/* 上传区域 */
.upload-area {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
    position: relative;
}

.upload-area:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.upload-area.dragover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.upload-placeholder {
    color: #999;
}

.upload-placeholder svg {
    margin-bottom: 12px;
    color: #ccc;
}

.upload-placeholder p {
    margin: 0;
    font-size: 0.9rem;
}

/* 已选文件显示 */
.upload-file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
}

.upload-file-info svg {
    color: #667eea;
    flex-shrink: 0;
}

.upload-file-info span {
    flex: 1;
    text-align: left;
    font-size: 0.9rem;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remove-file-btn {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    font-size: 18px;
    transition: all 0.2s ease;
}

.remove-file-btn:hover {
    background: #ff4757;
    color: white;
}

/* 封面预览 */
.upload-cover-preview {
    position: relative;
    display: inline-block;
}

.upload-cover-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.upload-cover-preview .remove-file-btn {
    position: absolute;
    top: -8px;
    right: -8px;
}

/* 表单 */
.upload-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    width: 100%;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input::placeholder {
    color: #aaa;
}

/* 上传按钮 */
.upload-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.upload-cancel-btn,
.upload-submit-btn {
    flex: 1;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.upload-cancel-btn {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    color: #666;
}

.upload-cancel-btn:hover {
    background: #eee;
}

.upload-submit-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.upload-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.upload-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 响应式 */
@media (max-width: 768px) {
    .upload-music-modal {
        width: 95%;
        max-height: 90vh;
    }

    .upload-music-content {
        padding: 16px;
    }

    .upload-area {
        padding: 20px;
    }

    .upload-actions {
        flex-direction: column;
    }
}
