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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.music-player {
    background: white;
    border-radius: 20px;
    width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.player-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    text-align: center;
    color: white;
}

.now-playing {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.current-song {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.album-art {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    font-size: 48px;
    color: white;
}

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

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

.control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 18px;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.control-btn.active {
    background: rgba(255, 255, 255, 0.4);
}

.play-btn {
    width: 60px;
    height: 60px;
    background: white;
    color: #667eea;
    font-size: 24px;
}

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

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: white;
    width: 0%;
    transition: width 0.1s ease;
}

.time-info {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin-top: 8px;
}

.playlist {
    background: #f8f9fa;
    max-height: 300px;
    overflow-y: auto;
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e9ecef;
}

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

.playlist-item.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.playlist-item.active .song-artist {
    color: rgba(255, 255, 255, 0.8);
}

.playlist-album {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-right: 15px;
    overflow: hidden;
}

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

.playlist-info {
    flex: 1;
}

.song-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.song-artist {
    color: #6c757d;
    font-size: 14px;
}

.more-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.more-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.playlist-item.active .more-btn {
    color: rgba(255, 255, 255, 0.8);
}

.playlist-item.active .more-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Scrollbar styling */
.playlist::-webkit-scrollbar {
    width: 6px;
}

.playlist::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.playlist::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.playlist::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}