/* CSS personnalisé pour le player - Bonnes Ondes */

/* PLAYER GLOBAL - Layout amélioré */
.global-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    min-height: 110px;
}

/* Bouton play/pause */
.player-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e94560 0%, #d63651 100%);
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
}

.player-btn.playing {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
}

/* Boutons qualité - À droite du play */
.player-quality-buttons {
    display: none; /* Caché par défaut jusqu'à ce qu'une radio soit chargée */
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.quality-btn {
    padding: 8px 16px;
    border: 2px solid #e94560;
    background: transparent;
    color: #e94560;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s;
    text-transform: uppercase;
    min-width: 60px;
}

.quality-btn:hover {
    background: rgba(233, 69, 96, 0.2);
    transform: translateY(-2px);
}

/* Volume - Vertical à droite des boutons qualité */
.player-volume {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    margin: 0 5px;
    height: 100%;
}

#volume-slider {
    -webkit-appearance: slider-vertical;
    writing-mode: bt-lr;
    width: 8px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
    cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #e94560;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

#volume-slider::-webkit-slider-thumb:hover {
    background: #ff5577;
    transform: scale(1.2);
}

#volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #e94560;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

#volume-value {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: bold;
}

/* Artwork */
.player-artwork {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.player-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Track info - Prend tout l'espace restant */
.player-track-info {
    flex: 1;
    min-width: 0;
    color: white;
}

.player-track-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-track-artist {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-track-album {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* RESPONSIVE - Mobile */
@media (max-width: 768px) {
    .global-player {
        flex-wrap: wrap;
        padding: 15px;
        min-height: auto;
    }
    
    /* Masquer le volume sur mobile */
    .player-volume {
        display: none !important;
    }
    
    .player-btn {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    /* Masquer les boutons qualité sur mobile */
    .player-quality-buttons {
        display: none !important;
    }
    
    .player-artwork {
        width: 60px;
        height: 60px;
    }
    
    .player-track-info {
        flex: 1;
        min-width: 0;
    }
    
    .player-track-title {
        font-size: 1rem;
    }
    
    .player-track-artist {
        font-size: 0.9rem;
    }
    
    .player-track-album {
        font-size: 0.75rem;
    }
}

/* Ajuster le padding-bottom du container pour le player plus grand */
body {
    padding-bottom: 120px;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 150px;
    }
}
