/* Spotify Player Styles */

#spotifyPlayerSection {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1DB954 0%, #191414 100%);
    padding: 1rem 2rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

#spotifyPlayerSection.hidden {
    transform: translateY(100%);
}

.spotify-player-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    color: white;
}

.spotify-player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 0 0 300px;
}

.spotify-player-album-art {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.spotify-player-track-info {
    flex: 1;
    min-width: 0;
}

.spotify-player-track-name {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-player-track-artist {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-player-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.spotify-player-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.spotify-player-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spotify-player-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.spotify-player-button.play-pause {
    background: white;
    color: #1DB954;
    width: 40px;
    height: 40px;
}

.spotify-player-button.play-pause:hover {
    transform: scale(1.1);
    background: #e0e0e0;
}

.spotify-progress-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.spotify-progress-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    min-width: 40px;
}

.spotify-progress-slider {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.spotify-progress-fill {
    height: 100%;
    background: white;
    border-radius: 2px;
    transition: width 0.1s linear;
}

.spotify-player-volume {
    flex: 0 0 150px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spotify-player-volume input[type="range"] {
    flex: 1;
    accent-color: white;
}

/* Spotify Login Button */
#spotifyLoginBtn {
    background: #1DB954;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

#spotifyLoginBtn:hover {
    background: #1ed760;
    transform: scale(1.05);
}

/* Play Button on Cards */
.btn-play-spotify {
    background: #1DB954;
    color: white;
    border: none;
    transition: all 0.2s;
}

.btn-play-spotify:hover {
    background: #1ed760;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.4);
}

.btn-play-spotify:disabled {
    background: #888;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    #spotifyPlayerSection {
        padding: 0.75rem 1rem;
    }

    .spotify-player-container {
        gap: 1rem;
    }

    .spotify-player-info {
        flex: 0 0 200px;
    }

    .spotify-player-volume {
        display: none;
    }

    .spotify-player-album-art {
        width: 48px;
        height: 48px;
    }

    .spotify-player-track-name {
        font-size: 0.85rem;
    }

    .spotify-player-track-artist {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .spotify-player-info {
        flex: 0 0 auto;
        max-width: 120px;
    }

    .spotify-player-controls {
        gap: 0.25rem;
    }

    .spotify-player-buttons {
        gap: 0.5rem;
    }

    .spotify-player-button.play-pause {
        width: 36px;
        height: 36px;
    }

    .spotify-progress-time {
        font-size: 0.7rem;
        min-width: 35px;
    }
}
