/* ==========================================================================
   11. PLAYLIST MODERNE & LECTEUR GLOBAL PERSISTANT
   ========================================================================== */
.playlist-scroll {
  max-height: 460px;
  overflow-y: auto;
}

.playlist-scroll::-webkit-scrollbar {
  width: 6px;
}

.playlist-scroll::-webkit-scrollbar-track {
  background: var(--secondary-dark);
}

.playlist-scroll::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

.playlist-item {
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.playlist-item:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

.playlist-item.active-track {
  background-color: rgba(242, 5, 5, 0.12) !important;
  border-left: 4px solid var(--primary) !important;
}

/* Personnalisation des sliders du lecteur global */
#global-player-bar input[type="range"]::-webkit-slider-thumb {
  background: var(--primary);
}

#global-player-bar input[type="range"]::-webkit-slider-runnable-track {
  background: rgba(255, 255, 255, 0.2);
}

/* Décalage du bouton BackToTop quand le lecteur est ouvert */
body.player-open #backToTop {
  bottom: 85px !important;
}

/* Centrage optique parfait des icônes Play et Pause */
#player-play-pause i,
.play-trigger i,
.play-episode-btn i {
  position: relative;
  left: 1px; /* Petit décalage optique vers la droite pour le triangle play */
  line-height: 0;
}