/* Années 2000 : esthétique Y2K (chrome, gel, écran cathodique) */

:root {
  --bg: #e9f1fb;
  --bg-2: #d3e3f7;
  --panel: #ffffff;
  --panel-2: #f3f7fd;
  --ink: #0b1633;
  --ink-soft: #46557a;
  --line: #b9cbe6;
  --aqua: #0096d6;
  --aqua-hi: #5fd3ff;
  --pink: #e0218a;
  --lime: #6ac400;
  --gold: #f5b700;
  --focus: #ff2fa0;
  --screen: #071028;
  --shadow: 0 6px 18px rgba(18, 48, 110, 0.18);
  --radius: 16px;
  --chrome: linear-gradient(180deg, #ffffff 0%, #c9d6e8 38%, #7d8ea8 50%, #e7eef8 62%, #9fb0c8 100%);
  --gel-top: rgba(255, 255, 255, 0.75);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #060c24;
    --bg-2: #0b1a4a;
    --panel: #0f1d4d;
    --panel-2: #13245c;
    --ink: #eaf2ff;
    --ink-soft: #a9badf;
    --line: #2a3f86;
    --aqua: #22b8ff;
    --aqua-hi: #8be3ff;
    --pink: #ff4fb0;
    --lime: #9cf23a;
    --gold: #ffd23f;
    --screen: #020611;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    --gel-top: rgba(255, 255, 255, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #060c24;
  --bg-2: #0b1a4a;
  --panel: #0f1d4d;
  --panel-2: #13245c;
  --ink: #eaf2ff;
  --ink-soft: #a9badf;
  --line: #2a3f86;
  --aqua: #22b8ff;
  --aqua-hi: #8be3ff;
  --pink: #ff4fb0;
  --lime: #9cf23a;
  --gold: #ffd23f;
  --screen: #020611;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --gel-top: rgba(255, 255, 255, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Verdana, Tahoma, "Trebuchet MS", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--pink) 22%, transparent), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, color-mix(in srgb, var(--aqua) 28%, transparent), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 420px);
  background-color: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--aqua); }
a:hover { color: var(--pink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: var(--panel); padding: 8px 12px; }

/* ---------- En-tête ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  background: linear-gradient(180deg, #1a3a9a, #0a1a4a);
  border-bottom: 2px solid #5fd3ff;
  box-shadow: 0 4px 16px rgba(0, 20, 80, 0.35);
}
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.logo { position: relative; text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.logo__chrome {
  font-family: Audiowide, Verdana, sans-serif;
  font-size: clamp(17px, 3.4vw, 30px);
  letter-spacing: 0.03em;
  background: var(--chrome);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #0a1a4a) drop-shadow(0 0 10px rgba(95, 211, 255, 0.55));
}
.logo__sub { font-family: VT323, monospace; font-size: 18px; color: #8be3ff; letter-spacing: 0.08em; margin-top: 2px; }
.logo__star { position: absolute; right: -16px; top: -6px; color: #fff; font-size: 16px; animation: twinkle 2.4s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0.2; transform: scale(0.7) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(20deg); } }
.top__nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- Boutons « gel » façon Aqua / Luna ---------- */
.gel {
  --c: var(--aqua);
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  font: 700 14px/1 Verdana, Tahoma, sans-serif; color: #fff; text-decoration: none;
  padding: 10px 16px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 60%, #000);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 55%, #fff) 0%, var(--c) 50%, color-mix(in srgb, var(--c) 75%, #000) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 2px 6px rgba(0, 0, 0, 0.25);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  cursor: pointer; overflow: hidden; white-space: nowrap;
}
.gel::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 2px; height: 45%;
  border-radius: 999px; background: linear-gradient(180deg, var(--gel-top), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.gel:hover { filter: brightness(1.08) saturate(1.1); color: #fff; }
.gel:active { transform: translateY(1px); }
.gel--ghost { --c: #2c55c9; }
.gel--zap { --c: var(--pink); }
.gel--lime { --c: #3d9a00; }
.gel--small { padding: 7px 12px; font-size: 13px; }

/* ---------- Héros ---------- */
.hero { margin: 26px 0 18px; display: grid; gap: 18px; grid-template-columns: 1.4fr 1fr; align-items: center; }
.hero h1 { font-family: Audiowide, Verdana, sans-serif; font-size: clamp(24px, 4vw, 40px); line-height: 1.1; margin: 0 0 10px; }
.hero h1 em { font-style: normal; color: var(--pink); }
.hero p { margin: 0; color: var(--ink-soft); max-width: 60ch; }
.counter {
  display: inline-flex; gap: 2px; margin-top: 14px; padding: 6px 8px; border-radius: 8px;
  background: #000; border: 2px solid #666; box-shadow: inset 0 0 0 2px #222;
  font-family: VT323, monospace; font-size: 26px; color: #39ff14; letter-spacing: 0.1em;
}
.counter span { padding: 0 4px; background: #111; border-radius: 3px; }
.counter span.counter__label { margin-left: 8px; padding: 0 4px; background: none; font: 12px/1.3 Verdana, sans-serif; letter-spacing: 0; color: #9fe8a0; align-self: center; }
.hero__tv { justify-self: end; width: 100%; max-width: 380px; }

/* ---------- Barre de recherche et filtres ---------- */
.panel {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.controls { padding: 14px; display: grid; gap: 12px; }
.controls > * { min-width: 0; }
.search { display: flex; gap: 8px; }
.search input {
  flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--ink);
  padding: 11px 16px; border-radius: 999px; border: 2px solid var(--line);
  background: var(--panel); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.12);
}
.search input::placeholder { color: var(--ink-soft); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters label { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.select {
  font: inherit; font-size: 14px; color: var(--ink); background: var(--panel);
  border: 2px solid var(--line); border-radius: 10px; padding: 7px 10px; max-width: 100%;
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font: 700 12px/1 Verdana, sans-serif; padding: 7px 11px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); color: var(--ink); background: linear-gradient(180deg, var(--panel), var(--panel-2));
}
.chip[aria-pressed="true"] { color: #fff; border-color: transparent; background: linear-gradient(180deg, var(--aqua-hi), var(--aqua)); text-shadow: 0 1px 1px rgba(0,0,0,.3); }
.check { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; cursor: pointer; }
.result-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 18px 2px 10px; flex-wrap: wrap; }
.result-line h2 { margin: 0; font-family: Audiowide, Verdana, sans-serif; font-size: 20px; }
.muted { color: var(--ink-soft); font-size: 13px; }

/* ---------- Rangées et grille ---------- */
.row-title { font-family: Audiowide, Verdana, sans-serif; font-size: 20px; margin: 26px 2px 10px; display: flex; align-items: center; gap: 8px; }
.row-title .burst {
  font: 700 11px/1 Verdana, sans-serif; color: #3a2400; background: var(--gold); padding: 6px 8px; border-radius: 4px; transform: rotate(-6deg);
  box-shadow: 0 2px 0 #b38600;
}
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 230px); gap: 14px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; }
.strip > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }

.card {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(18, 48, 110, 0.28); color: var(--ink); }
.card__screen {
  position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 40%, var(--c1), var(--c2));
  color: #fff;
}
.card__screen::after { /* lignes de balayage */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0,0,0,0.12) 0 2px, transparent 2px 4px),
              radial-gradient(130% 100% at 50% 0%, rgba(255,255,255,0.35), transparent 45%);
}
.card__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__initials { font-family: Audiowide, Verdana, sans-serif; font-size: 34px; letter-spacing: .04em; text-shadow: 0 2px 0 rgba(0,0,0,.35), 0 0 18px rgba(255,255,255,.35); }
.card__bug { /* logo de chaîne en incrustation */
  position: absolute; top: 8px; right: 8px; z-index: 1; font: 700 11px/1 Verdana, sans-serif; padding: 4px 6px; border-radius: 4px;
  background: rgba(255,255,255,0.88); color: #0b1633;
}
.card__badge {
  position: absolute; left: 8px; bottom: 8px; z-index: 1; font: 700 11px/1 Verdana, sans-serif; padding: 5px 7px; border-radius: 999px;
  background: linear-gradient(180deg, #ff6fc3, var(--pink)); color: #fff;
}
.card__culte { position: absolute; left: 8px; top: 8px; z-index: 1; font: 700 10px/1 Verdana, sans-serif; padding: 4px 6px; border-radius: 4px; background: var(--gold); color: #3a2400; transform: rotate(-4deg); }
.card__body { padding: 10px 12px 12px; display: grid; gap: 4px; }
.card__title { font-weight: 700; font-size: 15px; line-height: 1.25; }
.card__meta { font-size: 12px; color: var(--ink-soft); }
.more { display: flex; justify-content: center; margin: 22px 0 8px; }
.empty { padding: 30px; text-align: center; }

/* ---------- Téléviseur cathodique ---------- */
.tv {
  position: relative; padding: 18px 18px 34px; border-radius: 28px;
  background: linear-gradient(180deg, #d9e2ee, #8c9ab0 55%, #b9c5d6);
  border: 1px solid #66748c; box-shadow: var(--shadow), inset 0 2px 0 #fff;
}
.tv__screen {
  position: relative; aspect-ratio: 4 / 3; border-radius: 22px / 26px; overflow: hidden;
  background: var(--screen); box-shadow: inset 0 0 40px rgba(0,0,0,0.9), 0 0 0 4px #333;
}
.tv--wide .tv__screen { aspect-ratio: 16 / 9; }
.tv__screen iframe, .tv__screen .poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tv__screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 90% at 50% 10%, rgba(255,255,255,0.12), transparent 40%),
              repeating-linear-gradient(180deg, rgba(0,0,0,0.18) 0 1px, transparent 1px 3px);
}
.tv__screen.is-playing::after { display: none; }
.tv__knobs { position: absolute; bottom: 8px; right: 22px; display: flex; gap: 8px; }
.tv__knobs i { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #556); }
.tv__brand { position: absolute; bottom: 9px; left: 24px; font-family: Audiowide, sans-serif; font-size: 11px; color: #3b4760; letter-spacing: .2em; }
.noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .55; animation: snow .35s steps(4) infinite;
}
@keyframes snow { 0% { background-position: 0 0; } 25% { background-position: -40px 20px; } 50% { background-position: 30px -30px; } 75% { background-position: -20px -10px; } }
.tv__msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 16px; font-family: VT323, monospace; font-size: clamp(18px, 3vw, 26px); color: #e8fff0; text-shadow: 0 0 8px #39ff14; }
.poster { cursor: pointer; background: #000; }
.poster img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.poster .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%;
  background: linear-gradient(180deg, #ff7cc8, var(--pink)); box-shadow: 0 0 0 4px rgba(255,255,255,.7), 0 6px 18px rgba(0,0,0,.5);
  display: grid; place-items: center; color: #fff; font-size: 30px;
}

/* ---------- Fiche émission ---------- */
.back { display: inline-block; margin: 20px 0 6px; font-size: 13px; }
.show { display: grid; gap: 22px; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); margin-top: 8px; }
.show__title { font-family: Audiowide, Verdana, sans-serif; font-size: clamp(26px, 4.5vw, 42px); line-height: 1.08; margin: 0 0 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag { font: 700 12px/1 Verdana, sans-serif; padding: 6px 9px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.tag--cat { background: linear-gradient(180deg, var(--aqua-hi), var(--aqua)); color: #fff; border-color: transparent; }
.facts { padding: 14px 16px; display: grid; gap: 10px; }
.facts dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; }
.facts dt { color: var(--ink-soft); font-size: 13px; }
.facts dd { margin: 0; font-weight: 700; }
.quote {
  position: relative; margin: 16px 0; padding: 14px 16px 14px 46px; border-radius: 14px;
  background: linear-gradient(180deg, #fff6c9, #ffe27a); color: #3a2400; border: 1px solid #e5b800; font-weight: 700;
}
.quote::before { content: "“"; position: absolute; left: 12px; top: -6px; font: 64px/1 Georgia, serif; color: #c48a00; }
.desc p { margin: 0 0 12px; }
.playlist { margin-top: 14px; display: grid; gap: 8px; }
.playlist h3 { margin: 6px 0 2px; font-size: 15px; }
.pl-item {
  display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center; text-align: left; width: 100%;
  padding: 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; cursor: pointer;
}
.pl-item[aria-current="true"] { border-color: var(--pink); box-shadow: 0 0 0 2px color-mix(in srgb, var(--pink) 35%, transparent); }
.pl-item img { width: 96px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }
.pl-item b { display: block; font-size: 13px; line-height: 1.3; }
.pl-item small { color: var(--ink-soft); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* ---------- Frise ---------- */
.timeline { margin-top: 18px; display: grid; gap: 18px; }
.year { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: start; }
.year__label {
  position: sticky; top: 84px; font-family: VT323, monospace; font-size: 34px; color: #39ff14; background: #000;
  border-radius: 8px; text-align: center; padding: 2px 0; border: 2px solid #444;
}
.year__shows { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Pied de page ---------- */
.foot { margin-top: 48px; padding: 22px 0 30px; border-top: 2px solid var(--line); background: color-mix(in srgb, var(--panel) 60%, transparent); }
.foot p { margin: 0 0 10px; font-size: 12px; color: var(--ink-soft); max-width: 80ch; }
.foot__badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge88 {
  display: inline-block; font: 700 10px/1.2 Verdana, sans-serif; padding: 6px 8px; border: 1px solid #000;
  background: linear-gradient(180deg, #e9e9e9, #a8a8a8); color: #000;
}
.badge88--alt { background: linear-gradient(90deg, #ff00a8, #ffb300, #39ff14, #00c2ff); color: #000; }

.loading { position: relative; height: 240px; margin-top: 30px; border-radius: var(--radius); overflow: hidden; background: var(--screen); display: grid; place-items: center; font-family: VT323, monospace; font-size: 26px; color: #e8fff0; }
.loading .noise { z-index: 0; }

@media (max-width: 820px) {
  .hero, .show { grid-template-columns: 1fr; }
  .hero__tv { justify-self: stretch; max-width: none; }
  .year { grid-template-columns: 1fr; }
  .year__label { position: static; width: 110px; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card__initials { font-size: 26px; }
  .card__title { font-size: 13px; }
  .top__nav .gel { padding: 8px 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Médiathèque d'une émission : épisodes + dossier bonus ---------- */
.now-playing { margin: 10px 2px 0; font-size: 13px; }
.library { margin-top: 26px; display: grid; gap: 18px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.folder { position: relative; }
.folder__tab {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 9px 16px 8px;
  font: 400 17px/1 Audiowide, Verdana, sans-serif; color: #fff;
  border-radius: 12px 12px 0 0; border: 1px solid var(--line); border-bottom: 0;
  background: linear-gradient(180deg, #4f86ff, #1f4fc9);
  text-shadow: 0 1px 1px rgba(0,0,0,.35);
}
.folder__tab span { font: 700 12px/1 Verdana, sans-serif; background: rgba(255,255,255,.25); padding: 4px 7px; border-radius: 999px; }
.folder--bonus .folder__tab { background: linear-gradient(180deg, #ffd96a, #f0a800); color: #3a2400; text-shadow: none; }
.folder--bonus .folder__tab span { background: rgba(0,0,0,.12); }
.folder__body {
  padding: 14px; border: 1px solid var(--line); border-radius: 0 var(--radius) var(--radius) var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--panel-2)); box-shadow: var(--shadow);
}
.folder--bonus .folder__body { background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 14%, var(--panel)), var(--panel)); }
.seasons { margin-bottom: 12px; }
.seasons .chip small { font-weight: 400; opacity: .8; }
.ep-list { display: grid; gap: 8px; max-height: 720px; overflow-y: auto; padding-right: 4px; }
.ep-list[hidden] { display: none; }
.ep {
  display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; text-align: left;
  padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; cursor: pointer;
}
.ep:hover { border-color: var(--aqua); }
.ep.is-current { border-color: var(--pink); box-shadow: 0 0 0 2px color-mix(in srgb, var(--pink) 35%, transparent); }
.ep__thumb { position: relative; display: block; border-radius: 8px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.ep__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep__thumb i { position: absolute; right: 4px; bottom: 4px; font: 700 10px/1 Verdana, sans-serif; font-style: normal; color: #fff; background: rgba(0,0,0,.8); padding: 3px 5px; border-radius: 4px; }
.ep__text { display: grid; gap: 3px; min-width: 0; }
.ep__text b { font-size: 13px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ep__text small { font-size: 11px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep__label { font-weight: 700; color: var(--pink) !important; text-transform: uppercase; letter-spacing: .04em; }
.ep-list--compact { max-height: 420px; }
.ep-list--compact .ep { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
.sub { border-top: 1px dashed var(--line); padding: 8px 0; }
.sub:first-child { border-top: 0; padding-top: 0; }
.sub summary { cursor: pointer; font-weight: 700; font-size: 14px; padding: 6px 2px; list-style: none; display: flex; align-items: center; gap: 6px; }
.sub summary::-webkit-details-marker { display: none; }
.sub summary::after { content: "▸"; margin-left: auto; transition: transform .15s; }
.sub[open] summary::after { transform: rotate(90deg); }
.sub summary span { font-size: 11px; background: var(--panel-2); border: 1px solid var(--line); padding: 2px 7px; border-radius: 999px; }
.sub .ep-list { margin-top: 6px; }
@media (max-width: 820px) {
  .library { grid-template-columns: 1fr; }
  .ep { grid-template-columns: 110px minmax(0, 1fr); }
}

/* ---------- Navigation ---------- */
.top__nav .gel[aria-current="true"] { --c: var(--aqua); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 0 2px #8be3ff, 0 2px 6px rgba(0,0,0,.25); }
.top__nav [hidden] { display: none; }

/* ---------- Écran d'accueil : télé ou musique ---------- */
.choose { margin: 34px 0 10px; text-align: center; }
.choose__kicker { margin: 0 0 8px; font-family: VT323, monospace; font-size: 22px; color: var(--pink); letter-spacing: .08em; }
.choose__q { font-family: Audiowide, Verdana, sans-serif; font-size: clamp(24px, 4.4vw, 44px); line-height: 1.15; margin: 0 auto 28px; max-width: 22ch; }
.choose__q em { font-style: normal; color: var(--aqua); }
.choose__q em.alt { color: var(--pink); }
.choose__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; text-align: left; }
.choice {
  position: relative; display: grid; gap: 10px; justify-items: start; padding: 22px; text-decoration: none; color: var(--ink);
  border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--panel-2)); transition: transform .15s ease, box-shadow .15s ease;
}
.choice::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--aqua-hi), var(--aqua)); }
.choice--music::before { background: linear-gradient(90deg, #ff9ad5, var(--pink)); }
.choice:hover { transform: translateY(-4px); color: var(--ink); box-shadow: 0 14px 30px rgba(18,48,110,.3); }
.choice__art { justify-self: stretch; display: grid; place-items: center; height: 220px; border-radius: 18px; background: radial-gradient(120% 100% at 50% 0%, #1a3a9a, #060c24); }
.choice--music .choice__art { background: radial-gradient(120% 100% at 50% 0%, #7a1a6a, #12052a); }
.choice__title { font-family: Audiowide, Verdana, sans-serif; font-size: clamp(19px, 2.6vw, 26px); line-height: 1.15; }
.choice__desc { color: var(--ink-soft); font-size: 14px; }
.mini-tv {
  position: relative; width: 230px; max-width: 80%; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden;
  border: 12px solid #b9c5d6; box-shadow: 0 0 0 1px #66748c, inset 0 0 30px #000, 0 10px 24px rgba(0,0,0,.5); background: #020611;
}
.mini-tv__txt { position: absolute; inset: 0; display: grid; place-items: center; font-family: VT323, monospace; font-size: 22px; color: #e8fff0; text-shadow: 0 0 8px #39ff14; }
.cd {
  width: 190px; height: 190px; border-radius: 50%; position: relative;
  background: conic-gradient(from 0deg, #e6e6ff, #9ff, #f9f, #ff9, #9ff, #e6e6ff, #f9f, #e6e6ff);
  box-shadow: 0 0 0 2px rgba(255,255,255,.6), 0 10px 30px rgba(0,0,0,.6), inset 0 0 30px rgba(255,255,255,.6);
  animation: spin 6s linear infinite;
}
.cd::before { content: ""; position: absolute; inset: 36%; border-radius: 50%; background: radial-gradient(circle, #12052a 30%, #c9c9d9 31%, #f2f2ff 60%, #b8b8cc 61%); }
.cd::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.75), transparent 35%); }
@keyframes spin { to { transform: rotate(360deg); } }
.show__artist { margin: 0 0 4px; font: 700 15px/1.2 Verdana, sans-serif; color: var(--pink); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 720px) {
  .choose__grid { grid-template-columns: 1fr; }
  .choice__art { height: 170px; }
  .cd { width: 140px; height: 140px; }
}
.playlists { margin: 0 0 12px; }

/* ---------- Blind test ---------- */
.choose__more { margin: 22px 0 0; text-align: center; }
.blind { margin-top: 22px; display: grid; gap: 16px; max-width: 860px; margin-left: auto; margin-right: auto; }
.blind__bar { display: flex; justify-content: space-between; align-items: center; font-family: VT323, monospace; font-size: 24px; }
.blind__score b { color: var(--pink); }
.blind .tv__screen iframe, .blind #bt-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.blind__cover { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: #020611; transition: opacity .6s ease; }
.blind__cover.is-gone { opacity: 0; pointer-events: none; }
.blind__q { position: relative; font-family: Audiowide, sans-serif; font-size: clamp(64px, 14vw, 140px); color: #fff; text-shadow: 0 0 24px var(--pink), 0 0 6px #fff; }
.blind__count { position: absolute; bottom: 14%; left: 0; right: 0; text-align: center; font-family: VT323, monospace; font-size: clamp(22px, 4vw, 34px); color: #39ff14; text-shadow: 0 0 8px #39ff14; }
.blind__panel { padding: 16px; display: grid; gap: 12px; }
.blind__panel [hidden] { display: none; }
.blind__verdict { margin: 0; font-weight: 700; font-size: 18px; }
.blind__answer .show__title { margin: 0; }
.gel[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Blind test à plusieurs ---------- */
.mp-code { font-family: VT323, monospace; font-size: 28px; color: var(--pink); letter-spacing: .12em; }
.mp-players { display: flex; flex-wrap: wrap; gap: 6px; }
.mp-found { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mp-board { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mp-board li { display: grid; grid-template-columns: 34px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }
.mp-board li.is-me { border-color: var(--pink); }
.mp-rank { font-family: VT323, monospace; font-size: 24px; color: var(--ink-soft); text-align: center; }
.mp-gain { font-weight: 700; color: var(--lime); }
.mp-score { font-family: VT323, monospace; font-size: 22px; }
.mp-podium { display: flex; justify-content: center; align-items: flex-end; gap: 10px; margin: 10px 0; }
.mp-step { display: grid; justify-items: center; gap: 4px; width: 120px; padding: 12px 8px; border-radius: 14px 14px 0 0; color: #3a2400; text-align: center; }
.mp-step span { font-size: 34px; }
.mp-step b { overflow-wrap: anywhere; }
.mp-step--1 { order: 2; height: 170px; background: linear-gradient(180deg, #ffe680, #f5b700); }
.mp-step--2 { order: 1; height: 135px; background: linear-gradient(180deg, #f1f1f1, #b9c0cc); }
.mp-step--3 { order: 3; height: 110px; background: linear-gradient(180deg, #f2c9a0, #c98a52); }
/* Panneau « en direct » d'une partie à plusieurs */
.blind.mp { max-width: 1180px; }
.mp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.mp-main { display: grid; gap: 16px; min-width: 0; }
.mp-live { padding: 14px; position: sticky; top: 90px; }
.mp-live h3 { margin: 0 0 10px; font-family: Audiowide, Verdana, sans-serif; font-size: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.mp-live h3 small { font: 400 12px Verdana, sans-serif; color: var(--ink-soft); }
.mp-live__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mp-live__list li { display: grid; grid-template-columns: 22px minmax(0, 1fr) 26px auto; gap: 8px; align-items: center; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); transition: background .3s ease; }
.mp-live__list li.is-found { background: color-mix(in srgb, var(--lime) 16%, var(--panel)); border-color: color-mix(in srgb, var(--lime) 55%, var(--line)); }
.mp-live__list li.is-me { box-shadow: 0 0 0 2px color-mix(in srgb, var(--pink) 45%, transparent); }
.mp-live__list li.is-off { opacity: .55; }
.mp-live__pos { font-family: VT323, monospace; font-size: 20px; color: var(--ink-soft); text-align: center; }
.mp-live__who { display: grid; min-width: 0; }
.mp-live__who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-live__who small { font-size: 11px; color: var(--ink-soft); }
.mp-live__medal { font-size: 22px; text-align: center; }
.mp-live__score { font-family: VT323, monospace; font-size: 24px; min-width: 2ch; text-align: right; }
@media (max-width: 900px) {
  .mp-layout { grid-template-columns: 1fr; }
  .mp-live { position: static; }
}
#mp-guess:disabled { opacity: .55; }

/* Compte à rebours unique au centre de l'écran : écoute, puis temps pour répondre */
.blind__timer { position: relative; display: grid; place-items: center; width: min(46%, 230px); aspect-ratio: 1; }
.blind__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.blind__ring circle { fill: none; stroke-width: 7; }
.blind__ring-bg { stroke: rgba(255, 255, 255, 0.12); }
.blind__ring-fg { stroke: var(--aqua-hi); stroke-linecap: round; transition: stroke-dashoffset 1s linear, stroke .3s ease; filter: drop-shadow(0 0 6px var(--aqua-hi)); }
.blind__num { position: relative; font-family: Audiowide, sans-serif; font-size: clamp(44px, 9vw, 92px); line-height: 1; color: #fff; text-shadow: 0 0 18px var(--aqua-hi); }
.blind__label { position: absolute; bottom: -2.2em; left: 50%; transform: translateX(-50%); white-space: nowrap; font-family: VT323, monospace; font-size: clamp(20px, 3.4vw, 30px); color: #39ff14; text-shadow: 0 0 8px #39ff14; }
.blind__timer.is-answer .blind__ring-fg { stroke: var(--gold); filter: drop-shadow(0 0 6px var(--gold)); }
.blind__timer.is-answer .blind__num { text-shadow: 0 0 18px var(--gold); }
.blind__timer.is-urgent .blind__ring-fg { stroke: var(--pink); filter: drop-shadow(0 0 8px var(--pink)); }
.blind__timer.is-urgent .blind__num { color: #fff; text-shadow: 0 0 22px var(--pink), 0 0 6px #fff; animation: bt-pulse 1s ease-in-out infinite; }
.blind__timer.is-urgent .blind__label { color: var(--pink); text-shadow: 0 0 8px var(--pink); }
@keyframes bt-pulse { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.22); } }
@media (max-width: 480px) { .blind__label { bottom: -1.9em; } }

/* ---------- Blind test : mise en page ---------- */
/* Illustration */
.bt-art {
  position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 16 / 10; width: 100%; border-radius: 22px;
  background: radial-gradient(90% 80% at 50% 10%, #4a1a9a 0%, #1a0838 55%, #07021a 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), inset 0 -40px 80px rgba(255, 47, 160, .25);
}
.bt-art__grid {
  position: absolute; left: -20%; right: -20%; bottom: -10%; height: 55%; z-index: -1;
  background:
    repeating-linear-gradient(90deg, rgba(255, 79, 176, .55) 0 2px, transparent 2px 48px),
    repeating-linear-gradient(0deg, rgba(255, 79, 176, .55) 0 2px, transparent 2px 30px);
  transform: perspective(260px) rotateX(58deg); transform-origin: bottom;
  mask-image: linear-gradient(0deg, #000 30%, transparent);
  -webkit-mask-image: linear-gradient(0deg, #000 30%, transparent);
  animation: bt-grid 2.4s linear infinite;
}
@keyframes bt-grid { to { background-position: 0 30px, 0 30px; } }
.bt-art__stars i { position: absolute; color: #fff; font-style: normal; text-shadow: 0 0 8px #8be3ff; animation: twinkle 2.6s ease-in-out infinite; }
.bt-art__stars i:nth-child(1) { left: 8%; top: 12%; font-size: 20px; }
.bt-art__stars i:nth-child(2) { left: 86%; top: 10%; font-size: 14px; animation-delay: .6s; }
.bt-art__stars i:nth-child(3) { left: 78%; top: 52%; font-size: 18px; animation-delay: 1.2s; }
.bt-art__stars i:nth-child(4) { left: 16%; top: 58%; font-size: 12px; animation-delay: 1.8s; }
.bt-art__stars i:nth-child(5) { left: 50%; top: 4%; font-size: 12px; animation-delay: .9s; }
.bt-art__cd.cd { position: absolute; width: 38%; height: auto; aspect-ratio: 1; left: 31%; top: 9%; animation-duration: 5s; }
.bt-art__phones { position: absolute; width: 62%; left: 19%; top: 2%; filter: drop-shadow(0 8px 14px rgba(0,0,0,.55)); }
.bt-art__notes i { position: absolute; font-style: normal; font-size: clamp(18px, 4vw, 30px); color: #8be3ff; text-shadow: 0 0 10px #22b8ff; animation: bt-note 3.2s ease-in-out infinite; }
.bt-art__notes i:nth-child(1) { left: 10%; top: 30%; }
.bt-art__notes i:nth-child(2) { left: 84%; top: 28%; color: #ff9ad5; text-shadow: 0 0 10px #ff4fb0; animation-delay: .8s; }
.bt-art__notes i:nth-child(3) { left: 22%; top: 8%; color: #ffd23f; text-shadow: 0 0 10px #ffd23f; animation-delay: 1.6s; }
.bt-art__notes i:nth-child(4) { left: 72%; top: 6%; animation-delay: 2.4s; }
@keyframes bt-note { 0%, 100% { transform: translateY(0) rotate(-8deg); opacity: .7; } 50% { transform: translateY(-14px) rotate(8deg); opacity: 1; } }
.bt-art__eq { position: absolute; left: 12%; right: 12%; bottom: 25%; height: 18%; display: flex; align-items: flex-end; gap: 3%; }
.bt-art__eq i {
  flex: 1; height: var(--h); border-radius: 4px 4px 1px 1px;
  background: linear-gradient(0deg, #39ff14, #ffd23f 60%, #ff4fb0);
  box-shadow: 0 0 10px rgba(57, 255, 20, .55); transform-origin: bottom;
  animation: bt-eq .9s ease-in-out infinite alternate; animation-delay: calc(var(--d) * -1);
}
@keyframes bt-eq { 0% { transform: scaleY(.25); } 100% { transform: scaleY(1.15); } }
.bt-art__title {
  position: absolute; left: 0; right: 0; bottom: 5%; text-align: center; line-height: 1;
  font-family: Audiowide, Verdana, sans-serif; font-size: clamp(26px, 6.2vw, 58px); letter-spacing: .04em;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #3a1a6a) drop-shadow(0 0 14px rgba(255, 79, 176, .7));
}
.bt-art__title b { margin-left: .3em; background: linear-gradient(180deg, #fff 0%, #ff9ad5 45%, #e0218a 55%, #ffc4e6 100%); -webkit-background-clip: text; background-clip: text; }
.bt-art--small { max-width: 220px; }
.bt-art--small .bt-art__title { font-size: 24px; }

/* Bannière d'accueil */
.bt-banner {
  margin: 26px 0 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 26px; align-items: center;
  padding: 18px; text-align: left; border-radius: 30px; border: 1px solid var(--line); box-shadow: var(--shadow);
  background: linear-gradient(135deg, color-mix(in srgb, var(--pink) 12%, var(--panel)), var(--panel) 50%, color-mix(in srgb, var(--aqua) 12%, var(--panel)));
}
.bt-banner__art { display: block; border-radius: 22px; transition: transform .2s ease; }
.bt-banner__art:hover { transform: scale(1.015) rotate(-.4deg); }
.bt-banner__text { display: grid; gap: 10px; justify-items: start; }
.bt-banner__text .choose__kicker { margin: 0; }
.bt-banner__title { margin: 0; font-family: Audiowide, Verdana, sans-serif; font-size: clamp(24px, 3.4vw, 38px); line-height: 1.1; }
.bt-banner__title em, .bt-head h1 em { font-style: normal; color: var(--pink); }
.bt-banner__desc { margin: 0; color: var(--ink-soft); }
.bt-banner__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bt-banner__facts li, .bt-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font: 700 13px/1.2 Verdana, sans-serif;
  background: var(--panel-2); border: 1px solid var(--line);
}
.bt-pill { font-family: VT323, monospace; font-size: 22px; font-weight: 400; }
.bt-pill b { color: var(--pink); font-weight: 400; }

/* Page de réglages */
.bt-setup { margin: 22px auto 0; max-width: 980px; display: grid; gap: 18px; }
.bt-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.bt-head h1 { font-family: Audiowide, Verdana, sans-serif; font-size: clamp(26px, 4vw, 42px); line-height: 1.1; margin: 0 0 10px; }
.bt-head p { margin: 0; color: var(--ink-soft); }
.bt-head__text .choose__kicker { margin: 0 0 6px; }
.bt-head--compact { grid-template-columns: 220px minmax(0, 1fr); margin-top: 10px; }
.bt-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bt-mode {
  position: relative; display: grid; gap: 8px; justify-items: start; align-content: start; padding: 20px; text-align: left; overflow: hidden;
  font: inherit; color: var(--ink); text-decoration: none; cursor: pointer; border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow);
  background: linear-gradient(180deg, var(--panel), var(--panel-2)); transition: transform .15s ease, box-shadow .15s ease;
}
.bt-mode::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, #ff9ad5, var(--pink)); }
.bt-mode--multi::before { background: linear-gradient(90deg, #c6ff7a, var(--lime)); }
.bt-mode:hover:not([disabled]) { transform: translateY(-3px); color: var(--ink); box-shadow: 0 14px 30px rgba(18,48,110,.3); }
.bt-mode[disabled] { opacity: .55; cursor: not-allowed; }
.bt-mode__icon { font-size: 40px; line-height: 1; }
.bt-mode__title { font-family: Audiowide, Verdana, sans-serif; font-size: 24px; }
.bt-mode__desc { color: var(--ink-soft); font-size: 14px; }
.bt-mode .gel { margin-top: 6px; }
.bt-settings, .bt-rules { padding: 20px; display: grid; gap: 18px; }
.bt-settings__title { margin: 0; font-family: Audiowide, Verdana, sans-serif; font-size: 20px; }
.bt-field { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 8px; }
.bt-field legend { padding: 0; margin-bottom: 8px; font-weight: 700; font-size: 14px; }
.bt-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.bt-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bt-tile, .seg__btn {
  font: inherit; color: var(--ink); cursor: pointer; border: 2px solid var(--line); background: var(--panel-2);
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.bt-tile { display: grid; gap: 2px; justify-items: center; text-align: center; padding: 14px 8px; border-radius: 18px; }
.bt-tile__icon { font-size: 30px; line-height: 1.1; }
.bt-tile b { font-size: 15px; }
.bt-tile small, .seg__btn small { color: var(--ink-soft); font-size: 12px; line-height: 1.3; }
.bt-tile:hover, .seg__btn:hover { border-color: var(--aqua); }
.bt-tile[aria-pressed="true"], .seg__btn[aria-pressed="true"] {
  border-color: var(--pink); background: color-mix(in srgb, var(--pink) 14%, var(--panel));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pink) 22%, transparent);
}
.seg { display: flex; border-radius: 16px; overflow: hidden; border: 2px solid var(--line); background: var(--panel-2); }
.seg__btn { flex: 1 1 0; min-width: 0; display: grid; gap: 2px; justify-items: center; padding: 10px 6px; border: 0; border-radius: 0; text-align: center; }
.seg__btn + .seg__btn { border-left: 2px solid var(--line); }
.seg__btn b { font-size: 15px; }
.seg__btn[aria-pressed="true"] { box-shadow: none; color: #fff; background: linear-gradient(180deg, #ff7ad0, var(--pink)); text-shadow: 0 1px 1px rgba(0,0,0,.3); }
.seg__btn[aria-pressed="true"] small { color: rgba(255,255,255,.9); }
.bt-more { border-top: 1px dashed var(--line); padding-top: 14px; display: grid; gap: 14px; }
.bt-more[open] { gap: 14px; }
.bt-more summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.bt-more[open] > summary { margin-bottom: 10px; }
.bt-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 11px; background: var(--pink); color: #fff; font-size: 12px; }
.bt-recap { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--screen); color: #e8fff0; font-family: VT323, monospace; font-size: 22px; line-height: 1.2; }
.bt-recap b { color: #39ff14; font-weight: 400; text-shadow: 0 0 6px #39ff14; }
.bt-warn { margin: 0; color: var(--pink); font-weight: 700; }
.bt-rules__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bt-rules__grid div { display: grid; gap: 2px; justify-items: center; text-align: center; padding: 12px 6px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line); }
.bt-rules__grid small { color: var(--ink-soft); font-size: 12px; }
.bt-pts {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 22px;
  font-family: Audiowide, Verdana, sans-serif; font-size: 20px; color: #3a2400; background: linear-gradient(180deg, #ffe680, #f5b700);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 3px 8px rgba(0,0,0,.2);
}
.bt-pts--2 { color: #fff; background: linear-gradient(180deg, #ff9ad5, var(--pink)); }
.bt-pts--1 { color: #fff; background: linear-gradient(180deg, var(--aqua-hi), var(--aqua)); }
.bt-pts--0 { color: #fff; background: linear-gradient(180deg, #9aa7bf, #5b6884); }
.bt-pts--medal { font-size: 18px; background: none; box-shadow: none; padding: 0; }

/* Pendant la partie */
.bt-bar { gap: 12px; flex-wrap: wrap; }
.bt-bar__round { display: grid; gap: 4px; }
.blind__round b { color: var(--pink); font-weight: 400; }
.bt-dots { display: flex; gap: 4px; }
.bt-dots i { width: 14px; height: 6px; border-radius: 3px; background: var(--line); }
.bt-dots i.is-done { background: var(--aqua); }
.bt-dots i.is-now { background: var(--pink); box-shadow: 0 0 8px var(--pink); }
.bt-answer-form input { font-size: 18px; padding-top: 14px; padding-bottom: 14px; }
.bt-verdict { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 16px; animation: bt-pop .35s ease-out; }
.bt-verdict.is-win { background: color-mix(in srgb, var(--lime) 22%, var(--panel)); border: 1px solid color-mix(in srgb, var(--lime) 60%, var(--line)); }
.bt-verdict.is-lose { background: color-mix(in srgb, var(--pink) 12%, var(--panel)); border: 1px solid color-mix(in srgb, var(--pink) 40%, var(--line)); }
.bt-verdict .blind__verdict { font-size: 20px; }
@keyframes bt-pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.bt-guess { margin: 0; color: var(--ink-soft); font-size: 14px; overflow-wrap: anywhere; }
.bt-reveal { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; align-items: center; }
.bt-reveal__thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: var(--screen); box-shadow: var(--shadow); }
.bt-reveal__title { margin: 0; font-size: clamp(22px, 4vw, 34px); overflow-wrap: anywhere; }
.bt-reveal p { margin: 0; }

/* Fin de partie */
.bt-end { margin: 22px auto 0; max-width: 980px; display: grid; gap: 16px; }
.bt-end__card { padding: 20px; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: center; }
.bt-end__card .bt-art--small { max-width: none; }
.bt-end__text { display: grid; gap: 6px; justify-items: start; }
.bt-end__text p { margin: 0; }
.bt-end__score { margin: 0; font-family: Audiowide, Verdana, sans-serif; line-height: 1; display: flex; align-items: baseline; gap: 10px; }
.bt-end__score b { font-size: clamp(56px, 10vw, 96px); color: var(--pink); text-shadow: 0 4px 0 color-mix(in srgb, var(--pink) 30%, transparent); }
.bt-end__score span { font-size: clamp(22px, 4vw, 34px); color: var(--ink-soft); }
.bt-end__stars { font-size: 34px; letter-spacing: .1em; color: var(--gold); text-shadow: 0 0 10px color-mix(in srgb, var(--gold) 60%, transparent); }
.bt-end__stars span { color: var(--line); text-shadow: none; }
.bt-end__mood { font-weight: 700; font-size: 18px; }
.bt-recaplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bt-recaplist li { display: grid; grid-template-columns: 30px 80px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.bt-recaplist li.is-win { border-color: color-mix(in srgb, var(--lime) 55%, var(--line)); }
.bt-recaplist img { width: 80px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--screen); }
.bt-recaplist__n { font-family: VT323, monospace; font-size: 24px; color: var(--ink-soft); text-align: center; }
.bt-recaplist__what { display: grid; min-width: 0; color: var(--ink); text-decoration: none; }
.bt-recaplist__what b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-recaplist__what small { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-recaplist__pts { font-family: VT323, monospace; font-size: 24px; white-space: nowrap; }
.is-win .bt-recaplist__pts { color: var(--lime); }
.is-lose .bt-recaplist__pts { color: var(--pink); }

/* Salle d'attente à plusieurs */
.bt-lobby { padding: 20px; display: grid; gap: 14px; }
.bt-lobby p { margin: 0; }
.bt-lobby__code { display: grid; justify-items: center; gap: 4px; padding: 16px; border-radius: 18px; background: var(--screen); }
.bt-lobby__code .muted { color: #a9badf; }
.bt-lobby__code .mp-code { font-size: clamp(56px, 13vw, 96px); line-height: 1; color: #39ff14; text-shadow: 0 0 14px #39ff14; letter-spacing: .2em; padding-left: .2em; }
.bt-lobby__count { margin: 6px 0 0; font-family: Audiowide, Verdana, sans-serif; font-size: 18px; }
.bt-lobby__wait { font-weight: 700; }
.bt-avatar { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); font-weight: 700; animation: bt-pop .3s ease-out; }
.bt-avatar.is-me { border-color: var(--pink); }
.bt-avatar i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-style: normal; color: #fff; background: linear-gradient(180deg, hsl(var(--hue) 85% 66%), hsl(var(--hue) 75% 42%)); text-shadow: 0 1px 1px rgba(0,0,0,.3); }

@media (max-width: 820px) {
  .bt-banner, .bt-head, .bt-head--compact, .bt-end__card { grid-template-columns: 1fr; }
  .bt-head--compact .bt-art--small, .bt-end__card .bt-art--small { max-width: 320px; }
  .bt-rules__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .bt-banner { padding: 12px; gap: 14px; }
  .bt-modes, .bt-row { grid-template-columns: 1fr; }
  .bt-tiles { grid-template-columns: 1fr; }
  .bt-tile { grid-template-columns: 40px 1fr; justify-items: start; text-align: left; column-gap: 10px; padding: 10px 12px; }
  .bt-tile__icon { grid-row: span 2; font-size: 26px; }
  .bt-reveal { grid-template-columns: 1fr; }
  .bt-reveal__thumb { max-width: 240px; }
  .bt-recaplist li { grid-template-columns: 24px 56px minmax(0, 1fr) auto; gap: 8px; }
  .bt-recaplist img { width: 56px; }
}
.blind { grid-template-columns: minmax(0, 1fr); }
.bt-answer-form { min-width: 0; }
.bt-answer-form input { min-width: 0; }
.bt-more > summary { margin: 0; }
.bt-more[open] > summary { margin-bottom: 0; }
.bt-more .chips { margin-top: 2px; }
.blind .search { min-width: 0; }
.blind .search input { min-width: 0; flex: 1 1 0; width: 100%; }
.blind .search .gel { flex: none; }
.blind .check { overflow-wrap: anywhere; }
.blind__answer:not([hidden]) { display: grid; gap: 12px; }
