/* Styles pour le lecteur de musique */
.complete-music-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border-top: 1px solid #333;
    padding: 8px 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    height: 80px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

/* Suppression de la classe hidden pour que le lecteur soit toujours visible */
.complete-music-player.hidden,
.complete-music-player.visible {
    transform: none;
}

.player-container {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

/* Styles pour les contrôles du lecteur */
.player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-btn {
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 1rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

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

.play-btn {
    background: #3b82f6;
    width: 40px;
    height: 40px;
    color: white;
}

.play-btn:hover {
    background: #2563eb;
}

/* Barre de progression */
.progress-container {
    flex: 1;
    max-width: 500px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    font-size: 0.7rem;
    padding: 0 10px;
    min-width: 40px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.progress-bar {
    flex: 1;
    height: 3px;
    background: #4d4d4d;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: height 0.2s ease;
}

.progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #1db954;
    border-radius: 2px;
    transition: width 0.1s linear;
}

/* Informations sur la piste */
.song-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    max-width: 300px;
    overflow: hidden;
}

.song-thumbnail {
    width: 56px;
    height: 56px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    background: #1f2937;
    flex-shrink: 0;
}

.track-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.song-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.song-title {
    font-weight: 500;
    color: #fff;
    margin: 0 0 2px 0;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    font-size: 0.75rem;
    color: #b3b3b3;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Contrôles de volume */
.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    padding-right: 10px;
}

.volume-bar {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.volume-level {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #3b82f6;
    width: 70%;
}

/* Bouton de lecture aléatoire et de répétition */
.control-btn.active {
    color: #3b82f6;
}

/* Bouton pour réduire/étendre le lecteur */
.player-toggle {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 5px;
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(31, 41, 55, 0.9);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    width: 40px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.player-toggle:hover {
    color: white;
    background: #3b82f6;
}

/* Styles responsifs */
@media (max-width: 1024px) {
    .track-info {
        min-width: 180px;
    }
    
    .volume-controls {
        min-width: 100px;
    }
}

@media (max-width: 768px) {
    .complete-music-player {
        padding: 8px 15px;
    }
    
    .track-info {
        min-width: 150px;
    }
    
    .track-image {
        width: 40px;
        height: 40px;
    }
    
    .track-title {
        font-size: 0.9rem;
    }
    
    .track-artist {
        font-size: 0.75rem;
    }
    
}

@media (max-width: 576px) {
    .track-info {
        min-width: 120px;
    }
    
    .track-title {
        font-size: 0.8rem;
    }
    
    .track-artist {
        font-size: 0.7rem;
    }
    
    .control-btn {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .play-btn {
        width: 36px;
        height: 36px;
    }
    
    .preview-container {
        width: 95%;
        padding: 20px 15px;
    }
    
    .preview-image {
        width: 150px;
        height: 150px;
    }
    
    .preview-title {
        font-size: 1.2rem;
    }
    
    .preview-artist {
        font-size: 1rem;
    }
}
