/* Le Récap — feuille de style unique, mobile d’abord */
:root {
  --ink: #0B1D3A; --navy: #1D428A; --red: #C8102E; --ground: #F2F3F5; --card: #FFFFFF;
  --muted: #5A6577; --line: #E4E8EE; --line-2: #DADFE6; --green: #00704A; --amber: #8A5A00; --purple: #5A2D81;
  --display: "Big Shoulders", Impact, "Arial Narrow", sans-serif;
  --text: Archivo, "Arial Narrow", system-ui, sans-serif;
  /* bandeau et remplissages portant du texte blanc : identiques dans les deux thèmes */
  --head: #0B1D3A; --fill-red: #C8102E; --fill-navy: #1D428A; --fill-amber: #8A5A00;
  --mine: #F5F8FD; --av-bg: var(--ground); --chip-line: #C9D0DA;
  color-scheme: light dark;
}
/* Mode sombre : suit le réglage de l'appareil. Décliné de la palette NBA (fond marine, pas noir ;
   aucun orange). Le bandeau garde son marine et son liseré rouge. */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark;
    --ink: #E8EDF5; --navy: #8DB0F2; --red: #FF7482; --ground: #070F1D; --card: #111D33;
    --muted: #9DAAC0; --line: #1F2E4A; --line-2: #2A3B5C; --green: #4CC793; --amber: #E3AE55; --purple: #BCA4EC;
    --mine: #172846; --av-bg: #E8EDF5; --chip-line: #2A3B5C;
}
  /* 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: #E8EDF5; --navy: #8DB0F2; --red: #FF7482; --ground: #070F1D; --card: #111D33;
    --muted: #9DAAC0; --line: #1F2E4A; --line-2: #2A3B5C; --green: #4CC793; --amber: #E3AE55; --purple: #BCA4EC;
    --mine: #172846; --av-bg: #E8EDF5; --chip-line: #2A3B5C;
  }
  /* 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-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: #C9D3E3; font-size: 14px; font-weight: 600; }
.top-nav a[aria-current="page"] { color: #fff; font-weight: 800; box-shadow: inset 0 -3px 0 #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(11,29,58,.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: #C9D3E3; }
.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: 24px; 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); 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(11,29,58,.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 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(11,29,58,.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(--red); } .tag.SÉRIE { color: var(--navy); } .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.w { background: var(--navy); box-shadow: none; }
.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: #8D9BB3; }
.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: 92px; 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: #C9D3E3; }
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(11,29,58,.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; }
}
/* 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; }
  .day { grid-template-columns: 250px minmax(0, 1fr) 340px; grid-template-areas: "scores main side"; align-items: start; }
  .day .a-scores { grid-area: scores; } .day .a-main { grid-area: main; } .day .a-side { grid-area: side; }
  .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; }
  .page-head h1 { font-size: 40px; }
  .narrow { max-width: 760px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
