.music-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1050;
  transition: transform 0.3s ease;
  padding: 0;
  background-color: rgba(50, 50, 50, 0.7); /* Fond semi-transparent */
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  opacity: 1 !important; /* Forcer l'opacité */
  display: block !important; /* Forcer l'affichage */
  pointer-events: auto !important; /* Assurer que les clics fonctionnent */
}

/* Symbole power */
.power-icon {
  width: 24px;
  height: 24px;
  fill: white;
  stroke: white;
  stroke-width: 2;
  transition: fill 0.3s ease, stroke 0.3s ease, transform 0.3s ease;
}

/* Animation lors de l'ouverture du player */
.music-btn.player-open {
  transform: rotate(180deg);
}

.music-btn.player-open .power-icon {
  transform: rotate(180deg);
  fill: #00ff00;
  stroke: #00ff00;
}

/* Barre d'animation verticale - position ajustée */
.vertical-bar {
  position: fixed;
  top: 65px; 
  left: 245px; /* Position uniformisée pour correspondre aux animations */
  width: 2px;
  height: 0; /* Commencer à 0 height */
  background-color: #006600;
  transform: translateY(-50%);
  z-index: 1100;
  opacity: 0;
  transition: none;
}

/* Animation d'apparition du point central */
@keyframes pointAppear {
  0% {
    height: 0;
    opacity: 0;
  }
  100% {
    height: 2px; /* Petit point */
  opacity: 1;
  }
}

/* Animation d'expansion verticale depuis le milieu vers le haut et le bas */
@keyframes expandVertical {
  0% {
    height: 2px; /* Partir du point */
    opacity: 1;
    transform: translateY(-50%); /* Centré */
  }
  100% {
    height: 100px; /* Hauteur finale de la barre */
  opacity: 1;
    transform: translateY(-50%); /* Reste centré */
  }
}

/* Animation de déplacement vers la droite */
@keyframes moveRight {
  0% {
    left: 245px;
    opacity: 1;
  }
  100% {
    left: 550px;
    opacity: 1;
  }
}

/* Animation de contraction à droite (pour l'ouverture) */
@keyframes contractRight {
  0% {
    height: 100px;
    opacity: 1;
  }
  100% {
    height: 0;
    opacity: 0;
  }
}

/* Animation de contraction à gauche (pour la fermeture) */
@keyframes contractLeft {
  0% {
    height: 100px;
    opacity: 1;
  }
  100% {
    height: 0;
    opacity: 0;
  }
}

/* Classes pour les contractions */
.vertical-bar.contracting-right {
  animation: contractRight 0.6s forwards;
  /* La position left reste celle de moveRight (550px) */
}

.vertical-bar.contracting-left {
  animation: contractLeft 0.6s forwards;
  /* La position left reste celle de moveLeft (245px) */
}

/* Animation de disparition du point */
@keyframes pointDisappear {
  0% {
    height: 2px;
    opacity: 1;
  }
  100% {
    height: 0;
    opacity: 0;
  }
}

/* Classes pour les phases d'animation */
.vertical-bar.point-appear {
  animation: pointAppear 0.4s forwards;
}

.vertical-bar.expanding {
  animation: expandVertical 0.6s forwards;
}

.vertical-bar.moving-right {
  animation: moveRight 1.2s ease-in-out forwards;
}

/* Animation de déplacement vers la gauche */
@keyframes moveLeft {
  0% {
    left: 550px;
    opacity: 1;
  }
  100% {
    left: 245px;
    opacity: 1;
  }
}

/* Classe pour les animations de mouvement - identiques en durée et timing */
.vertical-bar.moving-left {
  animation: moveLeft 1.2s ease-in-out forwards;
}

.vertical-bar.point-disappear {
  animation: pointDisappear 0.4s forwards;
}

/* Player avec fond transparent et bordures vertes */
.cylinder-player {
  position: fixed !important;
  top: 60px;
  right: -400px;
  width: 250px;
  height: 89px;
  background-color: transparent;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 102, 0, 0.6);
  padding: 10px;
  z-index: 1099;
  transition: right 0.5s ease-out;
  overflow: hidden;
  border: 1px solid #444;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.cylinder-player.active {
  left: 265px;
  top: 17px;
  position: fixed !important;
  z-index: 1099;
}

.cylinder-player .player-controls {
  opacity: 1;
  visibility: visible;
}
/* Ajuster le conteneur du cylindre avec un fond légèrement transparent */
.cylinder-container {
  height: 32px;
  perspective: 1000px;
  overflow: hidden;
  position: relative;
  background-color: rgba(0, 102, 0, 0.05);
  border-radius: 3px;
}

.cylinder {
  transform-style: preserve-3d;
  position: absolute;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease-out;
  border-radius: 15px;
  top: -4px;
}

/* Ajuster les pistes avec fond transparent et bordures vertes */
.track-item {
  position: absolute;
  width: 100%;
  height: 40px;
  background: rgba(0, 0, 0, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  padding: 0 10px;
  box-sizing: border-box;
  backface-visibility: hidden;
  border-radius: 4px;
  transition: all 0.5s;
  border: 1px solid #006600;
}

.track-item.active {
  background: rgba(0, 102, 0, 0.15);
  border: 1px solid #00aa00;
}

.track-item.exit {
  animation: exitToTop 0.8s forwards;
}

@keyframes exitToTop {
  0% {
    transform: translateY(0) rotateX(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-200px) rotateX(-90deg);
    opacity: 0;
  }
}

.track-info {
  margin-left: 15px;
  width: calc(100% - 20px);
  display: flex;
  align-items: center;
  justify-content: flex-start; 
  flex-wrap: nowrap; /* Empêche le retour à la ligne */
}

.track-name {
  font-weight: 200;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #2259ff;
  max-width: 60%; /* Limite la largeur du titre à 60% */
  margin-right: 8px; /* Espace entre le titre et l'artiste */
}

.artist-name {
  font-size: 12px;
  font-style: italic;
  color: #0a0dce;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 40%; /* Limite la largeur de l'artiste à 40% */
  text-align: left; /* Aligne l'artiste à droite */
}

.controls-group {
  display: flex;
  justify-content: center;
  overflow: visible; /* Pour que l'effet :after soit visible */
  position: relative;
  top: -2px;
}

/* Supprimer les styles actuels qui ne sont plus nécessaires */
.control-button {
  display: none !important; /* Masquer les anciens boutons */
}

/* Nouveau style pour les boutons de contrôle - basé sur le bouton principal */
.mini-button {
  position: relative;
  display: inline-block;
  margin: 0;
  z-index: 1050;
  transform: scale(0.65);
  margin-top: -5px;
}

/* Style de base pour les liens dans les mini-buttons */
.mini-button a {
  color: #ff3c00; /* Orange pour les symboles */
  font-family: Helvetica, sans-serif;
  font-weight: bold;
  font-size: 22px;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 15px;
  width: 38px;
  height: 38px;
  
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  text-shadow: 0px 1px 0px #000;
  filter: dropshadow(color=#000, offx=0px, offy=1px);
  
  /* Ombre plus foncée pour plus de contraste */
  -webkit-box-shadow: inset 0 1px 0 #99FF99, 0 10px 0 #002200;
  -moz-box-shadow: inset 0 1px 0 #99FF99, 0 10px 0 #002200;
  box-shadow: inset 0 1px 0 #99FF99, 0 10px 0 #002200;
  
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  
  transition: all 0.3s ease;
  transform: translateY(0);
}

/* Styles spécifiques pour bouton Previous */
.prev-button a {
  background: linear-gradient(to bottom, #00cc00, #009900, #007700);
  border-radius: 5px;

}

.prev-button a:active, .prev-button a.pressed {
  transform: translateY(10px);
  background: linear-gradient(to bottom, #00aa00, #008800, #006600);
  -webkit-box-shadow: inset 0 1px 0 #99FF99, inset 0 -3px 0 #002200;
  -moz-box-shadow: inset 0 1px 0 #99FF99, inset 0 -3px 0 #002200;
  box-shadow: inset 0 1px 0 #99FF99, inset 0 -3px 0 #002200;
}

.prev-button:after {
  content: "";
  height: 100%;
  width: 100%;
  padding: 4px;
  position: absolute;
  bottom: -15px;
  left: -4px;
  z-index: -1;
  background-color: #00560072;
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* Styles spécifiques pour bouton Play */
.play-button a {
  background: linear-gradient(to bottom, #00ee00, #00cc00, #00aa00);
  border-radius: 0;
  border-right: none;
  border-left: none;
}

.play-button a:active, .play-button a.pressed {
  transform: translateY(10px);
  background: linear-gradient(to bottom, #00cc00, #00aa00, #008800);
  -webkit-box-shadow: inset 0 1px 0 #99FF99, inset 0 -3px 0 #002200;
  -moz-box-shadow: inset 0 1px 0 #99FF99, inset 0 -3px 0 #002200;
  box-shadow: inset 0 1px 0 #99FF99, inset 0 -3px 0 #002200;
}

.play-button:after {
  content: "";
  height: 100%;
  width: 100%;
  padding: 4px;
  position: absolute;
  bottom: -15px;
  left: -4px;
  z-index: -1;
  background-color: #0056007d;
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* Styles spécifiques pour bouton Next */
.next-button a {
  background: linear-gradient(to bottom, #00bb00, #009900, #007700);
  border-radius: 0 5px 5px 0;
  border-left: none;
}

.next-button a:active, .next-button a.pressed {
  transform: translateY(10px);
  background: linear-gradient(to bottom, #009900, #007700, #005500);
  -webkit-box-shadow: inset 0 1px 0 #99FF99, inset 0 -3px 0 #002200;
  -moz-box-shadow: inset 0 1px 0 #99FF99, inset 0 -3px 0 #002200;
  box-shadow: inset 0 1px 0 #99FF99, inset 0 -3px 0 #002200;
}

.next-button:after {
  content: "";
  height: 100%;
  width: 100%;
  padding: 4px;
  position: absolute;
  bottom: -15px;
  left: -4px;
  z-index: -1;
  background-color: #0056007d;
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* Effet de survol commun pour tous les boutons */
.mini-button a:hover {
  text-shadow: 0 0 5px rgba(255, 149, 0, 0.7);
}

/* Animation de l'ombre lors du clic pour tous les boutons */
.mini-button a:active ~ .mini-button:after,
.mini-button a.pressed ~ .mini-button:after {
  bottom: -5px;
  height: 70%;
}

/* Style pour le conteneur des contrôles */
.player-controls {
  background-color: rgba(30, 30, 30, 0.6); /* Fond plus foncé */
  border: 1px solid #003300;
  border-radius: 10px;
}

/* Style pour les boutons de contrôle du player */
.control-button {
  width: 30px;
  height: 30px;
  background: transparent; /* Fond transparent */
  color: #00CC00; /* Vert vif pour les symboles */
  font-size: 16px;
  margin: 0 5px;
  cursor: pointer;
  border: 1px solid rgba(0, 204, 0, 0.3); /* Bordure vert transparent */
  position: relative;
  
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  text-shadow: 0 0 5px rgba(0, 204, 0, 0.5); /* Légère lueur */
  
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Effet de survol - illumination */
.control-button:hover {
  color: #00FF00; /* Vert plus lumineux au survol */
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.8), 0 0 20px rgba(0, 255, 0, 0.5); /* Lueur plus forte */
  border-color: rgba(0, 255, 0, 0.6);
  transform: scale(1.1); /* Légère augmentation de taille */
}

/* Effet d'activation - pression */
.control-button:active {
  transform: scale(0.95); /* Légère réduction pour effet d'enfoncement */
  color: #66FF66; /* Encore plus lumineux quand appuyé */
  text-shadow: 0 0 15px rgba(0, 255, 0, 1), 0 0 30px rgba(0, 255, 0, 0.8); /* Lueur maximale */
}

/* Bouton previous (violet) */
#prev-track {
  background: linear-gradient(to bottom, #00900a, #016a1f, #015a1a);
  -webkit-box-shadow: inset 0 1px 0 #04fd6cb4, 0 5px 0 #024f15;
  -moz-box-shadow: inset 0 1px 0 #04fd6cb4, 0 5px 0 #024f15;
  box-shadow: inset 0 1px 0 #04fd6cb4, 0 5px 0 #024f15;
}

#prev-track:active {
  top: 7px;
  background: linear-gradient(to bottom, #00900a, #016a1f, #015a1a);
  -webkit-box-shadow: inset 0 1px 0 #04fd6cb4, 0 5px 0 #024f15;
  -moz-box-shadow: inset 0 1px 0 #04fd6cb4, 0 5px 0 #024f15;
  box-shadow: inset 0 1px 0 #04fd6cb4, 0 5px 0 #024f15;
}

/* Bouton play/pause (orange) */
#play-pause {
  background: linear-gradient(to bottom, #00900a, #016a1f, #015a1a);
  -webkit-box-shadow: inset 0 1px 0 #04fd6cb4, 0 5px 0 #024f15;
  -moz-box-shadow: inset 0 1px 0 #04fd6cb4, 0 5px 0 #024f15;
  box-shadow: inset 0 1px 0 #04fd6cb4, 0 5px 0 #024f15;
}

#play-pause:active {
  top: 7px;
  background: linear-gradient(to bottom, #00900a, #016a1f, #015a1a);
  -webkit-box-shadow: inset 0 1px 0 #04fd6cb4, 0 5px 0 #024f15;
  -moz-box-shadow: inset 0 1px 0 #04fd6cb4, 0 5px 0 #024f15;
  box-shadow: inset 0 1px 0 #04fd6cb4, 0 5px 0 #024f15;
}

/* Bouton next (jaune) */
#next-track {
  background: linear-gradient(to bottom, #00900a, #016a1f, #015a1a);
  -webkit-box-shadow: inset 0 1px 0 #04fd6cb4, 0 5px 0 #024f15;
  -moz-box-shadow: inset 0 1px 0 #04fd6cb4, 0 5px 0 #024f15;
  box-shadow: inset 0 1px 0 #04fd6cb4, 0 5px 0 #024f15;
}

#next-track:active {
  top: 7px;
  background: linear-gradient(to bottom, #00900a, #016a1f, #015a1a);
  -webkit-box-shadow: inset 0 1px 0 #04fd6cb4, 0 5px 0 #024f15;
  -moz-box-shadow: inset 0 1px 0 #04fd6cb4, 0 5px 0 #024f15;
  box-shadow: inset 0 1px 0 #04fd6cb4, 0 5px 0 #024f15;
}

/* Conteneur des contrôles */
.player-controls:after {
  display: none;
}

#close-player {
  display: none;
}

/* Barre de progression avec thème vert */
.progress-bar {
  width: 100%;
  height: 4px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 2px;
  margin-top: 6px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 204, 0, 0.3);
}

.progress {
  height: 100%;
  background: linear-gradient(90deg, #00AA00, #00FF00);
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.6); /* Lueur pour la barre de progression */
}

.cylinder:before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.7);
  z-index: 2;
}

/* Style pour le track actif */
.track-item.active .track-name,
.track-item.active .artist-name {
  color: #0a0dce;
  text-shadow: 0 0 5px rgba(77, 122, 255, 0.5);
  font-weight: 200;
}

.track-name:after {
  content: "-";
  margin-left: 5px;
  color: #4d7aff;
  opacity: 0.7;

}

/* Style du conteneur et du bouton */
.button {
  position: absolute;
  display: inline-block;
  margin: 20px;
  z-index: 1050;
  left: 183px;
  top:20px;
  transform: scale(0.7);
}

.button a {
  color: white;
  font-family: Helvetica, sans-serif;
  font-weight: bold;
  font-size: 36px;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(to bottom, #FF9500, #FF5500, #CC3300); /* Dégradé orange-rouge */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 15px;
  width: 40px;
  height: 40px;
  
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  text-shadow: 0px 1px 0px #000;
  filter: dropshadow(color=#000, offx=0px, offy=1px);
  
  -webkit-box-shadow: inset 0 1px 0 #FFCC99, 0 10px 0 #992200; /* Surlignage orange clair, ombre rouge foncé */
  -moz-box-shadow: inset 0 1px 0 #FFCC99, 0 10px 0 #992200;
  box-shadow: inset 0 1px 0 #FFCC99, 0 10px 0 #992200;
  
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  
  transition: transform 0.3s ease;
}

.button a:active, .button a.pressed {
  top: 10px;
  background: linear-gradient(to bottom, #FF7700, #E04000, #AA2200); /* Dégradé plus foncé */
  
  -webkit-box-shadow: inset 0 1px 0 #FFCC99, inset 0 -3px 0 #992200;
  -moz-box-shadow: inset 0 1px 0 #FFCC99, inset 0 -3px 0 #992200;
  box-shadow: inset 0 1px 0 #FFCC99, inset 0 -3px 0 #992200;
}

.button:after {
  content: "";
  height: 100%;
  width: 100%;
  padding: 4px;
  position: absolute;
  bottom: -15px;
  left: -4px;
  z-index: -1;
  background-color: #661100; /* Rouge foncé pour l'effet after */
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
}

/* Symbole power */
.power-icon {
  width: 24px;
  height: 24px;
  fill: white;
  stroke: white;
  stroke-width: 2;
  transition: fill 0.3s ease, stroke 0.3s ease, transform 0.3s ease;
}

/* Animation lors de l'ouverture du player */
.button a.player-open .power-icon {
  transform: rotate(180deg);
  fill: #FFCC00; /* Jaune doré pour l'icône quand ouvert */
  stroke: #FFCC00;
}

/* État actif */
.button a.pressed .power-icon {
  fill: #FF9900; /* Orange pour l'icône quand enfoncé */
  stroke: #FF9900;
}

/* Supprimer les styles conflictuels */
#prev-track, #play-pause, #next-track,
#prev-track:active, #play-pause:active, #next-track:active {
  background: #004700;
  box-shadow: #003300;
}

.mobile-vertical-bar {
  position: fixed;
  width: 6px;
  background-color: #006600;
  z-index: 1200;
  pointer-events: none;
  height: 0;
  opacity: 0;
}

/* Assurer que ces styles ont la priorité absolue */
.mobile-vertical-bar.show {
  height: 2px !important;
  opacity: 1 !important;
  transition: none !important;
}

.mobile-vertical-bar.expand {
  height: 30px !important;
  transition: height 0.6s ease-out !important;
}

.mobile-vertical-bar.move-right {
  left: 90px !important;
  transition: left 1.2s ease-in-out !important;
}

.mobile-vertical-bar.move-left {
  left: 20px !important;
  transition: left 1.2s ease-in-out !important;
}

.mobile-vertical-bar.hide {
  height: 0 !important;
  opacity: 0 !important;
  transition: height 0.6s ease-in, opacity 0.6s ease-in !important;
}










