/* Variables CSS pour un thème facile à modifier */
:root {
    --player-bg: #222222;       /* Arrière-plan du lecteur */
    --primary-color: #3f90ff;   /* Couleur d'accentuation (boutons, en direct) */
    --text-color: #ffffff;      /* Couleur du texte */
    --border-radius: 10px;      /* Coins arrondis */
}

body {
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f4f4f4; /* Arrière-plan de la page */
}

/* Conteneur principal du lecteur */
.audio-player-container {
    width: 400px; /* Largeur du lecteur */
    padding: 15px;
    background-color: var(--player-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: var(--text-color);
}

/* Contrôles (Play/Info/Volume) */
.player-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Boutons de contrôle (Play/Pause, Mute) */
.control-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 5px;
}

.control-btn:hover {
    color: var(--primary-color);
}

.control-btn:focus {
    outline: none;
}

/* Informations sur la piste */
.track-info {
    flex-grow: 1;
    margin: 0 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-title {
    display: block;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Indicateur "EN DIRECT" */
.live-indicator {
    font-size: 0.75rem;
    color: var(--primary-color);
    margin-top: 3px;
}

.live-indicator::before {
    content: '';
    color: red; /* Point rouge clignotant */
    animation: pulse 1.5s infinite;
}

/* Animation pour simuler le clignotement "EN DIRECT" */
@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Contrôle du volume */
.volume-control {
    display: flex;
    align-items: center;
}

.volume-control .control-btn {
    font-size: 1rem;
    margin-right: 5px;
}

#volumeSlider {
    -webkit-appearance: none; /* Cache le style par défaut dans Chrome/Safari */
    appearance: none;
    width: 70px;
    height: 5px;
    background: #555;
    border-radius: 2px;
    cursor: pointer;
}

/* Style de la poignée du curseur (Chrome/Safari) */
#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Style de la poignée du curseur (Firefox) */
#volumeSlider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}