/* recall.gg — socle commun piloté par des tokens, puis un bloc par style (body[data-style]). */

:root {
  --bg: #F2F2F2; --surface: #fff; --surface-2: #F0F0F0; --ink: #111; --ink-2: #444; --muted: #888; --line: #ddd;
  --accent: #111; --live: #E5484D; --focus: #2F6BFF;
  --font: system-ui, sans-serif; --mono: ui-monospace, monospace; --display: var(--font);
  --radius: 14px; --btn-radius: 10px; --primary-bg: var(--ink); --primary-ink: var(--bg);
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px -12px rgba(0,0,0,.18);
  --gutter: max(16px, calc((100vw - 1160px) / 2));
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; transition: background .3s; }
button { font: inherit; color: inherit; }
a { color: inherit; }
img { display: block; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
[data-match] { --ah: 220; --as: 8; --bh: 220; --bs: 8; }
.lost { opacity: .45; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--live); margin-right: 7px; vertical-align: middle; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
.nologo { display: grid; place-items: center; font-weight: 700; color: var(--muted); background: var(--surface-2); border-radius: 50%; font-size: 11px; }

/* ---------- en-tête ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.mark { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.mark svg { width: 20px; height: 20px; fill: var(--ink); }
.mark span { font: 800 18px/1 var(--display); letter-spacing: -.01em; }
.tabs { display: flex; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.tabs button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--ink-2); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.tools { margin-left: auto; display: flex; gap: 6px; }
.toggle { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 550; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.toggle:hover { color: var(--ink); }
.toggle[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
#favOnly[aria-pressed="true"] svg { fill: currentColor; }

.leagues { display: flex; gap: 6px; flex-wrap: wrap; padding: 16px var(--gutter) 0; }
.chip { border: 0; cursor: pointer; padding: 5px 11px 5px 6px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; }
.chip i { width: 18px; height: 18px; border-radius: 50%; background: #1b1d22 center/70% no-repeat; flex: none; }
.chip.all { padding-left: 11px; }
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

main { padding: 20px var(--gutter) 40px; min-height: 60vh; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px var(--gutter) 24px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- boutons / streams ---------- */
.watch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.watch .lbl { font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 9px; border-radius: var(--btn-radius); border: 1px solid var(--line); background: var(--surface);
  font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink); cursor: pointer; white-space: nowrap; max-width: 100%; }
.btn:hover { border-color: var(--ink-2); }
.btn svg { width: 14px; height: 14px; flex: none; }
.btn small { font: 500 10px/1 var(--mono); color: var(--muted); text-transform: uppercase; }
.btn.primary { background: var(--primary-bg); color: var(--primary-ink); border-color: var(--primary-bg); }
.btn.primary small { color: inherit; opacity: .65; }
.btn.co { border-style: dashed; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); padding-inline: 8px; }
.btn.ghost:hover { color: var(--ink); border-color: var(--line); }
.more { position: relative; }
.more > summary { list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 260px; max-height: 320px; overflow: auto; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.45); padding: 6px; text-align: left; }
.pop a { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; text-decoration: none; font-size: 13px; font-family: var(--font); text-transform: none; }
.pop a:hover { background: var(--surface-2); }
.pop a svg { width: 14px; height: 14px; flex: none; }
.pop a span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop a small { font: 500 10px/1 var(--mono); color: var(--muted); }
.vods { width: 100%; display: grid; gap: 6px; padding-top: 10px; margin-top: 10px; border-top: 1px dashed var(--line); grid-column: 1 / -1; }
.vods .g { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vods .g b { font: 600 11px/1 var(--mono); color: var(--muted); width: 64px; }
.vods .note { color: var(--muted); font-size: 13px; }

.star { width: 22px; height: 22px; padding: 4px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: inherit; flex: none; }
.star::before { content: ""; display: block; width: 100%; height: 100%; background: currentColor; opacity: .35;
  clip-path: polygon(50% 0, 62% 35%, 100% 38%, 70% 61%, 80% 100%, 50% 78%, 20% 100%, 30% 61%, 0 38%, 38% 35%); }
.star:hover::before { opacity: .7; }
.star[aria-pressed="true"]::before { opacity: 1; background: #F5B731; }

.empty { padding: 60px 0; color: var(--ink-2); max-width: 46ch; }
.empty strong { display: block; color: var(--ink); font: 700 22px/1.2 var(--display); margin-bottom: 6px; }
.empty p { margin: 0 0 14px; }

/* ---------- dialogue ---------- */
.sheet { border: 0; border-radius: 20px; padding: 0; width: min(560px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); font-family: var(--font); }
.sheet::backdrop { background: rgba(10, 11, 14, .45); backdrop-filter: blur(3px); }
.sheet form { padding: 24px; }
.sheet h2 { margin: 0 0 8px; font: 700 20px/1.2 var(--display); }
.sheet p { margin: 0 0 16px; color: var(--ink-2); font-size: 14px; }
.copyrow { display: flex; gap: 6px; margin-bottom: 16px; }
.copyrow input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 9px; padding: 8px 10px; font: 12px var(--mono); }
.copyrow button, .sheet .close { border: 1px solid var(--line); background: var(--ink); color: var(--bg); border-radius: 9px; padding: 8px 14px; font-weight: 600; cursor: pointer; }
.sheet .close { background: transparent; color: var(--ink); }

/* =====================================================================
   NUIT — sombre, précis, frise des matchs
   ===================================================================== */
[data-style="nuit"] {
  --bg: #08090B; --surface: #111215; --surface-2: #17181C; --ink: #F1F2F4; --ink-2: #A4A7AE; --muted: #6B6F78; --line: rgba(255,255,255,.08);
  --font: "Inter Variable", system-ui, sans-serif; --display: var(--font); --mono: "Martian Mono Variable", ui-monospace, monospace;
  --radius: 14px; --btn-radius: 8px; --live: #FF5F57; --primary-bg: #F1F2F4; --primary-ink: #08090B; --focus: #8EA4FF;
  color-scheme: dark;
}
body[data-style="nuit"] { background: radial-gradient(1200px 500px at 50% -180px, rgba(120, 130, 255, .14), transparent 70%), var(--bg); background-attachment: fixed; }
[data-style="nuit"] .top { background: rgba(8, 9, 11, .7); }
[data-style="nuit"] .tabs { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
[data-style="nuit"] .tabs button[aria-selected="true"] { background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
[data-style="nuit"] .chip[aria-pressed="true"] { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
[data-style="nuit"] .btn { background: var(--surface-2); border-color: var(--line); font-weight: 500; }
[data-style="nuit"] .btn:hover { border-color: rgba(255,255,255,.22); }
[data-style="nuit"] .btn.primary { background: var(--primary-bg); }
[data-style="nuit"] .btn.ghost { background: transparent; border-color: transparent; }
.nt-hero { display: grid; gap: 10px; margin-bottom: 34px; }
.nt-kicker { margin: 0; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.nt-kicker .cd { color: var(--ink); }
.nt-kicker ~ .nt-kicker { margin-top: 18px; }
.nt-day { margin: 30px 0 6px; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.nt-day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.nt-row { display: grid; grid-template-columns: 56px 22px minmax(0, 1fr) auto; align-items: center; gap: 0 12px; padding: 6px 0; position: relative; }
.nt-row time { font: 400 13px/1 var(--mono); color: var(--ink-2); text-align: right; }
.nt-node { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--muted); justify-self: center; background: var(--bg); position: relative; z-index: 1; }
.nt-row::before { content: ""; position: absolute; left: calc(56px + 12px + 11px); top: 0; bottom: 0; width: 1px; background: var(--line); }
.nt-row.is-live .nt-node { border-color: var(--live); background: var(--live); box-shadow: 0 0 12px var(--live); }
.nt-row.is-fav .nt-node { border-color: #F5B731; background: #F5B731; }
.nt-main { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 2px 14px; align-items: center; min-width: 0; padding: 8px 14px; border-radius: 10px; transition: background .15s; }
.nt-row:hover .nt-main { background: rgba(255,255,255,.03); }
.nt-tag { grid-row: 1 / 3; font-size: 11px; font-weight: 600; color: var(--ink-2); padding: 3px 7px; border-radius: 6px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.nt-m { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.nt-m > span { display: flex; align-items: center; gap: 8px; }
.nt-m .logo, .nt-m .nologo { width: 22px; height: 22px; object-fit: contain; }
.nt-m b { font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.nt-m em { font: normal 400 12px/1 var(--mono); color: var(--muted); }
.nt-sub { font-size: 12px; color: var(--muted); }
.nt-row.is-tbd .nt-m b { color: var(--muted); font-weight: 400; }
.nt-row .watch { justify-content: flex-end; }
/* =====================================================================
   POSTER — le match mis en avant, façon affiche
   ===================================================================== */
.af-poster { position: relative; overflow: hidden; color: #fff; border-radius: 6px; min-height: 340px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 18px;
  background: linear-gradient(160deg, hsl(var(--ah) calc(var(--as) * 1%) 36%) 0 49.8%, hsl(var(--bh) calc(var(--bs) * 1%) 30%) 50.2% 100%); isolation: isolate; }
.af-poster::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.45)); }
/* filigranes : chaque logo dans le coin de sa couleur, découpé sur la même diagonale que le fond */
.af-bg { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.af-wm { position: absolute; inset: 0; }
.af-wm.a { -webkit-mask-image: linear-gradient(160deg, #000 49.8%, transparent 50.2%); mask-image: linear-gradient(160deg, #000 49.8%, transparent 50.2%); }
.af-wm.b { -webkit-mask-image: linear-gradient(160deg, transparent 49.8%, #000 50.2%); mask-image: linear-gradient(160deg, transparent 49.8%, #000 50.2%); }
.af-wm img { position: absolute; width: 52%; height: 78%; object-fit: contain; opacity: .14; filter: grayscale(1) brightness(2.2); }
.af-wm.a img { top: -10%; left: -6%; object-position: left top; }
.af-wm.b img { bottom: -10%; right: -6%; object-position: right bottom; }
.af-poster header { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.af-title { display: grid; }
.af-title h3 { margin: 0; font: 400 clamp(56px, 8vw, 92px)/.88 "Anton", sans-serif; text-transform: uppercase; letter-spacing: .005em; display: flex; align-items: center; gap: 8px; }
.af-title h3 .star { color: #fff; }
.af-vs { font: italic 600 15px/1.6 var(--font); opacity: .85; padding-left: 4px; }
.af-poster footer { display: grid; gap: 12px; }
.af-when { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid rgba(255,255,255,.85); padding-top: 10px; }
.af-when b { font: 400 22px/1 "Anton"; text-transform: uppercase; letter-spacing: .02em; }
.af-when span { font-weight: 600; font-size: 14px; }
.af-poster .btn { background: rgba(0,0,0,.28); color: #fff; border-color: rgba(255,255,255,.3); }
.af-poster .btn.primary { background: #fff; color: #111; border-color: #fff; }
.af-poster .btn.ghost { background: transparent; border-color: transparent; }
.af-poster .btn small { color: inherit; opacity: .7; }
.af-poster.is-live { outline: 3px solid var(--live); outline-offset: -3px; }
/* grand format : sigles côte à côte sur desktop, empilés sur mobile */
.af-poster { min-height: 440px; padding: 26px; border-radius: 16px; }
.af-poster .af-title { grid-template-columns: auto auto auto; justify-content: start; align-items: end; gap: 20px; }
.af-poster .af-title h3 { font-size: clamp(64px, 13vw, 168px); }
.af-poster .af-vs { font-size: 20px; padding-bottom: 18px; }
.af-poster.is-live { outline: 0; box-shadow: 0 0 0 2px var(--live), 0 30px 60px -30px hsl(var(--ah) calc(var(--as) * 1%) 40% / .6); }
/* =====================================================================
   ÉQUIPES — effectifs
   ===================================================================== */
.mark em { font-style: normal; color: var(--muted); font-weight: 500; }
.tm-loading { color: var(--muted); }
.tm-bar { margin-bottom: 8px; }
.tm-bar input { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 10px 14px; font: 14px var(--font); }
.tm-bar input::placeholder { color: var(--muted); }
.tm-bar input:focus { outline: none; border-color: rgba(255,255,255,.25); }
.tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); align-items: start; gap: 12px; margin-top: 14px; }
.tm-card { --ah: 220; --as: 8; position: relative; background: var(--surface); border-radius: 14px; padding: 16px; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line); }
.tm-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 120px; pointer-events: none;
  background: radial-gradient(260px 120px at 0 0, hsl(var(--ah) calc(var(--as) * 1%) 50% / .22), transparent 70%); }
.tm-card > * { position: relative; }
.tm-card header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tm-card header .logo, .tm-card header .nologo { width: 36px; height: 36px; object-fit: contain; flex: none; }
.tm-card header div { flex: 1; min-width: 0; display: grid; }
.tm-card header b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-card header span { font-size: 12px; color: var(--muted); }
.tm-card.is-fav { box-shadow: inset 0 0 0 1px rgba(245, 183, 49, .45); }
.tm-roster { list-style: none; margin: 0; padding: 0; display: grid; }
.tm-roster li { display: grid; grid-template-columns: 34px 26px auto 1fr; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.tm-roster li.hit b { color: #F5B731; }
.tm-role { font: 500 10px/1 var(--mono); color: var(--muted); letter-spacing: .04em; }
.tm-ph { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--surface-2); }
.tm-roster b { font-size: 14px; font-weight: 600; }
.tm-roster li > span:last-child { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-next { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font: 400 11px/1.3 var(--mono); color: var(--ink-2); }
.tm-next.live { color: var(--live); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nt-row { grid-template-columns: 48px 22px minmax(0, 1fr); }
  .nt-row::before { left: calc(48px + 12px + 11px); }
  .nt-row .watch { grid-column: 3; grid-row: 2; padding: 4px 14px 6px; justify-content: flex-start; }
  .nt-row time, .nt-row .nt-node { grid-row: 1; }
}
@media (max-width: 720px) {
  .af-poster { min-height: 400px; padding: 18px; }
  .af-poster .af-title { grid-template-columns: 1fr; gap: 0; }
  .af-poster .af-title h3 { font-size: 84px; }
  .af-poster .af-vs { padding-bottom: 0; }
  .top { flex-wrap: wrap; gap: 10px 14px; }
  .tools { margin-left: 0; width: 100%; overflow-x: auto; }
  .toggle { flex: none; }
  .pop { right: auto; left: 0; }
  }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.tm-bench { margin-top: 4px; border-top: 1px solid var(--line); }
.tm-bench summary { cursor: pointer; list-style: none; padding: 9px 0 3px; font: 500 11px/1.2 var(--mono); color: var(--muted); letter-spacing: .02em; }
.tm-bench summary::-webkit-details-marker { display: none; }
.tm-bench summary::before { content: "+ "; }
.tm-bench[open] summary::before { content: "− "; }
.tm-bench summary:hover { color: var(--ink); }
.tm-bench .tm-roster { opacity: .75; }
.tm-bench .tm-roster li:first-child { border-top: 0; }

/* ---------- appli installée : encoche iPhone ---------- */
.top { padding-top: max(12px, env(safe-area-inset-top)); }

/* ---------- score en direct dans l'affiche ---------- */
.af-live { display: grid; gap: 8px; max-width: 520px; padding: 12px 14px; border-radius: 10px; background: rgba(0,0,0,.32); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lv-note { margin: 0; font-size: 13px; opacity: .8; }
.lv-head { display: flex; justify-content: space-between; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.lv-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 12px; }
.lv-score b { font: 400 40px/1 "Anton", sans-serif; }
.lv-score b:last-child { text-align: right; }
.lv-score span { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.lv-bar { height: 6px; border-radius: 3px; overflow: hidden; background: hsl(var(--bh) calc(var(--bs) * 1%) 55%); }
.lv-bar i { display: block; height: 100%; width: var(--share); background: hsl(var(--ah) calc(var(--as) * 1%) 60%); border-right: 2px solid rgba(0,0,0,.5); transition: width .6s; }
.lv-diff { font-size: 12px; font-weight: 600; opacity: .85; }
.lv-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.lv-stats span { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; padding: 5px 7px; border-radius: 6px; background: rgba(255,255,255,.07); }
.lv-stats b { font: 600 14px/1 var(--mono); }
.lv-stats i { font: normal 500 9.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; opacity: .65; }
.lv-champs { display: flex; justify-content: space-between; gap: 10px; }
.lv-champs span { display: flex; gap: 3px; }
.ch { width: 26px; height: 26px; border-radius: 5px; background: rgba(255,255,255,.1); object-fit: cover; }

/* ---------- draft sous les VODs ---------- */
.draft { display: flex; flex-wrap: wrap; gap: 6px 14px; width: 100%; padding-left: 70px; }
.dr-side { display: inline-flex; align-items: center; gap: 3px; }
.dr-side b { font: 600 11px/1 var(--mono); color: var(--muted); margin-right: 4px; min-width: 30px; }
.dr-side .ch { width: 24px; height: 24px; background: var(--surface-2); }
.dr-side.blue .ch { box-shadow: inset 0 -2px 0 #3E7BFA; }
.dr-side.red .ch { box-shadow: inset 0 -2px 0 #E5484D; }

/* ---------- classements ---------- */
.st-title { margin: 4px 0 0; font: 400 34px/1.05 "Anton", sans-serif; text-transform: uppercase; letter-spacing: .01em; }
.st-title span { display: block; margin-top: 6px; font: 500 12px/1 var(--mono); color: var(--muted); letter-spacing: .06em; }
.st-sec { margin: 18px 0 8px; font: 600 13px/1 var(--font); color: var(--ink-2); }
.st-table { list-style: none; margin: 0; padding: 0; max-width: 640px; background: var(--surface); border-radius: 14px; overflow: hidden; }
.st-table li { display: grid; grid-template-columns: 28px 26px 52px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); }
.st-table li:first-child { border-top: 0; }
.st-table .logo, .st-table .nologo { width: 24px; height: 24px; object-fit: contain; }
.st-rank { font: 500 12px/1 var(--mono); color: var(--muted); text-align: right; }
.st-table b { font-weight: 700; font-size: 14px; }
.st-name { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-rec { font: 600 14px/1 var(--mono); min-width: 44px; text-align: right; }
.st-rec i { font-style: normal; color: var(--muted); margin: 0 2px; }
.st-flag { font: 500 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; padding: 4px 6px; border-radius: 4px; }
.qualified .st-flag { color: #3DD68C; background: rgba(61,214,140,.1); }
.out .st-flag { color: var(--muted); background: var(--surface-2); }
.st-table li.out { opacity: .55; }
.is-fav b, .st-t.is-fav b { color: #F5B731; }
.st-bracket { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.st-round { flex: none; width: 190px; display: flex; flex-direction: column; justify-content: space-around; gap: 10px; scroll-snap-align: start; }
.st-round h4 { margin: 0; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.st-match { background: var(--surface); border-radius: 10px; overflow: hidden; }
.st-match.is-live { box-shadow: inset 0 0 0 1px var(--live); }
.st-t { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; }
.st-t + .st-t { border-top: 1px solid var(--line); }
.st-t .logo, .st-t .nologo { width: 20px; height: 20px; object-fit: contain; font-size: 9px; }
.st-t b { font-size: 13px; }
.st-t em { font: 600 13px/1 var(--mono); font-style: normal; }

/* ---------- fiche équipe ---------- */
.tm-card { cursor: pointer; transition: transform .15s; }
.tm-card:hover { transform: translateY(-2px); }
.team-sheet { max-height: min(86vh, 760px); }
.team-sheet form { display: grid; }
.ts-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.ts-head .logo, .ts-head .nologo { width: 48px; height: 48px; object-fit: contain; }
.ts-head div { flex: 1; min-width: 0; }
.ts-head h2 { margin: 0; font: 400 30px/1 "Anton", sans-serif; text-transform: uppercase; }
.ts-head span { font-size: 13px; color: var(--muted); }
.team-sheet h3 { margin: 20px 0 6px; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ts-list { list-style: none; margin: 0; padding: 0; }
.ts-list li { display: grid; grid-template-columns: 112px 20px 48px 1fr; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.ts-list time { color: var(--ink-2); font-size: 12.5px; }
.ts-list .logo, .ts-list .nologo { width: 20px; height: 20px; object-fit: contain; font-size: 9px; }
.ts-list li > span { text-align: right; font-family: var(--mono); font-size: 13px; }
.ts-list small { display: block; font: 400 11px/1.3 var(--font); color: var(--muted); }
.ts-list em { font-style: normal; font-weight: 700; }
.ts-list em.win { color: #3DD68C; }
.ts-list em.loss { color: var(--live); }
.ts-empty { color: var(--muted); font-size: 13.5px; margin: 4px 0 0 !important; }
.team-sheet .close { margin-top: 18px; justify-self: start; }

@media (max-width: 720px) {
  .tabs { width: 100%; }
  .tabs button { flex: 1; padding: 6px 4px; font-size: 13px; }
  .lv-stats { grid-template-columns: repeat(2, 1fr); }
  .lv-champs .ch { width: 22px; height: 22px; }
  .draft { padding-left: 0; }
  .st-table li { grid-template-columns: 22px 22px 44px minmax(0, 1fr) auto; gap: 8px; padding: 10px 12px; }
  .st-table .st-name { display: none; }
  .st-table .st-flag { grid-column: 4; justify-self: start; }
  .ts-list li { grid-template-columns: 92px 20px 44px 1fr; }
}
.st-flag:empty { padding: 0; }
.st-bracket.single { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); overflow: visible; }
.st-bracket.single .st-round { display: contents; }
@media (max-width: 720px) {
  .leagues.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .leagues.scroll::-webkit-scrollbar { display: none; }
  .leagues.scroll .chip { flex: none; }
  .st-bracket.single { grid-template-columns: 1fr 1fr; gap: 8px; }
}
