/* StatNet — Jegyzőkönyv design system
   Minden képernyő egy hivatalos jegyzőkönyv: tinta, vonalzás, egy piros toll.
   Forrás: a "StatNet Jegyzőkönyv" design system (tokens.json) — a változónevek egy-az-egyben
   annak a tokenjei. Két téma: világos (alap, :root) és sötét ([data-theme="dark"]). */
:root {
  --font-base: 'Archivo', 'Arial Narrow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-h:    'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --font-mono: 'Archivo', ui-monospace, Menlo, monospace;
  --font-size-base: 14px;
  --space-card:  16px 18px;
  --table-pad:   9px 12px;
  --table-font:  14px;
  --card-radius: 0px;
  --score-size:  72px;
  --letter-spacing-h: 0;

  /* === Térköz-skála === */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px;

  /* === Típus-skála === */
  --text-2xs: 10px;
  --text-xs:  11px;
  --text-sm:  12.5px;
  --text-md:  14px;
  --text-lg:  16px;
  --text-xl:  20px;
  --text-2xl: 28px;
  --lh-tight: 1.25;
  --lh-base:  1.5;
  --ls-caps:  .14em;

  /* === Vonalvastagság === */
  --rule-hair:  1px;
  --rule-frame: 1.5px;
  --rule-heavy: 2px;
  --rule-pen:   3px;

  /* === Színek — világos jegyzőkönyv === */
  --bg:          #fafbfc;
  --bg-elev:     #fafbfc;
  --bg-card:     #ffffff;
  --bg-band:     #eef3f8;
  --bg-hover:    #f1f5fa;
  --line:        #cbd6e2;
  --line-soft:   #e3e9f0;
  --line-strong: #7d8aa1;
  --txt:         #14213d;
  --txt-mut:     #4a5872;
  --txt-dim:     #5f6c84;
  --accent:      #b0102a;
  --accent-dk:   #8c0d22;
  --accent-bg:   #fbe9ec;
  --accent-tint: #fdf4f5;
  --home:        #b0102a;
  --away:        #1f5fad;
  --good:        #146c43;
  --bad:         #b42318;
  --warn:        #8a5a00;
  --on-accent:   #ffffff;
  --shadow:      none;
  --shadow-pop:  0 10px 30px rgba(20,33,61,.18);
  --radius:      0px;
  --radius-sm:   0px;

  /* Régi kódban szereplő, soha nem definiált változók — tokenekre kötve, hogy a
     sötét-témára írt fallback színek (rgba(255,255,255,…)) ne jelenjenek meg. */
  --border:      var(--line);
  --danger:      var(--bad);
  --card-2:      var(--bg-hover);
  --txt-2:       var(--txt-mut);
  --info:        var(--away);
  --accent-line: var(--accent);

  color-scheme: light;
}

/* === Sötét jegyzőkönyv — ugyanaz a lap arénafényben === */
[data-theme="dark"] {
  --bg:          #0f1522;
  --bg-elev:     #121a2a;
  --bg-card:     #151d2e;
  --bg-band:     #1b2538;
  --bg-hover:    #1f2a3f;
  --line:        #34425c;
  --line-soft:   #243049;
  --line-strong: #66779a;
  --txt:         #e9eef6;
  --txt-mut:     #aeb9cc;
  --txt-dim:     #93a0b6;
  --accent:      #ff7a8a;
  --accent-dk:   #ff9aa6;
  --accent-bg:   #3a1d29;
  --accent-tint: #2a1b26;
  --home:        #ff7a8a;
  --away:        #86b4f5;
  --good:        #5dd39a;
  --bad:         #ff8a7a;
  --warn:        #e8b85c;
  --on-accent:   #0f1522;
  --shadow-pop:  0 12px 32px rgba(0,0,0,.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}
/* Csak nyomtatáskor látszó elemek (pl. kombinált lövéstérkép) — képernyőn rejtve */
.print-only { display: none; }
::selection { background: var(--accent); color: var(--on-accent); }
/* iOS Safari 16px alatti input-nál ráközelít az oldalra fókuszáláskor és nem zoomol
   vissza. Csak érintős/pontatlan-mutatós eszközön kényszerítjük — asztali egérnél a
   kompakt rail-mezők (pl. .lb-select) maradjanak a tervezett méretükön. */
@media (pointer: coarse) {
  input, select, textarea { font-size: max(16px, var(--font-size-base)); }
}
button, a, [role="button"], .tab, .pos-btn, .qual-toggle {
  touch-action: manipulation;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
/* A <select> zárt doboza a fenti témaváltozókból már helyes színt kap; a lenyíló
   listát viszont a böngésző natívan rajzolja — Chromium ezt a két szabályt figyelembe
   veszi, így az nem marad fehér egy nem-fehér világos témában (pl. Műszer). */
select { background-color: var(--bg-card); color: var(--txt); }
option { background-color: var(--bg-card); color: var(--txt); }
/* Böngésző-alap form-vezérlők (button/select/input/textarea) rendszer-betűtípusra
   állnak vissza, nem öröklik az oldal font-family-jét — emiatt Arial-ban jelentek
   meg a gombok/dropdownok Műszer alatt, miközben minden más szöveg Schibsted Grotesk. */
button, select, input, textarea, optgroup {
  font-family: inherit;
}
body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01', 'tnum';
}

/* ---------- Fejléc ---------- */
.topbar {
  /* A tint a témából jön (color-mix), nem fix lila — minden témán helyes árnyalat */
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, transparent) 0%, transparent 100%), var(--bg-elev);
  border-bottom: 1px solid var(--line);
  padding: 10px 18px;
  display: flex; flex-direction: column; gap: 8px;
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
  /* transform, nem top: elkerüli a layout/paint-et kiváltó property animálását,
     így nem akadozik mobilon görgetés közben. */
  transition: transform 0.25s ease;
}
@media (max-width: 900px) {
  .topbar.topbar-hidden { transform: translateY(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .topbar { transition: none; }
}
/* Game and season pages: the header scrolls away with the page; once it has gone, the slim .tb-mini bar
   (bootstrap.js: logo, search, language) slides down from the top edge and stays. */
.tb-compact-page .topbar { position: relative; transform: none; }
.tb-mini {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 44px; box-sizing: border-box;
  display: flex; align-items: center; gap: 10px; padding: 0 var(--sp-7);
  background: var(--bg-elev); border-bottom: var(--rule-heavy) solid var(--txt);
  transform: translateY(-100%); transition: transform .16s ease; pointer-events: none;
}
.tb-mini.on { transform: none; pointer-events: auto; }
.tb-mini .brand { min-height: 0; font-size: 19px; }
.tb-mini .brand-logo { width: 21px; height: 21px; }
.tb-mini .spacer { flex: 1 1 auto; }
.tb-mini .omnibox-trigger, .tb-mini .dd { height: 30px; }
@media (max-width: 900px) {
  .tb-mini { padding: 0 var(--sp-4); }
  .tb-mini .dd-lang { display: none; }   /* on a phone the language lives in the Több sheet */
}
@media (prefers-reduced-motion: reduce) { .tb-mini { transition: none; } }

/* === Sötét jegyzőkönyv — ugyanaz a lap arénafényben === */
[data-theme="dark"] {
  --bg:          #0f1522;
  --bg-elev:     #121a2a;
  --bg-card:     #151d2e;
  --bg-band:     #1b2538;
  --bg-hover:    #1f2a3f;
  --line:        #34425c;
  --line-soft:   #243049;
  --line-strong: #66779a;
  --txt:         #e9eef6;
  --txt-mut:     #aeb9cc;
  --txt-dim:     #93a0b6;
  --accent:      #ff7a8a;
  --accent-dk:   #ff9aa6;
  --accent-bg:   #3a1d29;
  --accent-tint: #2a1b26;
  --home:        #ff7a8a;
  --away:        #86b4f5;
  --good:        #5dd39a;
  --bad:         #ff8a7a;
  --warn:        #e8b85c;
  --on-accent:   #0f1522;
  --shadow-pop:  0 12px 32px rgba(0,0,0,.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}
/* Csak nyomtatáskor látszó elemek (pl. kombinált lövéstérkép) — képernyőn rejtve */
.print-only { display: none; }
::selection { background: var(--accent); color: var(--on-accent); }
/* iOS Safari 16px alatti input-nál ráközelít az oldalra fókuszáláskor és nem zoomol
   vissza. Csak érintős/pontatlan-mutatós eszközön kényszerítjük — asztali egérnél a
   kompakt rail-mezők (pl. .lb-select) maradjanak a tervezett méretükön. */
@media (pointer: coarse) {
  input, select, textarea { font-size: max(16px, var(--font-size-base)); }
}
button, a, [role="button"], .tab, .pos-btn, .qual-toggle {
  touch-action: manipulation;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
/* A <select> zárt doboza a fenti témaváltozókból már helyes színt kap; a lenyíló
   listát viszont a böngésző natívan rajzolja — Chromium ezt a két szabályt figyelembe
   veszi, így az nem marad fehér egy nem-fehér világos témában (pl. Műszer). */
select { background-color: var(--bg-card); color: var(--txt); }
option { background-color: var(--bg-card); color: var(--txt); }
/* Böngésző-alap form-vezérlők (button/select/input/textarea) rendszer-betűtípusra
   állnak vissza, nem öröklik az oldal font-family-jét — emiatt Arial-ban jelentek
   meg a gombok/dropdownok Műszer alatt, miközben minden más szöveg Schibsted Grotesk. */
button, select, input, textarea, optgroup {
  font-family: inherit;
}
body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01', 'tnum';
}

/* ---------- Fejléc ---------- */
.topbar {
  /* A tint a témából jön (color-mix), nem fix lila — minden témán helyes árnyalat */
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, transparent) 0%, transparent 100%), var(--bg-elev);
  border-bottom: 1px solid var(--line);
  padding: 10px 18px;
  display: flex; flex-direction: column; gap: 8px;
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
  /* transform, nem top: elkerüli a layout/paint-et kiváltó property animálását,
     így nem akadozik mobilon görgetés közben. */
  transition: transform 0.25s ease;
}
@media (max-width: 900px) {
  .topbar.topbar-hidden { transform: translateY(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .topbar { transition: none; }
}
.topbar-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.topbar-row.secondary { padding-top: 4px; border-top: 1px solid var(--line-soft); margin-top: 2px; }
.brand {
  font-weight: 800; font-size: 16px; letter-spacing: .3px;
  display: flex; align-items: center; gap: 10px; color: var(--txt);
  text-decoration: none;
}
.brand .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dk));
  box-shadow: 0 0 12px var(--accent);
}
.brand-sub { color: var(--txt-mut); font-weight: 500; font-size: 13px; }
.topbar nav { display: flex; gap: 2px; flex-wrap: wrap; }
.topbar nav a {
  color: var(--txt-mut); text-decoration: none; padding: 6px 9px;
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) { .topbar nav a:hover { background: var(--bg-hover); color: var(--txt); } }
.topbar nav a.active { background: var(--accent-bg); color: var(--accent); }
.topbar .spacer { flex: 1; }
.topbar input.code {
  flex: 1; min-width: 200px;
  background: var(--bg-card); color: var(--txt);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 8px 12px; font-size: 13px;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}
.topbar input.code:focus { outline: none; border-color: var(--accent); }

/* Omnibox (⌘K gyorskeresés) — csak Műszer témában jelenik meg, a többi témát
   érintetlenül hagyja (lásd a data-theme szűrést lent). */
.omnibox-trigger {
  display: none;
  align-items: center; gap: 8px;
  height: 32px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-card); color: var(--txt-mut);
  font-family: var(--font-base, inherit); font-size: 13px; cursor: pointer;
  min-width: 168px;
}
@media (hover: hover) and (pointer: fine) { .omnibox-trigger:hover { color: var(--txt); border-color: var(--accent); } }
.omnibox-trigger svg { flex-shrink: 0; opacity: .8; }
.omnibox-trigger span:nth-child(2) { flex: 1; text-align: left; }
.omnibox-kbd {
  font-family: var(--font-mono, ui-monospace, monospace); font-size: 10px;
  border: 1px solid var(--line); border-radius: 5px; padding: 2px 5px;
  letter-spacing: .04em; color: var(--txt-dim);
}
.omnibox-trigger { display: inline-flex; }

.omnibox-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 400;
  background: rgba(20, 33, 61, .35); backdrop-filter: blur(2px);
  align-items: flex-start; justify-content: center; padding-top: 12vh;
}
.omnibox-backdrop.show { display: flex; }
.omnibox-panel {
  width: min(560px, 92vw); max-height: 70vh;
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); overflow: hidden;
}
.omnibox-input {
  flex-shrink: 0; width: 100%; box-sizing: border-box; height: 52px; padding: 0 18px;
  border: 0; border-bottom: 1px solid var(--line-soft); background: transparent;
  color: var(--txt); font-family: var(--font-base, inherit); font-size: 16px;
}
.omnibox-input:focus { outline: none; }
.omnibox-results { overflow-y: auto; overscroll-behavior: contain; padding: 8px; }
.omnibox-group-label {
  padding: 8px 10px 4px; font-size: 10px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--txt-dim);
}
.omnibox-item {
  display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box;
  padding: 9px 10px; border: 0; border-radius: 7px; background: transparent;
  color: var(--txt); font-family: var(--font-base, inherit); font-size: 13.5px;
  text-align: left; cursor: pointer;
}
.omnibox-item.sel { background: var(--bg-hover); }
@media (hover: hover) and (pointer: fine) { .omnibox-item:hover { background: var(--bg-hover); } }
.omnibox-item .meta {
  margin-left: auto; font-size: 11.5px; color: var(--txt-mut);
  font-family: var(--font-mono, ui-monospace, monospace); white-space: nowrap;
}
.omnibox-empty { padding: 12px 14px; font-size: 12.5px; color: var(--txt-mut); }

.icon-btn { padding: 6px 10px; font-size: 15px; }
/* The main page ("/") has no game loaded: refresh, auto-refresh and the status/freshness chips
   only mean something on the game page (/match). */
body.is-home #refreshBtn, body.is-home .auto-label, body.is-home #statusBadge, body.is-home #freshness { display: none; }
.auto-label {
  display: inline-flex; align-items: center; gap: 6px; color: var(--txt-mut);
  font-size: 12px; padding: 6px 8px; border-radius: var(--radius-sm);
  cursor: pointer; user-select: none;
}
@media (hover: hover) and (pointer: fine) { .auto-label:hover { background: var(--bg-hover); color: var(--txt); } }

@media (max-width: 720px) {
  .topbar { padding: 8px 12px; }
  .brand { font-size: 15px; }
  .brand-sub { display: none; }
  .topbar nav a { padding: 5px 8px; font-size: 12px; }
  .live-toggle .live-text { display: none; }
  .theme-picker { font-size: 11px; padding: 5px 6px; max-width: 110px; }
  .topbar input.code { min-width: 0; flex: 1; }
  .auto-label span { display: none; }
}
.btn {
  background: var(--bg-card); color: var(--txt);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 7px 14px; font-size: 13px; cursor: pointer; font-weight: 500;
  transition: all .15s;
}
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--bg-hover); border-color: var(--accent); } }
.btn.primary { background: var(--accent-dk); border-color: var(--accent); color: white; }
@media (hover: hover) and (pointer: fine) { .btn.primary:hover { background: var(--accent); } }
.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 20px; font-size: 11px;
  font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
}
.status-badge.live { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--bad); }
.status-badge.live::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--bad); animation: pulse 1.2s infinite;
}
.status-badge.live.half { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); }
.status-badge.live.half::before { background: var(--warn); animation: none; }
.gs-live.half { color: var(--warn); }
.status-badge.done { background: color-mix(in srgb, var(--good) 12%, transparent); color: var(--good); }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.freshness {
  font-size: 11px; color: var(--txt-mut); padding: 3px 8px;
  border-radius: 10px; background: var(--bg-card); border: 1px solid var(--line);
  font-variant-numeric: tabular-nums; transition: all .3s;
}
.freshness.warn { color: var(--warn); border-color: var(--warn); background: color-mix(in srgb, var(--warn) 8%, transparent); }
.freshness.stale { color: var(--bad); border-color: var(--bad); background: color-mix(in srgb, var(--bad) 8%, transparent); }

/* ---------- Layout ---------- */
.container { max-width: 1320px; margin: 0 auto; padding: 24px; }
.grid { display: grid; gap: 18px; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) {
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .container { padding: 16px; }
}

/* ---------- Kártyák ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  padding: var(--space-card);
  box-shadow: var(--shadow);
  position: relative;
}
.card h2 {
  font-size: var(--text-xs); margin: 0 0 var(--sp-4);
  color: var(--txt-mut); text-transform: uppercase;
  letter-spacing: var(--ls-caps); font-weight: 700; line-height: var(--lh-tight);
  display: flex; align-items: center; gap: var(--sp-2);
}
.card h2 .sub { color: var(--txt-dim); font-weight: 400; text-transform: none; letter-spacing: 0; margin-left: var(--sp-1); font-size: var(--text-sm); }
.card h2 .grow { flex: 1; }
/* Kártya-fejléc akciógombok (fullscreen, export, …) — egységes ghost-stílus */
.fs-btn, .card h2 .csv-btn {
  background: transparent; border: 1px solid var(--line); color: var(--txt-mut);
  padding: 3px 8px; border-radius: var(--radius-sm); cursor: pointer;
  font-size: 12px; font-weight: 600; transition: all .12s;
  text-transform: none; letter-spacing: 0; line-height: 1.4;
}
@media (hover: hover) and (pointer: fine) { .fs-btn:hover, .card h2 .csv-btn:hover { color: var(--accent); border-color: var(--accent); } }
.card h2 .csv-btn { margin-right: 2px; }

/* Fullscreen mód: a card az egész viewportet kitölti */
.card.fullscreen {
  position: fixed; inset: 0; z-index: 200;
  border-radius: 0; border: none; margin: 0;
  display: flex; flex-direction: column;
  background: var(--bg);
  padding: 14px 18px;
  overflow: hidden;
}
.card.fullscreen > h2 { flex-shrink: 0; }
.card.fullscreen .scroll {
  flex: 1 1 auto; max-height: none; overflow: auto;
}
.card.fullscreen .combo-wrap { flex: 1 1 auto; overflow: auto; }
body.has-fs { overflow: hidden; }

/* ---------- Eredménykijelző ---------- */
.scoreboard {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 28px;
  padding: 26px 24px 22px;
  background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg-card) 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 18px;
}
.scoreboard .tname {
  font-size: 20px; font-weight: 600; line-height: 1.25;
}
.scoreboard .tname.home { text-align: right; }
.scoreboard .tname.home::before {
  content: ''; display: inline-block; width: 4px; height: 22px;
  background: var(--home); margin-right: 10px; vertical-align: -4px; border-radius: 2px;
}
.scoreboard .tname.away::after {
  content: ''; display: inline-block; width: 4px; height: 22px;
  background: var(--away); margin-left: 10px; vertical-align: -4px; border-radius: 2px;
}
.scoreboard .center-col {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scoreboard .scores {
  display: flex; gap: 16px; align-items: baseline;
  font-family: var(--font-h); font-weight: 800;
  font-variant-numeric: tabular-nums; font-size: var(--score-size);
  line-height: 1; letter-spacing: var(--letter-spacing-h);
}
.scoreboard .scores .sep { color: var(--txt-dim); font-size: 40px; font-weight: 300; }
.scoreboard .scores .h { color: var(--home); }
.scoreboard .scores .a { color: var(--away); }
.scoreboard .clock-big {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 28px; font-weight: 700; color: var(--txt);
  letter-spacing: 1px; font-variant-numeric: tabular-nums;
  display: flex; gap: 10px; align-items: center;
}
.scoreboard .clock-big .qchip {
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700;
  background: var(--accent-bg); color: var(--accent);
  padding: 3px 10px; border-radius: 12px; letter-spacing: 1px;
}
.qscores {
  display: flex; gap: 0; margin-top: 4px;
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
.qscores .qcell {
  display: flex; flex-direction: column; align-items: center;
  padding: 4px 11px; min-width: 56px;
  background: var(--bg-elev);
  border-right: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.qscores .qcell:last-child { border-right: none; }
.qscores .qcell .qlabel { font-size: 9px; color: var(--txt-mut); text-transform: uppercase; letter-spacing: .5px; font-weight: 700; margin-bottom: 2px; }
.qscores .qcell .qvals { font-size: 13px; font-weight: 600; }
.qscores .qcell .qvals .h { color: var(--home); }
.qscores .qcell .qvals .a { color: var(--away); }
.qscores .qcell .qvals .d { color: var(--txt-dim); margin: 0 2px; }
@media (max-width: 720px) {
  .scoreboard { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .scoreboard .tname.home, .scoreboard .tname.away { text-align: center; }
  .scoreboard .scores { font-size: 52px; }
  .scoreboard .clock-big { font-size: 24px; }
}

/* ---------- Theme picker ---------- */
.theme-picker {
  background: var(--bg-card); color: var(--txt);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 6px 10px; font-size: 12px; cursor: pointer; font-weight: 500;
}
@media (hover: hover) and (pointer: fine) { .theme-picker:hover { border-color: var(--accent); } }
.meta-row {
  text-align: center; color: var(--txt-mut); font-size: 12px;
  margin-top: 12px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.meta-row span { display: inline-flex; align-items: center; gap: 5px; }
.meta-row .sep-dot { color: var(--txt-dim); }

/* ---------- Csapat-összehasonlítás (bar chart) ---------- */
.cmp { display: grid; grid-template-columns: 1fr 90px 1fr; gap: 8px 14px; align-items: center; }
.cmp .lbl {
  text-align: center; color: var(--txt-mut);
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
}
.bar { height: 28px; background: var(--bg-elev); border-radius: 6px; position: relative; overflow: hidden; }
.bar > span {
  position: absolute; top: 0; bottom: 0; display: flex; align-items: center;
  padding: 0 10px; font-size: 13px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: width .5s ease;
}
.bar.l > span { right: 0; background: linear-gradient(90deg, transparent 0%, var(--home) 100%); justify-content: flex-end; color: white; }
.bar.r > span { left: 0; background: linear-gradient(270deg, transparent 0%, var(--away) 100%); color: white; }
.bar.l.winner > span { box-shadow: inset 0 0 0 2px rgba(255,255,255,.3); }
.bar.r.winner > span { box-shadow: inset 0 0 0 2px rgba(255,255,255,.3); }

/* ---------- Trend chart ---------- */
.trend-wrap { position: relative; }
canvas.trend { width: 100%; height: 240px; display: block; cursor: crosshair; }
.trend-tooltip {
  position: absolute; pointer-events: none; opacity: 0;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 6px; padding: 6px 10px; font-size: 12px;
  font-variant-numeric: tabular-nums; box-shadow: var(--shadow);
  transition: opacity .12s, transform .05s linear;
  white-space: nowrap; z-index: 10;
}
.trend-tooltip.on { opacity: 1; }
.trend-tooltip .tt-time { font-weight: 700; color: var(--txt); margin-bottom: 2px; }
.trend-tooltip .tt-row { display: flex; gap: 8px; justify-content: space-between; min-width: 130px; }
.trend-tooltip .tt-row .lbl { color: var(--txt-mut); }
.trend-tooltip .tt-row .h { color: var(--home); font-weight: 600; }
.trend-tooltip .tt-row .a { color: var(--away); font-weight: 600; }
.trend-note {
  font-size: 12px; color: var(--txt-mut); margin-top: 8px; text-align: center;
}

/* ---------- Tabok / Tab gombok ---------- */
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tab {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 7px 14px; font-size: 13px; cursor: pointer; font-weight: 500; color: var(--txt-mut);
  transition: all .15s;
}
@media (hover: hover) and (pointer: fine) { .tab:hover { color: var(--txt); border-color: var(--accent); } }
.tab.on { background: var(--accent-bg); color: var(--accent); border-color: var(--accent); }

/* ---------- Táblázatok ---------- */
table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-variant-numeric: tabular-nums;
  font-size: var(--table-font);
}
thead { background: var(--bg-elev); }
th, td {
  padding: var(--table-pad); text-align: right; border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
th:first-child, td:first-child { text-align: left; padding-left: 14px; }
th:last-child, td:last-child { padding-right: 14px; }
th {
  color: var(--txt-mut); font-weight: 600; font-size: var(--text-xs);
  text-transform: uppercase; letter-spacing: .5px; cursor: pointer; user-select: none;
  position: sticky; top: 0; background: var(--bg-elev); z-index: 10;
  /* Opák alsó vonal + árnyék hogy a görgő tartalom NE látszódjon át a fejléc alatt */
  box-shadow: 0 1px 0 var(--line), 0 6px 8px -6px rgba(0,0,0,0.4);
  transition: color .12s;
}
@media (hover: hover) and (pointer: fine) { th:hover { color: var(--txt); } }
th.sorted { color: var(--accent); }
th.sorted::after {
  content: '▾'; margin-left: 4px; display: inline-block; font-size: 9px;
}
th.sorted.asc::after { content: '▴'; }
/* A rendezett oszlop teljes hosszában kap finom tintet — látszik, MI szerint áll a sor */
td.sorted-col {
  background-image: linear-gradient(rgba(127,127,127,.07), rgba(127,127,127,.07));
  font-weight: 600;
}
/* Csapat-összegző sor a szezon-átlag tábla alján */
tfoot tr.tfrow td {
  font-weight: 700;
  border-top: 2px solid var(--line-soft);
  background: var(--bg-elev);
  color: var(--txt);
}
tfoot tr.tfrow .tfname { color: var(--accent); text-transform: uppercase; letter-spacing: .5px; font-size: 12px; }
/* Játékos alap-attribútumok csíkja a modalban */
.player-attrs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.player-attrs .attr { background: var(--bg-elev); border: 1px solid var(--line-soft); border-radius: 999px; padding: 4px 11px; font-size: 12px; color: var(--txt-mut); white-space: nowrap; }
.player-attrs .attr b { color: var(--txt); font-weight: 700; }
/* "Kevés-perces játékosok mutatása" toggle a szezon-átlag fejlécében */
.qual-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--txt-mut); cursor: pointer; margin: 0 8px; user-select: none; }
.qual-toggle input { margin: 0; cursor: pointer; }
/* Szoros meccs / clutch statisztika beállítósor */
.clutch-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin: 0 0 10px; font-size: 12px; color: var(--txt-mut); }
.clutch-field { display: flex; flex-direction: column; gap: 4px; }
.clutch-field input[type="number"], .clutch-field select {
  background: var(--bg-elev); color: var(--txt); border: 1px solid var(--line-soft);
  border-radius: 6px; padding: 5px 8px; font-size: 13px; min-width: 90px;
}
.clutch-field select { min-width: 220px; }
.clutch-field input[type="number"] { width: 70px; min-width: 0; }
/* 10%-os küszöb alatt szereplő játékosok — alig láthatóan halványabbak (nem áttetszők) */
tbody tr.subqual td { color: color-mix(in srgb, var(--txt) 88%, var(--txt-mut) 12%); }
@media (hover: hover) and (pointer: fine) { tbody tr.subqual:hover td { color: var(--txt); } }

/* Magasság-korlátos, görgethető tábla: a fejléc fent, a csapat-sor LENT mindig látszik */
.scroll-cap { max-height: 70vh; overflow: auto; }
.scroll-cap thead th { position: sticky; top: 0; z-index: 11; background: var(--bg-elev); }
.scroll-cap thead th:first-child { z-index: 13; }
.scroll-cap tfoot tr.tfrow td { position: sticky; bottom: 0; z-index: 8; background: var(--bg-elev); }
.scroll-cap tfoot tr.tfrow td:first-child { z-index: 10; }
/* Teljes képernyőn több hely jusson a tábláknak */
.card.fullscreen .scroll-cap { max-height: none; }
/* Sticky első oszlop: vízszintes görgetésnél a játékosnév mindig látszik.
   Opák háttér kell (mögötte elcsúszó tartalom), hover/selected állapotban is. */
.scroll td:first-child {
  position: sticky; left: 0; z-index: 5;
  background: var(--bg-card);
}
.scroll th:first-child {
  position: sticky; left: 0; z-index: 12;
  background: var(--bg-elev);
}
/* Hajszál-elválasztó az sticky oszlop jobb szélén, csak görgethető táblákban */
.scroll td:first-child, .scroll th:first-child {
  border-right: 1px solid var(--line-soft);
}
@media (hover: hover) and (pointer: fine) { .scroll tbody tr:hover td:first-child { background: var(--bg-hover); } }
.scroll tbody tr.selected td:first-child { background: var(--accent-bg); }

/* Oszlop-csoportosítás láthatóvá tétele: a csoportok közti határt nagyobb térrel
   és világosabb függőleges elválasztóval jelöljük. */
th.group-start, td.group-start { border-left: 1px solid var(--line); }
th.group-end,   td.group-end   { border-right: 1px solid var(--line); }
/* td-knek áttetsző tint (mögötte a tbody van, ez OK) */
td.col-shoot   { background: rgba(122,0,166,.04); }
td.col-reb     { background: rgba(120,180,255,.04); }
td.col-foul    { background: color-mix(in srgb, var(--warn) 4%, transparent); }
/* th-k OPÁK alappal (sticky miatt!), a tint a tetején linear-gradient-tel */
th.col-shoot {
  background-image: linear-gradient(rgba(122,0,166,.18), rgba(122,0,166,.18));
  background-color: var(--bg-elev);
}
th.col-reb {
  background-image: linear-gradient(rgba(120,180,255,.18), rgba(120,180,255,.18));
  background-color: var(--bg-elev);
}
th.col-foul {
  background-image: linear-gradient(color-mix(in srgb, var(--warn) 18%, transparent), color-mix(in srgb, var(--warn) 18%, transparent));
  background-color: var(--bg-elev);
}
th.col-key { color: var(--accent); font-weight: 800; }
td.col-key { font-weight: 700; color: var(--txt); }
/* Light téma — TD-k áttetsző tint (OK, a tbody alatta) */

/* Light téma — TH-k OPÁK fehér alap + tint a tetején (sticky miatt kritikus, különben átlátszik a tartalom) */

tbody tr { transition: background .12s; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { tbody tr:hover { background: var(--bg-hover); } }
tbody tr.selected { background: var(--accent-bg); }
.pname { font-weight: 600; }
.pnum { color: var(--txt-mut); font-size: 11px; margin-right: 6px; }
.scroll { max-height: 540px; overflow: auto; overscroll-behavior: contain; border-radius: var(--radius-sm); border: 1px solid var(--line-soft); }
.scroll::-webkit-scrollbar { width: 10px; height: 10px; }
.scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 5px; }
@media (hover: hover) and (pointer: fine) { .scroll::-webkit-scrollbar-thumb:hover { background: var(--txt-dim); } }

.pos { color: var(--good); font-weight: 600; }
.neg { color: var(--bad); font-weight: 600; }
.zero { color: var(--txt-dim); }
.heat { font-weight: 600; }
.tag { font-size: 11px; color: var(--txt-mut); font-weight: normal; text-transform: none; letter-spacing: 0; }
.foot { text-align: center; color: var(--txt-dim); font-size: 12px; margin-top: 24px; padding: 12px; }

/* ---------- Modal (játékos drilldown) ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 500;
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); padding: 20px;
}
.modal-backdrop.show { display: flex; }
.modal {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  width: 100%; max-width: 720px; max-height: 90vh; overflow: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  animation: slideUp .25s ease;
}
@keyframes slideUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
.modal header {
  padding: 18px 24px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(180deg, var(--accent-bg) 0%, transparent 100%);
}
.modal header .num {
  background: var(--accent-dk); color: white; width: 42px; height: 42px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
}
.modal header .pn { flex: 1; }
.modal header .pn .nm { font-size: 22px; font-weight: 800; letter-spacing: -.4px; line-height: 1.1; }
.modal header .pn .tm { font-size: 12.5px; color: var(--txt-mut); margin-top: 2px; }
.modal header .close {
  background: none; border: none; color: var(--txt-mut); font-size: 22px;
  cursor: pointer; padding: 4px 10px; border-radius: 6px;
}
@media (hover: hover) and (pointer: fine) { .modal header .close:hover { background: var(--bg-hover); color: var(--txt); } }
.radar-row { display: flex; justify-content: center; gap: 8px; margin: 4px 0 8px; flex-wrap: wrap; }
.radar-one { display: flex; flex-direction: column; align-items: center; }
.radar-title { font-size: 10px; font-weight: 600; color: var(--txt-mut); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.game-log-wrap { margin-top: 4px; }
.game-log-spark { width: 100%; height: 200px; display: block; margin-bottom: 8px; overflow: visible; }
.game-log-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.game-log-table th { color: var(--txt-mut); font-weight: 500; padding: 4px 6px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.game-log-table th:first-child { text-align: left; }
.game-log-table td { padding: 4px 6px; text-align: right; border-bottom: 1px solid var(--line-soft); }
.game-log-table td:first-child { text-align: left; color: var(--txt-mut); font-size: 11px; }
.game-log-table tfoot tr.gl-median td { color: var(--txt-mut); font-weight: 600; font-size: 11px; border-top: 1px solid var(--line); border-bottom: none; background: rgba(255,255,255,0.03); }
.game-log-table td.gl-hi { color: var(--accent); font-weight: 700; }
.game-log-table tr.gl-active td { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.gl-game-card { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 8px 10px; margin-bottom: 6px; background: var(--bg-band); border-radius: 8px; border: 1px solid rgba(255,255,255,0.07); font-size: 12px; }
.gl-card-g { font-weight: 700; font-size: 13px; color: var(--accent); min-width: 28px; }
.gl-cl { color: var(--txt-mut); font-size: 10px; margin-right: 3px; }
.gl-cv { font-weight: 600; }
.gl-cv.gl-hi { color: var(--accent); }
.gl-game-link { margin-left: auto; font-size: 11px; color: var(--accent); text-decoration: none; white-space: nowrap; opacity: 0.85; }
@media (hover: hover) and (pointer: fine) { .gl-game-link:hover { opacity: 1; text-decoration: underline; } }
.modal header .export-btn {
  background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  color: var(--accent); border-radius: 8px; padding: 5px 10px; font-size: 15px;
  cursor: pointer; transition: all 0.15s; margin-right: 4px;
}
@media (hover: hover) and (pointer: fine) { .modal header .export-btn:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); } }
.modal .body { padding: 18px 24px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 18px; }
.kpi {
  background: var(--bg-elev); border-radius: var(--radius-sm); padding: 10px 12px;
  border: 1px solid var(--line-soft);
}
.kpi .lbl { font-size: var(--text-2xs); color: var(--txt-mut); text-transform: uppercase; letter-spacing: var(--ls-caps); font-weight: 600; }
.kpi .val { font-size: var(--text-xl); font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; line-height: var(--lh-tight); }
.kpi .sub { font-size: var(--text-xs); color: var(--txt-dim); margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi.good .val { color: var(--good); }
.kpi.bad  .val { color: var(--bad); }
/* Játékos-profil: kiemelt fejléc-sáv + lenyíló "több statisztika" (broadcast redesign).
   A headline KPI-k mindig látszanak; a másodlagosak egy kattintásra nyílnak, hogy a
   profil ne legyen zsúfolt, de a teljes box-score egy gombnyira maradjon. */
.kpi-more-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--text-sm); font-weight: 600; color: var(--txt-mut);
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 7px 13px; cursor: pointer; margin: 0 0 16px;
  transition: border-color .15s, color .15s;
}
@media (hover: hover) and (pointer: fine) { .kpi-more-btn:hover { border-color: var(--accent); color: var(--txt); } }
.kpi-more-btn .cv { font-size: 10px; color: var(--accent); transition: transform .2s; }
.kpi-more-btn.open .cv { transform: rotate(180deg); }
.kpi-grid.kpi-more {
  max-height: 0; overflow: hidden; opacity: 0; margin: 0;
  transition: max-height .3s ease, opacity .2s ease, margin .3s ease;
}
.kpi-grid.kpi-more.open { max-height: 520px; opacity: 1; margin-bottom: 18px; }
@media print { .kpi-grid.kpi-more { max-height: none !important; opacity: 1 !important; overflow: visible; } .kpi-more-btn { display: none !important; } }

/* === Műszer — fejléc-KPI sáv: osztott sor vékony elválasztókkal, nem dobozolt kártyák ===
   Ugyanez a .kpi-grid/.kpi táplálja a játékos-profilt, a csapat-profilt és több modalt is
   (ui.js renderPlayerProfile, season team profile stb.) — egy helyen javítva mindenhol él. */

/* Expected NB I/A — megbízhatóság-jelző (a szorzó CI-pontosságából + a híd-játékosok számából). */
.exp-conf { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; flex-wrap: wrap; }
.exp-conf-bars { display: flex; gap: 3px; }
.exp-conf-bars i { width: 6px; height: 15px; border-radius: 2px; background: var(--line); display: block; }
.exp-conf-bars.c-high i.on { background: var(--good); }
.exp-conf-bars.c-med  i.on { background: var(--warn, #f0b323); }
.exp-conf-bars.c-low  i.on { background: var(--accent); }
.exp-conf-lab { font-size: var(--text-sm); color: var(--txt-mut); }
.exp-conf-lab b { color: var(--txt); font-weight: 700; }

/* ---- Broadcast projection hero (international scout profile) ---- */
.intl-proj {
  margin: 6px 0 14px; border: 1px solid var(--accent-dk); border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, var(--accent-bg) 0%, transparent 46%), var(--bg-card);
}
.intl-proj-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 18px 12px; border-bottom: 1px solid var(--accent-dk);
}
.intl-proj-hd .t { display: flex; align-items: center; gap: 9px; }
.intl-proj-hd .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}
.intl-proj-hd h3 { font-size: 14px; font-weight: 800; letter-spacing: .2px; margin: 0; }
.intl-proj-mult {
  font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-bg);
  border: 1px solid var(--accent-dk); border-radius: 20px; padding: 4px 11px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.intl-proj-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.intl-proj-grid .m { padding: 16px 8px 14px; text-align: center; border-right: 1px solid var(--line-soft); }
.intl-proj-grid .m:last-child { border-right: none; }
.intl-proj-grid .big { font-size: 28px; font-weight: 800; letter-spacing: -1px; line-height: 1; font-variant-numeric: tabular-nums; }
.intl-proj-grid .rng { font-size: 11px; color: var(--accent); margin-top: 6px; font-variant-numeric: tabular-nums; }
.intl-proj-grid .p40 { font-size: 10.5px; color: var(--txt-dim); margin-top: 6px; }
.intl-proj-grid .p40 b { color: var(--txt-mut); font-weight: 700; }
.intl-proj-grid .lb { font-size: 10px; letter-spacing: .5px; text-transform: uppercase; color: var(--txt-dim); margin-top: 8px; }
.intl-proj-grid .lb .mx { color: var(--txt-mut); letter-spacing: 0; }
.intl-proj-grid .lb .mscope { color: var(--accent); }
.intl-proj-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 11px 18px; border-top: 1px solid var(--line-soft); background: var(--bg-band);
}
.intl-proj-foot .intl-proj-rng { font-size: 11px; color: var(--txt-mut); }
.intl-proj-foot .exp-conf { margin: 0; }
@media (max-width: 560px) {
  .intl-proj-grid .m { padding: 12px 3px 10px; }
  .intl-proj-grid .big { font-size: 20px; }
  .intl-proj-grid .rng { font-size: 9.5px; }
  .intl-proj-grid .p40 { font-size: 9px; }
  .intl-proj-grid .lb { font-size: 8.5px; letter-spacing: .2px; }
  .intl-proj-hd h3 { font-size: 13px; }
}
/* Divider-rule section headers, international scout profile only */
.body.scout .section-head {
  display: flex; align-items: center; gap: 10px; letter-spacing: 1.3px; margin: 22px 0 12px;
}
.body.scout .section-head::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }

/* Broadcast identity header (international scout profile) */
.intl-hero-rt { display: flex; gap: 22px; align-items: center; padding-right: 6px; }
.intl-hero-rt .rt { text-align: center; }
.intl-hero-rt .rt b { display: block; font-size: 23px; font-weight: 800; letter-spacing: -.5px; line-height: 1; font-variant-numeric: tabular-nums; }
.intl-hero-rt .rt.good b { color: var(--good); }
.intl-hero-rt .rt.bad  b { color: var(--bad); }
.intl-hero-rt .rt.blue b { color: var(--info, #4ea8ff); }
.intl-hero-rt .rt span { font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--txt-dim); margin-top: 5px; display: block; }
.intl-pos-badge {
  display: inline-block; vertical-align: middle; background: var(--accent); color: var(--on-accent);
  font-weight: 800; font-size: 11px; letter-spacing: .5px; padding: 3px 8px; border-radius: 6px; margin-left: 9px;
}

/* Clean season strip (international scout profile) */
.intl-strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin-bottom: 14px; }
.intl-strip .s { background: var(--bg-elev); border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px 6px; text-align: center; }
.intl-strip .s b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.intl-strip .s span { font-size: 9.5px; letter-spacing: .6px; text-transform: uppercase; color: var(--txt-dim); margin-top: 5px; display: block; }
.intl-strip .s.sub b { color: var(--txt-mut); font-size: 15px; font-weight: 700; }
@media (max-width: 620px) { .intl-strip { grid-template-columns: repeat(4, 1fr); } }

/* Projected shooting efficiency (international scout profile) */
.intl-shoot { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.intl-shoot .ss { background: var(--bg-elev); border: 1px solid var(--line-soft); border-radius: 10px; padding: 11px 6px; text-align: center; }
.intl-shoot .ssv { font-variant-numeric: tabular-nums; display: flex; align-items: baseline; justify-content: center; gap: 5px; }
.intl-shoot .ssv .raw { font-size: 13px; font-weight: 600; color: var(--txt-dim); }
.intl-shoot .ssv .ar { font-size: 11px; color: var(--txt-dim); }
.intl-shoot .ssv .pj { font-size: 19px; font-weight: 800; letter-spacing: -.5px; color: var(--accent); }
.intl-shoot .ssv .pj.raw-only { color: var(--txt); }
.intl-shoot .ssl { font-size: 9.5px; letter-spacing: .6px; text-transform: uppercase; color: var(--txt-dim); margin-top: 5px; }
@media (max-width: 560px) { .intl-shoot { grid-template-columns: repeat(2, 1fr); } .intl-shoot .ssv .pj { font-size: 17px; } }
/* Nemzetközi ranglista: poszt-jelvény a játékosnév mellett (G/W/B). */
.lb-pos { display: inline-block; font-size: 9px; font-weight: 800; letter-spacing: .4px;
  padding: 1px 5px; border-radius: 4px; background: var(--bg-elev); color: var(--txt-mut);
  vertical-align: middle; margin-left: 5px; }
/* Nemzetközi VS-összehasonlítás — alsó tálca + fedvény (broadcast redesign, surface 4). */
.intl-cmp-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 480;
  transform: translateY(120%); transition: transform .25s ease; pointer-events: none; }
.intl-cmp-tray.show { transform: translateY(0); pointer-events: auto; }
.intl-cmp-tray-in { max-width: 940px; margin: 0 auto 10px; display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; padding: 10px 14px; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.intl-cmp-lead { font-size: var(--text-xs); font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--txt-mut); }
.intl-cmp-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 20px; padding: 4px 6px 4px 11px; }
.intl-cmp-chip em { font-style: normal; font-size: 9px; font-weight: 800; color: var(--txt-mut); }
.intl-cmp-chip button { background: none; border: none; color: var(--txt-mut); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 3px; }
@media (hover: hover) and (pointer: fine) { .intl-cmp-chip button:hover { color: var(--bad); } }
.intl-cmp-go { margin-left: auto; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 12.5px;
  border: none; border-radius: 8px; padding: 7px 14px; cursor: pointer; }
.intl-cmp-go[disabled] { opacity: .4; cursor: default; }
.intl-cmp-clear { background: transparent; color: var(--txt-mut); border: 1px solid var(--line); border-radius: 8px; padding: 7px 11px; font-size: 12px; cursor: pointer; }
.intl-cmp-overlay { position: fixed; inset: 0; z-index: 520; background: rgba(0,0,0,.65); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 20px; }
.intl-cmp-overlay.show { display: flex; }
.intl-cmp-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  width: 100%; max-width: 720px; max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.intl-cmp-card header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px;
  border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--accent-bg) 0%, transparent 100%); }
.intl-cmp-card header h3 { font-size: 15px; font-weight: 800; letter-spacing: -.2px; }
.intl-cmp-x { background: none; border: none; color: var(--txt-mut); font-size: 22px; cursor: pointer; padding: 2px 8px; border-radius: 6px; }
@media (hover: hover) and (pointer: fine) { .intl-cmp-x:hover { background: var(--bg-hover); color: var(--txt); } }
.intl-cmp-headrow { display: grid; padding: 14px 20px 6px; }
.intl-cmp-col { padding: 0 8px; min-width: 0; }
.intl-cmp-col .nm { font-size: 15px; font-weight: 800; letter-spacing: -.3px; }
.intl-cmp-col .nm .pos { font-size: 9px; font-weight: 800; padding: 1px 5px; border-radius: 4px; background: var(--accent); color: var(--on-accent); margin-left: 5px; vertical-align: middle; }
.intl-cmp-col .mt { font-size: 11px; color: var(--txt-dim); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.intl-cmp-band { padding: 7px 20px; background: var(--accent-bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.intl-cmp-row { display: grid; align-items: center; border-bottom: 1px solid var(--line-soft); padding: 0 20px; }
.intl-cmp-lbl { font-size: 11px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--txt-mut); }
.intl-cmp-v { padding: 12px 8px; font-size: 19px; font-weight: 800; letter-spacing: -.4px; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 7px; }
.intl-cmp-v .ci { font-size: 10.5px; font-weight: 500; color: var(--txt-dim); }
.intl-cmp-v.win { color: var(--good); }
.intl-cmp-v.win .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); align-self: center; }
.intl-cmp-foot { padding: 13px 20px; font-size: 11.5px; color: var(--txt-mut); }
.intl-cmp-add { display: inline-flex; align-items: center; gap: 5px; margin: 0 0 12px; font-size: var(--text-sm);
  font-weight: 600; color: var(--accent); background: var(--accent-bg); border: 1px solid var(--accent-line, var(--accent));
  border-radius: var(--radius-sm); padding: 6px 12px; cursor: pointer; transition: background .15s; }
@media (hover: hover) and (pointer: fine) { .intl-cmp-add:hover { background: var(--bg-hover); } }
.section-head {
  font-size: 11px; color: var(--txt-mut); text-transform: uppercase;
  letter-spacing: 1px; font-weight: 700; margin: 14px 0 8px;
}
.shotchart { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.shotbar {
  background: var(--bg-elev); border-radius: var(--radius-sm); padding: 10px;
  border: 1px solid var(--line-soft);
}
.shotbar .nm { font-size: 11px; color: var(--txt-mut); }
.shotbar .stat { font-size: 16px; font-weight: 700; margin: 4px 0; }
.shotbar .bar2 { height: 6px; background: var(--bg-card); border-radius: 3px; overflow: hidden; }
.shotbar .bar2 > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-dk)); }

/* Lövéstérkép összehasonlítás-sáv */
/* "vs." picker in the shot-map card header: a joined label + select box, like a scoresheet header field */
.shot-compare-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; text-transform: none; letter-spacing: 0; font-weight: 600; }
.shot-vs { position: relative; display: inline-flex; align-items: stretch; padding-right: 30px; border: var(--rule-frame) solid var(--txt); background: var(--bg-card); }
.shot-vs-l { display: flex; align-items: center; padding: 0 10px; background: var(--bg-band); border-right: var(--rule-frame) solid var(--txt);
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--txt); }
/* the native select only holds the value; the button and the list below are what the reader sees */
.shot-vs-select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.shot-vs-btn { appearance: none; border: 0; background: transparent; color: var(--txt); font: inherit; font-size: 13px; font-weight: 600;
  text-align: left; padding: 7px 12px; min-width: 190px; max-width: 260px; cursor: pointer; }
.shot-vs-val { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot-vs:not(:has(.shot-vs-select:valid)) .shot-vs-val { color: var(--txt-mut); font-weight: 500; }
.shot-vs:has(.shot-vs-select:disabled) .shot-vs-btn { opacity: .5; pointer-events: none; }
.shot-vs-clear { display: none; align-items: center; justify-content: center; width: 30px; padding: 0; border: 0; border-left: 1px solid var(--line);
  background: transparent; color: var(--txt); font: inherit; font-size: 17px; line-height: 1; cursor: pointer; }
.shot-vs:has(.shot-vs-select:valid) .shot-vs-clear { display: flex; }
.shot-vs-clear:hover { color: var(--accent); }
.shot-vs-pop { position: absolute; z-index: 60; top: calc(100% + 4px); right: -1.5px; min-width: calc(100% + 3px); max-height: 300px; overflow-y: auto;
  margin: 0; padding: 0; list-style: none; background: var(--bg-card); border: var(--rule-frame) solid var(--txt);
  box-shadow: 4px 4px 0 var(--line); text-transform: none; letter-spacing: 0; }
.shot-vs-pop[hidden] { display: none; }
.shot-vs-pop li { display: flex; align-items: center; padding: 9px 14px; font-size: 13px; font-weight: 600; color: var(--txt);
  border-bottom: 1px solid var(--line-soft); cursor: pointer; white-space: nowrap; }
.shot-vs-pop li:last-child { border-bottom: 0; }
.shot-vs-pop li.act { background: var(--bg-hover); }
.shot-vs-pop li.sel { box-shadow: inset 3px 0 0 var(--accent); padding-left: 17px; font-weight: 800; }
.shot-vs-pop li.sel::after { content: '✓'; margin-left: auto; padding-left: 16px; color: var(--accent); font-weight: 800; }
.shot-vs::after { content: ''; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; margin-top: -5px;
  border-right: 2px solid var(--txt); border-bottom: 2px solid var(--txt); transform: rotate(45deg); pointer-events: none; }
.shot-vs:has(.shot-vs-btn:focus-visible) { outline: 2px solid var(--txt); outline-offset: 2px; }
.shot-vs:has(.shot-vs-select:valid) { border-color: var(--accent); }
.shot-vs:has(.shot-vs-select:valid) .shot-vs-l { border-right-color: var(--accent); background: var(--accent); color: #fff; }
.shot-vs-status { font-size: 11px; font-weight: 500; color: var(--txt-mut); }
.shot-vs-status:empty { display: none; }
@media (max-width: 640px) {
  .print-shotmap h2 { flex-wrap: wrap; }
  .shot-compare-bar { flex: 1 1 100%; justify-content: flex-start; }
  .shot-vs { flex: 1 1 auto; } .shot-vs-btn { flex: 1; min-width: 0; max-width: none; }
}
/* Teljes pályás összehasonlítás */
.compare-team-labels { display: flex; justify-content: space-around; padding: 4px 0 6px; font-size: 12px; font-weight: 600; color: var(--accent); }
.compare-summaries { display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: center; padding: 4px 0; }
.compare-summaries .shot-zone-summary { justify-content: center; }

/* Lövéstérkép */
.shot-controls { display: flex; gap: 6px; margin-bottom: 10px; align-items: center; flex-wrap: wrap; }
.shot-svg-wrap { display: flex; justify-content: center; padding: 0; }
.shot-zone-summary {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  font-size: 12px; color: var(--txt-mut); margin-top: 10px;
}
.shot-zone-summary strong { color: var(--txt); }
.modal-shotchart { margin: 0 0 14px; }
.shot-svg { width: 100%; max-width: 540px; height: auto; display: block; margin: 0 auto; }
/* Fullscreen lövéstérkép: a kártya kitölti a viewportot, az SVG felnő */
.card.fullscreen .shot-svg-wrap { flex: 1 1 auto; align-items: center; min-height: 0; }
.card.fullscreen .shot-svg { max-width: min(84.6vw, 1350px); max-height: 72vh; }
.shot-dot { cursor: pointer; transition: r .12s; }
@media (hover: hover) and (pointer: fine) { .shot-dot:hover { r: 7; stroke-width: 2; } }
.shot-tip {
  margin-top: 10px; padding: 8px 12px; background: var(--bg-elev);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 13px; opacity: 0; transition: opacity .15s; text-align: center;
}
.shot-tip.show { opacity: 1; }
/* Single-team chart: the detail of the clicked dot/zone floats over the bottom of the court, so it takes no row of its own */
.shot-svg-wrap { position: relative; }
.shot-svg-wrap > .shot-tip {
  position: absolute; left: 8px; right: 8px; bottom: 8px; margin: 0; display: none; opacity: 1;
  background: var(--bg-card); border: var(--rule-frame) solid var(--txt); text-align: left;
  font-size: 12.5px; line-height: 1.35; padding: 6px 10px; box-shadow: none;
}
.shot-svg-wrap > .shot-tip.show { display: block; }
.shot-tip .pos { color: var(--good); font-weight: 700; }
.shot-tip .neg { color: var(--bad); font-weight: 700; }

/* Kedvencek */
.fav-bar { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 4px; justify-content: center; }
.fav-empty { color: var(--txt-dim); font-size: 12px; padding: 8px; font-style: italic; }
.fav-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px;
  padding: 3px 4px 3px 12px; font-size: 12px;
}
.fav-chip a { color: var(--accent); text-decoration: none; font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .fav-chip a:hover { color: var(--txt); } }
.fav-chip .fav-season { color: var(--txt-mut); font-weight: 400; font-size: 11px; }
.fav-chip .fav-x {
  background: transparent; border: none; color: var(--txt-mut); font-size: 16px;
  cursor: pointer; padding: 0 6px; border-radius: 50%; line-height: 1;
}
@media (hover: hover) and (pointer: fine) { .fav-chip .fav-x:hover { background: var(--bg-hover); color: var(--bad); } }
.fav-star {
  background: transparent; border: 1px solid var(--line); color: var(--txt-mut);
  padding: 4px 10px; border-radius: var(--radius-sm); cursor: pointer; font-size: 14px;
}
.fav-star.on { color: var(--warn); border-color: var(--warn); }
@media (hover: hover) and (pointer: fine) { .fav-star:hover { color: var(--warn); border-color: var(--warn); } }

/* ---------- Combo eszköz ---------- */
.combo-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 800px) { .combo-wrap { grid-template-columns: 1fr; } }
.combo-list {
  background: var(--bg-elev); border-radius: var(--radius-sm); padding: 4px;
  max-height: 360px; overflow: auto; border: 1px solid var(--line-soft);
}
.combo-list label {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px;
  border-radius: 5px; cursor: pointer; font-size: 13px;
}
@media (hover: hover) and (pointer: fine) { .combo-list label:hover { background: var(--bg-hover); } }
.combo-list label.checked { background: var(--accent-bg); }
.combo-list label input { accent-color: var(--accent); }
.combo-list label .nm { flex: 1; }
.combo-list label .minS { font-size: 11px; color: var(--txt-mut); font-variant-numeric: tabular-nums; }
.combo-result {
  background: var(--bg-elev); border-radius: var(--radius-sm); padding: 16px;
  border: 1px solid var(--line-soft);
}
.combo-result .empty { color: var(--txt-mut); text-align: center; padding: 40px 0; font-size: 13px; }
.combo-result h3 { margin: 0 0 12px; font-size: 13px; color: var(--accent); }

/* ---------- Magyarázó oldal ---------- */
.docs { max-width: 900px; margin: 0 auto; padding: 20px 0; }
.docs h1 { font-size: 28px; margin: 0 0 8px; font-weight: 800; }
.docs .lead { color: var(--txt-mut); font-size: 15px; margin-bottom: 30px; }
.docs h2 {
  font-size: 18px; margin: 32px 0 10px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line); color: var(--accent);
}
.docs h3 { font-size: 14px; margin: 18px 0 6px; color: var(--txt); font-weight: 700; }
.docs p { color: var(--txt); margin: 8px 0; }
.docs .formula {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 16px; font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px; color: var(--accent); margin: 10px 0; overflow-x: auto;
}
.docs .note {
  background: color-mix(in srgb, var(--warn) 8%, transparent); border-left: 3px solid var(--warn);
  padding: 10px 14px; border-radius: 4px; margin: 10px 0; font-size: 13px;
}
.docs .note strong { color: var(--warn); }
.docs ul { padding-left: 22px; }
.docs li { margin: 4px 0; }
.docs table.glossary { margin: 12px 0; }
.docs table.glossary td:first-child { color: var(--accent); font-family: monospace; font-weight: 600; }

/* === Műszer — Mutatók (módszertan): nagyobb, karakteresebb tipográfia === */

/* ---------- Üres állapot ---------- */
.empty-state {
  text-align: center; padding: 24px 20px 40px; color: var(--txt-mut);
}
.empty-state h2 { color: var(--txt); font-size: 24px; margin-bottom: 8px; font-weight: 700; }
.empty-state p { font-size: 14px; max-width: 620px; margin: 0 auto 18px; }
.empty-state code { background: var(--bg-card); border: 1px solid var(--line); border-radius: 5px;
  padding: 2px 7px; font-size: 12px; color: var(--accent); font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* ---------- Bajnokságok ---------- */
.lg-cat { margin: 18px 0; }
.lg-cat h3 {
  font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: 1px;
  font-weight: 700; margin: 0 0 10px; padding-left: 4px;
}
.lg-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px;
}
.lg-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; transition: all .15s; cursor: pointer;
}
@media (hover: hover) and (pointer: fine) { .lg-card:hover { border-color: var(--accent); } }
.lg-card .lg-name { font-weight: 600; color: var(--txt); font-size: 14px; margin-bottom: 8px; }
.lg-card .lg-phases { display: flex; flex-wrap: wrap; gap: 5px; }
.lg-phase {
  background: var(--bg-elev); border: 1px solid var(--line-soft); color: var(--txt-mut);
  padding: 4px 10px; border-radius: 14px; font-size: 11px; cursor: pointer; font-weight: 600;
  transition: all .12s;
}
@media (hover: hover) and (pointer: fine) { .lg-phase:hover { background: var(--accent-bg); color: var(--accent); border-color: var(--accent); } }
.lg-phase.on { background: var(--accent); color: white; border-color: var(--accent); }
.lg-phase.beta { border-style: dashed; }
.lg-phase .beta-tag {
  background: var(--warn); color: var(--bg); font-size: 9px; padding: 0 4px;
  border-radius: 3px; margin-left: 4px; font-weight: 800; letter-spacing: .5px; vertical-align: 1px;
}

.phases-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

.league-teams {
  display: grid; grid-template-columns: 1fr; gap: 8px;
}
.lg-team {
  background: var(--bg-elev); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
}
@media (max-width: 720px) {
  .lg-team { grid-template-columns: 1fr; }
}
.lg-team-name { font-weight: 600; color: var(--txt); font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lg-team-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.lg-team-actions .btn { font-size: 11px; padding: 5px 10px; text-decoration: none; }
.lg-team.faded { opacity: .6; }
@media (hover: hover) and (pointer: fine) { .lg-team.faded:hover { opacity: 1; } }
.phase-chip {
  display: inline-block; font-size: 10px; padding: 2px 7px; border-radius: 10px;
  background: var(--bg-card); color: var(--txt-mut); border: 1px solid var(--line);
  font-weight: 600;
}
.phase-chip.active { background: var(--accent-bg); color: var(--accent); border-color: var(--accent); }
.rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-bg); color: var(--accent);
  min-width: 28px; height: 22px; padding: 0 6px; border-radius: 11px;
  font-size: 11px; font-weight: 800;
}

.empty-tabs {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 24px;
}
.etab {
  background: transparent; color: var(--txt-mut); border: none; padding: 8px 18px;
  font-size: 13px; font-weight: 600; cursor: pointer; border-radius: var(--radius-sm);
  transition: all .15s;
}
@media (hover: hover) and (pointer: fine) { .etab:hover { color: var(--txt); } }
.etab.on { background: var(--accent-bg); color: var(--accent); }
/* phones: four tabs share the card's width instead of overflowing it (the row is a flex row, each tab takes an equal part) */
@media (max-width: 600px) {
  .empty-tabs { display: flex; width: 100%; }
  .etab { flex: 1 1 0; min-width: 0; padding: 8px 4px; font-size: 12px; }
}

.team-input-row {
  max-width: 720px; margin: 0 auto 14px;
  display: flex; gap: 8px;
}
.team-input {
  flex: 1; background: var(--bg-card); color: var(--txt);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 9px 14px; font-size: 13px;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}
.team-input:focus { outline: none; border-color: var(--accent); }
/* Finished games: team-name typeahead under the input (reuses the omnibox row styles) */
.team-pick-wrap { position: relative; flex: 1; min-width: 0; display: flex; }
.team-pick-wrap .team-input { width: 100%; min-width: 0; }
@media (max-width: 560px) {
  .team-input-row { flex-wrap: wrap; }
  .team-pick-wrap { flex-basis: 100%; }
  .team-input-row > .btn { width: 100%; }
}
.team-pick {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30;
  max-height: min(360px, 60vh); overflow-y: auto; overscroll-behavior: contain; padding: 6px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.team-pick .omnibox-item { font-size: 13.5px; }
.team-pick .omnibox-item > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-suggestions {
  font-size: 12px; color: var(--txt-mut); margin-bottom: 16px;
}
.team-suggestions code { cursor: pointer; margin: 0 4px; }
@media (hover: hover) and (pointer: fine) { .team-suggestions code:hover { background: var(--accent-bg); } }

.team-result-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; margin: 8px auto; max-width: 900px;
  text-align: left;
}
.team-result-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.team-result-head .nm { font-size: 18px; font-weight: 700; color: var(--txt); }
.team-result-head .ssn { font-size: 12px; color: var(--txt-mut); }
.team-result-head .spacer { flex: 1; }
.team-game-row {
  display: grid; grid-template-columns: 90px 1fr auto auto;
  gap: 12px; align-items: center;
  padding: 9px 12px; border-radius: var(--radius-sm);
  cursor: pointer; transition: all .12s;
  background: var(--bg-elev); border: 1px solid var(--line-soft);
  margin-bottom: 5px;
}
@media (hover: hover) and (pointer: fine) { .team-game-row:hover { border-color: var(--accent); background: var(--bg-hover); } }
.team-game-row .rnd { font-size: 11px; color: var(--txt-mut); font-weight: 600; }
.team-game-row .opp { font-weight: 600; font-size: 14px; color: var(--txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-game-row .ha {
  font-size: 10px; padding: 2px 8px; border-radius: 4px;
  background: var(--bg-card); color: var(--txt-mut); font-weight: 700;
}
.team-game-row .res {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14px; font-weight: 700; min-width: 88px; text-align: right;
}
.team-game-row .res.win { color: var(--good); }
.team-game-row .res.loss { color: var(--bad); }
.team-game-row .res .rletter { font-family: 'Inter'; font-size: 11px; padding: 0 5px; opacity: .7; }
@media (max-width: 640px){
  .team-game-row { grid-template-columns: 60px 1fr auto; }
  .team-game-row .ha { display: none; }
  .team-game-row .opp { font-size: 13px; }
}

.season-btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.season-status {
  font-size: 12px; color: var(--txt-mut); margin-top: 8px; text-align: center;
}
/* Szezon-specifikus figyelmeztető sáv (pl. x1920 COVID) */
.season-note {
  font-size: 13px; line-height: 1.45; margin: 10px 0;
  padding: 10px 14px; border-radius: 10px;
  background: color-mix(in srgb, var(--warn) 14%, var(--bg-elev));
  border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent);
  color: var(--txt);
}
.exp-mpg {
  font-size: 13px; line-height: 1.45;
  color: var(--txt-mut);
}
.exp-mpg label { color: var(--txt); }
.exp-mpg-now { color: var(--txt-mut); font-size: 12px; }
/* Destination-league picker: sits with the minutes input under the projection, because the two are
   the same kind of control — the assumptions the per-game headline rests on. Wraps to its own line
   on a phone; the select is capped so a long league name cannot push the modal sideways. */
.exp-dest {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; line-height: 1.45; margin-top: 10px; color: var(--txt-mut);
}
.exp-dest label { color: var(--txt); }
.exp-dest select {
  font: inherit; padding: 4px 8px; border-radius: 8px; max-width: 100%;
  background: var(--bg-elev); color: var(--txt); border: 1px solid var(--line);
}
.exp-dest-note { font-size: 12px; line-height: 1.45; color: var(--txt-mut); margin-top: 6px; }
.progress-wrap {
  background: var(--bg-elev); border-radius: 10px; overflow: hidden;
  height: 6px; margin: 8px 0;
}
.progress-bar { height: 100%; background: var(--accent); width: 0; transition: width .2s; }

/* ---------- Szezon-hero (csapatnév + meta + akciók) ---------- */
.season-head {
  display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap;
}
/* A cím vizuálisan előre kerül, a gombok (vissza, kedvenc) jobbra rendeződnek */
.season-head .season-title {
  order: -1; flex: 1 1 auto; min-width: 200px;
  display: flex; flex-direction: column; gap: 3px;
}
.season-head .season-title > span:first-child {
  font-size: var(--text-2xl); font-weight: 800;
  letter-spacing: -.4px; line-height: var(--lh-tight);
}
.season-head .season-title .tag {
  font-weight: 500; font-size: var(--text-sm); color: var(--txt-mut);
  letter-spacing: 0;
}
.season-head .season-title .tag-season {
  display: inline-block; font-weight: 700; font-size: var(--text-xs);
  color: var(--accent); background: var(--accent-bg, rgba(99,102,241,.14));
  border: 1px solid var(--accent); border-radius: 6px; padding: 1px 7px;
  vertical-align: middle; margin: 0 4px;
}
.season-head .season-title .tag-season:empty { display: none; }
.season-head .btn, .season-head .fav-star { flex-shrink: 0; }
@media (max-width: 640px) {
  .season-head .season-title > span:first-child { font-size: 22px; }
}

/* Kártya-ritmus: egymás alatti kártyák egységes térközzel */
.card.stack { margin-top: var(--sp-4); }

/* ---------- Élő meccsek lista ---------- */
.live-list-empty {
  max-width: 900px; margin: 0 auto;
}
.live-empty-msg {
  color: var(--txt-mut); padding: 40px 20px; font-size: 14px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.live-section {
  margin: 12px 0; padding: 14px 16px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); text-align: left;
}
.live-section .league-hd {
  font-size: 11px; color: var(--accent); text-transform: uppercase;
  letter-spacing: 1px; font-weight: 700; margin-bottom: 8px;
}
.live-row {
  display: grid; grid-template-columns: 1fr auto 1fr auto;
  gap: 12px; align-items: center;
  padding: 10px 14px; border-radius: var(--radius-sm);
  cursor: pointer; transition: all .12s;
  background: var(--bg-elev); border: 1px solid var(--line-soft);
  margin-bottom: 6px;
}
@media (hover: hover) and (pointer: fine) { .live-row:hover { border-color: var(--accent); background: var(--bg-hover); transform: translateY(-1px); } }
.live-row:last-child { margin-bottom: 0; }
.live-row .h, .live-row .a {
  font-weight: 600; font-size: 14px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.live-row .h { text-align: right; color: var(--home); }
.live-row .a { text-align: left; color: var(--away); }
.live-row .score {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 17px; font-weight: 700; color: var(--txt);
  white-space: nowrap; padding: 0 4px;
  font-variant-numeric: tabular-nums;
}
.live-row .time {
  font-size: 11px; color: var(--txt-mut);
  background: var(--bg-card); padding: 3px 8px; border-radius: 10px;
  font-weight: 600; white-space: nowrap; min-width: 70px; text-align: center;
}
@media (max-width: 640px) {
  .live-row { grid-template-columns: 1fr auto 1fr; }
  .live-row .time { grid-column: 1 / -1; text-align: center; margin-top: 4px; }
  .live-row .h, .live-row .a { font-size: 13px; }
  .live-row .score { font-size: 15px; }
}

/* ---------- Topbar live dropdown ---------- */
.live-dd-wrap { position: relative; }
.live-toggle {
  display: inline-flex; align-items: center; gap: 6px;
}
.live-toggle .live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--bad); animation: pulse 1.2s infinite;
}
.live-toggle .live-count {
  background: var(--accent-bg); color: var(--accent);
  padding: 1px 7px; border-radius: 9px; font-size: 11px; font-weight: 700;
  margin-left: 2px; min-width: 16px; text-align: center;
}
.live-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px; min-width: 360px; max-width: 480px;
  max-height: 540px; overflow: auto; z-index: 100;
  display: none;
}
.live-dropdown.show { display: block; }
.live-dropdown .league-hd {
  font-size: 10px; color: var(--accent); text-transform: uppercase;
  letter-spacing: 1px; font-weight: 700; padding: 8px 10px 4px;
}
.live-dropdown .live-row {
  margin-bottom: 4px; padding: 8px 12px; font-size: 13px;
  grid-template-columns: 1fr auto 1fr;
}
.live-dropdown .live-row .time { display: none; }
.live-dropdown .live-row .score { font-size: 14px; }
.live-dropdown .empty {
  padding: 24px; text-align: center; color: var(--txt-mut); font-size: 13px;
}
@media (max-width: 720px) {
  .live-dropdown { position: fixed; left: 8px; right: 8px; top: 60px; min-width: 0; max-width: none; }
}
.error-banner {
  background: color-mix(in srgb, var(--bad) 10%, transparent); border: 1px solid var(--bad); border-radius: var(--radius-sm);
  padding: 12px 16px; color: var(--bad); margin: 16px 0; font-size: 13px;
}

/* ---------- Layout-specifikus extra szabályok ---------- */

/* Tömör layout: zsugorítva, kis padding, kompakt vizuális */

/* Magazin layout: serif heading, szellős, halvány keretek, klasszikus újság-érzet */

/* Tribün layout: vastag broadcast-stílus, hangsúlyos színek, NagyKönyv betűk */

/* ============================================================
   MIKRO-INTERAKCIÓK + SKELETON + TOAST
   ============================================================ */

/* Gomb-lenyomás visszajelzés */
.btn:active, .tab:active, .fs-btn:active, .lg-phase:active, .etab:active {
  transform: translateY(1px);
}
/* Ugyanez a köznapi gomb/link-szerű vezérlőknek, amiknek eddig nem volt saját :active
   állapota — érintőn enélkül a tap "halottnak" érződik, mert csak a click-kor változik bármi. */
.topbar nav a:active, .pos-btn:active, .qual-toggle:active, .omnibox-trigger:active,
button:active, [role="button"]:active {
  transform: scale(0.97);
}

/* Billentyűzet-fókusz: látható, de csak focus-visible esetén (egér-kattintásra nem) */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Modal backdrop finom fade */
.modal-backdrop.show { animation: fade-in .15s ease; }
@keyframes fade-in { from { opacity: 0 } to { opacity: 1 } }

/* Bajnokság-kártyák hover-emelkedés */
@media (hover: hover) and (pointer: fine) { .lg-card:hover { transform: translateY(-1px); box-shadow: var(--shadow); } }
.lg-card { transition: border-color .15s, transform .15s, box-shadow .15s; }

/* Témaváltás simítása */
body, .card, .topbar, .scoreboard { transition: background-color .2s ease, border-color .2s ease; }

/* --- Skeleton loader: a betöltő tartalom alakját idéző csillámló sávok --- */
.skel {
  position: relative; overflow: hidden;
  background: var(--bg-elev); border-radius: 6px;
}
.skel::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--txt) 6%, transparent) 50%, transparent 100%);
  animation: skel-shimmer 1.4s infinite;
}

@keyframes skel-shimmer { from { transform: translateX(-100%) } to { transform: translateX(100%) } }
.skel-row  { height: 14px; margin: 12px 0; }
.skel-row.w60 { width: 60%; }
.skel-row.w80 { width: 80%; }
.skel-chip { display: inline-block; height: 24px; width: 86px; border-radius: 14px; margin-right: 6px; }
.skel-block { height: 120px; margin: 8px 0; border-radius: var(--radius-sm); }

/* --- Toast (alert() helyett) --- */
.toast-host {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 1000; display: flex; flex-direction: column; gap: 8px;
  pointer-events: none; max-width: min(92vw, 480px);
}
.toast {
  background: var(--bg-elev); border: 1px solid var(--line); color: var(--txt);
  padding: 11px 18px; border-radius: 10px; box-shadow: var(--shadow);
  font-size: var(--text-sm); font-weight: 500; text-align: center;
  animation: toast-in .2s ease;
}
.toast.err { border-color: var(--bad); }
.toast.err::before { content: '⚠ '; color: var(--bad); }
.toast.out { opacity: 0; transform: translateY(6px); transition: all .25s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }
@media (max-width: 640px) {
  .toast-host { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* ============================================================
   MOBIL (≤640px) — natív PWA-érzet
   - a topbar nav fix alsó tab-sávvá alakul (safe-area támogatással)
   - kártyák full-bleed (szélig érnek)
   - nagyobb érintési célpontok
   ============================================================ */
@media (max-width: 640px) {
  /* --- Alsó navigációs sáv --- */
  .topbar nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; gap: 0;
    background: var(--bg-elev);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(0,0,0,.25);
    padding: 4px 8px calc(4px + env(safe-area-inset-bottom, 0px));
    /* Több nav-elemnél (pl. admin extra linkje) a sáv vízszintesen görgethető
       legyen ahelyett, hogy kilógna a viewportból — a tabok száma oldalanként nő. */
    overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .topbar nav::-webkit-scrollbar { display: none; }
  .topbar nav a {
    flex: 1 0 auto; text-align: center;
    padding: 10px 10px; min-height: 44px; min-width: max-content;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600;
    border-radius: var(--radius-sm);
  }
  .topbar nav a.active { background: var(--accent-bg); color: var(--accent); }
  /* A tartalom ne csússzon az alsó sáv alá */
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .card.fullscreen { bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }

  /* --- Full-bleed kártyák --- */
  .container { padding: 12px 0; }
  .card { border-radius: 0; border-left: none; border-right: none; }
  .card.stack { margin-top: var(--sp-3); }
  .scoreboard { border-radius: 0; border-left: none; border-right: none; }

  /* --- Érintési célpontok --- */
  td { padding-top: 10px; padding-bottom: 10px; }
  .btn { min-height: 38px; }
  .tab { min-height: 38px; }
  .lg-phase { padding: 7px 12px; }
  .lg-team-actions .btn { min-height: 34px; }

  /* --- Modal: teljes szélesség, alulról csúszik fel --- */
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal {
    max-width: none; max-height: 92vh;
    border-radius: 16px 16px 0 0; border-bottom: none;
  }
}

/* ============================================================
   MOBIL & TABLET KIEGÉSZÍTŐ JAVÍTÁSOK
   Minden szabály max-width/max-height alapú — desktop (>768px) érintetlen.
   ============================================================ */

/* Radar: SVG-k ne lógnak ki a konténerükből */
.radar-one svg { max-width: 100%; height: auto; }

/* Excel export + fullscreen: mobilon rejtett, csak desktop */
@media (max-width: 768px) {
  .csv-btn { display: none !important; }
  .fs-btn  { display: none !important; }
}

/* Telefon álló — radar oszlopba rendezés */
@media (max-width: 480px) {
  .radar-row { flex-direction: column; align-items: center; gap: 12px; }
  .radar-one { width: 100%; max-width: 300px; }
  .radar-one svg { width: 100%; }

  /* Leaderboard kontroll sáv: apróbb elemek, még jobban behúzva */
  .lb-controls { gap: 8px; }

  /* Alsó nav: kis képernyőn szűkebb betűméret, hogy ne törjön */
  .topbar nav a { font-size: 10px; padding: 8px 2px; }

  /* Játékosmeccs-kártya: kompaktabb */
  .gl-game-card { gap: 4px 8px; font-size: 11px; }
  .gl-card-g { font-size: 12px; }
}

/* Telefon & kis tablet álló */
@media (max-width: 640px) {
  /* Modal: flex oszlop → fejléc rögzített, body scrollozható */
  .modal { display: flex; flex-direction: column; }
  .modal header { flex-shrink: 0; }
  /* Profile header on a phone: the scout hero (BPM / VORP) sat beside the name and pushed the header to
     466 px in a 371 px screen. It wraps to its own full-width row under the name and buttons instead. */
  .modal header { flex-wrap: wrap; }
  .modal header .pn { min-width: 0; }
  .modal header .intl-hero-rt { order: 9; flex: 1 0 100%; padding-right: 0; }
  .modal .body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; min-height: 0; }

  /* Topbar pickers: sokkal kisebb mobilon, hogy elférjenek a brand mellett */
  #themePicker, #layoutPicker { max-width: 72px; font-size: 10px; padding: 4px 2px; }

  /* User chip: csak az ikon és a logout gomb marad, az email/label rejtett */
  #userChip span:first-child { display: none; }
  #userChip { padding: 2px 4px; margin-left: 4px; }

  /* Live dropdown szöveg elrejtése mobilon (csak szám + dot marad) */
  .topbar .live-text { display: none; }

  /* Radar a modalban: ne lógjon ki */
  .radar-one svg { width: 190px; height: 180px; }
  .radar-row { gap: 4px; }

  /* Szezon-fejléc: kisebb betűméret nagyon szűk képernyőn */
  .season-head h1 { font-size: 18px; }
  .season-head .sub { font-size: 11px; }

  /* Tablet portrait és alatt: leaderboard kontrollok wrapping */
  .lb-controls { gap: 6px; }

  /* ---- Stat táblázatok mobilon ---- */

  /* Kisebb cella padding — több sor fér el */
  td { padding-top: 6px !important; padding-bottom: 6px !important; }
  th { padding-top: 5px !important; padding-bottom: 5px !important; }

  /* Scroll konténer: vizuális jelzés hogy jobbra több van (fade overlay) */
  .scroll { position: relative; }

  /* Szezon-átlagok h2: sortörés mobilon — cím és kontrollok külön sorban */
  .card h2:has(.qual-toggle) {
    flex-wrap: wrap;
    gap: 6px;
  }
  /* A "fejlécre kattintva rendezhető" alcím rejtve mobilon — felesleges helyfoglalás */
  .card h2 .sub { display: none; }
  /* A qual-toggle checkbox-ok kisebb betűvel */
  .qual-toggle { font-size: 11px; margin: 0 4px; }

  /* Táblázat fejléc: kisebb betűméret */
  .scroll th, .scroll-cap th { font-size: 11px; padding-left: 6px; padding-right: 6px; }
  .scroll td, .scroll-cap td { font-size: 12px; padding-left: 6px; padding-right: 6px; }

  /* Leaderboard táblázat: a rang oszlop kisebb */
  .lb-rank { width: 28px; min-width: 28px; }
}

/* Tablet álló (769px–1024px) — a 980px-es collapse már lefedi a rácsot,
   itt csak a finomhangolás marad */
@media (min-width: 641px) and (max-width: 1024px) {
  /* Radar: két panel elfér egymás mellett, de kisebb SVG-vel */
  .radar-one svg { width: 185px; height: 175px; }
}

/* Fekvő telefon (széles, de alacsony nézőpont) */
@media (max-height: 500px) and (max-width: 900px) {
  /* Topbar secondary sor magasságcsökkentés */
  .topbar-row.secondary { padding: 2px 8px; }
  .topbar-row.secondary input.code { padding: 6px 10px; }

  /* Modal: limitált magasság fekvő módban, scrollozható body */
  .modal { max-height: 96vh; }

  /* Fekvő módban nincs alsó nav → kevesebb alap padding */
  body { padding-bottom: 8px; }

  /* Scoreboard: kompaktabb fekvőben */
  .scoreboard { font-size: 13px; }
  .score-val { font-size: 36px; }
}

/* ============================================================
   NYOMTATÁS — edzők kinyomtatják a szezon-elemzést
   ============================================================ */
@media print {
  :root { color-scheme: light; }
  /* Alapból álló (portré) oldalak; a játékos-statisztika tábla külön fekvő oldalra kerül */
  @page { size: A4 portrait; margin: 12mm; }
  @page landscapeStats { size: A4 landscape; margin: 10mm; }
  body { background: #fff !important; color: #111 !important; padding: 0 !important; }
  /* Navigáció, vezérlők, interaktív elemek elrejtése */
  .topbar, .fs-btn, .csv-btn, .fav-star, .fav-bar, .btn, .tabs, .theme-picker,
  .toast-host, .live-dd-wrap, .foot, .shot-controls, .team-input-row { display: none !important; }
  /* Nyomtatásból kihagyott blokkok (pl. játékos-kombináció eszköz — papíron értelmetlen) */
  .noprint { display: none !important; }
  /* 5-ös egységek: csak a ≥10 perc együtt játszottak, és azokból is csak a top 20
     (PRINT_LU_LIMIT), hogy egy lapra férjenek */
  tr.lu-under10, tr.lu-print-overflow { display: none !important; }
  .card {
    background: #fff !important; border: 1px solid #ccc !important;
    box-shadow: none !important; border-radius: 0 !important;
    margin-top: 8px !important;
  }
  /* ---- 1. OLDAL (portré): csapatnév (hero) + csapat-stat (profil) EGYÜTT ---- */
  /* A hero vékony fejléc, a profil közvetlenül utána folyik; tömörített méretek,
     hogy mindkettő egy lapra férjen. break-inside auto: ha mégis hosszú, belül törhet. */
  .print-hero { break-after: avoid !important; break-inside: avoid !important; margin-top: 0 !important; padding: 4px 0 !important; }
  .print-hero .season-head { gap: 4px !important; }
  .print-keep { break-before: avoid !important; break-inside: auto !important; }
  .print-keep .kpi-grid { gap: 4px !important; margin-bottom: 8px !important; }
  .print-keep .kpi { padding: 4px 6px !important; }
  .print-keep .kpi .lbl { font-size: 8px !important; }
  .print-keep .kpi .val { font-size: 13px !important; }
  .print-keep .kpi .sub { font-size: 8px !important; }
  .print-keep .section-head { font-size: 9px !important; margin: 8px 0 4px !important; }
  .print-keep .shotbar { padding: 5px !important; }

  /* ---- 2. OLDAL (fekvő): játékos-stat tábla, saját teljes lapon ---- */
  .print-landscape {
    page: landscapeStats; break-before: page; break-after: page;
    break-inside: avoid !important;
    margin: 0 !important; padding: 0 !important; border: none !important;
  }
  .print-landscape h2 { margin: 0 0 6px !important; font-size: 13px !important; }
  .print-landscape h2 .grow, .print-landscape h2 .csv-btn { display: none !important; }
  .print-landscape .scroll { overflow: visible !important; border: none !important; }
  .print-landscape table { width: 100% !important; font-size: 9px !important; table-layout: auto; }
  .print-landscape th, .print-landscape td {
    padding: 3px 4px !important; white-space: nowrap;
    border-bottom: 1px solid #ddd !important;
  }
  .print-landscape th { font-size: 8px !important; letter-spacing: 0 !important; }
  /* Színkiemelés (heat) eltávolítása nyomtatáskor — tintatakarékos, tisztább */
  .print-landscape td[style*="background"] { background: #fff !important; }

  /* ---- 3. OLDAL: lövéstérkép SAJÁT lapon, hőtérkép + pontok egy képen ---- */
  /* Az interaktív (egy-módú) térkép rejtve, a kombinált print-only verzió látszik. */
  .print-only { display: none; }
  #seasonShotChartArea { display: none !important; }
  .print-shotmap {
    break-before: page; break-inside: avoid !important;
    /* Világos pálya nyomtatáshoz: a court SVG a CSS-változókból színez */
    --bg-elev: #ffffff; --bg: #ffffff; --bg-card: #ffffff;
    --txt-mut: #888888; --accent: #b0102a;
    --court-floor: #ffffff; --court-floor-far: #ffffff; --court-key: #efefef; --court-line: #888888;
  }
  .print-shotmap .print-only { display: block !important; }
  /* KÉT külön pálya egymás mellett: lövéspontok | hőtérkép — nem fedik egymást */
  .print-shotmap .print-chart2 { display: flex; gap: 6mm; justify-content: center; align-items: flex-start; }
  .print-shotmap .print-chart2 > div { flex: 1 1 50%; min-width: 0; }
  .print-chart-label {
    font-size: 11px; font-weight: 700; text-align: center; margin-bottom: 4px;
    color: #333; text-transform: uppercase; letter-spacing: .5px;
  }
  .print-shotmap .shot-svg, .print-shotmap svg { max-height: 130mm !important; width: 100% !important; height: auto; display: block; margin: 0 auto; }
  .print-shotmap .shot-zone-summary { display: flex !important; justify-content: center; gap: 18px; margin-top: 8px; font-size: 11px; color: #333; flex-wrap: wrap; }
  .shot-tip { display: none !important; }

  /* 5-ös egységek: mindig saját, új lapon kezdődnek */
  .print-lineups { break-before: page !important; }
  .card h2 { color: #333 !important; }
  .card h2 .sub { color: #777 !important; }
  .season-head .season-title > span:first-child { color: #000 !important; }
  /* Táblázatok: teljes magasság, nincs belső görgetés */
  .scroll { max-height: none !important; overflow: visible !important; border: none !important; }
  table { font-size: 10px !important; }
  th { background: #f0f0f0 !important; color: #333 !important; box-shadow: none !important; position: static !important; }
  td { color: #111 !important; border-bottom: 1px solid #ddd !important; }
  .scroll td:first-child, .scroll th:first-child { position: static !important; background: transparent !important; }
  .kpi { border: 1px solid #ddd !important; background: #fff !important; }
  .kpi .val { color: #000 !important; }
}

/* ===== Élmezőny (leaderboards) ===== */
.lb-controls {
  display: flex; flex-wrap: wrap; gap: var(--sp-3, 12px); align-items: flex-end;
  margin: var(--sp-3, 12px) 0;
}
.lb-pos-filter { display: flex; gap: 3px; align-items: center; flex-wrap: wrap; }
.lb-pos-label { font-size: 11px; font-weight: 600; color: var(--txt-mut); text-transform: uppercase; letter-spacing: .03em; margin-right: 3px; white-space: nowrap; }
.pos-btn { padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--txt-mut); font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s; font-family: inherit; }
@media (hover: hover) and (pointer: fine) { .pos-btn:hover { border-color: var(--accent, #f97316); color: var(--txt); } }
.pos-btn.active { background: rgba(249,115,22,0.15); border-color: rgba(249,115,22,0.5); color: #f97316; }
.lb-field { display: flex; flex-direction: column; gap: 4px; font-size: var(--text-2xs, 11px);
  color: var(--txt-mut); font-weight: 600; letter-spacing: var(--ls-caps, .02em); text-transform: uppercase; }
.lb-field.grow { flex: 1 1 200px; }
.lb-select, .lb-num {
  font: inherit; font-size: 13px; text-transform: none; letter-spacing: normal; font-weight: 500;
  padding: 7px 9px; border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--border, rgba(255,255,255,.12)); background: var(--bg-elev, #131c2e); color: var(--txt);
}
.lb-num { width: 100%; }
.lb-num-narrow { width: 70px; }
.lb-search { width: 100%; min-width: 160px; }
.lb-select:focus, .lb-num:focus { outline: none; border-color: var(--accent); }
.lb-status { font-size: 12px; color: var(--txt-mut); min-height: 16px; margin-top: 4px; }
.lb-status.warn { color: var(--warn, #e0a949); }
.lb-status.err  { color: var(--danger, #ef5350); }

/* === Műszer — Élmezőny: lekérdezés-sáv a lap oldalán, nem fölötte ===
   Csak ezt a két témát érinti; minden más témán az .lb-controls a régi,
   vízszintes elrendezésben marad — lásd a StatNet Design Directions
   "Élmezőny" vázlatát (VisionLeaders.dc.html). */
.lb-vision-head { display: none; }

@media (max-width: 900px) {
  /* Keskeny nézeten a rail nem fér el oldalt — visszaesik a régi, egymás alatti elrendezésre.
     align-items:stretch nélkül a flex-start-tal örökölt .lb-shell a .lb-main-t a tábla
     max-content szélességére hagyta nőni oszlop-módban is, ami vízszintes oldal-scrollt okozott. */
  
  
  
  
  
  
  
  
  .omnibox-trigger span:nth-child(2) { display: none; }
  .omnibox-trigger { min-width: auto; }
}

/* === Műszer — Adatbázis: a szűrő-panel állandó bal sáv, nem lenyíló ===
   Tiszta CSS grid-template-areas átrendezés — a player-db.html DOM sorrendje
   (hero, keresés, szűrő-gomb, szűrők, találatok, profil) nem változik, csak a
   vizuális elrendezés. Lásd a StatNet Design Directions "Adatbázis" vázlatát
   (VisionDb.dc.html). */
.pdb-wrap {
  display: grid; grid-template-columns: 236px minmax(0, 1fr);
  grid-template-areas: "rail hero" "rail search" "rail results" "rail profile" "rail .";
  /* The rail spans every row and is usually the tallest thing on the page; without a last 1fr row
     its spare height is shared out between hero/search/results/profile as big gaps (worse the
     shorter the result list). The empty 1fr row soaks all of it up instead. */
  grid-template-rows: auto auto auto auto 1fr;
  column-gap: 40px; row-gap: 0; align-items: start;
  max-width: 1440px; padding: 26px 44px 40px 22px;
}
.pdb-hero { grid-area: hero; margin: 0; }
.pdb-hero h1 {
  font-family: var(--font-h); font-size: 34px; font-weight: 600; letter-spacing: -1.1px;
}
#pdbSearch {
  grid-area: search; margin-top: 20px; height: 44px; font-size: 15px; border-radius: var(--radius);
}
#pdbFilterToggle { display: none; }
#pdbFilters {
  grid-area: rail; display: block !important; margin: 0; align-self: stretch;
  border: 0; border-right: 1px solid var(--line-soft); border-radius: 0;
  background: transparent; padding: 0 22px 26px 0;
}
#pdbFilters .pdb-fsection { padding: 18px 0; }
#pdbFilters .pdb-fgrid { grid-template-columns: 1fr; gap: 16px; }
#pdbFilters .pdb-factions {
  flex-direction: column; align-items: stretch; background: transparent; padding: 14px 0 0;
}
#pdbFilters .pdb-fnote { max-width: none; margin: 8px 0 0; order: 3; }
#pdbResults { grid-area: results; margin-top: var(--sp-4); }
#pdbProfile { grid-area: profile; }
@media (max-width: 900px) {
  .pdb-wrap {
    display: block; padding: 18px;
  }
  #pdbFilterToggle { display: inline-flex; }
  #pdbFilters {
    display: none !important; border-right: 0; padding: 0;
  }
  #pdbFilters.open { display: block !important; }
}

#lbTable th[data-k] { cursor: pointer; user-select: none; white-space: nowrap; }
#lbTable td.lb-rank, #lbTable th.lb-rank { width: 34px; text-align: center; color: var(--txt-mut); font-variant-numeric: tabular-nums; }
#lbTable td.lb-name { font-weight: 600; }
#lbTable td.lb-team { color: var(--txt-mut); font-size: 12px; }
.season-badge { display: inline-block; margin-left: 6px; padding: 1px 5px; font-size: 0.72em;
  font-weight: 500; line-height: 1.5; color: var(--txt-mut); background: var(--bg-hover);
  border-radius: 4px; white-space: nowrap; vertical-align: middle; }
.lb-alltime-season { font-size: 12px; color: var(--txt-mut); margin-bottom: 4px; }
#lbTable tbody tr { cursor: pointer; }
/* Karrierszezon-bontás a combined profil-modalban */
.career-seasons-section { margin-top: 20px; }
.career-seasons-title { font-size: 13px; font-weight: 600; color: var(--txt-mut); text-transform: uppercase;
  letter-spacing: .06em; margin: 0 0 8px; }
.career-seasons-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.career-seasons-table th { padding: 4px 8px; text-align: center; font-size: 11px; font-weight: 600;
  color: var(--txt-mut); border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.career-seasons-table td { padding: 6px 8px; text-align: center; border-bottom: 1px solid var(--line-soft); }
.career-seasons-table td:nth-child(2) { text-align: left; }
.career-seasons-table th:nth-child(2) { text-align: left; }
@media (hover: hover) and (pointer: fine) { .career-seasons-table tbody tr:hover td { background: var(--bg-hover); } }
.career-seasons-table tbody tr:last-child td { border-bottom: none; }
/* per-meccs pont-trend a modalban */
.lb-trend { display: flex; align-items: flex-end; gap: 3px; height: 90px; padding: 6px 2px 0;
  overflow-x: auto; border-bottom: 1px solid var(--border, rgba(255,255,255,.1)); }
.lb-tcol { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 16px; height: 100%; }
.lb-tbar { width: 12px; min-height: 2px; background: var(--accent); border-radius: 3px 3px 0 0; opacity: .85; }
.lb-tval { font-size: 9px; color: var(--txt-mut); margin-top: 2px; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .lb-field { flex: 1 1 calc(50% - 6px); }
  .lb-field.grow { flex: 1 1 100%; }
}

/* ===== Játékos-összehasonlítás (pin / pill / overlay) ===== */
.cmp-star {
  display: inline-flex; align-items: center; cursor: pointer; margin-right: 7px;
  vertical-align: middle; color: var(--txt-mut); opacity: .5;
  transition: opacity .12s, color .12s, transform .1s;
}
.cmp-star svg { width: 20px; height: 15px; display: block; }
.cmp-star svg circle { fill: none; stroke: currentColor; stroke-width: 1.7; }
@media (hover: hover) and (pointer: fine) { .cmp-star:hover { opacity: 1; transform: scale(1.12); } }
.cmp-star.on { color: var(--accent); opacity: 1; }
.cmp-star.on svg circle { fill: currentColor; fill-opacity: .30; }
.cmp-h-ico { display: inline-flex; vertical-align: middle; color: var(--accent); }
.cmp-h-ico svg { width: 18px; height: 13px; }
.cmp-h-ico svg circle { fill: currentColor; fill-opacity: .30; stroke: currentColor; stroke-width: 1.6; }
.cmp-pill {
  position: fixed; right: 18px; bottom: 18px; z-index: 9000;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  padding: 11px 16px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.cmp-pill b { background: rgba(255,255,255,.25); border-radius: 999px; padding: 1px 8px; font-size: 13px; }
@media (hover: hover) and (pointer: fine) { .cmp-pill:hover { filter: brightness(1.08); } }
.cmp-overlay {
  position: fixed; inset: 0; z-index: 9500; display: flex; align-items: center; justify-content: center;
  background: rgba(6,10,20,.66); backdrop-filter: blur(4px); padding: 18px;
}
.cmp-panel {
  background: var(--bg-card, #131c2e); border: 1px solid var(--border, rgba(255,255,255,.12));
  border-radius: var(--radius, 14px); width: 100%; max-width: 760px; max-height: 86vh;
  display: flex; flex-direction: column; box-shadow: 0 24px 70px rgba(0,0,0,.5);
}
.cmp-panel.fullscreen { max-width: none; width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
.cmp-overlay:has(.cmp-panel.fullscreen) { padding: 0; }
.cmp-fs { background: none; border: none; color: var(--txt-mut); font-size: 17px; line-height: 1; cursor: pointer; padding: 0 4px; }
@media (hover: hover) and (pointer: fine) { .cmp-fs:hover { color: var(--txt); } }
.cmp-panel > header { display: flex; align-items: center; flex-wrap: nowrap; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--border, rgba(255,255,255,.1)); }
.cmp-panel > header h3 { margin: 0; font-size: 14px; display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-panel > header .grow { flex: 1; min-width: 6px; }
.cmp-panel > header .btn-sm { padding: 4px 9px; font-size: 12px; white-space: nowrap; }
.cmp-close { background: none; border: none; color: var(--txt-mut); font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px; }
@media (hover: hover) and (pointer: fine) { .cmp-close:hover { color: var(--txt); } }
/* A fejléc (játékos-nevek) ÖNÁLLÓ táblázat a görgő tartalom FELETT, nem sticky —
   így a görgetett sorok soha nem fedhetik át (nincs sticky/z-index trükk, nincs átfedés). */
.cmp-head { flex: 0 0 auto; padding: 4px 6px 0; background: var(--bg-card, #131c2e);
  border-bottom: 1px solid var(--border, rgba(255,255,255,.1)); }
.cmp-body { overflow: auto; padding: 0 6px 10px; flex: 1 1 auto; min-height: 0; }
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; table-layout: fixed; }
.cmp-table th, .cmp-table td { padding: 8px 10px; text-align: center; border-bottom: 1px solid var(--border, rgba(255,255,255,.08)); white-space: nowrap; }
.cmp-head .cmp-table { border-bottom: none; }
.cmp-head .cmp-table th, .cmp-head .cmp-table td { border-bottom: none; }
.cmp-table col.cmp-col-lbl { width: 90px; }
.cmp-table td.cmp-lbl { text-align: left; background: var(--bg-card, #131c2e); }
.cmp-table td.cmp-lbl .ab { font-weight: 700; color: var(--txt); cursor: help;
  border-bottom: 1px dotted color-mix(in srgb, var(--txt-mut) 55%, transparent); }
.cmp-ph { display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; padding-top: 2px; }
.cmp-ph .nm { font-weight: 800; font-size: 15px; color: var(--txt); white-space: normal; text-wrap: balance; line-height: 1.2; }
.cmp-ph .tm { font-size: 11px; color: var(--txt-mut); font-weight: 400; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-ph .ssn { display: inline-block; font-weight: 700; font-size: 10px; color: var(--accent);
  background: var(--accent-bg, rgba(99,102,241,.14)); border: 1px solid var(--accent);
  border-radius: 6px; padding: 0 6px; white-space: nowrap; }
.cmp-x { position: absolute; top: -6px; right: -4px; width: 18px; height: 18px; border-radius: 999px;
  border: 1px solid var(--border, rgba(255,255,255,.2)); background: var(--bg-elev, #1a2336); color: var(--txt-mut);
  font-size: 12px; line-height: 1; cursor: pointer; padding: 0; }
@media (hover: hover) and (pointer: fine) { .cmp-x:hover { color: var(--danger, #ef5350); border-color: var(--danger, #ef5350); } }
.cmp-table td.cmp-best { color: var(--good, #4ade80); font-weight: 700; background: color-mix(in srgb, var(--good, #4ade80) 12%, transparent); }

/* H/I szűrő (home/away filter) */
.ha-filter-bar { display: flex; gap: 6px; flex-wrap: wrap; }
.ha-btn { padding: 5px 18px; border-radius: 8px; border: 1px solid var(--border, rgba(255,255,255,.12)); background: transparent; color: var(--txt-2, #94a3b8); cursor: pointer; font-size: 13px; font-weight: 600; transition: background .15s, color .15s, border-color .15s; }
@media (hover: hover) and (pointer: fine) { .ha-btn:hover { background: var(--card-2, rgba(255,255,255,.06)); color: var(--txt, #e2e8f0); } }
.ha-btn.active { background: var(--accent, #6366f1); color: #fff; border-color: var(--accent, #6366f1); }

/* Lineup méret-tabfülek */
.lu-tabs { display: flex; gap: 4px; }
.lu-tab { padding: 3px 12px; border-radius: 6px; border: 1px solid var(--border, rgba(255,255,255,.12)); background: transparent; color: var(--txt-2, #94a3b8); cursor: pointer; font-size: 12px; font-weight: 600; transition: background .15s, color .15s; }
@media (hover: hover) and (pointer: fine) { .lu-tab:hover { background: var(--card-2, rgba(255,255,255,.06)); color: var(--txt, #e2e8f0); } }
.lu-tab.active { background: var(--accent, #6366f1); color: #fff; border-color: var(--accent, #6366f1); }

/* =====================================================================
   JEGYZŐKÖNYV — komponens-réteg
   A "StatNet Jegyzőkönyv" design system komponensei a site meglévő osztályaira
   húzva. Szabály: minden szín token, minden keret szögletes, a piros toll
   (--accent) egyszerre egy dolgot jelöl. Szándékosan a fájl VÉGÉN áll, hogy az
   azonos specificitású régi szabályokat felülírja.
   ===================================================================== */

/* ---- Alapok ---- */
body { font-size: 15px; line-height: 1.45; font-feature-settings: 'tnum'; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--txt); }

/* A rendszer szögletes: sehol nincs lekerekítés, csak az élő-pötty kör.
   !important azért, mert a JS által renderelt markup inline border-radiusait is fedni kell. */
*, *::before, *::after { border-radius: 0 !important; }
.live-dot, .status-badge.live::before, .tb-live-dot, .bottomnav-dot { border-radius: 50% !important; }

.container { max-width: 1440px; padding: 28px var(--sp-7) 48px; }

/* ---- Oldalfej: szemöldök-címke + nagy, keskeny cím ---- */
.page-head { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 22px; }
.page-head .eyebrow, .eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--txt-dim);
}
.page-head h1 {
  margin: 0; font-size: 64px; line-height: .92; font-weight: 800; font-stretch: 62%;
  text-transform: uppercase; letter-spacing: -.005em; color: var(--txt);
}
main h1 { font-weight: 800; font-stretch: 70%; letter-spacing: 0; }
.docs h1 { font-size: 44px; line-height: .98; font-stretch: 62%; text-transform: uppercase; }
.docs h2 { font-stretch: 80%; text-transform: uppercase; letter-spacing: .02em; }

/* ---- Topbar: 1. sor márka + eszközök, 2. sor a navigáció a vastag alapvonalon ---- */
.topbar {
  background: var(--bg-elev); border-bottom: var(--rule-heavy) solid var(--txt);
  padding: 0 var(--sp-7); gap: 0; backdrop-filter: none;
}
.topbar-row.primary { flex-wrap: wrap; gap: 10px; min-height: 56px; row-gap: 0; }
.topbar-row.secondary { border-top: var(--rule-hair) solid var(--line); padding: 10px 0; margin: 0; }
.brand {
  font-size: 24px; font-weight: 800; font-stretch: 70%; text-transform: uppercase;
  letter-spacing: .01em; gap: 8px; white-space: nowrap; color: var(--txt); min-height: 56px;
}
.brand-logo { width: 26px; height: 26px; }
.topbar .spacer { flex: 1 1 auto; }
.topbar nav {
  order: 20; flex: 1 0 100%; gap: 22px; flex-wrap: wrap; align-items: stretch;
  border-top: var(--rule-hair) solid var(--line); margin: 0;
}
.topbar nav a {
  display: inline-flex; align-items: center; padding: 11px 0 10px; border-radius: 0;
  font-size: 13.5px; font-weight: 600; font-stretch: 85%; text-transform: uppercase;
  letter-spacing: .04em; color: var(--txt-mut); background: transparent;
}
@media (hover: hover) and (pointer: fine) { .topbar nav a:hover { background: transparent; color: var(--txt); } }
.topbar nav a.active { background: transparent; color: var(--txt); box-shadow: inset 0 calc(-1 * var(--rule-pen)) 0 var(--accent); }
.topbar nav a[href="/admin"] { color: var(--txt-mut) !important; margin-left: auto; }

/* eszköz-gombok a topbar jobb oldalán */
.tb-btn {
  width: 36px; height: 36px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  border: var(--rule-frame) solid var(--line-strong); background: var(--bg-card); color: var(--txt-mut);
  font: inherit; font-size: 15px; font-weight: 700; line-height: 1; cursor: pointer; padding: 0;
}
@media (hover: hover) and (pointer: fine) { .tb-btn:hover { color: var(--txt); border-color: var(--txt); } }
.tb-user {
  display: inline-flex; align-items: stretch; height: 36px; max-width: 190px; flex-shrink: 1; min-width: 0;
  border: var(--rule-frame) solid var(--line-strong); background: var(--bg-card); color: var(--txt);
}
.tb-user-lbl {
  display: flex; align-items: center; padding: 0 10px; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.tb-user-out {
  width: 34px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 0;
  border: 0; border-left: var(--rule-hair) solid var(--line); background: transparent; color: var(--txt-mut); cursor: pointer;
}
@media (hover: hover) and (pointer: fine) { .tb-user-out:hover { color: var(--bad); background: var(--bg-hover); } }
.tb-pwa {
  display: inline-flex; align-items: center; gap: 6px; padding: 11px 0 10px;
  border: 0; background: transparent; color: var(--txt-mut); cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 700; font-stretch: 85%; text-transform: uppercase; letter-spacing: .04em;
}
#langPicker { height: 36px; padding: 0 8px; font-size: 13px; font-weight: 600; }
/* Site dropdown (bootstrap.js enhanceSelect): framed button + chevron, ink-framed list with a hard shadow */
.dd { position: relative; display: inline-flex; flex-shrink: 0; height: 36px; border: var(--rule-frame) solid var(--txt); background: var(--bg-card); }
.dd::after { content: ''; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; margin-top: -5px;
  border-right: 2px solid var(--txt); border-bottom: 2px solid var(--txt); transform: rotate(45deg); pointer-events: none; }
.dd-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dd-btn { appearance: none; border: 0; background: transparent; color: var(--txt); font: inherit; font-size: 13px; font-weight: 700;
  letter-spacing: .06em; padding: 0 28px 0 12px; align-self: stretch; min-width: 44px; cursor: pointer; display: flex; align-items: center; }
.dd:has(.dd-btn:focus-visible) { outline: 2px solid var(--txt); outline-offset: 2px; }
.dd-pop { position: absolute; z-index: 60; top: calc(100% + 4px); right: -1.5px; min-width: calc(100% + 3px); max-height: 300px; overflow-y: auto;
  margin: 0; padding: 0; list-style: none; background: var(--bg-card); border: var(--rule-frame) solid var(--txt); box-shadow: 4px 4px 0 var(--line); }
.dd-pop[hidden] { display: none; }
.dd-pop li { display: flex; align-items: center; padding: 9px 14px; font-size: 13px; font-weight: 600; color: var(--txt);
  border-bottom: 1px solid var(--line-soft); cursor: pointer; white-space: nowrap; }
.dd-pop li:last-child { border-bottom: 0; }
.dd-pop li.act { background: var(--bg-hover); }
.dd-pop li.sel { box-shadow: inset 3px 0 0 var(--accent); padding-left: 17px; font-weight: 800; }
.dd-pop li.sel::after { content: '✓'; margin-left: auto; padding-left: 16px; color: var(--accent); font-weight: 800; }

/* keresés (⌘K) */
.omnibox-trigger {
  height: 36px; min-width: 230px; padding: 0 10px; gap: 8px;
  border: var(--rule-frame) solid var(--line-strong); background: var(--bg-card); color: var(--txt-mut); font-size: 14px;
}
@media (hover: hover) and (pointer: fine) { .omnibox-trigger:hover { color: var(--txt); border-color: var(--txt); } }
.omnibox-kbd { font-family: inherit; font-size: 11px; border: var(--rule-hair) solid var(--line); color: var(--txt-dim); }
.omnibox-backdrop { background: rgba(20, 33, 61, .35); backdrop-filter: none; }
[data-theme="dark"] .omnibox-backdrop { background: rgba(0, 0, 0, .55); }
.omnibox-panel { border: var(--rule-frame) solid var(--txt); box-shadow: var(--shadow-pop); }
.omnibox-input { border-bottom: var(--rule-heavy) solid var(--txt); font-size: 17px; }
.omnibox-group-label { font-weight: 700; letter-spacing: var(--ls-caps); color: var(--txt-dim); }
.omnibox-item { font-size: 14.5px; }
.omnibox-item .meta { font-family: inherit; font-size: 12px; }
.omnibox-item.sel { background: var(--bg-hover); box-shadow: inset 3px 0 0 var(--accent); }

/* élő meccsek gomb: piros toll */
.btn.live-toggle {
  height: 36px; padding: 0 12px; border: var(--rule-frame) solid var(--accent); background: var(--accent-bg); color: var(--accent);
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
@media (hover: hover) and (pointer: fine) { .btn.live-toggle:hover { background: var(--accent-bg); border-color: var(--accent-dk); color: var(--accent-dk); } }
.live-toggle .live-dot { background: currentColor; }
.live-toggle .live-count { background: transparent; color: inherit; padding: 0; font-size: 12.5px; }
.live-dropdown { border: var(--rule-frame) solid var(--txt); box-shadow: var(--shadow-pop); padding: 6px; }
.live-dropdown .league-hd { letter-spacing: var(--ls-caps); color: var(--txt-dim); }
.live-row { border: var(--rule-hair) solid var(--line); background: var(--bg-card); }

/* ---- Gombok ---- */
.btn {
  border: var(--rule-frame) solid var(--txt); background: var(--bg-card); color: var(--txt);
  padding: 7px 14px; font-size: 13.5px; font-weight: 600;
}
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--bg-hover); border-color: var(--txt); } }
.btn.primary { background: var(--txt); border-color: var(--txt); color: var(--bg-card); }
@media (hover: hover) and (pointer: fine) { .btn.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); } }
.btn-sm { padding: 5px 10px; font-size: 12.5px; }
.fs-btn, .card h2 .csv-btn {
  border: var(--rule-frame) solid var(--line-strong); color: var(--txt-mut); background: var(--bg-card);
  font-weight: 700; font-size: 12px;
}
@media (hover: hover) and (pointer: fine) { .fs-btn:hover, .card h2 .csv-btn:hover { color: var(--txt); border-color: var(--txt); } }

/* ---- Mezők: szögletes, erős keret (3:1) ---- */
.theme-picker, .lb-select, .lb-num, .team-input, .clutch-field input[type="number"], .clutch-field select,
.topbar input.code, #pdbSearch, .pdb-wrap select, .pdb-wrap input[type="number"], .pdb-wrap input[type="text"] {
  border: var(--rule-frame) solid var(--line-strong); background-color: var(--bg-card); color: var(--txt);
}
.theme-picker:focus, .lb-select:focus, .lb-num:focus, .team-input:focus, .topbar input.code:focus, #pdbSearch:focus {
  outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--txt);
}
.topbar input.code { font-family: inherit; font-size: 14px; }

/* ---- Lap (kártya): tintakeret, nincs árnyék; az első h2 nyomtatott sávfej ---- */
.card { border: var(--rule-frame) solid var(--txt); box-shadow: none; background: var(--bg-card); }
.card > h2:first-child {
  margin: -16px -18px 14px; padding: 9px 18px; min-height: 38px;
  background: var(--bg-band); border-bottom: var(--rule-hair) solid var(--line);
}
.card h2 {
  font-size: 11px; font-weight: 700; letter-spacing: var(--ls-caps); color: var(--txt-dim);
}
.card h2 .sub { color: var(--txt-dim); font-weight: 500; letter-spacing: .02em; }
.card.fullscreen { border: 0; }

/* ---- Táblázat: vonalzott lap, a rendezett oszlop a piros tollal ---- */
table { font-size: 14px; }
thead { background: var(--bg-card); }
th {
  background: var(--bg-card); color: var(--txt); font-size: 12px; font-weight: 700; font-stretch: 85%;
  letter-spacing: .06em; padding-top: 10px; padding-bottom: 10px;
  border-bottom: 0; box-shadow: inset 0 calc(-1 * var(--rule-heavy)) 0 var(--txt);
}
@media (hover: hover) and (pointer: fine) { th:hover { color: var(--accent); } }
th.sorted, th.sorted-col { color: var(--accent); box-shadow: inset 0 calc(-1 * var(--rule-pen)) 0 var(--accent); }
td { border-bottom: var(--rule-hair) solid var(--line-soft); }
/* a rendezett oszlopban a hő-árnyalás nem kell: a sorrend már maga a jelentés */
td.sorted-col { background: var(--accent-tint) !important; background-image: none; color: var(--accent) !important; font-weight: 700; }
tbody tr.selected, tbody tr.selected td { background: var(--accent-tint); }
@media (hover: hover) and (pointer: fine) { tbody tr:hover { background: var(--bg-hover); } }
th.group-start, td.group-start { border-left: var(--rule-frame) solid var(--txt); }
th.group-end, td.group-end { border-right: var(--rule-frame) solid var(--txt); }
td.col-shoot, td.col-reb, td.col-foul { background: none; }
th.col-shoot, th.col-reb, th.col-foul { background-image: none; background-color: var(--bg-card); }
th.col-key { color: var(--accent); }
.scroll { border: 0; }
.scroll td:first-child { background: var(--bg-card); }
.scroll th:first-child { background: var(--bg-card); }
.scroll td:first-child, .scroll th:first-child { border-right: var(--rule-hair) solid var(--line); }
@media (hover: hover) and (pointer: fine) { .scroll tbody tr:hover td:first-child { background: var(--bg-hover); } }
.scroll tbody tr.selected td:first-child { background: var(--accent-tint); }
.scroll-cap thead th, .scroll-cap tfoot tr.tfrow td { background: var(--bg-card); }
.scroll::-webkit-scrollbar-thumb { background: var(--line-strong); }
tfoot tr.tfrow td { background: var(--bg-band); border-top: var(--rule-heavy) solid var(--txt); }
tfoot tr.tfrow .tfname { color: var(--txt); }
.neg { color: var(--txt-dim); }
.pos { color: var(--good); }

/* rangszám keretes négyzetben */
.rank-box {
  display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 3px;
  border: var(--rule-frame) solid var(--txt); color: var(--txt); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums;
}

/* ---- Fülek és szegmensek: összeillesztett négyzetek, a kiválasztott tintával töltve ---- */
.tabs, .empty-tabs, .lb-pos-filter, .ha-filter-bar, .lu-tabs { gap: 0; }
.tab, .etab, .pos-btn, .ha-btn, .lu-tab {
  border: var(--rule-frame) solid var(--txt); margin-left: calc(-1 * var(--rule-frame));
  background: var(--bg-card); color: var(--txt); font-weight: 700; box-shadow: none;
}
.tab:first-child, .etab:first-child, .pos-btn:first-of-type, .ha-btn:first-child, .lu-tab:first-child { margin-left: 0; }
.tab { padding: 8px 14px; font-size: 13.5px; }
.pos-btn { min-width: 40px; height: 34px; padding: 0 10px; font-size: 13.5px; }
@media (hover: hover) and (pointer: fine) {
  .tab:hover, .etab:hover, .pos-btn:hover, .ha-btn:hover, .lu-tab:hover { background: var(--bg-hover); color: var(--txt); border-color: var(--txt); }
}
.tab.on, .etab.on, .pos-btn.active, .ha-btn.active, .lu-tab.active {
  background: var(--txt); color: var(--bg-card); border-color: var(--txt);
}
.lb-pos-label { font-size: 11px; font-weight: 700; letter-spacing: var(--ls-caps); color: var(--txt-dim); margin-right: 10px; }

/* ---- Mutató-dobozok (KPI) = stat tile sor ---- */
.kpi-grid { gap: 0; border: var(--rule-frame) solid var(--txt); background: var(--bg-card); overflow: hidden; }
.kpi {
  background: transparent; border: 0; box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line);
  padding: 12px 14px;
}
.kpi .lbl { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--txt-dim); }
.kpi .val { font-size: 30px; line-height: 1; font-weight: 800; font-stretch: 70%; margin-top: 6px; }
.kpi .sub { color: var(--txt-dim); }
.kpi-more-btn { border: var(--rule-frame) solid var(--txt); background: var(--bg-card); color: var(--txt); font-weight: 700; }
/* Profil-rácsok: fix 5 oszlop (10 csempe = 2 teli sor), telefonon 2 oszlop (5 teli sor) */
.kpi-grid.kpi-rows { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 600px) { .kpi-grid.kpi-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Eredményjelző ---- */
.scoreboard { background: var(--bg-card); border: var(--rule-frame) solid var(--txt); box-shadow: none; }
.scoreboard .tname { font-size: 26px; font-weight: 800; font-stretch: 70%; text-transform: uppercase; line-height: 1.05; }
.scoreboard .tname.home::before, .scoreboard .tname.away::after { width: 6px; height: 26px; }
.scoreboard .scores { font-weight: 800; font-stretch: 70%; }
.scoreboard .clock-big { font-family: inherit; font-stretch: 80%; }
.scoreboard .clock-big .qchip { font-family: inherit; background: var(--accent-bg); color: var(--accent); border: var(--rule-frame) solid var(--accent); }
.qscores { border: var(--rule-frame) solid var(--txt); }
.qscores .qcell { background: var(--bg-card); border-right: var(--rule-hair) solid var(--line); }
.qscores .qcell .qlabel { color: var(--txt-dim); letter-spacing: .12em; }
.bar { background: var(--bg-band); }
.bar.l > span { background: var(--home); }
.bar.r > span { background: var(--away); }
.bar.l > span, .bar.r > span { color: var(--on-accent); }

/* ---- Felugró ablakok ---- */
.modal { border: var(--rule-frame) solid var(--txt); box-shadow: var(--shadow-pop); background: var(--bg-card); }
.modal header { background: var(--bg-band); border-bottom: var(--rule-heavy) solid var(--txt); }
.modal header .pn .nm { font-size: 28px; line-height: 1; font-weight: 800; font-stretch: 70%; text-transform: uppercase; }
.modal header .export-btn { border: var(--rule-frame) solid var(--txt); background: var(--bg-card); color: var(--txt); }
.modal-backdrop, .intl-cmp-overlay, .cmp-overlay { background: rgba(20, 33, 61, .45); backdrop-filter: none; }
[data-theme="dark"] .modal-backdrop, [data-theme="dark"] .intl-cmp-overlay, [data-theme="dark"] .cmp-overlay { background: rgba(0, 0, 0, .6); }
.cmp-panel, .intl-cmp-card { border: var(--rule-frame) solid var(--txt); box-shadow: var(--shadow-pop); background: var(--bg-card); }
.cmp-panel > header { background: var(--bg-band); border-bottom: var(--rule-heavy) solid var(--txt); }
.cmp-pill { background: var(--txt); color: var(--bg-card); box-shadow: var(--shadow-pop); }
.cmp-pill b { background: var(--accent); color: var(--on-accent); }
.player-attrs .attr { border: var(--rule-hair) solid var(--line); background: var(--bg-card); }

/* ---- Apró jelzések ---- */
.status-badge { border: var(--rule-frame) solid currentColor; }
.status-badge.live { background: var(--accent-bg); color: var(--accent); }
.status-badge.live::before { background: currentColor; }
.freshness { border-width: var(--rule-hair); }
.season-badge, .fav-chip, .lg-card, .intl-pos-badge { border-color: var(--line); }
.fav-chip { border: var(--rule-hair) solid var(--line-strong); background: var(--bg-card); }
.lg-card { border: var(--rule-frame) solid var(--txt); background: var(--bg-card); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .lg-card:hover { transform: none; box-shadow: inset 0 calc(-1 * var(--rule-pen)) 0 var(--accent); } }
.error-banner { border-width: var(--rule-frame); }

/* ---- Élmezőny: szűrők a jegyzőkönyv fejléc-mezőiként ---- */
.lb-shell { display: block; }
.lb-rail { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.lb-controls {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; margin: 0;
  border: var(--rule-frame) solid var(--txt); background: var(--bg-card); overflow: hidden;
}
.lb-field {
  flex: 1 1 150px; gap: 3px; padding: 9px 14px 10px; margin: 0;
  box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line);
  font-size: 10px; font-weight: 700; letter-spacing: var(--ls-caps); color: var(--txt-dim);
}
.lb-field.grow { flex: 2 1 240px; }
/* a field on its own (not inside .lb-controls): its dividers are shadows on the left and top only, so it gets a frame */
.lb-field-solo { box-shadow: none; border: var(--rule-frame) solid var(--txt); }
.lb-field:focus-within { background: var(--bg-hover); }
.lb-field .lb-select, .lb-field .lb-num {
  width: 100%; min-height: 26px; padding: 0; border: 0; outline: none; background-color: transparent;
  font-size: 17px; font-weight: 600; letter-spacing: 0; color: var(--txt); text-transform: none;
}
.lb-field .lb-num-narrow { width: 100%; }
.lb-field .lb-select {
  -webkit-appearance: none; appearance: none; padding-right: 18px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235f6c84' stroke-width='2.6'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0 center;
}
[data-theme="dark"] .lb-field .lb-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2393a0b6' stroke-width='2.6'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}
.lb-field .lb-search::placeholder { color: var(--txt-dim); font-weight: 400; }
.lb-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.lb-toolbar .grow { flex: 1 1 auto; }
.lb-toolbar .qual-toggle { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--txt-mut); }
.lb-shell .lb-main { padding: 0; overflow: hidden; }
.lb-count {
  padding: 9px 14px; min-height: 36px; box-sizing: border-box; background: var(--bg-band); border-bottom: var(--rule-hair) solid var(--line);
  font-size: 11px; font-weight: 700; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--txt-dim);
}
.lb-shell .lb-main .scroll { max-height: none; }
.lb-shell .lb-main > :not(.scroll):not(.lb-count) { margin-left: 18px; margin-right: 18px; }
.lb-shell .lb-main > .lb-vision-head { margin-top: 16px; }
#lbTable td.lb-rank, #lbTable th.lb-rank { width: 52px; text-align: left; color: var(--txt); }
#lbTable td { height: 48px; }
#lbTable td.lb-name { font-size: 15px; font-weight: 600; }
#lbTable td.lb-team { font-size: 13px; color: var(--txt-mut); }
.lb-status { color: var(--txt-dim); }

/* ---- Oldalcímek más oldalakon ---- */
.pdb-hero h1, .lb-vision-head h1 {
  margin: 0 0 6px; font-size: clamp(40px, 6vw, 64px); line-height: .92; font-weight: 800; font-stretch: 62%;
  text-transform: uppercase; letter-spacing: -.005em; color: var(--txt);
}
.lb-vision-head { display: block; margin-bottom: 10px; }
.freshness:empty, #statusBadge:empty { display: none; }
.empty-state h2 { font-size: 34px; line-height: 1; font-weight: 800; font-stretch: 70%; text-transform: uppercase; }

/* ---- Telefonos alsó fülsáv és „Több" lap ---- */
:root { --nav-pad: env(safe-area-inset-bottom, 0px); }
.bottomnav { display: none; }
.more-sheet {
  position: fixed; inset: 0; z-index: 9600; display: flex; align-items: flex-end;
  background: rgba(20, 33, 61, .45);
}
[data-theme="dark"] .more-sheet { background: rgba(0, 0, 0, .6); }
.more-sheet-panel {
  width: 100%; max-height: 82vh; overflow: auto; overscroll-behavior: contain;
  background: var(--bg-card); border-top: var(--rule-heavy) solid var(--txt);
  padding: 0 16px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px;
}
.more-sheet-head {
  display: flex; align-items: center; justify-content: space-between; min-height: 56px;
  border-bottom: var(--rule-hair) solid var(--line);
  font-size: 22px; font-weight: 800; font-stretch: 70%; text-transform: uppercase;
}
.more-close { width: 44px; height: 44px; }
.more-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: var(--rule-frame) solid var(--txt); }
.more-links a {
  display: flex; align-items: center; min-height: 52px; padding: 0 14px; text-decoration: none;
  box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); color: var(--txt);
  font-size: 14px; font-weight: 700; font-stretch: 85%; text-transform: uppercase; letter-spacing: .04em;
}
.more-links a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 calc(-1 * var(--rule-pen)) 0 var(--accent), -1px 0 0 var(--line), 0 -1px 0 var(--line); }
.more-set { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.more-k { font-size: 11px; font-weight: 700; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--txt-dim); }
.seg { display: inline-flex; border: var(--rule-frame) solid var(--txt); }
.seg button {
  min-width: 56px; height: 44px; padding: 0 14px; border: 0; border-left: var(--rule-frame) solid var(--txt);
  background: var(--bg-card); color: var(--txt); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--txt); color: var(--bg-card); }
.more-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.more-actions .btn { min-height: 44px; }

/* ---- Keskeny nézet ---- */
@media (max-width: 900px) {
  .topbar { padding: 0 var(--sp-4); }
  .topbar-row.primary { min-height: 54px; flex-wrap: nowrap; }
  .brand { min-height: 54px; font-size: 22px; }
  .topbar nav, #langPicker, .dd-lang, #themeToggle, #helpChip, .tb-pwa, .tb-user { display: none !important; }
  .omnibox-trigger { min-width: 0; width: 44px; height: 40px; justify-content: center; padding: 0; }
  .omnibox-trigger span:nth-child(2), .omnibox-kbd { display: none; }
  .btn.live-toggle { height: 40px; }

  .bottomnav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; /* a modálok (400–9600) alatt */
    overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain;
    min-height: 60px; padding-bottom: var(--nav-pad);
    background: var(--bg-elev); border-top: var(--rule-heavy) solid var(--txt);
  }
  .bottomnav a, .bottomnav-more {
    flex: 1 0 auto; display: flex; align-items: center; justify-content: center; padding: 0 12px;
    border: 0; background: transparent; color: var(--txt-mut); text-decoration: none; cursor: pointer;
    font: inherit; font-size: 11.5px; font-weight: 700; font-stretch: 80%; text-transform: uppercase; letter-spacing: .01em;
    white-space: nowrap; /* never truncated: the bar scrolls sideways instead */
  }
  .bottomnav::-webkit-scrollbar { display: none; }
  .bottomnav a[aria-current="page"], .bottomnav-more[aria-current="page"], .bottomnav-more[aria-expanded="true"] {
    color: var(--accent); box-shadow: inset 0 var(--rule-pen) 0 var(--accent);
  }
  body.has-bottomnav { padding-bottom: calc(64px + var(--nav-pad)); }
  body.has-bottomnav .cmp-pill { bottom: calc(76px + var(--nav-pad)); }

  .container { padding: 18px var(--sp-4) 32px; }
  .page-head { margin-bottom: 16px; }
  .page-head h1 { font-size: 46px; }
  .card > h2:first-child { margin: -16px -18px 12px; }
  .lb-field { flex: 1 1 calc(50% - 1px); }
  .lb-field.grow { flex: 1 1 100%; }
  .lb-toolbar .grow { display: none; }
  /* a rendezett oszlop telefonon a jobb szélre tapad, így görgetés nélkül is látszik */
  #lbTable th.sorted-col, #lbTable td.sorted-col {
    position: sticky; right: 0; z-index: 6; box-shadow: inset var(--rule-frame) 0 0 var(--txt);
  }
  #lbTable th.sorted-col { z-index: 14; box-shadow: inset var(--rule-frame) 0 0 var(--txt), inset 0 calc(-1 * var(--rule-pen)) 0 var(--accent); }
  #lbTable td.lb-team { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 720px) {
  .card > h2:first-child { margin: -16px -18px 12px; }
}

/* =====================================================================
   FŐOLDAL ("/") — kereső, élő meccsek, a részek rácsa, kedvencek.
   Minden középre zárva; a piros toll itt is csak az élőt jelöli.
   ===================================================================== */
body.is-home .topbar-row.secondary, body.is-home .omnibox-trigger { display: none; }
.hm { display: flex; flex-direction: column; align-items: center; gap: 44px; padding: 36px 0 24px; }
.hm[hidden] { display: none; }
.hm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hm-lbl {
  margin: 0; font-size: 11px; font-weight: 700; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--txt-dim);
}
.hm-dot { width: 8px; height: 8px; flex-shrink: 0; background: var(--accent); border-radius: 50% !important; }
.hm-dot.off { background: var(--line-strong); }

/* kereső */
.hm-hero { width: min(760px, 100%); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hm-title {
  margin: 0; font-size: 64px; line-height: .92; font-weight: 800; font-stretch: 62%;
  text-transform: uppercase; letter-spacing: -.005em; text-align: center; color: var(--txt);
}
.hm-search { position: relative; width: 100%; }
.hm-field {
  display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 0 18px; cursor: text;
  background: var(--bg-card); border: var(--rule-frame) solid var(--txt); color: var(--txt-mut);
}
.hm-field:focus-within { outline: 2px solid var(--accent); outline-offset: 0; }
.hm-field svg { flex-shrink: 0; }
.hm-field input {
  flex: 1; min-width: 0; padding: 14px 0; border: 0; outline: 0; background: transparent;
  color: var(--txt); font: inherit; font-size: 20px;
}
.hm-field input::placeholder { color: var(--txt-dim); }
.hm-field input::-webkit-search-cancel-button { display: none; }
.hm-results {
  position: absolute; left: 0; right: 0; top: calc(100% - var(--rule-frame)); z-index: 60;
  max-height: min(420px, 60vh); background: var(--bg-card);
  border: var(--rule-frame) solid var(--txt); box-shadow: var(--shadow-pop);
}
.hm-results[hidden] { display: none; }
.hm-sub { margin: 0; font-size: 14px; color: var(--txt-mut); text-align: center; }

/* élő meccsek */
.hm-live { width: min(1100px, 100%); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hm-live-hd {
  display: flex; align-items: center; gap: 8px; margin: 0; color: var(--accent);
  font-size: 13px; font-weight: 700; font-stretch: 85%; letter-spacing: .06em; text-transform: uppercase;
}
.hm-live-hd .n { color: var(--txt-mut); }
.hm-quiet { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--txt-mut); }
.hm-tabs { display: flex; flex-wrap: wrap; justify-content: center; }
.hm-tab {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
  margin-left: calc(-1 * var(--rule-frame)); border: var(--rule-frame) solid var(--line-strong);
  background: var(--bg-card); color: var(--txt-mut); cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 700; font-stretch: 85%; letter-spacing: .04em; text-transform: uppercase;
}
.hm-tab:first-child { margin-left: 0; }
.hm-tab .c { font-weight: 500; opacity: .8; }
@media (hover: hover) and (pointer: fine) { .hm-tab:hover { color: var(--txt); border-color: var(--txt); position: relative; } }
.hm-tab[aria-selected="true"] { background: var(--txt); border-color: var(--txt); color: var(--bg-card); position: relative; }
.hm-board {
  width: 100%; display: flex; flex-direction: column; gap: 1px;
  background: var(--line); border: var(--rule-frame) solid var(--txt);
}
/* 1–2 meccs: a kártya mérete nem változik, a keret a kártyákhoz igazodik, középen */
.hm-board[data-cols="1"] { width: calc((100% - 2px) / 3 + 3px); }
.hm-board[data-cols="2"] { width: calc((100% - 2px) / 3 * 2 + 4px); }
.hm-cards { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 1px; background: var(--line); }
.hm-game {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 16px;
  background: var(--bg-card); color: var(--txt); text-align: center; text-decoration: none;
}
.hm-game .lbl, .hm-row .lg, .hm-row .q, .hm-row .m {
  font-size: 10px; font-weight: 700; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--txt-dim);
}
.hm-game .tm { font-size: 15px; font-weight: 600; line-height: 1.25; text-wrap: balance; }
.hm-game .sc { font-size: 44px; line-height: .95; font-weight: 800; font-stretch: 70%; }
.hm-fav { color: var(--txt); white-space: nowrap; }
.hm-fav svg, .hm-row .lg svg, .hm-row .m svg { vertical-align: -1px; margin-right: 3px; color: var(--txt); }
.hm-row {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) 92px minmax(0, 1fr) 150px; align-items: center;
  column-gap: 16px; min-height: 46px; padding: 0 20px;
  background: var(--bg-card); color: var(--txt); text-decoration: none;
}
.hm-row .lg, .hm-row .q, .hm-row .h, .hm-row .a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-row .q { text-align: right; }
.hm-row .h, .hm-row .a { font-size: 15px; font-weight: 600; }
.hm-row .h { text-align: right; }
.hm-row .sc { text-align: center; font-size: 24px; line-height: 1; font-weight: 800; font-stretch: 70%; }
.hm-row .m { display: none; }
@media (hover: hover) and (pointer: fine) { .hm-game:hover, .hm-row:hover { background: var(--bg-hover); } }
.hm-more {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px;
  border: 0; background: var(--bg-band); color: var(--txt); cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 700; font-stretch: 85%; letter-spacing: .04em; text-transform: uppercase;
}
.hm-more[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { .hm-more:hover { background: var(--bg-hover); } }

/* a részek rácsa: a csempék hajszálvonalai box-shadow-ból, így egy rejtett (jogosultság nélküli)
   csempe helye üres lap marad, nem lyuk a vonalzásban */
.hm-tiles {
  width: min(1100px, 100%); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: var(--rule-frame) solid var(--txt); background: var(--bg-card); overflow: hidden;
}
.hm-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 190px; padding: 30px 20px; text-align: center; color: var(--txt); text-decoration: none;
  box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line);
}
.hm-tile svg { width: 34px; height: 34px; }
.hm-tile .nm { font-size: 30px; line-height: .92; font-weight: 800; font-stretch: 62%; text-transform: uppercase; }
.hm-tile .ds { max-width: 24ch; font-size: 13px; line-height: 18px; color: var(--txt-mut); }
@media (hover: hover) and (pointer: fine) {
  .hm-tile:hover { background: var(--bg-hover); box-shadow: inset 0 calc(-1 * var(--rule-pen)) 0 var(--txt), -1px 0 0 var(--line), 0 -1px 0 var(--line); }
}

/* kedvencek */
.hm-favs { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hm-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 1100px; }
.hm-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px;
  border: var(--rule-frame) solid var(--line-strong); background: var(--bg-card); color: var(--txt);
  font-size: 13.5px; font-weight: 600; text-decoration: none;
}
.hm-chip-s { color: var(--txt-dim); font-weight: 500; }
/* Favourite chip with a remove ×: the frame moves to the wrapper so the chip is exactly as tall as
   before; the label keeps equal 28px gutters (the × sits in the right one) so the text stays centred. */
.hm-chipw { position: relative; display: inline-flex; border: var(--rule-frame) solid var(--line-strong); background: var(--bg-card); }
.hm-chipw { min-height: 40px; }   /* border-box: same 40px outer height as the plain chip */
.hm-chipw .hm-chip { border: 0; background: transparent; padding: 0 28px; justify-content: center; min-height: 0; }
.hm-x {
  position: absolute; top: 0; right: 0; bottom: 0; width: 28px; margin: 0; padding: 0; min-height: 0;
  border: 0; box-shadow: none; background: transparent; appearance: none; -webkit-appearance: none;
  color: var(--txt-mut); font-size: 16px; line-height: 1; cursor: pointer;
}
.hm-x:focus-visible { outline: 2px solid var(--txt); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { .hm-x:hover { color: var(--bad); } }
@media (hover: hover) and (pointer: fine) { .hm-chip:hover { border-color: var(--txt); } .hm-chipw:hover { border-color: var(--txt); } }
.hm-favs-empty { margin: 0; max-width: 46ch; font-size: 13.5px; color: var(--txt-mut); text-align: center; }

@media (max-width: 900px) {
  .hm-row { grid-template-columns: 110px minmax(0, 1fr) 80px minmax(0, 1fr) 110px; column-gap: 12px; padding: 0 14px; }
  .hm-tile { min-height: 160px; padding: 24px 12px; }
}
@media (max-width: 720px) {
  .hm { gap: 28px; padding: 14px 0 8px; }
  .hm-title { font-size: 44px; }
  .hm-field { min-height: 52px; gap: 10px; padding: 0 14px; }
  .hm-field input { font-size: 16px; padding: 12px 0; }
  .hm-kbd { display: none; }
  .hm-live { gap: 12px; }
  /* one swipeable row instead of three wrapped ones; the auto margins keep it centred while it fits */
  .hm-tabs {
    flex-wrap: nowrap; justify-content: flex-start; gap: 6px; align-self: stretch; overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(-1 * var(--sp-4)); padding: 0 var(--sp-4);
  }
  .hm-tabs::-webkit-scrollbar { display: none; }
  .hm-tab { flex-shrink: 0; margin-left: 0; min-height: 40px; padding: 0 12px; white-space: nowrap; }
  .hm-tab:first-child { margin-left: auto; }
  .hm-tab:last-child { margin-right: auto; }
  .hm-board[data-cols] { width: 100%; }
  .hm-game { gap: 5px; padding: 16px 12px; }
  .hm-game .tm { font-size: 14px; }
  .hm-game .sc { font-size: 40px; }
  .hm-row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); column-gap: 10px; row-gap: 3px; min-height: 56px; padding: 9px 12px; }
  .hm-row .lg, .hm-row .q { display: none; }
  .hm-row .m { display: block; grid-column: 1 / -1; text-align: center; }
  .hm-row .h, .hm-row .a { font-size: 14px; }
  .hm-row .sc { font-size: 21px; }
  .hm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-tile { min-height: 132px; gap: 8px; padding: 20px 10px; }
  .hm-tile svg { width: 28px; height: 28px; }
  .hm-tile .nm { font-size: 24px; }
  .hm-tile .ds { font-size: 12px; line-height: 16px; }
}

/* International/NCAA only show on the Leagues branch (bootstrap.js installTopNavState) */
.topbar nav a.nav-branch-hidden { display: none; }

/* ---- Élmezőny szűrősáv: a hosszú nevű választók (bajnokság, mutató) teljes szélességet kapnak,
   a kis értékű mezők (top, min. meccs, keresés) összébb húzódnak — így semmi nem csonkul „…"-ra. ---- */
@media (min-width: 900px) {
  .lb-controls .lb-field:has(.lb-select):not(:has(#lbTopN)) { flex: 1 0 auto; }
  /* keresés: mindig a saját sorában */
  .lb-controls .lb-field.grow { flex: 1 1 100%; }
  .lb-controls .lb-field .lb-select { text-overflow: clip; }
}

/* Top + Min. meccs egy egységként törnek sort: sosem marad egyikük egyedül egy sorban. */
.lb-controls .lb-pair { display: flex; flex: 1 1 300px; min-width: 0; }
.lb-controls .lb-pair .lb-field { flex: 1 1 0; min-width: 0; }
@media (max-width: 899px) { .lb-controls .lb-pair { flex: 1 1 100%; } }

/* Élmezőny: második, felső vízszintes görgetősáv a táblázat fölött (leaderboards.js syncTopScroll) */

/* Élmezőny: a vízszintes görgetősáv az ablak ALJÁHOZ ragad (leaderboards.js syncTopScroll tükrözi a táblázatét), a
   táblázat saját sávja rejtve; a táblázat végén a sáv természetes helyére, a tábla alá kerül. A sticky-hez az .lb-main
   nem lehet overflow:hidden → clip. Az egérgörgő függőleges görgetése átmegy az oldalnak (a korábbi „contain" beragasztotta). */
.lb-shell .lb-main { overflow: clip; }
.lb-shell .lb-main .scroll { overscroll-behavior-y: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.lb-shell .lb-main .scroll::-webkit-scrollbar { display: none; }
.lb-topscroll { position: relative; overflow: hidden; height: 26px; margin: 0; cursor: pointer; }
.lb-topscroll > .lb-thumb { position: absolute; left: 0; top: 4px; height: 18px; min-width: 48px; background: var(--txt-mut); opacity: .55; cursor: grab; touch-action: none; will-change: transform; }
.lb-topscroll > .lb-thumb:hover, .lb-topscroll > .lb-thumb.drag { opacity: .9; }
.lb-topscroll > .lb-thumb.drag { cursor: grabbing; }
.lb-shell .lb-main > div.lb-topscroll.lb-topscroll { position: sticky; bottom: 0; z-index: 20; margin-left: 0; margin-right: 0; background: var(--bg-card); border-top: 1px solid var(--line-soft, var(--line)); }
#lbTable td.lb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#lbTable td.lb-team { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 899px) { body.has-bottomnav .lb-shell .lb-main > div.lb-topscroll.lb-topscroll { bottom: calc(64px + env(safe-area-inset-bottom)); } }
/* Élmezőny: a böngésző saját scroll-anchoringja ne mozgassa a lapot, amikor a látható sorok ablaka cserélődik
   (a leaderboards.js maga rögzíti a látható sort) — különben a görgetés „ugrik". */
.lb-shell, .lb-shell .lb-main, .lb-shell .lb-main .scroll { overflow-anchor: none; }
#lbTable tbody tr[data-i] { height: 48px; }
#lbTable tbody td { box-sizing: border-box; white-space: nowrap; }
/* Every leaderboard table (lb-scroll.js mountRows): fixed row height, one line per cell. */
.lb-fix tbody tr[data-i] { height: 48px; }
.lb-fix tbody td { box-sizing: border-box; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Search row: the search field on the left, the option checkboxes (/40, projection, clutch) at its right end. */
.lb-controls .lb-searchbar { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: stretch; min-width: 0; box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); }
.lb-controls .lb-searchbar .lb-field.grow { flex: 1 1 220px; box-shadow: none; }
.lb-controls .lb-toggles { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 0 14px; }
.lb-controls .lb-toggles .qual-toggle { margin: 0; white-space: nowrap; }
@media (max-width: 899px) { .lb-controls .lb-toggles { flex: 1 1 100%; padding: 8px 14px 10px; } }
/* Percentile heat-map blue (leaderboard cells, ui.js pctColor): the site blue, one shade per theme. */
:root { --heat: #1f5fad; }
[data-theme="dark"] { --heat: #3f7fd8; }
/* Shot-chart court: a pale maple floor with a slightly deeper key and tan lines; light enough to sit in the paper look */
:root {
  --court-floor: #f5ecdb; --court-floor-far: #eee2cb; --court-key: #ecdcc0; --court-line: #bfa57c;
}
[data-theme="dark"] {
  --court-floor: #4a4033; --court-floor-far: #40372b; --court-key: #55493a; --court-line: #cdb994;
}
/* Neighbouring heat-map cells never merge into one block: a thin card-coloured line frames every shaded cell. */
td[style*="--heat"] { box-shadow: inset 0 0 0 1px var(--bg-card); }

/* ---- Win probability (winprob-live.js): the game page's bar + curve, the main page's odds board ---- */
.wp-live { margin-top: 18px; }
.wpl-read { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 12px; margin-bottom: 10px; }
.wpl-side { display: flex; flex-direction: column; min-width: 0; font-variant-numeric: tabular-nums; }
.wpl-side.a { align-items: flex-end; text-align: right; }
.wpl-side .nm { font-size: 11px; font-weight: 700; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--txt-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wpl-side b { font-size: 44px; line-height: 1; font-weight: 800; font-stretch: 62%; letter-spacing: -.01em; }
.wpl-side.h b { color: var(--home); }
.wpl-side.a b { color: var(--away); }
.wpl-side i { font-style: normal; font-size: 11px; font-weight: 700; min-height: 14px; margin-top: 2px; }
.wpl-side.h i { color: var(--home); }
.wpl-side.a i { color: var(--away); }
.wpl-mid { display: flex; flex-direction: column; align-items: center; padding-bottom: 16px; font-variant-numeric: tabular-nums; }
.wpl-mid .tm { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--txt-mut); white-space: nowrap; }
.wpl-mid .sc { font-size: 20px; font-weight: 800; font-stretch: 85%; color: var(--txt); white-space: nowrap; }
.wpl-bar { display: flex; height: 6px; gap: 2px; }
.wpl-bar > div { min-width: 0; transition: flex-basis .18s ease; }
.wpl-bar .h { background: var(--home); }
.wpl-bar .a { background: var(--away); }
.wpl-plot { position: relative; height: 200px; margin-top: 12px; cursor: crosshair; touch-action: pan-y; outline: none; user-select: none; -webkit-user-select: none; }
.wpl-plot:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.wpl-plot svg { display: block; overflow: visible; }
.wpl-plot .g { stroke: var(--line); stroke-width: 1; }
.wpl-plot .g.m { stroke: var(--txt-mut); stroke-dasharray: 3 3; }
.wpl-plot .q { stroke: var(--line); stroke-width: 1; }
.wpl-plot .ax { font-size: 10px; font-weight: 700; fill: var(--txt-mut); font-family: inherit; }
.wpl-plot .ax.h { fill: var(--home); }
.wpl-plot .ax.a { fill: var(--away); }
.wpl-plot .fill.h { fill: color-mix(in srgb, var(--home) 16%, transparent); }
.wpl-plot .fill.a { fill: color-mix(in srgb, var(--away) 16%, transparent); }
.wpl-plot .line { fill: none; stroke: var(--txt); stroke-width: 1.75; stroke-linejoin: round; }
.wpl-plot .end { fill: var(--txt); }
.wpl-plot .pre { stroke: var(--txt-mut); stroke-width: 1; stroke-dasharray: 1 3; stroke-linecap: round; }
.wpl-plot .pre-dot { fill: var(--bg-card); stroke: var(--txt); stroke-width: 1.5; }
.wpl-key { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2px 12px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.wpl-key:empty { display: none; }
.wpl-key .k { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--txt-mut); white-space: nowrap; }
.wpl-key .ring { width: 9px; height: 9px; background: radial-gradient(circle, var(--bg-card) 0 2px, var(--txt) 2.5px 4px, transparent 4.5px); }
.wpl-key b { font-size: 20px; line-height: 1; font-weight: 800; font-stretch: 85%; }
.wpl-key .h b { color: var(--home); }
.wpl-key .a { text-align: right; }
.wpl-key .a b { color: var(--away); }
.wpl-key .sheet { grid-column: 1 / -1; text-align: center; font-size: 11px; color: var(--txt-mut); }
.wpl-plot .cur line { stroke: var(--txt); stroke-width: 1; stroke-dasharray: 2 2; }
.wpl-plot .cur circle { stroke: var(--bg-card); stroke-width: 2; }
.wpl-plot .cur circle.h { fill: var(--home); }
.wpl-plot .cur circle.a { fill: var(--away); }
.wpl-plot .cur .pill { fill: var(--txt); }
.wpl-plot .cur .pill-t { fill: var(--bg-card); font-size: 10.5px; font-weight: 700; font-family: inherit; font-variant-numeric: tabular-nums; }
.wpl-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 11.5px; color: var(--txt-mut); margin-top: 8px; }
@media (max-width: 600px) {
  .wpl-side b { font-size: 34px; }
  .wpl-mid .sc { font-size: 17px; }
  .wpl-plot { height: 160px; }
}
@media (hover: none) { .wpl-plot { cursor: default; } }
@media (prefers-reduced-motion: reduce) { .wpl-bar > div { transition: none; } }

/* =====================================================================
   KÖZELGŐ NB I/A (Meccs > Közelgő fül, winprob-live.js renderToday) — one sheet per league, games grouped by
   day, each game two lines (home over away) on one grid template shared with the header, so the columns line up.
   Phones (≤700px): the verdict moves up next to the time, the handicap and the total move under the teams.
   ===================================================================== */
.ob-sheet { text-align: left; background: var(--bg-card); border: var(--rule-frame) solid var(--txt); margin: 16px 0 0; }
.ob-sheet:first-child { margin-top: 6px; }
.ob-lg { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0; padding: 8px 12px; background: var(--bg-band); border-bottom: var(--rule-frame) solid var(--txt);
  font-family: var(--font-h); font-stretch: 75%; font-size: 15px; font-weight: 800; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--txt); }
.ob-lg small { font-family: inherit; font-stretch: 100%; font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--txt-mut); }
.odds-wrap { overflow-x: auto; }
/* the window's copy of a column-head row, pinned to the top while the real one has scrolled past (winprob-live.js stickHeads) */
.ob-stick { position: fixed; top: 0; z-index: 20; background: var(--bg-card); box-shadow: 0 2px 0 var(--line-strong); pointer-events: none; }
.ob-stick .ob-head { position: static; }
/* the board scrolls inside its own box on a laptop or tablet, so its column heads stay in view (the sticky row below) */
@media (min-width: 701px) { .odds-wrap { max-height: calc(100vh - 120px); } }
.ob-grid { --ob-cols: 60px minmax(140px, 1fr) 100px 104px 90px 92px 60px minmax(112px, 1.1fr) minmax(132px, 0.8fr) 62px; min-width: 0; font-variant-numeric: tabular-nums; }
/* the three chances carry a decimal ("99,9%"): a size up so they read as large as the whole percents did */
@media (min-width: 1180px) { .ob-mk b, .ob-mo b, .ob-bl b { font-size: 16px; } }
.ob-head, .ob-game { display: grid; grid-template-columns: var(--ob-cols); column-gap: 12px; padding: 0 12px; }
@media (max-width: 1200px) { .ob-head, .ob-game { column-gap: 9px; padding: 0 8px; } }
.ob-head { position: sticky; top: 0; z-index: 2; background: var(--bg-card); padding-top: 8px; padding-bottom: 7px; border-bottom: var(--rule-hair) solid var(--line-strong); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--txt-mut); align-items: end; }
.ob-head small { display: block; font-size: 11.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--txt-dim); margin-top: 1px; }
.ob-head > div { grid-row: 1; }
.ob-n { text-align: right; white-space: nowrap; }
.ob-head .ob-n { white-space: normal; }
.ob-team .nm { overflow-wrap: anywhere; }
.ob-day { padding: 6px 12px; background: var(--bg); border-bottom: var(--rule-hair) solid var(--line); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--txt-mut); }
.ob-game { padding-top: 9px; padding-bottom: 9px; row-gap: 5px; border-bottom: var(--rule-hair) solid var(--line); align-items: center; font-size: 15px; color: var(--txt); }
.ob-grid > .ob-game:last-child { border-bottom: 0; }
.ob-game small { display: block; font-size: 12px; font-weight: 400; color: var(--txt-dim); line-height: 1.25; }
/* desktop placement: home in row 1, away in row 2; time, verdict, handicap and total span both */
.ob-when { grid-column: 1; grid-row: 1 / 3; align-self: start; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.ob-when b { font-size: 17px; font-weight: 800; }
.ob-when .status-badge { font-size: 11px; padding: 1px 5px; }
.ob-live { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; }
a.status-badge.live, a.status-badge.done { text-decoration: none; cursor: pointer; }
a.status-badge.done:hover { text-decoration: underline; }
a.status-badge.live:hover { background: color-mix(in srgb, var(--bad) 28%, transparent); }
.ob-live small { white-space: nowrap; }
.ob-live small { display: inline; }
.ob-team, .ob-odds, .ob-mk, .ob-mo, .ob-bl, .ob-wf { grid-row: 1; }
.ob-team.away, .ob-odds.away, .ob-mk.away, .ob-mo.away, .ob-bl.away, .ob-wf.away { grid-row: 2; }
.ob-team { grid-column: 2; position: relative; padding-left: 10px; min-width: 0; line-height: 1.3; }
.ob-team::before { content: ''; position: absolute; left: 0; top: 1px; bottom: 1px; width: 3px; background: var(--home); }
.ob-team.away::before { background: var(--away); }
.ob-team .nm { font-weight: 600; min-width: 0; }
/* a game in play: the team's points at the right edge of its name line, centred on the line */
.ob-team.has-sc { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; padding-right: 8px; }
.ob-team.has-sc .tn { min-width: 0; }
.ob-sc { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--txt-mut); }
.ob-sc.lead { color: var(--txt); font-weight: 800; }
/* the price pair: the current price and the opening price side by side, both the same size, each in a fixed slot so the
   current price sits in the same place on every row (the opening slot stays empty when there is no opening price) */
.ob-odds { grid-column: 3; font-weight: 700; display: flex; justify-content: center; align-items: baseline; gap: 4px; }
.ob-odds .ob-cur { display: inline-block; min-width: 4ch; text-align: center; }
/* the opening price beside the current one: smaller, muted; ▲ up / ▼ down since the opening */
.ob-open { display: inline-block; width: 5.6ch; text-align: center; font-size: 12px; font-weight: 500; color: var(--txt-mut); white-space: nowrap; }
.ob-open i { font-style: normal; font-size: 10px; }
.ob-open.up i { color: var(--good); }
.ob-open.down i { color: var(--bad); }
.ob-mk { grid-column: 4; }
.ob-mo { grid-column: 5; }
.ob-bl { grid-column: 6; }
.ob-wf { grid-column: 7; color: var(--txt-mut); }
.ob-mk, .ob-mo, .ob-bl { display: flex; justify-content: flex-end; align-items: baseline; gap: 6px; }
.ob-mk small, .ob-mo small, .ob-bl small { display: inline; min-width: 3.4em; }
.ob-mo small, .ob-bl small { min-width: 2.2em; }
.ob-bl small.up { color: var(--good); font-weight: 700; }
.ob-mo small.up { color: var(--good); font-weight: 700; }
.ob-mo small.down { color: var(--bad); font-weight: 700; }
/* the side the grade is for: its price and name carry the weight */
.ob-team.pick .nm { font-weight: 800; }
.ob-odds.pick .ob-cur { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ob-val { grid-column: 8; grid-row: 1 / 3; display: flex; align-items: center; gap: 8px; min-width: 0; }
.ob-vt { display: flex; flex-direction: column; min-width: 0; }
.ob-vt b { font-weight: 700; }
.ob-none { color: var(--txt-dim); }
.ob-hc { grid-column: 9; grid-row: 1 / 3; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; color: var(--txt-mut); }
.ob-hc b, .ob-tot b { color: var(--txt); font-weight: 700; }
.ob-tot { grid-column: 10; grid-row: 1 / 3; }
/* the RESULT column (2026-10-04): at the end of a sheet that has a finished game; the score, who won by how much, and whether the model and the market called it */
.ob-lbl { display: none; font-style: normal; }
.odds-new { font-size: 11.5px; padding: 1px 5px; border: 1px solid var(--line); color: var(--txt-mut); white-space: nowrap; font-weight: 600; }
/* a player announced out (admin > Hiányzók): a small red triangle with a "!" and the word; a click shows the names under it */
/* the injury sits under the team name, on its own line: it takes no width from the row */
.odds-injs { display: flex; flex-direction: column; align-items: flex-start; margin-top: 2px; }
.odds-inj { display: inline-flex; align-items: center; gap: 3px; padding: 0; border: 0; background: none; font: inherit; font-size: 11.5px; font-weight: 700; line-height: 1.3; color: var(--bad); cursor: pointer; white-space: nowrap; }
.odds-inj svg { width: 12px; height: 12px; flex: none; }
.odds-inj-who { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--bad); overflow-wrap: anywhere; }
.odds-inj-who[hidden] { display: none; }
/* an injured player's name: his season line opens in a bubble by it (winprob-live.js injShow, fixed to the page so the board's scroll box cannot clip it) */
.odds-inj-name { cursor: help; text-decoration: underline dotted; text-underline-offset: 3px; }
.odds-inj-name:focus-visible { outline: 2px solid var(--txt); outline-offset: 2px; }
.inj-bub { position: fixed; z-index: 1000; padding: 6px 8px 8px; background: var(--bg-card); border: 1px solid var(--line-strong); color: var(--txt); font-size: 14px; pointer-events: none; }
.inj-bub[hidden] { display: none; }
.inj-bub-cap { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--txt-mut); margin-bottom: 4px; }
/* the season line as a small table: the abbreviations over the figures, sized to the figures rather than to a fixed box */
.inj-bub-tab { border-collapse: collapse; font-variant-numeric: tabular-nums; }
.inj-bub-tab th, .inj-bub-tab td { padding: 2px 6px; text-align: right; white-space: nowrap; }
.inj-bub-tab th { font-size: 12px; font-weight: 600; letter-spacing: .03em; color: var(--txt-mut); border-bottom: 1px solid var(--line); }
.inj-bub-tab td { font-size: 16px; font-weight: 700; }
/* a highlighter behind the headline stats: black on yellow in both themes, so the fixed colours do not depend on the theme */
.inj-bub-tab .hi { color: #000; background: #ffd84d; }
.inj-bub-none { color: var(--txt-mut); }
/* a team's log opened from the board: the finished-games log, above the board (its heading scrolls clear of the app bar) */
.odds-team-log { margin: 0 0 16px; scroll-margin-top: 64px; }
.odds-team-log[hidden] { display: none; }
.odds-team-log-bar { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.odds-inj:focus-visible, .team-go:focus-visible { outline: 2px solid var(--txt); outline-offset: 2px; }
/* a team's name: opens its games and Élő-pontszám in the finished-games tab */
.team-go { display: inline; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: inherit; text-align: left; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
#todayBoard .odds-note { font-size: 12px; text-align: left; color: var(--txt-mut); margin: 12px 0 0; padding: 0 14px; line-height: 1.5; max-width: 900px; }
.odds-grade { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 26px; height: 26px; font-weight: 800; font-size: 13px; border: var(--rule-frame) solid var(--line-strong); color: var(--txt-mut); }
.odds-grade.a { background: var(--good); border-color: var(--good); color: var(--bg-card); }
.odds-grade.b { border-color: var(--good); color: var(--good); }
.odds-grade.bet { width: auto; min-width: 26px; padding: 0 5px; font-size: 12px; letter-spacing: .04em; }
.ob-sp { font-size: 12.5px; }
.ob-sp.bet { color: var(--good); }
.ob-sp.bet b { color: var(--good); }
.ob-now { display: block; color: var(--txt-dim); white-space: nowrap; }
.ob-now.hot { color: var(--warn, #b45309); }
.ob-sp.bet b.sp-low { color: var(--bad); }
.ob-sp small { display: inline; color: var(--txt-dim); }
/* the board's fine print in a condensed text face (IBM Plex Sans Condensed, index.html); numbers and names stay Archivo */
.ob-grid small, .ob-head small, .ob-sp, .ob-hc, .ob-legend, .ob-empty, .ob-lg small { font-family: 'IBM Plex Sans Condensed', var(--font-base); }
.ob-grid small, .ob-sp { letter-spacing: .01em; }
/* vertical rules between the columns, drawn in the middle of the column gap */
.ob-game { row-gap: 0; }
.ob-team, .ob-odds, .ob-mk, .ob-mo, .ob-bl, .ob-wf { padding-top: 3px; padding-bottom: 3px; }
.ob-odds, .ob-mk, .ob-mo, .ob-bl, .ob-wf, .ob-val, .ob-hc, .ob-tot,
.ob-head .c-odds, .ob-head .c-mk, .ob-head .c-mo, .ob-head .c-bl, .ob-head .c-wf, .ob-head .c-val, .ob-head .c-hc, .ob-head .c-tot { border-left: var(--rule-hair) solid var(--line); margin-left: -6px; padding-left: 6px; }
.ob-odds.away, .ob-mk.away, .ob-mo.away, .ob-bl.away, .ob-wf.away { border-top: var(--rule-hair) dotted var(--line); }
.ob-team.away { border-top: var(--rule-hair) dotted var(--line); }
/* the handicap cell: the numbers on one line, the bet text under them wrapped inside the cell */
.ob-hc { align-items: flex-start; justify-content: center; text-align: left; padding-right: 2px; }
.ob-head .c-hc { text-align: left; }
.ob-sp .nw, .ob-vt small .nw { white-space: nowrap; }
.ob-vt small { overflow-wrap: anywhere; }
.ob-hc .ob-sp { display: block; white-space: normal; line-height: 1.3; margin-top: 4px; padding-top: 4px; border-top: var(--rule-hair) dotted var(--line); max-width: 100%; }
.odds-warn { color: var(--bad); font-weight: 700; margin-left: 4px; cursor: help; }
/* a game whose odds Tippmix has suspended before tip-off: its last prices, greyed out */
.ob-game.is-off > :not(.ob-val):not(.ob-wf) { opacity: .45; }
.ob-game.is-off .ob-offlbl { color: var(--txt-mut); font-weight: 700; }
.ob-empty { margin: 0; padding: 14px 12px; font-size: 13px; color: var(--txt-mut); text-align: left; }
/* MAI MECCSEK (Meccs > Mai meccsek, winprob-live.js renderGames): the federation's day, one sheet per league, a row per game:
   the time / the minute in red / the FINISHED stamp, then the two teams with the score and the model's chance */
.gm-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; }
.gm-bar > button, .gm-date { font: inherit; font-size: 13px; font-weight: 700; padding: 6px 12px; background: var(--bg-card); color: var(--txt); border: var(--rule-hair) solid var(--txt); border-radius: 0; cursor: pointer; }
.gm-bar > button:hover, .gm-date:hover { background: var(--bg-band); }
.gm-bar > button:focus-visible, .gm-date:focus-visible { outline: 2px solid var(--txt); outline-offset: 2px; }
.gm-datewrap { position: relative; display: inline-block; }
.gm-date::after { content: ""; display: inline-block; width: 0; height: 0; margin-left: 10px; vertical-align: middle; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid currentColor; }
.gm-cal[hidden] { display: none; }
.gm-cal { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: 300px; max-width: calc(100vw - 32px); padding: 12px; background: var(--bg-card); color: var(--txt); border: var(--rule-hair) solid var(--txt); }
.gm-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.gm-cal-head strong { font-size: 15px; font-weight: 800; text-align: center; }
.gm-cal-head button { font: inherit; font-size: 16px; font-weight: 700; width: 34px; height: 34px; padding: 0; background: var(--bg-card); color: var(--txt); border: var(--rule-hair) solid var(--txt); border-radius: 0; cursor: pointer; }
.gm-cal-head button:hover { background: var(--bg-band); }
.gm-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.gm-cal-wd { padding: 4px 0; font-size: 11px; font-weight: 700; text-align: center; color: var(--txt-mut); }
.gm-cal-grid button { font: inherit; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; aspect-ratio: 1; padding: 0; background: transparent; color: var(--txt); border: 0; border-radius: 0; cursor: pointer; }
.gm-cal-grid button:hover { background: var(--bg-band); }
.gm-cal-grid button.is-today { box-shadow: inset 0 0 0 1px var(--txt); }
.gm-cal-grid button[aria-pressed="true"] { background: var(--txt); color: var(--bg-card); font-weight: 800; }
.gm-cal-grid button:focus-visible, .gm-cal-head button:focus-visible { outline: 2px solid var(--txt); outline-offset: 1px; }
.gm-list { list-style: none; margin: 0; padding: 0; }
.gm-row { border-bottom: var(--rule-hair) solid var(--line); }
.gm-row:last-child { border-bottom: 0; }
.gm-link { display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 12px; align-items: start; padding: 9px 12px; color: inherit; text-decoration: none; }
a.gm-link:hover { background: var(--bg-band); }
a.gm-link:focus-visible { outline: 2px solid var(--txt); outline-offset: -2px; }
.gm-when { padding-top: 2px; font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 700; color: var(--txt); white-space: nowrap; }
.gm-live { color: var(--accent); }
.gm-fin { display: inline-block; padding: 1px 5px; border: var(--rule-hair) solid var(--txt-mut); font-family: 'IBM Plex Sans Condensed', var(--font-base); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--txt-mut); }
.gm-main { min-width: 0; }
.gm-team { display: grid; grid-template-columns: minmax(0, 1fr) 2.2em 3.4em; align-items: baseline; column-gap: 8px; font-size: 15px; line-height: 1.35; color: var(--txt); }
.gm-name { min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.gm-sc { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.gm-p { text-align: right; font-size: 16px; font-weight: 700; color: var(--txt); font-variant-numeric: tabular-nums; }
.gm-p.is-pre { font-weight: 400; opacity: 0.65; }
.gm-open { cursor: pointer; }
.gm-open:hover, .gm-open[aria-expanded="true"] { background: var(--bg-band); }
.gm-open:focus-visible { outline: 2px solid var(--txt); outline-offset: -2px; }
.gm-pv { padding: 4px 12px 12px 108px; background: var(--bg-band); }
.gm-split { height: 4px; background: var(--line); margin: 6px 0 8px; }
.gm-split i { display: block; height: 100%; background: var(--txt); }
.gm-pvt { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.gm-pvt tr > th, .gm-pvt tr > td { box-shadow: none; padding: 4px 0 4px 8px; text-align: right; font-weight: 400; text-transform: none; letter-spacing: 0; background: none; border: 0; border-bottom: var(--rule-hair) solid var(--line); overflow-wrap: anywhere; }
.gm-pvt col:first-child { width: 36%; }
.gm-pvt thead tr > th { font-weight: 700; }
.gm-pvt tbody tr > th { padding-left: 0; text-align: left; color: var(--txt-dim); }
.gm-pvt b { font-weight: 700; }
.gm-venue { margin-top: 2px; font-size: 12.5px; color: var(--txt-dim); }
.gm-note { margin: 14px 0 0; max-width: 900px; font-size: 12.5px; line-height: 1.5; color: var(--txt-mut); text-align: left; }
@media (max-width: 600px) {
  .gm-bar { position: relative; }
  .gm-datewrap { position: static; }
  .gm-cal { left: 0; right: 0; width: auto; max-width: none; }
  .gm-link { grid-template-columns: minmax(0, 1fr); row-gap: 4px; padding: 9px 10px; }
  .gm-pv { padding: 4px 10px 12px; }
  .gm-when { font-size: 13px; white-space: normal; }
  .gm-team { font-size: 14px; }
}
.ob-legend { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 18px 0 0; padding: 12px 14px; text-align: left; font-size: 12.5px; line-height: 1.5; color: var(--txt-mut); border-top: var(--rule-heavy) solid var(--txt); max-width: 900px; }
.ob-legend dt { font-weight: 800; color: var(--txt); }
.ob-legend dd { margin: 0; }
/* below ~1180 px the nine columns no longer fit beside each other: the board stacks (no sideways scrolling) */
@media (max-width: 1179px) {
  .ob-grid { --ob-cols: minmax(0, 1fr) 38px 50px 50px 50px 42px; min-width: 0; }   /* model + blended as wide as the market: all three one decimal */
  .ob-hc .ob-sp { white-space: normal; flex-basis: 100%; }
  .ob-odds, .ob-mk, .ob-mo, .ob-bl, .ob-wf, .ob-val, .ob-hc, .ob-tot, .ob-head > div { border-left: 0 !important; margin-left: 0 !important; padding-left: 0 !important; }
  .ob-hc { justify-content: flex-start; align-items: baseline; }
  .ob-hc .ob-sp { margin-top: 0; padding-top: 0; border-top: 0; }
  .ob-head, .ob-game { column-gap: 6px; padding: 0 10px; }
  .ob-head { font-size: 10.5px; letter-spacing: 0; line-height: 1.2; }
  .ob-head small { display: none; }
  .ob-head .ob-n { white-space: normal; }
  .ob-head .c-when, .ob-head .c-val, .ob-head .c-hc, .ob-head .c-tot { display: none; }
  .ob-head .c-team { grid-column: 1; } .ob-head .c-odds { grid-column: 2; } .ob-head .c-mk { grid-column: 3; } .ob-head .c-mo { grid-column: 4; } .ob-head .c-bl { grid-column: 5; } .ob-head .c-wf { grid-column: 6; }
  .ob-game { font-size: 14px; row-gap: 6px; }
  .ob-when { grid-column: 1; grid-row: 1; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
  .ob-val { grid-column: 2 / -1; grid-row: 1; justify-content: flex-end; }
  .ob-vt { align-items: flex-end; text-align: right; }
  .ob-team, .ob-odds, .ob-mk, .ob-mo, .ob-bl, .ob-wf { grid-row: 2; }
  .ob-team.away, .ob-odds.away, .ob-mk.away, .ob-mo.away, .ob-bl.away, .ob-wf.away { grid-row: 3; }
  .ob-team { grid-column: 1; } .ob-odds { grid-column: 2; } .ob-mk { grid-column: 3; } .ob-mo { grid-column: 4; } .ob-bl { grid-column: 5; } .ob-wf { grid-column: 6; }
  .ob-mk, .ob-mo, .ob-bl { flex-direction: column; align-items: flex-end; gap: 0; }
  .ob-mk small, .ob-mo small, .ob-bl small { min-width: 0; }
  .ob-hc { grid-column: 1; grid-row: 4; flex-direction: row; flex-wrap: wrap; gap: 2px 10px; white-space: normal; text-align: left; font-size: 13px; }
  .ob-hc span { white-space: nowrap; }
  .ob-tot { grid-column: 2 / -1; grid-row: 4; font-size: 13px; color: var(--txt-mut); }
  .ob-lbl { display: inline; color: var(--txt-dim); margin-right: 4px; }
  .ob-hc .ob-lbl { display: none; }
  .ob-legend { grid-template-columns: 1fr; gap: 2px; }
  .ob-legend dd { margin-bottom: 8px; }
}
@media (max-width: 1179px) and (min-width: 701px) {
  /* tablet / small laptop: the handicap and total move into a sixth column beside the teams instead of under them */
  .ob-grid { --ob-cols: minmax(110px, 1.5fr) minmax(76px, 1fr) minmax(96px, 1.2fr) minmax(76px, 1fr) minmax(70px, .95fr) minmax(52px, .65fr) minmax(104px, .8fr); }
  .ob-mk, .ob-mo, .ob-bl { flex-direction: row; align-items: baseline; gap: 6px; }
  .ob-val { grid-column: 2 / 7; }
  .ob-hc { grid-column: 7; grid-row: 1 / 3; flex-direction: column; flex-wrap: nowrap; gap: 2px; align-self: start; padding-top: 3px; }
  .ob-tot { grid-column: 7; grid-row: 3; display: block; text-align: left; }
  .ob-head .c-hc { display: block; grid-column: 7; }
  .ob-head .c-tot { display: none; }
  .ob-head .c-val, .ob-head .c-when { display: block; }
  .ob-head .c-team { grid-column: 1; } .ob-head .c-odds { grid-column: 2; } .ob-head .c-mk { grid-column: 3; } .ob-head .c-mo { grid-column: 4; } .ob-head .c-bl { grid-column: 5; } .ob-head .c-wf { grid-column: 6; }
  .ob-head .c-val, .ob-head .c-when { display: none; }
  .ob-head, .ob-game { column-gap: 10px; }
  .ob-grid .ob-odds, .ob-grid .ob-mk, .ob-grid .ob-mo, .ob-grid .ob-bl, .ob-grid .ob-wf, .ob-head > .c-odds, .ob-head > .c-mk, .ob-head > .c-mo, .ob-head > .c-bl, .ob-head > .c-wf { margin-left: -5px !important; padding-left: 5px !important; }
  .ob-hc, .ob-tot { border-left: var(--rule-hair) solid var(--line) !important; margin-left: -5px !important; padding-left: 5px !important; }
  .ob-head small { display: block; }
}
/* wide tablet / small laptop: the result column fits beside the rest (below ~880 px it stays a row under the game) */
@media (max-width: 1179px) and (min-width: 880px) {
}
/* phones: the board gets the width. main (16 px) and the empty-state card around the tab panels (20 px) left 303 of 375 px; now the sheet runs edge to edge */
@media (max-width: 900px), (orientation: landscape) and (max-height: 520px) {
  .container:has(:is(#tab-today, #tab-upcoming):not([style*="none"])) { padding-left: max(4px, env(safe-area-inset-left)); padding-right: max(4px, env(safe-area-inset-right)); }
  .empty-state:has(:is(#tab-today, #tab-upcoming):not([style*="none"])) { padding-left: 0; padding-right: 0; }
}
/* phone held sideways (2026-10-16): the board is the page. No inner scroll box (it capped the table at ~270 px of a 390 px
   screen; the page scrolls and the pinned head copy, stickHeads, keeps the column names in view), the side gutters and the
   title block shrink, and the rows tighten. */
@media (orientation: landscape) and (max-height: 520px) {
  #tab-today > h2, #tab-today > p, #tab-upcoming > h2, #tab-upcoming > p { display: none; }
  .odds-wrap { max-height: none; overflow-x: visible; }
  .container:has(:is(#tab-today, #tab-upcoming):not([style*="none"])) { padding-top: 6px; }
  .ob-sheet { border-left-width: 0; border-right-width: 0; margin-top: 8px; }
  .ob-sheet:first-child { margin-top: 0; }
  .ob-lg { padding: 5px 8px; }
  .ob-day { padding: 3px 8px; }
  .ob-game { padding-top: 5px; padding-bottom: 5px; }
}
/* chrome (the slim top bar, the bottom bar) cut to ~9% of a 390 px screen; the bottom bar exists below 900 px only */
@media (orientation: landscape) and (max-height: 520px) and (max-width: 899px) {
  body:has(:is(#tab-today, #tab-upcoming):not([style*="none"])) .tb-mini { display: none; }
  body:has(:is(#tab-today, #tab-upcoming):not([style*="none"])).has-bottomnav { padding-bottom: calc(36px + var(--nav-pad)); }
  body:has(:is(#tab-today, #tab-upcoming):not([style*="none"])) .bottomnav { min-height: 0; height: calc(36px + var(--nav-pad)); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
}
/* the 628 px of fixed columns left the team name 93 px at 844 wide */
@media (orientation: landscape) and (max-height: 520px) and (min-width: 701px) {
  .ob-grid { --ob-cols: minmax(96px, 1.5fr) minmax(70px, 1fr) minmax(84px, 1.2fr) minmax(68px, 1fr) minmax(62px, .95fr) minmax(44px, .65fr) minmax(96px, .8fr); }
}
/* rules between the columns (2026-10-17): each price/chance cell carries a hairline on its left edge, pulled into the middle of the column gap;
   home and away rows touch, so the line runs the whole game */
@media (max-width: 1179px) {
  .ob-grid .ob-odds, .ob-grid .ob-mk, .ob-grid .ob-mo, .ob-grid .ob-bl, .ob-grid .ob-wf,
  .ob-head > .c-odds, .ob-head > .c-mk, .ob-head > .c-mo, .ob-head > .c-bl, .ob-head > .c-wf { border-left: var(--rule-hair) solid var(--line) !important; margin-left: -3px !important; padding-left: 3px !important; }
  .ob-grid .ob-wf { padding-right: 2px; }
}
@media (max-width: 1179px) and (min-width: 701px) {
  .ob-grid .ob-odds, .ob-grid .ob-mk, .ob-grid .ob-mo, .ob-grid .ob-bl, .ob-grid .ob-wf, .ob-head > .c-odds, .ob-head > .c-mk, .ob-head > .c-mo, .ob-head > .c-bl, .ob-head > .c-wf { margin-left: -5px !important; padding-left: 5px !important; }
}
/* 701-1179: the clock, status and margin share one line over the teams and prices (the status line used to wrap and leave the row half empty) */
@media (max-width: 1179px) and (min-width: 701px) {
  .ob-game { row-gap: 3px; }
  /* both team rows the same height, the injury tag beside the name: a tag no longer makes one row taller than the other */
  .ob-team:not(.has-sc) { display: flex; flex-wrap: wrap; align-items: center; align-content: center; gap: 1px 8px; }
  .ob-team .odds-injs { margin-top: 0; }
  .ob-team, .ob-odds, .ob-mk, .ob-mo, .ob-bl, .ob-wf { min-height: 38px; box-sizing: border-box; align-self: stretch; }
  .ob-odds, .ob-mk, .ob-mo, .ob-bl, .ob-wf { align-items: center; }
  .ob-wf { display: flex; justify-content: flex-end; }
  .ob-when { grid-column: 1 / 3; flex-wrap: nowrap; white-space: nowrap; }
  .ob-val { grid-column: 2 / 7; grid-row: 1; align-self: end; padding-bottom: 3px; }
  /* a rule under the call, from the left edge to the end of blended chance, ends where the worth-it column begins: the text that spills left over those columns reads as that column's */
  .ob-game::before { content: ""; grid-column: 1 / 6; grid-row: 1; align-self: end; margin-left: -10px; border-bottom: var(--rule-hair) solid var(--line); }
  .ob-val .ob-vt { align-items: flex-end; text-align: right; }   /* the call is two lines: BET side and edge / opening odds, now (it wrapped to three) */
  .ob-val .ob-vt small { white-space: nowrap; }
  .ob-val .ob-now { display: inline; margin-left: 6px; }
}
@media (max-width: 900px) { html { overflow-x: clip; } }
@media (max-width: 360px) {
  .ob-grid { --ob-cols: minmax(0, 1fr) 34px 44px 36px 36px 36px; }
  .ob-head, .ob-game { column-gap: 4px; padding: 0 8px; }
  .ob-game { font-size: 13px; }
}

/* =====================================================================
   MECCS-ELEMZÉS (/match) — a jegyzőkönyv fejléce, a meccs számokban, ugrósáv, főkönyv, lövéstérkép.
   A piros toll itt: az élő állapot és a rendezett oszlop. A csapatszín (hazai piros / vendég kék)
   csak a csapatot jelöli: jel a név előtt, a jobbik érték és a különbség-sáv.
   ===================================================================== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#mainView .gs-sec { margin-top: 18px; scroll-margin-top: calc(var(--gs-top, 0px) + 58px); }
/* Fullscreen covers the whole window: the section spacing above must not push it down and let the page show through. */
#mainView .card.fullscreen { margin: 0; }
/* Same on every page: .card.stack (season page) adds a top margin that pushed the fixed card down and let the page peek above it. */
.card.fullscreen.stack { margin: 0; }
/* Like the leaderboards: the match tables never scroll vertically on their own, so the mouse wheel over a table
   scrolls the page. Sideways scrolling stays; fullscreen keeps its own scroller. */
#mainView .card:not(.fullscreen) .scroll:not(.gs-scroll),
.card.stack:not(.fullscreen) .scroll:not(.gs-scroll) { max-height: none; overscroll-behavior: auto; }

/* ---- Fejléc: fejléc-mezők (címke a mező fölött) + eredménysor ---- */
.gs { background: var(--bg-card); border: var(--rule-frame) solid var(--txt); }
.gs-fields { display: flex; flex-wrap: wrap; background: var(--bg-band); border-bottom: var(--rule-heavy) solid var(--txt); }
.gs-f {
  display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 0 1 auto; padding: 9px 16px 10px;
  box-shadow: -1px 0 0 var(--line);
}
.gs-f:first-child { box-shadow: none; }
.gs-f.grow { flex: 1 1 200px; }
.gs-fl { font-size: 10px; font-weight: 700; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--txt-dim); white-space: nowrap; }
.gs-fv { font-size: 14px; font-weight: 600; color: var(--txt); line-height: 1.3; font-variant-numeric: tabular-nums; }
.gs-f.refs .gs-fv { font-weight: 500; color: var(--txt-mut); font-size: 13px; }
.gs-f.is-live .gs-fv { color: var(--accent); font-weight: 700; }
.gs-live { display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: .06em; }
.gs-live::before { content: ""; width: 8px; height: 8px; border-radius: 50% !important; background: currentColor; animation: gs-pulse 1.6s ease-in-out infinite; }
@keyframes gs-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .gs-live::before { animation: none; } }

.gs-scroll { border: 0; max-height: none; overflow-x: auto; overflow-y: hidden; }
.gs-line { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.gs-line th, .gs-line td { border: 0; box-shadow: none; background: none; padding: 0 10px; text-align: center; }
.gs-line thead th {
  padding: 12px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--txt-dim);
  background: var(--bg-card); box-shadow: none;
}
.gs-line thead th.gs-tot { color: var(--txt-dim); }
.gs-line tbody td { font-size: 18px; font-weight: 500; color: var(--txt-mut); width: 52px; height: 64px; }
.gs-line tbody td.qw { color: var(--txt); font-weight: 800; }
.gs-line tbody tr + tr > * { border-top: var(--rule-hair) solid var(--line-soft); }
.gs-line .gs-team { text-align: left; padding-left: 20px; width: auto; }
.gs-line tbody .gs-team { position: relative; }
.gs-line tbody .gs-team::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 6px; }
.gs-line tr.gs-h .gs-team::before { background: var(--home); }
.gs-line tr.gs-a .gs-team::before { background: var(--away); }
.gs-nm {
  display: block; font-size: 30px; font-weight: 800; font-stretch: 70%; text-transform: uppercase; line-height: 1;
  color: var(--txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 62vw; letter-spacing: 0;
}
.gs-line tr:not(.lead) .gs-nm { color: var(--txt-mut); }
.gs-line td.gs-tot {
  width: 120px; padding: 0 20px 0 18px; text-align: right; border-left: var(--rule-heavy) solid var(--txt);
  font-size: 60px; font-weight: 800; font-stretch: 62%; line-height: 1; color: var(--txt-dim);
}
.gs-line thead th.gs-tot { text-align: right; padding-right: 20px; border-left: var(--rule-heavy) solid var(--txt); }
.gs-line tr.lead td.gs-tot { color: var(--txt); }
@media (hover: hover) and (pointer: fine) { .gs-line tbody tr:hover { background: none; } }

/* ---- A meccs számokban ---- */
.gs-sum:empty { display: none; }
.gs-sum {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 18px;
  background: var(--bg-card); border: var(--rule-frame) solid var(--txt);
}
.gs-k { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 12px 16px 13px; box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); }
.gs-kl { font-size: 10px; font-weight: 700; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--txt-dim); }
.gs-kv { font-size: 34px; line-height: .95; font-weight: 800; font-stretch: 62%; color: var(--txt); font-variant-numeric: tabular-nums; }
.gs-ks { font-size: 12.5px; font-weight: 600; color: var(--txt-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-ks.gs-h, .gs-ks.gs-a { padding-left: 10px; position: relative; }
.gs-ks.gs-h::before, .gs-ks.gs-a::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 4px; }
.gs-ks.gs-h::before { background: var(--home); }
.gs-ks.gs-a::before { background: var(--away); }

/* ---- Ugrósáv ---- */
.gs-index:empty { display: none; }
.gs-index {
  display: flex; gap: 0; margin-top: 18px; overflow-x: auto; scrollbar-width: none;
  background: var(--bg-card); border: var(--rule-frame) solid var(--txt);
}
.gs-index::-webkit-scrollbar { display: none; }
.gs-index a {
  flex: 1 0 auto; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px;
  font-size: 12.5px; font-weight: 700; font-stretch: 85%; letter-spacing: .06em; text-transform: uppercase;
  color: var(--txt-mut); text-decoration: none; white-space: nowrap; box-shadow: -1px 0 0 var(--line);
  transition: color .15s ease, box-shadow .15s ease;
}
.gs-index a:first-child { box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .gs-index a:hover { color: var(--txt); background: var(--bg-hover); } }
.gs-index a.on { color: var(--txt); box-shadow: inset 0 calc(-1 * var(--rule-pen)) 0 var(--txt), -1px 0 0 var(--line); }
.gs-index a:first-child.on { box-shadow: inset 0 calc(-1 * var(--rule-pen)) 0 var(--txt); }
.gs-index a:focus-visible { outline: 2px solid var(--txt); outline-offset: -3px; }
@media (min-width: 901px) {
  .gs-index { position: sticky; top: var(--gs-top, 0px); z-index: 40; }
}

/* ---- Csapat-fülek: két egyforma, összeillesztett mező a csapat jelével; sosem törnek két sorba ---- */
#mainView .team-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 620px; }
#mainView .team-tabs .tab {
  position: relative; min-width: 0; padding-left: 22px; text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#mainView .team-tabs .tab::before { content: ""; position: absolute; left: 8px; top: 9px; bottom: 9px; width: 5px; }
#mainView .team-tabs .tab:nth-child(1)::before { background: var(--home); }
#mainView .team-tabs .tab:nth-child(2)::before { background: var(--away); }

/* ---- Főkönyv (csapat-összehasonlítás) ---- */
.ldg-wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.ldg-head {
  grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; margin-bottom: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--txt-mut);
}
.ldg-head span { position: relative; display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ldg-head .gs-h { padding-left: 13px; }
.ldg-head .gs-a { padding-right: 13px; text-align: right; }
.ldg-head .gs-h::before, .ldg-head .gs-a::after { content: ""; position: absolute; top: 0; bottom: 0; width: 5px; }
.ldg-head .gs-h::before { left: 0; }
.ldg-head .gs-a::after { right: 0; }
.ldg-head .gs-h::before { background: var(--home); }
.ldg-head .gs-a::after { background: var(--away); }
.ldg { min-width: 0; }
.ldg h3 {
  margin: 10px 0 2px; padding: 6px 0; text-align: center; border-bottom: var(--rule-heavy) solid var(--txt);
  font-size: 11px; font-weight: 700; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--txt);
}
.ldg-row {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) 88px minmax(0, 1fr) 46px; align-items: center;
  min-height: 34px; border-bottom: var(--rule-hair) solid var(--line-soft); font-variant-numeric: tabular-nums;
}
.ldg-v { font-size: 15px; font-weight: 500; color: var(--txt-dim); }
.ldg-row > .ldg-v:first-child { text-align: left; }
.ldg-row > .ldg-v:last-child { text-align: right; }
.ldg-v.win { color: var(--txt); font-weight: 800; }
.ldg-k { text-align: center; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--txt-mut); line-height: 1.15; }
.ldg-row.low .ldg-k::after { content: " ↓"; color: var(--txt-dim); }
.ldg-b { display: flex; align-items: center; gap: 5px; height: 100%; min-width: 0; }
.ldg-b.ldg-h { flex-direction: row-reverse; }
.ldg-b i { display: block; height: 8px; }
.ldg-b.ldg-h i { background: var(--home); }
.ldg-b.ldg-a i { background: var(--away); }
.ldg-b em { font-style: normal; font-size: 11px; font-weight: 700; white-space: nowrap; }
.ldg-b.ldg-h em { color: var(--home); }
.ldg-b.ldg-a em { color: var(--away); }

/* ---- Lövéstérkép: pálya balra, dobásfajták és jelmagyarázat jobbra ---- */
.shot-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.shot-side { display: flex; flex-direction: column; gap: 12px; }
.shot-break { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.shot-break th, .shot-break td { padding: 8px 10px; text-align: right; font-size: 14px; }
.shot-break thead th { font-size: 11px; letter-spacing: .08em; color: var(--txt-dim); }
.shot-break tbody th { text-align: left; font-weight: 600; color: var(--txt); box-shadow: none; background: none; font-size: 14px; letter-spacing: 0; }
.shot-break tr.tot > * { border-top: var(--rule-heavy) solid var(--txt); border-bottom: 0; font-weight: 800; }
@media (hover: hover) and (pointer: fine) { .shot-break tbody tr:hover { background: none; } }
.shot-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; font-weight: 600; color: var(--txt-mut); }
.shot-legend span { display: inline-flex; align-items: center; gap: 7px; }
.shot-legend i { display: inline-block; width: 10px; height: 10px; }
.shot-legend .lg-made { background: var(--txt); border-radius: 50% !important; }
.shot-legend .lg-miss { border: var(--rule-frame) solid var(--txt-dim); border-radius: 50% !important; }
.shot-legend .lg-ramp { width: 44px; background: linear-gradient(90deg, color-mix(in srgb, var(--away) 12%, transparent), var(--away)); }
.shot-dot.miss { transition: stroke .12s; }
.shot-controls .shot-legend { margin-left: auto; }
/* Shot mix: one bar of the attempts split by type, with the shares written under it */
.shot-mix { display: flex; flex-direction: column; gap: 8px; }
.shot-mix-h { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--txt-dim); }
.shot-mix-bar { display: flex; height: 14px; gap: 2px; }
.shot-mix-bar i, .shot-mix-key i { display: block; }
.shot-mix .mx-a { background: var(--txt); }
.shot-mix .mx-b { background: var(--txt-dim); }
.shot-mix .mx-c { background: color-mix(in srgb, var(--txt-dim) 55%, var(--bg-card)); }
.shot-mix .mx-d { background: var(--away); }
.shot-mix-key { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; font-weight: 600; color: var(--txt-mut); }
.shot-mix-key span { display: inline-flex; align-items: center; gap: 6px; }
.shot-mix-key i { width: 10px; height: 10px; }
.shot-mix-key b { color: var(--txt); font-variant-numeric: tabular-nums; }

/* The whole card (header, team tabs, view tabs, court) has to fit below the sticky topbar + section index:
   the court takes its height from the viewport, its width follows from the 232×240 viewBox. */
@media (min-width: 641px) {
  #sec-shots:not(.fullscreen) .shot-svg,
  .print-shotmap:not(.fullscreen) .shot-svg { width: auto; max-width: 100%; height: clamp(280px, calc(100dvh - var(--gs-top, 0px) - 330px), 470px); }
}
@media (min-width: 900px) {
  /* court and side column sit together in the middle of the card instead of the court floating in a wide left cell */
  #sec-shots .shot-body,
  .print-shotmap .shot-body { grid-template-columns: auto minmax(260px, 340px); justify-content: center; align-items: center; gap: 12px 36px; }
}

/* ---- 2/3/4 fős egységek: top 10, „Továbbiak megjelenítése” ---- */
.lu-more { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; }
.lu-more-b { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.lu-more-n { font-size: 12.5px; font-weight: 600; color: var(--txt-mut); font-variant-numeric: tabular-nums; }

/* ---- Kombinációk: kiindulópontok az üres lapon ---- */
.combo-picks { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 16px; }
.combo-picks-l { width: 100%; font-size: 11px; font-weight: 700; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--txt-dim); }
.combo-result .empty { padding: 32px 12px; }
.gs-more { cursor: pointer; color: var(--txt-mut); font-size: 12.5px; font-weight: 600; }

/* ---- Keskeny nézet ---- */
@media (max-width: 1100px) {
  .ldg-wrap { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin: 0 auto; }
  .gs-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .gs, .gs-sum, .gs-index { border-left: 0; border-right: 0; }
  .gs-f { padding: 8px 12px 9px; flex: 1 1 auto; }
  .gs-f.refs { display: none; }
  .gs-line tbody td { font-size: 15px; width: 30px; height: 54px; padding: 0 4px; }
  .gs-line thead th { padding: 10px 4px 2px; }
  .gs-line .gs-team { padding-left: 14px; }
  .gs-line tbody .gs-team::before { top: 12px; bottom: 12px; width: 5px; }
  .gs-nm { font-size: 20px; max-width: 34vw; white-space: normal; overflow: visible; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .gs-line td.gs-tot { width: 64px; padding: 0 12px 0 10px; font-size: 40px; }
  .gs-line thead th.gs-tot { padding-right: 12px; }
  .gs-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gs-k { padding: 10px 12px 11px; }
  .gs-kv { font-size: 28px; }
  .gs-index a { padding: 0 12px; font-size: 12px; }
  .ldg-row { grid-template-columns: 50px minmax(0, 1fr) 76px minmax(0, 1fr) 50px; }
  .ldg-head span { max-width: 48%; }
  .topbar-row.secondary input.code { flex: 1 1 140px; min-width: 140px; }
  .ldg-b em { font-size: 10.5px; }
}
@media print {
  .gs-index, .combo-picks { display: none !important; }
  .gs, .gs-sum { border-color: #333; }
}

/* Fixed copy of a table's heading row while the page scrolls past it (installStickyTableHeads in bootstrap.js) */
.th-stuck { display: none; position: fixed; z-index: 45; overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 6px 8px -6px rgba(0,0,0,.35); background: var(--bg-card); }
.th-stuck.on { display: block; }
.th-stuck table { border-spacing: 0; }
@media print { .th-stuck { display: none !important; } }

/* ---- Fullscreen cards: use the screen instead of floating a small box in the middle of it ----
   (the team profile card keeps the plain fullscreen it always had) */
.card.fullscreen:not(#seasonTeamProfileCard) { padding: 18px clamp(16px, 3vw, 48px) 22px; }
.card.fullscreen:not(#seasonTeamProfileCard) > h2 { margin-bottom: 14px; }
/* tables: a little roomier, but only the narrow ones; the wide season tables (.scroll-cap) keep their normal size */
.card.fullscreen:not(#seasonTeamProfileCard) .scroll:not(.scroll-cap) { flex: 0 1 auto; }
.card.fullscreen:not(#seasonTeamProfileCard) .scroll:not(.scroll-cap) th,
.card.fullscreen:not(#seasonTeamProfileCard) .scroll:not(.scroll-cap) td { padding-top: 11px; padding-bottom: 11px; }
.card.fullscreen .lu-more { padding-top: 14px; }
/* combination tools: list on the left runs the full height, the result fills the rest */
.card.fullscreen .combo-wrap { flex: 1 1 auto; min-height: 0; overflow: hidden; align-items: stretch; gap: 24px; }
@media (min-width: 900px) { .card.fullscreen .combo-wrap { grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); } }
.card.fullscreen .combo-list { max-height: none; min-height: 0; overflow: auto; }
.card.fullscreen .combo-list label { padding: 10px 14px; font-size: 15px; }
.card.fullscreen .combo-list label .minS { font-size: 12.5px; }
.card.fullscreen .combo-result { overflow: auto; min-height: 0; padding: 28px clamp(18px, 3vw, 40px); }
.card.fullscreen .combo-result h3 { font-size: 20px; margin-bottom: 20px; }
/* the result has eight figures: four across, two rows */
.card.fullscreen .combo-result .kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .card.fullscreen .combo-result .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card.fullscreen .combo-result .kpi { padding: 18px 20px; }
.card.fullscreen .combo-result .kpi .val { font-size: 40px; }
.card.fullscreen .combo-result .empty { padding: 20vh 12px; font-size: 16px; }
/* shot map: the court takes the height that is left, the side column grows with it */
.card.fullscreen #shotChartArea, .card.fullscreen #seasonShotChartArea { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.card.fullscreen .shot-body { flex: 1 1 auto; min-height: 0; align-items: center; justify-content: center; }
@media (min-width: 900px) {
  .card.fullscreen .shot-body { grid-template-columns: auto minmax(320px, 460px); gap: 12px 56px; }
  .card.fullscreen .shot-body .shot-svg { width: auto; max-width: 100%; height: calc(100dvh - 250px); max-height: none; }
  .card.fullscreen .shot-break th, .card.fullscreen .shot-break td { padding: 12px 12px; font-size: 16px; }
  .card.fullscreen .shot-legend, .card.fullscreen .shot-mix-key { font-size: 14px; }
  .card.fullscreen .shot-mix-bar { height: 18px; }
}

/* team profile: several blocks stacked, so the card itself scrolls instead of each table inside it */
#seasonTeamProfileCard.fullscreen { display: block; overflow-y: auto; overscroll-behavior: contain; }
#seasonTeamProfileCard.fullscreen .scroll { max-height: none; overflow-x: auto; overflow-y: visible; }
#seasonTeamProfileCard.fullscreen > h2 { position: sticky; top: -14px; z-index: 5; background: var(--bg); padding-top: 14px; }

/* the frame of a card that is shrinking back from fullscreen: fixed, normal content layout inside */
.card.fs-closing { position: fixed; z-index: 200; margin: 0; overflow: hidden; background: var(--bg); border-radius: 0; }
#seasonTeamProfileCard.fullscreen .scroll { overscroll-behavior: auto; }

/* =====================================================================
   TELEFON (≤ 600 px) — átnézés 2026-10-09: nincs levágott szöveg, a vonalak egész vastagságúak.
   · Vonalak: egész CSS-pixel. A 1,5 px-es keret a telefon sűrűségén (2–3×) más vastagnak látszott, mint az 1 px-es
     elválasztó, és a szaggatott (dotted) 1 px-es vonal pöttyökre esett szét, ami hiányzó vonalnak látszott.
   · Nevek a szavaik között törnek, nem a szó közepén, és nem kerülnek „…" alá.
   · Az odds-tábla telefonon meccsenként egy kártya: a két csapat a saját sorában, alatta a négy szám.
   ===================================================================== */
@media (max-width: 600px) {
  :root { --rule-frame: 2px; --rule-heavy: 3px; }

  /* a név, ami egy sávban nem fért ki: a sorában törjön, ne vágódjon le */
  /* the game's scoreboard: the team name in full, two lines if it must; its stat-tile labels at 11 px */
  .gs-nm { display: block; -webkit-line-clamp: unset; white-space: normal; overflow: visible; text-overflow: clip; max-width: none; font-size: 19px; line-height: 1.05; overflow-wrap: break-word; }
  .gs-line tbody .gs-team { padding-top: 8px; padding-bottom: 8px; }
  .gs-fl, .gs-kl { font-size: 11px; }
  .team-game-row .opp, .hm-row .h, .hm-row .a, .wpl-side .nm, .gs-ks, .cmp-ph .tm, .intl-cmp-col .mt,
  .team-pick .omnibox-item > span:first-child, #lbTable td.lb-name, #lbTable td.lb-team {
    white-space: normal; overflow: visible; text-overflow: clip; max-width: none;
  }
  .team-suggestions code { white-space: nowrap; }
  .team-suggestions { flex-wrap: wrap; }

  /* a leaderboard's filter bar folds under one summary bar (leaderboards.html); the rows stay at 13 px so a long name
     that wraps does not make each row three lines tall */
  details.lb-fold > .lb-fold-sum { display: flex; }
  .lb-fold-sum { align-items: baseline; justify-content: space-between; gap: 10px; list-style: none; padding: 12px 14px;
    border: var(--rule-frame) solid var(--txt); background: var(--bg-card); cursor: pointer; color: var(--txt);
    font-family: var(--font-h); font-stretch: 75%; font-size: 15px; font-weight: 800; letter-spacing: var(--ls-caps); text-transform: uppercase; }
  .lb-fold-sum::-webkit-details-marker { display: none; }
  .lb-fold-sum::after { content: '▾'; font-size: 14px; line-height: 1; align-self: center; transition: transform .15s; }
  details.lb-fold[open] > .lb-fold-sum::after { transform: rotate(180deg); }
  .lb-fold-now { flex: 1; min-width: 0; text-align: left; font-family: var(--font-base); font-stretch: 100%; font-size: 12.5px;
    font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--txt-mut); overflow-wrap: anywhere; }
  #lbTable td.lb-name, #lbTable td.lb-team { font-size: 13px; line-height: 1.25; }

  /* a szűrő-mezők a teljes sort kapják: a hosszú értékek (szezon, bajnokság, mutató) nem vágódnak le */
  .lb-controls > .lb-field, .lb-controls > .lb-pair { flex: 1 1 100%; }
  .lb-field { font-size: 11px; }
  /* the select keeps its value in full: the 110 px cap of the theme picker (≤720 px) and the inline min-width (NCAA page) cut it */
  .lb-controls .lb-select { width: 100%; max-width: none !important; min-width: 0 !important; }
  .lb-controls .lb-pair { display: flex; gap: 0; }
  .lb-controls .lb-pair > .lb-field { flex: 1 1 0; min-width: 0; }

  /* a ‘Hiányzó’ chip és a csapatnevek: szavanként törnek */
  .ob-team .nm { overflow-wrap: normal; }
  .ob-head { font-size: 11px; letter-spacing: .03em; line-height: 1.2; }

  /* a fejléc: a „Tippmix frissítése” kapcsoló neve látszik (telefonon a jelölőnégyzet egyedül nem mond semmit) */
  .auto-label span { display: inline; }

  /* ---- odds board: egy kártya meccsenként ---- */
  .ob-grid { --ob-cols: repeat(5, minmax(0, 1fr)); }
  .ob-head, .ob-game { grid-template-columns: var(--ob-cols); column-gap: 6px; row-gap: 0; padding-left: 12px; padding-right: 12px; }
  .ob-head .c-team, .ob-head .c-when, .ob-head .c-val, .ob-head .c-hc, .ob-head .c-tot { display: none; }
  .ob-head .c-odds { grid-column: 1; } .ob-head .c-mk { grid-column: 2; } .ob-head .c-mo { grid-column: 3; }
  .ob-head .c-bl { grid-column: 4; } .ob-head .c-wf { grid-column: 5; }
  .ob-game { font-size: 15px; padding-top: 10px; padding-bottom: 10px; }
  /* rows: 1 time · 2 verdict · 3 home name · 4 home figures · 5 away name · 6 away figures · 7 handicap · 8 total · 9 result */
  .ob-game > .ob-when { grid-column: 1 / -1; grid-row: 1; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  .ob-game > .ob-val { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; text-align: left; min-width: 0; margin-top: 4px; }
  .ob-game > .ob-val .ob-vt { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; text-align: left; }
  .ob-game > .ob-team { grid-column: 1 / -1; grid-row: 3; line-height: 1.25; padding: 2px 0 2px 10px; margin-top: 6px; }
  .ob-game > .ob-team.away { grid-row: 5; border-top: var(--rule-hair) solid var(--line); margin-top: 6px; padding-top: 8px; }
  .ob-game > .ob-n { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-end; gap: 0; min-width: 0; text-align: right; border: 0; margin: 0; padding: 0; }
  .ob-game > .ob-n small { font-size: 12px; min-width: 0; }
  .ob-game > .ob-odds { grid-column: 1; } .ob-game > .ob-mk { grid-column: 2; } .ob-game > .ob-mo { grid-column: 3; }
  .ob-game > .ob-bl { grid-column: 4; } .ob-game > .ob-wf { grid-column: 5; }
  .ob-game > .ob-n.home { grid-row: 4; }
  .ob-game > .ob-n.away { grid-row: 6; }
  .ob-game > .ob-hc { grid-column: 1 / -1; grid-row: 7; display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-top: 8px; padding-top: 8px; border-top: var(--rule-hair) solid var(--line); font-size: 13px; text-align: left; }
  .ob-game > .ob-tot { grid-column: 1 / -1; grid-row: 8; display: block; font-size: 13px; text-align: left; }
}
.gm-open .gm-when::after { content: "▾"; margin-left: 6px; color: var(--txt-dim); }
.gm-open[aria-expanded="true"] .gm-when::after { content: "▴"; }
a.gs-tl { color: inherit; text-decoration: none; }
a.gs-tl:hover { text-decoration: underline; }
a.gs-tl:focus-visible { outline: 2px solid var(--txt); outline-offset: 2px; }
