/* Roya TV — Sports tab: sport switcher, compact match lists, standings, news, live sports channels, sheets.
   Tokens come from app.css. Spacing scale 4/8/12/16/24/32, one accent (green), live stays red. */
.sports-page { padding-bottom: clamp(24px, 3vw, 40px); }
.fb-hub, .sp-chs {
  --acc: var(--ok);
  --acc-soft: rgba(47, 210, 134, 0.12);
  --r: 14px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --row: 56px;
  --pad: var(--gutter);
}
.fb-hub { position: relative; padding: var(--s5) var(--pad) 0; }
.fb-hub svg, .sp-chs svg { width: 18px; height: 18px; flex: none; }
.fb-hub button, .sp-chs button { font: inherit; color: inherit; }
.fb-hub :focus-visible, .sp-chs :focus-visible, .fb-sheet :focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.fb-hub [hidden], .sp-chs [hidden] { display: none !important; }

/* ---------- header + sport switcher ---------- */
.sp-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); margin-bottom: var(--s4); }
.sp-top h1 { margin: 0; font-size: var(--fs-l); font-weight: 800; line-height: 1.4; display: inline-flex; align-items: center; gap: var(--s2); }
.sp-top h1 svg { color: var(--acc); width: 22px; height: 22px; }
.sp-switch { display: flex; gap: var(--s2); overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; padding-block: 2px; }
.sp-switch::-webkit-scrollbar { display: none; }
.sp-sw { appearance: none; flex: none; display: inline-flex; align-items: center; gap: var(--s2); min-height: 40px; padding: 0 var(--s4); border-radius: 999px; border: 1px solid var(--line); background: var(--ink-2); color: var(--text-2); font-size: var(--fs-s); font-weight: 600; cursor: pointer; white-space: nowrap; transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease); }
.sp-sw svg { width: 16px; height: 16px; }
.sp-sw:hover { color: var(--text); border-color: var(--line-2); }
.sp-sw[aria-selected="true"] { background: var(--acc); border-color: var(--acc); color: #04140c; }

/* ---------- featured match (compact) ---------- */
.mc { position: relative; overflow: hidden; border-radius: var(--r); padding: var(--s4) var(--s5); margin-bottom: var(--s4);
  background: radial-gradient(60% 120% at 50% 0%, rgba(47, 210, 134, 0.12), transparent 70%), var(--ink-2); border: 1px solid var(--line);
  display: grid; gap: var(--s3); }
.mc-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s3); }
.mc-kicker { display: inline-flex; align-items: center; gap: 6px; color: var(--acc); font-size: var(--fs-xs); font-weight: 700; }
.mc-kicker svg { width: 15px; height: 15px; }
.mc-comp { display: inline-flex; align-items: center; gap: var(--s2); color: var(--text-2); font-size: var(--fs-xs); font-weight: 500; }
.mc-comp img { width: 18px; height: 18px; object-fit: contain; }
.mc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--s4); }
.mc-team { appearance: none; border: 0; background: none; cursor: pointer; display: flex; align-items: center; gap: var(--s3); min-width: 0; padding: var(--s1); border-radius: 12px; }
.mc-team:first-child { justify-content: flex-end; flex-direction: row-reverse; }
.mc-team:hover { background: rgba(255, 255, 255, 0.04); }
.mc-team > span:last-child { font-size: var(--fs-m); font-weight: 700; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mc-team .fb-crest.xl { width: 56px; height: 56px; }
.mc-mid { display: grid; justify-items: center; gap: var(--s1); text-align: center; }
.mc-score { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.mc-score b { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.mc-score i { font-style: normal; color: var(--text-3); font-size: 1.4rem; }
.mc-score.live b { color: var(--live); }
.mc-score.off b { font-size: var(--fs-m); color: var(--gold); }
.mc-when { color: var(--text-3); font-size: var(--fs-xs); }
.mc-kick { display: grid; justify-items: center; gap: 2px; }
.mc-kick b { font-size: 1.9rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mc-kick small { color: var(--text-3); font-size: var(--fs-xs); white-space: nowrap; }
.mc-count { display: flex; gap: 6px; }
.mc-count span { display: grid; justify-items: center; min-width: 44px; padding: 4px; border-radius: 8px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); }
.mc-count b { font-size: 0.95rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.3; }
.mc-count small { font-size: 10px; color: var(--text-3); }
.mc-now { color: var(--acc); font-weight: 600; font-size: var(--fs-s); }
.mc-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); }
.mc-actions .btn { min-height: 40px; font-size: var(--fs-s); max-width: 100%; }

/* ---------- region segmented control ---------- */
.sp-seg { display: flex; width: max-content; max-width: 100%; gap: 2px; padding: 3px; border-radius: 999px; background: var(--ink-2); border: 1px solid var(--line); margin-bottom: var(--s4); overflow-x: auto; scrollbar-width: none; }
.sp-seg::-webkit-scrollbar { display: none; }
.sp-segb { appearance: none; border: 0; background: transparent; color: var(--text-2); font-size: var(--fs-s); font-weight: 600; min-height: 36px; padding: 0 var(--s4); border-radius: 999px; cursor: pointer; white-space: nowrap; }
.sp-segb:hover { color: var(--text); }
.sp-segb[aria-selected="true"] { background: var(--text); color: var(--ink-0); }

/* ---------- two-column layout ---------- */
.sp-cols { display: grid; gap: var(--s4); }
.sp-main, .sp-side { display: grid; gap: var(--s4); align-content: start; min-width: 0; }
@media (min-width: 1100px) {
  .sp-cols { grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); gap: var(--s5); align-items: start; }
  .sp-cols.one { grid-template-columns: minmax(0, 1fr); }
  .sp-side { position: sticky; top: calc(var(--nav-h) + var(--s4)); max-height: calc(100vh - var(--nav-h) - var(--s6)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--ink-4) transparent; padding-inline-end: 2px; }
}

/* ---------- blocks ---------- */
.sp-block { border-radius: var(--r); background: var(--ink-1); border: 1px solid var(--line); overflow: hidden; }
.sp-bh { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s1) var(--s3); padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); min-height: 52px; }
.sp-bh h2 { margin: 0; font-size: var(--fs-m); font-weight: 700; line-height: 1.5; display: inline-flex; align-items: center; gap: var(--s2); }
.sp-bh h2 svg { color: var(--acc); }
.sp-note { color: var(--text-3); font-size: var(--fs-xs); }
.sp-bh .sp-all { margin-inline-start: auto; }
.sp-fold:not(.open) .fold { display: none !important; }
@media (max-width: 720px) { .sp-fold:not(.open) .fold-m { display: none !important; } }
@media (min-width: 721px) { .sp-more.m-only { display: none; } }
.sp-more { appearance: none; display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 44px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--acc); font-size: var(--fs-s); font-weight: 600; cursor: pointer; }
.sp-more:hover { background: rgba(255, 255, 255, 0.03); }
.sp-more svg { width: 16px; height: 16px; }
.sp-line { margin: 0; padding: var(--s2) var(--s4) var(--s3); color: var(--text-3); font-size: var(--fs-xs); line-height: 1.8; display: flex; align-items: center; gap: var(--s2); }
.sp-line svg { width: 15px; height: 15px; }
.sp-empty { padding: var(--s3) var(--s4); border-radius: var(--r); background: var(--ink-1); border: 1px solid var(--line); color: var(--text-2); font-size: var(--fs-s); }
.sp-main > .sp-line:not(.sp-empty) { padding-inline: 0; }

/* ---------- compact match list ---------- */
.ml { display: grid; }
.ml-day { display: flex; align-items: baseline; gap: var(--s2); padding: var(--s2) var(--s4); background: var(--ink-2); border-bottom: 1px solid var(--line); font-size: var(--fs-s); font-weight: 700; line-height: 1.6; }
.ml-day small { color: var(--text-3); font-weight: 400; font-size: var(--fs-xs); }
.ml-comp { display: flex; align-items: center; gap: var(--s2); padding: 6px var(--s4); border-bottom: 1px solid var(--line); color: var(--text-2); font-size: var(--fs-xs); font-weight: 600; line-height: 1.6; }
.ml-comp img { width: 18px; height: 18px; object-fit: contain; flex: none; }
.ml-comp span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-cell { border-bottom: 1px solid var(--line); }
.ml > .ml-cell:last-child { border-bottom: 0; }
.ml-row { appearance: none; width: 100%; min-height: var(--row); border: 0; background: transparent; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr) 52px; align-items: center; gap: var(--s2); padding: 0 var(--s4); text-align: start; transition: background 0.15s; }
.ml-row:hover { background: rgba(255, 255, 255, 0.035); }
.ml-row.is-live { box-shadow: inset 3px 0 0 var(--live); }
:root[dir="rtl"] .ml-row.is-live { box-shadow: inset -3px 0 0 var(--live); }
.ml-team { display: flex; align-items: center; gap: var(--s2); min-width: 0; font-size: var(--fs-s); font-weight: 500; color: var(--text-2); }
.ml-home { justify-content: flex-end; text-align: end; }
.ml-team.win { color: var(--text); font-weight: 700; }
.ml-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.5; }
.ml-score, .ml-time { justify-self: center; font-variant-numeric: tabular-nums; font-size: var(--fs-s); font-weight: 700; padding: 3px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); white-space: nowrap; }
.ml-time { background: transparent; color: var(--text); }
.ml-score.live { background: var(--live); color: #fff; }
.ml-st { justify-self: end; font-size: 11px; color: var(--text-3); white-space: nowrap; display: inline-flex; align-items: center; }
.ml-st svg { width: 14px; height: 14px; opacity: 0.6; }
.ml-st.live { color: var(--live); font-weight: 700; }
.ml-st.off { color: var(--gold); }
.ml-ev { grid-template-columns: 64px minmax(0, 1fr) 52px; }
.ml-ev .ml-time { justify-self: start; padding-inline: 0; font-size: var(--fs-xs); }
.ml-evn { display: grid; min-width: 0; }
.ml-evn .ml-n { font-size: var(--fs-s); font-weight: 600; }
.ml-evn small { color: var(--text-3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.6; }

/* crests */
.fb-crest { position: relative; width: 36px; height: 36px; display: grid; place-items: center; flex: none; }
.fb-crest img { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 1; }
.fb-crest b { position: absolute; inset: 0; display: none; place-items: center; border-radius: 50%; background: var(--ink-4); color: var(--text-2); font-size: 13px; font-weight: 700; }
.fb-crest.none b { display: grid; }
.fb-crest.sm { width: 22px; height: 22px; }
.fb-crest.sm b { font-size: 10px; }
.fb-crest.md { width: 36px; height: 36px; }
.fb-crest.xl { width: 84px; height: 84px; }
.fb-crest.xl b { font-size: 26px; }

/* ---------- standings ---------- */
.sp-chips { display: flex; gap: var(--s2); overflow-x: auto; scrollbar-width: none; }
.sp-chips::-webkit-scrollbar { display: none; }
.sp-chips.sm { padding: var(--s3) var(--s4) 0; }
.sp-chip { appearance: none; flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 var(--s3); border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text-2); font-size: var(--fs-xs); font-weight: 600; cursor: pointer; white-space: nowrap; }
.sp-chip small { color: var(--text-3); font-size: 10.5px; font-weight: 500; }
.sp-chip:hover { color: var(--text); border-color: var(--line-2); }
.sp-chip[aria-selected="true"], .sp-chip[aria-pressed="true"] { background: var(--acc-soft); border-color: rgba(47, 210, 134, 0.45); color: var(--text); }
.st { width: 100%; border-collapse: collapse; font-size: var(--fs-s); font-variant-numeric: tabular-nums; margin-top: var(--s1); }
.st th { font-size: 11px; font-weight: 600; color: var(--text-3); padding: var(--s2) 6px; text-align: center; }
.st td { padding: 0 6px; height: 44px; text-align: center; border-top: 1px solid var(--line); }
.st th:first-child, .st td:first-child { padding-inline-start: var(--s4); width: 36px; }
.st th:last-child, .st td:last-child { padding-inline-end: var(--s4); }
.st .tl { text-align: start; width: 60%; }
.st tbody tr[data-fb-club] { cursor: pointer; }
.st tbody tr[data-fb-club]:hover { background: rgba(255, 255, 255, 0.035); }
.st-grp td { height: 34px; text-align: start; padding-inline: var(--s4); color: var(--text-3); font-size: 11.5px; font-weight: 600; background: var(--ink-2); }
.fb-tt { display: inline-flex; align-items: center; gap: var(--s2); min-width: 0; max-width: 100%; }
.fb-tt span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); font-size: 11.5px; font-weight: 700; }
.st tbody tr:first-child .rk { background: var(--acc); color: #04140c; }

/* ---------- clubs ---------- */
.cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 2px; padding: var(--s2); }
.cl { appearance: none; position: relative; display: grid; justify-items: center; gap: 6px; padding: var(--s3) var(--s1) var(--s2); border-radius: 10px; border: 0; background: transparent; cursor: pointer; text-align: center; }
.cl:hover { background: var(--ink-2); }
.cl > span:not(.fb-crest) { font-size: 11.5px; line-height: 1.5; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cl-tv { position: absolute; top: 6px; inset-inline-end: 8px; color: var(--acc); }
.cl-tv svg { width: 13px; height: 13px; }

/* ---------- news ---------- */
.nw-list { display: grid; }
.nw-list > .ml-cell:last-child { border-bottom: 0; }
.nw { display: flex; gap: var(--s3); align-items: center; padding: var(--s3) var(--s4); color: inherit; text-decoration: none; transition: background 0.15s; min-width: 0; }
.nw:hover { background: rgba(255, 255, 255, 0.035); }
.nw-img { flex: none; width: 72px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--ink-3); }
.nw-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nw-body { display: grid; gap: var(--s1); min-width: 0; }
.nw-body b { font-size: var(--fs-s); font-weight: 600; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nw-body small { color: var(--text-3); font-size: 11.5px; }
.nw-src { color: var(--gold); font-weight: 600; }

/* ---------- related channel pills ---------- */
.fb-chans { display: flex; flex-wrap: wrap; gap: var(--s2); padding: var(--s3) var(--s4) 0; }
.fb-ch { appearance: none; display: inline-flex; align-items: center; gap: var(--s2); padding-block: 6px; padding-inline: 6px var(--s3); border-radius: 999px; border: 1px solid var(--line); background: var(--ink-2); font-size: var(--fs-xs); cursor: pointer; max-width: 100%; }
.fb-ch:hover { border-color: var(--line-2); background: var(--ink-3); }
.fb-ch-logo { width: 28px; height: 28px; border-radius: 50%; background: var(--ink-4); display: grid; place-items: center; overflow: hidden; flex: none; }
.fb-ch-logo img { width: 80%; height: 80%; object-fit: contain; }
.fb-ch-logo svg { color: var(--ink-3); }
.fb-ch-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-ch .badge-live { display: none; }

.sp-src { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s4); margin: var(--s5) 0 0; padding-top: var(--s3); border-top: 1px solid var(--line); color: var(--text-3); font-size: 11.5px; line-height: 1.8; }
.sp-src a { color: var(--text-2); text-decoration: none; }
.sp-src a:hover { color: var(--text); text-decoration: underline; }

/* ---------- skeletons ---------- */
.sk { position: relative; overflow: hidden; background: var(--ink-2); display: block; }
.sk::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%) 0 0 / 300% 100%; animation: fb-sheen 1.5s linear infinite; }
@keyframes fb-sheen { from { background-position: 150% 0; } to { background-position: -150% 0; } }
.ml-skel { height: var(--row); border-bottom: 1px solid var(--line); }
.sk-list, .sp-main > .ml { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.sk-box { height: 280px; border-radius: var(--r); }
@media (prefers-reduced-motion: reduce) { .sk::after { animation: none; } }

/* ---------- live sports channels ---------- */
.sp-chs { margin: var(--s6) var(--pad) 0; border-radius: var(--r); background: var(--ink-1); border: 1px solid var(--line); overflow: hidden; }
.sp-chs > .sp-chips { padding: var(--s3) var(--s4) 0; }
.sp-all { display: inline-flex; align-items: center; gap: 4px; color: var(--acc); font-size: var(--fs-xs); font-weight: 600; text-decoration: none; white-space: nowrap; }
.sp-all svg { width: 15px; height: 15px; }
.sc-row { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 152px; gap: var(--s3); overflow-x: auto; padding: var(--s4); scrollbar-width: thin; scrollbar-color: var(--ink-4) transparent; scroll-snap-type: x proximity; }
.sc { appearance: none; border: 0; background: none; cursor: pointer; display: grid; gap: 6px; text-align: start; scroll-snap-align: start; min-width: 0; padding: 0; }
.sc-logo { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; background: linear-gradient(160deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; transition: border-color 0.2s var(--ease), transform 0.2s var(--ease); }
.sc-logo img { max-width: 70%; max-height: 62%; object-fit: contain; }
.sc-logo > b { font-size: 12px; padding: 0 8px; text-align: center; color: var(--text-2); line-height: 1.5; }
.sc-logo .badge-live { position: absolute; top: 6px; inset-inline-start: 6px; font-size: 9.5px; min-height: 18px; padding-inline: 6px; }
.sc:hover .sc-logo, .sc:focus-visible .sc-logo { border-color: var(--line-2); transform: translateY(-2px); }
.sc-name { font-size: var(--fs-xs); font-weight: 500; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.6; }
.sports-page .sp-rails { padding-top: var(--s6); }

/* ---------- sheets (match / club / event) ---------- */
.fb-lock, .fb-lock body { overflow: hidden; }
.fb-sheet-wrap { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: var(--s5, 24px); }
.fb-sheet-back { position: absolute; inset: 0; background: rgba(3, 4, 7, 0.72); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.25s var(--ease); }
.fb-sheet { --acc: var(--ok); position: relative; width: min(580px, 100%); max-height: min(88vh, 860px); overflow-y: auto; overscroll-behavior: contain; border-radius: var(--radius-l); background: var(--ink-1); border: 1px solid var(--line-2); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9); padding: 24px clamp(16px, 3vw, 28px) 28px; opacity: 0; transform: translateY(16px) scale(0.98); transition: opacity 0.25s var(--ease), transform 0.3s var(--ease); }
.fb-sheet-wrap.on .fb-sheet-back { opacity: 1; }
.fb-sheet-wrap.on .fb-sheet { opacity: 1; transform: none; }
.fb-sheet svg { width: 18px; height: 18px; flex: none; }
.fb-grab { display: none; }
.fb-x { appearance: none; position: absolute; top: 14px; inset-inline-end: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--ink-3); color: var(--text); display: grid; place-items: center; cursor: pointer; z-index: 2; }
.fb-sheet-body { display: grid; gap: 16px; }
.fb-sheet .sp-line { padding: 0; }
.fb-sheet .nw-list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.fb-sheet .nw-list > .nw + .nw { border-top: 1px solid var(--line); }
.fb-chip { flex: none; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; background: rgba(255, 255, 255, 0.07); color: var(--text-2); }
.fb-chip.live { background: var(--live); color: #fff; }
.fb-chip.off { background: rgba(242, 181, 68, 0.14); color: var(--gold); }
.fb-chip.next { background: var(--acc-soft, rgba(47, 210, 134, 0.12)); color: var(--ok); }
.ms-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-inline-end: 48px; }
.ms-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 4px 0; }
.ms-team { appearance: none; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; display: grid; justify-items: center; gap: 8px; text-align: center; min-width: 0; padding: 6px; border-radius: 14px; }
div.ms-team { cursor: default; }
button.ms-team:hover { background: rgba(255, 255, 255, 0.04); }
.ms-team b { font-size: var(--fs-m); line-height: 1.5; }
.ms-team small { color: var(--text-3); font-size: var(--fs-xs); }
.ms-team .fb-crest.xl { width: 76px; height: 76px; }
.ms-mid { display: grid; justify-items: center; gap: 8px; }
.ms-mid .mc-score b { font-size: 2.6rem; }
.ms-mid .mc-kick b { font-size: 2rem; }
.ev-title { margin: 0; font-size: var(--fs-l); line-height: 1.5; }
.ev-count .mc-count { justify-content: flex-start; }
.ms-facts { list-style: none; margin: 0; padding: 12px 14px; display: grid; gap: 8px; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line); color: var(--text-2); font-size: var(--fs-s); }
.ms-facts li { display: flex; align-items: center; gap: 10px; line-height: 1.7; }
.ms-facts svg { color: var(--text-3); }
.ms-watch { display: grid; gap: 8px; justify-items: start; }
.ms-watch > span { font-weight: 700; font-size: var(--fs-s); }
.ms-watch .fb-chans { padding: 0; }
.ms-h { margin: 4px 0 0; font-size: var(--fs-m); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.ms-h svg { color: var(--ok); }
.fb-form { display: inline-flex; gap: 4px; direction: ltr; }
.fb-form i { font-style: normal; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; }
.fb-form .f-W { background: #1f9d62; }
.fb-form .f-D { background: #5b6170; }
.fb-form .f-L { background: #c0262f; }
.cs-head { display: flex; align-items: center; gap: 16px; padding-inline-end: 48px; }
.cs-head h2 { margin: 0; font-size: var(--fs-l); line-height: 1.5; }
.cs-head p { margin: 2px 0 8px; color: var(--text-3); font-size: var(--fs-s); }
.cs-head .cs-en { margin: 0; color: var(--text-2); font-size: var(--fs-xs); width: fit-content; }
.cs-head .fb-crest.xl { width: 76px; height: 76px; }
.cs-tv { justify-self: start; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.cs-tv small { font-weight: 400; opacity: 0.85; font-size: var(--fs-xs); }
.cs-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cs-stats span { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line); }
.cs-stats b { font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.cs-stats small { color: var(--text-3); font-size: 11px; text-align: center; }
.fb-slist { display: grid; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.fb-srow { appearance: none; width: 100%; min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 8px 14px; border: 0; background: var(--ink-2); color: inherit; font: inherit; cursor: pointer; text-align: start; }
.fb-srow + .fb-srow { border-top: 1px solid var(--line); }
.fb-srow:hover { background: var(--ink-3); }
.fb-srow-n { display: grid; flex: 1; min-width: 0; }
.fb-srow-n b { font-size: var(--fs-s); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-srow-n small, .fb-srow-r small { color: var(--text-3); font-size: 11.5px; }
.fb-srow-r { display: grid; justify-items: end; gap: 2px; font-variant-numeric: tabular-nums; }

/* ---------- phone ---------- */
@media (max-width: 720px) {
  .fb-hub { padding-top: var(--s4); }
  .sp-top { gap: var(--s3); }
  .sp-switch { flex-basis: 100%; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); }
  .mc { padding: var(--s3) var(--s3) var(--s4); }
  .mc-row { gap: var(--s2); }
  .mc-team, .mc-team:first-child { flex-direction: column; justify-content: center; text-align: center; gap: 6px; }
  .mc-team > span:last-child { font-size: var(--fs-s); }
  .mc-team .fb-crest.xl { width: 48px; height: 48px; }
  .mc-kick b, .mc-score b { font-size: 1.6rem; }
  .mc-count span { min-width: 38px; }
  .mc-actions .btn { flex: 1 1 auto; justify-content: center; }
  .sp-seg { width: 100%; }
  .sp-segb { flex: 1; padding: 0 var(--s2); }
  .ml-row { grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr) 40px; padding: 0 var(--s3); gap: 6px; }
  .ml-ev { grid-template-columns: 52px minmax(0, 1fr) 40px; }
  .ml-team { font-size: 13px; gap: 6px; }
  .ml-day, .ml-comp { padding-inline: var(--s3); }
  .sp-chs { margin-inline: 0; border-radius: 0; border-inline: 0; }
  .sc-row { grid-auto-columns: 128px; padding: var(--s3); }
  .fb-sheet-wrap { padding: 0; place-items: end stretch; }
  .fb-sheet { width: 100%; max-height: 90vh; border-radius: 22px 22px 0 0; border-inline: 0; border-bottom: 0; padding: 22px 16px calc(24px + env(safe-area-inset-bottom)); transform: translateY(40px); }
  .fb-grab { display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--line-2); margin: -8px auto 8px; }
  .ms-team .fb-crest.xl, .cs-head .fb-crest.xl { width: 60px; height: 60px; }
  .ms-mid .mc-score b { font-size: 2.1rem; }
  .cs-stats b { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) { .fb-sheet, .fb-sheet-back, .sc-logo { transition: none; } }

/* ---------- featured match: both teams get the same treatment (no lopsided card) ---------- */
.fb-hub .mc .mc-team, .fb-hub .mc .mc-team:first-child, .fb-hub .mc .mc-team:last-child {
  display: grid; grid-template-rows: auto auto; justify-items: center; align-content: start; text-align: center; gap: 8px;
  flex-direction: unset; justify-content: center; background: none; box-shadow: none; border: 0; padding: var(--s2) var(--s1); border-radius: 12px; }
.fb-hub .mc .mc-team:hover, .fb-hub .mc .mc-team:focus { background: rgba(255, 255, 255, 0.04); transform: none; }
.fb-hub .mc .mc-team .fb-crest.xl { width: 64px; height: 64px; }
.fb-hub .mc .mc-team > span:last-child { min-height: 3em; display: -webkit-box; align-self: start; }
.fb-hub .mc-row { align-items: start; }
.fb-hub .mc-mid { align-self: center; }
.fb-hub .mc-count { justify-content: center; }
.mc-bc { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s2) var(--s3); }
.bc-lab { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: var(--fs-xs); font-weight: 600; }
.bc-name { display: grid; font-weight: 700; font-size: var(--fs-s); text-align: center; }
.bc-name small { color: var(--text-3); font-weight: 500; font-size: 11px; }
.ml-tv { position: absolute; inset-inline-end: 6px; top: 6px; color: var(--acc); display: inline-flex; }
.ml-tv svg { width: 12px !important; height: 12px !important; }
.ml-row { position: relative; }
@media (max-width: 720px) { .fb-hub .mc .mc-team .fb-crest.xl { width: 52px; height: 52px; } }

/* ---------- top stories rail ---------- */
.nr-rail-wrap { margin-bottom: var(--s4); }
.nr-rail-wrap .sp-bh { margin-bottom: var(--s2); }
.nr-rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 300px); gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
.nr-rail::-webkit-scrollbar { display: none; }
.nr-card { position: relative; display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; background: var(--ink-2); border: 1px solid var(--line); color: #fff; text-decoration: none; scroll-snap-align: start; }
.nr-pic, .nr-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.nr-pic.none { background: linear-gradient(135deg, var(--ink-3), var(--ink-2)); }
.nr-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4, 6, 10, 0.95) 8%, rgba(4, 6, 10, 0.45) 55%, transparent 80%); }
.nr-cap { position: absolute; inset: auto 0 0; z-index: 1; display: grid; gap: 4px; padding: var(--s3); }
.nr-cap b { font-size: var(--fs-s); font-weight: 700; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nr-cap small { font-size: 11px; color: rgba(255, 255, 255, 0.75); }
.nr-card:hover .nr-pic img { transform: scale(1.03); }
.nr-pic img { transition: transform 0.4s var(--ease); }
@media (min-width: 1100px) { .nr-rail { grid-auto-columns: calc((100% - 3 * var(--s3)) / 4); } }

/* ---------- in-app news reader ---------- */
.nr-wrap .fb-sheet { width: min(760px, 100%); max-height: 92vh; }
.nr { display: grid; gap: 14px; min-width: 0; }
.nr-hero { margin: -24px clamp(-28px, -3vw, -16px) 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-2); border-radius: var(--radius-l) var(--radius-l) 0 0; }
.nr-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nr-meta { display: flex; align-items: center; gap: 10px; }
.nr-meta > span:last-child { display: grid; }
.nr-meta b { color: var(--gold); font-size: var(--fs-s); }
.nr-meta small { color: var(--text-3); font-size: 11.5px; }
.nr-logo { position: relative; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--ink-3); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.nr-logo b { color: var(--text-2) !important; font-size: 14px !important; }
.nr-logo img { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); object-fit: contain; background: var(--ink-3); }
.nr-title { margin: 0; font-size: clamp(1.2rem, 2.6vw, 1.6rem); line-height: 1.6; font-weight: 800; }
.nr-body { font-size: 1rem; line-height: 2; color: var(--text); overflow-wrap: anywhere; }
.nr[lang="en"] .nr-body { line-height: 1.75; }
.nr-body p { margin: 0 0 1em; }
.nr-body img { display: block; max-width: 100%; height: auto; border-radius: 12px; margin: 1em auto; }
.nr-body a { color: var(--acc); }
.nr-body blockquote { margin: 1em 0; padding-inline-start: 14px; border-inline-start: 3px solid var(--acc); color: var(--text-2); }
.nr-body ul, .nr-body ol { padding-inline-start: 1.4em; }
.nr-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line); color: var(--text-2); font-size: var(--fs-xs); line-height: 1.8; }
.nr-src-btn { justify-self: start; min-height: 44px; max-width: 100%; }
.nr-attr { margin: 0; color: var(--text-3); font-size: 11px; }
.nr-skel { display: grid; gap: 10px; }
.nr-skel .sk { height: 14px; border-radius: 6px; }
.nr-skel .sk.short { width: 60%; }
.nr-yt { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.nr-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 720px) {
  .nr-wrap .fb-sheet { max-height: 100dvh; height: 100dvh; border-radius: 0; padding-top: 0; }
  .nr-wrap .fb-grab { display: none; }
  .nr-hero { margin: 0 -16px; border-radius: 0; }
  .nr-wrap .fb-x { position: sticky; top: 10px; float: inline-end; z-index: 2; margin-top: 10px; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(8px); }
  .nr-src-btn { justify-self: stretch; justify-content: center; }
  /* standings read better on phones: tighter cells, names don't wrap */
  .st td { height: 42px; padding: 0 4px; }
  .st .fb-tt span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; display: inline-block; vertical-align: middle; }
  .ml-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
