/* Container principal */
#radio-player-container {
  background-color: #ffffff;
}

/* Audio */
#audio-player {
  width: 100%;
  margin-bottom: 10px;
}

/* Player controls */
.player-controls {
  gap: 10px;
  display: flex;
  align-items: center;
}

/* Infos de la chanson */
.player-info {
  padding: 5px;
  flex-grow: 1;
}

#play-pause-btn {
  width: 80px;
  height: 80px;
  object-fit: cover;
  display: block;
}

#now-playing {
  font-size: 14px;
  color: #4A4A4A;
}

/* Barre de progression */
.progress-container {
  background-color: #a8a8a8;
  height: 8px;
  margin-top: 5px;
  cursor: pointer;
  border-radius: 0;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background-color: #4A4A4A;
  transition: none;
}

/* Boutons */
.btn {
  border-radius: 0;
  border: none;
}

/* Cover image */
.cover-container {
  position: relative;
  flex-shrink: 0;
}

#cover-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  display: block;
}

/* Indicateur de source */
.source-indicator {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #4A4A4A;
  color: #FFFFFF;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: bold;
  display: none;
  border-radius: 0;
}

/* Volume slider */
.volume-control {
  display: flex;
  align-items: center;
}

#volume-slider {
  width: 80px;
}

#rewind-btn, #forward-btn {
  width: 80px;
  height: 80px;
}

/* Contrôle de volume amélioré */
.volume-control-container {
  position: relative;
  display: inline-block;
}

.volume-btn {
  padding: 8px;
  transition: none;
  border: none;
  background: transparent;
  border-radius: 0;
}

.volume-btn:hover {
  background-color: #363636;
}

.volume-slider-popover {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: #FFFFFF;
  border-radius: 0;
  box-shadow: none;
  border: none;
  opacity: 0;
  visibility: hidden;
  transition: none;
  z-index: 1050;
  padding: 15px 8px;
  min-width: 50px;
}

.volume-control-container:hover .volume-slider-popover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Slider de volume vertical */
.volume-slider-vertical {
  writing-mode: bt-lr;
  -webkit-appearance: slider-vertical;
  width: 8px;
  height: 100px;
  padding: 0 5px;
  cursor: pointer;
}

/* Styles pour WebKit (Chrome, Safari, Edge) */
.volume-slider-vertical::-webkit-slider-track {
  width: 8px;
  background: #a8a8a8;
  border-radius: 0;
  border: none;
}

.volume-slider-vertical::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: #4A4A4A;
  border-radius: 0;
  cursor: pointer;
  border: 2px solid #FFFFFF;
  box-shadow: none;
}

.volume-slider-vertical::-webkit-slider-thumb:hover {
  background: #363636;
  transform: none;
}

/* Styles pour Firefox */
.volume-slider-vertical {
  -moz-orient: vertical;
}

.volume-slider-vertical::-moz-range-track {
  width: 8px;
  background: #a8a8a8;
  border-radius: 0;
  border: none;
}

.volume-slider-vertical::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #4A4A4A;
  border-radius: 0;
  cursor: pointer;
  border: 2px solid #FFFFFF;
  box-shadow: none;
}

.volume-slider-vertical::-moz-range-thumb:hover {
  background: #363636;
}

/* Indicateurs de volume */
.volume-muted .volume-btn i::before {
  content: "\f026" !important;
}

.volume-low .volume-btn i::before {
  content: "\f027" !important;
}

.volume-high .volume-btn i::before {
  content: "\f028" !important;
}

/* Flèche pour le popover */
.volume-slider-popover::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #FFFFFF;
}

/* Assurer que le popover est au-dessus de tout */
#radio-player-container {
  position: relative;
  z-index: 1000;
}

.volume-slider-popover {
  z-index: 1050;
}

/* Menu Paramètres */
.settings-control-container {
  position: relative;
  display: inline-block;
}

.settings-btn {
  border: none;
  width: 80px;
  height: 80px;
  background: transparent;
  border-radius: 0;
}

.settings-btn:hover {
  background-color: #363636;
}

.settings-popover {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: #FFFFFF;
  opacity: 0;
  visibility: hidden;
  transition: none;
  z-index: 1050;
  padding: 20px;
  min-width: 280px;
  margin-bottom: 10px;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.settings-control-container:hover .settings-popover {
  opacity: 1;
  visibility: visible;
}

/* Flèche pour le popover - supprimée pour le design carré */
.settings-popover::after {
  display: none;
}

/* Boutons de vitesse en une seule ligne avec taille égale */
.speed-buttons-line {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.speed-buttons-line::-webkit-scrollbar {
  height: 4px;
}

.speed-buttons-line::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 0;
}

.speed-buttons-line::-webkit-scrollbar-thumb {
  background: #a8a8a8;
  border-radius: 0;
}

.speed-buttons-line::-webkit-scrollbar-thumb:hover {
  background: #4A4A4A;
}

.speed-btn.active {
  background-color: #4A4A4A;
  color: #FFFFFF;
  border-color: #4A4A4A;
}

.speed-btn {
  font-size: 0.7rem;
  padding: 6px 4px;
  white-space: nowrap;
  flex-shrink: 0;
  flex: 1;
  min-width: 0;
  text-align: center;
  width: 100%;
  background-color: #f8f9fa;
  color: #4A4A4A;
  border: none;
  border-radius: 0;
}

.speed-btn:hover {
  background-color: #363636;
  color: #FFFFFF;
}

/* Volume dans le popup */
.volume-control-in-popup input[type="range"] {
  height: 6px;
  border-radius: 0;
  background: #a8a8a8;
}

.volume-control-in-popup input[type="range"]::-webkit-slider-thumb {
  background: #4A4A4A;
  border-radius: 0;
}

.volume-control-in-popup input[type="range"]::-moz-range-thumb {
  background: #4A4A4A;
  border-radius: 0;
}

#volume-percentage {
  min-width: 45px;
  font-size: 0.75rem;
  border-radius: 0;
  background-color: #4A4A4A;
  color: #FFFFFF;
}

/* Animation de rotation au survol */
@keyframes rotateCog {
  from { transform: rotate(0deg); }
  to { transform: rotate(90deg); }
}

.badge-color {
  background-color: #4A4A4A;
  color: #FFFFFF;
  padding: 2px 6px;
  border-radius: 0;
  text-align: center;
}

#radio-player-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  margin: 0;
  border-radius: 0;
  border: none;
}

/* Visualiseur audio */
.audio-visualizer {
  width: 100%;
  height: 60px;
  background: #f8f9fa;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
  padding: 10px 20px;
  border-bottom: 1px solid #a8a8a8;
}

.visualizer-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
  width: 100%;
  height: 100%;
}

.visualizer-bar {
  width: 8px;
  background: #4A4A4A;
  border-radius: 0;
  transition: height 0.08s ease-out;
  min-height: 4px;
  box-shadow: none;
}

/* Effet de brillance au survol */
.audio-visualizer:hover .visualizer-bar {
  background: #363636;
}
.time-display{
   margin-top: 6px;
}

/* Mobile : fixé en bas */
@media (max-width: 767.98px) {
  #radio-player-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    margin: 0;
    border-radius: 0;
    border: none;
  }
  
  .cover-container {
    margin-right: 0.5rem;
  }
  
  #cover-image {
    width: 60px;
    height: 60px;
  }
  
  .player-controls {
    gap: 5px;
  }
  
  .d-none.d-md-flex {
    display: none !important;
  }

  #play-pause-btn, .settings-btn {
    width: 60px;
    height: 60px;
  }


  /* Barre de progression */
  .progress-container {

  margin-top: 1px;

  }
  .time-display{
   margin-top: 2px;
  }
}


/* Compteur de temps */
.time-display {
    font-size: 0.75rem;
    color: #6c757d;
}

.time-current {
    font-weight: 500;
}

.time-duration {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Tooltip pour la barre de progression */
.progress-tooltip {
    position: absolute;
    bottom: 100%;
    left: 0;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 1000;
}

.progress-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #000;
}

.progress-container {
    position: relative;
    cursor: pointer;
}

.time-display {
    font-family:'SF Mono', 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
}

.time-current, .time-duration {
    min-width: 40px;
    
}