/* Song Player Widget */
.song-player-widget {
    background: rgba(0, 0, 0, 0.85);
    border-radius: 0;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 12px 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    user-select: none;
    transition: all 0.3s ease;
    margin: 0;
    flex-shrink: 0;
    border-top: 1px solid #3f3f3f;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}
.song-player-widget:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Controls Container */
.song-player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

/* Control Buttons */
.song-control-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
}

.song-control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.song-control-btn:active {
    transform: scale(0.95);
}

.control-icon {
    font-size: 14px;
    line-height: 1;
}

/* Play/Pause button - slightly larger */
.play-pause-btn {
    background: rgba(255, 255, 255, 0.08);
    min-width: 32px;
    min-height: 32px;
    margin: 0 4px;
}

.play-pause-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.play-pause-btn .control-icon {
    font-size: 16px;
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

.volume-icon {
    font-size: 12px;
    color: #cccccc;
}

.volume-slider {
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    appearance: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}
/* Playlist Info */
.playlist-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 6px;
    text-align: left;
}
.playlist-name {
    color: #cccccc;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.2px;
}
/* Song Info */
.song-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 8px;
}
.track-name {
    color: #cccccc;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.2;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
    .song-player-widget {
        padding: 10px 12px;
        margin: 10px;
    }
    
    .song-player-controls {
        gap: 6px;
    }
    
    .song-control-btn {
        min-width: 26px;
        min-height: 26px;
        padding: 5px;
    }
    
    .play-pause-btn {
        min-width: 30px;
        min-height: 30px;
    }
    
    .control-icon {
        font-size: 13px;
    }
    
    .play-pause-btn .control-icon {
        font-size: 15px;
    }
    
    .volume-slider {
        width: 50px;
    }
    
    .playlist-name {
        font-size: 10px;
    }
    
    .track-name {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .song-player-widget {
        padding: 8px 10px;
        margin: 8px;
    }
    
    .volume-control {
        gap: 4px;
    }
    
    .volume-slider {
        width: 45px;
        height: 3px;
    }
    
    .volume-slider::-webkit-slider-thumb {
        width: 10px;
        height: 10px;
    }
    
    .volume-slider::-moz-range-thumb {
        width: 10px;
        height: 10px;
    }
}

/* Playing state indicator */
.song-player-widget.playing .play-pause-btn {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.song-player-widget.playing .play-pause-btn:hover {
    background: rgba(34, 197, 94, 0.25);
}

/* Track loading state */
.song-player-widget.loading .track-name {
    color: #888888;
}

.song-player-widget.loading .track-name::after {
    content: "...";
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0%, 20% { content: ""; }
    40% { content: "."; }
    60% { content: ".."; }
    80%, 100% { content: "..."; }
}