* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.player-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 28px;
}

/* 播放信息 */
.now-playing {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.song-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

#current-title {
    font-size: 18px;
    font-weight: bold;
    color: #555;
}

#current-index {
    font-size: 14px;
    color: #888;
}

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

.progress-bar {
    position: absolute;
    height: 100%;
    background: #667eea;
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s ease;
}

.time-display {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #888;
}

/* 第一行：播放+模式图标按钮 */
.play-mode-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* 所有图标按钮统一样式 */
.icon-btn {
    width: 56px;  /* 正方形按钮 */
    height: 56px;
    border: none;
    border-radius: 50%; /* 圆形按钮 */
    font-size: 20px;    /* 图标大小 */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    background: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 播放按钮特殊样式 */
.icon-btn.play-btn {
    background: #4CAF50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}
.icon-btn.play-btn:hover {
    background: #45a049;
    transform: scale(1.05); /* 轻微放大 */
}

/* 模式按钮样式（未激活） */
.icon-btn.mode-btn {
    background: #f0f0f0;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
/* 模式按钮激活状态 */
.icon-btn.mode-btn.active {
    background: #667eea;
    color: white;
}
.icon-btn.mode-btn:hover:not(.active) {
    background: #e8e8e8;
    transform: scale(1.05);
}

/* 通用按钮hover效果 */
.icon-btn:hover:not(.mode-btn):not(.play-btn) {
    background: #5a6ed8;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 第二行：音量控制（单独一排） */
.volume-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    width: 100%;
}

/* 音量图标按钮 */
.icon-btn.volume-btn {
    flex: 0 0 56px; /* 固定圆形尺寸 */
}

/* 音量滑块 */
#volume-slider {
    flex: 1; /* 滑块占满剩余宽度 */
    height: 8px;
    -webkit-appearance: none;
    background: #eee;
    border-radius: 4px;
    outline: none;
}
#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

/* 歌曲列表 */
.song-list-container {
    margin-top: 20px;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.list-header h2 {
    font-size: 18px;
    color: #555;
}

.song-list {
    max-height: 300px;
    overflow-y: auto;
}

.song-item {
    padding: 10px 15px;
    margin: 5px 0;
    background: #f9f9f9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.song-item:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

.song-item.active {
    background: #e6e6ff;
    border-left: 3px solid #667eea;
    font-weight: bold;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .play-mode-controls {
        gap: 10px;
    }
    .icon-btn {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .player-container {
        padding: 20px 15px;
    }
    .play-mode-controls {
        gap: 8px;
    }
    .icon-btn {
        width: 46px;
        height: 46px;
        font-size: 16px;
    }
    .volume-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .icon-btn.volume-btn {
        width: 100%;
        border-radius: 8px; /* 手机端音量按钮改为圆角矩形 */
    }
}
