.roulette-container {
  text-align: center;
  margin: 20px auto;
}

.roulette-wrapper {
  position: relative;
  display: inline-block;
}

#wheelCanvas {
  display: block;
  margin: 0 auto;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

#wheelCanvas.flash {
  box-shadow: 0 0 40px 15px #ffff66;
  transition: box-shadow 0.2s ease;
}

.fixed-needle {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 20px solid #66ccff;
  z-index: 10;
}

#spinBtn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  padding: 10px 20px;
  font-size: 18px;
  background: #9933cc;
  color: #fff;
  border: none;
  border-radius: 50px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  cursor: pointer;
}

#spinBtn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

#resultDisplay {
  margin-top: 10px;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: bold;
  color: #663399;
  font-family: 'Dancing Script', cursive; /* même police que les sous-titres */
  line-height: 1.3;
  text-align: center;
}


#videoPlayerContainer {
  position: relative;
  margin: 30px auto;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  background: black;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

#videoPlayer {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Icônes musicales */
.star {
  position: fixed;
  top: -20px;
  pointer-events: none;
  z-index: 9999;
  font-size: 18px;
  color: #66ccff;
  animation: fall 6s linear forwards, blink 1s ease-in-out infinite;
  font-family: "Noto Emoji", "Noto Music", "Bravura", "Segoe UI Symbol", "Symbola", serif;
}

@keyframes fall {
  to {
    transform: translateY(100vh);
    opacity: 0;
  }
}

@keyframes blink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Sous-titres overlay transparents, bas de l’écran */
#subtitle {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  color: #d9c1f3; /* violet clair */
  font-family: 'Dancing Script', cursive;
  font-size: clamp(20px, 2vw, 36px) !important;
  line-height: 1.35; /* 🔹 espace entre les lignes */
  padding: 6px 12px;
  background-color: transparent;
  border-radius: 5px;
  z-index: 2147483647;
  pointer-events: none;
  max-width: 90%;
  white-space: pre-wrap;
  text-align: center;

  /* Ombre large et douce */
  text-shadow:
    -3px -3px 5px #000,
     3px -3px 5px #000,
    -3px  3px 5px #000,
     3px  3px 5px #000,
     0px  0px 6px #000;
}



.vjs-fullscreen #subtitle {
  font-size: clamp(80px, 12vw, 200px) !important;
}


.video-js {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

.video-js .vjs-fullscreen-control {
  display: none !important;
}

/* Contrôles personnalisés */
#customControls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}

#customControls button {
  padding: 6px 10px;
  font-size: 14px;
  background-color: #9871f1;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#customControls button:hover {
  background-color: #7651c8;
}

#progressContainer {
  width: 80%;
  height: 8px;
  background-color: #ddd;
  margin: 10px auto;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
}

#progressBar {
  width: 100%;
  height: 100%;
  background-color: #ccc;
  position: relative;
  border-radius: 4px;
}

#progressFill {
  width: 0%;
  height: 100%;
  background-color: #9871f1;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 4px;
}

#timeDisplay {
  text-align: center;
  font-size: 14px;
  color: white;
  margin-top: 5px;
}
#fullscreenExitBtn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 99999;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  padding: 6px 12px;
  font-size: 18px;
  cursor: pointer;
  display: none;
}

.video-container.vjs-fullscreen #fullscreenExitBtn,
.video-container:-webkit-full-screen #fullscreenExitBtn {
  display: block;
}

#fullscreenExitBtn {
  display: none;
}

.vjs-fullscreen #fullscreenExitBtn {
  display: block;
}
.vjs-big-play-button {
  display: none !important;
}

#timeDisplay {
  color: #b57edc; /* ou la couleur exacte de tes boutons */
  font-weight: bold;
  font-size: 16px;
}

body.fullscreen-active #subtitle {
  font-size: clamp(32px, 4vw, 64px) !important;
  line-height: 1.3 !important;
}

#videoOverlayContainer {
  position: relative;
  width: 100%;
  height: 100%;
}

#interludeOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 9999;
  pointer-events: none;
}
#creditsBox {
  position: absolute;         /* 🔹 fixe dans la page */
  top: 320px;                 /* même niveau que le lecteur */
  right: 15%;
  width: 170px;
  max-height: 30%;
  overflow-y: auto;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 13px;
  font-family: 'Dancing Script', cursive;
  border-radius: 6px;
  line-height: 1.3;
  white-space: pre-wrap;
  z-index: 2147483647;
}

#toggleCreditsBtn {
  position: absolute;
  top: 380px;              /* ajuste pour être aligné avec tes autres boutons */
  right: 5%;             /* décalé à gauche de creditsBox */
  z-index: 2147483647;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-family: 'Dancing Script', cursive;
  transition: background 0.2s;
}

#toggleCreditsBtn:hover {
  background: rgba(0,0,0,0.8);
}

#rouletteLayout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    width: 100%;
}

#carouselZone {
    width: 220px;
    flex-shrink: 0;
}

#rouletteZone {
    flex-shrink: 0;
}



