/* 音乐播放器样式 - 简化版 */

/* 播放器容器 */
.music-player-wrapper {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.music-player-wrapper.theme-dark {
    background: #2c3e50;
    color: #ecf0f1;
}

.music-player-wrapper.theme-light {
    background: #ffffff;
    border: 1px solid #e0e0e0;
}

.music-player-container {
    padding: 20px;
}

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

.current-song-cover {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 8px;
    overflow: hidden;
    background: #e0e0e0;
}

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

.current-song-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #333;
}

.theme-dark .current-song-title {
    color: #ecf0f1;
}

.current-song-artist {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.theme-dark .current-song-artist {
    color: #bdc3c7;
}

/* 进度条 */
.progress-container {
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.theme-dark .progress-bar {
    background: #34495e;
}

.progress-bar-fill {
    height: 100%;
    background: #3498db;
    border-radius: 2px;
    width: 0;
    transition: width 0.1s linear;
}

.theme-dark .progress-bar-fill {
    background: #5dade2;
}

.progress-time {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.theme-dark .progress-time {
    color: #95a5a6;
}

/* 控制按钮 */
.player-controls {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.control-btn {
    background: none;
    border: none;
    font-size: 36px;
    cursor: pointer;
    color: #3498db;
    padding: 0;
    transition: transform 0.2s, color 0.2s;
}

.control-btn:hover {
    transform: scale(1.1);
    color: #2980b9;
}

.theme-dark .control-btn {
    color: #5dade2;
}

.theme-dark .control-btn:hover {
    color: #3498db;
}

.control-btn-play {
    width: 60px;
    height: 60px;
    background: #3498db;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.control-btn-play:hover {
    background: #2980b9;
    transform: scale(1.05);
}

.theme-dark .control-btn-play {
    background: #5dade2;
}

.theme-dark .control-btn-play:hover {
    background: #3498db;
}

/* 音量控制 */
.volume-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.volume-icon {
    font-size: 18px;
    cursor: pointer;
    user-select: none;
}

.volume-slider {
    width: 100px;
    height: 4px;
    -webkit-appearance: none;
    background: #e0e0e0;
    border-radius: 2px;
    outline: none;
}

.theme-dark .volume-slider {
    background: #34495e;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.theme-dark .volume-slider::-webkit-slider-thumb {
    background: #5dade2;
}

.theme-dark .volume-slider::-moz-range-thumb {
    background: #5dade2;
}

/* 歌词容器 */
.lyric-container {
    max-height: 120px;
    overflow-y: auto;
    text-align: center;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 14px;
    line-height: 1.8;
}

.theme-dark .lyric-container {
    background: #34495e;
}

.lyric-line {
    opacity: 0.5;
    transition: opacity 0.3s;
    padding: 3px 0;
    color: #666;
}

.theme-dark .lyric-line {
    color: #bdc3c7;
}

.lyric-line.active {
    opacity: 1;
    font-weight: 600;
    color: #3498db;
}

.theme-dark .lyric-line.active {
    color: #5dade2;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px;
    font-size: 14px;
    color: #999;
}

.theme-dark .loading {
    color: #95a5a6;
}

/* 滚动条样式 */
.lyric-container::-webkit-scrollbar {
    width: 4px;
}

.lyric-container::-webkit-scrollbar-track {
    background: transparent;
}

.lyric-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.theme-dark .lyric-container::-webkit-scrollbar-thumb {
    background: #7f8c8d;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .music-player-wrapper {
        max-width: 100%;
        margin: 15px 0;
        border-radius: 0;
    }

    .music-player-container {
        padding: 15px;
    }

    .current-song-cover {
        width: 100px;
        height: 100px;
    }

    .current-song-title {
        font-size: 16px;
    }

    .current-song-artist {
        font-size: 13px;
    }

    .control-btn-play {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .lyric-container {
        font-size: 13px;
        max-height: 100px;
    }
}

/* 默认主题特殊配色 */
.music-player-wrapper.theme-default {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.theme-default .current-song-title {
    color: #fff;
}

.theme-default .current-song-artist {
    color: rgba(255, 255, 255, 0.8);
}

.theme-default .progress-bar {
    background: rgba(255, 255, 255, 0.3);
}

.theme-default .progress-bar-fill {
    background: #fff;
}

.theme-default .progress-time {
    color: rgba(255, 255, 255, 0.7);
}

.theme-default .control-btn {
    color: #fff;
}

.theme-default .control-btn-play {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
}

.theme-default .control-btn-play:hover {
    background: #fff;
}

.theme-default .volume-slider {
    background: rgba(255, 255, 255, 0.3);
}

.theme-default .volume-slider::-webkit-slider-thumb {
    background: #fff;
}

.theme-default .volume-slider::-moz-range-thumb {
    background: #fff;
}

.theme-default .lyric-container {
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
}

.theme-default .lyric-line {
    color: rgba(255, 255, 255, 0.6);
}

.theme-default .lyric-line.active {
    color: #fff;
}
