/* ===== MODE AUDIO (OPENING) ===== */
#audio-section { display: none; }
#audio-section.active { display: block; padding: 10px 0 24px; }

.audio-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  max-width: 560px;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px var(--shadow);
}

.audio-question {
  font-family: 'Cinzel Decorative', cursive;
  font-size: clamp(0.9rem, 2.5vw, 1.15rem);
  color: var(--gold);
  text-align: center;
  margin-bottom: 22px;
  letter-spacing: 0.04em;
}

/* Lecteur */
.audio-player {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.audio-play-btn {
  flex-shrink: 0;
  padding: 10px 18px;
  background: var(--btn-bg);
  color: var(--btn-t);
  border: none;
  border-radius: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
}
.audio-play-btn:hover { opacity: 0.88; transform: scale(1.03); }
.audio-play-btn:active { transform: scale(0.97); }

.audio-bar-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.audio-bar-track {
  flex: 1;
  height: 8px;
  background: var(--wrong);
  border-radius: 4px;
  overflow: hidden;
}

.audio-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-l));
  border-radius: 4px;
  box-shadow: 0 0 6px var(--glow-gold);
}

.audio-bar-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 28px;
  text-align: right;
}

/* Volume */
.audio-volume-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.audio-vol-icon {
  font-size: 1.1rem;
  line-height: 1;
  min-width: 22px;
  text-align: center;
}

.audio-vol-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 5px;
  border-radius: 3px;
  background: var(--wrong);
  outline: none;
  cursor: pointer;
}
.audio-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  box-shadow: 0 0 4px var(--glow-gold);
}
.audio-vol-slider::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: none;
}

/* Dots tentatives */
.au-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}
.au-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border);
}
.au-dot-empty   { background: transparent; }
.au-dot-wrong   { background: var(--red); border-color: var(--red); }
.au-dot-correct { background: var(--green); border-color: var(--green); }

/* Status */
.audio-status {
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--text3);
}

/* Révélation */
.audio-reveal {
  background: linear-gradient(135deg, var(--card), rgba(200,148,10,0.08));
  border: 2px solid var(--gold);
  border-radius: 14px;
  padding: 20px 24px;
  max-width: 560px;
  margin: 0 auto 20px;
  text-align: center;
  box-shadow: 0 0 24px var(--glow-gold);
  animation: perfectPop 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}
.audio-reveal.hidden { display: none !important; }

.au-op-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 6px;
}
.au-op-name {
  font-family: 'Cinzel Decorative', cursive;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.au-op-artist {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  color: var(--text2);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.au-yt-wrap {
  margin-top: 14px;
  width: 100%;
}
.au-yt-iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 10px;
  display: block;
  box-shadow: 0 4px 16px var(--shadow);
}
.au-yt-link {
  display: block;
  margin-top: 8px;
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  color: var(--text3);
  text-decoration: none;
  letter-spacing: 0.06em;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.au-yt-link:hover { opacity: 1; color: var(--gold); }

.au-yt-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  padding: 9px 20px;
  background: #ff0000;
  color: #fff;
  border-radius: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
}
.au-yt-btn:hover { opacity: 0.88; transform: scale(1.03); }
