/* Le Temps Mort (ex-Le Récap) — feuille de style unique, mobile d’abord */
:root {
  /* palette « Ballon » (6 nov. 2026) : encre noire, fond crème façon feuille de match, accent orange ballon.
     --navy garde son nom historique mais porte l'accent (liens, hausses, tags) : orange. */
  --ink: #141414; --navy: #C2410C; --red: #D62D20; --ground: #F4F0E8; --card: #FFFFFF;
  --muted: #57514A; --line: #E8E1D6; --line-2: #D7CDBF; --green: #00704A; --amber: #8A5A00; --purple: #5A2D81;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  /* bandeau (noir, liseré orange) et remplissages portant du texte blanc : identiques dans les deux thèmes */
  --head: #141414; --fill-red: #F2600C; --fill-navy: #C2410C; --fill-amber: #8A5A00;
  --head-sub: #D6CFC6; --head-dim: #9C948A;
  --mine: #FFF1E6; --av-bg: var(--ground); --chip-line: #D7CDBF;
  color-scheme: light dark;
}
/* Mode sombre : suit le réglage de l'appareil. Charbon chaud (pas noir pur), orange réservé aux accents. */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark;
    --ink: #F4EFE8; --navy: #FF8A3D; --red: #FF7A6E; --ground: #121110; --card: #1C1A18;
    --muted: #B9B1A6; --line: #2E2A26; --line-2: #3D3832; --green: #4CC793; --amber: #E3AE55; --purple: #BCA4EC;
    --mine: #2B1D13; --av-bg: #F4EFE8; --chip-line: #3D3832;
}
  /* couleurs d'équipe foncées (MEM, MIN, DEN…) : un contour pour qu'elles se détachent du fond */
:root[data-theme="dark"] .badge { box-shadow: 0 0 0 1px rgba(255,255,255,.22); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F4EFE8; --navy: #FF8A3D; --red: #FF7A6E; --ground: #121110; --card: #1C1A18;
    --muted: #B9B1A6; --line: #2E2A26; --line-2: #3D3832; --green: #4CC793; --amber: #E3AE55; --purple: #BCA4EC;
    --mine: #2B1D13; --av-bg: #F4EFE8; --chip-line: #3D3832;
  }
  /* couleurs d'équipe foncées (MEM, MIN, DEN…) : un contour pour qu'elles se détachent du fond */
  :root:not([data-theme="light"]) .badge { box-shadow: 0 0 0 1px rgba(255,255,255,.22); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: env(safe-area-inset-top, 0px); }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--text); font-size: 17px; font-variant-numeric: tabular-nums; line-height: 1.35; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
button { font: inherit; color: inherit; }
h1, h2 { font-family: var(--display); text-transform: uppercase; margin: 0; line-height: 1; }
.muted { color: var(--muted); }
/* Glose francaise du motif de blessure : le motif officiel reste la ligne de reference. */
.gloss { color: var(--muted); font-style: italic; }
.small { font-size: 12px; }

/* bandeau */
.top { background: var(--head); color: #fff; box-shadow: inset 0 -3px 0 var(--fill-red); padding-top: env(safe-area-inset-top, 0px); position: sticky; top: 0; z-index: 20; }
.top-in { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; gap: 8px 24px; padding: 8px 12px 11px 16px; flex-wrap: wrap; }
.brand { font-family: var(--display); font-weight: 900; font-size: 26px; letter-spacing: .01em; }
.top-nav { display: none; flex: 1; gap: 2px; flex-wrap: wrap; }
.top-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; color: var(--head-sub); font-size: 14px; font-weight: 600; }
.top-nav a[aria-current="page"] { color: #fff; font-weight: 800; box-shadow: inset 0 -3px 0 #fff; }
.top-nav a.nav-more { padding: 0 10px; }
.top-nav a.nav-more:hover { color: #fff; }
.daynav { margin-left: auto; display: flex; align-items: center; }
.daynav a, .daynav span.off { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.daynav span.off { opacity: .3; }
.daynav a.lbl { width: auto; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 4px; }
/* calendrier des archives */
.months { display: grid; gap: 22px; }
.month .days { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.month .days a { display: grid; gap: 2px; padding: 10px 14px; border-bottom: 1px solid var(--line); min-height: 52px; }
.month .days .d { font-weight: 800; font-size: 14px; }
.month .days .n { font-size: 12px; color: var(--muted); }
.daynav .lbl { min-width: 88px; text-align: center; font-weight: 700; font-size: 14px; font-stretch: 87%; }
/* recherche */
.search-btn { margin-left: auto; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: #fff; cursor: pointer; }
.daynav + .search-btn { margin-left: 0; }
.set-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: #fff; margin-left: auto; }
.daynav + .set-btn, .set-btn + .search-btn { margin-left: 0; }
.set-btn[aria-current="page"] { box-shadow: inset 0 -3px 0 #fff; }
.search-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--card); color: var(--ink); box-shadow: 0 8px 24px rgba(20,20,20,.25); padding: 10px 12px 6px; }
.search-panel input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--ground); color: var(--ink); font: inherit; font-size: 16px; }
.search-panel ul { list-style: none; margin: 6px 0 0; padding: 0; }
.search-panel li a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.search-panel li:last-child a { border-bottom: 0; }
.search-panel li a[aria-selected="true"] { background: var(--ground); }
.search-panel .s { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); }
.search-panel .none { padding: 10px 4px; font-size: 14px; color: var(--muted); }
.top-in.page-head { padding-top: 6px; padding-bottom: 14px; }
.page-head .sub { font-size: 12px; font-weight: 700; color: var(--head-sub); }
.page-head h1 { font-size: 32px; font-weight: 900; margin-top: 2px; }
.back { min-height: 40px; display: inline-flex; align-items: center; gap: 4px; color: #fff; font-weight: 700; font-size: 14px; }

/* onglets bas (mobile) */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--card); border-top: 1px solid var(--line-2); padding: 4px 0 calc(8px + env(safe-area-inset-bottom, 0px)); }
.tabs a { min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; color: var(--muted); }
.tabs a[aria-current="page"] { color: var(--ink); font-weight: 800; }
.tabs svg { width: 22px; height: 22px; }

/* mise en page */
.wrap { max-width: 1400px; margin: 0 auto; padding: 14px 0 calc(96px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 22px; }
.col { display: grid; gap: 22px; align-content: start; min-width: 0; }
section { display: grid; gap: 10px; min-width: 0; }
.sh { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 12px 0 16px; min-height: 28px; }
.sh h2 { font-size: 26px; font-weight: 800; }
.sh a, .sh .aside { font-size: 13px; font-weight: 700; color: var(--navy); min-height: 40px; display: inline-flex; align-items: center; }
.sh .aside { color: var(--muted); font-weight: 500; }
.card { margin: 0 12px; background: var(--card); border-radius: 4px; box-shadow: 0 1px 0 var(--line-2), 0 0 0 1px var(--line); min-width: 0; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); min-height: 52px; }
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .name { font-weight: 700; font-size: 14px; }
.row .sub { font-size: 12px; color: var(--muted); }
.note { margin: -4px 16px 0; font-size: 12px; color: var(--muted); }
.empty { padding: 14px; color: var(--muted); font-size: 14px; }
.big { font-family: var(--display); font-weight: 800; font-size: 22px; }
.up { color: var(--navy); } .down { color: var(--red); }

/* badges et avatars */
.badge { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 5px; color: #fff; font-weight: 800; font-size: 10px; font-stretch: 75%; letter-spacing: .02em; }
.badge.s { width: 22px; height: 22px; font-size: 9px; border-radius: 4px; }
.badge.l { width: 44px; height: 44px; font-size: 16px; border-radius: 7px; }
.badge.xl { width: 56px; height: 56px; font-size: 19px; border-radius: 9px; box-shadow: 0 0 0 2px rgba(255,255,255,.18); }
.av { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--av-bg); box-shadow: inset 0 0 0 2.5px currentColor; font-family: var(--display); font-weight: 900; font-size: 15px; }
.av.xl { width: 64px; height: 64px; font-size: 26px; box-shadow: inset 0 0 0 4px currentColor; }
/* logos d'équipe : pastille blanche (logos noirs lisibles en sombre et sur les bandeaux colorés) */
img.badge.logo { background: #fff; padding: 2px; object-fit: contain; box-shadow: 0 0 0 1px rgba(20,20,20,.12); }
img.badge.logo.l { padding: 4px; } img.badge.logo.xl { padding: 6px; }
/* photos de joueurs : cadrées sur le visage, dans le rond aux couleurs de l'équipe */
.av.photo { overflow: hidden; position: relative; background: #fff; }
.av.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transform: scale(1.35); transform-origin: 50% 20%; }
.av.photo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 2.5px currentColor; }
.av.photo.xl::after { box-shadow: inset 0 0 0 4px currentColor; }
.pill { flex: none; padding: 4px 8px; border-radius: 3px; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: #fff; background: var(--muted); }
.pill.Out, .pill.Absent { background: var(--fill-red); } .pill.Doubtful { background: #9B2D1F; }
.pill.Questionable { background: var(--fill-amber); } .pill.Probable, .pill.Dispo { background: var(--fill-navy); }
.tagchg { flex: none; padding: 3px 6px; border: 1px solid var(--red); border-radius: 3px; font-size: 10px; font-weight: 800; color: var(--red); }

/* mon équipe */
.myteam { padding: 16px 14px 12px; display: grid; gap: 12px; box-shadow: inset 0 4px 0 var(--tc), 0 1px 0 var(--line-2); }
.myteam .head { display: flex; align-items: center; gap: 10px; }
.myteam .kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kpi { padding: 8px 0 8px 12px; border-left: 1px solid var(--line); display: grid; gap: 2px; }
.kpi:first-child { border-left: 0; padding-left: 0; }
.kpi .k { font-size: 11px; color: var(--muted); }
.kpi .v { font-family: var(--display); font-size: 22px; font-weight: 800; }
.btn { min-height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: 4px; font-size: 13px; font-weight: 800; padding: 0 14px; background: var(--card); }

/* scores */
.scores { display: flex; gap: 8px; overflow-x: auto; padding: 0 12px 2px; scrollbar-width: thin; }
.game { flex: none; width: 146px; background: var(--card); border-radius: 4px; box-shadow: 0 1px 0 var(--line-2); padding: 10px; display: grid; gap: 6px; }
.game .t { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.game .t.w { color: var(--ink); font-weight: 800; }
.game .t.w b { color: var(--green); }
.game .t b { margin-left: auto; font-size: 16px; }
.game .st { font-size: 11px; font-weight: 700; color: var(--muted); }
/* chaque équipe du score mène à sa fiche : zone de tap confortable */
.game a.t { min-height: 32px; }
.game a.st { color: var(--navy); min-height: 24px; display: flex; align-items: center; }

/* filtres */
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 12px; }
.chip { flex: none; min-height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--chip-line); background: var(--card); font-size: 13px; font-weight: 700; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--card); }
.seg { display: flex; background: var(--line); border-radius: 4px; padding: 2px; }
.seg button { flex: 1; min-height: 34px; padding: 0 12px; border: 0; border-radius: 3px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(20,20,20,.2); }
.seg.wide { margin: 0 12px; }
[hidden] { display: none !important; }

/* faits */
.fact { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.fact:last-child { border-bottom: 0; }
.fact .body { display: grid; gap: 3px; min-width: 0; flex: 1; }
.tag { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tag.RECORD { color: var(--navy); } .tag.SÉRIE { color: var(--ink); } .tag.ÉCART { color: var(--purple); }
.tag.JALON { color: var(--green); } .tag.DISCIPLINE { color: var(--amber); } .tag.PREMIÈRE { color: var(--amber); } .tag.SÉRIE.STOPPÉE, .tag.CLASSEMENT { color: var(--muted); }
.fact .txt { font-size: 15px; font-weight: 700; font-stretch: 92%; }
.fact .ctx { font-size: 12px; color: var(--muted); }

/* tableaux */
.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { color: var(--muted); font-size: 11px; font-weight: 600; text-align: right; padding: 9px 6px; }
td { padding: 7px 6px; text-align: right; border-top: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { padding-left: 14px; } th:last-child, td:last-child { padding-right: 14px; }
.l { text-align: left; }
tr.sep td { border-top: 2px solid var(--ink); }
tr.mine td { background: var(--mine); }
caption { text-align: left; padding: 12px 14px 8px; font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; background: var(--head); color: #fff; border-radius: 4px 4px 0 0; }
.rk { font-family: var(--display); font-weight: 800; font-size: 18px; }
.tm { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.form { display: inline-flex; gap: 3px; vertical-align: middle; }
.form i { width: 8px; height: 14px; border-radius: 1px; box-shadow: inset 0 0 0 1.5px var(--muted); }
.form i { background: var(--red); box-shadow: none; }
.form i.w { background: var(--green); }
.hide-m { display: none; }

/* match */
.score-hero { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 8px; padding: 10px 0 4px; }
.score-hero .side { display: grid; justify-items: center; gap: 6px; text-align: center; font-weight: 700; font-size: 14px; }
.score-hero .pts { font-family: var(--display); font-weight: 900; font-size: 52px; line-height: 1; display: flex; gap: 10px; align-items: center; color: var(--head-dim); }
.score-hero .pts .w { color: #fff; }
.cmp { padding: 8px 14px; display: grid; gap: 6px; border-bottom: 1px solid var(--line); }
.cmp .vals { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.cmp .vals b { color: var(--ink); }
.cmp .bars { display: flex; gap: 3px; height: 6px; }
.cmp .bars i { display: block; border-radius: 3px; }

/* fiches */
.kgrid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.kgrid > div { padding: 10px 12px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); display: grid; gap: 1px; }
.kgrid .k { font-size: 11px; color: var(--muted); }
.kgrid .v { font-family: var(--display); font-weight: 800; font-size: 26px; }
.kgrid .d { font-size: 12px; font-weight: 700; }
.kgrid.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
.bars-chart { position: relative; height: 120px; display: flex; align-items: flex-end; gap: 4px; padding: 0 14px; margin-top: 14px; }
.bars-chart i { flex: 1; display: block; border-radius: 2px 2px 0 0; background: color-mix(in srgb, var(--tc) 35%, white); }
.bars-chart i:last-of-type { background: var(--tc); }
.bars-chart .avg { position: absolute; left: 14px; right: 14px; border-top: 2px dashed var(--ink); }
.traj { padding: 12px 14px 8px; }
.traj svg { width: 100%; max-width: 560px; height: auto; display: block; }
.team-head { background: var(--tc) !important; }
.foot { padding: 0 16px; font-size: 11px; color: var(--muted); }
.list-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.list-teams a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); min-height: 52px; font-weight: 700; font-size: 14px; }

.stack { flex: none; display: grid; justify-items: end; gap: 4px; }
/* bouton « Mettre à jour » : volontairement discret, dans le pied de page */
.linkbtn { border: 0; background: none; padding: 0; color: var(--navy); font-size: 11px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.linkbtn:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.refresh-status { display: block; margin-top: 4px; font-weight: 700; }
.refresh-status.ok { color: var(--green); } .refresh-status.ko { color: var(--red); }
.freq { color: var(--ink); font-weight: 600; white-space: nowrap; }  /* la mention passe à la ligne d'un bloc */
/* course au classement (encart Mon équipe, fiche équipe) */
.race { display: grid; gap: 4px; font-size: 13px; }
.race b { display: inline-block; min-width: 58px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.race .in { color: var(--green); } .race .out { color: var(--red); }
.myteam .form { gap: 4px; }
.myteam .form i { width: 10px; height: 16px; }
.myteam .upc { display: grid; gap: 2px; }
.myteam .upc > a { display: flex; align-items: center; gap: 8px; min-height: 34px; font-size: 13px; }
.myteam .upc .when { width: 132px; flex: none; white-space: nowrap; color: var(--muted); }
.myteam .upc .rec { margin-left: auto; color: var(--muted); }
.myteam .lead { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.myteam .lead b { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-right: 4px; }
/* préférences du visiteur */
.myteam.invite { gap: 10px; }
.star { border: 1px solid var(--chip-line); background: var(--card); color: var(--ink); border-radius: 16px; min-height: 32px; padding: 0 12px; font-size: 12px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.star[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--card); }
.myplayers .row .line { font-size: 12px; color: var(--muted); }
.myplayers .row .str { font-size: 12px; font-weight: 700; color: var(--navy); }
.teamgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.teamgrid button { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font-weight: 700; font-size: 14px; text-align: left; cursor: pointer; }
.teamgrid button[aria-pressed="true"] { background: var(--mine); box-shadow: inset 4px 0 0 var(--navy); }
/* page Connexion */
.login { padding: 18px 16px; display: grid; gap: 14px; }
.login label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.login input { min-height: 46px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--ground); color: var(--ink); font: inherit; font-size: 16px; }
.btn.primary { background: var(--head); border-color: var(--head); color: #fff; cursor: pointer; }
.login .linkbtn { justify-self: start; font-size: 13px; }
/* avant-match */
.pv-head { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 10px 0 2px; }
.pv-head a { display: grid; justify-items: center; gap: 6px; color: #fff; font-weight: 800; font-size: 16px; }
.pv-at { font-family: var(--display); font-size: 30px; font-weight: 900; color: var(--head-sub); }
table.pv th { text-align: center; color: var(--muted); font-weight: 600; }
table.pv td:last-child { text-align: right; }
.pv-link { flex: none; font-size: 12px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.lead-line { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.lead-line b { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
/* comparateur */
.cmp-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; }
.cmp-slot { position: relative; min-width: 0; }
.cmp-slot input { width: 100%; min-height: 44px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--ground); color: var(--ink); font: inherit; font-size: 16px; }
.cmp-hits { list-style: none; margin: 4px 0 0; padding: 0; position: absolute; left: 0; right: 0; z-index: 5; background: var(--card); box-shadow: 0 8px 20px rgba(20,20,20,.2); border-radius: 4px; }
.cmp-hits button { width: 100%; text-align: left; border: 0; background: none; color: var(--ink); padding: 10px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; border-bottom: 1px solid var(--line); }
table.cmp { width: 100%; table-layout: fixed; }
table.cmp th:first-child, table.cmp td:first-child { width: 40%; }
table.cmp td, table.cmp th { text-align: center; white-space: normal; }
table.cmp th.l, table.cmp td.l { text-align: left; }
table.cmp td.best { font-weight: 900; color: var(--navy); }
table.cmp tr.grp td { background: var(--ground); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: left; }
/* volet des faits : éléments repliés */
.folded { display: none !important; }
.row.more.fold { width: 100%; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; font-size: 14px; font-weight: 800; color: var(--navy); cursor: pointer; }
.row.more { justify-content: space-between; font-size: 14px; font-weight: 800; color: var(--navy); min-height: 48px; }
@media (max-width: 1023px) {
  /* bandeau mobile : logo, jour ‹ › , réglages et loupe sur une seule ligne à 390 px */
  .top-in { gap: 6px 6px; }
  .brand { font-size: 24px; }
  .daynav a, .daynav span.off { width: 36px; }
  .daynav .lbl, .daynav a.lbl { min-width: 76px; }
  .set-btn, .search-btn { width: 40px; }
  .day { display: flex; flex-direction: column; }
  .day .col { display: contents; }
  .o1 { order: 1; } .o2 { order: 2; } .o3 { order: 3; } .o4 { order: 4; } .o5 { order: 5; }
  .o6 { order: 6; } .o7 { order: 7; } .o8 { order: 8; } .o9 { order: 9; } .o10 { order: 10; }
  /* page match : même principe, stats d'équipe juste sous le score par quart-temps */
  .sheet { display: flex; flex-direction: column; }
  .sheet .col { display: contents; }
}
/* ordi */
@media (min-width: 1024px) {
  .tabs { display: none; }
  .top-nav { display: flex; }
  .top-in { padding: 8px 32px 11px; }
  .search-panel { left: auto; right: 32px; width: 420px; border-radius: 0 0 4px 4px; }
  .brand { font-size: 30px; }
  .wrap { padding: 24px 32px 48px; gap: 28px; }
  .card { margin: 0; }
  .sh { padding: 0; }
  .chips, .scores { padding: 0; }
  .seg.wide { margin: 0; max-width: 360px; }
  .note { margin: -4px 0 0; } .foot { padding: 0; }
  .hide-m { display: table-cell; }
  /* 2 colonnes (6 nov. 2026) : scores, ce soir, infirmerie | le reste */
  .day { grid-template-columns: 320px minmax(0, 1fr); grid-template-areas: "scores main"; align-items: start; }
  .day .a-scores { grid-area: scores; } .day .a-main { grid-area: main; }
  .day .scores { flex-direction: column; overflow: visible; background: var(--card); border-radius: 4px; box-shadow: 0 1px 0 var(--line-2); gap: 0; }
  .day .game { width: auto; box-shadow: none; border-bottom: 1px solid var(--line); border-radius: 0; }
  .two { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .sheet { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
  .sheet .sidepick { padding: 0; }
  .page-head h1 { font-size: 40px; }
  .narrow { max-width: 760px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* matchs à venir : heure locale et cotes */
time.hr { flex: none; width: 44px; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
/* Ce soir : une ligne par équipe, cote en face */
.row.tn { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 8px; row-gap: 2px; align-items: center; padding-top: 10px; padding-bottom: 10px; }
.row.tn time.hr { grid-row: 1; align-self: start; padding-top: 4px; }
.tn-teams { flex: 1; min-width: 0; display: grid; gap: 4px; }
.tn-t { display: flex; align-items: center; gap: 8px; min-height: 26px; font-size: 14px; font-weight: 600; }
.tn-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-o { margin-left: auto; padding-left: 8px; font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.row.tn .pv-link { grid-column: 2; justify-self: end; }

/* victoire / défaite */
.win { color: var(--green); } .loss { color: var(--red); }
.res { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 3px; font-size: 11px; font-weight: 800; color: #fff; }
.res.win { background: var(--green); color: #fff; } .res.loss { background: var(--red); color: #fff; }
.score-hero .res { margin-top: 2px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }

/* page match : sélecteur d'équipe, blocs par équipe, feuille de match */
.sidepick { display: flex; gap: 6px; padding: 0 12px; flex-wrap: wrap; }
.sidepick button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--card); color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.sidepick button[aria-pressed="true"] { background: var(--ink); color: var(--card); border-color: var(--ink); }
.side-h { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-left: 4px solid; border-bottom: 1px solid var(--line); font-weight: 800; font-size: 14px; }
.side-h .res { margin-left: auto; }
section > .card[data-side] + .card[data-side] { margin-top: 2px; }
.mvp .big { color: var(--green); }
.box-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.box { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
table.box th, table.box td { padding: 7px 6px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
table.box th { font-size: 11px; color: var(--muted); font-weight: 700; }
table.box .l { text-align: left; position: sticky; left: 0; background: var(--card); max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
table.box a { font-weight: 700; }
table.box tfoot td { font-weight: 800; border-bottom: 0; }
/* Leaders : 9 statistiques, sur 3 lignes de 3 au téléphone */
.seg.leaders-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
@media (min-width: 1024px) { .seg.leaders-seg { grid-template-columns: repeat(9, minmax(0, 1fr)); max-width: none; } }

/* encart Mon équipe : flèches vers les équipes suivies (au survol ; toujours visibles sur écran tactile) */
.myteam { position: relative; }
#myteam-slot { min-width: 0; }
.mt-wrap { position: relative; min-width: 0; }
.mt-track { display: flex; align-items: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mt-track::-webkit-scrollbar { display: none; }
.mt-track { width: 100%; }
.mt-track > .myteam { flex: 0 0 calc(100% - 24px); margin: 0 12px; scroll-snap-align: center; }
@media (min-width: 1024px) { .mt-track > .myteam { flex-basis: 100%; margin: 0; } }
.mt-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 56px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--card); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; z-index: 2; }
.mt-nav.prev { left: -22px; } .mt-nav.next { right: -22px; }
.mt-wrap:hover .mt-nav, .mt-nav:focus-visible { opacity: 1; }
@media (hover: none) { .mt-nav { display: none; } }
.btn.ord { min-height: 36px; min-width: 36px; padding: 0 8px; margin-left: 4px; }
.btn.ord[disabled] { opacity: .35; cursor: default; }

/* sous-titre d'un titre de section (ex. « de la nuit dernière ») */
.h2-sub { font-size: .62em; font-weight: 700; color: var(--muted); text-transform: none; letter-spacing: 0; }

/* bande des scores (mobile) : prochains matchs à la suite des scores ; sur ordi, section « Ce soir » */
.up-sep { flex: none; display: flex; align-items: center; justify-content: center; width: 26px; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.game.up { box-shadow: inset 0 0 0 1px var(--line-2); background: transparent; }
.game.up .t { color: var(--ink); font-weight: 600; }
.game.up .t b.o { font-size: 13px; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 1023px) { .day .tonight-sec { display: none; } }
@media (min-width: 1024px) { .day .up-sep, .day .game.up { display: none; } }
/* mobile : « Scores et matchs à venir », titre discret comme « Mes équipes » ; ordi : « Scores » */
.m-only { display: none; }
@media (max-width: 1023px) { .m-only { display: inline; } }

/* mobile : bande des scores un peu plus grande */
@media (max-width: 1023px) {
  .game { width: 164px; padding: 12px; gap: 8px; }
  .game .t { font-size: 15px; }
  .game .t b { font-size: 18px; }
  .game .st { font-size: 12px; }
}
/* « Mes équipes » : titre de section plus discret */
.myteams { display: grid; gap: 8px; min-width: 0; }
.sh.sh-s a { font-size: 13px; font-weight: 700; color: var(--navy); }

/* « Mes équipes ‹ 1/3 › » : navigation dans le titre */
.sh.sh-s { justify-content: flex-start; gap: 10px; }
.sh.sh-s .mt-manage { margin-left: auto; }
.sh.sh-s .mt-pos { font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }

/* délimiteur entre la bande des scores et les faits marquants (mobile) : une balle qui rebondit */
.bounce-div { display: none; }
@media (max-width: 1023px) {
  .bounce-div { display: block; position: relative; height: 28px; margin: 6px 16px 0; color: var(--line-2); }
  .bounce-div svg { width: 100%; height: 28px; display: block; }
  .bounce-div .trail { stroke: var(--muted); stroke-width: 1.4; stroke-dasharray: 2 5; stroke-linecap: round; opacity: .7; vector-effect: non-scaling-stroke; }
  .bounce-div .floor { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
  .bounce-div .ball { position: absolute; right: 0; bottom: 1px; width: 14px; height: 14px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #F59A4E, #D9661F 70%);
    box-shadow: inset 0 0 0 1px rgba(90, 42, 12, .55); animation: rebond 1.6s ease-in 2; }
}
@keyframes rebond { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-12px); animation-timing-function: ease-in; } 70% { transform: translateY(0); } 85% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .bounce-div .ball { animation: none; } }

/* bandeau de page (titre, score du match) : sous l'en-tête fixe, il défile avec la page */
.pagehead-wrap { background: var(--head); color: #fff; box-shadow: inset 0 -3px 0 var(--fill-red); }
.top:has(+ .pagehead-wrap) { box-shadow: none; }
.mini-score { border: 0; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; padding: 0 10px; min-height: 32px; border-radius: 16px; background: rgba(255, 255, 255, .1); color: var(--head-sub); font-size: 13px; font-weight: 700; white-space: nowrap; }
.mini-score b { color: var(--head-dim); font-family: var(--display); font-size: 16px; } .mini-score b.w { color: #fff; }

/* « Mes joueurs » : petites cartes côte à côte, à faire défiler (comme la bande des scores, un peu plus grandes) */
#myplayers-slot { display: grid; gap: 8px; min-width: 0; }
.pwrap { position: relative; min-width: 0; }
.pstrip { display: flex; gap: 8px; overflow-x: auto; padding: 0 12px 2px; scroll-padding: 0 12px; scroll-snap-type: x proximity; scrollbar-width: none; }
.pstrip::-webkit-scrollbar { display: none; }
.pwrap:hover .mt-nav { opacity: 1; }
.pwrap .mt-nav.prev { left: -16px; } .pwrap .mt-nav.next { right: -16px; }
.pmini { flex: none; width: 196px; scroll-snap-align: start; background: var(--card); border-radius: 4px; box-shadow: inset 0 3px 0 var(--navy), 0 1px 0 var(--line-2); padding: 12px; display: grid; gap: 8px; align-content: start; color: var(--ink); }
.pm-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pm-av { width: 40px; height: 40px; overflow: hidden; font-size: 14px; }
.pm-av img { width: 100%; height: 100%; object-fit: cover; }
.pm-id { display: grid; min-width: 0; flex: 1; }
.pm-name { font-size: 14px; font-weight: 800; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pm-team { font-size: 11px; font-weight: 700; color: var(--muted); }
.pm-stats { display: flex; gap: 12px; }
.pm-stats span { display: flex; align-items: baseline; gap: 3px; font-size: 11px; color: var(--muted); font-weight: 700; }
.pm-stats b { font-family: var(--display); font-size: 24px; font-weight: 900; color: var(--ink); }
.pm-when { font-size: 11px; color: var(--muted); }
.pm-str { font-size: 11px; font-weight: 700; color: var(--navy); }
@media (min-width: 1024px) { .pstrip { padding: 0; scroll-padding: 0; } }

/* page Invités */
.invite-link { display: grid; gap: 8px; }
.invite-link input { width: 100%; min-height: 40px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--ground); color: var(--ink); font: inherit; font-size: 13px; }
.invite-actions { display: flex; gap: 8px; } .invite-actions .btn { flex: 1; }

/* section sur toute la largeur dans une page à deux colonnes (ex. tous les matchs d'un joueur) */
@media (min-width: 1024px) { .span-all { grid-column: 1 / -1; } }

/* Calendrier : une semaine à la fois + grille de la saison */
.cal-nav { display: grid; gap: 10px; }
.cal-nav .chips { padding: 0 12px; flex-wrap: wrap; }
.cal-week-nav { display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.cal-week-label { flex: 1; text-align: center; font-weight: 800; font-size: 15px; }
.cal-day { display: grid; gap: 8px; }
.tn-t.w .tn-n { font-weight: 800; }
.cal-months { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 12px; scroll-padding: 0 12px; }
.cal-months::-webkit-scrollbar { display: none; }
.cal-month { flex: 0 0 calc(100% - 24px); max-width: 420px; scroll-snap-align: start; margin: 0; }
@media (min-width: 1024px) { .cal-months { padding: 0; scroll-padding: 0; } .cal-month { flex-basis: 380px; } }
.cal-month { padding: 12px; display: grid; gap: 8px; }
.cm-title { font-family: var(--display); font-weight: 800; font-size: 20px; text-transform: uppercase; }
.cm-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cm-h { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); }
.cm-d { position: relative; min-height: 40px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; display: grid; place-items: center; align-content: center; gap: 0; cursor: pointer; padding: 2px 0; }
.cm-d[disabled] { cursor: default; opacity: .45; }
.cm-d.has { background: var(--ground); color: var(--ink); font-weight: 700; }
.cm-d.has.past { opacity: .7; }
.cm-d i { font-style: normal; font-size: 10px; font-weight: 700; color: var(--muted); }
.cm-d.mine { box-shadow: inset 0 0 0 2px var(--navy); }
.cm-d.mine::after { content: ""; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--navy); }
@media (min-width: 1024px) { .cal-nav .chips, .cal-week-nav { padding: 0; } }

@media (hover: none) { .pwrap .mt-nav { display: none; } }

.game.cal-card { width: 110px; align-content: center; justify-items: start; color: var(--navy); font-weight: 800; font-size: 14px; }
.game.cal-card b { font-size: 26px; line-height: 1; }

/* fiche joueur : entête */
.av.xxl { width: 88px; height: 88px; font-size: 32px; box-shadow: inset 0 0 0 4px currentColor; }
.phero { display: grid !important; gap: 8px; }
.ph-main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; align-items: center; }
.ph-id h1 { font-size: 30px; line-height: 1; }
.ph-id .sub { font-size: 12px; font-weight: 600; color: var(--head-sub); margin-top: 4px; }
.ph-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ph-acts .star { color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .45); }
.ph-acts .star[aria-pressed="true"] { background: #fff; color: var(--head); }
.ph-keys { grid-column: 1 / -1; display: flex; gap: 22px; padding-top: 6px; }
.ph-keys div { display: flex; align-items: baseline; gap: 4px; }
.ph-keys b { font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 1; }
.ph-keys span { font-size: 12px; font-weight: 700; color: var(--head-sub); }
@media (min-width: 1024px) { .ph-main { grid-template-columns: auto minmax(0, 1fr) auto; } .ph-keys { grid-column: auto; padding-top: 0; } .ph-id h1 { font-size: 40px; } }
/* moyennes compactes : 6 chiffres sur une ligne */
.kgrid.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1024px) { .kgrid.six { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.kgrid.six > div { padding: 8px 6px; }
.kgrid.six .v { font-size: 20px; white-space: nowrap; }
.kgrid.six .k, .kgrid.six .d { font-size: 10px; }

/* graphiques SVG (charts.py) */
.chart-card { padding: 10px 6px; }
svg.chart, svg.court { width: 100%; height: auto; display: block; }
svg.chart text { font-family: var(--text); fill: var(--muted); }
svg.chart .axis { stroke: var(--line-2); stroke-width: 1; }
svg.chart .bar.win { fill: var(--green); } svg.chart .bar.loss { fill: var(--red); opacity: .85; }
svg.chart .val { font-size: 11px; font-weight: 800; fill: var(--ink); }
svg.chart .lbl { font-size: 10px; font-weight: 700; fill: var(--ink); }
svg.chart .lbl2 { font-size: 9px; }
svg.chart .star { font-size: 12px; fill: var(--amber); }
svg.chart .avg { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 4 3; }
svg.chart .avgl { font-size: 10px; font-weight: 700; fill: var(--ink); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 8px 8px 0; font-size: 11px; color: var(--muted); }
.legend .sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; } .sw.win { background: var(--green); } .sw.loss { background: var(--red); } .sw.neutral { background: var(--line); }
.lstar { color: var(--amber); }
/* centiles */
.pct-row { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr) 3.4em 2.4em; align-items: center; gap: 8px; padding: 7px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.pct-row .pl { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pct-row .pb { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.pct-row .pb i { display: block; height: 100%; background: var(--navy); border-radius: 4px; }
.pct-row .pb i.hi { background: var(--green); } .pct-row .pb i.lo { background: var(--red); }
.pct-row .pv { text-align: right; font-weight: 700; } .pct-row .pp { text-align: right; font-weight: 800; }
/* carte des tirs */
svg.court .lines { stroke: var(--ink); stroke-width: 2; opacity: .55; }
svg.court .zt { font-family: var(--display); font-weight: 800; font-size: 22px; fill: var(--ink); }
svg.court .zt.sm { font-size: 15px; } svg.court .zt.dim { fill: var(--muted); }
svg.court .zs { font-family: var(--text); font-size: 11px; font-weight: 600; fill: var(--ink); opacity: .75; }

/* page Analyses */
svg.scatter .quad { font-size: 9px; font-weight: 700; fill: var(--muted); opacity: .8; }
svg.chart .axl { font-size: 9px; }
svg.chart .tm .dot { stroke: var(--card); stroke-width: 1.2; }
svg.chart .tm .tl { font-size: 8px; font-weight: 700; fill: var(--muted); }
svg.chart .tm .trend { display: none; }
svg.chart .tm.mine .dot { r: 7; stroke-width: 2; }
svg.chart .tm.mine .tl { font-size: 11px; font-weight: 800; fill: var(--ink); }
svg.chart .tm.mine .trend { display: inline; stroke-width: 2; stroke-dasharray: 3 2; }
svg.bump .z6 { fill: var(--navy); opacity: .1; } svg.bump .z10 { fill: var(--navy); opacity: .05; }
svg.bump .rk { font-size: 9px; font-weight: 700; }
svg.bump .line { fill: none; stroke-width: 1.6; opacity: .5; }
svg.bump .tm.mine .line { stroke-width: 3.5; opacity: 1; }
svg.bump .tm.mine .end { r: 4.5; }
svg.bump .tm .tl { font-size: 9px; }
svg.chart .tm:hover .line { opacity: 1; stroke-width: 3; } svg.chart .tm:hover .tl { fill: var(--ink); font-weight: 800; }
.ff-table { overflow-x: auto; scrollbar-width: none; }
.ff-table::-webkit-scrollbar { display: none; }
.ff-table td, .ff-table th { white-space: nowrap; }
.ff-table .tm { position: sticky; left: 0; }
.ffv { font-weight: 700; }
.ffr { display: inline-block; min-width: 20px; padding: 1px 4px; border-radius: 3px; font-size: 10px; font-weight: 800; text-align: center; background: var(--line); color: var(--ink); }
.ffr.top { background: var(--green); color: #fff; } .ffr.bot { background: var(--red); color: #fff; }
.ff-table tr.mine td { background: var(--mine); }
/* graphiques : taille plafonnée sur grand écran */
svg.chart { max-width: 560px; margin: 0 auto; }
svg.chart.scatter, svg.chart.bump { max-width: 640px; }
svg.court { max-width: 460px; margin: 0 auto; }

/* tablette (1024–1279 px) : accueil en 2 colonnes, bande des scores et des matchs à venir en haut (comme sur mobile) */
@media (min-width: 1024px) and (max-width: 1279px) {
  .day { grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "scores scores" "main side"; }
  .day .a-scores { display: contents; }
  .day .a-scores > section:first-child { grid-area: scores; } .day .inj-sec { grid-area: side; }
  .day .scores { flex-direction: row; overflow-x: auto; background: none; box-shadow: none; border-radius: 0; gap: 8px; scrollbar-width: none; }
  .day .scores::-webkit-scrollbar { display: none; }
  .day .game { width: 164px; padding: 12px; border-bottom: 0; border-radius: 4px; box-shadow: 0 1px 0 var(--line-2), 0 0 0 1px var(--line); }
  .day .up-sep { display: flex; } .day .game.up { display: grid; }
  .day .tonight-sec { display: none; }
  .m-only { display: inline; }
}

/* Calendrier : cartes de match */
.cal-day { display: grid; gap: 10px; }
.cal-day[hidden] { display: none; }
.cal-recap { margin: 0 12px; border-radius: 4px; background: var(--card); box-shadow: 0 1px 0 var(--line-2), 0 0 0 1px var(--line); }
.cal-games { display: grid; gap: 10px; }
@media (min-width: 700px) { .cal-games { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 12px; } .cal-games .card { margin: 0; } }
@media (min-width: 1024px) { .cal-games { padding: 0; } .cal-recap { margin: 0; } }
.cg { padding: 10px 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.cg[hidden] { display: none; }
.cg-s { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 48px; }
.cg-s.home { flex-direction: row-reverse; text-align: right; }
.cg-n { display: grid; min-width: 0; font-size: 18px; font-weight: 700; line-height: 1.1; }
.cg-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-n small { font-size: 13px; font-weight: 600; color: var(--muted); }
.cg-s.l .cg-n { color: var(--muted); font-weight: 600; }
.cg-c { display: grid; justify-items: center; gap: 2px; min-width: 64px; }
.cg-c a { font-size: 13px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.cg-h { font-family: var(--display); font-size: 24px; font-weight: 800; line-height: 1; }
.cg-sc { font-family: var(--display); font-size: 24px; font-weight: 800; line-height: 1; color: var(--muted); white-space: nowrap; }
.cg-sc b { font-weight: 800; } .cg-sc b.w { color: var(--green); }
.cal-mwrap .mt-nav.prev { left: -6px; } .cal-mwrap .mt-nav.next { right: -6px; }

a.pct-row { color: var(--ink); }
.kgrid .v.win { color: var(--green); } .kgrid .v.loss { color: var(--red); }

/* logo « TEMPS (huddle) MORT » : l'équipe en cercle autour du ballon (B4) ; le bandeau est noir dans les deux thèmes */
.brand { display: inline-flex; align-items: center; gap: .18em; white-space: nowrap; }
.brand-mark { width: 1.05em; height: 1.05em; flex: none; margin: 0 .04em; }

/* fil du match */
svg.chart .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 3; }
svg.chart .flow-line { stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.flow-keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1px; padding: 0; background: var(--line); overflow: hidden; }
.flow-keys .fk { background: var(--card); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.flow-keys .fk b { font-size: 22px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.flow-keys .fk span { font-size: 12px; color: var(--muted); line-height: 1.25; }
.flow-keys .fk small { font-size: 11px; }
/* le match à revoir : une jauge à la place du score */
.replay .rp { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t g" "c c"; gap: 4px 10px; align-items: center; }
.replay .rp-t { grid-area: t; display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 15px; min-width: 0; flex-wrap: wrap; }
.replay .rp-c { grid-area: c; font-size: 12px; color: var(--muted); }
.replay .rp.rp-top .rp-t::after { content: "À revoir"; margin-left: 4px; padding: 2px 6px; border-radius: 3px; background: var(--fill-red); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.gauge { grid-area: g; display: inline-flex; gap: 3px; }
.gauge i { width: 8px; height: 16px; border-radius: 2px; background: var(--line-2); }
.gauge i.on { background: var(--fill-red); }

/* mode hors-ligne */
.offline-bar { position: sticky; top: 0; z-index: 60; padding: 6px 16px; background: var(--amber); color: #fff; font-size: 13px; font-weight: 700; text-align: center; }
.offline-bar[hidden] { display: none; }

/* ordi (≥ 1280 px) : volet de gauche compact — score sur une ligne par équipe, statut à droite ;
   matchs de ce soir : heure | équipes et cotes | lien avant-match */
@media (min-width: 1280px) {
  .day .game { grid-template-columns: minmax(0, 1fr) 56px; padding: 8px 14px; gap: 0 12px; align-items: center; }
  .day .game .t { grid-column: 1; min-height: 28px; font-size: 14px; }
  .day .game .t b { font-size: 16px; }
  .day .game .st { grid-column: 2; grid-row: 1 / span 2; justify-content: flex-end; text-align: right; font-size: 11px; line-height: 1.3; min-height: 0; }
  .day .row.tn { grid-template-columns: 40px minmax(0, 1fr) 64px; column-gap: 10px; padding: 8px 14px; }
  .day .row.tn time.hr { width: auto; padding-top: 3px; }
  .day .row.tn .pv-link { grid-column: 3; grid-row: 1; align-self: center; justify-self: end; text-align: right; font-size: 11px; line-height: 1.3; }
  .day .tn-teams { gap: 2px; }
  .day .tn-t { min-height: 24px; }
}
