/* ==========================================================================
   LiveResult — "Pulse" redesign · kit styles
   100% token-driven (colors/type/spacing/motion from the design system).
   Bold rethink of layout & interactions; brand blue + status grammar intact.
   ========================================================================== */

:root {
  --container: 1400px;
  --rail-left: 244px;
  --rail-right: 320px;
  --gutter: 18px;
  --header-h: 60px;
  --ticker-h: 40px;
}

/* density knob (Tweaks) */
[data-density="compact"] { --row-pad-y: 5px; --row-min-h: 38px; }
[data-density="comfy"]   { --row-pad-y: 11px; --row-min-h: 52px; }

html, body { height: 100%; }
.app { min-height: 100%; display: flex; flex-direction: column; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
img { display: block; }

/* ==========================================================================
   Header
   ========================================================================== */
.hd {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.hd__bar {
  max-width: var(--container); margin: 0 auto;
  height: var(--header-h); padding: 0 20px;
  display: flex; align-items: center; gap: 18px;
}
.hd__logo { display: flex; align-items: center; gap: 9px; flex: none; }
.hd__logo img { width: 26px; height: 26px; }
.hd__word { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.hd__word b { color: var(--brand); font-weight: 800; }

/* header nav + dropdowns migrated to Tailwind utilities + daisyUI (see lr-chrome.jsx) */

/* ==========================================================================
   Auth (login / register) modal
   ========================================================================== */
.authov { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; background: color-mix(in srgb, #0a1422 62%, transparent); backdrop-filter: blur(4px); animation: authfade var(--dur) var(--ease); }
@keyframes authfade { from { opacity: 0; } to { opacity: 1; } }
.authcard { position: relative; width: 100%; max-width: 408px; max-height: calc(100vh - 40px); overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 28px 28px 22px; animation: authpop var(--dur) var(--ease); }
@keyframes authpop { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.authcard__x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--text-faint); transition: color var(--dur-fast), background var(--dur-fast); }
.authcard__x:hover { color: var(--text); background: var(--surface-sunken); }
.authcard__brand { display: flex; align-items: center; gap: 9px; }
.authcard__brand img { width: 26px; height: 26px; }
.authcard__title { margin: 16px 0 4px; font-size: var(--text-h1); font-weight: 800; letter-spacing: -0.02em; }
.authcard__sub { margin: 0 0 18px; font-size: var(--text-body-sm); color: var(--text-muted); }
.authtabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--surface-sunken); border-radius: var(--radius-md); margin-bottom: 18px; }
.authtab { padding: 9px; border-radius: var(--radius-sm); font-size: var(--text-body-sm); font-weight: 700; color: var(--text-muted); transition: color var(--dur-fast), background var(--dur-fast); }
.authtab:hover { color: var(--text); }
.authtab--on { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }

.authform { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__lbl { font-size: var(--text-caption); font-weight: 600; color: var(--text-muted); }
.field__wrap { display: flex; align-items: center; gap: 9px; padding: 0 12px; height: 44px; background: var(--surface-sunken); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-faint); transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast); }
.field__wrap:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); background: var(--surface); }
.field__wrap input { flex: 1; min-width: 0; border: none; background: none; outline: none; font: inherit; font-size: var(--text-body); color: var(--text); }
.field__eye { display: inline-flex; color: var(--text-faint); transition: color var(--dur-fast); }
.field__eye:hover { color: var(--text); }

.authrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-body-sm); color: var(--text-muted); cursor: pointer; user-select: none; }
.chk input { position: absolute; opacity: 0; width: 0; height: 0; }
.chk__box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--border-strong); display: inline-flex; align-items: center; justify-content: center; color: transparent; transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast); }
.chk input:checked + .chk__box { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chk input:focus-visible + .chk__box { box-shadow: 0 0 0 3px var(--brand-soft); }
.authlink { font-size: var(--text-body-sm); font-weight: 600; color: var(--brand); }
.authlink:hover { color: var(--accent-hover, var(--brand)); text-decoration: underline; }
.authsubmit { height: 46px; margin-top: 4px; font-size: var(--text-body); }

.authdiv { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--text-faint); font-size: var(--text-caption); }
.authdiv::before, .authdiv::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.authsoc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.socbtn { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); font-size: var(--text-body-sm); font-weight: 600; color: var(--text); transition: border-color var(--dur-fast), background var(--dur-fast); }
.socbtn:hover { border-color: var(--border-strong); background: var(--surface-sunken); }
.socbtn__mark { width: 24px; height: 24px; flex: none; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: var(--text-caption); }
.socbtn__lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.authfoot { margin: 18px 0 0; text-align: center; font-size: var(--text-body-sm); color: var(--text-muted); }
.authterms { margin: 12px 0 0; text-align: center; font-size: var(--text-caption); color: var(--text-faint); line-height: var(--leading-normal); }
.authterms a { color: var(--text-muted); text-decoration: underline; }

@media (max-width: 460px) {
  .authcard { padding: 24px 20px 18px; }
  .authsoc { grid-template-columns: 1fr; }
}

.hd__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hd__search {
  display: flex; align-items: center; gap: 9px; width: 248px;
  padding: 8px 12px; border-radius: var(--radius-md);
  background: var(--surface-sunken); color: var(--text-faint);
  border: 1px solid transparent; transition: border var(--dur-fast), background var(--dur-fast);
}
.hd__search:focus-within { background: var(--surface); border-color: var(--brand); color: var(--text); }
.hd__search input { flex: 1; min-width: 0; border: none; background: none; outline: none; color: var(--text); font-size: var(--text-body-sm); }
.hd__search input::placeholder { color: var(--text-faint); }
.hd__kbd { font-size: 11px; font-family: var(--font-mono); color: var(--text-faint); border: 1px solid var(--border-strong); border-radius: 4px; padding: 1px 5px; }

.iconbtn {
  width: 38px; height: 38px; border-radius: var(--radius-md);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: background var(--dur-fast), color var(--dur-fast);
}
.iconbtn:hover { background: var(--surface-sunken); color: var(--text); }
.iconbtn--badge { position: relative; }
.iconbtn--badge::after { content: ""; position: absolute; top: 9px; right: 10px; width: 6px; height: 6px; border-radius: 99px; background: var(--live); }

/* buttons migrated to daisyUI .btn / .btn-primary / .btn-lrsec (see lr-daisy-overrides.css) */

/* ==========================================================================
   Live ticker — the signature heartbeat strip
   ========================================================================== */
.ticker {
  position: sticky; top: var(--header-h); z-index: 35;
  height: var(--ticker-h);
  background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: stretch; overflow: hidden;
}
.ticker__tag {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 0 14px; font-size: var(--text-micro); font-weight: 700;
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: var(--brand-ink); background: var(--live);
  position: relative; z-index: 2;
}
.ticker__tag .live-dot { background: var(--brand-ink); }
.ticker__tag .live-dot::after { background: var(--brand-ink); }
.ticker__viewport { flex: 1; overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.ticker__track { display: flex; align-items: center; gap: 0; height: 100%; width: max-content; animation: lr-marquee 46s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.app[data-ticker="above"] .ticker { top: 0; border-top: none; border-bottom: 1px solid var(--border); }
.app[data-ticker="above"] .hd { top: var(--ticker-h); }
@keyframes lr-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tk {
  display: inline-flex; align-items: center; gap: 9px; height: 100%;
  padding: 0 16px; border-right: 1px solid var(--border);
  font-size: var(--text-caption); white-space: nowrap; transition: background var(--dur-fast);
}
.tk:hover { background: var(--surface-sunken); }
.tk__min { color: var(--live); font-weight: 700; font-variant-numeric: tabular-nums; width: 30px; }
.tk__team { color: var(--text-muted); font-weight: 500; }
.tk__sc { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ==========================================================================
   Layout grid
   ========================================================================== */
.layout {
  max-width: var(--container); margin: 0 auto; width: 100%;
  padding: 20px; display: grid; gap: var(--gutter);
  grid-template-columns: var(--rail-left) minmax(0, 1fr) var(--rail-right);
  align-items: start;
}
.main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.rail { display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--header-h) + var(--ticker-h) + 14px); }

/* ==========================================================================
   Cards / modules
   ========================================================================== */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.module__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; border-bottom: 1px solid var(--border);
}
.module__title { margin: 0; font-size: var(--text-micro); font-weight: 700; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text-muted); }
.module__action { font-size: var(--text-caption); font-weight: 600; }
.module__body { padding: 8px; }

/* page heading row */
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pagehead__l { display: flex; align-items: baseline; gap: 12px; }
.h1 { margin: 0; font-size: var(--text-h1); font-weight: 700; letter-spacing: -0.02em; }
.h2 { margin: 0; font-size: var(--text-h2); font-weight: 700; letter-spacing: -0.015em; }
.h3 { margin: 0; font-size: var(--text-h3); font-weight: 600; }
.sub { color: var(--text-muted); font-size: var(--text-body-sm); }

/* ==========================================================================
   Filter tabs + view toggle
   ========================================================================== */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filters { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--border); padding: 4px; border-radius: var(--radius-pill); }
.filter {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: var(--radius-pill);
  font-size: var(--text-body-sm); font-weight: 600; color: var(--text-muted);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.filter:hover { color: var(--text); }
.filter--on { background: var(--brand); color: var(--brand-ink); }
.filter--on:hover { color: var(--brand-ink); }
.filter--live.filter--on { background: var(--live); }
.filter__count { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 99px; background: color-mix(in srgb, currentColor 16%, transparent); font-variant-numeric: tabular-nums; }
.filter--on .filter__count { background: rgba(255,255,255,0.24); }

.viewtoggle { margin-left: auto; display: flex; gap: 3px; background: var(--surface); border: 1px solid var(--border); padding: 3px; border-radius: var(--radius-md); }
.viewtoggle button { width: 32px; height: 30px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-faint); }
.viewtoggle button:hover { color: var(--text); }
.viewtoggle button.on { background: var(--surface-sunken); color: var(--brand); }

/* ==========================================================================
   League group
   ========================================================================== */
.lg { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.lg + .lg { margin-top: 12px; }
.lg__head {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 14px; text-align: left; transition: background var(--dur-fast);
}
.lg__head:hover { background: var(--surface-sunken); }
.lg__chev { color: var(--text-faint); transition: transform var(--dur) var(--ease); display: inline-flex; }
.lg__chev--open { transform: rotate(90deg); }
.flagchip {
  flex: none; font-size: 9px; font-weight: 800; letter-spacing: 0.02em;
  color: var(--text-muted); background: var(--surface-sunken);
  border: 1px solid var(--border); border-radius: 4px; padding: 3px 5px; min-width: 30px; text-align: center;
}
.lg__country { font-weight: 600; font-size: var(--text-body-sm); }
.lg__name { font-weight: 600; font-size: var(--text-body-sm); color: var(--brand); }
.lg__sep { color: var(--text-faint); }
.lg__tier { font-size: var(--text-caption); color: var(--text-faint); }
.lg__count { margin-left: auto; font-size: var(--text-caption); font-weight: 700; color: var(--text-muted); background: var(--surface-sunken); border-radius: 99px; padding: 2px 9px; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Match row (list view)
   ========================================================================== */
.row {
  display: grid; align-items: center;
  grid-template-columns: 30px 56px minmax(0,1fr) 44px 64px auto auto;
  gap: 10px; padding: var(--row-pad-y) 14px; min-height: var(--row-min-h);
  border-top: 1px solid var(--border); position: relative;
  color: var(--text); transition: background var(--dur-fast);
}
.row:hover { background: var(--surface-sunken); }
.row--live::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--live); }
.row--pinned::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); }
.row__pin { color: var(--text-faint); width: 26px; height: 26px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; transition: color var(--dur-fast), background var(--dur-fast); }
.row__pin:hover { background: var(--surface); color: var(--brand); }
.row__pin--on { color: var(--brand); }
.row__pin--star.row__pin--on { color: var(--warn); }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-caption); font-weight: 700; font-variant-numeric: tabular-nums; }
.status--live { color: var(--live); }
.status--sched { color: var(--text-muted); font-weight: 600; }
.status--fin { color: var(--text-faint); }
.status--pst { color: var(--warn); font-weight: 600; }
.status__clock { font-family: var(--font-mono); font-size: 11px; }

.row__teams { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.team { display: flex; align-items: center; gap: 9px; min-width: 0; }
.logo { flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--surface-sunken); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; color: var(--text-muted); }
.logo.is-img { background: transparent; border: none; object-fit: contain; padding: 0; }
.sblogo.is-img { background: transparent; border: none; object-fit: contain; padding: 0; }
.team__name { font-weight: 600; font-size: var(--text-body-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team__name--win { color: var(--text); }
.team--lose .team__name { color: var(--text-muted); font-weight: 500; }
.redcard { width: 11px; height: 15px; border-radius: 2px; background: var(--loss); flex: none; }
.serve { width: 6px; height: 6px; border-radius: 99px; background: var(--goal); flex: none; }

.row__score { display: flex; flex-direction: column; gap: 3px; text-align: center; }
.sc { font-weight: 700; font-size: var(--text-body); font-variant-numeric: tabular-nums; line-height: 1.25; }
.sc--live { color: var(--goal); }
.sc--dim { color: var(--text-faint); font-weight: 600; }

.spark { width: 64px; height: 26px; display: block; }
.spark--full { width: 100%; height: 46px; display: block; }

.row__tail { display: flex; align-items: center; gap: 10px; }
.acts { display: flex; gap: 2px; }
.act { width: 26px; height: 26px; border-radius: 6px; color: var(--text-faint); display: inline-flex; align-items: center; justify-content: center; transition: color var(--dur-fast), background var(--dur-fast); }
.act:hover { background: var(--surface); color: var(--brand); }

/* odds */
.odds { display: flex; gap: 4px; }
.odd { display: flex; flex-direction: column; align-items: center; gap: 1px; width: 48px; padding: 5px 0; border-radius: 7px; background: var(--surface-sunken); border: 1px solid transparent; transition: border var(--dur-fast), background var(--dur-fast); }
.odd:hover { border-color: var(--brand); background: var(--brand-soft); }
.odd__k { font-size: 10px; color: var(--text-faint); font-weight: 600; }
.odd__v { font-size: var(--text-caption); font-weight: 700; font-variant-numeric: tabular-nums; }
.odd--up .odd__v { color: var(--positive); }
.odd--down .odd__v { color: var(--negative); }
.odds__more { width: 38px; border-radius: 7px; background: var(--surface-sunken); color: var(--text-muted); font-size: var(--text-caption); font-weight: 700; font-variant-numeric: tabular-nums; }
.odds__more:hover { color: var(--brand); }

/* ==========================================================================
   Match card (grid view)
   ========================================================================== */
.board--grid .lg__body { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; padding: 12px; }
.board--grid .row { display: none; }
.mc {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 12px; position: relative; transition: border-color var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast);
}
.mc:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.mc--live { border-color: color-mix(in srgb, var(--live) 35%, var(--border)); }
.mc__top { display: flex; align-items: center; justify-content: space-between; }
.mc__pin { color: var(--text-faint); }
.mc__pin--on { color: var(--brand); }
.mc__teams { display: flex; flex-direction: column; gap: 7px; }
.mc__row { display: flex; align-items: center; gap: 9px; }
.mc__sc { margin-left: auto; font-weight: 700; font-size: var(--text-h3); font-variant-numeric: tabular-nums; }
.mc__sc--live { color: var(--goal); }
.mc__foot { display: flex; align-items: center; gap: 8px; padding-top: 9px; border-top: 1px solid var(--border); }

/* board (list) wrapper visibility */
.board--list .mc { display: none; }

/* empty state */
.empty { padding: 48px 24px; text-align: center; color: var(--text-muted); }
.empty__t { font-weight: 600; margin-bottom: 4px; color: var(--text); }

/* ==========================================================================
   Watchstrip — pinned multi-match watch bar (signature interaction)
   ========================================================================== */
.watch {
  position: sticky; bottom: 0; z-index: 38;
  background: color-mix(in srgb, var(--elevated) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-top: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.watch__inner { max-width: var(--container); margin: 0 auto; padding: 9px 20px; display: flex; align-items: center; gap: 14px; }
.watch__label { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-micro); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--text-muted); flex: none; }
.watch__items { display: flex; gap: 8px; overflow-x: auto; flex: 1; padding-bottom: 2px; }
.wpin {
  display: flex; align-items: center; gap: 10px; flex: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 7px 10px; min-width: 184px; position: relative;
}
.wpin--live { border-color: color-mix(in srgb, var(--live) 40%, var(--border)); }
.wpin__col { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.wpin__t { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--text-caption); }
.wpin__nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wpin__sc { font-weight: 700; font-variant-numeric: tabular-nums; }
.wpin__min { font-size: 10px; font-weight: 700; color: var(--live); font-variant-numeric: tabular-nums; flex: none; }
.wpin__x { color: var(--text-faint); width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.wpin__x:hover { background: var(--surface-sunken); color: var(--text); }

/* ==========================================================================
   News
   ========================================================================== */
.newsgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.news { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform var(--dur-fast), box-shadow var(--dur-fast), border-color var(--dur-fast); }
.news:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.news__thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--surface-sunken), var(--brand-soft)); position: relative; }
.news__thumb::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 11px, color-mix(in srgb, var(--brand) 5%, transparent) 11px 12px); }
.news__chip { position: absolute; top: 10px; left: 10px; z-index: 1; font-size: var(--text-micro); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--brand-ink); background: var(--brand); padding: 4px 9px; border-radius: var(--radius-sm); }
.news__body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.news__title { margin: 0; font-size: var(--text-h3); font-weight: 700; line-height: var(--leading-tight); letter-spacing: -0.01em; text-wrap: pretty; }
.news__excerpt { margin: 0; font-size: var(--text-body-sm); color: var(--text-muted); line-height: var(--leading-normal); }
.news__meta { margin-top: auto; font-size: var(--text-caption); color: var(--text-faint); }
.news--feat { grid-column: 1 / -1; flex-direction: row; }
.news--feat .news__thumb { flex: 0 0 46%; aspect-ratio: auto; }
.news--feat .news__body { justify-content: center; gap: 10px; padding: 22px 24px; }
.news--feat .news__title { font-size: var(--text-h2); }
.news--row { flex-direction: row; align-items: stretch; gap: 0; border: none; border-radius: 0; }
.news--row:hover { transform: none; box-shadow: none; background: var(--surface-sunken); }
.news--row .news__thumb { flex: 0 0 86px; aspect-ratio: 1; border-radius: var(--radius-md); }
.news--row .news__body { padding: 2px 0 2px 11px; gap: 4px; }
.news--row .news__title { font-size: var(--text-body-sm); font-weight: 600; }
.newscat { display: inline-block; align-self: flex-start; font-size: var(--text-micro); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--brand); }

/* ==========================================================================
   News page — top stories + per-sport blocks
   ========================================================================== */
.newspage { display: flex; flex-direction: column; gap: 26px; }
.ntop { display: grid; grid-template-columns: 1.45fr 1fr; gap: 18px; align-items: start; }
.nfeat { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow var(--dur-fast), border-color var(--dur-fast); }
.nfeat:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.nfeat__thumb { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--surface-sunken), var(--brand-soft)); overflow: hidden; }
.nfeat__thumb img { width: 100%; height: 100%; object-fit: cover; }
.nfeat__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 9px; }
.nfeat__title { margin: 0; font-size: var(--text-h2); font-weight: 700; line-height: var(--leading-tight); letter-spacing: -0.015em; text-wrap: pretty; }
.nfeat__excerpt { margin: 0; font-size: var(--text-body); color: var(--text-muted); line-height: var(--leading-normal); }

.nlist { display: flex; flex-direction: column; }
.nlist__body { display: flex; flex-direction: column; }
.nlink { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 14px; border-top: 1px solid var(--border); transition: background var(--dur-fast); }
.nlink:first-child { border-top: none; }
.nlink:hover { background: var(--surface-sunken); }
.nlink__cat { grid-column: 1 / -1; font-size: var(--text-micro); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--brand); }
.nlink__title { font-size: var(--text-body-sm); font-weight: 600; line-height: var(--leading-snug); text-wrap: pretty; }
.nlink__time { font-size: var(--text-caption); color: var(--text-faint); white-space: nowrap; align-self: end; }

.nsec { display: flex; flex-direction: column; gap: 14px; }
.nsec__hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.nsec__title { margin: 0; font-size: var(--text-h2); font-weight: 700; letter-spacing: -0.015em; position: relative; padding-left: 13px; }
.nsec__title::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 0.8em; border-radius: 2px; background: var(--brand); }
.nsec__all { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-body-sm); font-weight: 600; white-space: nowrap; }
.ngrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: 16px; }
.ncard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform var(--dur-fast), box-shadow var(--dur-fast), border-color var(--dur-fast); }
.ncard:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.ncard__thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--surface-sunken), var(--brand-soft)); overflow: hidden; }
.ncard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ncard__body { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ncard__title { margin: 0; font-size: var(--text-body-sm); font-weight: 600; line-height: var(--leading-snug); text-wrap: pretty; }
.ncard__time { margin-top: auto; display: inline-flex; align-items: center; gap: 5px; font-size: var(--text-caption); color: var(--text-faint); }

@media (max-width: 760px) {
  .ntop { grid-template-columns: 1fr; }
  .nfeat__title { font-size: var(--text-h3); }
}

/* ==========================================================================
   Tips / Predictions page
   ========================================================================== */
.tipspage { display: flex; flex-direction: column; gap: 18px; }
.tipfilters { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.chiprow { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 13px; border-radius: var(--radius-pill); font-size: var(--text-body-sm); font-weight: 600; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); transition: color var(--dur-fast), background var(--dur-fast), border-color var(--dur-fast); }
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip--on { color: var(--brand-ink); background: var(--brand); border-color: var(--brand); }
.tipfilters__odds { display: flex; align-items: center; gap: 10px; }
.tipfilters__lbl { font-size: var(--text-caption); color: var(--text-faint); font-weight: 600; }
.tipfilters__odds .seg { margin-left: 0; }

/* match of the day */
.tipfeat { display: grid; grid-template-columns: 300px 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow var(--dur-fast), border-color var(--dur-fast); }
.tipfeat:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.tipfeat__thumb { position: relative; background: linear-gradient(135deg, var(--surface-sunken), var(--brand-soft)); overflow: hidden; min-height: 184px; }
.tipfeat__thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.tipfeat__body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.tipfeat__tour { font-size: var(--text-micro); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--text-faint); }
.tipfeat__title { margin: 0; font-size: var(--text-h2); font-weight: 700; letter-spacing: -0.015em; }
.tipfeat__excerpt { margin: 0; font-size: var(--text-body-sm); color: var(--text-muted); line-height: var(--leading-normal); }
.tipfeat__foot { margin-top: auto; display: flex; align-items: center; gap: 14px; padding-top: 6px; }
.tipfeat__pick { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-body-sm); font-weight: 600; color: var(--goal); }
.tipfeat__time { display: inline-flex; align-items: center; gap: 5px; font-size: var(--text-caption); color: var(--text-faint); }
.tipfeat__odd { margin-left: auto; font-family: var(--font-mono, monospace); font-size: var(--text-h3); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--brand-ink); background: var(--brand); padding: 6px 14px; border-radius: var(--radius-md); }

/* grouped tip rows */
.tipgroup { display: flex; flex-direction: column; gap: 10px; }
.tipgroup__hd { display: flex; align-items: center; gap: 9px; }
.tipgroup__day { margin: 0; font-size: var(--text-h3); font-weight: 700; letter-spacing: -0.01em; }
.tipgroup__n { font-size: var(--text-caption); font-weight: 700; color: var(--text-muted); background: var(--surface-sunken); border-radius: var(--radius-pill); padding: 2px 9px; }
.tiplist { display: flex; flex-direction: column; }
.tip2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--border); transition: background var(--dur-fast); }
.tip2:first-child { border-top: none; }
.tip2:hover { background: var(--surface-sunken); }
.tip2__teams { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tip2__flags { display: inline-flex; }
.tip2__flag { width: 26px; height: 18px; border-radius: 3px; }
.tip2__flag + .tip2__flag { margin-left: -7px; box-shadow: -2px 0 0 var(--surface); }
.tip2:hover .tip2__flag + .tip2__flag { box-shadow: -2px 0 0 var(--surface-sunken); }
.tip2__match { font-size: var(--text-body-sm); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tip2__pick { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: var(--text-body-sm); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tip2__pick > svg { flex: none; color: var(--goal); }
.tip2__meta { font-size: var(--text-caption); color: var(--text-faint); white-space: nowrap; text-align: right; }
.tip2__sport { color: var(--text-muted); font-weight: 600; }
.tip2__odd { font-family: var(--font-mono, monospace); font-size: var(--text-body); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--brand); background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); padding: 5px 11px; border-radius: var(--radius-md); min-width: 56px; text-align: center; }
.tipnote { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: var(--text-caption); color: var(--text-faint); }
.tipnote > svg { flex: none; }

@media (max-width: 760px) {
  .tipfeat { grid-template-columns: 1fr; }
  .tipfeat__thumb { aspect-ratio: 16/9; min-height: 0; }
  .tip2 { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .tip2__pick { grid-column: 1; }
  .tip2__meta { grid-column: 1; text-align: left; }
  .tip2__odd { grid-row: 1 / 3; grid-column: 2; align-self: center; }
  .tipfilters { flex-direction: column; align-items: stretch; }
}

/* tips left rail — sport menu */
.module__head--dark { background: var(--rail-head, #2f3b4c); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.module__head--dark .module__title { color: #fff; }
.tsport { border-top: 1px solid var(--border); }
.tsport:first-child { border-top: none; }
.tsport__hd { display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px 14px; transition: background var(--dur-fast); }
.tsport__hd:hover { background: var(--surface-sunken); }
.tsport__ic { color: var(--text-muted); display: inline-flex; }
.tsport--open .tsport__ic { color: var(--brand); }
.tsport__nm { flex: 1; text-align: left; font-size: var(--text-body-sm); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.tsport--open .tsport__nm { color: var(--brand); }
.tsport__pm { width: 20px; height: 20px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; line-height: 1; color: var(--brand); background: var(--brand-soft); }
.tsport__body { padding: 2px 14px 12px; display: flex; flex-direction: column; }
.tsport__lnk { padding: 8px 6px; font-size: var(--text-body-sm); color: var(--text); line-height: var(--leading-snug); border-radius: var(--radius-sm); transition: background var(--dur-fast), color var(--dur-fast); }
.tsport__lnk:hover { background: var(--surface-sunken); color: var(--brand); }
.tsub { margin: 8px 0; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.tsub__hd { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 9px 12px; font-size: var(--text-body-sm); font-weight: 600; background: var(--surface-sunken); }
.tsub__hd .tchev { color: var(--text-faint); display: inline-flex; transition: transform var(--dur) var(--ease); }
.tsub--open .tsub__hd .tchev { transform: rotate(180deg); }
.tsub__body { display: flex; flex-direction: column; padding: 4px; }
.tsub__lnk { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px; font-size: var(--text-body-sm); font-weight: 500; color: var(--brand); border-radius: var(--radius-sm); transition: background var(--dur-fast); }
.tsub__lnk:hover { background: var(--surface-sunken); }
.tsub__lnk > svg { color: var(--text-faint); }
.tsport__teams { padding: 9px 6px; font-size: var(--text-body-sm); color: var(--text-muted); border-radius: var(--radius-sm); transition: background var(--dur-fast), color var(--dur-fast); }
.tsport__teams:hover { background: var(--surface-sunken); color: var(--text); }
.tquick { display: flex; flex-direction: column; padding: 4px; }
.tquick__lnk { padding: 12px 12px; font-size: var(--text-body-sm); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--brand); border-radius: var(--radius-md); border-top: 1px solid var(--border); line-height: var(--leading-snug); transition: background var(--dur-fast); }
.tquick__lnk:first-child { border-top: none; }
.tquick__lnk:hover { background: var(--brand-soft); }
[data-theme="dark"] .module__head--dark { background: #0d1828; }

/* ==========================================================================
   Bookmaker ratings page
   ========================================================================== */
.bkpage { display: flex; flex-direction: column; gap: 16px; }
.bkintro { margin: 0; font-size: var(--text-body); color: var(--text-muted); line-height: var(--leading-normal); max-width: 78ch; }
.bklist { display: flex; flex-direction: column; gap: 12px; }
.bkr { display: grid; grid-template-columns: 46px minmax(0, 1fr) 234px; grid-template-areas: "rank id promo" "rank metrics promo"; align-items: center; column-gap: 18px; row-gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; transition: box-shadow var(--dur-fast), border-color var(--dur-fast); }
.bkr:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.bkr--top { border-color: color-mix(in srgb, var(--brand) 30%, var(--border)); }
.bkr__rank { grid-area: rank; display: flex; align-items: center; justify-content: center; }
.bkr__rank span { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: var(--text-h3); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text-muted); background: var(--surface-sunken); }
.bkr--top .bkr__rank span { color: var(--brand-ink); background: var(--brand); }

.bkr__id { grid-area: id; display: flex; gap: 13px; align-items: flex-start; min-width: 0; }
.bkr__logo { flex: none; width: 46px; height: 46px; border-radius: var(--radius-md); display: inline-flex; align-items: center; justify-content: center; font-size: var(--text-body); font-weight: 800; color: #fff; }
.bkr__idtext { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bkr__name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--text-h3); font-weight: 700; letter-spacing: -0.01em; }
.bktag { font-size: var(--text-micro); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-wide); padding: 2px 7px; border-radius: var(--radius-pill); }
.bktag--legal { color: var(--goal); background: var(--goal-bg, color-mix(in srgb, var(--goal) 14%, transparent)); }
.bktag--off { color: var(--warn); background: color-mix(in srgb, var(--warn) 15%, transparent); }
.bkr__sub { font-size: var(--text-caption); color: var(--text-faint); }
.bkstars { display: inline-flex; align-items: center; gap: 7px; margin-top: 2px; }
.bkstars__row { display: inline-flex; color: var(--warn); }
.bkstars b { font-size: var(--text-body-sm); font-weight: 700; font-variant-numeric: tabular-nums; }

.bkr__metrics { grid-area: metrics; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 16px; }
.bkmetric { display: flex; flex-direction: column; gap: 5px; }
.bkmetric__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.bkmetric__lbl { font-size: var(--text-caption); color: var(--text-muted); }
.bkmetric__v { font-size: var(--text-caption); font-weight: 700; font-variant-numeric: tabular-nums; }
.bkmetric__bar { height: 5px; border-radius: 99px; background: var(--surface-sunken); overflow: hidden; }
.bkmetric__bar > span { display: block; height: 100%; border-radius: 99px; background: var(--brand); }

.bkr__promo { grid-area: promo; align-self: stretch; display: flex; flex-direction: column; gap: 10px; padding-left: 18px; border-left: 1px solid var(--border); justify-content: center; }
.bkr__promohd { display: flex; align-items: center; gap: 11px; }
.bkr__mark { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; padding: 7px 4px; border-radius: var(--radius-md); background: var(--brand-soft); }
.bkr__mark b { font-size: var(--text-h2); font-weight: 800; line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; }
.bkr__mark i { font-style: normal; font-size: 9px; text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--text-faint); margin-top: 3px; }
.bkr__promobody { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bkr__bonus { font-size: var(--text-body-sm); font-weight: 700; color: var(--text); line-height: var(--leading-snug); }
.bkr__tagline { font-size: var(--text-caption); color: var(--text-muted); line-height: var(--leading-snug); }
.bkr__cta { display: flex; flex-direction: column; gap: 7px; }
.bkr__ad { font-size: var(--text-micro); color: var(--text-faint); text-transform: uppercase; letter-spacing: var(--tracking-wide); text-align: center; }

@media (max-width: 1000px) {
  .bkr { grid-template-columns: 44px 1fr; grid-template-areas: "rank id" "metrics metrics" "promo promo"; align-items: start; row-gap: 14px; }
  .bkr__promo { padding-left: 0; border-left: none; border-top: 1px solid var(--border); padding-top: 14px; }
  .bkr__promohd { justify-content: flex-start; }
  .bkr__cta { flex-direction: row; }
  .bkr__cta .btn { flex: 1; }
}
@media (max-width: 560px) {
  .bkr__metrics { grid-template-columns: 1fr; }
  .bkr__cta { flex-direction: column; }
}

/* ==========================================================================
   Teams & Players — lists + detail pages
   ========================================================================== */
.listpage, .detail { display: flex; flex-direction: column; gap: 16px; }
.crest { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: var(--text-muted); background: var(--surface-sunken); border-radius: 6px; }
.crest.is-img { background: transparent; object-fit: contain; }
.crest--lg { width: 64px; height: 64px; font-size: var(--text-h2); }
.cflag { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; flex: none; }

/* teams grid */
.tcardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; }
.tcard { display: flex; align-items: center; gap: 12px; padding: 13px 15px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); text-align: left; transition: transform var(--dur-fast), box-shadow var(--dur-fast), border-color var(--dur-fast); }
.tcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.tcard__logo { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-sunken); border-radius: var(--radius-md); }
.tcard__logo .crest { width: 30px; height: 30px; background: transparent; }
.tcard__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tcard__name { font-size: var(--text-body); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard__country { display: flex; align-items: center; gap: 6px; font-size: var(--text-caption); color: var(--text-faint); }
.tcard__fans { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-caption); font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.tcard__fans > svg { color: var(--warn); }

/* fan club */
.fanbtn { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: var(--radius-pill); font-size: var(--text-caption); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-muted); background: var(--surface-sunken); border: 1px solid transparent; transition: color var(--dur-fast), background var(--dur-fast), border-color var(--dur-fast); }
.fanbtn > svg { color: var(--text-faint); transition: color var(--dur-fast), transform var(--dur-fast); }
.fanbtn:hover { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.fanbtn:hover > svg { color: var(--warn); }
.fanbtn--on { color: var(--warn); background: color-mix(in srgb, var(--warn) 13%, transparent); }
.fanbtn--on > svg { color: var(--warn); transform: scale(1.05); }
.pcard .fanbtn { margin-top: 4px; }

.fancta { display: flex; align-items: center; gap: 12px; margin: 4px 0 2px; }
.fancta__btn { display: inline-flex; align-items: center; gap: 7px; }
.fancta__btn--on { color: var(--warn) !important; border-color: color-mix(in srgb, var(--warn) 45%, transparent) !important; }
.fancta__btn--on > svg { color: var(--goal); }
.fancta__count { font-size: var(--text-body-sm); color: var(--text-muted); }
.fancta__count b { font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }

/* players grid */
.pcardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.pcard { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 14px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); text-align: center; transition: transform var(--dur-fast), box-shadow var(--dur-fast), border-color var(--dur-fast); }
.pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.pcard__photo { position: relative; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--surface-sunken); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.pcard__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard__photo .pcard__badge { position: absolute; inset: auto 2px 2px auto; width: 26px; height: 26px; border-radius: 50%; object-fit: contain; background: #fff; padding: 2px; box-shadow: var(--shadow-sm); }
.pcard__ph { font-size: var(--text-h2); font-weight: 800; color: var(--text-faint); }
.pcard__ph--lg { font-size: 46px; }
.pcard__name { font-size: var(--text-body-sm); font-weight: 700; line-height: var(--leading-snug); }
.pcard__club { font-size: var(--text-caption); color: var(--text-faint); }
.pcard__fans { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: var(--text-caption); font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.pcard__fans > svg { color: var(--warn); }

/* detail */
.backlink { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; font-size: var(--text-body-sm); font-weight: 600; color: var(--text-muted); padding: 4px 2px; transition: color var(--dur-fast); }
.backlink:hover { color: var(--brand); }

/* list search + pagination */
.lsearch { display: flex; align-items: center; gap: 8px; min-width: 240px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); color: var(--text-faint); transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.lsearch:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.lsearch input { flex: 1; min-width: 0; border: none; background: none; outline: none; font-size: var(--text-body-sm); color: var(--text); }
.lsearch input::placeholder { color: var(--text-faint); }
.lsearch__clr { display: inline-flex; color: var(--text-faint); border-radius: 50%; padding: 1px; transition: color var(--dur-fast); }
.lsearch__clr:hover { color: var(--loss); }
.lempty { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 48px 16px; color: var(--text-faint); font-size: var(--text-body); }
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 4px; }
.pager__btn, .pager__num { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-md); font-size: var(--text-body-sm); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); transition: color var(--dur-fast), background var(--dur-fast), border-color var(--dur-fast); }
.pager__btn:hover:not(:disabled), .pager__num:hover { border-color: var(--border-strong); color: var(--text); }
.pager__btn:disabled { opacity: 0.4; cursor: default; }
.pager__num--on { color: var(--brand-ink); background: var(--brand); border-color: var(--brand); }
.dhero { display: flex; gap: 22px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 24px; }
.dhero__crest { flex: none; width: 88px; height: 88px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-sunken); border-radius: var(--radius-lg); }
.dhero__crest .crest { background: transparent; }
.dhero__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dhero__name { display: flex; align-items: center; gap: 10px; font-size: var(--text-h1); font-weight: 800; letter-spacing: -0.02em; }
.dhero__sub { display: flex; align-items: center; gap: 8px; font-size: var(--text-body); color: var(--text-muted); }
.dhero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.dchip { display: flex; flex-direction: column; gap: 2px; padding: 7px 12px; background: var(--surface-sunken); border-radius: var(--radius-md); }
.dchip i { font-style: normal; font-size: var(--text-micro); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--text-faint); }
.dchip b { font-size: var(--text-body-sm); font-weight: 700; }

/* player hero photo */
.phero__photo { position: relative; flex: none; width: 116px; height: 116px; border-radius: 50%; overflow: hidden; background: var(--surface-sunken); display: inline-flex; align-items: center; justify-content: center; }
.phero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phero__num { font-size: var(--text-body-sm); font-weight: 800; color: var(--brand); letter-spacing: var(--tracking-wide); }
.phero__club { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; margin-left: 4px; }
.phero__stats { display: flex; gap: 22px; margin-top: 12px; }
.statbig { display: flex; flex-direction: column; gap: 2px; }
.statbig b { font-size: var(--text-h1); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.statbig i { font-style: normal; font-size: var(--text-caption); color: var(--text-faint); }

/* detail panels */
.dgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dpanel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.dpanel--wide { grid-column: 1 / -1; }
.dpanel__hd { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.dpanel__hd > svg { color: var(--brand); }
.dpanel__hd h3 { margin: 0; font-size: var(--text-body); font-weight: 700; }
.dpanel__body { display: flex; flex-direction: column; }
.drow { display: flex; align-items: center; gap: 11px; padding: 10px 16px; border-top: 1px solid var(--border); font-size: var(--text-body-sm); }
.drow:first-child { border-top: none; }
.drow__ha { width: 18px; text-align: center; font-size: var(--text-caption); font-weight: 700; color: var(--text-faint); }
.drow__opp { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drow__sc { font-variant-numeric: tabular-nums; font-weight: 700; }
.drow__meta { font-size: var(--text-caption); color: var(--text-faint); white-space: nowrap; }
.drow__date { width: 46px; font-size: var(--text-caption); color: var(--text-muted); font-weight: 600; }
.drow__time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--brand); }

.squadgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 18px; padding: 8px 16px 14px; }
.sqrow { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.sqrow__n { width: 24px; text-align: center; font-weight: 800; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.sqrow__nm { flex: 1; min-width: 0; font-size: var(--text-body-sm); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sqrow__pos { font-size: var(--text-micro); font-weight: 700; color: var(--text-faint); background: var(--surface-sunken); padding: 2px 7px; border-radius: var(--radius-sm); }

.infogrid { display: grid; grid-template-columns: 1fr; gap: 0; padding: 6px 16px 12px; }
.inforow { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: var(--text-body-sm); }
.inforow__k { color: var(--text-faint); white-space: nowrap; }
.inforow__v { font-weight: 600; text-align: right; }
.careerstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px; }
.careerstats .statbig { align-items: center; text-align: center; gap: 4px; }
.careerstats .statbig b { font-size: var(--text-h2); color: var(--brand); }
.careerrow { display: grid; grid-template-columns: 1.4fr 1fr auto auto; align-items: center; gap: 14px; padding: 11px 16px; border-top: 1px solid var(--border); font-size: var(--text-body-sm); }
.careerrow:first-child { border-top: none; }
.careerrow__club { font-weight: 700; }
.careerrow__years { color: var(--text-faint); font-size: var(--text-caption); }
.careerrow__apps { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.careerrow__goals { font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.careerrow__goals i { font-style: normal; font-weight: 500; color: var(--text-faint); font-size: var(--text-caption); }

/* player detail — latin name, season table, match rows, bio */
.phero__lat { font-size: var(--text-h3); font-weight: 600; color: var(--text-faint); letter-spacing: -0.01em; }
.sstats { overflow-x: auto; }
.ptable { width: 100%; border-collapse: collapse; font-size: var(--text-body-sm); }
.ptable th { padding: 9px 8px; font-size: var(--text-micro); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--text-faint); font-weight: 700; text-align: center; border-bottom: 1px solid var(--border); white-space: nowrap; }
.ptable th.l, .ptable td.l { text-align: left; padding-left: 16px; }
.ptable td { padding: 9px 8px; text-align: center; font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--border); white-space: nowrap; }
.ptable td.l { font-weight: 600; white-space: normal; min-width: 150px; }
.ptable td.g { font-weight: 800; color: var(--brand); }
.ptable__tot td { font-weight: 800; border-bottom: none; background: var(--surface-sunken); }
.ptable__tot td.l { color: var(--text); }

.mrow { display: grid; grid-template-columns: 80px 1fr auto 1fr 44px 44px; align-items: center; gap: 10px; padding: 9px 16px; border-top: 1px solid var(--border); font-size: var(--text-body-sm); }
.mrow:first-child { border-top: none; }
.mrow__date { font-size: var(--text-caption); color: var(--text-faint); font-variant-numeric: tabular-nums; }
.mt { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mt--h { justify-content: flex-end; text-align: right; }
.mt--a { justify-content: flex-start; }
.mt__nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.mt__b { width: 20px; height: 20px; object-fit: contain; flex: none; border-radius: 3px; }
.mrow__sc { font-weight: 800; font-variant-numeric: tabular-nums; padding: 2px 8px; background: var(--surface-sunken); border-radius: var(--radius-sm); }
.mrow__min { font-size: var(--text-caption); color: var(--text-muted); font-variant-numeric: tabular-nums; text-align: right; }
.mrow__g { display: inline-flex; align-items: center; gap: 3px; justify-content: center; font-weight: 800; color: var(--goal); font-variant-numeric: tabular-nums; }
.mrow__g--0 { color: transparent; }

.bio { padding: 14px 16px; display: flex; flex-direction: column; gap: 11px; }
.bio p { margin: 0; font-size: var(--text-body-sm); line-height: var(--leading-relaxed); color: var(--text-muted); text-wrap: pretty; }

/* graphical pitch position — horizontal, all 11 role presets */
.ppos { padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ppitch { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius-md); border: 2px solid var(--border-strong); overflow: hidden; background:
  repeating-linear-gradient(90deg, var(--surface-sunken) 0 10%, color-mix(in srgb, var(--surface-sunken) 55%, var(--surface)) 10% 20%); }
.ppitch__line { position: absolute; background: var(--border-strong); opacity: 0.7; }
.ppitch__mid { top: 0; bottom: 0; left: 50%; width: 2px; }
.ppitch__circle { position: absolute; left: 50%; top: 50%; width: 26%; height: 38%; transform: translate(-50%, -50%); border: 2px solid var(--border-strong); border-radius: 50%; opacity: 0.55; }
.ppitch__box { position: absolute; top: 50%; transform: translateY(-50%); width: 15%; height: 58%; border: 2px solid var(--border-strong); opacity: 0.5; }
.ppitch__box--l { left: 0; border-left: none; border-radius: 0 8px 8px 0; }
.ppitch__box--r { right: 0; border-right: none; border-radius: 8px 0 0 8px; }
.ppitch__six { position: absolute; top: 50%; transform: translateY(-50%); width: 6%; height: 30%; border: 2px solid var(--border-strong); opacity: 0.45; }
.ppitch__six--l { left: 0; border-left: none; border-radius: 0 6px 6px 0; }
.ppitch__six--r { right: 0; border-right: none; border-radius: 6px 0 0 6px; }
.pdot { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: var(--text-body-sm); font-variant-numeric: tabular-nums; z-index: 2; background: var(--elevated); color: var(--text-muted); border: 1.5px solid var(--border-strong); box-shadow: var(--shadow-sm); cursor: default; transition: transform var(--dur-fast); }
.pdot:hover { transform: translate(-50%, -50%) scale(1.12); z-index: 3; }
.pdot--on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); width: 34px; height: 34px; box-shadow: 0 0 0 4px var(--brand-soft), var(--shadow-md); z-index: 4; }
.ppos__lbl { text-align: center; line-height: var(--leading-snug); }
.ppos__lbl b { display: block; font-size: var(--text-body); font-weight: 700; margin-bottom: 4px; }
.ppos__lbl i { display: block; font-style: normal; font-size: var(--text-caption); color: var(--text-faint); }

/* comments / discussion */
.comments { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 16px; }
.cform { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; }
.cavatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: var(--text-caption); font-weight: 800; color: var(--text-muted); background: var(--surface-sunken); }
.cavatar--me { background: var(--brand); color: var(--brand-ink); }
.cform__ta { resize: vertical; min-height: 42px; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-sunken); font: inherit; font-size: var(--text-body-sm); color: var(--text); outline: none; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.cform__ta:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); background: var(--surface); }
.cform__send { align-self: end; }
.clist { display: flex; flex-direction: column; }
.citem { display: grid; grid-template-columns: auto 1fr; gap: 11px; padding: 13px 0; border-top: 1px solid var(--border); }
.citem:first-child { border-top: none; }
.citem__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.citem__hd { display: flex; align-items: baseline; gap: 9px; }
.citem__hd b { font-size: var(--text-body-sm); font-weight: 700; }
.citem__hd span { font-size: var(--text-caption); color: var(--text-faint); }
.citem__text { margin: 0; font-size: var(--text-body-sm); line-height: var(--leading-normal); color: var(--text); text-wrap: pretty; }
.clike { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; font-size: var(--text-caption); font-weight: 700; color: var(--text-faint); font-variant-numeric: tabular-nums; transition: color var(--dur-fast); }
.clike:hover { color: var(--warn); }
.clike > svg { color: var(--warn); }

@media (max-width: 560px) {
  .cform { grid-template-columns: 1fr; }
  .cform .cavatar { display: none; }
}

@media (max-width: 700px) {
  .mrow { grid-template-columns: 1fr auto 1fr 38px; gap: 8px; }
  .mrow__date { display: none; }
  .mrow__min { display: none; }
  .phero__lat { display: block; font-size: var(--text-body); }
}

@media (max-width: 820px) {
  .dgrid { grid-template-columns: 1fr; }
  .dhero { flex-direction: column; text-align: center; align-items: center; }
  .dhero__main { align-items: center; }
  .dhero__sub, .dhero__name { justify-content: center; flex-wrap: wrap; }
  .infogrid { grid-template-columns: 1fr; }
  .careerstats { grid-template-columns: repeat(2, 1fr); }
  .careerrow { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .careerrow__years { grid-column: 1; }
  .careerrow__apps { display: none; }
}

/* ==========================================================================
   Left / right rail content
   ========================================================================== */
.navlist { display: flex; flex-direction: column; gap: 1px; }
.navlink { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: var(--radius-md); font-size: var(--text-body-sm); font-weight: 500; color: var(--text); transition: background var(--dur-fast), color var(--dur-fast); }
.navlink:hover { background: var(--surface-sunken); color: var(--text); }
.navlink--on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.navlink__ic { width: 30px; height: 30px; border-radius: 8px; background: var(--surface-sunken); display: inline-flex; align-items: center; justify-content: center; color: var(--text-muted); flex: none; }
.navlink--on .navlink__ic { background: var(--brand); color: var(--brand-ink); }
.navlink__count { margin-left: auto; font-size: var(--text-caption); font-weight: 700; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.navlink__count--live { color: var(--live); }
.navlink__flag { width: 30px; }
.tnav { gap: 8px; }
.tnav__nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tstar { flex: none; width: 22px; height: 22px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-faint); transition: color var(--dur-fast), background var(--dur-fast); }
.tstar:hover { background: var(--surface-sunken); color: var(--warn); }
.tstar--on { color: var(--warn); }

/* favourites */
.tfavs .tnav { padding-right: 6px; }
.tx { flex: none; width: 22px; height: 22px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-faint); opacity: 0.6; transition: color var(--dur-fast), background var(--dur-fast), opacity var(--dur-fast); }
.tnav:hover .tx { opacity: 1; }
.tx:hover { background: var(--surface-sunken); color: var(--loss); opacity: 1; }
.tempty { padding: 8px 10px; font-size: var(--text-caption); color: var(--text-faint); line-height: var(--leading-normal); }

/* regions → countries → leagues */
.tregions { margin-top: 6px; border-top: 1px solid var(--border); padding-top: 6px; }
.tregion + .tregion { border-top: 1px solid var(--border); }
.tregion__hd { display: flex; align-items: center; width: 100%; padding: 10px 10px; border-radius: var(--radius-md); transition: background var(--dur-fast); }
.tregion__hd:hover { background: var(--surface-sunken); }
.tregion__nm { font-weight: 700; font-size: var(--text-body-sm); letter-spacing: -0.005em; }
.tchev { margin-left: auto; color: var(--text-faint); display: inline-flex; transition: transform var(--dur) var(--ease); }
.tchev--open { transform: rotate(180deg); }
.tcountries { display: flex; flex-direction: column; padding-bottom: 4px; }
.tcountry__hd { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 10px; border-radius: var(--radius-md); transition: background var(--dur-fast); }
.tcountry__hd:hover { background: var(--surface-sunken); }
.tcountry__nm { font-size: var(--text-body-sm); font-weight: 500; }
.tleagues { display: flex; flex-direction: column; margin: 2px 0 6px; padding-left: 14px; margin-left: 19px; border-left: 1px solid var(--border); }
.tleague { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--radius-md); transition: background var(--dur-fast); }
.tleague:hover { background: var(--surface-sunken); }
.tleague__nm { flex: 1; min-width: 0; font-size: var(--text-body-sm); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tleague:hover .tleague__nm { color: var(--text); }

.tip { padding: 11px 14px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.tip:first-child { border-top: none; }
.tip__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tip__match { font-size: var(--text-caption); color: var(--text-muted); font-weight: 500; }
.tip__odd { font-size: var(--text-caption); font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 2px 8px; border-radius: var(--radius-sm); font-variant-numeric: tabular-nums; }
.tip__pick { font-size: var(--text-body-sm); font-weight: 600; display: flex; align-items: center; gap: 7px; }
.tip__conf { height: 4px; border-radius: 99px; background: var(--surface-sunken); overflow: hidden; }
.tip__conf > span { display: block; height: 100%; background: var(--goal); border-radius: inherit; }

.bk { padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; border-top: 1px solid var(--border); }
.bk:first-child { border-top: none; }
.bk__top { display: flex; align-items: center; gap: 10px; }
.bk__mark { width: 38px; height: 38px; border-radius: var(--radius-md); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex: none; }
.bk__name { font-weight: 600; font-size: var(--text-body-sm); }
.bk__rate { font-size: var(--text-caption); color: var(--text-muted); }
.bk__stars { color: var(--warn); letter-spacing: 1px; }
.bk__bonus { font-size: var(--text-caption); color: var(--text); font-weight: 600; }
.bk__ad { font-size: var(--text-micro); color: var(--text-faint); text-transform: uppercase; letter-spacing: var(--tracking-wide); text-align: center; }

.adslot { border: 1px dashed var(--border-strong); border-radius: var(--radius-md); background: var(--surface-sunken); color: var(--text-faint); font-size: var(--text-caption); display: flex; align-items: center; justify-content: center; text-align: center; }
.adslot--rail { height: 250px; }

/* ==========================================================================
   Match page
   ========================================================================== */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: var(--text-caption); color: var(--text-muted); flex-wrap: wrap; }
.crumbs a { color: var(--text-muted); font-weight: 500; }
.crumbs a:hover { color: var(--brand); }

.scoreboard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 24px; }
.scoreboard__meta { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: var(--text-caption); color: var(--text-muted); margin-bottom: 18px; }
.scoreboard__grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.sbteam { display: flex; align-items: center; gap: 14px; min-width: 0; }
.sbteam--home { justify-content: flex-end; }
.sbteam--away { flex-direction: row-reverse; justify-content: flex-end; }
.sblogo { width: 56px; height: 56px; border-radius: var(--radius-md); background: var(--surface-sunken); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; color: var(--text-muted); flex: none; }
.sbname { font-size: var(--text-h3); font-weight: 700; }
.sbcenter { text-align: center; }
.sbscore { font-size: var(--text-display); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.sbscore--live { color: var(--goal); }
.sblive { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; font-size: var(--text-caption); font-weight: 700; color: var(--live); }

.mom { margin-top: 18px; }
.mom__lbl { display: flex; justify-content: space-between; font-size: var(--text-micro); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--text-faint); margin-bottom: 6px; }

/* match/standings tabs migrated to daisyUI tabs-bordered (see lr-daisy-overrides.css) */

.events { padding: 6px 0; }
.event { display: flex; align-items: center; gap: 12px; padding: 9px 16px; }
.event--away { flex-direction: row-reverse; }
.event--goal { background: var(--goal-bg); }
.event__min { width: 30px; flex: none; text-align: center; font-size: var(--text-caption); font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.event__body { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.event--away .event__body { justify-content: flex-end; }
.event__text { min-width: 0; }
.event__ic { width: 28px; height: 28px; border-radius: 7px; background: var(--surface-sunken); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.event__player { font-size: var(--text-body-sm); white-space: nowrap; }
.event__detail { font-size: var(--text-caption); color: var(--text-faint); white-space: nowrap; }

.statlist { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.statbar { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; gap: 10px; }
.statbar__lbl { grid-column: 1 / -1; text-align: center; font-size: var(--text-caption); color: var(--text-muted); font-weight: 500; margin-bottom: -6px; }
.statbar__v { font-size: var(--text-body-sm); font-weight: 700; font-variant-numeric: tabular-nums; }
.statbar__v--h { text-align: right; }
.statbar__v--lead { color: var(--brand); }
.statbar__track { display: flex; height: 7px; border-radius: 99px; overflow: hidden; background: var(--surface-sunken); }
.statbar__fill--h { background: var(--brand); }
.statbar__fill--a { background: var(--border-strong); }

/* ==========================================================================
   Standings table
   ========================================================================== */
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table th { font-size: var(--text-micro); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--text-faint); font-weight: 700; padding: 10px 6px; text-align: center; }
.table th.l, .table td.l { text-align: left; }
.table td { padding: 9px 6px; text-align: center; font-size: var(--text-body-sm); border-top: 1px solid var(--border); }
.table tbody tr:hover { background: var(--surface-sunken); }
.table__pos { position: relative; padding-left: 18px !important; font-weight: 600; }
.zone { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); width: 3px; height: 18px; border-radius: 2px; }
.zone--ucl { background: var(--brand); }
.zone--uel { background: var(--goal); }
.zone--rel { background: var(--loss); }
.table__team { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.table__pts { font-weight: 800; }
.legend { display: flex; gap: 16px; font-size: var(--text-caption); color: var(--text-muted); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }

.form { display: inline-flex; gap: 3px; }
.form__i { width: 17px; height: 17px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; color: #fff; }
.form__i--W { background: var(--win); }
.form__i--D { background: var(--draw); }
.form__i--L { background: var(--loss); }

/* ==========================================================================
   Mobile nav (bottom tab bar) + drawer
   ========================================================================== */
.mobnav { display: none; }
.mobmenu { display: none; }

@media (max-width: 1180px) {
  .layout { grid-template-columns: minmax(0,1fr) var(--rail-right); }
  .rail--left { display: none; }
}
@media (max-width: 880px) {
  .layout { grid-template-columns: minmax(0,1fr); padding: 14px; }
  .rail--right { display: none; }
  .hd__nav { display: none; }
  .hd__search { width: auto; flex: 1; }
  .hd__word { display: none; }
  .news--feat { flex-direction: column; }
  .news--feat .news__thumb { flex: none; aspect-ratio: 16/9; }
  .newsgrid { grid-template-columns: 1fr; }
  .watch { display: none; }
  .hd__bar { gap: 10px; padding: 0 14px; }
  .hd__quiet { display: none; }
  .mobnav { display: flex; position: sticky; bottom: 0; z-index: 38; background: color-mix(in srgb, var(--elevated) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--border); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .mobnav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border-radius: var(--radius-md); font-size: 10px; font-weight: 600; color: var(--text-muted); }
  .mobnav button.on { color: var(--brand); }
  .row { grid-template-columns: 26px 50px minmax(0,1fr) 40px auto; }
  .row .spark, .row .acts { display: none; }
}
@media (max-width: 460px) {
  .row .odds { display: none; }
  .row { grid-template-columns: 26px 50px minmax(0,1fr) 40px; }
}

/* ==========================================================================
   H2H tab
   ========================================================================== */
.h2h { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.h2hsec { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; }
.h2hsec__hd { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; color: var(--text-muted); }
.h2hsec__hd > svg { color: var(--brand); flex: none; }
.h2hsec__t { margin: 0; font-size: var(--text-body); font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.h2hsec__sub { font-size: var(--text-caption); color: var(--text-faint); margin-left: 2px; }
.h2hsec__key { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: var(--text-caption); font-weight: 600; color: var(--text-muted); }
.h2hsec__key i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

/* head-to-head record */
.h2hrec { display: grid; grid-template-columns: 1fr 1fr 1fr; text-align: center; margin-bottom: 12px; }
.h2hrec__cell { display: flex; flex-direction: column; gap: 3px; }
.h2hrec__cell:first-child { text-align: left; align-items: flex-start; }
.h2hrec__cell:last-child { text-align: right; align-items: flex-end; }
.h2hrec__n { font-size: var(--text-h2); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.h2hrec__l { font-size: var(--text-caption); color: var(--text-muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.h2hrec__bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; gap: 2px; margin-bottom: 18px; }
.h2hrec__bar > span { display: block; border-radius: 2px; }

/* meetings */
.meets { display: flex; flex-direction: column; }
.meet { display: flex; align-items: center; gap: 14px; padding: 10px 4px; border-top: 1px solid var(--border); }
.meet:first-child { border-top: none; }
.meet__when { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.meet__date { font-size: var(--text-body-sm); font-weight: 600; }
.meet__comp { font-size: var(--text-caption); color: var(--text-faint); }
.meet__score { display: flex; align-items: center; gap: 10px; }
.meet__tm { font-size: var(--text-caption); font-weight: 700; color: var(--text-muted); width: 34px; text-align: right; }
.meet__tm--r { text-align: left; }
.meet__tm--win { color: var(--text); }
.meet__nums { font-weight: 800; font-variant-numeric: tabular-nums; font-size: var(--text-body); display: inline-flex; gap: 3px; }
.meet__nums i { color: var(--text-faint); font-style: normal; }
.meet__res { width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff; flex: none; }
.meet__res--W { background: var(--win); }
.meet__res--D { background: var(--draw); }
.meet__res--L { background: var(--loss); }

/* form comparison */
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.formcol { background: var(--surface-sunken); border-radius: var(--radius-md); padding: 14px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.formcol__top { display: flex; align-items: center; gap: 9px; min-width: 0; width: 100%; }
.formcol__nm { font-weight: 700; font-size: var(--text-body-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wdl { width: 100%; display: flex; flex-direction: column; gap: 7px; }
.wdl__bar { display: flex; height: 7px; border-radius: 99px; overflow: hidden; gap: 2px; }
.wdl__bar > span { display: block; border-radius: 2px; }
.wdl__legend { font-size: var(--text-caption); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.wdl__legend b { color: var(--text); }
.wdl__legend span { color: var(--text-faint); margin-left: 4px; }

/* comparative bars */
.cmp { display: flex; flex-direction: column; gap: 15px; }
.cmp__row { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 12px; }
.cmp__v { font-size: var(--text-body-sm); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; color: var(--text-muted); }
.cmp__v--r { text-align: left; }
.cmp__v--lead { color: var(--brand); }
.cmp__mid { display: flex; flex-direction: column; gap: 6px; }
.cmp__lbl { text-align: center; font-size: var(--text-caption); color: var(--text-muted); }
.cmp__track { display: flex; height: 7px; border-radius: 99px; overflow: hidden; background: var(--surface-sunken); }
.cmp__fill--h { background: var(--brand); border-radius: 99px 0 0 99px; }
.cmp__fill--a { background: var(--border-strong); border-radius: 0 99px 99px 0; }

/* goals by time */
.gbt { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; height: 168px; }
.gbt__col { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; }
.gbt__bars { display: flex; align-items: flex-end; gap: 4px; height: 100%; width: 100%; justify-content: center; }
.gbt__bar { width: 16px; border-radius: 5px 5px 0 0; position: relative; min-height: 4px; display: flex; justify-content: center; transition: height var(--dur) var(--ease); }
.gbt__bar--h { background: var(--brand); }
.gbt__bar--a { background: var(--border-strong); }
.gbt__bar em { position: absolute; top: -16px; font-size: 10px; font-weight: 700; font-style: normal; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.gbt__lbl { font-size: var(--text-caption); color: var(--text-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* recent results */
.recgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.reccol { display: flex; flex-direction: column; gap: 12px; }
.reclist { display: flex; flex-direction: column; }
.recrow { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-top: 1px solid var(--border); font-size: var(--text-body-sm); }
.recrow:first-child { border-top: none; }
.recdot { width: 20px; height: 20px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: #fff; flex: none; }
.recdot--W { background: var(--win); }
.recdot--D { background: var(--draw); }
.recdot--L { background: var(--loss); }
.recrow__ha { font-size: 10px; font-weight: 700; color: var(--text-faint); width: 12px; flex: none; }
.recrow__opp { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-muted); }
.recrow__sc { font-weight: 700; font-variant-numeric: tabular-nums; display: inline-flex; gap: 2px; }
.recrow__date { font-size: var(--text-caption); color: var(--text-faint); width: 44px; text-align: right; flex: none; }

/* fan prediction poll */
.poll { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pollopt { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--radius-md); background: var(--surface-sunken); border: 1px solid transparent; text-align: left; transition: border-color var(--dur-fast), background var(--dur-fast); }
.pollopt:hover { border-color: var(--brand); background: var(--brand-soft); }
.pollopt__top { display: flex; align-items: center; justify-content: space-between; }
.pollopt__code { font-size: var(--text-caption); font-weight: 700; color: var(--text-muted); }
.pollopt__pct { font-size: var(--text-h3); font-weight: 800; font-variant-numeric: tabular-nums; }
.pollopt__bar { height: 6px; border-radius: 99px; background: var(--border); overflow: hidden; }
.pollopt__bar > span { display: block; height: 100%; border-radius: 99px; background: var(--border-strong); }
.pollopt--home .pollopt__bar > span { background: var(--brand); }
.pollopt--away .pollopt__bar > span { background: var(--text-muted); }
.pollopt__lbl { font-size: var(--text-caption); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pollnote { display: flex; align-items: center; gap: 7px; margin-top: 12px; font-size: var(--text-caption); color: var(--text-faint); }
.pollnote > svg { color: var(--goal); }

/* season splits */
.splits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.split { background: var(--surface-sunken); border-radius: var(--radius-md); padding: 11px 13px; display: flex; flex-direction: column; gap: 8px; }
.split__lbl { font-size: var(--text-caption); color: var(--text-muted); font-weight: 600; }
.split__vals { display: flex; align-items: center; gap: 10px; }
.split__vals b { font-size: var(--text-body); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text-muted); width: 22px; text-align: center; }
.split__vals b.lead { color: var(--brand); }
.split__bar { flex: 1; display: flex; height: 6px; border-radius: 99px; overflow: hidden; gap: 2px; }
.split__bar i { display: block; border-radius: 2px; min-width: 3px; }

/* segmented toggle */
.seg { margin-left: auto; display: flex; gap: 3px; background: var(--surface-sunken); padding: 3px; border-radius: var(--radius-md); }
.seg button { padding: 5px 11px; border-radius: 6px; font-size: var(--text-caption); font-weight: 600; color: var(--text-muted); }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }
.h2hsec__key--c { margin-left: 0; justify-content: center; margin-top: 12px; }

/* top scorers + frequent scores */
.scgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sccol { display: flex; flex-direction: column; gap: 12px; }
.sclist { display: flex; flex-direction: column; }
.scrow { display: grid; grid-template-columns: 1fr auto 28px; align-items: center; gap: 10px; padding: 8px 2px; border-top: 1px solid var(--border); font-size: var(--text-body-sm); }
.scrow:first-child { border-top: none; }
.scrow__nm { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.scrow__pen { font-style: normal; font-size: var(--text-micro); color: var(--text-faint); margin-left: 7px; font-weight: 500; }
.scrow__avg { font-size: var(--text-caption); color: var(--text-faint); font-variant-numeric: tabular-nums; }
.scrow__g { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; color: var(--brand); }
.scorechips { display: flex; flex-wrap: wrap; gap: 8px; }
.scorechip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--radius-pill); background: var(--surface-sunken); }
.scorechip b { font-weight: 700; font-variant-numeric: tabular-nums; }
.scorechip i { font-style: normal; font-size: var(--text-caption); color: var(--text-faint); }

@media (max-width: 620px) {
  .formgrid, .recgrid, .scgrid, .poll, .splits { grid-template-columns: 1fr; }
  .gbt { gap: 5px; }
  .gbt__bar { width: 12px; }
  .h2h { padding: 12px; }
}

/* ==========================================================================
   Lineups tab — tactical board + team sheets
   ========================================================================== */
.lineups { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.pitch {
  position: relative; height: 372px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden; display: flex;
  background:
    repeating-linear-gradient(90deg, var(--surface-sunken) 0 9%, color-mix(in srgb, var(--surface-sunken) 60%, var(--surface)) 9% 18%);
}
.pitch__mark { position: absolute; border-color: var(--border-strong); pointer-events: none; }
.pitch__mark--mid { left: 50%; top: 0; bottom: 0; border-left: 2px solid var(--border-strong); opacity: 0.7; }
.pitch__mark--circle { left: 50%; top: 50%; width: 96px; height: 96px; transform: translate(-50%, -50%); border: 2px solid var(--border-strong); border-radius: 50%; opacity: 0.7; }
.pitch__box { position: absolute; top: 50%; transform: translateY(-50%); width: 70px; height: 168px; border: 2px solid var(--border-strong); opacity: 0.6; }
.pitch__box--l { left: 0; border-left: none; border-radius: 0 8px 8px 0; }
.pitch__box--r { right: 0; border-right: none; border-radius: 8px 0 0 8px; }
.pitch__half { flex: 1; display: flex; position: relative; z-index: 2; padding: 14px 8px; }
.pitch__line { flex: 1; display: flex; flex-direction: column; justify-content: space-around; align-items: center; }
.pch { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 100%; }
.pch__dot {
  width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--text-caption); font-weight: 800; font-variant-numeric: tabular-nums; position: relative; box-shadow: var(--shadow-sm);
}
.pch__dot--home { background: var(--brand); color: var(--brand-ink); }
.pch__dot--away { background: var(--elevated); color: var(--text); border: 1.5px solid var(--border-strong); }
.pch__red { position: absolute; top: -3px; right: -3px; width: 9px; height: 12px; border-radius: 2px; background: var(--loss); border: 1px solid var(--surface); }
.pch__nm { font-size: 10.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; text-align: center; }
.pitch__tag { position: absolute; bottom: 10px; z-index: 3; font-size: var(--text-micro); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--text-muted); background: color-mix(in srgb, var(--surface) 80%, transparent); padding: 3px 8px; border-radius: var(--radius-sm); }
.pitch__tag--l { left: 12px; }
.pitch__tag--r { right: 12px; }

.sheets { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sheet { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; }
.sheet__hd { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.sheet__nm { font-weight: 700; font-size: var(--text-body-sm); }
.sheet__sub { font-size: var(--text-caption); color: var(--text-faint); }
.sheet__sec { font-size: var(--text-micro); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--text-faint); font-weight: 700; margin: 14px 0 8px; }
.sheet__subs { display: flex; flex-direction: column; }
.subrow { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: var(--text-body-sm); }
.subrow__n { width: 22px; text-align: center; font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.subrow__nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subrow__pos { font-size: var(--text-micro); font-weight: 700; color: var(--text-faint); background: var(--surface-sunken); padding: 2px 6px; border-radius: var(--radius-sm); }
.sheet__coach { margin-top: 12px; display: flex; align-items: center; gap: 7px; font-size: var(--text-caption); color: var(--text-muted); }
.sheet__coach b { color: var(--text); font-weight: 600; }
.sheet__out { display: flex; flex-direction: column; }
.outrow { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: var(--text-body-sm); }
.outdot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.outdot--inj { background: var(--loss); }
.outdot--dbt { background: var(--warn); }
.outrow__nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.outrow__r { font-size: var(--text-caption); color: var(--text-faint); }

/* in-match table */
.mtable { padding: 16px; }
.mtable__hd { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; color: var(--text-muted); }
.mtable__hd > svg { color: var(--brand); }
.tr--hi { background: var(--brand-soft); }
.tr--hi:hover { background: var(--brand-soft) !important; }
.tr--hi td { border-color: color-mix(in srgb, var(--brand) 25%, var(--border)); }
.tr--hi .table__team { color: var(--brand); }

@media (max-width: 620px) {
  .sheets { grid-template-columns: 1fr; }
  .lineups { padding: 12px; }
  .pitch { height: 340px; }
  .pch__nm { font-size: 9px; }
  .pch__dot { width: 28px; height: 28px; }
}

/* ==========================================================================
   Text broadcast / live commentary tab
   ========================================================================== */
.tb { padding: 8px 16px 16px; }
.tb__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px 14px; position: sticky; top: 0; background: var(--surface); z-index: 2; flex-wrap: wrap; }
.tb__live { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-body-sm); font-weight: 700; color: var(--live); }
.tb__live--off { color: var(--text-muted); }
.tb__feeds { display: flex; gap: 3px; background: var(--surface-sunken); padding: 3px; border-radius: var(--radius-pill); }
.tb__feed { padding: 6px 14px; border-radius: var(--radius-pill); font-size: var(--text-caption); font-weight: 600; color: var(--text-muted); }
.tb__feed:hover { color: var(--text); }
.tb__feed--on { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }

.feed { display: flex; flex-direction: column; }
.fe { display: grid; grid-template-columns: 38px 30px 1fr; gap: 12px; align-items: start; padding: 12px 4px; border-top: 1px solid var(--border); position: relative; }
.fe:first-child { border-top: none; }
.fe::before { content: ""; position: absolute; left: -16px; top: 0; bottom: 0; width: 3px; }
.fe--home::before { background: var(--brand); }
.fe--away::before { background: var(--border-strong); }
.fe__min { font-family: var(--font-mono); font-size: var(--text-caption); font-weight: 600; color: var(--text-muted); text-align: right; padding-top: 5px; font-variant-numeric: tabular-nums; }
.fe__ic { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.fe__ic--goal { background: var(--goal-bg); color: var(--goal); }
.fe__ic--sub { background: var(--brand-soft); color: var(--brand); }
.fe__ic--warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.fe__ic--inj { background: var(--live-bg); color: var(--live); }
.fe__ic--plain { background: var(--surface-sunken); color: var(--text-muted); }
.fe__ic--dot { background: transparent; position: relative; }
.fe__ic--dot::after { content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--border-strong); }
.cardmark { width: 11px; height: 15px; border-radius: 2px; display: inline-block; }
.cardmark--y { background: var(--warn); }
.cardmark--r { background: var(--loss); }
.fe__body { display: flex; flex-direction: column; gap: 5px; padding-top: 2px; min-width: 0; }
.fe__txt { font-size: var(--text-body-sm); line-height: var(--leading-normal); color: var(--text); text-wrap: pretty; }
.fe__txt--goal { font-weight: 600; }
.fe__goaltag { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: var(--text-micro); font-weight: 800; text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--goal); }
.fe__goaltag b { font-size: var(--text-body-sm); letter-spacing: 0; }
.fe--goal { background: var(--goal-bg); border-radius: var(--radius-md); border-top-color: transparent; margin: 4px 0; padding: 12px; }
.fe--goal + .fe { border-top-color: transparent; }

.fe--period { display: flex; align-items: center; gap: 12px; padding: 14px 4px; }
.fe--period::before { display: none; }
.fe__pline { flex: 1; height: 1px; background: var(--border); }
.fe__plabel { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-caption); font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.fe__plabel > svg { color: var(--text-faint); }

/* ==========================================================================
   Events tab — match-progress timeline
   ========================================================================== */
.evtab { padding: 16px; display: flex; flex-direction: column; gap: 18px; }
.evsum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.evsum__cell { background: var(--surface-sunken); border-radius: var(--radius-md); padding: 11px 13px; display: flex; flex-direction: column; gap: 8px; }
.evsum__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.evsum__row b { font-size: var(--text-body-sm); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-muted); }
.evsum__row b.lead { color: var(--brand); }
.evsum__lbl { font-size: var(--text-caption); color: var(--text-faint); }
.evsum__track { display: flex; height: 5px; border-radius: 99px; overflow: hidden; background: var(--border); gap: 2px; }
.evsum__track span:first-child { background: var(--brand); border-radius: 2px; }
.evsum__track span:last-child { background: var(--border-strong); border-radius: 2px; }

.tl { position: relative; padding: 2px 0; }
.tl::before { content: ""; position: absolute; left: 50%; transform: translateX(-50%); top: 12px; bottom: 12px; width: 2px; background: var(--border); }
.tlrow { position: relative; display: grid; grid-template-columns: 1fr 52px 1fr; align-items: center; padding: 8px 0; }
.tl__node { justify-self: center; min-width: 40px; height: 26px; padding: 0 8px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; font-size: var(--text-caption); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-muted); z-index: 1; }
.tl__node--goal { background: var(--goal); color: #fff; border-color: var(--goal); }
.tl__node--rc { border-color: var(--loss); color: var(--loss); }
.tlside { display: flex; min-width: 0; }
.tlside--l { justify-content: flex-end; }
.tlside--r { justify-content: flex-start; }
.tlcard { display: flex; gap: 10px; align-items: flex-start; max-width: 300px; padding: 8px 11px; border-radius: var(--radius-md); transition: background var(--dur-fast); }
.tlrow:hover .tlcard { background: var(--surface-sunken); }
.tlrow--goal .tlcard { background: var(--goal-bg); }
.tlcard--home { flex-direction: row-reverse; text-align: right; }
.tlic { width: 28px; height: 28px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.tlic--goal { background: var(--goal-bg); color: var(--goal); }
.tlic--sub { background: var(--brand-soft); color: var(--brand); }
.tlic--plain { background: var(--surface); color: var(--text-muted); border: 1px solid var(--border); }
.tlcard__txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tlcard__main { font-size: var(--text-body-sm); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.tlcard--home .tlcard__main { flex-direction: row-reverse; }
.tlcard__score { font-weight: 800; color: var(--goal); font-variant-numeric: tabular-nums; }
.tlcard__sub { font-size: var(--text-caption); color: var(--text-faint); display: inline-flex; align-items: center; gap: 6px; }
.tlcard--home .tlcard__sub { flex-direction: row-reverse; }
.sub-in { color: var(--win); font-size: 11px; line-height: 1; }
.sub-out { color: var(--loss); font-size: 11px; line-height: 1; }

.tl__div { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.tl__div--top { padding-top: 2px; }
.tl__dline { flex: 1; height: 1px; background: var(--border); }
.tl__dlabel { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-caption); font-weight: 700; color: var(--text-muted); white-space: nowrap; background: var(--surface); padding: 0 8px; z-index: 1; }
.tl__dlabel > svg { color: var(--text-faint); }
.tl__dlabel--live { color: var(--live); }

@media (max-width: 560px) {
  .evtab { padding: 12px; }
  .evsum { grid-template-columns: 1fr; gap: 8px; }
  .tlrow { grid-template-columns: 1fr 44px 1fr; }
  .tlcard { padding: 6px 8px; gap: 7px; }
  .tlic { width: 24px; height: 24px; }
}
