/* Ajoutez ces styles à votre fichier CSS */
.audio-player .controls .toggle-play {
    outline: none;
    cursor: pointer !important;
    background: none !important;
    border: none !important;
    font-size: 1.5em !important;
    color: white !important;
}

.audio-player .controls .toggle-play:focus {
    outline: none;
    box-shadow: none;

}

.volume-slider-container {
    display: none; /* Par défaut, masqué */
}

.volume-slider-container.active {
    display: flex; /* Afficher quand actif */
}

#volumeSlider.active {

    display: block;
}

.volume-slider-container {
    display: none;
    position: absolute;
    bottom: 150px;
    right: 28px;
    width: 110px; /* Adjust width as needed */
    height: 50px; /* Adjust height as needed */
    background: white; /* Background color */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Box shadow for depth */
    padding: 5px; /* Padding inside the container */
    align-items: center;
    justify-content: center;
    transform: rotate(-90deg);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-top: -8px;
    margin-left: -8px;
    border: 2px solid #ccc;
    border-top-color: #f57b00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading i {
    opacity: 0;
}
.emission .teaser-title {
    padding: 5px 15px !important;
}
/* Style for the volume slider */
#volumeSlider {
    width: 100%;
    height: 10px;
    -webkit-appearance: none; /* Override default CSS styles */
    appearance: none;
    background: transparent; /* Remove default background */
    cursor: pointer;
    outline: none; /* Remove outline */
    padding: 0; /* Remove padding */
    margin: 0; /* Remove margin */
}

/* Webkit-specific styles for the slider thumb and track */
#volumeSlider::-webkit-slider-thumb, #progressBar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: black; /* Thumb color */
    border-radius: 50%;
    cursor: pointer;
    margin-top: -5px; /* Center the thumb */
}

#volumeSlider::-webkit-slider-runnable-track, #progressBar::-webkit-slider-runnable-track {
    width: 100%;
    height: 10px;
    cursor: pointer;
    background: linear-gradient(to right, #000 0%, #000 var(--webkit-slider-thumb-position), #ccc var(--webkit-slider-thumb-position), #ccc 100%);
    border-radius: 5px;
}

/* Moz-specific styles for the slider thumb and track */
#volumeSlider::-moz-range-thumb, #progressBar::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: black; /* Thumb color */
    border-radius: 50%;
    cursor: pointer;
}

#volumeSlider::-moz-range-track, #progressBar::-moz-range-track {
    width: 100%;
    height: 10px;
    cursor: pointer;
    background: linear-gradient(to right, #000 0%, #000 var(--moz-range-thumb-position), #ccc var(--moz-range-thumb-position), #ccc 100%);
    border-radius: 5px;
}

/* MS-specific styles for the slider thumb and track */
#volumeSlider::-ms-thumb, #progressBar::-ms-thumb {
    width: 20px;
    height: 20px;
    background: black; /* Thumb color */
    border-radius: 50%;
    cursor: pointer;
}

#volumeSlider::-ms-track, #progressBar::-ms-track {
    width: 100%;
    height: 10px;
    cursor: pointer;
    background: transparent; /* Track color */
    border-color: transparent;
    color: transparent;
}

#volumeSlider::-ms-fill-lower, #progressBar::-ms-fill-lower {
    background: black; /* Lower fill color */
    border-radius: 5px;
}

#volumeSlider::-ms-fill-upper, #progressBar::-ms-fill-upper {
    background: #ddd; /* Upper fill color */
    border-radius: 5px;
}

/* Force icons to be black */
#volumeBtn {

    width: 40px;
    height: 40px;
}

#volumeBtn i, #closePlayerBtn i {
    color: black !important;
}

.dropdown.custom-dropdown, .custom-dropdown .dropdown-menu {
    width: 180px;
}

.web-radio-block .owl-carousel .item {
    text-align: center;
}

#web-radio-block .owl-item.active {
    cursor: pointer;
    width: 207px;
    height: 207px;
    border-radius: 50%;
    margin-bottom: 10px;
}

#audioPlayer {
    display: none;
}

.web-radio-block .owl-carousel button.owl-prev span, .web-radio-block .owl-carousel button.owl-next span {
    font-size: 30px;
    color: #1C5BAE;
}

/* Style du lecteur audio flottant */
#playPauseBtn:focus, #volumeBtn:focus {
    outline: none;
}

.web-radio-block .owl-theme .owl-nav [class*='owl-']:hover {
    background: unset !important;
}

.floating-player {
    position: fixed;
    bottom: -150px; /* Masqué initialement */
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transition: bottom 0.3s;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    max-width: 90%; /* Largeur maximale */
    width: 900px; /* Largeur fixe pour les grands écrans */
    border-radius: 10px; /* Coins arrondis */
    display: flex;
    flex-direction: column;
}

.floating-player-content {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.player-status {
    display: inline-flex;
    align-items: center;
    padding: 1px 10px; /* Réduire la taille du statut */
    background-color: #fff;
    border-radius: 12px;
    font-size: 10px; /* Réduire la taille du texte du statut */
    color: #f57b00;
    font-weight: bold;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    margin-bottom: 3px;
    margin-right: 5px;
    max-width: max-content; /* S'adapte à la taille du texte */

}

.player-status span {
    display: inline-block;
    margin-right: 3px; /* Espace entre le point et le texte */
}

.player-status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: red;
    border-radius: 50%;
    margin-right: 5px;
}

.player-title {
    font-size: 18px;
    color: #333;
    font-weight: bold; /* Titre en gras */
    /* Alignement à droite de l'image */
    margin: 0;
}

.player-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.player-info img {
    width: 80px;
    height: 80px;
    margin-right: 10px;
}

.player-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Aligner les éléments en haut */
    margin-left: 5px; /* Ajouter une marge pour ajuster l'alignement */
    width: 100%;
}

.player-info #playerTitle {
    font-weight: bold;
    margin: 0 0 15px;
}

.player-controls {
    display: flex;
    align-items: center;
}

.player-controls button {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    margin-left: 10px;

}

#playPauseBtn {
    width: 40px;
    height: 40px;
    background-color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(245, 123, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

#playPauseBtn i {
    color: #f57b00; /* Orange color */
    font-size: 0.55em;
}

#playPauseBtn:hover {
    box-shadow: 0 3px 10px rgba(245, 123, 0, 0.5);
    transform: scale(1.1);
}

#playPauseBtn:active {
    transform: scale(0.9);
}

#floatingPlayer.visible {
    bottom: 20px; /* Visible */
}

/* Style selecteur header */
.custom-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 0px 10px 0px 0px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    cursor: pointer;
    position: relative;
    z-index: 1001; /* Ensure it is above other elements */
    width: 100%;

}

.dropdown-toggle::after {
    transition: transform 0.3s ease !important; /* Ajoutez cette ligne pour la transition */

}

.custom-dropdown .dropdown-toggle img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.custom-dropdown .dropdown-toggle::after {
    color: #f57b00;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.custom-dropdown .dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
    margin: 0;
    z-index: 1001; /* Ensure it is above other elements */
}

.custom-dropdown .dropdown-item span {
    flex-grow: 1; /* Permet au texte de prendre tout l'espace disponible */
    font-size: 14px; /* Taille du texte */
    color: #000; /* Couleur du texte */
}

.custom-dropdown .dropdown-item {
    width: auto; /* Laisser la largeur s'ajuster automatiquement */
    display: flex;
    align-items: center;
    padding: 5px 10px;
    font-size: 14px; /* Match the font size of the toggle button */
}

.custom-dropdown .dropdown-item img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.custom-dropdown .dropdown-item:hover {
    background-color: #f0f0f0;
}

.sub-nav .separator {
    width: 3px;
    height: 10px;
    background-color: #4F4F4F;
    margin: 0 10px 0 0;
    border-radius: 10px;
}

.custom-dropdown .dropdown-toggle span {
    flex-grow: 1;
}

.custom-dropdown .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.web-radio-block .owl-nav,
.web-radio-block .owl-dots {
    display: flex;
    align-items: center;
}

.web-radio-block .owl-dots {
    display: inline;
    margin-top: 47px;
    margin-left: 20px;
}

.web-radio-block .owl-nav {
    position: absolute;
    right: 10px;
    bottom: -10px;

}

/* Conteneur de la barre de progression */
.player-progress-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    width: 100%; /* Aligner avec les autres éléments */
    background-color: #f5f5f5;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Barre de progression */
.progress-bar {
    flex-grow: 1; /* Étendre la barre de progression */
    width: 75%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #f57b00 0%, #f78d00 50%, #f7a600 100%);
    border-radius: 5px;
    outline: none;
    transition: background 0.3s;
    cursor: pointer;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #ff6f61;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s;
}

.progress-bar::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #ff6f61;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s;
}

/* Texte de l'affichage du temps */
.time-display {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    margin: 0 5px;
}

.time-display i {
    margin-left: 4px;
    color: #f57b00;
}

@media (max-width: 1024px) {
    #volumeBtn {
        display: none;
    }

    #web-radio-block .owl-item.active {
        width: 150px;
        height: 150px;
    }

    .web-radio-block .owl-carousel .item img {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .sub-nav-fixed .player {
        flex-direction: unset !important;
        width: unset !important;
    }

    .custom-dropdown .dropdown-toggle img {
        width: 20px;
        height: 20px;
        margin-right: 5px;
    }

    #web-radio-block .owl-item.active {
        width: 100px;
        height: 100px;
    }

    .web-radio-block .owl-carousel .item img {
        width: 100px;
        height: 100px;
    }

    .dropdown.custom-dropdown, .custom-dropdown .dropdown-menu {
        width: 120px;
    }

    .button {
        margin: auto;
    }

    /* Adjust dropdown text */
    .custom-dropdown .btn .dropdown-toggle span#selected-text, .separator {
        display: none;
    }

    .custom-dropdown .btn .dropdown-toggle::after {
        content: "Les radios";
    }

    /* Adjust dropdown menu */
    .custom-dropdown .dropdown-menu {
        width: 100%; /* Full width */
    }

    /* Adjust play button text */
    .info .status span, .sub-nav .player .info .status i {
        display: none; /* Hide "En direct" text */
    }

    .sub-nav-fixed .player .info {
        width: 0 !important;
    }

    .sub-nav-fixed .player {
        flex-direction: row !important;
        width: 180px !important;
    }

    .info .status i {
        display: inline-block; /* Show only icon */
    }

    .player-controls button {
        margin-left: 5px; /* Réduire l'espacement entre les boutons */
    }

    /* Ajuster la largeur du conteneur du titre */
    .floating-player-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .floating-player-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .player-info img {
        width: 60px; /* Réduire la taille de l'image sur mobile */
        height: 60px;
    }

    .player-progress-container {
        padding: 2px 0;
    }

    .progress-bar {
        height: 5px; /* Hauteur réduite sur mobile */
    }

    .time-display {
        font-size: 12px;
        margin: 0 3px;
    }

    .player-title {
        font-size: 11px;
    }

    #progressBar::-webkit-slider-thumb,
    #progressBar::-moz-range-thumb,
    #progressBar::-ms-thumb {
        width: 10px !important;
        height: 10px !important;
    }
}


/* Responsive adjustments */
@media (max-width: 600px) {
    .custom-dropdown .dropdown-toggle {
        font-size: 12px;
        padding: 8px;
    }

    .custom-dropdown .dropdown-item {
        font-size: 11px;
        padding: 3px;
    }
}

@media (max-width: 480px) {
    .custom-dropdown .dropdown-toggle {
        font-size: 9px;
        padding: 5px;
    }


    .custom-dropdown .dropdown-item {
        font-size: 11px;
        padding: 3px;
    }

    .player-controls button {
        font-size: 1.2em;

    }

    .player-status {
        padding: 1px;
    }


    #playPauseBtn {
        width: 35px;
        height: 35px;
    }

    .player-controls button {
        font-size: 1em;
    }

    .volume-slider-container {
        width: 80px;
        height: 40px;
    }

    #volumeSlider {
        width: 100%;
        height: 8px;
    }

    #volumeSlider::-webkit-slider-thumb {
        width: 16px;
        height: 16px;
        margin-top: -4px;
    }

    #volumeSlider::-moz-range-thumb {
        width: 16px;
        height: 16px;
    }

    #volumeSlider::-ms-thumb {
        width: 16px;
        height: 16px;
    }
}

