/* Koora Live — "stadium scoreboard" identity
   Pitch green chrome, amber scoreboard digits, quiet white cards.
   Logical properties everywhere so RTL (ar) and LTR (fr) share one stylesheet. */

@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/readex-pro-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/readex-pro-arabic-500-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/readex-pro-arabic-700-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/readex-pro-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/readex-pro-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/readex-pro-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/readex-pro-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/readex-pro-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --pitch: #0e3b2c;
  --pitch-2: #15523d;
  --pitch-3: #1d6b50;
  --amber: #f4b43a;
  --amber-ink: #3a2a00;
  --page: #edf2ef;
  --card: #ffffff;
  --card-2: #f6f9f7;
  --ink: #13201a;
  --muted: #5a6b62;
  --line: #d6e0da;
  --link: #0f6a4a;
  --live: #d42a3c;
  --warn: #a8640a;
  --warn-bg: #fff4e0;
  --focus: #f4b43a;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 0 rgba(14, 59, 44, .06), 0 1px 3px rgba(14, 59, 44, .06);
  --font: "Readex Pro", "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --pitch: #0a2b20;
    --pitch-2: #113f2f;
    --pitch-3: #18563f;
    --page: #0c1612;
    --card: #12201a;
    --card-2: #172820;
    --ink: #e4ede8;
    --muted: #97aaa0;
    --line: #23382e;
    --link: #7fd3ae;
    --warn-bg: #2b2210;
    --warn: #f0b85a;
    --shadow: none;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0; }
p { margin: 0 0 .8em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.wrap { width: 100%; max-width: 1220px; margin-inline: auto; padding-inline: 16px; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--amber); color: var(--amber-ink); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { top: 8px; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header {
  background-color: var(--pitch);
  /* mowed-lawn stripes */
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 64px, transparent 64px 128px);
  color: #fff;
  position: sticky; top: 0; z-index: 30;
}
.site-header__bar { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 20px; letter-spacing: .2px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { display: block; }
.menu-btn { display: none; background: none; border: 0; color: #fff; padding: 8px; margin-inline-start: -8px; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; display: block; }
.search { flex: 1; display: flex; max-width: 440px; margin-inline-start: auto; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; overflow: hidden; }
.search input, .site-header .search input[type="search"] { flex: 1; min-width: 0; background: transparent; border: 0; border-radius: 0; padding: 8px 16px; color: #fff; outline: none; min-height: 40px; }
.search input::placeholder { color: rgba(255,255,255,.65); }
.search button { background: transparent; border: 0; color: #fff; padding: 0 14px; cursor: pointer; }
.search button svg { width: 20px; height: 20px; display: block; }
.search:focus-within { border-color: var(--amber); }
.search--page { background: var(--card); border-color: var(--line); margin-bottom: 14px; max-width: none; }
.search--page input[type="search"] { color: var(--ink); background: transparent; border: 0; }
.search--page button.btn { border-radius: 0; background: var(--pitch); color: #fff; padding: 0 18px; }
.lang-switch { color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 5px 14px; font-size: 14px; white-space: nowrap; }
.lang-switch:hover { background: rgba(255,255,255,.1); text-decoration: none; }
.site-nav { background: var(--pitch-2); border-top: 1px solid rgba(255,255,255,.08); }
.site-nav ul { list-style: none; margin: 0 auto; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.site-nav ul::-webkit-scrollbar { display: none; }
.site-nav a { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.86); padding: 11px 14px; font-weight: 500; white-space: nowrap; border-bottom: 3px solid transparent; }
.site-nav a:hover { color: #fff; text-decoration: none; }
.site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--amber); }
.pill-live { background: var(--live); color: #fff; border-radius: 999px; font-size: 11px; line-height: 1; padding: 3px 7px; font-weight: 700; }

/* ---------- Layout ---------- */
.main { padding-top: 18px; padding-bottom: 40px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.layout--single { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin-inline: auto; }
.content { min-width: 0; }
.page-title { font-size: 24px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.section-title { font-size: 18px; font-weight: 700; margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; }
.section-title small { color: var(--muted); font-weight: 500; font-size: 14px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.section-head a { font-size: 14px; font-weight: 500; }
.panel { margin-top: 8px; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sub-title { font-size: 15px; margin: 4px 0 8px; }

/* ---------- Buttons, chips, forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--pitch); color: #fff; border: 1px solid var(--pitch); border-radius: var(--radius-sm); padding: 8px 16px; font-weight: 500; cursor: pointer; min-height: 40px; }
.btn:hover { background: var(--pitch-3); text-decoration: none; }
.btn--ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--card-2); }
.btn--small { min-height: 34px; padding: 5px 12px; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 6px 14px; font-size: 14px; cursor: pointer; min-height: 36px; }
.chip span { color: var(--muted); font-size: 12px; }
.chip:hover { border-color: var(--pitch-3); text-decoration: none; }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--pitch); border-color: var(--pitch); color: #fff; }
.chip.is-active span, .chip[aria-pressed="true"] span { color: var(--amber); }
.chips--links { margin-bottom: 14px; }
select, input[type="date"], input[type="search"], input[type="text"], input[type="email"], input[type="password"], textarea {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 7px 10px; min-height: 38px; max-width: 100%;
}
.form { display: grid; gap: 14px; max-width: 560px; margin-top: 12px; }
.form label { display: grid; gap: 6px; font-weight: 500; }
.form .hp { position: absolute; inset-inline-start: -9999px; }
.notice { background: var(--warn-bg); color: var(--warn); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; }
.notice--ok { background: #e3f4ea; color: #145b37; }
.unavailable { color: var(--muted); background: var(--card-2); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 14px; font-size: 14px; margin: 0; }
.source-note { color: var(--muted); font-size: 12.5px; margin-top: 10px; }

/* ---------- Date bar ---------- */
.datebar { display: flex; align-items: stretch; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; box-shadow: var(--shadow); }
.datebar__arrow { display: grid; place-items: center; width: 40px; border-radius: var(--radius-sm); color: var(--ink); }
.datebar__arrow:hover { background: var(--card-2); }
.datebar__arrow svg { width: 20px; height: 20px; }
[dir="rtl"] .datebar__arrow svg { transform: scaleX(-1); }
.datebar__tabs { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.datebar__tabs a { display: grid; justify-items: center; padding: 6px 4px; border-radius: var(--radius-sm); color: var(--ink); line-height: 1.3; }
.datebar__tabs a:hover { background: var(--card-2); text-decoration: none; }
.datebar__tabs a small { color: var(--muted); font-size: 12px; }
.datebar__tabs a.is-active { background: var(--pitch); color: #fff; }
.datebar__tabs a.is-active small { color: var(--amber); }
.datebar__pick { display: flex; align-items: center; gap: 6px; }
.fresh { font-size: 12.5px; color: var(--muted); margin: 8px 2px 0; }
.fresh--stale { color: var(--warn); background: var(--warn-bg); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 13.5px; }

/* ---------- Filters ---------- */
.filters { margin: 14px 0 6px; display: grid; gap: 10px; }
.filters__row { display: flex; flex-wrap: wrap; gap: 8px; }
.filters__row select, .filters__row input { flex: 1 1 180px; }
.filters__empty { margin: 4px 0; }

/* ---------- Competition groups ---------- */
.groups { display: grid; gap: 14px; margin-top: 12px; }
.group { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.group__head { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--card-2); border-bottom: 1px solid var(--line); }
.group__title { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; flex: 1; }
.group__title:hover { text-decoration: none; }
.group__title span { display: grid; line-height: 1.25; min-width: 0; }
.group__title strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group__title small { color: var(--muted); font-size: 12px; }
a.group__title:hover strong { color: var(--link); }
.group__count { font-size: 12px; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; }
.group__toggle { background: none; border: 0; padding: 6px; cursor: pointer; color: var(--muted); border-radius: 6px; }
.group__toggle svg { width: 20px; height: 20px; display: block; transition: transform .2s; }
.group__toggle[aria-expanded="false"] svg { transform: rotate(-90deg); }
[dir="rtl"] .group__toggle[aria-expanded="false"] svg { transform: rotate(90deg); }
.group.is-collapsed .group__body { display: none; }
.group__body { display: grid; }

/* ---------- Match card ---------- */
.match {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 12px 10px;
  color: var(--ink);
  border-top: 1px solid var(--line);
}
.group__body .match:first-child { border-top: 0; }
.match:hover { background: var(--card-2); text-decoration: none; }
.match__team { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.match__name { font-weight: 500; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.match__team.is-winner .match__name { font-weight: 700; }
.match__mid { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.match__comp { grid-column: 1 / -1; text-align: center; font-size: 12px; color: var(--muted); margin-top: -2px; }
.match[hidden], .group[hidden] { display: none; }

/* Scoreboard — the signature element */
.board { display: inline-flex; flex-direction: column; align-items: center; }
.board__score, .board__time {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--pitch); color: var(--amber);
  border-radius: 7px; padding: 4px 12px;
  font-weight: 700; font-size: 20px; line-height: 1.25;
  font-variant-numeric: tabular-nums; letter-spacing: .5px;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.25);
  min-width: 82px; justify-content: center;
}
.board__score i { font-style: normal; color: rgba(244,180,58,.55); font-weight: 400; }
.board--time .board__time { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 18px; }
.board__pen { display: inline-flex; gap: 4px; align-items: center; font-size: 11px; color: var(--muted); margin-top: 3px; border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; font-variant-numeric: tabular-nums; }
.board__pen[hidden] { display: none; }
.board__pen i { font-style: normal; }
.mini-score { display: inline-flex; gap: 4px; font-variant-numeric: tabular-nums; }
.mini-score i { font-style: normal; }
.board--big .board__score, .board--big .board__time { font-size: 38px; padding: 6px 22px; border-radius: 10px; min-width: 150px; }
.match--postponed .board__time, .match--cancelled .board__time { text-decoration: line-through; color: var(--muted); }

/* Status badges */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; line-height: 1; padding: 4px 9px; border-radius: 999px; background: var(--card-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge--upcoming { color: var(--link); border-color: transparent; background: rgba(15,106,74,.08); }
.badge--live, .badge--extra_time, .badge--penalties { background: var(--live); color: #fff; border-color: var(--live); }
.badge--live::before, .badge--extra_time::before, .badge--penalties::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.6s ease-in-out infinite; }
.badge--halftime { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }
.badge--finished { background: var(--card-2); color: var(--muted); }
.badge--postponed { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.badge--cancelled, .badge--interrupted { background: transparent; color: var(--muted); border-style: dashed; }
.badge--unknown { background: transparent; color: var(--muted); border-style: dotted; }
.match--live .board__score, .match--extra_time .board__score, .match--penalties .board__score { box-shadow: inset 0 -2px 0 rgba(0,0,0,.25), 0 0 0 2px var(--live); }
.dot-live { width: 10px; height: 10px; border-radius: 50%; background: var(--live); display: inline-block; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.is-updated .board__score { animation: flash 1.2s ease-out 1; }
@keyframes flash { 0% { background: var(--amber); color: var(--pitch); } 100% { background: var(--pitch); color: var(--amber); } }

/* Crests */
.crest { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; }
.crest img { width: 100%; height: 100%; object-fit: contain; display: block; }
.crest--xs { width: 18px; height: 18px; }
.crest--sm { width: 22px; height: 22px; }
.crest--lg { width: 56px; height: 56px; }
.crest--xl { width: 72px; height: 72px; }
.logo-fallback {
  border-radius: 50%;
  background: hsl(var(--h) 38% 92%);
  color: hsl(var(--h) 45% 26%);
  border: 1.5px solid hsl(var(--h) 30% 78%);
  font-weight: 700; font-size: 12px; line-height: 1; letter-spacing: .3px;
}
@media (prefers-color-scheme: dark) { .logo-fallback { background: hsl(var(--h) 25% 20%); color: hsl(var(--h) 50% 80%); border-color: hsl(var(--h) 20% 32%); } }
.crest--xs.logo-fallback { font-size: 8px; }
.crest--sm.logo-fallback { font-size: 9px; }
.crest--lg.logo-fallback, .crest--xl.logo-fallback { font-size: 20px; }

/* ---------- Live strip ---------- */
.live-strip { margin-top: 14px; }
.live-strip .section-title { margin-top: 0; }
.live-strip__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.live-strip__list .match { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--live); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Rows (compact lists) ---------- */
.rows { display: grid; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 9px 12px; border-top: 1px solid var(--line); color: var(--ink); font-size: 14px; }
.row:first-child { border-top: 0; }
a.row:hover { background: var(--card-2); text-decoration: none; }
.row__date { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted); margin-bottom: -4px; }
.row__team { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: end; }
.row__team--away { text-align: start; }
.row__score { display: inline-flex; justify-content: center; gap: 5px; background: var(--pitch); color: var(--amber); border-radius: 5px; padding: 1px 8px; font-variant-numeric: tabular-nums; font-size: 13.5px; min-width: 52px; text-align: center; }
.row__score i { font-style: normal; color: rgba(244,180,58,.55); }
.row__score--time { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Sidebar ---------- */
.sidebar { display: grid; gap: 16px; position: sticky; top: 118px; }
.widget { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.widget__title { font-size: 16px; font-weight: 700; margin-bottom: 10px; padding-inline-start: 10px; border-inline-start: 3px solid var(--amber); }
.widget .rows { border-radius: var(--radius-sm); }
.widget__more { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 500; }
.widget__select { display: flex; gap: 6px; margin-bottom: 10px; }
.widget__select select { flex: 1; min-width: 0; }
.toplist, .newslist, .complist { list-style: none; margin: 0; padding: 0; display: grid; }
.toplist { counter-reset: top; }
.toplist li { counter-increment: top; display: grid; grid-template-columns: 26px 1fr; column-gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
.toplist li:first-child { border-top: 0; }
.toplist li::before { content: counter(top); grid-row: span 2; color: var(--pitch-3); font-weight: 700; font-size: 18px; line-height: 1.2; }
.toplist a, .newslist a { color: var(--ink); }
.toplist small, .newslist small { color: var(--muted); font-size: 12px; }
.newslist li { padding: 8px 0; border-top: 1px solid var(--line); display: grid; font-size: 14px; line-height: 1.45; }
.newslist li:first-child { border-top: 0; }
.complist a { display: flex; align-items: center; gap: 10px; padding: 7px 4px; color: var(--ink); border-radius: 6px; font-size: 14px; }
.complist a:hover { background: var(--card-2); text-decoration: none; }

/* ---------- Standings ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
.standings { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.standings th, .standings td { padding: 7px 8px; text-align: center; border-top: 1px solid var(--line); white-space: nowrap; }
.standings thead th { background: var(--card-2); color: var(--muted); font-weight: 500; font-size: 12px; border-top: 0; }
.standings .t-team { text-align: start; min-width: 150px; }
.t-team__in { display: flex; align-items: center; gap: 8px; }
.standings .t-team a { color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.standings .t-pos { color: var(--muted); width: 32px; }
.standings .t-pts { font-weight: 700; }
.standings tr.is-hl td { background: rgba(244,180,58,.16); }
.standings--compact { font-size: 13px; }
.standings--compact .t-team { min-width: 0; max-width: 170px; }
.standings--compact .t-team__in a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-group { font-size: 14px; margin: 14px 0 6px; }

/* ---------- News ---------- */
.home-news { margin-top: 26px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.news-grid--list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card-news { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.card-news__media { display: block; aspect-ratio: 16 / 9; background: var(--card-2); overflow: hidden; }
.card-news__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-news__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-news h3 { font-size: 15.5px; font-weight: 700; line-height: 1.45; }
.card-news h3 a { color: var(--ink); }
.card-news p { color: var(--muted); font-size: 13.5px; margin: 0; }
.card-news footer { margin-top: auto; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--muted); padding-top: 6px; }
.card-news .src { color: var(--link); font-weight: 500; }
.card-news .ext { margin-inline-start: auto; }
.card-news--own { border-top: 3px solid var(--amber); }
/* Graphic cover: an honest illustration (pitch lines), never a fake photo */
.cover { position: relative; display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, hsl(var(--h) 45% 24%), var(--pitch)); color: rgba(255,255,255,.22); }
.cover svg { width: 62%; height: 62%; stroke-width: 1.4; }
.cover__label { position: absolute; inset-inline-start: 10px; bottom: 8px; color: #fff; font-size: 12px; font-weight: 500; background: rgba(0,0,0,.28); padding: 2px 8px; border-radius: 999px; }

/* ---------- Entity headers / tabs ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.crumbs > * + *::before { content: "/"; margin-inline-end: 6px; color: var(--line); }
.entity-head { display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); flex-wrap: wrap; }
.entity-head h1 { font-size: 24px; }
.entity-head p { margin: 2px 0 0; }
.tags { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags a { display: inline-block; font-size: 12.5px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--ink); background: var(--card); }
.form-guide { display: flex; gap: 4px; margin-inline-start: auto; }
.fg { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #fff; }
.fg--w { background: #1d8a52; } .fg--d { background: #8a949b; } .fg--l { background: var(--live); }
.subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.subtabs a { padding: 10px 14px; color: var(--muted); font-weight: 500; border-bottom: 3px solid transparent; white-space: nowrap; }
.subtabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--pitch); }
.mdnav { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.mdnav form { display: flex; gap: 6px; }
.comp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.comp-grid--small { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.comp-card { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; color: var(--ink); height: 100%; }
.comp-card:hover { border-color: var(--pitch-3); text-decoration: none; }
.comp-card span { display: grid; min-width: 0; }
.comp-card small { color: var(--muted); font-size: 12.5px; }
.comp-card__meta { color: var(--link) !important; }

/* ---------- Match page ---------- */
.hero {
  background-color: var(--pitch);
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 72px, transparent 72px 144px);
  color: #fff; border-radius: var(--radius); padding: 16px 16px 14px; box-shadow: var(--shadow);
}
.hero a { color: #fff; }
.hero__comp { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; opacity: .92; }
.hero__main { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; margin: 16px 0 12px; }
.hero__team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.hero__team h2 { font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.hero__team small { opacity: .7; font-size: 12px; }
.hero__center { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero .board--time .board__time { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.hero .board__score { background: #062218; }
.hero__ht { opacity: .8; font-size: 12.5px; }
.hero .board__pen { color: rgba(255,255,255,.75); }
.hero__meta { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: 13.5px; opacity: .92; }
.hero__meta li { display: inline-flex; align-items: center; gap: 6px; }
.hero__meta svg { width: 16px; height: 16px; }
.tabs { margin-top: 14px; }
.tabs__list { display: flex; gap: 4px; overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 5px; scrollbar-width: thin; position: sticky; top: 104px; z-index: 5; }
.tabs__list a { padding: 8px 14px; border-radius: var(--radius-sm); color: var(--muted); font-weight: 500; white-space: nowrap; font-size: 14px; }
.tabs__list a:hover { background: var(--card-2); text-decoration: none; color: var(--ink); }
.tabs__list a[aria-selected="true"] { background: var(--pitch); color: #fff; }
.tab-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 12px; box-shadow: var(--shadow); scroll-margin-top: 170px; }
.panel-title { font-size: 17px; margin-bottom: 12px; }
.js .tabs .panel-title { display: none; }
.lead { font-size: 16px; line-height: 1.75; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1px; margin: 14px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.facts div { padding: 9px 12px; background: var(--card); }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.scorers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0; }
.scorers__col { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.scorers__col li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; line-height: 1.35; }
.scorers__col li b { white-space: nowrap; }
.scorers__col--away { justify-items: end; }
.scorers__col--away li { justify-content: flex-end; }
.scorers__col small { color: var(--muted); font-size: 12px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 8px; }
.timeline::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 50%; width: 2px; background: var(--line); transform: translateX(-1px); }
.timeline__item { display: grid; grid-template-columns: 1fr 52px 1fr; align-items: center; gap: 10px; position: relative; }
.timeline__min { grid-column: 2; justify-self: center; background: var(--pitch); color: var(--amber); font-weight: 700; font-size: 13px; border-radius: 999px; padding: 2px 9px; z-index: 1; font-variant-numeric: tabular-nums; }
.timeline__body { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 7px 10px; font-size: 14px; }
.timeline__body small { color: var(--muted); width: 100%; font-size: 12px; }
.timeline__item--home .timeline__body { grid-column: 1; grid-row: 1; justify-content: flex-end; text-align: end; }
.timeline__item--away .timeline__body { grid-column: 3; grid-row: 1; }
.ev-ico { width: 16px; height: 16px; flex: none; }
.ev-ico--goal { color: var(--ink); }
.ev-ico--og { color: var(--live); }
.ev-ico--miss { color: var(--muted); }
.ev-ico--sub { color: var(--link); }
.ev-card { width: 11px; height: 15px; border-radius: 2px; display: inline-block; flex: none; }
.ev-card--yellow { background: #f2c94c; }
.ev-card--red { background: var(--live); }
.ev-card--second { background: linear-gradient(135deg, #f2c94c 50%, var(--live) 50%); }
.ev-var { font-size: 10px; font-weight: 700; border: 1px solid var(--ink); border-radius: 3px; padding: 0 3px; }
.lineups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lineup h3 { font-size: 15px; margin-bottom: 8px; }
.lineup__f { background: var(--pitch); color: var(--amber); border-radius: 4px; padding: 0 6px; font-size: 12px; }
.lineup ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 2px; font-size: 14px; }
.lineup li { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.lineup li b { min-width: 24px; color: var(--pitch-3); font-variant-numeric: tabular-nums; }
.lineup li small { margin-inline-start: auto; color: var(--muted); }
.lineup h4 { font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
.statbars { display: grid; gap: 12px; }
.statbars__head { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; }
.statbar__labels { display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; font-size: 14px; text-align: center; margin-bottom: 4px; }
.statbar__labels b:first-child { text-align: start; }
.statbar__labels b:last-child { text-align: end; }
.statbar__labels span { color: var(--muted); font-size: 13px; }
.statbar__track { display: flex; gap: 4px; height: 8px; }
.statbar__home, .statbar__away { height: 100%; border-radius: 999px; background: var(--line); }
.statbar__home.is-lead { background: var(--pitch-3); }
.statbar__away.is-lead { background: var(--amber); }
.h2h-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.h2h-sum div { display: grid; justify-items: center; background: var(--card-2); border-radius: var(--radius-sm); padding: 10px; text-align: center; }
.h2h-sum b { font-size: 24px; color: var(--pitch-3); }
.h2h-sum span { font-size: 13px; color: var(--muted); }
.row--static { cursor: default; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; }
.share__label { font-size: 13.5px; color: var(--muted); }
.share__btn { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; min-height: 34px; display: inline-flex; align-items: center; }
.share__btn:hover { border-color: var(--pitch-3); text-decoration: none; }
.share__done { font-size: 13px; color: var(--link); }
.backlink { margin-top: 18px; }
.notice { margin-top: 12px; }

/* ---------- Article & prose ---------- */
.article header h1 { font-size: 28px; line-height: 1.45; margin: 4px 0 8px; }
.article__cat { display: inline-block; background: var(--amber); color: var(--amber-ink); font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; margin: 0; }
.article__meta { color: var(--muted); font-size: 13.5px; }
.article__img { width: 100%; height: auto; border-radius: var(--radius); margin: 8px 0 14px; }
.article__body, .prose { font-size: 16.5px; line-height: 1.9; max-width: 72ch; }
.article__body h2, .prose h2 { font-size: 20px; margin: 1.4em 0 .5em; }
.article__body h3 { font-size: 17px; margin: 1.2em 0 .4em; }
.article__body ul, .article__body ol, .prose ul { padding-inline-start: 1.3em; }
.article__body blockquote { margin: 1em 0; padding: 8px 16px; border-inline-start: 4px solid var(--amber); background: var(--card-2); }
.article__body table { border-collapse: collapse; width: 100%; font-size: 14px; }
.article__body td, .article__body th { border: 1px solid var(--line); padding: 6px 8px; }
.article__sources { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); }
.article__sources h2 { font-size: 16px; margin-bottom: 6px; }
.article__sources ul { padding-inline-start: 1.2em; font-size: 14px; }
.prose { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }

/* ---------- Empty states, pager, ads ---------- */
.empty { text-align: center; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 32px 18px; margin-top: 14px; }
.empty svg { width: 46px; height: 46px; color: var(--pitch-3); stroke-width: 1.5; }
.empty h3 { font-size: 18px; margin: 8px 0 6px; }
.empty p { color: var(--muted); max-width: 46ch; margin: 0 auto 14px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.ad { margin: 14px 0; text-align: center; min-height: 100px; }
.ad__label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--pitch); color: rgba(255,255,255,.82); margin-top: 30px; font-size: 14px; }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 24px; padding-top: 28px; padding-bottom: 20px; }
.site-footer h2 { font-size: 14px; color: var(--amber); margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer .muted { color: rgba(255,255,255,.6); font-size: 13px; }
.brand--footer { margin-bottom: 8px; font-size: 18px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; padding-bottom: 18px; font-size: 12.5px; color: rgba(255,255,255,.6); }
.site-footer__bottom p { margin: 0; }
.site-footer [aria-current] { color: var(--amber); }


/* ---------- Where to watch (official broadcasters) ---------- */
.watch { margin: 16px 0 4px; border: 1px solid var(--line); border-inline-start: 4px solid var(--amber); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--card-2); }
.watch__title { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 10px; }
.watch__title svg { width: 20px; height: 20px; color: var(--pitch-3); }
.watch__video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: #000; margin-bottom: 10px; }
.watch__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.watch__channels { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.watch__btn { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px; background: var(--pitch); color: #fff; font-weight: 500; }
.watch__btn:hover { background: var(--pitch-3); text-decoration: none; }
.watch p { margin: 4px 0 0; }


/* ---------- Live feed (match page) ---------- */
.feed { margin: 12px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.feed__title { display: flex; align-items: center; gap: 8px; font-size: 15px; padding: 9px 12px; background: var(--card-2); border-bottom: 1px solid var(--line); }
.feed__list { list-style: none; margin: 0; padding: 0; }
.feed__item { display: grid; grid-template-columns: 52px 1fr; gap: 8px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--line); font-size: 14px; }
.feed__item:first-child { border-top: 0; }
.feed__item--home { border-inline-start: 3px solid var(--pitch-3); }
.feed__item--away { border-inline-start: 3px solid var(--amber); }
.feed__min { justify-self: center; background: var(--pitch); color: var(--amber); font-weight: 700; font-size: 13px; border-radius: 999px; padding: 2px 9px; font-variant-numeric: tabular-nums; }
.feed__body { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.feed__body small { color: var(--muted); width: 100%; font-size: 12px; }
.feed__item.is-new { animation: newEvent 2.5s ease-out 1; }
@keyframes newEvent { 0% { background: rgba(244,180,58,.45); } 100% { background: transparent; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .menu-btn { display: block; }
  .site-header__bar { flex-wrap: wrap; gap: 8px; padding-top: 6px; padding-bottom: 8px; min-height: 0; }
  .brand { font-size: 18px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .lang-switch { margin-inline-start: auto; font-size: 13px; padding: 4px 11px; }
  .site-nav { display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding-inline: 0; }
  .site-nav a { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.07); border-inline-start: 3px solid transparent; }
  .site-nav a[aria-current="page"] { border-bottom-color: rgba(255,255,255,.07); border-inline-start-color: var(--amber); }
  .site-header { position: relative; }
  .tabs__list { top: 0; }
  .sidebar { grid-template-columns: minmax(0, 1fr); }
  .page-title { font-size: 20px; }
  .datebar { flex-wrap: wrap; }
  .datebar__tabs { order: -1; flex-basis: 100%; }
  .datebar__arrow { flex: 0 0 40px; min-height: 40px; }
  .datebar__pick { flex: 1; justify-content: center; }
  .match { grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr); padding: 11px 6px; gap: 4px; }
  .board__score, .board__time { font-size: 17px; padding: 3px 9px; min-width: 70px; }
  .board--time .board__time { font-size: 16px; }
  .match__name { font-size: 13px; }
  .crest { width: 32px; height: 32px; }
  .crest--xs { width: 18px; height: 18px; } .crest--sm { width: 22px; height: 22px; }
  .crest--lg { width: 48px; height: 48px; } .crest--xl { width: 56px; height: 56px; }
  .board--big .board__score, .board--big .board__time { font-size: 28px; min-width: 110px; padding: 5px 14px; }
  .hero__team h2 { font-size: 16px; }
  .hero__main { gap: 6px; }
  .two-cols, .lineups { grid-template-columns: minmax(0, 1fr); }
  .timeline::before { inset-inline-start: 26px; }
  .timeline__item { grid-template-columns: 52px 1fr; }
  .timeline__min { grid-column: 1; }
  .timeline__item--home .timeline__body, .timeline__item--away .timeline__body { grid-column: 2; justify-content: flex-start; text-align: start; }
  .timeline__item--home .timeline__body { border-inline-start: 3px solid var(--pitch-3); }
  .timeline__item--away .timeline__body { border-inline-start: 3px solid var(--amber); }
  .article header h1 { font-size: 22px; }
  .article__body, .prose { font-size: 15.5px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .standings .t-goals { display: none; }
  .form-guide { margin-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .site-nav, .sidebar, .site-footer, .share, .tabs__list, .ad { display: none !important; }
  .layout { grid-template-columns: 1fr; }
}
