/* FutScores — dark blue theme */
:root {
  --bg: #070F22;
  --topbar: #0A1530;
  --card: #0F1C3A;
  --card-head: #13234A;
  --panel: #0B1630;
  --line: #1E3160;
  --text: #EAF1FF;
  --muted: #9FB0D3;
  --accent: #2EA8FF;
  --accent-ink: #04122B;
  --accent-soft: #12305E;
  --live: #FF6B6B;
  --live-row: #161A3C;
  --draw: #3B4C75;
  --win: #2FD08A;
  --loss: #D13438;
  --gold: #F2C94C;
  --gold-text: #FFD978;
  --gold-bg: #3A2F0B;
  --gold-line: #C9A227;
  --radius: 16px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.4;
}
a { color: #8FD0FF; }
a:hover { color: #C4E6FF; }
button { font: inherit; color: inherit; }
h2 { margin: 0 0 10px; font-size: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Phone first: side panels hidden, compact header */
.desk-only, .side-left, .side-right { display: none; }
.phone-only { display: flex; }

/* ---------- header ---------- */
.topbar { background: var(--topbar); border-bottom: 1px solid var(--line); }
.topbar__inner { max-width: 1320px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 12px 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { border-radius: 11px; display: block; }
.brand__word { font-family: 'Barlow Condensed', sans-serif; font-style: italic; font-weight: 800; font-size: 30px; letter-spacing: .5px; line-height: 1; }
.brand__word span { color: var(--accent); }
.search { flex: 1 1 260px; max-width: 460px; }
.search input { width: 100%; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); padding: 0 18px; font: inherit; color: var(--text); }
.search input::placeholder { color: #8494B8; }
.mainnav { margin-left: auto; gap: 4px; }
.mainnav a { padding: 11px 14px; font-weight: 600; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; }
.mainnav a[aria-current="page"] { color: #fff; font-weight: 700; border-bottom-color: var(--accent); }
.phone-actions { margin-left: auto; gap: 4px; }
.icon-btn { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--text); }
.icon-btn[aria-pressed="true"] { color: var(--gold); }

/* ---------- layout ---------- */
.layout { max-width: 1320px; margin: 0 auto; padding: 12px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.center { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.center__list { display: flex; flex-direction: column; gap: 16px; }
.side-left { flex: 1 1 220px; max-width: 260px; }
.side-right { flex: 1 1 260px; max-width: 340px; flex-direction: column; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }

@media (min-width: 900px) {
  .desk-only { display: flex; }
  .phone-only { display: none; }
  .side-left { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
  .side-right { display: flex; }
  .layout { padding: 24px; }
}

/* ---------- league nav ---------- */
.leaguenav { padding: 20px 12px; }
.leaguenav h2 { margin-left: 10px; }
.lg-btn { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border: 0; border-radius: 10px; cursor: pointer; text-align: left; font-size: 15px; background: transparent; color: var(--text); font-weight: 500; transition: background .15s; }
.lg-btn:hover { background: var(--card-head); }
.lg-btn[aria-current="true"] { background: var(--accent-soft); color: #fff; font-weight: 700; box-shadow: inset 3px 0 0 var(--accent); }
.lg-btn__name { flex: 1; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.count { font-size: 12px; font-weight: 800; min-width: 22px; text-align: center; padding: 2px 6px; border-radius: 999px; background: var(--card-head); color: var(--muted); }
.lg-btn[aria-current="true"] .count { background: var(--accent); color: var(--accent-ink); }

/* ---------- day bar + filters ---------- */
.daybar { padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; }
.daybar__row { display: flex; align-items: center; justify-content: space-between; }
.daybar__title { text-align: center; }
.daybar__title > div:first-child { font-weight: 800; font-size: 18px; }
.round-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card-head); cursor: pointer; display: grid; place-items: center; color: var(--text); }
.round-btn:disabled { opacity: .35; cursor: default; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { height: 44px; padding: 0 18px; border-radius: 22px; font-weight: 700; cursor: pointer; border: 1px solid var(--line); background: transparent; color: var(--text); }
.pill[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
#toggle-all { margin-left: auto; font-weight: 600; }
.sample-tag { color: var(--gold-text); font-weight: 700; }

/* ---------- league sections ---------- */
.league { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; scroll-margin-top: 16px; }
.league__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--card-head); border-bottom: 1px solid var(--line); }
.league__head h2 { margin: 0; flex: 1; }
.empty { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 48px 20px; text-align: center; color: var(--muted); }

/* ---------- match row ---------- */
.match { border-top: 1px solid var(--line); }
.league__head + .match { border-top: 0; }
.match--live { background: var(--live-row); }
.match__teams { color: inherit; text-decoration: none; border-radius: 12px; transition: background .15s; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 20px 16px 12px; }
.team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.team--home { justify-content: flex-end; text-align: right; }
.team__name { font-weight: 600; font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 900px) { .team__name { font-size: 17px; overflow-wrap: normal; } }
/* Phone: crest above the name so long names fit */
@media (max-width: 899px) {
  .match__teams { gap: 8px; padding: 18px 12px 12px; }
  .team { flex-direction: column; justify-content: flex-start; text-align: center; gap: 6px; }
  .team--home { flex-direction: column-reverse; justify-content: flex-end; text-align: center; }
  .team__name { font-size: 14px; line-height: 1.25; }
  .chance, .actions { padding-left: 12px; padding-right: 12px; }
  .facts { margin-left: 12px; margin-right: 12px; }
}

.crest { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: .3px; background: var(--team-bg); color: var(--team-fg); box-shadow: 0 0 0 2px rgba(255,255,255,.16); overflow: hidden; }
.crest--logo { background: transparent; box-shadow: none; border-radius: 0; }
.crest--logo img { width: 36px; height: 36px; object-fit: contain; }
.crest--logo b { display: none; }
.crest--logo.crest--fallback { background: var(--team-bg); box-shadow: 0 0 0 2px rgba(255,255,255,.16); border-radius: 50%; }
.crest--fallback img { display: none; }
.crest--fallback b { display: inline; }

.mid { text-align: center; min-width: 76px; }
.mid__score { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 30px; line-height: 1.1; }
.mid__time { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 24px; }
.mid__label { font-size: 12px; color: var(--muted); font-weight: 600; }
.mid__live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--live); margin-top: 2px; }
.livedot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,107,107,.6); } 70% { box-shadow: 0 0 0 7px rgba(255,107,107,0); } 100% { box-shadow: 0 0 0 0 rgba(255,107,107,0); } }
@media (prefers-reduced-motion: reduce) { .livedot { animation: none; } }

/* win chance */
.chance { padding: 0 16px; }
.chance__title { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; text-align: center; }
.chance__bars { display: flex; gap: 3px; }
.chance__seg { min-width: 64px; }
.chance__seg--draw { min-width: 72px; }
.chance__bar { height: 8px; border-radius: 4px; }
.chance__pct { font-size: 12px; font-weight: 700; margin-top: 5px; white-space: nowrap; }
.chance__seg--draw .chance__pct { text-align: center; color: var(--muted); }
.chance__seg--away .chance__pct { text-align: right; }

/* buttons under a match */
.actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px 16px; }
.act { height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--line); background: transparent; color: var(--text); font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.act--fav[aria-pressed="true"] { border-color: var(--gold-line); background: var(--gold-bg); color: var(--gold-text); font-weight: 700; }
.act--fav[aria-pressed="true"] svg { fill: var(--gold); stroke: var(--gold); }
.chev { transition: transform .2s; }
.act[aria-expanded="true"] .chev { transform: rotate(180deg); }

/* facts panel */
.facts { margin: 0 16px 20px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 28px; }
.facts h3 { margin: 0 0 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts h3 + * { font-weight: 600; }
.facts .gap { margin-top: 16px; }
.form-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.form-row__abbr { width: 44px; font-weight: 700; font-size: 13px; }
.chip { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.chip--W { background: var(--win); color: var(--accent-ink); }
.chip--D { background: var(--draw); color: var(--text); }
.chip--L { background: var(--loss); color: #fff; }
.event { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-weight: 600; }
.event__min { width: 42px; font-weight: 700; font-size: 13px; color: var(--muted); }
.badge { min-width: 52px; text-align: center; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 800; }
.badge--G { background: var(--win); color: var(--accent-ink); }
.badge--Y { background: var(--gold); color: #3D2E00; }
.badge--R { background: var(--loss); color: #fff; }
.stat { margin-bottom: 10px; }
.stat__row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; }
.stat__row span:nth-child(2) { color: var(--muted); }
.stat__bar { display: flex; height: 5px; border-radius: 3px; overflow: hidden; gap: 2px; margin-top: 4px; }

/* favorites + network */
.fav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.fav__live { font-size: 13px; font-weight: 700; color: var(--live); }
.fav-empty { margin: 0; padding: 16px; background: var(--panel); border-radius: 12px; font-size: 14px; }
.network { background: #0B1E45; border-color: #2E5AA8; display: flex; flex-direction: column; gap: 10px; }
.network__eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #8FD0FF; font-weight: 700; }
.network__title { font-family: 'Barlow Condensed', sans-serif; font-style: italic; font-size: 26px; line-height: 1.1; margin: 0 0 4px; }
.network__link { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px; background: #132A57; color: #fff; text-decoration: none; font-weight: 600; }
.network__link span { font-size: 13px; color: #8FD0FF; }

a.match__teams:hover { background: rgba(46,168,255,.06); color: inherit; }
a.match__teams:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ---------- match page ---------- */
.mp { max-width: 900px; margin: 0 auto; padding: 16px 12px 48px; display: flex; flex-direction: column; gap: 16px; }
.mp__back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; text-decoration: none; color: var(--muted); align-self: flex-start; }
.mp__back:hover { color: var(--text); }
#match-root { display: flex; flex-direction: column; gap: 16px; }
.mp__hero { text-align: center; display: flex; flex-direction: column; gap: 16px; }
.mp__hero--live { background: var(--live-row); }
.mp__league { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.mp__teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.mp__team { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.mp__name { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.mp__mid { min-width: 96px; }
.mp__score { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 48px; line-height: 1; }
.mp__time { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 34px; line-height: 1.1; }
.mp__chance { padding: 0; text-align: left; }
.mp__meta { line-height: 1.6; }
.mp__actions { display: flex; justify-content: center; }
.crest--lg { width: 72px; height: 72px; font-size: 22px; }
.crest--lg.crest--logo img { width: 68px; height: 68px; }
.mp__body { padding: 0; overflow: hidden; }
.tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { flex: none; min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.tab:hover { color: var(--text); background: var(--card-head); }
.tab[aria-selected="true"] { color: var(--accent-ink); background: var(--accent); }
.mp__panel { padding: 20px; }
.mp__note { color: var(--muted); padding: 12px 0; }
.facts--flat { margin: 0; }
.mp__stats .stat { margin-bottom: 14px; }
.mp__stats .stat__row { font-size: 14px; }

/* timeline */
.tl__heads { display: grid; grid-template-columns: 1fr 64px 1fr; font-weight: 800; color: var(--muted); font-size: 13px; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.tl__heads span:first-child { text-align: right; }
.tl__row { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; padding: 8px 0; }
.tl__min { text-align: center; font-weight: 800; font-size: 13px; color: var(--muted); }
.tl__row--home .tl__side:first-child { display: flex; justify-content: flex-end; text-align: right; }
.tl__body { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.tl__row--home .tl__body { justify-content: flex-end; }
.tl__who { font-weight: 600; }
.tl__assist { flex-basis: 100%; font-size: 12px; color: var(--muted); }
.tl__break { text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 0; margin: 4px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.badge--S { background: var(--card-head); color: var(--text); }
.badge--V { background: #5B4BDB; color: #fff; }
.badge--X { background: var(--draw); color: var(--text); text-decoration: line-through; }

/* lineups */
.lu-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.lu h3 { margin: 0 0 4px; font-size: 16px; }
.lu__coach { margin-bottom: 10px; }
.lu__group { margin-top: 12px; }
.lu__pos { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.lu__player { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-weight: 600; }
.lu__player--sub { font-weight: 500; color: var(--muted); }
.lu__num { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--card-head); color: var(--text); }

/* head to head */
.h2h__row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 64px minmax(0, 1fr); align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.h2h__row:first-child { border-top: 0; }
.h2h__team { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.h2h__team--home { text-align: right; }
.h2h__score { text-align: center; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 20px; }
@media (max-width: 599px) {
  .h2h__row { grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); }
  .h2h__date { grid-column: 1 / -1; }
  .mp__score { font-size: 40px; }
  .crest--lg { width: 56px; height: 56px; font-size: 18px; }
  .crest--lg.crest--logo img { width: 52px; height: 52px; }
  .mp__panel { padding: 16px 12px; }
}
@media (min-width: 900px) { .mp { padding-top: 24px; } .mp__name { font-size: 20px; } }

/* ---------- match rows v2: status pill on the left ---------- */
.match__link { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 8px; padding: 16px 16px 10px; color: inherit; text-decoration: none; border-radius: 12px; transition: background .15s; }
.match__link:hover { background: rgba(46,168,255,.06); color: inherit; }
.match__link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.match__link .match__teams { padding: 0; background: none; }
.spill { justify-self: start; display: inline-flex; align-items: center; gap: 5px; min-width: 40px; justify-content: center; padding: 4px 8px; border-radius: 999px; background: var(--card-head); color: var(--muted); font-size: 12px; font-weight: 800; white-space: nowrap; }
.spill--pre { color: var(--text); font-weight: 700; }
.spill--live { background: rgba(255,107,107,.14); color: var(--live); }
.spill--live .livedot { width: 6px; height: 6px; }
.spill--off { text-decoration: line-through; }
.mid { position: relative; min-width: 64px; }
.mid__vs { font-weight: 700; color: var(--muted); font-size: 14px; }
.mid__score { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 26px; line-height: 1; white-space: nowrap; }
.mid__score--live { color: var(--live); }
.mid__reds { position: absolute; left: 0; right: 0; top: -19px; display: flex; justify-content: space-between; padding: 0 6px; }
.reds { display: inline-flex; gap: 2px; }
.reds i { width: 7px; height: 10px; border-radius: 1.5px; background: #E5484D; display: block; }
.team--loser .team__name { color: var(--muted); font-weight: 500; }
.match--ft .actions { padding-top: 6px; }
.match--other { opacity: .6; }
@media (max-width: 899px) {
  .match__link { grid-template-columns: 52px minmax(0, 1fr); padding: 14px 10px 8px; gap: 4px; }
  .spill { font-size: 11px; padding: 3px 6px; min-width: 0; }
  .mid__score { font-size: 22px; }
}

/* ---------- match page v2 ---------- */
.mp { max-width: 960px; }
.tiny { font-size: 11px; }
.tiny-logo { width: 18px; height: 18px; object-fit: contain; vertical-align: -4px; margin-right: 6px; }
.hero__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hero__top .mp__league { text-align: left; }
.hero__btns { display: flex; gap: 4px; }
.icon-btn.is-on { color: var(--gold); }
.mp__score--live { color: var(--live); }
.hero__scorers { font-size: 12px; color: var(--muted); line-height: 1.5; min-height: 1em; }
.hero__red { display: inline-flex; align-items: center; gap: 4px; }
.hero__red i { width: 7px; height: 10px; border-radius: 1.5px; background: #E5484D; display: inline-block; }
.mp__body { background: transparent; border: 0; }
.mp__body .tabs { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; scrollbar-width: none; }
.mp__body .tabs::-webkit-scrollbar { display: none; }
.mp__panel { padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pv { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.pv__title { margin: 0 0 12px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mp__panel > .mp__note { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 18px; }
.crest--xs { width: 20px; height: 20px; font-size: 9px; box-shadow: none; }
.crest--xs.crest--logo img { width: 20px; height: 20px; }
.crest--sm { width: 28px; height: 28px; font-size: 11px; }
.crest--sm.crest--logo img { width: 28px; height: 28px; }

/* odds + votes */
.odds { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; }
.odd { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.odd__l { color: var(--muted); font-weight: 700; font-size: 13px; }
.odd__v { font-weight: 800; }
.votes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.vote { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 22px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-weight: 700; cursor: pointer; }
.vote.is-on { border-color: var(--accent); background: var(--accent-soft); }
.vote:disabled { opacity: .55; cursor: default; }
.formrow { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 0; }
.formrow__chips { display: flex; gap: 4px; }
.h2hsum { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 8px; margin-bottom: 10px; }
.h2hsum > div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.h2hsum b { font-family: 'Barlow Condensed', sans-serif; font-size: 28px; line-height: 1; }
.h2hsum span { font-size: 12px; color: var(--muted); }
.h2hlast { list-style: none; margin: 0; padding: 0; }
.h2hlast li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.feats { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.feats__vs { font-weight: 800; color: var(--muted); font-size: 12px; }
.feat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.feat__photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--panel); display: grid; place-items: center; font-weight: 800; }
.feat__name { font-weight: 800; }
.feat__nums { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.feat__nums b { color: var(--text); }
.info { list-style: none; margin: 0; padding: 0; }
.info li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.info li:first-child { border-top: 0; }
.info .ico, .info .tiny-logo { color: var(--muted); flex: none; margin: 0; }
.potm { display: flex; align-items: center; gap: 16px; }
.potm .feat__nums { justify-content: flex-start; }
.potm__rest { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.potm__rest ul { list-style: none; margin: 0; padding: 0; }
.potm__rest li { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 14px; }
.rating { display: inline-block; min-width: 32px; text-align: center; padding: 2px 6px; border-radius: 6px; font-size: 12px; font-weight: 800; color: #04122B; }
.rating--big { font-size: 16px; padding: 4px 10px; }
.r--top { background: #2EA8FF; } .r--good { background: #2FD08A; } .r--ok { background: #F2C94C; } .r--low { background: #FF8A65; }

/* timeline v2 */
.tl__goal { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: #fff; font-weight: 800; font-size: 12px; white-space: nowrap; }
.tl__card { width: 10px; height: 14px; border-radius: 2px; display: inline-block; flex: none; }
.tl__card--Y { background: var(--gold); } .tl__card--R { background: #E5484D; }
.tl__sub { color: var(--win); font-weight: 800; }
.tl__in { color: var(--win); }
.tl__var { font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 4px; background: #5B4BDB; color: #fff; }
.tl__row--home .tl__body { flex-direction: row-reverse; text-align: right; }
.tl__body { flex-wrap: nowrap; gap: 8px; }

/* commentary */
.cmt { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.cmt__row { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); line-height: 1.45; }
.cmt__row:first-child { border-top: 0; }
.cmt__min { font-weight: 800; color: var(--muted); }
.cmt__row--goal { background: rgba(46,168,255,.08); font-weight: 700; }
.cmt__row--red { background: rgba(229,72,77,.08); }
.cmt__row--big { font-weight: 700; }

/* lineups pitch */
.pitch-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 4px; }
.pitch-head > span:first-child { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.pitch { position: relative; border-radius: 14px; overflow: hidden; background: repeating-linear-gradient(180deg, #14532D 0 9%, #166534 9% 18%); border: 2px solid rgba(255,255,255,.25); }
.pitch::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid rgba(255,255,255,.25); }
.pitch::after { content: ''; position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; border: 2px solid rgba(255,255,255,.25); border-radius: 50%; transform: translate(-50%, -50%); }
.pitch__half { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 14px; padding: 18px 8px; min-height: 300px; }
.pitch__empty { align-items: center; justify-content: center; color: rgba(255,255,255,.7); }
.pitch__line { display: flex; justify-content: space-around; }
.pp { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 72px; }
.pp__shirt { position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; box-shadow: 0 0 0 2px rgba(255,255,255,.7); }
.pp__rate { position: absolute; top: -10px; right: -18px; }
.pp__rate .rating { font-size: 10px; min-width: 26px; padding: 1px 4px; }
.pp__marks { position: absolute; bottom: -6px; right: -10px; display: flex; gap: 1px; }
.pm { display: inline-grid; place-items: center; font-style: normal; }
.pm--y, .pm--r { width: 7px; height: 10px; border-radius: 1.5px; } .pm--y { background: var(--gold); } .pm--r { background: #E5484D; }
.pm--s { font-size: 11px; color: #FF8A65; font-weight: 800; }
.pp__name { font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.benches { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 12px; }
.bench h4 { margin: 0 0 6px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

/* tables */
.tbl-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.pv .tbl-wrap { border: 0; background: transparent; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 9px 8px; text-align: center; border-top: 1px solid var(--line); white-space: nowrap; }
.tbl th { color: var(--muted); font-size: 12px; font-weight: 700; border-top: 0; }
.tbl__team { text-align: left !important; display: flex; align-items: center; gap: 6px; min-width: 150px; }
.tbl tr.is-me td { background: var(--accent-soft); font-weight: 700; }
.tbl__form .chip { width: 18px; height: 18px; font-size: 10px; }
.tbl__form { display: flex; gap: 2px; justify-content: center; }
.tbl__group { padding: 0 4px 6px; }
.tbl .dot { width: 8px; height: 8px; }
.sort { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 4px; min-height: 32px; }
.sort.is-on { color: var(--accent); }
.segs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.seg { min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line); background: transparent; color: var(--text); font-weight: 700; cursor: pointer; }
.seg.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* alerts */
.toggles { list-style: none; margin: 0; padding: 0; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; border-top: 1px solid var(--line); cursor: pointer; }
.toggles li:first-child .toggle { border-top: 0; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle i { width: 44px; height: 26px; border-radius: 13px; background: var(--draw); position: relative; flex: none; transition: background .15s; }
.toggle i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.toggle input:checked + i { background: var(--accent); }
.toggle input:checked + i::after { transform: translateX(18px); }
.toggle input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }

/* comments */
#comments-root { display: flex; flex-direction: column; gap: 12px; }
.cms { list-style: none; margin: 0; padding: 6px 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cm { position: relative; touch-action: pan-y; }
.cm + .cm { border-top: 1px solid var(--line); }
.cm__swipe { position: absolute; inset: 0 auto 0 0; width: 90px; display: flex; align-items: center; padding-left: 16px; color: var(--accent); font-weight: 800; font-size: 13px; opacity: 0; transition: opacity .1s; }
.cm--armed .cm__swipe { opacity: 1; }
.cm__inner { position: relative; display: flex; gap: 12px; padding: 12px 16px; background: var(--card); transition: transform .15s; }
.cm__body { min-width: 0; flex: 1; }
.cm__head { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.cm__text { margin-top: 2px; overflow-wrap: anywhere; white-space: pre-wrap; }
.cm__tag { color: var(--accent); font-weight: 700; }
.cm__quote { margin-top: 4px; padding: 6px 10px; border-radius: 8px; background: var(--panel); border-left: 3px solid var(--accent); font-size: 13px; color: var(--muted); }
.cm__quote b { color: var(--text); }
.cm__media { display: block; margin-top: 8px; max-width: min(100%, 360px); max-height: 320px; border-radius: 12px; }
.cm__actions { margin-top: 4px; }
.cm__btn, .linkbtn { background: none; border: 0; padding: 6px 0; color: var(--muted); font-weight: 700; font-size: 13px; cursor: pointer; min-height: 32px; }
.cm__btn:hover, .linkbtn:hover { color: var(--text); }
.linkbtn { color: var(--accent); }
.composer { position: sticky; bottom: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.composer__me { display: flex; align-items: center; gap: 8px; }
.composer__reply { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 8px; background: var(--panel); border-left: 3px solid var(--accent); font-size: 13px; }
.composer__att { display: flex; align-items: center; gap: 10px; }
.composer__att img, .composer__att video { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.composer__row { display: flex; align-items: flex-end; gap: 8px; }
.composer__attach { cursor: pointer; flex: none; }
.composer__field { position: relative; flex: 1; }
.composer textarea { width: 100%; min-height: 44px; max-height: 160px; resize: none; border-radius: 22px; border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 11px 16px; font: inherit; }
.act--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 800; }
.mention { position: absolute; bottom: calc(100% + 6px); left: 0; right: 0; list-style: none; margin: 0; padding: 4px; background: var(--card-head); border: 1px solid var(--line); border-radius: 12px; z-index: 5; }
.mention button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px; border: 0; background: none; color: var(--text); border-radius: 8px; cursor: pointer; text-align: left; }
.mention button:hover { background: var(--accent-soft); }
.av { position: relative; flex: none; display: inline-block; align-self: flex-start; line-height: 0; }
.av__img { display: grid; place-items: center; border-radius: 50%; object-fit: cover; background: var(--card-head); color: var(--text); font-weight: 800; }
.av__img--crest { object-fit: contain; background: var(--panel); padding: 4px; box-sizing: border-box; }
.av--xs .av__img { width: 24px; height: 24px; font-size: 11px; }
.av--sm .av__img { width: 32px; height: 32px; }
.av--md .av__img { width: 44px; height: 44px; }
.av--lg .av__img { width: 84px; height: 84px; font-size: 28px; }
.av__team, .av__flag { position: absolute; bottom: -3px; width: 40%; height: 40%; min-width: 14px; min-height: 14px; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 2px var(--card); display: grid; place-items: center; }
.av__team { left: -3px; object-fit: contain; padding: 1px; box-sizing: border-box; }
.av__flag { right: -3px; font-size: 10px; line-height: 1; }
.av--lg .av__flag { font-size: 18px; } .av--md .av__flag { font-size: 12px; }
.av--xs .av__team, .av--xs .av__flag { display: none; }
.pf { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.pf h3 { margin: 0; }
.pf__row { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.pf__photo { flex-direction: row; align-items: center; gap: 16px; }
.pf input:not([type=file]), .pf select { min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 0 12px; font: inherit; font-weight: 500; }
.pf__or { margin: 8px 0 6px; }
.act--file { display: inline-flex; cursor: pointer; }
.crest-picks { display: flex; flex-wrap: wrap; gap: 6px; max-height: 110px; overflow-y: auto; }
.crest-pick { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: var(--panel); padding: 5px; cursor: pointer; }
.crest-pick img { width: 100%; height: 100%; object-fit: contain; }
.crest-pick.is-on { border-color: var(--accent); }
.pf__actions { display: flex; gap: 8px; justify-content: flex-end; }
@media (max-width: 599px) {
  .feats { grid-template-columns: 1fr; } .feats__vs { justify-self: center; }
  .potm__rest { grid-template-columns: 1fr; }
  .pp { width: 56px; } .pp__name { max-width: 56px; font-size: 10px; }
  .pp__shirt { width: 30px; height: 30px; font-size: 12px; }
  .pitch__half { min-height: 260px; padding: 14px 2px; }
  .votes .crest { display: none; }
}

/* ---------- quick bar (match list) ---------- */
.qbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 10px 16px 14px; }
.qbar__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.qbtn { min-height: 40px; padding: 0 12px 0 14px; border-radius: 20px; border: 1px solid var(--line); background: transparent; color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.qbtn:hover { background: var(--card-head); }
.qbtn[aria-expanded="true"] { background: var(--accent-soft); border-color: var(--accent); }
.qbtn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.qbar__follow { display: flex; gap: 14px; flex-wrap: wrap; }
.fswitch { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--muted); }
.fswitch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fswitch i { width: 38px; height: 22px; border-radius: 11px; background: var(--draw); position: relative; flex: none; transition: background .15s; }
.fswitch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.fswitch input:checked + i { background: var(--accent); }
.fswitch input:checked + i::after { transform: translateX(16px); }
.fswitch input:checked ~ span { color: var(--text); }
.fswitch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.qp { margin: 0 16px 16px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.qp__note { color: var(--muted); font-size: 14px; padding: 4px 0; }
.q3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.q3 > div { padding: 0 14px; border-left: 1px solid var(--line); min-width: 0; }
.q3 > div:first-child { border-left: 0; padding-left: 0; }
.q3 h4, .qodds__group h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.q3 ul { list-style: none; margin: 0; padding: 0; }
.q3 li { display: flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 13px; min-width: 0; }
.q__min { color: var(--muted); font-weight: 700; min-width: 30px; }
.q__who { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.q__team { font-size: 11px; font-weight: 800; color: var(--muted); }
.qcard { width: 8px; height: 11px; border-radius: 1.5px; flex: none; display: inline-block; }
.qcard--y { background: var(--gold); } .qcard--r { background: #E5484D; }
.qsub { color: var(--win); font-weight: 800; }
.qstats .stat:last-child { margin-bottom: 0; }
.qodds__line .chance { padding: 0 0 14px; }
.qodds__group { margin-bottom: 12px; }
.qodds__fine { margin: 4px 0 0; font-size: 11px; color: var(--muted); }
.confirm { border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--text); padding: 0; max-width: 420px; width: calc(100% - 32px); }
.confirm::backdrop { background: rgba(3, 8, 20, .7); }
.confirm__box { padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.confirm__box h2 { margin: 0 0 4px; font-size: 18px; }
.confirm__box p { margin: 0; }
.confirm__btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
@media (max-width: 599px) {
  .qbar { padding: 8px 10px 12px; }
  .qbar__btns { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .qbtn { justify-content: center; padding: 0 6px; font-size: 12px; gap: 2px; }
  .qbar__follow { width: 100%; justify-content: space-between; }
  .qp { margin: 0 10px 12px; padding: 12px; }
  .q3 { grid-template-columns: 1fr; gap: 12px; }
  .q3 > div { border-left: 0; padding: 0; }
}
@media (min-width: 600px) {
  .qbar { flex-wrap: nowrap; }
  .qbar__follow { flex-direction: column; gap: 0; align-items: flex-start; flex: none; }
  .qbar__follow .fswitch { min-height: 32px; }
}

/* follow dropdown + pre-game quick facts */
.qbtn--follow, .qbtn--video { margin-left: auto; }
.qbtn--video { color: #fff; background: #C4302B; border-color: #C4302B; text-decoration: none; gap: 6px; }
.qbtn--video:hover, .qbtn--video[aria-expanded="true"] { background: #d93b35; border-color: #d93b35; color: #fff; }
.qvid { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.qvid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.qvid__meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.qvid__meta a { color: var(--accent); }
.spill--video { flex-direction: column; gap: 1px; }
.spill__play { display: inline-flex; color: #FF5A52; line-height: 0; }
.spill__play svg { width: 11px; height: 11px; }
.qbtn--follow.is-on { color: var(--gold-text); border-color: var(--gold-line); }
.qfollow { display: flex; flex-direction: column; gap: 4px; }
.qfollow .fswitch { min-height: 52px; align-items: center; }
.qfollow .fswitch span { display: flex; flex-direction: column; }
.qfollow .fswitch b { color: var(--text); font-size: 14px; }
.qfollow .fswitch small { font-weight: 500; color: var(--muted); font-size: 12px; }
.qform { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.qform__chips { display: flex; gap: 3px; }
.qform .chip { width: 22px; height: 22px; font-size: 11px; }
.qh2h { font-size: 14px; } .qh2h b { font-size: 16px; }
.qinfo { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.qinfo li { padding: 3px 0; }
@media (max-width: 599px) {
  .qbar__btns { width: auto; flex: 1; display: flex; }
  .qbar__btns .qbtn { flex: 1; }
  .qbtn--follow, .qbtn--video { width: 100%; justify-content: center; }
}

/* ---------- compact rows (FotMob-style sizing) ---------- */
.league__flag { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; }
.league__flag--logo { border-radius: 4px; object-fit: contain; background: #fff; padding: 2px; box-sizing: border-box; }
.league__head h2 { font-size: 15px; }
.match .crest { width: 30px; height: 30px; font-size: 11px; }
.match .crest--logo img { width: 28px; height: 28px; }
.team__name { font-size: 15px !important; font-weight: 500; }
.mid__score { font-size: 22px; }
.match__link { padding: 12px 16px 6px; }
.qbar { padding: 6px 16px 12px; gap: 6px; }
.qbtn { min-height: 34px; font-size: 13px; padding: 0 10px 0 12px; }
.qbtn .chev { width: 14px; height: 14px; }
@media (max-width: 899px) {
  .match__link { grid-template-columns: 44px minmax(0, 1fr); padding: 10px 10px 4px; }
  .match__teams { gap: 6px; }
  .team, .team--home { flex-direction: row; text-align: left; gap: 6px; }
  .team--home { flex-direction: row; justify-content: flex-end; text-align: right; }
  .team__name { font-size: 13px !important; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
  .match .crest { width: 22px; height: 22px; font-size: 8px; box-shadow: none; }
  .match .crest--logo img { width: 22px; height: 22px; }
  .mid { min-width: 44px; }
  .mid__score { font-size: 17px; }
  .mid__vs { font-size: 12px; }
  .spill { font-size: 10px; padding: 3px 5px; }
  .qbar { flex-wrap: nowrap; padding: 4px 10px 10px; gap: 5px; }
  .qbar__btns, .qbar__btns { width: auto; flex: 1 1 auto; display: flex; gap: 5px; min-width: 0; }
  .qbtn, .qbar__btns .qbtn { flex: 1 1 0; min-width: 0; min-height: 32px; font-size: 12px; padding: 0 4px; gap: 2px; justify-content: center; }
  .qbtn--follow, .qbtn--video { width: auto; flex: 1 1 0; margin-left: 0; }
  .qbtn--follow svg:first-child { display: none; }
  .qbtn__q { display: none; }
  .league__head { padding: 12px 14px; }
  .league__head h2 { font-size: 14px; }
}
@media (min-width: 900px) { .qbtn__q { display: inline; } }
@media (max-width: 899px) {
  .daybar { padding: 10px 12px; gap: 10px; }
  .filters .pill, #toggle-all { height: 36px; padding: 0 12px; font-size: 13px; }
  #toggle-all { margin-left: auto; }
  .filters { flex-wrap: nowrap; }
  .filters__pills { flex-wrap: nowrap; gap: 6px; }
  .round-btn { width: 36px; height: 36px; }
  .layout { padding: 10px; }
}
@media (max-width: 899px) {
  .topbar__inner { padding: 8px 10px; gap: 8px; }
  .brand img { width: 36px; height: 36px; border-radius: 9px; }
  .brand__word { font-size: 24px; }
  .phone-actions { gap: 0; }
}

/* ---------- font: Archivo for everything, Barlow Condensed only for the FUTSCORES word ---------- */
body, button, input, select, textarea { font-family: 'Archivo', system-ui, sans-serif; }
.mid__score, .mid__time, .mp__score, .mp__time, .h2hsum b, .h2h__score, .crest, .odd__v, .q__min, .tl__min, .cmt__min, .stat__row, .spill {
  font-family: 'Archivo', system-ui, sans-serif; font-variant-numeric: tabular-nums;
}
.mid__score, .mp__score { font-weight: 800; letter-spacing: -0.01em; }
.crest { font-weight: 800; letter-spacing: 0; }
.network__title { font-family: 'Archivo', system-ui, sans-serif; font-style: normal; font-weight: 800; }
.brand__word { font-family: 'Barlow Condensed', sans-serif; }

/* ---------- v6: centered teams, one expand arrow, folding leagues ---------- */
.match__top { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; gap: 4px; padding: 12px 12px; }
.match__top .match__link { display: block; padding: 6px 0; border-radius: 10px; }
.match__top .spill { justify-self: start; }
.spill { background: #1C3566; color: #EAF1FF; border: 1px solid #2E5AA8; font-size: 12px; font-weight: 700; padding: 5px 9px; }
.spill--pre { background: #12305E; color: #FFFFFF; border-color: var(--accent); }
.spill--live { background: rgba(255,107,107,.16); color: var(--live); border-color: rgba(255,107,107,.5); }
.xbtn { justify-self: end; width: 40px; height: 40px; border-radius: 12px; border: 1px solid #2E5AA8; background: #16294F; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.xbtn:hover { background: #1C3566; }
.xbtn .chev { width: 18px; height: 18px; transition: transform .2s; }
.xbtn[aria-expanded="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.xbtn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.match.is-expanded .qbar { padding-top: 0; }
.league__h { margin: 0; }
.league__head { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: var(--card-head); color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.league__name { flex: 1; font-weight: 700; font-size: 15px; }
.league__head .chev { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.league__head[aria-expanded="false"] .chev { transform: rotate(-90deg); }
.league__head[aria-expanded="false"] { border-bottom: 0; }
@media (max-width: 899px) {
  .match__top { grid-template-columns: 52px minmax(0, 1fr) 52px; padding: 8px 8px; gap: 2px; }
  .spill { font-size: 11px; padding: 4px 6px; }
  .xbtn { width: 36px; height: 36px; border-radius: 10px; }
  .league__name { font-size: 14px; }
}
.spill--pre { display: inline-flex; gap: 3px; align-items: baseline; }
.spill--pre b { font-weight: 800; }
.spill--pre small { font-size: .8em; font-weight: 700; opacity: .85; }
@media (max-width: 899px) {
  .match__top { grid-template-columns: 46px minmax(0, 1fr) 40px; }
  .spill--pre { flex-direction: column; align-items: center; gap: 0; line-height: 1.1; padding: 4px 7px; border-radius: 10px; }
  .xbtn { width: 34px; height: 34px; }
  .team, .team--home { gap: 5px; }
}

/* ===== Match page header, Sofascore style ===== */
.mp { gap: 12px; }
.hs { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); padding: 8px 12px 18px; text-align: center; display: flex; flex-direction: column; gap: 12px;
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--home) 38%, transparent), transparent 60%),
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--away) 38%, transparent), transparent 60%),
    linear-gradient(180deg, #13244A 0%, #0A1530 100%); }
.hs--live { border-color: rgba(255,107,107,.35); }
.hs__bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px; }
.hs__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--text); cursor: pointer; text-decoration: none; }
.hs__icon:hover { background: rgba(255,255,255,.08); }
.hs__icon.is-on { color: var(--gold-text); }
.hs__icon.is-on svg { fill: currentColor; }
.hs__btns { display: flex; }
.hs__league { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; font-weight: 700; font-size: 14px; }
.hs__league > span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs__league small { color: var(--muted); font-weight: 600; font-size: 12px; }
.hs__league .tiny-logo { width: 22px; height: 22px; }
.hs__date { align-self: center; padding: 5px 14px; border-radius: 999px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.1); font-size: 13px; font-weight: 600; color: var(--text); }
.hs__teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 8px; }
.hs__team { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.hs__crest { position: relative; display: flex; align-items: center; }
.hs__crest .crest--lg { width: 64px; height: 64px; }
.hs__crest .crest--lg.crest--logo img { width: 64px; height: 64px; }
.tstar { position: absolute; right: -30px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; border: 0; background: transparent; color: rgba(255,255,255,.55); cursor: pointer; padding: 0; }
.tstar svg { width: 18px; height: 18px; }
.tstar:hover { color: #fff; }
.tstar.is-on { color: var(--gold); }
.tstar.is-on svg { fill: currentColor; }
.hs__name { font-weight: 700; font-size: 15px; line-height: 1.2; overflow-wrap: anywhere; }
.hs__mid { min-width: 110px; padding-top: 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hs__score { display: flex; align-items: center; gap: 10px; font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; }
.hs__score span { color: var(--muted); font-weight: 600; font-size: 34px; }
.hs__score b { font-weight: 800; }
.hs__score b.lost { color: #B9C6E4; opacity: .8; }
.hs__score--live { color: var(--live); }
.hs__time { font-weight: 800; font-size: 28px; line-height: 1.1; }
.hs__time--off { font-size: 18px; color: var(--muted); text-decoration: line-through; }
.hs__status { font-size: 13px; font-weight: 700; color: var(--muted); }
.hs__status--live { color: var(--live); display: inline-flex; align-items: center; gap: 6px; }
.hs__ht { font-size: 12px; color: var(--muted); }
.hs__scorers { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: 8px; align-items: start; font-size: 12.5px; color: #D5DFF5; line-height: 1.6; border-top: 1px solid rgba(255,255,255,.08); padding-top: 10px; }
.hs__sc { text-align: left; }
.hs__sc--home { text-align: right; }
.hs__ball { display: grid; place-items: center; padding-top: 3px; }
.hs__ball svg { width: 15px; height: 15px; }
.hs__chance { text-align: left; }
.hs .hero__red { color: #FFB4B4; }

/* Underline tabs */
.mp__body .tabs { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 2px; gap: 2px; margin-bottom: 12px; }
.mp__body .tab { border-radius: 0; padding: 0 14px; min-height: 46px; position: relative; background: transparent; }
.mp__body .tab:hover { background: transparent; color: var(--text); }
.mp__body .tab[aria-selected="true"] { background: transparent; color: var(--accent); }
.mp__body .tab[aria-selected="true"]::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }

/* Highlights */
.hl { display: flex; flex-direction: column; gap: 10px; }
.hl__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.hl__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hl__title { font-weight: 700; }
.hl__yt { color: var(--accent); align-self: flex-start; }
.hlcard { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer; color: var(--text); font: inherit; padding: 10px; }
.hlcard:hover { border-color: var(--accent); }
.hlcard__thumb { position: relative; flex: none; width: 128px; aspect-ratio: 16 / 9; border-radius: 10px; background: #000 center / cover no-repeat; display: grid; place-items: center; }
.hlcard__play { width: 40px; height: 40px; border-radius: 50%; background: rgba(196,48,43,.95); color: #fff; display: grid; place-items: center; }
.hlcard__text { display: flex; flex-direction: column; gap: 2px; }

/* Match flow */
.flow { position: relative; height: 74px; margin: 4px 0 0 30px; }
.flow__track { position: absolute; left: 0; right: 0; top: 50%; height: 6px; transform: translateY(-50%); border-radius: 3px; background: var(--card-head); }
.flow__played { position: absolute; left: 4%; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, var(--accent-soft), #2A4F8E); }
.flow__ht { position: absolute; top: 12px; transform: translateX(-50%); font-size: 10px; color: var(--muted); font-weight: 700; }
.flow__ht::before { content: ''; position: absolute; left: 50%; top: -15px; height: 9px; border-left: 1px dashed var(--muted); }
.flow__lab { position: absolute; left: -30px; }
.flow__lab--home { top: 6px; } .flow__lab--away { bottom: 6px; }
.flow__mark { position: absolute; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); box-shadow: 0 0 0 2px var(--c); }
.flow__mark--home { top: 6px; } .flow__mark--away { bottom: 6px; }
.flow__mark svg { width: 13px; height: 13px; }
.flow__red { width: 8px; height: 11px; border-radius: 1.5px; background: #E5484D; display: block; }
.flow__ticks { display: flex; justify-content: space-between; margin-left: 30px; padding: 0 2%; font-size: 11px; color: var(--muted); }

/* Player photos on the pitch */
.pp__shirt--photo { width: 44px; height: 44px; background: #0B1630 !important; box-shadow: 0 0 0 2px var(--ring), 0 2px 6px rgba(0,0,0,.4); }
.pp__shirt--photo img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center top; }
.pp__shirt--photo .pp__num { display: none; }
.pp__name b { color: rgba(255,255,255,.75); font-weight: 600; }
.lu__num { position: relative; overflow: hidden; }
.lu__num img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; background: var(--card-head); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--accent-ink); padding: 10px 18px; border-radius: 999px; font-weight: 700; z-index: 50; }

@media (max-width: 520px) {
  .hs { padding: 6px 6px 14px; gap: 10px; }
  .hs__crest .crest--lg, .hs__crest .crest--lg.crest--logo img { width: 52px; height: 52px; }
  .tstar { right: -26px; width: 26px; }
  .hs__score { font-size: 38px; gap: 8px; }
  .hs__mid { min-width: 96px; }
  .hs__name { font-size: 14px; }
  .hlcard__thumb { width: 108px; }
  .pp__shirt--photo { width: 38px; height: 38px; }
}

/* Quick facts: small team logos, green on / red off for subs */
.q__logo { width: 16px; height: 16px; object-fit: contain; flex: none; }
.qsubrow { align-items: flex-start !important; }
.qsubrow .q__min, .qsubrow .q__logo { margin-top: 2px; }
.q__subs { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.q__in, .q__out { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q__in { color: #3DDC97; font-weight: 600; }
.q__out { color: #FF6B6B; font-size: 12px; }
.q__in svg, .q__out svg { flex: none; }

/* Jump-to-goal buttons under highlight videos */
.moments { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: none; }
.moments::-webkit-scrollbar { display: none; }
.moment { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card-head); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.moment:hover, .moment.is-on { border-color: var(--accent); }
.moment.is-on { background: var(--accent-soft); }
.moment__ball { font-size: 12px; }
.moment__t { color: var(--accent); font-variant-numeric: tabular-nums; }

.qdelay { margin: -4px 0 4px 46px; padding-left: 12px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.qdelay .segs { margin: 0 0 4px; }

/* Game page: Follow tab */
.hs__team { color: inherit; text-decoration: none; border-radius: 12px; padding: 4px; }
.hs__team:hover .hs__name { text-decoration: underline; }
.tab__follow { display: inline-flex; align-items: center; gap: 6px; }
.tab__follow svg { width: 17px; height: 17px; }
.tab__follow.is-on { color: var(--gold-text); }
.tab__follow.is-on svg { fill: currentColor; }
.follow { display: flex; flex-direction: column; }
.toggle--big { min-height: 64px; border-bottom: 1px solid var(--line); }
.toggle--big span { display: flex; flex-direction: column; gap: 2px; }
.toggle--big b { font-size: 15px; }
.toggle--big small { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.follow__sub { margin-left: 14px; padding-left: 14px; border-left: 2px solid var(--line); }
.follow__sub .segs { padding: 10px 0 4px; margin: 0; }
.follow__more { padding: 12px 0; border-bottom: 1px solid var(--line); }
.follow__more summary { cursor: pointer; font-weight: 700; color: var(--accent); min-height: 32px; display: flex; align-items: center; }
.toggle--big { border-top: 0; }

/* ===== Team & player pages ===== */
.ph-hero { padding-bottom: 20px; }
.ph-id { display: flex; align-items: center; gap: 16px; text-align: left; padding: 4px 8px 0; }
.ph-id .crest--lg, .ph-id .crest--lg.crest--logo img { width: 64px; height: 64px; }
.ph-name { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.15; }
.ph-sub { color: var(--muted); font-size: 15px; font-weight: 600; margin-top: 4px; }
.ph-team { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 5px 12px 5px 6px; border-radius: 999px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.1); color: var(--text); text-decoration: none; font-weight: 700; font-size: 14px; }
.followbtn { min-height: 36px; padding: 0 16px; margin-left: 4px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.85); background: transparent; color: #fff; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; align-self: center; }
.followbtn.is-on { background: var(--gold); border-color: var(--gold); color: #1B1505; }
.hs__btns { align-items: center; }

/* Player photos */
.ph { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--card-head); color: var(--muted); font-weight: 800; font-size: 13px; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; background: var(--card-head); }
.ph--sm { width: 32px; height: 32px; font-size: 11px; }
.ph--xl { width: 80px; height: 80px; font-size: 24px; box-shadow: 0 0 0 3px rgba(255,255,255,.9); background: #DDE5F5; }

/* Game line (crest · score · crest) */
.gl { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-height: 44px; }
.gl__team { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gl__team--home { justify-content: flex-end; }
.gl__score, .gl__time { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 52px; text-align: center; }
.gl:hover .gl__team { text-decoration: underline; }
.nm { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.nm__league { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: var(--card-head); padding: 4px 10px; border-radius: 999px; }

/* Team form */
.tform { display: flex; justify-content: space-between; gap: 6px; }
.tform__g { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: 1; }
.tform__s { min-width: 54px; text-align: center; padding: 4px 6px; border-radius: 6px; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.tform__s--W { background: var(--win); color: var(--accent-ink); } .tform__s--D { background: var(--draw); color: var(--text); } .tform__s--L { background: var(--loss); color: #fff; }

/* Mini pitch with player photos */
.pitch--mini .pitch__half, .pitch--mini { min-height: 0; }
.pitch--mini { display: flex; flex-direction: column; gap: 16px; padding: 18px 6px; }
.pitch--mini::before, .pitch--mini::after { display: none; }
.pitch--mini .pp { position: relative; text-decoration: none; }
.pp__ph { position: relative; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #DDE5F5; color: #15213F; font-weight: 800; font-size: 13px; box-shadow: 0 0 0 2px rgba(255,255,255,.8); }
.pp__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.pitch--mini .pp__rate { position: absolute; top: -8px; left: 50%; margin-left: 8px; right: auto; }
.pp__ga { display: flex; gap: 3px; margin-top: -10px; position: relative; }
.pp__ga i, .rg__ga i { display: inline-flex; align-items: center; gap: 2px; font-style: normal; font-size: 11px; font-weight: 800; background: #fff; color: #15213F; border-radius: 999px; padding: 1px 5px; }
a.pp { text-decoration: none; }
a.pp:hover .pp__name { text-decoration: underline; }

/* Leaders */
.leads { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.lead h4 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.lead__row { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--text); font-weight: 600; }
.lead__row span:not(.ph) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Match list on team page */
.mlist__row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 28px; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding: 6px 0; }
.mlist__row:first-child { border-top: 0; }
.mlist__meta { display: flex; flex-direction: column; font-size: 13px; font-weight: 700; line-height: 1.3; }
.mlist__meta .tiny { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip--none { background: var(--card-head); color: var(--muted); }

/* Squad */
.sq__row { display: flex; align-items: center; gap: 12px; min-height: 56px; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); }
.sq__row:first-child { border-top: 0; }
.sq__name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sq__num { width: 28px; text-align: right; font-weight: 800; color: var(--muted); }

/* Stat boxes */
.sboxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.sboxes--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sbox { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 12px; background: var(--panel); text-align: center; }
.sbox b { font-size: 22px; font-weight: 800; }
.sbox span { font-size: 12px; color: var(--muted); }

/* Player profile grid */
.pinfo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 8px; text-align: center; }
.pinfo div { display: flex; flex-direction: column; gap: 4px; }
.pinfo b { font-size: 17px; font-weight: 700; }
.pinfo span { font-size: 12.5px; color: var(--muted); }

/* Radar */
.ptr__sub { margin: -6px 0 6px; }
.radar { display: block; width: 100%; max-width: 380px; margin: 0 auto; overflow: visible; }
.rd__grid { fill: none; stroke: var(--line); stroke-width: 1.5; }
.rd__grid--in { stroke-dasharray: 4 4; }
.rd__axis { stroke: var(--line); stroke-dasharray: 3 4; }
.rd__shape { fill: color-mix(in srgb, var(--accent) 45%, transparent); stroke: var(--accent); stroke-width: 2; }
.rd__l { fill: var(--text); font-size: 12px; font-weight: 600; }
.rd__v { fill: var(--muted); font-size: 12px; }

/* Recent games */
.rg__row { display: grid; grid-template-columns: 52px 20px minmax(0, 1fr) auto 34px 36px; align-items: center; gap: 8px; min-height: 48px; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); }
.rg__row:first-child { border-top: 0; }
.rg__opp { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg__ga { display: flex; gap: 3px; }
.r--none { background: var(--card-head); color: var(--muted); }
.tbl--kv td:first-child { font-weight: 600; }
.tbl__team a, .formrow a, .pitch-head a, .lu__player, .tl__who a, .potm a, .feat__name { color: inherit; text-decoration: none; }
.tbl__team a:hover, .formrow a:hover, .pitch-head a:hover, .tl__who a:hover, .potm a:hover { text-decoration: underline; }
.tbl__team a { display: inline-flex; align-items: center; gap: 4px; }

@media (max-width: 520px) {
  .ph-name { font-size: 22px; }
  .pinfo b { font-size: 15px; }
  .sbox b { font-size: 19px; }
  .sboxes--4 { gap: 6px; }
  .tform__s { min-width: 46px; font-size: 13px; }
  .rg__row { grid-template-columns: 46px 20px minmax(0, 1fr) auto 30px 34px; gap: 6px; }
}
.sbox .rating { color: #04122B; }
.radar { max-width: 420px; }
