/* ==========================================================================
   QUIZ'EM ALL v1.3.0 — STYLES DU BLIND TEST AUDIO (onglet dédié)
   Thème cohérent avec styles.css (matte metal / bronze) — aucune règle
   existante n'est modifiée : ce fichier est purement additif.
   ========================================================================== */

/* ---------- Structure du panneau ---------- */
#blindtestPanel .blindtest-body { padding: 4px 0; }

/* ---------- Hero ---------- */
.bt-hero {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(145deg, rgba(160, 132, 86, 0.16), rgba(20, 20, 23, 0.6));
  border: 1px solid var(--steel, #2a2a2f); border-radius: 14px;
  padding: 16px 18px; margin-bottom: 18px;
}
.bt-hero-icon { font-size: 2.4rem; line-height: 1; filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.35)); }
.bt-hero-txt h2 {
  margin: 0 0 4px; font-family: 'Rajdhani', 'Montserrat', sans-serif;
  color: var(--bronze-hi, #d4af37); font-size: 1.35rem; letter-spacing: .4px;
}
.bt-hero-txt p { margin: 0; color: var(--steel-light, #c2c6cc); font-size: .95rem; }
.bt-hero-txt strong { color: var(--bronze-hi, #d4af37); }

/* ---------- Configuration ---------- */
.bt-config { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.bt-config-row { display: flex; flex-direction: column; gap: 6px; }
.bt-label {
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: .9rem;
  color: var(--bronze, #a08456); letter-spacing: .4px; text-transform: uppercase;
}
.bt-select {
  background: var(--bg-card, #1a1a1e); color: var(--steel-light, #c2c6cc);
  border: 1px solid var(--steel, #2a2a2f); border-radius: 10px;
  padding: 10px 12px; font-size: 1rem; outline: none;
}
.bt-select:focus { border-color: var(--bronze, #a08456); }

/* ---------- Boutons ---------- */
.bt-btn {
  font-family: 'Rajdhani', 'Montserrat', sans-serif; font-weight: 700;
  border-radius: 10px; border: 1px solid var(--steel, #2a2a2f);
  background: linear-gradient(180deg, #1a1a1e, #141417); color: var(--steel-light, #c2c6cc);
  padding: 11px 18px; font-size: 1.02rem; cursor: pointer; letter-spacing: .3px;
  transition: border-color .15s ease, filter .15s ease;
}
.bt-btn:hover { border-color: var(--bronze, #a08456); filter: brightness(1.1); }
.bt-btn:disabled { opacity: .45; cursor: not-allowed; }
.bt-btn-start {
  background: var(--primary-gradient, linear-gradient(145deg, #c2a572, #a08456, #7a6440));
  color: #0a0a0c; border-color: transparent;
}
.bt-btn-ghost { background: transparent; }
.bt-btn-sm { padding: 7px 12px; font-size: .9rem; }
.bt-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.bt-actions-game { justify-content: center; margin-top: 14px; }

/* ---------- Notes ---------- */
.bt-note { color: var(--steel-light, #c2c6cc); font-size: .9rem; margin: 8px 0; }
.bt-note-dim { color: #8a8a92; font-size: .85rem; }
.bt-note-legal { font-size: .8rem; color: #7c7c85; border-top: 1px solid var(--steel, #2a2a2f); padding-top: 10px; }
.bt-note-legal a, .bt-note a { color: var(--bronze-hi, #d4af37); }

/* ---------- Mini statistiques locales ---------- */
.bt-mini-stats { display: flex; gap: 10px; margin: 16px 0; }
.bt-mini-stat {
  flex: 1; text-align: center; background: var(--bg-card, #1a1a1e);
  border: 1px solid var(--steel, #2a2a2f); border-radius: 10px; padding: 10px 6px;
}
.bt-mini-stat span { display: block; font-family: 'Rajdhani', sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--bronze-hi, #d4af37); }
.bt-mini-stat small { color: #8a8a92; font-size: .74rem; }

/* ---------- En-tête de jeu ---------- */
.bt-game-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.bt-progress { font-family: 'Rajdhani', sans-serif; font-weight: 700; color: var(--bronze, #a08456); letter-spacing: .4px; }
.bt-score { font-family: 'Rajdhani', sans-serif; font-weight: 800; color: var(--bronze-hi, #d4af37); font-size: 1.15rem; }
.bt-progressbar { height: 5px; background: var(--bg-inset, #0d0d0f); border-radius: 4px; overflow: hidden; margin-bottom: 16px; }
.bt-progressbar-fill { height: 100%; width: 0; background: var(--primary-gradient, linear-gradient(145deg, #c2a572, #a08456)); transition: width .3s ease; }

/* ---------- Scène de question ---------- */
.bt-stage { min-height: 220px; }
.bt-ask {
  font-family: 'Rajdhani', sans-serif; font-weight: 800; font-size: 1.5rem;
  color: var(--steel-light, #c2c6cc); text-align: center; margin: 6px 0 2px; letter-spacing: .4px;
}
.bt-genre-hint { text-align: center; color: #8a8a92; font-size: .85rem; margin: 0 0 14px; }

/* ---------- Lecteur ---------- */
.bt-player {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  background: var(--bg-card, #1a1a1e); border: 1px dashed var(--bronze-lo, #7a6440);
  border-radius: 14px; padding: 14px; margin-bottom: 16px;
}
.bt-btn-play { font-size: 1.05rem; min-width: 220px; }
.bt-btn-play.is-playing {
  border-color: var(--bronze-hi, #d4af37);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.25);
  animation: btPulse 1.6s ease-in-out infinite;
}
@keyframes btPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(212, 175, 55, 0.18); }
  50% { box-shadow: 0 0 18px rgba(212, 175, 55, 0.4); }
}
.bt-player-status { color: #9a9aa2; font-size: .88rem; }

/* ---------- Réponses ---------- */
.bt-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bt-answer {
  font-family: 'Rajdhani', 'Montserrat', sans-serif; font-weight: 700;
  background: linear-gradient(180deg, #1e1e23, #16161a); color: var(--steel-light, #c2c6cc);
  border: 1px solid var(--steel, #2a2a2f); border-radius: 12px;
  padding: 14px 10px; font-size: 1.02rem; cursor: pointer; letter-spacing: .3px;
  transition: border-color .12s ease, transform .08s ease;
}
.bt-answer:hover { border-color: var(--bronze, #a08456); }
.bt-answer:active { transform: scale(.98); }
.bt-answer:disabled { cursor: default; }
.bt-answer.is-correct {
  border-color: var(--success, #6f9a7e);
  background: linear-gradient(180deg, rgba(111, 154, 126, 0.22), rgba(111, 154, 126, 0.08));
  color: #bfe3ca;
}
.bt-answer.is-wrong {
  border-color: var(--danger, #b06a6a);
  background: linear-gradient(180deg, rgba(176, 106, 106, 0.22), rgba(176, 106, 106, 0.08));
  color: #e3bfbf;
}

/* ---------- Feedback + anecdote ---------- */
.bt-feedback { text-align: center; margin-top: 14px; font-size: 1.05rem; padding: 10px; border-radius: 10px; }
.bt-feedback.is-ok { background: rgba(111, 154, 126, 0.12); border: 1px solid rgba(111, 154, 126, 0.4); }
.bt-feedback.is-ko { background: rgba(176, 106, 106, 0.12); border: 1px solid rgba(176, 106, 106, 0.4); }
.bt-fb-time { color: #9a9aa2; font-size: .85rem; }
.bt-anecdote {
  margin-top: 14px; padding: 14px 16px; border-radius: 12px;
  background: rgba(212, 175, 55, 0.07); border-left: 3px solid var(--bronze-hi, #d4af37);
  color: var(--steel-light, #c2c6cc); font-size: .95rem;
}
.bt-anecdote strong { color: var(--bronze-hi, #d4af37); font-family: 'Rajdhani', sans-serif; letter-spacing: .4px; }
.bt-anecdote-src { display: block; margin-top: 8px; color: #7c7c85; font-size: .8rem; font-style: italic; }

/* ---------- Résultats ---------- */
.bt-results { text-align: center; margin-bottom: 18px; }
.bt-results h2 { font-family: 'Rajdhani', sans-serif; color: var(--bronze-hi, #d4af37); letter-spacing: .4px; margin: 8px 0; }
.bt-final-score { font-family: 'Rajdhani', sans-serif; font-weight: 800; font-size: 3rem; color: var(--bronze-hi, #d4af37); line-height: 1; }
.bt-final-score small { font-size: 1.1rem; color: var(--bronze, #a08456); }
.bt-final-sub { color: var(--steel-light, #c2c6cc); margin: 8px 0 4px; }
.bt-submit-status { color: #8a8a92; font-size: .88rem; min-height: 1.2em; }
.bt-submit-status a { color: var(--bronze-hi, #d4af37); }
.bt-results .bt-actions { justify-content: center; }
.bt-recap h3 { font-family: 'Rajdhani', sans-serif; color: var(--bronze, #a08456); letter-spacing: .4px; }
.bt-recap-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; font-size: .9rem;
  border-bottom: 1px solid rgba(42, 42, 47, 0.6); color: var(--steel-light, #c2c6cc);
}
.bt-recap-row.is-ok .bt-recap-artist { color: #bfe3ca; }
.bt-recap-row.is-ko .bt-recap-chose { color: #e3bfbf; }
.bt-recap-n { width: 24px; color: #7c7c85; flex: none; }
.bt-recap-track { flex: 1.2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-recap-artist { flex: 1; min-width: 0; color: var(--bronze, #a08456); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-recap-chose { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.bt-recap-time { width: 64px; text-align: right; color: #7c7c85; flex: none; }

/* ---------- Classement dédié ---------- */
.bt-lb-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.bt-lb-head h2 { font-family: 'Rajdhani', sans-serif; color: var(--bronze-hi, #d4af37); letter-spacing: .4px; margin: 0; }
.bt-lb-table .is-me { background: rgba(212, 175, 55, 0.09); }
.bt-lb-table small { color: #7c7c85; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .bt-config { grid-template-columns: 1fr; }
  .bt-answers { grid-template-columns: 1fr; }
  .bt-btn-play { width: 100%; }
  .bt-final-score { font-size: 2.4rem; }
  .bt-recap-row { flex-wrap: wrap; }
  .bt-recap-chose, .bt-recap-time { text-align: left; }
}
