* {
    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;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.player-container {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.header {
    background: linear-gradient(90deg, #1db954, #1ed760);
    color: white;
    padding: 20px;
    text-align: center;
}

.header h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.header p {
    opacity: 0.9;
    font-size: 14px;
}

.now-playing {
    padding: 25px;
    text-align: center;
}

.album-art {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.song-info {
    margin-bottom: 25px;
}

.song-info h2 {
    font-size: 22px;
    margin-bottom: 5px;
    color: #333;
}

.song-info p {
    color: #666;
    font-size: 16px;
}

.progress-container {
    margin: 25px 0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
    cursor: pointer;
}

.progress {
    height: 100%;
    background: #1db954;
    width: 0%;
    transition: width 0.1s linear;
}

.time-display {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 14px;
}

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

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.control-btn:hover {
    background: #e0e0e0;
    transform: scale(1.1);
}

.control-btn.play-btn {
    width: 60px;
    height: 60px;
    background: #1db954;
    color: white;
    font-size: 20px;
}

.control-btn.play-btn:hover {
    background: #1aa34a;
}

.mode-btn {
    margin-top: 20px;
    padding: 8px 16px;
    background: #f0f0f0;
    border: none;
    border-radius: 20px;
    color: #333;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.mode-btn:hover {
    background: #e0e0e0;
}

.mode-btn.active {
    background: #1db954;
    color: white;
}

.playlist {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
    border-top: 1px solid #eee;
}

.playlist h3 {
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.playlist-item:hover {
    background: #f5f5f5;
}

.playlist-item.active {
    background: rgba(29, 185, 84, 0.1);
    border-left: 4px solid #1db954;
}

.playlist-item img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    margin-right: 12px;
    object-fit: cover;
}

.playlist-info {
    flex: 1;
}

.playlist-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 3px;
}

.playlist-artist {
    font-size: 13px;
    color: #666;
}

@media (max-width: 480px) {
    .player-container {
        border-radius: 10px;
    }
    
    .album-art {
        width: 180px;
        height: 180px;
    }
    
    .controls {
        gap: 15px;
    }
    
    .control-btn {
        width: 45px;
        height: 45px;
    }
    
    .control-btn.play-btn {
        width: 55px;
        height: 55px;
    }
}
