/* 音乐播放器样式 */
.music-player {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.player-title {
    font-size: 1.5em;
    color: #333;
    font-weight: 600;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.control-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #495057;
    transition: all 0.2s ease;
    font-size: 16px;
}

.control-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: scale(1.05);
}

.control-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.control-btn.primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.song-cover {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.song-details {
    flex: 1;
}

.song-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.song-artist {
    font-size: 0.9em;
    color: #666;
}

.progress-container {
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    transition: width 0.1s ease;
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    color: #666;
    margin-top: 5px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-slider {
    flex: 1;
    height: 4px;
    background: #e9ecef;
    outline: none;
    border-radius: 2px;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* 播放列表样式 */
.playlist-container {
    margin-top: 20px;
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.playlist-title {
    font-size: 1.2em;
    color: #333;
    font-weight: 600;
}

.playlist-controls {
    display: flex;
    gap: 10px;
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #f8f9fa;
    transition: all 0.2s ease;
    cursor: pointer;
}

.playlist-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.playlist-item.playing {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.playlist-item-info {
    flex: 1;
    margin-left: 10px;
}

.playlist-item-title {
    font-weight: 500;
    margin-bottom: 2px;
}

.playlist-item-artist {
    font-size: 0.8em;
    opacity: 0.7;
}

.playlist-item-duration {
    font-size: 0.8em;
    opacity: 0.7;
}

/* 搜索样式 */
.search-container {
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-results {
    margin-top: 15px;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: white;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.search-result-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.search-result-info {
    flex: 1;
    margin-left: 10px;
}

.search-result-title {
    font-weight: 500;
    margin-bottom: 2px;
}

.search-result-artist {
    font-size: 0.8em;
    color: #666;
}

.search-result-actions {
    display: flex;
    gap: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .player-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .player-controls {
        justify-content: center;
    }
    
    .player-info {
        flex-direction: column;
        text-align: center;
    }
    
    .playlist-item {
        flex-direction: column;
        text-align: center;
    }
    
    .search-result-item {
        flex-direction: column;
        text-align: center;
    }
} 