/* === PLAYER GLOBAL === */
#bmp-player {
  position: fixed !important;
  z-index: 9999;
  background: #333;
  color: #fff;
  box-sizing: border-box;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;

  bottom: 20px;
  left: 20px;

  width: 60px;
  height: 60px;
  border-radius: 50%;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* === PLAYER OUVERT === */
#bmp-player.open {
  width: 260px;
  height: 110px;
  padding: 35px 10px 20px 10px; /* espace pour la croix */
  border-radius: 10px;

  display: flex !important;
  flex-direction: row !important;
  gap: 10px;
  overflow: hidden;
  cursor: default;
}

/* Icône musique fermée */
#bmp-player:not(.open)::before {
  content: "\f001";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 22px;
  color: #fff;
}

/* Masquer le contenu interne quand fermé */
#bmp-player:not(.open) .left-column,
#bmp-player:not(.open) .right-column,
#bmp-player:not(.open) .close-btn {
  display: none !important;
}

/* === COLONNE GAUCHE === */
.left-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#bmp-player .info {
  font-size: 13px;
  font-weight: 500;
  margin: 0;
}

/* === BOUTONS === */
#bmp-player .controls {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
}

#bmp-player .controls button {
  flex: 1;
  max-width: 40px;
  margin: 0 3px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
}

/* === COLONNE DROITE === */
.right-column {
  width: 30px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding-bottom: 10px; /* espace bas pour que le curseur ne touche pas */
}

/* === Slider Chrome / Edge / Safari (vertical natif) === */
#bmp-volume {
  writing-mode: bt-lr;
  -webkit-appearance: slider-vertical;
  height: 90px;
  width: 6px;
  accent-color: #0E6121;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

/* === FIREFOX — slider vertical via wrapper roté === */
@supports (-moz-appearance: none) {

  .volume-control {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 30px;
    position: relative;
    padding-bottom: 6px; /* ⭐ espace bas contrôlé */
  }

  .slider-wrapper {
    transform: rotate(-90deg);
    display: flex;
    justify-content: center;
    align-items: center;

    width: 90px;
    height: 24px;   /* ⭐ réduit : empêche dépassement en bas */
    position: relative;
  }

  #bmp-volume {
    appearance: none !important;
    writing-mode: horizontal-tb !important;

    width: 90px !important;
    height: 6px !important;

    position: absolute;
    left: 50%;
    translate: -60% 0px !important; /* ⭐ décale vers la gauche ET vers le bas */

    margin: 0;
    padding: 0;
  }

  #bmp-volume::-moz-range-track {
    background: #666;
    height: 6px;
    border-radius: 3px;
  }

  #bmp-volume::-moz-range-progress {
    background: #0E6121 !important;
    height: 6px;
    border-radius: 3px;
  }

  #bmp-volume::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    border: none;
  }
}



/* === BOUTON FERMER === */
#bmp-player .close-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}

#bmp-player.open .close-btn {
  opacity: 1;
  pointer-events: auto;
}

/* === PROMO === */
#bmp-player.show-promo {
  width: 220px !important;
  border-radius: 50px !important;
  justify-content: center;
  position: relative;
}

#bmp-player.hide-icon::before {
  content: none !important;
}

#bmp-player .promo-text {
  position: absolute;
  right: 20px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  animation: fadeFixed 4s ease forwards;
}

@keyframes fadeFixed {
  0% { opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; }
}

/* === ANIMATION PULSATION === */
#bmp-player.playing:not(.open) {
  box-shadow: 0 0 0 0 rgba(14, 97, 33, 0.6);
  animation: bmpPulse 2s infinite;
}

@keyframes bmpPulse {
  0%   { box-shadow: 0 0 0 0 rgba(14,97,33,.6); }
  70%  { box-shadow: 0 0 0 15px rgba(14,97,33,0); }
  100% { box-shadow: 0 0 0 0 rgba(14,97,33,0); }
}

/* === POSITION PC === */
@media (min-width: 769px) {
  #bmp-player {
    bottom: auto;
    left: auto;
    top: 20px;
    right: 20px;
  }
}

/* === MOBILE === */
@media (max-width: 769px) {

  #bmp-player:not(.open) {
    width: 48px !important;
    height: 48px !important;
  }

  #bmp-player:not(.open)::before {
    font-size: 18px !important;
  }

  .right-column {
    display: none !important;
  }

  #bmp-player .close-btn {
    left: auto !important;
    right: 8px !important;
  }

  #bmp-player.show-promo {
    width: 180px !important;
    height: 48px !important;
  }

  #bmp-player.show-promo .promo-text {
    right: 10px !important;
    font-size: 13px !important;
  }
}

/* 🛑 CROIX CACHÉE EN MODE BULLE */
#bmp-player:not(.open) .close-btn {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#bmp-player .promo-text i {
    color: #fff !important;   /* ⭐ forcer blanc */
    margin-left: 6px;
    margin-right: 6px;
    font-size: 15px;
}

