* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(25, 25, 35, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #3498db;
}

header h1 {
    font-size: 2.5em;
    color: #3498db;
    margin-bottom: 10px;
}

header h1 i {
    margin-right: 15px;
}

.subtitle {
    color: #95a5a6;
    font-size: 1.1em;
}

.player-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.player-controls {
    background: rgba(30, 30, 40, 0.9);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

audio {
    width: 0%;
    height: 0%;
    margin-bottom: 0px;
    border-radius: 0px;
}

.custom-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
}

.control-btn {
    background: #3498db;
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: #2980b9;
    transform: scale(1.1);
}

.play-btn {
    width: 70px;
    height: 70px;
    font-size: 24px;
    background: #e74c3c;
}

.play-btn:hover {
    background: #c0392b;
}

.playback-mode {
    display: flex;
    gap: 10px;
}

.mode-btn {
    background: #2c3e50;
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.mode-btn.active {
    background: #3498db;
}

.mode-btn:hover {
    background: #34495e;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 25px;
}

.volume-control i {
    color: #3498db;
}

#volumeSlider {
    width: 100px;
    height: 6px;
    -webkit-appearance: none;
    background: #34495e;
    border-radius: 3px;
    outline: none;
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

#progressBar {
    flex: 1;
    height: 8px;
    -webkit-appearance: none;
    background: #34495e;
    border-radius: 4px;
    outline: none;
}

#progressBar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
}

.playlist-container {
    background: rgba(30, 30, 40, 0.9);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.playlist-header {
    background: #2c3e50;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.playlist-header h3 {
    color: #3498db;
    font-size: 1.3em;
}

.playlist-header h3 i {
    margin-right: 10px;
}

.action-btn {
    background: #3498db;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #2980b9;
    transform: rotate(90deg);
}

.playlist {
    max-height: 400px;
    overflow-y: auto;
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.playlist-item:hover {
    background: rgba(52, 152, 219, 0.1);
}

.playlist-item.active {
    background: rgba(52, 152, 219, 0.2);
    border-left: 4px solid #3498db;
}

.item-number {
    width: 40px;
    text-align: center;
    color: #95a5a6;
    font-weight: bold;
}

.item-info {
    flex: 1;
    margin-left: 15px;
}

.item-title {
    font-weight: 500;
    margin-bottom: 5px;
    color: #ecf0f1;
}

.item-details {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
    color: #95a5a6;
}

.item-duration {
    color: #3498db;
    font-size: 18px;
}

.empty-playlist {
    text-align: center;
    padding: 50px 20px;
    color: #95a5a6;
}

.empty-playlist i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #7f8c8d;
}

.current-track {
    background: rgba(30, 30, 40, 0.9);
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.now-playing {
    color: #3498db;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.now-playing i {
    margin-right: 10px;
}

#trackInfo {
    color: #95a5a6;
    font-size: 0.9em;
}

/* 滚动条样式 */
.playlist::-webkit-scrollbar {
    width: 8px;
}

.playlist::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.playlist::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 4px;
}

.playlist::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .custom-controls {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .control-btn {
        width: 50px;
        height: 50px;
    }
    
    .play-btn {
        width: 60px;
        height: 60px;
    }
    
    .playlist {
        max-height: 300px;
    }
}