#music-player-container {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 20px auto;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.player-loading {
    padding: 20px;
    text-align: center;
    color: #3b2774;
}

.now-playing {
    display: flex;
    padding: 15px;
    background: linear-gradient(135deg, #4a76a8 0%, #2d2d2d 100%);
    color: white;
}

.cover-art {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    object-fit: cover;
    margin-right: 15px;
}

.track-info {
    flex: 1;
}

.track-title {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-container {
    height: 5px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    margin: 10px 0;
    cursor: pointer;
}

.progress-bar {
    height: 100%;
    background: white;
    border-radius: 3px;
    width: 0%;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    opacity: 0.8;
}

.player-controls {
    display: flex;
    justify-content: center;
    padding: 15px;
    background: white;
}

.control-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #4a76a8;
    margin: 0 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(74, 118, 168, 0.1);
}

.playlist-container {
    padding: 15px;
    background: #f1f3f5;
}

.playlist-container h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.playlist {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 100%;
    overflow-y: auto;
}

.track-item {
    padding: 10px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

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

.track-item.active {
    background: #4a76a8;
    color: white;
}

.track-item.active .track-duration {
    color: rgba(255,255,255,0.8);
}

.track-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-duration {
    color: #666;
    font-size: 0.9rem;
    margin-left: 10px;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 118, 168, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(74, 118, 168, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 118, 168, 0); }
}

.now-playing-indicator {
    animation: pulse 2s infinite;
    border-radius: 50%;
}