/* ==========================================================================
   Nine — public site
   Palette: orange / near-black / white smoke. Logical properties throughout,
   so Kurdish and Arabic (RTL) mirror without separate rules.
   ========================================================================== */

:root {
  --orange: #ff4500;
  --orange-2: #ff6a33;
  --orange-deep: #e03c00;
  --ink: #0f0f0f;
  --smoke: #f4f4f4;

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: var(--smoke);
  --text: #121212;
  --muted: #595959;
  --line: #f1f1f1;
  --line-strong: #dadada;
  --shadow: 0 1px 2px rgb(0 0 0 / .05), 0 8px 24px -12px rgb(0 0 0 / .18);

  --radius: 20px;
  --radius-sm: 12px;
  --wrap: 1240px;
  --gap: clamp(14px, 2vw, 22px);

  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-head: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

/* Dark: explicit choice, or the device setting when the visitor has not chosen. */
:root[data-theme="dark"] {
  --bg: #0f0f0f; --surface: #181818; --surface-2: #1d1d1d;
  --text: #f1f1ee; --muted: #9b9b94; --line: #242424; --line-strong: #3a3a3a;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 10px 30px -14px rgb(0 0 0 / .8);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0f0f; --surface: #181818; --surface-2: #1d1d1d;
    --text: #f1f1ee; --muted: #9b9b94; --line: #242424; --line-strong: #3a3a3a;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 10px 30px -14px rgb(0 0 0 / .8);
    color-scheme: dark;
  }
}

/* Eye comfort (button in the header, light mode only): site.js sets data-dim from the visitor's clock.
   1 = 4–6 pm, a softer warm off-white; 2 = 6 pm–8 am, darker. Never set in dark mode. */
:root[data-dim="1"] { --bg: #f2f0ea; --surface: #f6f4ef; --surface-2: #e9e6df; --smoke: #e9e6df; --line: #e4e1d9; --line-strong: #d0ccc2; }
:root[data-dim="2"] { --bg: #dfdbd1; --surface: #e7e3d9; --surface-2: #d8d3c8; --smoke: #d8d3c8; --line: #d3cec3; --line-strong: #bfb9ad; --text: #1e1d1b; --muted: #56534d; }
:root[data-dim="2"] img:not(.logo-img), :root[data-dim="2"] video { filter: brightness(.92); }
/* while the level changes, colours fade instead of jumping */
html.dim-anim, html.dim-anim * { transition: background-color .8s ease, border-color .8s ease, color .8s ease, filter .8s ease !important; }

/* Kurdish and Arabic use Noto Kufi for both text and headings. */
[dir="rtl"] { --f-body: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif; --f-head: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
[dir="rtl"] body { line-height: 1.85; font-size: .97rem; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--orange) 60%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--orange); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.1; margin: 0 0 .4em; letter-spacing: -.005em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.45; letter-spacing: 0; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
:focus-visible { outline: 2.5px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 2 * clamp(16px, 4vw, 40px), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--orange); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.empty { color: var(--muted); padding: 24px 0; }
.ic { flex: none; }
[dir="rtl"] .flipx { transform: scaleX(-1); }

/* ── S1 · masthead ─────────────────────────────────────────────────────── */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
}
/* scrolling down slides the header up out of view; scrolling up brings it back (site.js) */
.masthead.is-hidden { transform: translateY(calc(-100% - 2px)); box-shadow: none; }
.masthead.is-floating { box-shadow: 0 12px 28px -20px rgb(0 0 0 / .5); }
.masthead-row { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 32px); min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--text); flex: none; }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 49px; height: 49px; flex: none; display: grid; place-items: center;
}
/* orange logo in light mode, silver in dark mode (logo_html() prints both; only one is shown) */
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-name {
  font: 700 1.62rem/1 "Readex Pro", var(--f-head); letter-spacing: -.01em; /* the name stays Latin in every language */
}

.mainnav { flex: 1; display: flex; justify-content: center; }
/* Menu: plain topics on the page background; a single line marks the current topic. */
.mainnav ul {
  list-style: none; margin: 0; padding: 0; display: flex; gap: 2px;
  border: 0; background: none;
}
.mainnav a {
  display: block; padding: 10px 14px; text-decoration: none;
  font-weight: 600; font-size: .98rem; white-space: nowrap; transition: color .15s;
  color: var(--text); position: relative;
}
.mainnav a::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: 2px; height: 3px; border-radius: 3px;
  background: var(--orange); transform: scaleX(0); transition: transform .2s ease;
}
.mainnav a:hover { color: var(--orange); }
.mainnav a:hover::after { transform: scaleX(1); }
.mainnav a[aria-current="page"] { font-weight: 700; }
.mainnav a[aria-current="page"]::after { transform: scaleX(1); }
/* Noto Kufi draws Arabic and Kurdish letters larger than Barlow draws English at the same size; 15px keeps them close. */
[dir="rtl"] .mainnav a { font-size: 15px; }

.tools { display: flex; align-items: center; gap: 10px; flex: none; }
/* Lang / Mode / menu buttons: no fill, a short orange line underneath; an orange ring on hover. */
.round-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid transparent;
  background: none; display: grid; place-items: center; padding: 0; position: relative;
  transition: border-color .15s, color .15s;
}
.round-btn::after {
  content: ""; position: absolute; left: 50%; bottom: 5px; width: 14px; height: 2.5px; border-radius: 2px;
  background: var(--orange); transform: translateX(-50%);
}
/* The ring draws itself around the button: an orange arc sweeping from 0° to 360°. */
@property --ring {
  syntax: "<angle>"; inherits: false; initial-value: 0deg;
}
.round-btn::before {
  content: ""; position: absolute; inset: -1.5px; border-radius: 50%; padding: 1.5px;
  background: conic-gradient(var(--orange) var(--ring), transparent 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  --ring: 0deg; transition: --ring .45s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
}
[dir="rtl"] .round-btn::before { transform: scaleX(-1); } /* draws the other way in Kurdish and Arabic */
.round-btn:hover::before, .round-btn[aria-expanded="true"]::before, .round-btn:focus-visible::before { --ring: 360deg; }
.round-btn:hover, .round-btn[aria-expanded="true"] { color: var(--orange); }
/* ── match weather: button in the header opens a box in the middle of the screen ── */
.wx-btn .ic { overflow: visible; }
.wx-btn:hover .ic { animation: wx-bob 1.6s ease-in-out infinite; }
@keyframes wx-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.wx-dlg {
  width: min(820px, calc(100% - 32px)); max-width: none; max-height: min(86dvh, 760px); padding: 0; border: 0; border-radius: 26px;
  background: linear-gradient(160deg, #ff7a3d, var(--orange) 45%, #e03c00); color: var(--text); box-shadow: 0 40px 90px -30px rgb(0 0 0 / .6); overflow: hidden;
}
.wx-dlg[open] { display: flex; }
.wx-dlg:focus, .wx-dlg:focus-visible { outline: none; }   /* the box itself, not its buttons */
.wx-dlg::backdrop { background: rgb(10 10 10 / .55); backdrop-filter: blur(3px); }
.wx-body { flex: 1; overflow: hidden auto; overscroll-behavior: contain; padding: 22px 22px 16px; }
/* opening: the box rises and settles, the page behind dims; closing: it sinks and fades */
.wx-dlg.is-open { animation: wx-in .5s cubic-bezier(.2, .9, .25, 1.12) both; }
.wx-dlg.is-open::backdrop { animation: pd-fade .3s ease both; }
.wx-dlg.is-closing { animation: wx-out .28s ease-in both; }
.wx-dlg.is-closing::backdrop { animation: pd-fade .28s ease reverse both; }
@keyframes wx-in { from { opacity: 0; transform: translateY(40px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes wx-out { to { opacity: 0; transform: translateY(24px) scale(.97); } }
/* the title stays in view while the matches scroll */
.wx-head { position: sticky; top: -22px; z-index: 2; margin: -22px -22px 14px; padding: 22px 22px 14px; background: linear-gradient(160deg, #ff7a3d, var(--orange)); border-bottom: 1px solid rgb(255 255 255 / .22); }
.wx-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wx-title { margin: 0; font: 800 1.35rem/1.25 var(--f-head); color: #fff; }
.wx-sub { margin: 4px 0 0; font-size: .82rem; color: rgb(255 255 255 / .85); }
.wx-x { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: var(--surface-2); color: var(--text); transition: background .2s, color .2s, transform .3s; }
.wx-x:hover, .wx-x:focus-visible { background: #fff; color: var(--orange); transform: rotate(90deg); outline: none; }
.wx-dlg .wx-x { background: rgb(255 255 255 / .2); color: #fff; }
.wx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.wx-item { border: 0; border-radius: 16px; padding: 12px 14px; background: var(--surface); box-shadow: 0 12px 26px -18px rgb(90 20 0 / .7); }
.wx-item.is-live { background: linear-gradient(135deg, color-mix(in srgb, var(--orange) 9%, var(--surface)), var(--surface) 55%); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .9), 0 12px 26px -18px rgb(90 20 0 / .7); }
.wx-item.is-more { display: none; }
.wx-dlg.show-all .wx-item.is-more { display: block; }
.wx-dlg.is-open .wx-item { animation: wx-rise .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.06s + min(var(--i, 0), 8) * .05s); }
@keyframes wx-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.wx-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .78rem; color: var(--muted); }
.wx-league { display: inline-flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-league img { width: 16px; height: 16px; object-fit: contain; }
.wx-time { font-weight: 700; color: var(--text); }
.wx-live { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--orange); text-transform: uppercase; letter-spacing: .06em; }
[dir="rtl"] .wx-live { letter-spacing: 0; }
.wx-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: wx-pulse 1.4s ease-out infinite; }
@keyframes wx-pulse { 0% { box-shadow: 0 0 0 0 rgb(255 69 0 / .55); } 100% { box-shadow: 0 0 0 9px rgb(255 69 0 / 0); } }
.wx-match { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 9px 0 10px; font-weight: 700; font-size: .84rem; }
.wx-team { flex: 0 1 auto; display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.wx-team > span:not(.crest) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.wx-away { justify-content: flex-end; text-align: end; }
.wx-team .crest { width: 20px; height: 20px; object-fit: contain; flex: none; }
.wx-score { font: 800 1rem/1 var(--f-head); padding: 5px 9px; border-radius: 8px; background: var(--surface-2); white-space: nowrap; }
.is-live .wx-score { background: var(--orange); color: #fff; }
.wx-item:not(.is-live) .wx-score { padding: 4px 8px; font-size: .78rem; letter-spacing: .04em; color: var(--orange); background: color-mix(in srgb, var(--orange) 12%, var(--surface)); }
.wx-score { flex: none; }
.wx-now { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px dashed var(--line-strong); flex-wrap: wrap; }
.wx-ic { flex: none; overflow: visible; }
.wx-temp { font: 800 1.6rem/1 var(--f-head); font-family: "Readex Pro", var(--f-head); }
.wx-desc { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.wx-sky { font-weight: 700; font-size: .9rem; }
.wx-desc small { color: var(--muted); font-size: .75rem; }
.wx-chips { display: inline-flex; gap: 6px; margin-inline-start: auto; }
.wx-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; background: var(--surface-2); font-size: .78rem; font-weight: 600; }
.wx-chip .ic { color: #3d9bff; }
.wx-none, .wx-empty, .wx-note { margin: 0; font-size: .85rem; color: var(--muted); }
.wx-empty { padding: 18px 4px; text-align: center; }
.wx-note { padding: 10px 12px; margin-bottom: 10px; border-radius: 12px; background: var(--surface-2); }
.wx-src { margin: 12px 2px 0; font-size: .72rem; color: rgb(255 255 255 / .85); }
.wx-more { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px auto 0; padding: 10px 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--orange); font: 700 .9rem/1 var(--f-body); box-shadow: 0 10px 22px -14px rgb(90 20 0 / .8); transition: transform .2s, box-shadow .2s; }
.wx-more:hover, .wx-more:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgb(90 20 0 / .9); outline: none; }
.wx-more .ic { transition: transform .3s ease; }
.wx-more[aria-expanded="true"] .ic { transform: rotate(180deg); }
.wx-dlg .wx-empty, .wx-dlg .wx-note { color: #fff; }
.wx-dlg .wx-note { background: rgb(255 255 255 / .18); }
.wx-src a { color: inherit; }
/* loading: three grey cards that shimmer */
.wx-skel { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.wx-skel i { display: block; height: 108px; border-radius: 16px; background: linear-gradient(90deg, var(--surface-2) 30%, var(--line) 50%, var(--surface-2) 70%) 0 0 / 300% 100%; animation: wx-shimmer 1.2s linear infinite; }
@keyframes wx-shimmer { to { background-position: -150% 0; } }
/* the weather icons move gently: sun rays turn, rain and snow fall, lightning flashes */
.wx-sun { transform-box: fill-box; transform-origin: center; animation: wx-spin 14s linear infinite; }
@keyframes wx-spin { to { transform: rotate(360deg); } }
.wx-drops { animation: wx-fall 1.3s ease-in infinite; }
@keyframes wx-fall { 0% { transform: translateY(-2px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(2.5px); opacity: 0; } }
.wx-bolt { animation: wx-flash 2.4s steps(1) infinite; }
@keyframes wx-flash { 0%, 70%, 80%, 100% { opacity: 1; } 75% { opacity: .15; } }
.wx-cloud { animation: wx-drift 5s ease-in-out infinite alternate; }
@keyframes wx-drift { to { translate: 1px 0; } }
/* phones: a sheet that slides up from the bottom of the screen */
@media (max-width: 600px) {
  .wx-dlg { width: 100%; max-height: 90dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .wx-dlg.is-open { animation-name: sheet-in; animation-duration: .45s; }
  .wx-dlg.is-closing { animation-name: sheet-out; }
  .wx-body { padding: 18px 16px 14px; }
  .wx-head { top: -18px; margin: -18px -16px 12px; padding: 18px 16px 12px; }
  .wx-chips { margin-inline-start: 0; width: 100%; }
}
/* ── Live button (menu bar): a red pill with a pulsing dot; greyed with "Soon" while switched off ── */
.live-btn { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px; text-decoration: none;
  background: #e5202b; color: #fff; font: 800 .78rem/1 "Barlow", sans-serif; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 6px 16px -8px rgb(229 32 43 / .8); transition: transform .2s, box-shadow .2s, background .2s; }
.live-btn:hover, .live-btn:focus-visible { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 20px -8px rgb(229 32 43 / .9); outline: none; }
.lv-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; flex: none; animation: live-pulse 1.4s ease-out infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgb(255 255 255 / .7); } 100% { box-shadow: 0 0 0 7px rgb(255 255 255 / 0); } }
.live-btn.is-off { background: var(--surface-2); color: var(--muted); box-shadow: none; cursor: default; }
.live-btn.is-off .lv-dot { background: #e5202b; animation: none; opacity: .55; }
.live-btn.is-off:hover, .live-btn.is-off:focus-visible { transform: none; box-shadow: none; color: var(--muted); }
.live-soon { position: absolute; top: -7px; inset-inline-end: 0; padding: 2px 6px; border-radius: 999px; background: var(--orange); color: #fff;
  font: 700 .58rem/1.2 "Barlow", sans-serif; font-style: normal; letter-spacing: .04em; text-transform: none; }
[dir="rtl"] .live-soon { font-family: var(--f-body); letter-spacing: 0; }
[dir="rtl"] .live-btn { letter-spacing: 0; font-family: var(--f-body); }
@media (max-width: 600px) { .live-btn { padding: 0 10px; } .live-txt { display: none; } .live-btn .lv-dot { width: 10px; height: 10px; } }
/* narrow phones: six buttons in the header, so each is a little smaller and closer together */
@media (max-width: 420px) {
  .tools { gap: 0; }
  .tools .round-btn { width: 32px; height: 32px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 1rem; }
  .brand { gap: 3px; }
  .tools .round-btn .ic { width: 18px; height: 18px; }
  .live-btn { height: 28px; padding: 0 7px; margin-inline-start: 2px; }
  .live-soon { display: none; }
  .masthead-row { gap: 4px; }
}
/* Live page (until broadcasts are set up) */
.live-empty { max-width: 520px; margin: 0 auto; text-align: center; display: grid; justify-items: center; gap: 16px; padding: 30px 20px 50px; }
.live-empty-ic { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: rgb(229 32 43 / .12); }
.live-empty-ic .lv-dot { width: 22px; height: 22px; background: #e5202b; animation-name: live-pulse-red; }
@keyframes live-pulse-red { 0% { box-shadow: 0 0 0 0 rgb(229 32 43 / .6); } 100% { box-shadow: 0 0 0 18px rgb(229 32 43 / 0); } }
.live-empty p { margin: 0; font-size: 1.05rem; color: var(--muted); }
/* eye comfort button: orange while on, faded in dark mode (it only works in light mode) */
.comfort-btn[aria-pressed="true"] { color: var(--orange); }
.comfort-btn[aria-pressed="true"] .ic { fill: rgb(255 69 0 / .15); }
.comfort-btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.comfort-btn[aria-disabled="true"]::before { --ring: 0deg !important; }
/* short message at the bottom of the screen */
.toast { position: fixed; bottom: 22px; left: 50%; z-index: 300; max-width: calc(100% - 32px); width: max-content; padding: 12px 20px; border-radius: 999px;
  background: #161616; color: #fff; font-size: .92rem; line-height: 1.5; text-align: center; box-shadow: 0 14px 34px -14px rgb(0 0 0 / .6);
  opacity: 0; transform: translate(-50%, 16px); transition: opacity .3s ease, transform .3s ease; pointer-events: none; }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 600px) { .toast { border-radius: 16px; bottom: 16px; } }
.round-btn-txt { font: 700 .85rem/1 var(--f-body); font-family: "Barlow", sans-serif; letter-spacing: .04em; }
.only-dark { display: none; }
:root[data-theme="dark"] .only-dark { display: block; }
:root[data-theme="dark"] .only-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: block; }
  :root:not([data-theme="light"]) .only-light { display: none; }
}
/* Language box: unfolds from the EN button, then the languages slide in one after another.
   Closing plays the same steps backwards. */
.langpick { position: relative; }
.langmenu {
  position: absolute; inset-inline-end: -8px; top: calc(100% + 12px); z-index: 60;
  list-style: none; margin: 0; padding: 8px; min-width: 170px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px;
  box-shadow: 0 18px 40px -18px rgb(0 0 0 / .35);
  transform-origin: top right;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.9);
  transition: opacity .2s ease, transform .25s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .25s;
}
[dir="rtl"] .langmenu { transform-origin: top left; }
/* the little pointer joining the box to the button */
.langmenu::before {
  content: ""; position: absolute; top: -6px; inset-inline-end: 22px; width: 10px; height: 10px;
  background: var(--surface); border-top: 1px solid var(--line-strong); border-inline-start: 1px solid var(--line-strong);
  transform: rotate(45deg);
}
[dir="rtl"] .langmenu::before { transform: rotate(-45deg); }
.langpick.is-open .langmenu {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .2s ease, transform .25s cubic-bezier(.2, .8, .2, 1), visibility 0s;
}
.langmenu li {
  opacity: 0; transform: translateY(-6px);
  transition: opacity .18s ease, transform .22s ease;
  transition-delay: calc((var(--n) - 1 - var(--i)) * 30ms); /* closing: last row leaves first */
}
.langpick.is-open .langmenu li {
  opacity: 1; transform: none;
  transition-delay: calc(80ms + var(--i) * 45ms);             /* opening: rows arrive one by one */
}
.langmenu a {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text);
  transition: background .15s;
}
.langmenu a:hover, .langmenu a:focus-visible { background: var(--surface-2); color: var(--text); }
.lang-name { position: relative; font: 600 13.5px/1.4 "Noto Kufi Arabic", "Barlow", sans-serif; padding-bottom: 3px; }
.lang-name::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 2.5px; border-radius: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: var(--line-from, left); transition: transform .22s ease;
}
[dir="rtl"] .lang-name::after { --line-from: right; }
.langmenu a:hover .lang-name::after, .langmenu a:focus-visible .lang-name::after,
.langmenu a[aria-current="true"] .lang-name::after { transform: scaleX(1); }
.langmenu a[aria-current="true"] .lang-name { font-weight: 700; }
.lang-code { font: 700 .72rem/1 "Barlow", sans-serif; letter-spacing: .06em; color: var(--muted); }
.langmenu a[aria-current="true"] .lang-code { color: var(--orange); }
.menu-btn { display: none; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }

/* Mid-size screens: 9 menu items need tighter spacing to stay on one line (Kurdish words are the longest). */
@media (min-width: 1281px) {
  .masthead-row { gap: 16px; }
  .mainnav a { padding: 10px 9px; }
  .mainnav a::after { inset-inline: 9px; }
  .brand-name { font-size: 1.45rem; }
}
@media (max-width: 1280px) {
  .menu-btn { display: grid; }
  .masthead-row { min-height: 64px; }
  .brand-mark { width: 39px; height: 39px; }
  .brand-name { font-size: 1.4rem; }
  .tools { margin-inline-start: auto; }
  .round-btn { width: 36px; height: 36px; }
  .mainnav {
    position: absolute; inset-inline: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px clamp(16px, 4vw, 40px) 18px; display: none;
  }
  .mainnav.is-open { display: block; animation: drop .18s ease-out; }
  .mainnav ul { flex-direction: column; gap: 0; }
  .mainnav li + li { border-top: 1px solid var(--line); }
  .mainnav a { display: inline-block; padding: 14px 2px; font-size: 1.05rem; }
  [dir="rtl"] .mainnav a { font-size: 16px; }
  .mainnav a::after { inset-inline: 2px; bottom: 8px; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 1.2rem; }
  .brand { gap: 8px; }
  .tools { gap: 6px; }
  .round-btn { width: 34px; height: 34px; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* ── S2 · ticker ───────────────────────────────────────────────────────── */
.ticker {
  display: flex; align-items: stretch; background: var(--bg); color: var(--text);
  border-bottom: 3px solid var(--orange); position: relative; overflow: hidden; min-height: 50px;
}
.ticker-label {
  flex: none; display: flex; align-items: center; gap: 8px; padding-inline: 11px 19px;
  background: var(--orange); color: #fff; font: 700 .8rem/1 var(--f-head); text-transform: uppercase; letter-spacing: .02em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
[dir="rtl"] .ticker-label { clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%); letter-spacing: 0; }
.ticker-viewport {
  flex: 1; overflow: hidden; display: flex; align-items: center;
  mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
.ticker-track { display: flex; width: max-content; animation: tick var(--tick-dur, 60s) linear infinite; }
[dir="rtl"] .ticker-track { animation-name: tick-rtl; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track, .ticker.is-paused .ticker-track { animation-play-state: paused; }
.ticker-list { list-style: none; margin: 0; padding: 0; display: flex; }
.ticker-list li { display: flex; align-items: center; white-space: nowrap; padding-inline: 22px; font-weight: 500; }
.ticker-list li::before { content: ""; width: 6px; height: 6px; background: var(--orange); transform: rotate(45deg); margin-inline-end: 22px; }
/* All headlines look the same (urgent ones are only listed first). Hover: the menu's orange line slides in. */
.ticker-list a, .ticker-list a:hover { text-decoration: none; color: inherit; position: relative; padding-block: 4px; }
.ticker-list a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2.5px; border-radius: 2px;
  background: var(--orange); transform: scaleX(0); transition: transform .2s ease;
}
.ticker-list a:hover::after, .ticker-list a:focus-visible::after { transform: scaleX(1); }
@keyframes tick { to { transform: translateX(-50%); } }
@keyframes tick-rtl { to { transform: translateX(50%); } }
@media (max-width: 560px) { .ticker-label { padding-inline: 9px 16px; font-size: .7rem; } }

/* ── shared blocks ─────────────────────────────────────────────────────── */
.block { padding-block: clamp(36px, 6vw, 72px); }
.block + .block { padding-top: 0; }
.block-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; margin-bottom: clamp(18px, 3vw, 30px); }
.block-head h2, .block-head h1 {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 700; margin: 0;
  display: inline-flex; align-items: center; gap: .45em;
}
/* orange bar before section titles (sits on the right in Kurdish/Arabic). Same visible height in every language. */
.block-head h2::before, .block-head h1::before, .scoop-title::before {
  content: ""; flex: none; width: 5px; height: .78em; background: var(--orange); border-radius: 2px;
}
[dir="rtl"] .block-head h2::before, [dir="rtl"] .block-head h1::before, [dir="rtl"] .scoop-title::before { height: 1.1em; }
/* Noto Kufi draws letters ~40% taller than Barlow; 0.7x the English size looks the same height. */
[dir="rtl"] .block-head h2, [dir="rtl"] .block-head h1 { text-transform: none; font-size: clamp(1rem, 1.55vw, 1.25rem); }
.block-sub { margin: 0; color: var(--muted); font-size: .95rem; }

.tag {
  display: inline-block; background: var(--orange); color: #fff; font: 700 .72rem/1 var(--f-body);
  text-transform: uppercase; letter-spacing: .08em; padding: 6px 9px; border-radius: 6px;
}
[dir="rtl"] .tag { letter-spacing: 0; font-size: .75rem; padding: 5px 9px 4px; }

/* ── S3 · stories ──────────────────────────────────────────────────────── */
.story-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); }
.flip, .reel { aspect-ratio: 9 / 16; border-radius: var(--radius); position: relative; max-height: 440px; width: 100%; }
.flip { perspective: 1200px; cursor: pointer; outline-offset: 4px; }
.flip-inner { position: absolute; inset: 0; transition: transform .7s cubic-bezier(.3, .7, .2, 1); transform-style: preserve-3d; }
.flip.is-flipped .flip-inner { transform: rotateY(180deg); }
@media (hover: hover) { .flip:hover .flip-inner { transform: rotateY(180deg); } }
/* Only the side facing the reader can be clicked: a turned-away face is invisible but would still catch clicks. */
.flip-back { pointer-events: none; }
.flip.is-flipped .flip-back { pointer-events: auto; }
.flip.is-flipped .flip-front { pointer-events: none; }
@media (hover: hover) {
  .flip:hover .flip-back { pointer-events: auto; }
  .flip:hover .flip-front { pointer-events: none; }
}
.flip-face { position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip-front { background: #222; }
.flip-front img { width: 100%; height: 100%; object-fit: cover; }
.flip-front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgb(0 0 0 / .85)); }
.flip-front-text { position: absolute; inset-inline: 16px; bottom: 18px; z-index: 1; color: #fff; }
.flip-front-text h3 { font-size: 1.35rem; margin: 10px 0 0; font-weight: 700; }
[dir="rtl"] .flip-front-text h3 { font-size: 1.08rem; }
.flip-hint { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 1; width: 32px; height: 32px; border-radius: 50%; background: rgb(255 255 255 / .9); color: #111; display: grid; place-items: center; }
.flip-back {
  transform: rotateY(180deg); background: var(--ink); color: #f1f1ee; padding: 22px 18px;
  display: flex; flex-direction: column; border-color: var(--orange);
}
.flip-back h3 { font-size: 1.25rem; color: var(--orange); }
[dir="rtl"] .flip-back h3 { font-size: 1.02rem; }
.flip-back p { margin: 0; font-size: .95rem; color: #cfcfca; flex: 1; overflow: hidden; }
.flip-num { font: 800 3.4rem/1 "Barlow Condensed", sans-serif; color: #2a2a2a; margin-bottom: 8px; }
.flip-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 700; color: #fff; text-decoration: none; border-top: 1px solid #333; padding-top: 14px; }
.flip-link:hover { color: var(--orange); }

.reel { overflow: hidden; background: #000; color: #fff; }
.reel-video { width: 100%; height: 100%; object-fit: cover; }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .45), transparent 25%, transparent 60%, rgb(0 0 0 / .85)); pointer-events: none; }
.reel-top { position: absolute; inset-inline: 12px; top: 12px; z-index: 2; display: flex; justify-content: space-between; align-items: center; }
.reel-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--orange); padding: 6px 10px; border-radius: 99px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.reel-sound { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .92); color: #111; display: grid; place-items: center; }
.reel-sound .i-sound, .reel-sound[aria-pressed="true"] .i-muted { display: none; }
.reel-sound[aria-pressed="true"] .i-sound { display: block; }
.reel-bottom { position: absolute; inset-inline: 16px; bottom: 16px; z-index: 2; }
.reel-bottom h3 { font-size: 1.25rem; margin: 0 0 12px; }
.reel-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; font-weight: 700; color: #fff; text-decoration: none; }
.reel-link:hover { color: var(--orange); }
[dir="rtl"] .reel-bottom h3 { font-size: 1.02rem; }
.reel-progress { display: block; height: 3px; background: rgb(255 255 255 / .3); border-radius: 3px; overflow: hidden; }
.reel-progress i { display: block; height: 100%; width: 0; background: var(--orange); }

@media (max-width: 1020px) {
  .story-row {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(200px, 30%);
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin;
    margin-inline: calc(-1 * clamp(16px, 4vw, 40px)); padding-inline: clamp(16px, 4vw, 40px);
    scroll-padding-inline: clamp(16px, 4vw, 40px);
  }
  .flip, .reel { scroll-snap-align: start; }
}
@media (max-width: 560px) { .story-row { grid-auto-columns: 68%; } }

/* ── S4 · predictions ──────────────────────────────────────────────────── */
.pred-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.pred-row.count-5 { grid-template-columns: repeat(5, 1fr); }
.pred {
  border-radius: var(--radius); border: 0; background: var(--surface-2);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.pred:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pred { position: relative; cursor: pointer; }
/* the whole card is one button that opens the detail box */
.pred-open { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; padding: 0; border: 0; background: none; border-radius: inherit; cursor: pointer; }
.pred-open:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.pred-plus {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: rgb(255 255 255 / .92); color: var(--ink);
  box-shadow: 0 2px 8px rgb(0 0 0 / .18); transition: transform .35s cubic-bezier(.2, .8, .2, 1), background .2s, color .2s;
}
.pred:hover .pred-plus, .pred-open:focus-visible ~ .pred-plus { transform: rotate(90deg); background: var(--ink); color: #fff; }
.pred.is-active { visibility: hidden; }   /* the card "becomes" the box while it is open */

/* ── prediction detail box ── */
.pred-dlg {
  width: min(900px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0;
  border-radius: 26px; overflow: hidden; background: var(--surface); color: var(--text);
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / .55);
}
.pred-dlg::backdrop { background: rgb(10 10 10 / .68); animation: pd-fade .35s ease both; }
/* while closing, the dark background stays until the box has reached the card, then fades with it */
.pred-dlg.is-closing::backdrop { animation: pd-fade .3s ease .56s reverse both; }
@keyframes pd-fade { from { opacity: 0; } to { opacity: 1; } }
.pred-dlg[open] { display: flex; flex-direction: column; }
.pd-box { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.pd-content { flex: 1; display: grid; grid-template-columns: 320px 1fr; max-height: calc(100dvh - 32px); }
.pd-photo { position: relative; background: linear-gradient(160deg, var(--orange-2), var(--orange-deep)); min-height: 100%; overflow: hidden; }
.pd-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.pd-main { padding: 36px 38px 30px; max-height: calc(100dvh - 32px); overflow-y: auto; display: flex; flex-direction: column; gap: 18px; min-height: 0; }
.pd-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--muted); font-size: .88rem; padding-inline-end: 40px; }
.pd-league { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--text); }
.pd-league img { width: 18px; height: 18px; object-fit: contain; }
.pd-when { display: inline-flex; align-items: center; gap: 6px; }
.pd-clubs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 18px 12px; border-radius: 18px; background: var(--surface-2); }
.pd-club { display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; min-width: 0; }
.pd-club img.crest { width: 64px; height: 64px; border-radius: 0; object-fit: contain; filter: drop-shadow(0 2px 4px rgb(0 0 0 / .18)); }
.pd-club b { font: 700 1rem/1.25 var(--f-body); }
.pd-vs { font: 800 .78rem/1 var(--f-body); text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--orange); padding: 7px 11px; border-radius: 999px; }
[dir="rtl"] .pd-vs { letter-spacing: 0; }
.pd-match { margin: 0; font: 700 .9rem/1.3 var(--f-body); text-transform: uppercase; letter-spacing: .07em; color: var(--orange); }
.pd-pick { margin: 0; font: 800 1.55rem/1.25 var(--f-head); }
[dir="rtl"] .pd-pick { font-size: 1.3rem; line-height: 1.6; }
.pd-statement { margin: 0; padding-inline-start: 18px; border-inline-start: 3px solid var(--orange); font-size: 1.02rem; line-height: 1.75; }
.pd-statement p { margin: 0 0 .7em; }
.pd-statement p:last-child { margin-bottom: 0; }
[dir="rtl"] .pd-statement { line-height: 1.95; }
.pd-who { margin: auto 0 0; padding-top: 14px; border-top: 1px dashed var(--line-strong); display: flex; flex-direction: column; gap: 2px; }
.pd-who b { font-size: 1.02rem; }
.pd-who span { color: var(--muted); font-size: .88rem; }
.pd-close {
  position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: var(--surface-2); color: var(--text); cursor: pointer; transition: background .2s, color .2s, transform .3s;
}
.pd-close:hover, .pd-close:focus-visible { background: var(--orange); color: #fff; transform: rotate(90deg); outline: none; }
/* the details rise in one after another once the box has opened */
.pred-dlg.is-open .pd-in { animation: pd-rise .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(160ms + var(--i, 0) * 70ms); }
@keyframes pd-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* keep the scrollbar space reserved, so locking the page while the box is open never shifts it sideways */
html { scrollbar-gutter: stable; }
html.dlg-open { overflow: hidden; }
@media (max-width: 760px) {
  .pred-dlg { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 22px; }
  .pd-content { grid-template-columns: 1fr; max-height: calc(100dvh - 20px); overflow-y: auto; }
  .pd-photo { min-height: 0; aspect-ratio: 16 / 11; max-height: 38dvh; }
  .pd-main { padding: 22px 20px 22px; max-height: none; overflow: visible; gap: 15px; }
  .pd-meta { padding-inline-end: 0; }
  .pd-club img.crest { width: 52px; height: 52px; }
  .pd-pick { font-size: 1.3rem; }
  [dir="rtl"] .pd-pick { font-size: 1.15rem; }
  .pd-close { background: rgb(255 255 255 / .92); color: var(--ink); }
}
.pred-photo { position: relative; aspect-ratio: 4 / 4.2; background: linear-gradient(160deg, var(--orange-2), var(--orange-deep)); overflow: hidden; }
.pred-photo > img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* the two clubs, on a dark strip across the bottom of the photo */
.pred-clubs {
  position: absolute; inset: auto 10px 10px; margin: 0; padding: 10px 8px 9px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 4px;
  background: rgb(15 15 15 / .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-radius: 14px; border-top: 2px solid var(--orange); color: #fff;
}
.pred-club { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; text-align: center; }
.pred-club .crest { width: var(--s, 40px); height: var(--s, 40px); }
.pred-club img.crest { width: 40px; height: 40px; border-radius: 0; object-fit: contain; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .45)); }
.pred-club .crest-txt { background: var(--c); }
.pred-club b { font: 700 .82rem/1.15 var(--f-body); max-width: 100%; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
[dir="rtl"] .pred-club b { font-size: .8rem; line-height: 1.45; }
.pred-vs { font: 800 .72rem/1 var(--f-body); text-transform: uppercase; letter-spacing: .06em; color: var(--orange);
  padding: 5px 7px; border: 1px solid rgb(255 255 255 / .22); border-radius: 999px; }
[dir="rtl"] .pred-vs { letter-spacing: 0; }
.pred-clubs-text { display: block; text-align: center; font: 700 .9rem/1.35 var(--f-body); padding: 14px 12px; }
.pred-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; text-align: center; }
.pred-match { margin: 0; font: 700 .8rem/1.3 var(--f-body); text-transform: uppercase; letter-spacing: .07em; color: var(--orange); }
[dir="rtl"] .pred-match { letter-spacing: 0; font-size: .85rem; }
.pred-pick { margin: 0; font: 700 1.2rem/1.25 var(--f-head); flex: 1; }
[dir="rtl"] .pred-pick { font-size: 1rem; line-height: 1.6; }
.pred-who { margin: 6px 0 0; font-size: .88rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; }
.pred-who b { color: var(--text); }
@media (max-width: 1020px) { .pred-row, .pred-row.count-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) {
  .pred-row, .pred-row.count-5 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
  .pred { scroll-snap-align: start; }
}

/* ── S5 · standings board + scoop ──────────────────────────────────────── */
/* ── rain over the stadium photo (when it is raining there now) ── */
.board-rain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.board.is-raining .board-rain { opacity: 1; }
.board-bg::after { transition: background 1.2s ease; }
.board.is-raining .board-bg::after { background: linear-gradient(180deg, rgb(10 18 32 / .45), rgb(0 0 0 / .65)); }   /* a darker, colder sky */
.board.is-raining .board-slide.is-on { filter: saturate(.75); transition: filter 1.2s ease, opacity 1.4s ease; }
.rain-sound { position: absolute; top: 16px; inset-inline-end: 16px; z-index: 6; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: #fff; background: rgb(0 0 0 / .45); border: 1px solid rgb(255 255 255 / .25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: rain-pop .4s cubic-bezier(.2, .9, .3, 1.3) both; transition: background .2s, border-color .2s; }
.rain-sound:hover, .rain-sound:focus-visible { background: var(--orange); border-color: var(--orange); outline: none; }
.rain-sound .rs-off { display: none; }
.rain-sound[aria-pressed="false"] .rs-on { display: none; }
.rain-sound[aria-pressed="false"] .rs-off { display: block; }
.rain-sound[hidden] { display: none; }
@keyframes rain-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.rain-note { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600;
  background: rgb(61 155 255 / .25); border: 1px solid rgb(120 180 255 / .4); }
.rain-note[hidden] { display: none; }
/* ── Leagues: one stadium box, three columns — standings | matches | top scorers over top assists ── */
.board-wide { min-height: 0; }
.board-wide .board-panel { padding: 16px clamp(14px, 2vw, 22px) 12px; gap: 12px; }
/* The whole box fits on the screen: the columns get the height left after the header (72px), the league button,
   the stadium line and the box padding (about 130px) — never taller than 620px, never shorter than 340px. */
.lgx { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr) minmax(0, .95fr); gap: 12px; height: clamp(340px, calc(100dvh - 134px), 1000px); }
.lgx-side { display: grid; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; min-height: 0; }
.lgx-box { display: flex; flex-direction: column; min-height: 0; min-width: 0; border-radius: 16px; overflow: hidden;
  background: rgb(14 14 14 / .9); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); box-shadow: 0 18px 40px -28px rgb(0 0 0 / .9); }
.lgx-table { container-type: inline-size; }   /* the table switches to its compact sizes by the width of its own column */
.lgx-h { flex: none; margin: 0; display: flex; align-items: center; gap: 8px; padding: 12px 16px; font: 700 .95rem/1.3 var(--f-head); color: #fff;
  background: #0f0f0f; border-bottom: 1px solid #262626; }
.lgx-h .ic { color: var(--orange); }
.lgx .board-body { flex: 1 1 0; min-height: 0; overflow: auto; background: none; border-radius: 0; padding: 0 0 6px; backdrop-filter: none; -webkit-backdrop-filter: none; }
.lgx .ltable thead th { top: 0; }
/* top scorers / top assists */
.pl-list { list-style: none; margin: 0; padding: 2px 0; }
.pl { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 14px; border-top: 1px solid #1f1f1f; color: #ececea; }
.pl:first-child { border-top: 0; }
.pl:hover { background: #1b1b1b; }
.pl-pos { color: #8d8d88; font-weight: 700; font-size: .85rem; text-align: center; }
.pl-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pl-who .crest { width: 22px; height: 22px; flex: none; object-fit: contain; }
.pl-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.pl-name b { font-weight: 700; font-size: .9rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-name small { color: #8d8d88; font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-num { font: 800 1.1rem/1 var(--f-head); font-family: "Readex Pro", var(--f-head); color: #fff; min-width: 30px; text-align: center; }
.pl.is-top .pl-num, .pl.is-top .pl-pos { color: var(--orange); }
/* matches column: a little tighter so names fit */
.lgx-fx .fx { font-size: .86rem; gap: 8px; }
.lgx-fx .fx-day { padding-inline: 14px; }
/* ── match details (a click on a time or score in the schedule): straight on the stadium photo ── */
.lgx[hidden], .mx-wrap[hidden] { display: none !important; }
.fx-mid { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 4px 6px; border-radius: 10px; transition: background .2s, opacity .2s; }
.fx-mid:hover { background: #222; }
.fx-mid:hover time, .fx-mid:hover .fx-score { border-color: var(--orange); }
.fx-mid:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.fx-mid.is-loading { opacity: .45; pointer-events: none; }
/* while a match is open the league picker steps aside (the match line names the league) */
.board.has-match .board-controls { display: none; }
/* while a match is open the photo is a little darker, so the white text reads well on it */
.board.has-match .board-bg::after { background: linear-gradient(180deg, rgb(0 0 0 / .5), rgb(0 0 0 / .72)); }
.mx-wrap { height: clamp(400px, calc(100dvh - 76px), 1060px); overflow: hidden; display: flex; flex-direction: column; padding: 2px clamp(8px, 2vw, 18px) 6px;
  color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / .85), 0 0 18px rgb(0 0 0 / .45); scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / .35) transparent;
  animation: mx-in .4s cubic-bezier(.2, .85, .25, 1) both; }
.mx-wrap.is-out { animation: mx-out .26s ease-in both; }
.lgx.is-back { animation: mx-in .38s cubic-bezier(.2, .85, .25, 1) both; }
/* fade and slide only — no scaling, so the logos stay pin-sharp after the animation */
@keyframes mx-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes mx-out { to { opacity: 0; transform: translateY(10px); } }
.mx-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mx-close { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff; text-shadow: none;
  background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .3); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s, border-color .2s, transform .3s; }
.mx-close:hover, .mx-close:focus-visible { background: var(--orange); border-color: var(--orange); transform: rotate(90deg); outline: none; }
.mx-back { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px; cursor: pointer; color: #fff; text-shadow: none;
  background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .3); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font: 700 .86rem/1 var(--f-body); transition: background .2s, border-color .2s, transform .2s; }
.mx-back:hover, .mx-back:focus-visible { background: var(--orange); border-color: var(--orange); outline: none; transform: translateX(-2px); }
[dir="rtl"] .mx-back:hover, [dir="rtl"] .mx-back:focus-visible { transform: translateX(2px); }
.mx-back-ic { transform: rotate(180deg); }
[dir="rtl"] .mx-back-ic { transform: none; }
.mx-comp { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 700; }
.mx-comp img { width: 20px; height: 20px; object-fit: contain; filter: drop-shadow(0 1px 3px rgb(0 0 0 / .6)); }
/* the clubs: big logos with name, place, points, played and form under each */
.mx-hero { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: clamp(12px, 3vw, 40px); padding: 0 0 clamp(8px, 1.6vh, 16px); text-align: center; }
.mx-club { display: flex; flex-direction: column; align-items: center; gap: clamp(4px, .9vh, 9px); min-width: 0; }
.mx-logo .crest { width: clamp(72px, min(13vw, 18vh), 168px); height: clamp(72px, min(13vw, 18vh), 168px); object-fit: contain; filter: drop-shadow(0 4px 8px rgb(0 0 0 / .45));
  animation: mx-pop .5s cubic-bezier(.2, .9, .3, 1.3) both; }
.mx-club:last-child .mx-logo .crest { animation-delay: .06s; }
@keyframes mx-pop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.mx-name { font: 800 clamp(1.05rem, min(1.9vw, 2.9vh), 1.55rem)/1.2 var(--f-head); }
.mx-stats { display: flex; gap: 20px; }
.mx-stats span { display: flex; flex-direction: column; align-items: center; }
.mx-stats b { font: 800 1.25rem/1.1 "Readex Pro", var(--f-head); }
.mx-stats small { font-size: .72rem; opacity: .82; }
.mx-formline .formrun i { box-shadow: 0 1px 4px rgb(0 0 0 / .5); }
.mx-mid { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: clamp(14px, 4vh, 44px); }
.mx-score { font: 800 clamp(2.2rem, min(4.6vw, 7vh), 3.6rem)/1 "Readex Pro", var(--f-head); letter-spacing: .02em; }
.mx-time { font: 800 clamp(1.9rem, 3.6vw, 2.7rem)/1 "Readex Pro", var(--f-head); padding: 8px 18px; border: 2px solid rgb(255 255 255 / .55); border-radius: 14px; }
.mx-vs { font: 800 1.2rem/1 var(--f-head); color: #ffb020; }
.mx-state { font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
[dir="rtl"] .mx-state { letter-spacing: 0; text-transform: none; }
.mx-state.is-live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: #e5202b; text-shadow: none; }
.mx-state.is-live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: live-pulse 1.4s ease-out infinite; }
.mx-ht { font-size: .8rem; opacity: .85; }
/* the facts, in one line across under the clubs */
.mx-facts { flex: none; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px clamp(20px, 3.2vw, 44px); margin: 0 0 clamp(8px, 1.4vh, 14px); padding: clamp(8px, 1.4vh, 14px) 0;
  border-block: 1px solid rgb(255 255 255 / .22); }
.mx-facts li { display: flex; align-items: center; gap: 10px; min-width: 0; text-align: start; }
.mx-facts li > .ic { flex: none; color: var(--orange); filter: drop-shadow(0 1px 3px rgb(0 0 0 / .7)); }
.mx-facts li > .wx-ic { flex: none; }
.mx-facts li > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }   /* only the label/value group, not the time or temperature inside a value */
.mx-facts small { font-size: .72rem; opacity: .82; }
.mx-facts b { font-size: .95rem; white-space: nowrap; }
.mx-facts em { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: .76rem; opacity: .9; }
/* their last meetings */
.mx-meet { flex: 1; min-height: 0; width: 100%; max-width: 820px; margin: 0 auto; text-align: center; overflow: hidden; display: flex; flex-direction: column; }
.mx-meet-head { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 36px); flex-wrap: wrap; margin-bottom: 6px; }
.mx-meet h4 { margin: 0; font: 700 1.05rem/1.3 var(--f-head); }
.mx-tally { display: flex; justify-content: center; gap: clamp(18px, 3vw, 36px); }
.mx-tally span { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.mx-tally b { font: 800 1.3rem/1.05 "Readex Pro", var(--f-head); }
.mx-tally small { font-size: .78rem; opacity: .85; max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-h2h { list-style: none; margin: 0; padding: 0; min-height: 0; overflow: hidden; }
.mx-h2h li { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 12px; align-items: center; padding: clamp(4px, .8vh, 8px) 0; border-top: 1px solid rgb(255 255 255 / .16); }
/* a few pixels back for the 3 meetings: smaller close button, tighter rows and labels (Kurdish/Arabic lines are taller) */
.mx-close { width: 34px; height: 34px; }
.mx-h2h li { padding-block: clamp(3px, .5vh, 7px); }
[dir="rtl"] .mx-h2h-match, [dir="rtl"] .mx-h2h-date { line-height: 1.45; }
[dir="rtl"] .mx-facts small, [dir="rtl"] .mx-facts em { line-height: 1.35; }
[dir="rtl"] .mx-facts b { line-height: 1.5; }
/* ── clickable clubs and players (standings, scorers, assists, match view) ── */
button.team-cell, button.pl-who, .mx-clubbtn, .cx-link, button.cx-next { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; text-align: inherit; }
button.team-cell { width: 100%; border-radius: 8px; }
button.team-cell:hover span, button.pl-who:hover .pl-name b { color: var(--orange); }
button.pl-who { width: 100%; border-radius: 8px; }
button.team-cell:focus-visible, button.pl-who:focus-visible, .mx-clubbtn:focus-visible, .cx-link:focus-visible, button.cx-next:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.mx-clubbtn { display: flex; flex-direction: column; align-items: center; gap: inherit; text-shadow: inherit; }
.mx-clubbtn:hover .mx-name { color: var(--orange); }
.cx-link { text-shadow: inherit; text-decoration: underline; text-decoration-color: rgb(255 255 255 / .35); text-underline-offset: 3px; }
.cx-link:hover { color: var(--orange); text-decoration-color: var(--orange); }
button.cx-next { width: 100%; }
button.cx-next:hover b { background: var(--orange); }
/* ── club view and player view (same look as the match view) ── */
.cx-hero { flex: none; display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 36px); padding: 0 0 clamp(8px, 1.6vh, 16px); }
.cx-id { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(4px, .9vh, 8px); min-width: 0; }
.cx-name { font: 800 clamp(1.5rem, min(3vw, 5vh), 2.6rem)/1.1 var(--f-head); }
.cx-ground { display: inline-flex; align-items: center; gap: 7px; font-size: .95rem; }
.cx-ground .ic { color: var(--orange); }
.cx-form { display: inline-flex; align-items: center; gap: 10px; }
.cx-form small { font-size: .75rem; opacity: .85; }
.cx-stats { flex: none; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px clamp(14px, 2.4vw, 30px); margin: 0 0 clamp(6px, 1.2vh, 12px); padding: clamp(8px, 1.4vh, 12px) 0;
  border-top: 1px solid rgb(255 255 255 / .22); }
.cx-stats li { display: flex; flex-direction: column; align-items: center; min-width: 46px; }
.cx-stats b { font: 800 clamp(1.15rem, 2.6vh, 1.5rem)/1.1 "Readex Pro", var(--f-head); }
.cx-stats small { font-size: .72rem; opacity: .82; white-space: nowrap; }
.cx-stats li.is-key b { color: var(--orange); font-size: clamp(1.4rem, 3.4vh, 1.9rem); }
.cx-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 36px); }
.cx-cols .mx-meet { max-width: none; }
.cx-cols .mx-h2h li { grid-template-columns: minmax(0, 1fr); gap: 2px; text-align: center; }
.cx-cols .mx-h2h-date { text-align: center; }
/* player: his shirt number on his club's logo */
.px-logo { position: relative; }
.px-shirt { position: absolute; inset-inline-end: -6px; bottom: -4px; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center;
  background: var(--orange); color: #fff; font: 800 1.1rem/1 "Readex Pro", var(--f-head); font-style: normal; text-shadow: none; box-shadow: 0 6px 14px -6px rgb(0 0 0 / .7); }
.px-club { font-size: 1rem; font-weight: 700; }
.px-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; opacity: .92; }
.px-meta span + span::before { content: "·"; margin-inline-end: 14px; opacity: .7; }
.px-other li { grid-template-columns: minmax(0, 1fr) auto; }
.px-other .mx-h2h-date { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; opacity: 1; }
.px-other .mx-h2h-date img { width: 16px; height: 16px; object-fit: contain; }
.px-nums { display: inline-flex; gap: 16px; font-size: .88rem; }
.px-nums b { font: 800 1.05rem/1 "Readex Pro", var(--f-head); }
@media (max-width: 700px) {
  .cx-hero { flex-direction: column; text-align: center; }
  .cx-id { align-items: center; }
  .cx-cols { grid-template-columns: minmax(0, 1fr); }
  .px-meta { justify-content: center; }
}
/* player photos: round, with the club logo (and in the player view the shirt number) on them */
.pl-face { position: relative; flex: none; width: 34px; height: 34px; }
.pl-photo { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: center top; background: #2a2a2a; box-shadow: 0 0 0 1.5px rgb(255 255 255 / .18); }
.pl-face .crest { position: absolute; inset-inline-end: -5px; bottom: -3px; width: 16px; height: 16px; }
.px-pic { position: relative; flex: none; width: clamp(96px, min(13vw, 19vh), 168px); height: clamp(96px, min(13vw, 19vh), 168px); }
.px-photo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center top; background: #2a2a2a;
  box-shadow: 0 0 0 3px rgb(255 255 255 / .85), 0 14px 30px -12px rgb(0 0 0 / .8); animation: mx-pop .5s cubic-bezier(.2, .9, .3, 1.3) both; }
.px-club-badge { position: absolute; inset-inline-start: -4px; bottom: -2px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgb(20 20 20 / .75); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); box-shadow: 0 4px 12px -4px rgb(0 0 0 / .7); }
.px-club-badge .crest { width: 32px; height: 32px; }
.px-credit { flex: none; margin: 8px 0 0; text-align: center; font-size: .68rem; opacity: .7; }
/* ── player card: the player large on one side, his details on the other ── */
.mx.px { height: 100%; display: flex; flex-direction: column; }
.pc { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(12px, 2.4vw, 32px); align-items: stretch; }
.pc-figure { position: relative; margin: 0; min-height: 0; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; border-radius: 22px;
  background: radial-gradient(95% 75% at 50% 45%, rgb(255 69 0 / .5), rgb(255 69 0 / .12) 55%, transparent 80%), linear-gradient(180deg, rgb(255 255 255 / .08), rgb(0 0 0 / .3));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); }
/* the club crest in the top corner */
.pc-crest { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; }
.pc-crest .crest { width: clamp(38px, 6.5vh, 58px); height: clamp(38px, 6.5vh, 58px); filter: drop-shadow(0 4px 8px rgb(0 0 0 / .5)); }
/* the player himself: cut out, as tall as the card, fading at the bottom */
.pc-player { position: relative; z-index: 1; display: block; }
.pc-figure.has-cut .pc-player { height: 96%; max-height: 520px; max-width: 100%; object-fit: contain; object-position: bottom center; filter: drop-shadow(0 18px 26px rgb(0 0 0 / .55));
 
  -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent); mask-image: linear-gradient(to bottom, #000 84%, transparent); }
/* no cut-out: his photo fills the card, fading into it at the bottom */
.pc-figure.has-photo .pc-player { width: 100%; height: 100%; object-fit: cover; object-position: center 15%;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
/* no photo at all: the club crest stands large in the card */
.pc-figure.has-crest { align-items: center; }
.pc-figure.has-crest .pc-crest { position: static; }
.pc-figure.has-crest .pc-crest .crest { width: clamp(110px, 22vh, 190px); height: clamp(110px, 22vh, 190px); }
/* small round photos in the lists: the studio photo's face area */
.pl-photo.is-cut { object-fit: cover; object-position: 50% 6%; background: radial-gradient(circle at 50% 40%, #3a3a3a, #1c1c1c); }
/* the details beside him */
.pc-info { min-width: 0; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: clamp(6px, 1.2vh, 12px); text-align: start; }
.pc-id { align-items: flex-start; }
.pc-id .cx-name { font-size: clamp(1.6rem, min(3.2vw, 5.6vh), 2.8rem); }
.pc-info .cx-stats { justify-content: flex-start; border-top: 1px solid rgb(255 255 255 / .22); }
.pc-info .mx-facts { justify-content: flex-start; }
.pc-info .mx-meet { flex: none; margin: 0; max-width: none; text-align: start; }
.pc-info .mx-meet-head { justify-content: flex-start; }
.pc-info .px-credit { text-align: start; margin-top: 2px; }
@media (max-width: 700px) {
  .pc { grid-template-columns: minmax(0, 1fr); }
  .pc-figure { height: 300px; }
  .pc-info { text-align: center; }
  .pc-id { align-items: center; }
  .pc-info .cx-stats, .pc-info .mx-facts, .pc-info .mx-meet-head { justify-content: center; }
}
/* the club and player views sit in the middle of the box when they are shorter than it */
.mx-wrap > .mx { margin-block: auto; }
/* as many meetings as fit are shown (site.js hides the oldest ones that do not) */
.mx-h2h li[hidden] { display: none !important; }
.mx-h2h-date { font-size: .8rem; opacity: .85; text-align: start; }
.mx-h2h-match { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; font-size: .92rem; }
.mx-h2h-match > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .82; }
.mx-h2h-match > span:first-child { text-align: end; }
.mx-h2h-match > span:last-child { text-align: start; }
.mx-h2h-match .is-win { opacity: 1; font-weight: 800; }
.mx-h2h-match b { padding: 3px 10px; border-radius: 7px; background: rgb(255 255 255 / .16); text-shadow: none; }
.mx-none { margin: 0; opacity: .85; font-size: .9rem; }
@media (max-width: 1100px) { .mx-wrap { height: auto; max-height: none; overflow: visible; } .mx-meet { overflow: visible; } }
@media (max-width: 560px) {
  .mx-hero { gap: 8px; }
  .mx-stats { gap: 12px; }
  .mx-facts { justify-content: flex-start; }
  .mx-facts b { white-space: normal; }
  .mx-h2h li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .mx-h2h-date { text-align: center; }
}
/* Fantasy and Ask Nine AI side by side under the Leagues box */
.hub-below { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 26px); margin-top: clamp(18px, 2.6vw, 30px); align-items: stretch; }
.hub-below .ai-chat { margin-top: 0; }
/* in this row the Fantasy box lies flat: the trophy on one side, the text beside it */
.hub-below .fantasy-promo { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(18px, 2.4vw, 30px); row-gap: 8px; align-items: center; justify-items: start; text-align: start; }
.hub-below .fantasy-promo > * { grid-column: 2; }
.hub-below .fp-icon { grid-column: 1; grid-row: 1 / span 6; width: 96px; height: 96px; }
.hub-below .fp-text { max-width: 46ch; }
/* matches column: long club names wrap onto a second line instead of being cut */
.lgx-fx .fx-team > span:not(.crest) { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.25; overflow-wrap: anywhere; }
.board { position: relative; border-radius: var(--radius); overflow: hidden; background: #111; min-height: 560px; isolation: isolate; }
.board-bg, .board-slide { position: absolute; inset: 0; }
.board-slide { background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; transform: scale(1.06); }
.board-slide.is-on { opacity: 1; animation: kb 14s ease-out forwards; }
@keyframes kb { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.board-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .25), rgb(0 0 0 / .55)); }
.board-panel { position: relative; z-index: 1; padding: clamp(14px, 2.4vw, 26px); display: flex; flex-direction: column; gap: 14px; }
.board { container-type: inline-size; }
/* Fantasy "coming soon": its own card beside the table, dark with an orange glow in both modes */
.fantasy-promo {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px;
  padding: clamp(26px, 3vw, 38px) clamp(20px, 2.4vw, 28px); border-radius: var(--radius); color: #fff;
  background: radial-gradient(120% 70% at 50% 0%, rgb(255 69 0 / .38), transparent 62%), linear-gradient(165deg, #2a130a, #121212 58%);
  border: 1px solid rgb(255 255 255 / .08); box-shadow: 0 24px 50px -30px rgb(0 0 0 / .55);
}
.fp-badge { background: var(--orange); color: #fff; font: 800 .74rem/1 var(--f-body); text-transform: uppercase; letter-spacing: .08em; padding: 7px 12px; border-radius: 999px; }
[dir="rtl"] .fp-badge { letter-spacing: 0; font-size: .8rem; }
.fp-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; color: var(--orange); background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 2px rgb(255 69 0 / .55); }
.fp-title { margin: 4px 0 0; font: 800 1.7rem/1.1 var(--f-head); }
.fp-text { margin: 0; color: #d9d9d4; font-size: .95rem; line-height: 1.6; max-width: 32ch; }
[dir="rtl"] .fp-text { line-height: 1.85; }
.fp-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; text-align: start; }
.fp-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; }
.fp-list li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--orange) center / 11px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' stroke='%23fff' stroke-width='2' fill='none'/%3E%3C/svg%3E"); }
.fp-foot { margin: 6px 0 0; font-size: .8rem; color: #a9a9a4; }
/* the board shows #, club, P, W, D, L, GD, Pts (goals for/against and the last-4 dots are left out) */
.board-panel .ltable .opt2, .board-panel .ltable .c-form { display: none; }
/* the large table: bigger text, crests and rows, with room between the columns */
.board-panel .ltable { font-size: 1rem; }
.board-panel .ltable th, .board-panel .ltable td { padding: 11px 12px; }
.board-panel .ltable thead th { font-size: .82rem; padding-block: 13px; }
.board-panel .ltable .c-pos { width: 44px; }
.board-panel .ltable .c-pts { font-size: 1.05rem; padding-inline-end: 18px; }
.board-panel .ltable .team-cell { gap: 12px; }
.board-panel .ltable .crest { width: 24px; height: 24px; --s: 24px; }
@container (max-width: 640px) {
  .board-panel .ltable { font-size: .84rem; }
  .board-panel .ltable th, .board-panel .ltable td { padding: 8px 4px; }
  .board-panel .ltable .c-pos { width: 26px; }
  .board-panel .ltable .c-pts { padding-inline-end: 10px; }   /* the last visible column once the last-4 dots are hidden */
  .board-panel .ltable .team-cell { min-width: 0; gap: 7px; }
  /* long club names wrap onto a second line instead of being cut with "…", so the whole name always shows */
  .board-panel .ltable .c-team { white-space: normal; }
  .board-panel .ltable .team-cell span { max-width: none; overflow: visible; white-space: normal; line-height: 1.25; }
  .board-panel .fx-team .crest { display: none; }
  /* Kurdish/Arabic headings are words, not one-letter abbreviations: smaller headings and earlier … on long club names */
  [dir="rtl"] .board-panel .ltable thead th { font-size: .68rem; padding-inline: 3px; }
  [dir="rtl"] .board-panel .ltable td { padding-inline: 3px; }
  [dir="rtl"] .board-panel .ltable tr > :first-child { padding-inline-start: 10px; }
  [dir="rtl"] .board-panel .ltable .c-pts { padding-inline-end: 10px; }
  [dir="rtl"] .board-panel .ltable .team-cell span { line-height: 1.5; }
  /* the league dropdown and the Ranking/Games buttons, smaller and side by side */
  .board-panel .board-controls { flex-wrap: nowrap; gap: 8px; }
  .board-panel .pill, .board-panel .pill-tabs { height: 38px; border-width: 1.5px; border-radius: 10px; }
  .board-panel .pill { padding: 0 10px; min-width: 0; flex: 0 1 auto; }
  .board-panel .pill-select select { font-size: .86rem; padding-inline-end: 18px; max-width: 8.5em; text-overflow: ellipsis; }
  .board-panel .pill-select .ic { inset-inline-end: 8px; }
  .board-panel .lg-btn { font-size: .86rem; gap: 7px; padding-inline-start: 5px; }
  .board-panel .lg-logo { width: 26px; height: 26px; }
  .board-panel .lg-logo img { width: 20px; height: 20px; }
  .board-panel .lg-current { max-width: 8.5em; }
  .board-panel .pill-tabs { padding: 2px; flex: none; }
  .board-panel .pill-tabs button { padding: 0 10px; font-size: .84rem; border-radius: 7px; }
}
.board-controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--orange); color: #fff;
  border: 2px solid #fff; border-radius: 12px; padding: 0 14px; height: 46px; font-weight: 700; position: relative;
  box-shadow: 0 6px 18px -8px rgb(0 0 0 / .6);
}
.pill-select select {
  appearance: none; background: transparent; border: 0; color: #fff; font: 700 1rem var(--f-body); padding-inline-end: 22px; height: 100%; cursor: pointer;
}
.pill-select select option { color: #111; background: #fff; }
.pill-select .ic { position: absolute; inset-inline-end: 12px; pointer-events: none; }
.pill-tabs { display: inline-flex; background: rgb(0 0 0 / .55); border: 2px solid #fff; border-radius: 12px; padding: 3px; height: 46px; }
.pill-tabs button { border: 0; background: transparent; color: #eee; padding: 0 16px; border-radius: 8px; font-weight: 700; }
.pill-tabs button[aria-selected="true"] { background: var(--orange); color: #fff; }
/* the fill stays inside the white border, so no orange sliver shows around the outside */
.pill, .pill-tabs { background-clip: padding-box; }
.board-controls { position: relative; z-index: 4; }

/* ── league picker: a styled list that drops down from the button ── */
.lg-pick { position: relative; }
.lg-pick select[data-league] { display: none; }   /* only holds the choice; the styled list is what visitors see */
.lg-btn { cursor: pointer; font: 700 1rem var(--f-body); transition: transform .15s, box-shadow .2s; }
.lg-btn:active { transform: scale(.97); }
.lg-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgb(255 255 255 / .5), 0 6px 18px -8px rgb(0 0 0 / .6); }
.lg-current { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-chev { flex: none; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.lg-pick.is-open .lg-chev { transform: rotate(180deg); }
.lg-list {
  position: absolute; top: calc(100% + 10px); inset-inline-start: 0; z-index: 5; min-width: max(100%, 220px);
  margin: 0; padding: 6px; list-style: none; border-radius: 16px;
  background: rgb(17 17 17 / .97); border: 1px solid rgb(255 255 255 / .12);
  box-shadow: 0 22px 44px -14px rgb(0 0 0 / .75), 0 0 0 1px rgb(0 0 0 / .4);
  transform-origin: top center; opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.95);
  transition: opacity .2s ease, transform .28s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .28s;
}
.lg-list::before {   /* small pointer towards the button */
  content: ""; position: absolute; top: -6px; inset-inline-start: 24px; width: 12px; height: 12px; transform: rotate(45deg);
  background: rgb(17 17 17); border-top: 1px solid rgb(255 255 255 / .12); border-left: 1px solid rgb(255 255 255 / .12);
}
.lg-pick.is-open .lg-list { opacity: 1; visibility: visible; transform: none;
  transition: opacity .22s ease, transform .4s cubic-bezier(.2, .9, .25, 1.15), visibility 0s; }
.lg-list:focus { outline: none; }
.lg-list li {
  position: relative; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px;
  color: #dcdcd8; font-weight: 600; font-size: .92rem; white-space: nowrap; cursor: pointer;
  opacity: 0; transform: translateY(-6px);
  transition: background .15s, color .15s, opacity .2s, transform .2s;
}
/* the leagues slide in one after another */
.lg-pick.is-open .lg-list li { opacity: 1; transform: none;
  transition: background .15s, color .15s, opacity .3s ease calc(70ms + var(--i, 0) * 55ms), transform .38s cubic-bezier(.2, .8, .2, 1) calc(70ms + var(--i, 0) * 55ms); }
.lg-list li:hover, .lg-list li.is-active { background: rgb(255 255 255 / .08); color: #fff; }
.lg-list li[aria-selected="true"] { color: #fff; background: rgb(255 69 0 / .18); }
.lg-list li[aria-selected="true"].is-active, .lg-list li[aria-selected="true"]:hover { background: rgb(255 69 0 / .26); }
.lg-dot { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: #555; box-shadow: 0 2px 6px rgb(0 0 0 / .35); transition: box-shadow .2s, transform .3s; }
.lg-dot img { width: 28px; height: 28px; object-fit: contain; }   /* league logos sit on a white badge, so dark ones stay visible */
/* the chosen league's logo in the button */
.lg-logo { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #fff; color: #555; }
.lg-logo img { width: 22px; height: 22px; object-fit: contain; }
.lg-list li:hover .lg-dot, .lg-list li.is-active .lg-dot { transform: rotate(-8deg) scale(1.06); }
.lg-list li[aria-selected="true"] .lg-dot { box-shadow: 0 0 0 2px var(--orange), 0 2px 6px rgb(0 0 0 / .35); }
.lg-name { flex: 1; text-align: center; }   /* the league name sits in the middle of its row */
.lg-tick { flex: none; width: 18px; height: 18px; margin-inline: 5px; border-radius: 50%; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .3s cubic-bezier(.2, .8, .2, 1.4);
  background: var(--orange) center / 10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' stroke='%23fff' stroke-width='2' fill='none'/%3E%3C/svg%3E"); }
.lg-list li[aria-selected="true"] .lg-tick { opacity: 1; transform: none; }
.board-body {
  background: rgb(14 14 14 / .9); color: #ececea; border-radius: 16px; padding: 0 0 6px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  overflow-x: auto; scrollbar-width: thin; scrollbar-color: #444 #0f0f0f;   /* every club shows; no inner scrollbar */
  transition: opacity .2s;
}
.board-body.is-loading { opacity: .45; }
.board-caption { margin: 0; display: flex; align-items: center; gap: 8px; color: #fff; font-size: .85rem; text-shadow: 0 1px 6px rgb(0 0 0 / .8); }
.board-caption .season { margin-inline-start: auto; opacity: .85; }
.board-credit { font-size: .68rem; opacity: .75; }   /* shown in full: the licence asks for the photographer to be named */
.board-caption { flex-wrap: wrap; row-gap: 2px; }

.ltable { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.ltable th, .ltable td { padding: 8px 6px; text-align: center; white-space: nowrap; }
/* the heading row stays pinned to the very top of the table box while the rows scroll under it
   (the "#" cell included: the position column's own rule must not take away its pinning) */
.ltable thead th, .ltable thead th.c-pos { color: #8d8d88; font-weight: 600; font-size: .78rem; position: sticky; top: 0; background: #0f0f0f; z-index: 2; }
.ltable thead tr { box-shadow: 0 1px 0 #222; }
/* the black heading row runs edge to edge; the first and last columns keep their space from the sides inside the cells */
.ltable tr > :first-child { padding-inline-start: 10px; }
.ltable tr > :last-child { padding-inline-end: 10px; }
.ltable tbody tr { border-top: 1px solid #222; }
.ltable tbody tr:hover { background: #1b1b1b; }
.ltable .c-pos { width: 34px; color: #aaa; position: relative; }
.ltable .c-team { text-align: start; font-weight: 600; color: #f3f3f0; }
.ltable .team-cell { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.ltable .c-pts { font-weight: 800; color: #fff; }
.ltable tbody tr > .c-pos::before { content: ""; position: absolute; inset-inline-start: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; }
.ltable tr.z-ucl > .c-pos::before { background: #3b82f6; }
.ltable tr.z-uel > .c-pos::before, .ltable tr.z-uecl > .c-pos::before { background: var(--orange); }
.ltable tr.z-relegation > .c-pos::before { background: #e5484d; }
.formrun { display: inline-flex; gap: 4px; }
.formrun i { width: 15px; height: 15px; border-radius: 50%; display: inline-block; position: relative; }
.formrun .fw { background: #22a559; }
.formrun .fl { background: #e5484d; }
.formrun .fd { background: #7b7b76; }
.formrun i::after { content: ""; position: absolute; inset: 0; background: #fff; }
.formrun .fw::after { mask: center / 9px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' stroke='%23000' stroke-width='2' fill='none'/%3E%3C/svg%3E"); }
.formrun .fl::after { mask: center / 7px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 2l8 8M10 2l-8 8' stroke='%23000' stroke-width='2.4'/%3E%3C/svg%3E"); }
.formrun .fd::after { mask: center / 7px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 6h10' stroke='%23000' stroke-width='2.6'/%3E%3C/svg%3E"); }
/* club logos are shown whole (no rounded corners, which cut the corners off shield-shaped badges); only the text badge of a club without a logo is round */
.crest { width: var(--s, 22px); height: var(--s, 22px); border-radius: 0; object-fit: contain; flex: none; }
.crest-txt { border-radius: 50%; display: inline-grid; place-items: center; background: var(--c); color: var(--fg); font: 700 calc(var(--s) * .34)/1 "Barlow", sans-serif; letter-spacing: -.02em; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .18); }
.zones { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; margin: 8px 10px 4px; padding: 0; font-size: .72rem; color: #9a9a95; }
.zones li { display: inline-flex; align-items: center; gap: 6px; }
.zones li::before { content: ""; width: 10px; height: 3px; border-radius: 2px; }
.zones .z-ucl::before { background: #3b82f6; }
.zones .z-uel::before { background: var(--orange); }
.zones .z-relegation::before { background: #e5484d; }
.board-body .empty { color: #aaa; padding: 30px 16px; text-align: center; }

.fixtures { padding: 6px 10px 10px; }
.fx-day { font: 700 .8rem/1 var(--f-body); color: var(--orange-2); text-transform: uppercase; letter-spacing: .07em; margin: 14px 4px 6px; }
.fx-list { list-style: none; margin: 0; padding: 0; }
.fx { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 11px 6px; border-top: 1px solid #222; }
.fx-team { display: flex; align-items: center; gap: 10px; font-weight: 600; min-width: 0; }
.fx-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-home { justify-content: flex-end; text-align: end; }
.fx-mid { min-width: 74px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.fx-score { display: inline-flex; gap: 6px; font: 800 1.25rem/1 "Barlow Condensed", sans-serif; background: #222; padding: 6px 10px 4px; border-radius: 8px; }
.fx-score i { font-style: normal; opacity: .6; }
.fx-mid time { font-weight: 700; color: #fff; border: 1px solid #3a3a3a; padding: 5px 10px; border-radius: 8px; font-size: .9rem; }
.live-dot { font-style: normal; color: #ff1a1a; font-size: .72rem; font-weight: 700; margin-top: 4px; }
.live-dot::before { content: "● "; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }

.hub-main { min-width: 0; }
.scoop { margin-bottom: clamp(40px, 6vw, 72px); }
.hub-head { margin-bottom: clamp(18px, 3vw, 30px); }
.scoop-title { display: flex; align-items: center; justify-content: center; gap: .45em; font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 700; margin-bottom: 18px; }
.scoop-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
/* the original card size: about 84px tall with a 104px photo, whatever the headline length */
.scoop-card { height: 84px; display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 10px; color: var(--text); text-decoration: none; }
.scoop-card:hover { color: var(--text); }
.scoop-img { order: 2; border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.scoop-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.scoop-card:hover .scoop-img img { transform: scale(1.06); }
.scoop-text { min-width: 0; border-radius: 16px; background: var(--surface-2); padding: 10px 14px; display: flex; flex-direction: column; justify-content: center; gap: 4px;
  transition: background .15s; }
.scoop-card:hover .scoop-text { background: color-mix(in srgb, var(--orange) 9%, var(--surface-2)); }
.scoop-h { font-weight: 600; font-size: .88rem; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
[dir="rtl"] .scoop-h { line-height: 1.6; font-size: .84rem; }
.scoop-text small { color: var(--muted); font-weight: 500; font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1020px) {
  .hub-grid { grid-template-columns: 1fr; }
  .board { min-height: 0; }
  .scoop-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .lgx { grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; }
  .lgx-box { height: clamp(320px, calc(100dvh - 220px), 500px); }
  .lgx-side { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lgx-side .lgx-box { height: clamp(300px, calc(100dvh - 220px), 420px); }
}
@media (max-width: 700px) {
  .lgx, .lgx-side { grid-template-columns: minmax(0, 1fr); }
  .lgx-box { height: clamp(300px, calc(100dvh - 200px), 470px); }
  .hub-below { grid-template-columns: minmax(0, 1fr); }
  .hub-below .fantasy-promo { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .hub-below .fantasy-promo > *, .hub-below .fp-icon { grid-column: 1; grid-row: auto; }
  .hub-below .fp-icon { width: 76px; height: 76px; }
}
@media (max-width: 640px) {
  .scoop-row { grid-template-columns: 1fr; }
  .scoop-card { grid-template-columns: minmax(0, 1fr) 92px; }
}
@media (max-width: 640px) {
  .ltable .opt, .ltable .opt2 { display: none; }
  .ltable .team-cell { min-width: 0; }
  .ltable .c-team { white-space: normal; }
  .ltable .team-cell span { line-height: 1.3; }
  .pill-tabs button { padding: 0 12px; }
  .fx { grid-template-columns: 1fr auto 1fr; gap: 6px; font-size: .88rem; }
  .fx-team .crest { display: none; }
}
@media (min-width: 641px) and (max-width: 900px) { .ltable .opt2 { display: none; } }

/* ── news & article ────────────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chips a { padding: 8px 16px; border-radius: 99px; border: 0; text-decoration: none; font-weight: 600; font-size: .92rem; background: var(--surface-2); }
.chips a:hover { background: var(--line-strong); color: var(--text); }
.chips a[aria-current="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.ncard a { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--text); }
.ncard-img { aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.ncard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ncard a:hover img { transform: scale(1.04); }
.ncard-meta { font-size: .8rem; color: var(--muted); display: flex; gap: 10px; }
.ncard-meta b { color: var(--orange); }
.ncard h2 { font-size: 1.35rem; margin: 0; font-weight: 700; }
[dir="rtl"] .ncard h2 { font-size: 1.08rem; }
.ncard p { margin: 0; color: var(--muted); font-size: .95rem; }
.ncard a:hover h2 { color: var(--orange); }
.ncard-lead { grid-column: span 2; grid-row: span 2; }
.ncard-lead h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .news-grid { grid-template-columns: 1fr; } .ncard-lead { grid-column: auto; grid-row: auto; } }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pager a { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 99px; border: 0; background: var(--surface-2); text-decoration: none; font-weight: 700; }
.pager a[aria-current="page"] { background: var(--orange); border-color: var(--orange); color: #fff; }

.crumbs { font-size: .88rem; color: var(--muted); margin: 0 0 14px; }
.crumbs a { text-decoration: none; color: var(--orange); font-weight: 600; }
.lede { font-size: 1.18rem; color: var(--muted); margin: 0 0 18px; }
.byline { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; border-block: 1px solid var(--line); padding-block: 12px; }
.byline span { display: inline-flex; align-items: center; gap: 6px; }
.article-hero { margin-block: 28px; }
.article-hero img { width: 100%; max-height: 620px; object-fit: cover; border-radius: var(--radius); }
.prose { font-size: 1.1rem; }
.prose p { margin: 0 0 1.15em; }
[dir="rtl"] .prose { font-size: 1.02rem; }
.small-h { font-size: 1.4rem; }
.rel-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rel-list a { display: flex; gap: 14px; align-items: center; text-decoration: none; padding: 10px; border-radius: 14px; background: var(--surface-2); }
.rel-list img { width: 96px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
/* scoop page: links to the original report and a related article */
.scoop-refs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding-top: 18px; border-top: 1px dashed var(--line-strong); }
.scoop-refs .btn { display: inline-flex; align-items: center; gap: 8px; }
.scoop-page .scoop-source { font-weight: 700; color: var(--text); }
.rel-list span { display: flex; flex-direction: column; font-weight: 600; }
.rel-list small { color: var(--muted); font-weight: 400; }

/* ── forms ─────────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.foot-contact.contact-info { margin: 26px 0 30px; }
.card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: clamp(18px, 3vw, 30px); }
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; }
.field > span, .field legend { font-weight: 600; font-size: .92rem; }
.field input, .field textarea, .field select {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 18%, transparent); }
.field.has-error input, .field.has-error textarea { border-color: #e5484d; }
.field small { color: #e5484d; }
.rating-row { display: flex; gap: 8px; margin-top: 6px; }
.rating-row input { position: absolute; opacity: 0; }
.rating-row span { width: 46px; height: 46px; display: grid; place-items: center; border: 0; background: var(--surface-2); border-radius: 12px; font-weight: 700; cursor: pointer; }
.rating-row input:checked + span { background: var(--orange); border-color: var(--orange); color: #fff; }
.rating-row input:focus-visible + span { outline: 2.5px solid var(--orange); outline-offset: 2px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; align-self: flex-start;
  background: var(--orange); color: #fff; border: 0; border-radius: 99px; padding: 13px 24px; font-weight: 700; text-decoration: none;
  transition: background .15s, transform .1s;
}
.btn:hover { background: var(--orange-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.notice { padding: 12px 16px; border-radius: 12px; font-weight: 600; }
.notice-success { background: color-mix(in srgb, #22a559 14%, var(--surface)); color: #1b8a4a; border: 1px solid color-mix(in srgb, #22a559 40%, transparent); }
.notice-error { background: color-mix(in srgb, #e5484d 12%, var(--surface)); color: #d13b40; border: 1px solid color-mix(in srgb, #e5484d 40%, transparent); }

/* ── S6 · footer (always dark, like the reference) ─────────────────────── */
.sitefoot { background: var(--ink); color: #c9c9c4; margin-top: clamp(40px, 6vw, 80px); }
/* dark mode: page and footer are the same black, so a thin line marks where the footer starts */
:root[data-theme="dark"] .sitefoot { border-top: 1px solid #262626; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sitefoot { border-top: 1px solid #262626; } }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 32px; padding-block: clamp(30px, 4.5vw, 44px) 22px; }
.sitefoot .brand { color: #fff; }
.foot-brand p { margin: 14px 0 0; max-width: 30ch; }
.foot-h { font: 700 1rem/1.2 var(--f-body); color: #fff; margin: 6px 0 14px; }
[dir="rtl"] .foot-h { letter-spacing: 0; font-size: .95rem; }
.foot-links, .foot-contact, .social { list-style: none; margin: 0; padding: 0; }
.foot-links li + li { margin-top: 6px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--orange); }
.foot-contact li { display: flex; gap: 12px; align-items: flex-start; }
.foot-contact li + li { margin-top: 10px; }
.foot-contact .ic { color: var(--orange); margin-top: 3px; }
.foot-contact a { text-decoration: none; }
.contact-info .ic { color: var(--orange); }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
/* social icons under "Reach us": round, orange and lifted on hover */
.social a, .social span { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #333; background: #161616; display: grid; place-items: center; color: #ddd;
  transition: background .2s, border-color .2s, color .2s, transform .25s cubic-bezier(.2, .9, .3, 1.4), box-shadow .25s; }
.social a:hover, .social a:focus-visible { background: var(--orange); border-color: var(--orange); color: #fff; transform: translateY(-3px); box-shadow: 0 10px 20px -10px rgb(255 69 0 / .8); outline: none; }
.social span { cursor: default; }   /* no link set yet in Dashboard → Settings */

.foot-base { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; border-top: 1px solid #242424; padding-block: 14px 18px; font-size: .88rem; color: #8b8b86; }
.foot-base p { margin: 0; }
/* © line with Privacy Policy and Terms of Service beside it */
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.legal-link { color: #b9b9b4; text-decoration: none; position: relative; }
.legal-link::before { content: ""; position: absolute; inset-inline-start: -12px; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: #555; transform: translateY(-50%); }
.legal-link::after { content: ""; position: absolute; inset-inline: 0; bottom: -3px; height: 1.5px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
[dir="rtl"] .legal-link::after { transform-origin: right; }
.legal-link:hover { color: #fff; }
.legal-link:hover::after, .legal-link:focus-visible::after { transform: scaleX(1); }

/* Back to top: a button whose arrow bobs on hover and flies up on click */
.to-top { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; text-decoration: none; color: #fff; font-weight: 700;
  background: #1c1c1c; border: 1px solid #2f2f2f; transition: background .25s, border-color .25s, transform .25s, box-shadow .25s; }
[dir="rtl"] .to-top { padding: 6px 6px 6px 16px; }
.to-top-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; overflow: hidden; }
.to-top-ic .ic { transform: rotate(-90deg); }
.to-top:hover, .to-top:focus-visible { background: #262626; border-color: var(--orange); transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgb(255 69 0 / .7); color: #fff; }
.to-top:hover .to-top-ic .ic { animation: top-bob 1s ease-in-out infinite; }
@keyframes top-bob { 0%, 100% { transform: rotate(-90deg) translateX(0); } 50% { transform: rotate(-90deg) translateX(4px); } }
.to-top.is-launching .to-top-ic .ic { animation: top-launch .55s cubic-bezier(.5, 0, .75, 0) forwards; }
@keyframes top-launch { 0% { transform: rotate(-90deg) translateX(0); opacity: 1; } 60% { transform: rotate(-90deg) translateX(30px); opacity: 0; } 61% { transform: rotate(-90deg) translateX(-30px); opacity: 0; } 100% { transform: rotate(-90deg) translateX(0); opacity: 1; } }

/* Privacy Policy / Terms of Service box */
.legal-dlg { width: min(640px, calc(100% - 32px)); max-width: none; max-height: min(82dvh, 720px); padding: 0; border: 0; border-radius: 24px; overflow: hidden;
  background: var(--surface); color: var(--text); box-shadow: 0 30px 80px -20px rgb(0 0 0 / .55); }
.legal-dlg::backdrop { background: rgb(10 10 10 / .6); }
.legal-dlg[open] { display: flex; }
.legal-box { display: flex; flex-direction: column; width: 100%; max-height: inherit; }
.legal-head { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 24px 64px 18px 24px;
  background: linear-gradient(135deg, rgb(255 69 0 / .12), transparent 60%); border-bottom: 1px solid var(--line); }
[dir="rtl"] .legal-head { padding: 24px 24px 18px 64px; background: linear-gradient(225deg, rgb(255 69 0 / .12), transparent 60%); }
.legal-badge { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, var(--orange-2), var(--orange-deep)); box-shadow: 0 8px 20px -10px rgb(255 69 0 / .9); }
.legal-kicker { margin: 0; font: 700 .72rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
[dir="rtl"] .legal-kicker { letter-spacing: 0; font-size: .8rem; }
.legal-head h2 { margin: 6px 0 0; font: 800 1.45rem/1.2 var(--f-head); }
[dir="rtl"] .legal-head h2 { font-size: 1.2rem; line-height: 1.5; }
.legal-date { margin: 6px 0 0; font-size: .8rem; color: var(--muted); }
.legal-x { position: absolute; top: 18px; inset-inline-end: 18px; width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: var(--surface-2); color: var(--text); transition: background .2s, color .2s, transform .3s; }
.legal-x:hover, .legal-x:focus-visible { background: var(--orange); color: #fff; transform: rotate(90deg); outline: none; }
.legal-body { padding: 20px 24px; overflow-y: auto; font-size: .98rem; line-height: 1.75; }
[dir="rtl"] .legal-body { line-height: 1.95; }
.legal-body p { margin: 0 0 .9em; }
.legal-body p:last-child { margin-bottom: 0; }
.legal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 24px 18px; border-top: 1px solid var(--line); }
.legal-foot a { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; color: var(--muted); text-decoration: none; }
.legal-foot a:hover { color: var(--orange); }
/* opening: the box rises and settles, the backdrop fades in, the text follows line by line */
.legal-dlg.is-open { animation: legal-in .5s cubic-bezier(.2, .9, .25, 1.12) both; }
.legal-dlg.is-open::backdrop { animation: pd-fade .3s ease both; }
.legal-dlg.is-open .legal-body > * { animation: legal-rise .45s ease both; animation-delay: calc(.15s + var(--i, 0) * .06s); }
.legal-dlg.is-closing { animation: legal-out .28s ease-in both; }
.legal-dlg.is-closing::backdrop { animation: pd-fade .28s ease reverse both; }
@keyframes legal-in { from { opacity: 0; transform: translateY(36px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes legal-out { to { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes legal-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheet-out { to { transform: translateY(100%); } }
/* phones: a sheet that slides up from the bottom */
@media (max-width: 600px) {
  .legal-dlg { width: 100%; max-height: 88dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .legal-dlg.is-open { animation-name: sheet-in; animation-duration: .45s; }
  .legal-dlg.is-closing { animation-name: sheet-out; }
  .foot-base { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; gap: 26px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ticker-track { animation: none !important; }
  .ticker-viewport { overflow-x: auto; }
}

/* ── story page: vertical reel video, centred and kept within the screen ── */
.story-video { margin-block: 28px; display: flex; justify-content: center; }
.story-video video { width: auto; max-width: 100%; max-height: 78vh; aspect-ratio: 9 / 16; border-radius: var(--radius); background: #000; }

/* ── story cards: one orange line travels all the way round the card, from the top centre back to it ──
   (clockwise; the other way in Kurdish/Arabic). It frames the card itself, not one face, so it wraps the
   front as the card starts to turn and stays round the back. Clears when the card turns back. */
.flip-border { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; overflow: visible; }
[dir="rtl"] .flip-border { transform: scaleX(-1); }
.flip-border path {
  fill: none; stroke: var(--orange); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round;   /* 1.25 units ≈ 3px on a 230px card */
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset .2s ease;
}
.flip.is-flipped .flip-border path, .flip:focus-visible .flip-border path {
  stroke-dashoffset: 0; transition: stroke-dashoffset .6s cubic-bezier(.45, 0, .25, 1);
}
@media (hover: hover) {
  .flip:hover .flip-border path { stroke-dashoffset: 0; transition: stroke-dashoffset .6s cubic-bezier(.45, 0, .25, 1); }
}
/* Order: the line first wraps the FRONT, then the card turns inside the finished border, so the back
   arrives framed too. Turning back (no delay below) stays instant. */
.flip.is-flipped .flip-inner, .flip:focus-visible .flip-inner { transition-delay: .5s; }
@media (hover: hover) { .flip:hover .flip-inner { transition-delay: .5s; } }

/* ── Ask Nine AI (chat box under Scoop) ── */
.ai-chat { margin-top: 22px; background: var(--surface-2); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ai-head { display: flex; align-items: center; gap: 12px; }
.ai-head h3 { margin: 0; font: 800 1.08rem/1.25 var(--f-head); }
.ai-head p { margin: 2px 0 0; font-size: .82rem; color: var(--muted); }
.ai-badge { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--orange-2), var(--orange-deep)); box-shadow: 0 6px 16px -8px rgb(255 69 0 / .8); }
.ai-log { display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow-y: auto; padding: 2px; scroll-behavior: smooth; scrollbar-width: thin; }
.ai-msg { margin: 0; max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: .92rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
[dir="rtl"] .ai-msg { line-height: 1.85; }
.ai-bot { align-self: flex-start; background: var(--surface); color: var(--text); border-start-start-radius: 5px; box-shadow: 0 1px 2px rgb(0 0 0 / .05); }
.ai-user { align-self: flex-end; background: var(--orange); color: #fff; border-start-end-radius: 5px; }
.ai-msg.is-error { background: color-mix(in srgb, #e5484d 12%, var(--surface)); color: #b42318; }
.ai-msg.is-typing::after { content: ""; display: inline-block; width: 7px; height: 1.05em; margin-inline-start: 3px; vertical-align: -2px; background: var(--orange); border-radius: 2px; animation: ai-caret 1s steps(2) infinite; }
@keyframes ai-caret { 50% { opacity: 0; } }
.ai-wait { display: inline-flex; gap: 4px; padding: 4px 0; }
.ai-wait i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: ai-dot 1.2s infinite ease-in-out; }
.ai-wait i:nth-child(2) { animation-delay: .15s; } .ai-wait i:nth-child(3) { animation-delay: .3s; }
@keyframes ai-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ai-speak { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 3px 9px 3px 7px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: transparent; color: var(--muted); font: 600 .74rem var(--f-body); cursor: pointer; }
.ai-speak:hover, .ai-speak[aria-pressed="true"] { color: var(--orange); border-color: var(--orange); }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-chip { border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); border-radius: 999px; padding: 6px 11px; font: 600 .8rem var(--f-body); cursor: pointer; transition: border-color .15s, color .15s; }
.ai-chip:hover { border-color: var(--orange); color: var(--orange); }
.ai-form { display: flex; align-items: flex-end; gap: 6px; background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 18px; padding: 5px; transition: border-color .15s; }
.ai-form:focus-within { border-color: var(--orange); }
.ai-form textarea { flex: 1; min-width: 0; border: 0; outline: none; resize: none; background: transparent; color: var(--text); font: .94rem/1.45 var(--f-body); padding: 8px 6px; max-height: 120px; }
.ai-icon-btn { flex: none; width: 38px; height: 38px; border-radius: 13px; border: 0; display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.ai-icon-btn:active { transform: scale(.94); }
.ai-icon-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.ai-send { background: var(--orange); color: #fff; }
.ai-send:disabled { opacity: .45; cursor: default; }
[dir="rtl"] .ai-send .flip-rtl { transform: scaleX(-1); }
.ai-mic { background: var(--surface-2); color: var(--text); }
.ai-mic[aria-pressed="true"] { background: #e5484d; color: #fff; animation: ai-pulse 1.4s infinite; }
@keyframes ai-pulse { 0% { box-shadow: 0 0 0 0 rgb(229 72 77 / .5); } 100% { box-shadow: 0 0 0 10px rgb(229 72 77 / 0); } }
.ai-note { margin: 0; font-size: .72rem; color: var(--muted); text-align: center; }

/* ── Nine Fantasy (fantasy.php): the fans' page ── */
.fp-play { align-self: center; margin-top: 8px; }
.notice-info { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-strong); }
.fz .notice { margin-bottom: 14px; }
.fz-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); align-items: center;
  padding: clamp(22px, 3.4vw, 40px); margin-bottom: 22px; border-radius: var(--radius); color: #fff;
  background: radial-gradient(90% 120% at 0% 0%, rgb(255 69 0 / .42), transparent 60%), linear-gradient(165deg, #2a130a, #121212 60%);
  border: 1px solid rgb(255 255 255 / .08); box-shadow: 0 24px 50px -30px rgb(0 0 0 / .55); }
[dir="rtl"] .fz-hero { background: radial-gradient(90% 120% at 100% 0%, rgb(255 69 0 / .42), transparent 60%), linear-gradient(195deg, #2a130a, #121212 60%); }
.fz-hero-text { display: flex; gap: 18px; align-items: flex-start; }
.fz-icon { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: var(--orange); background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 2px rgb(255 69 0 / .55); }
.fz-hero h1 { margin: 0; font: 800 clamp(1.8rem, 3.4vw, 2.6rem)/1.05 var(--f-head); }
.fz-season { margin: 6px 0 0; color: var(--orange-2); font-weight: 700; }
.fz-lede { margin: 10px 0 0; color: #d9d9d4; line-height: 1.6; max-width: 46ch; }
[dir="rtl"] .fz-lede { line-height: 1.85; }
.fz-join { display: flex; flex-direction: column; gap: 14px; }
.fz-steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: flex; flex-direction: column; gap: 10px; }
.fz-steps li { counter-increment: st; display: flex; align-items: center; gap: 12px; font-weight: 600; }
.fz-steps li::before { content: counter(st); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); font-weight: 800; font-size: .9rem; }
.fz-google { align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px; border-radius: 99px; background: #fff; color: #1f1f1f;
  font-weight: 700; text-decoration: none; box-shadow: 0 6px 18px -6px rgb(0 0 0 / .5); transition: transform .12s, box-shadow .12s; }
.fz-google:hover { color: #1f1f1f; transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgb(0 0 0 / .6); }
.fz-small { margin: 0; font-size: .8rem; color: var(--muted); }
.fz-hero .fz-small { color: #a9a9a4; }
.fz-me { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 16px; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); }
.fz-me-head { display: flex; align-items: center; gap: 12px; }
.fz-me-head b { flex: 1; min-width: 0; font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fz-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); font-weight: 800; }
.fz-out { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 99px; padding: 8px 12px; background: rgb(255 255 255 / .1); color: #fff; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.fz-out:hover { background: rgb(255 255 255 / .2); }
.fz-stats { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fz-stats div { padding: 10px 6px; border-radius: 12px; background: rgb(0 0 0 / .28); text-align: center; }
.fz-stats dt { font-size: .72rem; color: #bdbdb7; font-weight: 600; }
.fz-stats dd { margin: 4px 0 0; font: 800 1.5rem/1 var(--f-head); }
.fz-stats dd small { font-size: .75rem; color: #9b9b94; font-weight: 600; }
.fz-stats div:first-child dd { color: var(--orange-2); }
.fz-tabs { margin-bottom: 18px; }
.fz-empty { padding: 28px; text-align: center; color: var(--muted); background: var(--surface-2); border-radius: var(--radius); margin: 0 0 18px; }
.fz-round, .fz-card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: clamp(14px, 2.2vw, 24px); margin-bottom: 18px; }
.fz-round-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.fz-round-head h2, .fz-card h2 { margin: 0; font: 800 1.25rem/1.2 var(--f-head); display: flex; align-items: center; gap: 8px; }
.fz-round-head small { color: var(--muted); font-size: .82rem; }
.fz-list { list-style: none; margin: 0; padding: 0; }
.fz-match { padding: 14px 0; border-top: 1px solid var(--line); }
.fz-match:first-child { border-top: 0; }
.fz-when { display: flex; justify-content: center; gap: 10px; font-size: .78rem; color: var(--muted); margin-bottom: 8px; }
.fz-league { font-weight: 700; color: var(--text); }
.fz-line { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(8px, 2vw, 22px); }
.fz-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fz-team b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fz-home { justify-content: flex-end; text-align: end; }
.fz-team .crest { flex: none; }
.fz-score { display: inline-flex; align-items: center; gap: 8px; }
.fz-score i { font-style: normal; color: var(--muted); font-weight: 700; }
.fz-in { width: 52px; height: 52px; text-align: center; font: 800 1.4rem/1 var(--f-head); border: 2px solid var(--line-strong); border-radius: 14px; background: var(--surface-2); color: var(--text); }
.fz-in:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 18%, transparent); }
.fz-score.is-fixed { min-width: 112px; justify-content: center; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); }
.fz-score.is-fixed b { font: 800 1.4rem/1 var(--f-head); }
.fz-score.is-fixed em { font-style: normal; font-weight: 700; color: var(--muted); font-size: .9rem; }
.fz-score.is-fixed .fz-live { color: #e5484d; }
.fz-result { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: .85rem; color: var(--muted); }
.fz-result b { color: var(--text); }
.fz-pts { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 99px; font-weight: 800; font-size: .8rem; background: var(--surface-2); color: var(--muted); }
.fz-pts.pts-3 { background: var(--orange); color: #fff; }
.fz-pts.pts-1 { background: var(--text); color: var(--bg); }
.fz-pts.pts-sum { background: var(--orange); color: #fff; font-size: .9rem; }
.fz-lock { display: inline-flex; align-items: center; gap: 5px; }
.fz-none { font-style: italic; }
.fz-actions { display: flex; justify-content: center; padding-top: 14px; border-top: 1px solid var(--line); }
.fz-actions .btn { align-self: center; }
.fz-table { width: 100%; border-collapse: collapse; }
.fz-table th, .fz-table td { padding: 11px 10px; text-align: start; border-bottom: 1px solid var(--line); }
.fz-table th { font-size: .78rem; color: var(--muted); font-weight: 700; }
.fz-table th:nth-child(n+3), .fz-table td:nth-child(n+3) { text-align: center; width: 70px; }
.fz-table th:first-child, .fz-table td:first-child { width: 48px; text-align: center; }
.fz-table tr.is-me td { background: color-mix(in srgb, var(--orange) 12%, transparent); font-weight: 700; }
.fz-table em { color: var(--orange); font-style: normal; font-size: .85rem; }
.fz-gap td { text-align: center; color: var(--muted); padding: 2px; }
.fz-medal { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 800; font-size: .85rem; background: #cfcfcf; color: #1a1a1a; }
.fz-table .medal-1, .place-1 .fz-medal { background: linear-gradient(160deg, #ffd76a, #d9a21b); }
.fz-table .medal-2, .place-2 .fz-medal { background: linear-gradient(160deg, #eceff2, #a9b0b8); }
.fz-table .medal-3, .place-3 .fz-medal { background: linear-gradient(160deg, #f0b98a, #b0703d); }
.fz-card .fz-small { margin-top: 12px; }
.fz-name { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.fz-name .field { flex: 1 1 260px; }
.fz-name .btn { align-self: flex-end; }
.fz-name .fz-small { flex-basis: 100%; margin: 0; }
.fz-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fz-two .fz-card { margin: 0; }
.fz-card h2 { margin-bottom: 12px; }
.fz-rules { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 8px; line-height: 1.6; }
.fz-podium { margin-bottom: 22px; padding: 20px; border-radius: var(--radius); background: var(--surface-2); text-align: center; }
.fz-podium h2 { margin: 0 0 14px; display: inline-flex; align-items: center; gap: 8px; font: 800 1.3rem/1.2 var(--f-head); }
.fz-podium h2 svg { color: var(--orange); }
.fz-podium ol { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.fz-podium li { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 150px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-strong); }
.fz-podium li.place-1 { order: 2; transform: translateY(-8px); border-color: #d9a21b; }
.fz-podium li.place-2 { order: 1; }
.fz-podium li.place-3 { order: 3; }
.fz-podium .fz-medal { width: 40px; height: 40px; font-size: 1.1rem; }
.fz-podium small { color: var(--muted); font-weight: 700; }
@media (max-width: 860px) {
  .fz-hero { grid-template-columns: 1fr; }
  .fz-two { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .fz-hero-text { flex-direction: column; gap: 12px; }
  .fz-stats dd { font-size: 1.25rem; }
  .fz-line { gap: 6px; }
  .fz-team { flex-direction: column; gap: 6px; text-align: center; }
  .fz-home { flex-direction: column-reverse; justify-content: center; text-align: center; }
  .fz-team b { white-space: normal; font-size: .84rem; line-height: 1.25; }
  .fz-in { width: 44px; height: 46px; font-size: 1.2rem; }
  .fz-score.is-fixed { min-width: 88px; padding: 8px 10px; }
  .fz-podium li { min-width: 100px; }
}
@media (max-width: 560px) { .fz-stats { grid-template-columns: repeat(2, 1fr); } }
/* Kurdish menu words are the longest: a little less room around them on smaller laptop screens */
@media (min-width: 1281px) and (max-width: 1420px) { [lang="ckb"] .masthead-row { gap: 12px; } [lang="ckb"] .mainnav a { padding-inline: 6px; } [lang="ckb"] .mainnav a::after { inset-inline: 6px; } }
/* Fantasy card with a player photo on the start side (left in English, right in Kurdish/Arabic), fading into the card */
.fz-hero.has-photo { position: relative; overflow: hidden; min-height: 360px; padding-inline-start: 330px; }
.fz-photo { position: absolute; inset-block: 0; inset-inline-start: 0; height: 100%; width: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 50%;
  -webkit-mask-image: linear-gradient(to right, #000 62%, transparent); mask-image: linear-gradient(to right, #000 62%, transparent); pointer-events: none; }
[dir="rtl"] .fz-photo { -webkit-mask-image: linear-gradient(to left, #000 62%, transparent); mask-image: linear-gradient(to left, #000 62%, transparent); }
.fz-hero.has-photo .fz-icon { display: none; }
.fz-hero.has-photo > :not(.fz-photo) { position: relative; z-index: 1; }
@media (max-width: 860px) {
  .fz-hero.has-photo { padding-inline-start: clamp(22px, 3.4vw, 40px); padding-top: 250px; min-height: 0; }
  .fz-photo { width: 100%; height: 280px; aspect-ratio: auto; inset-block: 0 auto; object-position: 50% 30%;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
  [dir="rtl"] .fz-photo { -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
}
/* the cut-out player (transparent PNG): stands in the card on its own dark background, with an orange glow behind him */
.fz-hero.is-cut::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 380px; pointer-events: none;
  background: radial-gradient(closest-side at 50% 58%, rgb(255 69 0 / .5), rgb(255 69 0 / .14) 60%, transparent); }
.fz-hero.is-cut .fz-photo { inset-block: 16px 0; inset-inline-start: 46px; width: 270px; height: calc(100% - 16px); aspect-ratio: auto;
  object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 16px 22px rgb(0 0 0 / .6));
  -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent); mask-image: linear-gradient(to bottom, #000 88%, transparent); }
@media (max-width: 860px) {
  .fz-hero.is-cut::before { width: 100%; height: 270px; inset-block: 0 auto; background: radial-gradient(closest-side at 50% 60%, rgb(255 69 0 / .5), transparent); }
  .fz-hero.is-cut .fz-photo { inset-inline: 0; margin-inline: auto; width: 100%; height: 250px; inset-block: 14px auto; }
}
/* Fantasy card: a glowing orange line that travels slowly around the border (one lap every 5 seconds) */
@property --fz-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.fz-hero { position: relative; }
.fz-hero::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 3px; pointer-events: none;
  background: conic-gradient(from var(--fz-a), transparent 0 62%, rgb(255 69 0 / .25) 72%, #ff4500 86%, #ffc2a6 92%, transparent 97%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: fz-border 5s linear infinite; }
@keyframes fz-border { to { --fz-a: 360deg; } }
@media (prefers-reduced-motion: reduce) { .fz-hero::after { animation: none; background: rgb(255 69 0 / .35); } }
/* ── header settings box: language, dark mode, eye comfort and match weather in one box (opens like the old language box) ── */
.toolmenu { min-width: 268px; padding: 8px; }
.toolmenu li + li { margin-top: 2px; }
.tb-row, .tb-langs { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 12px; background: none;
  color: var(--text); font: 600 13.5px/1.4 "Noto Kufi Arabic", "Barlow", sans-serif; text-align: start; cursor: pointer; }
.tb-langs { cursor: default; }
.tb-row:hover, .tb-row:focus-visible { background: var(--surface-2); color: var(--text); outline: none; }
.tb-row.comfort-btn[aria-pressed="true"] { color: var(--text); }
.tb-ic { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--orange); background: color-mix(in srgb, var(--orange) 13%, transparent); }
.tb-label { flex: 1; min-width: 0; }
.tb-chips { display: flex; gap: 4px; flex: none; }
.tb-chips a { padding: 6px 8px; border-radius: 8px; font: 700 .72rem/1 "Barlow", sans-serif; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); text-decoration: none; transition: background .15s, color .15s; }
.tb-chips a:hover { color: var(--orange); }
.tb-chips a[aria-current="true"] { background: var(--orange); color: #fff; }
/* on / off switch at the end of a row */
.tb-switch { flex: none; position: relative; width: 36px; height: 21px; border-radius: 99px; background: var(--line-strong); transition: background .2s; }
.tb-switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: inset-inline-start .2s; }
.comfort-btn[aria-pressed="true"] .tb-switch, :root[data-theme="dark"] .tb-theme .tb-switch { background: var(--orange); }
.comfort-btn[aria-pressed="true"] .tb-switch::after, :root[data-theme="dark"] .tb-theme .tb-switch::after { inset-inline-start: 18px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tb-theme .tb-switch { background: var(--orange); }
  :root:not([data-theme="light"]) .tb-theme .tb-switch::after { inset-inline-start: 18px; }
}
.tb-row.comfort-btn[aria-disabled="true"] { opacity: .45; }
.tb-go { flex: none; color: var(--muted); }
[dir="rtl"] .tb-go { transform: scaleX(-1); }
/* the two slider knobs swap sides while the box is open */
.tool-btn .ic circle { transition: transform .35s cubic-bezier(.4, 0, .2, 1); }
.tool-btn[aria-expanded="true"] .ic circle:first-of-type { transform: translateX(-6px); }
.tool-btn[aria-expanded="true"] .ic circle:last-of-type { transform: translateX(6px); }
/* home page Fantasy box: a cut-out player on the start side, standing on the box's bottom edge, with an orange glow behind him */
.fantasy-promo.has-player { position: relative; overflow: hidden; }
.fantasy-promo.has-player::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 60%; pointer-events: none;
  background: radial-gradient(farthest-side at 30% 55%, rgb(255 69 0 / .32), rgb(255 69 0 / .1) 55%, transparent); }
.fantasy-promo.has-player > * { position: relative; }
.hub-below .fp-player { grid-column: 1; grid-row: 1 / span 6; align-self: end; display: block; width: clamp(170px, 16vw, 230px); height: auto;
  margin-bottom: calc(-1 * clamp(26px, 3vw, 38px));
  -webkit-mask-image: linear-gradient(to bottom, #000 90%, transparent); mask-image: linear-gradient(to bottom, #000 90%, transparent); }
@media (max-width: 1100px) {
  .hub-below .fp-player { grid-row: auto; width: 150px; margin-bottom: 0; order: -1; }
  .fantasy-promo.has-player::before { width: 100%; height: 280px; background: radial-gradient(farthest-side at 50% 50%, rgb(255 69 0 / .3), transparent); }
}
/* settings button: orange waves spread out from it, two at a time, until the visitor opens it once */
.tool-btn.is-wave { animation: tb-wave 2.4s ease-out infinite; }
@keyframes tb-wave {
  0%   { box-shadow: 0 0 0 0 rgb(255 69 0 / .45), 0 0 0 0 rgb(255 69 0 / .3); }
  55%  { box-shadow: 0 0 0 10px rgb(255 69 0 / 0), 0 0 0 5px rgb(255 69 0 / .15); }
  100% { box-shadow: 0 0 0 10px rgb(255 69 0 / 0), 0 0 0 16px rgb(255 69 0 / 0); }
}
@media (prefers-reduced-motion: reduce) { .tool-btn.is-wave { animation: none; } }
/* home page Fantasy box: the same glowing orange line as on the Fantasy page, travelling around its border (one lap every 5 seconds) */
.fantasy-promo { position: relative; }
.fantasy-promo::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 3px; pointer-events: none;
  background: conic-gradient(from var(--fz-a), transparent 0 62%, rgb(255 69 0 / .25) 72%, #ff4500 86%, #ffc2a6 92%, transparent 97%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: fz-border 5s linear infinite; }
@media (prefers-reduced-motion: reduce) { .fantasy-promo::after { animation: none; background: rgb(255 69 0 / .35); } }

/* Leagues box: the four panels are more see-through so the stadium photo shows (Amir 2026-11-28);
   the blur keeps the numbers readable; the sticky table header stays a little darker so rows scroll under it cleanly */
.lgx-box { background: rgb(14 14 14 / .58); backdrop-filter: blur(7px) saturate(1.1); -webkit-backdrop-filter: blur(7px) saturate(1.1); border: 1px solid rgb(255 255 255 / .07); }
.lgx-h { background: rgb(10 10 10 / .5); border-bottom-color: rgb(255 255 255 / .09); }
.lgx .ltable thead th, .lgx .ltable thead th.c-pos { background: rgb(12 12 12 / .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lgx .pl { border-top-color: rgb(255 255 255 / .07); }
.lgx .pl:hover { background: rgb(255 255 255 / .06); }
.lgx .ltable tbody tr { border-top-color: rgb(255 255 255 / .07); }
/* schedule: each day's date stays at the top while its games scroll under it, so the date is always visible */
.lgx-fx .fx-day { position: sticky; top: 0; z-index: 2; margin: 0; padding: 10px 14px 8px; background: rgb(12 12 12 / .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
/* the headers too (panel titles, the table's top row, the schedule dates): see-through like the panels (Amir 2026-11-28);
   the sticky ones blur whatever scrolls under them, so the text stays readable */
.lgx-h { background: rgb(255 255 255 / .03); }
.lgx .ltable thead th, .lgx .ltable thead th.c-pos { background: rgb(14 14 14 / .3); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.lgx-fx .fx-day { background: rgb(14 14 14 / .3); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
/* final: the table's top row and the schedule dates are see-through and scroll with the rows (not sticky), like the panels */
.lgx .ltable thead th, .lgx .ltable thead th.c-pos { position: static; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.lgx .ltable thead tr { border-bottom: 1px solid rgb(255 255 255 / .09); }
.lgx-fx .fx-day { position: static; background: rgb(255 255 255 / .04); backdrop-filter: none; -webkit-backdrop-filter: none; border-block: 1px solid rgb(255 255 255 / .06); }

/* ══ Match view: the two Sportmonks buttons, and the box they open (Live Match Tracker, Predicted line-up) ══ */
.mx-extra { flex: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 clamp(8px, 1.4vh, 14px); }
.mx-xbtn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 99px; cursor: pointer; font: 700 .92rem/1 var(--f-body); color: #fff;
  background: rgb(14 14 14 / .55); border: 1px solid rgb(255 255 255 / .18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .25s cubic-bezier(.2, 1.4, .4, 1), background .2s, border-color .2s, box-shadow .25s; }
.mx-xbtn .ic { color: var(--orange); transition: transform .3s cubic-bezier(.2, 1.4, .4, 1); }
.mx-xbtn:hover, .mx-xbtn:focus-visible { transform: translateY(-2px); background: linear-gradient(140deg, #ff7a3d, var(--orange) 55%, #c23400); border-color: transparent; box-shadow: 0 12px 26px -12px rgb(255 69 0 / .9); outline: 0; }
.mx-xbtn:hover .ic, .mx-xbtn:focus-visible .ic { color: #fff; transform: scale(1.15); }
.mx-xlive { width: 8px; height: 8px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 0 0 rgb(255 59 59 / .7); animation: mt-ping 1.6s ease-out infinite; }
@keyframes mt-ping { 70%, 100% { box-shadow: 0 0 0 9px rgb(255 59 59 / 0); } }

.mt-dlg { width: min(980px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 22px; background: transparent; color: #fff; overflow: visible; }
.mt-dlg::backdrop { background: rgb(0 0 0 / .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.mt-dlg[open] { animation: mt-in .35s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes mt-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.mt-box { max-height: 92vh; overflow: auto; border-radius: 22px; padding: 3px; background: linear-gradient(145deg, #ffd9c4, #ff8a4c 30%, #b32f00 60%, #ff8a4c 85%, #ffd9c4); }
.mt-box > * { background: #111; }
.mt-dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 19px 19px 0 0; background: linear-gradient(170deg, #241510, #111 70%); }
.mt-dlg-head h3 { margin: 0; font: 800 1.15rem/1.2 var(--f-head); }
.mt-x { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16); transition: background .2s, transform .25s; }
.mt-x:hover { background: var(--orange); transform: rotate(90deg); }
.mt-body { padding: 16px 18px 18px; border-radius: 0 0 19px 19px; }
.mt-loading { display: flex; justify-content: center; gap: 8px; padding: 50px 0; }
.mt-loading i { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); animation: mt-dot 1s ease-in-out infinite; }
.mt-loading i:nth-child(2) { animation-delay: .15s; } .mt-loading i:nth-child(3) { animation-delay: .3s; }
@keyframes mt-dot { 50% { transform: translateY(-8px); opacity: .5; } }
.mt-empty { display: grid; place-items: center; gap: 10px; padding: 40px 10px; text-align: center; color: #c9c9c4; }
.mt-empty .ic { color: var(--orange); }
.mt-empty p { margin: 0; max-width: 420px; }
.mt-src { margin: 12px 0 0; font-size: .74rem; color: #8f8f8a; text-align: center; }
.mt-none { margin: 6px 0; color: #8f8f8a; font-size: .88rem; }

/* the pitch (shared) */
.mt-pitch, .lu-pitch { position: relative; overflow: hidden; border-radius: 16px; aspect-ratio: 120 / 70;
  background: repeating-linear-gradient(90deg, #1f6b34 0 8.33%, #1b5f2e 8.33% 16.66%); box-shadow: inset 0 0 60px rgb(0 0 0 / .45); }
.pitch-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.pitch-lines * { fill: none; stroke: rgb(255 255 255 / .55); stroke-width: .5; vector-effect: non-scaling-stroke; }
[dir="rtl"] .mt-pitch, [dir="rtl"] .lu-pitch { transform: scaleX(-1); }
[dir="rtl"] .mt-pitch > :not(.pitch-lines):not(.mt-push), [dir="rtl"] .lu-pitch > .lu-p { transform: scaleX(-1); }

/* tracker */
.mt-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-bottom: 14px; }
.mt-club { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 1rem; }
.mt-club b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-club.is-away { flex-direction: row-reverse; text-align: end; }
.mt-mid { display: grid; justify-items: center; gap: 6px; }
.mt-goals { font: 900 2.2rem/1 var(--f-head); }
.mt-clock { font-style: normal; font-weight: 800; font-size: .8rem; padding: 4px 10px; border-radius: 99px; background: rgb(255 255 255 / .08); display: inline-flex; align-items: center; gap: 6px; }
.mt-clock.is-live { background: #e5484d; }
.mt-clock.is-live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: mt-blink 1s steps(2) infinite; }
@keyframes mt-blink { 50% { opacity: .2; } }
.mt-push { display: none; }
.mt-pitch::after { content: ""; position: absolute; top: 0; bottom: 0; width: 38%; pointer-events: none; opacity: .9;
  left: calc(var(--push) * .62); background: radial-gradient(closest-side, rgb(255 140 60 / .35), transparent); animation: mt-breathe 2.6s ease-in-out infinite; }
@keyframes mt-breathe { 50% { opacity: .45; } }
.mt-flash { position: absolute; top: 50%; display: grid; justify-items: center; gap: 3px; padding: 12px 18px; border-radius: 16px; text-align: center; min-width: 150px;
  background: rgb(10 10 10 / .72); border: 1px solid rgb(255 255 255 / .16); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transform: translate(-50%, -50%); box-shadow: 0 16px 40px -18px #000; }
.mt-flash.is-home { left: 72%; } .mt-flash.is-away { left: 28%; } .mt-flash.is-center { left: 50%; }
.mt-flash b { font: 900 1.05rem/1.1 var(--f-head); }
.mt-flash small { color: #b9b9b3; font-size: .74rem; }
.mt-flash.is-goal { background: linear-gradient(140deg, #ff7a3d, var(--orange) 55%, #b32f00); border-color: transparent; }
.mt-flash.is-goal b { font-size: 1.6rem; letter-spacing: .04em; }
.mt-flash.is-new { animation: mt-pop .7s cubic-bezier(.2, 1.4, .4, 1); }
.mt-flash.is-goal.is-new { animation: mt-pop .7s cubic-bezier(.2, 1.4, .4, 1), mt-glow 1.2s ease-out 3; }
@keyframes mt-pop { from { opacity: 0; transform: translate(-50%, -50%) scale(.4); } }
@keyframes mt-glow { 50% { box-shadow: 0 0 0 14px rgb(255 69 0 / .25), 0 0 60px 10px rgb(255 69 0 / .5); } }
.mt-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.mt-cols h4 { margin: 0 0 10px; font: 800 .95rem/1 var(--f-head); }
.mt-stats, .mt-tl { padding: 14px; border-radius: 16px; background: rgb(255 255 255 / .04); border: 1px solid rgb(255 255 255 / .07); }
.mt-st { margin-bottom: 9px; }
.mt-st-top { display: flex; justify-content: space-between; font-size: .82rem; color: #c9c9c4; margin-bottom: 4px; }
.mt-st-top b { color: #fff; font-weight: 800; }
.mt-st-bar { display: block; height: 6px; border-radius: 6px; background: rgb(255 255 255 / .14); overflow: hidden; }
.mt-st-bar i { display: block; height: 100%; width: var(--h); border-radius: 6px; background: linear-gradient(90deg, #ff7a3d, var(--orange)); animation: mt-grow .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes mt-grow { from { width: 0; } }
.mt-tl ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 320px; overflow: auto; }
.mt-tl li { display: grid; grid-template-columns: 44px 22px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgb(255 255 255 / .04); }
.mt-tl li.is-goal { background: rgb(255 69 0 / .14); border: 1px solid rgb(255 69 0 / .35); }
.mt-tl li.is-new { animation: mt-row .6s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes mt-row { from { opacity: 0; transform: translateY(-10px); } }
.mt-min { font-weight: 900; color: var(--orange); font-size: .88rem; }
.mt-ev-txt { display: grid; min-width: 0; }
.mt-ev-txt b { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-ev-txt small, .mt-ev-club { font-size: .72rem; color: #a9a9a4; }
.mt-ev-club { white-space: nowrap; }
/* event marks drawn in CSS: ball, yellow / red card, substitution arrows, missed penalty, VAR */
.mt-ev-ic { position: relative; width: 18px; height: 18px; display: inline-block; flex: none; }
.ic-ball { border-radius: 50%; background: radial-gradient(circle at 50% 50%, #111 0 22%, transparent 23%), radial-gradient(circle at 50% 50%, #fff 0 100%); box-shadow: inset 0 0 0 1.5px #111; }
.ic-card-y, .ic-card-r { width: 12px; height: 16px; border-radius: 2px; margin-inline: 3px; background: #ffd23f; transform: rotate(8deg); }
.ic-card-r { background: #e5484d; }
.ic-sub::before, .ic-sub::after { content: ""; position: absolute; left: 3px; width: 0; height: 0; border-inline: 6px solid transparent; }
.ic-sub::before { top: 1px; border-bottom: 7px solid #2bd16b; }
.ic-sub::after { bottom: 1px; border-top: 7px solid #e5484d; }
.ic-miss { border-radius: 50%; box-shadow: inset 0 0 0 2px #e5484d; }
.ic-miss::after { content: ""; position: absolute; inset: 8px 2px; background: #e5484d; transform: rotate(-45deg); }
.ic-var { border-radius: 4px; background: #3b82f6; }
.ic-dot::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #a9a9a4; }

/* line-up */
.lu-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.lu-head small { color: #a9a9a4; font-size: .8rem; }
.lu-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; font-weight: 800; font-size: .8rem; color: #ffb27f; background: rgb(255 69 0 / .14); border: 1px solid rgb(255 69 0 / .4); }
.lu-tag.is-official { color: #fff; background: #1f9d55; border-color: transparent; }
.lu-teams { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.lu-team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lu-team.is-away { flex-direction: row-reverse; }
.lu-team b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lu-team em { font-style: normal; font-weight: 800; font-size: .78rem; padding: 3px 8px; border-radius: 99px; background: rgb(255 255 255 / .1); }
.lu-p { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 3px; width: 74px; text-align: center;
  animation: lu-in .5s cubic-bezier(.2, 1.3, .4, 1) both; animation-delay: calc(var(--i) * 35ms); }
[dir="rtl"] .lu-p { transform: translate(-50%, -50%) scaleX(-1); }
@keyframes lu-in { from { opacity: 0; scale: .4; } }
.lu-dot { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; font-weight: 900; font-size: .9rem; box-shadow: 0 6px 14px -6px #000; }
.lu-p.is-home .lu-dot { background: #ff4500; color: #fff; border: 2px solid #fff; }
.lu-p.is-away .lu-dot { background: #f4f4f4; color: #111; border: 2px solid #111; }
.lu-dot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lu-dot img + b { position: absolute; bottom: -2px; inset-inline-end: -2px; font-size: .62rem; padding: 1px 4px; border-radius: 6px; background: #111; color: #fff; }
.lu-p small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .7rem; font-weight: 800; padding: 1px 6px; border-radius: 6px; background: rgb(0 0 0 / .55); }
.lu-p:hover .lu-dot { transform: scale(1.12); transition: transform .2s; }
.lu-bench { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.lu-bench h4 { margin: 0 0 8px; font-size: .88rem; }
.lu-bench ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .84rem; }
.lu-bench li { display: flex; gap: 8px; } .lu-bench li b { min-width: 22px; color: var(--orange); }
@media (max-width: 700px) {
  .mt-cols, .lu-bench { grid-template-columns: minmax(0, 1fr); }
  .mt-goals { font-size: 1.7rem; } .mt-club b { font-size: .82rem; }
  .lu-p { width: 56px; } .lu-dot { width: 28px; height: 28px; font-size: .72rem; } .lu-p small { font-size: .6rem; padding: 0 3px; }
  .mt-pitch, .lu-pitch { aspect-ratio: 120 / 80; }
}
@media (prefers-reduced-motion: reduce) { .mt-dlg[open], .mt-flash, .mt-st-bar i, .lu-p, .mt-pitch::after, .mx-xlive, .mt-tl li { animation: none !important; } }
html.mt-open { overflow: hidden; }
/* right-to-left: no mirroring with transforms (it shifted players and the pop-up); the positions are mirrored instead */
[dir="rtl"] .mt-pitch, [dir="rtl"] .lu-pitch, [dir="rtl"] .mt-pitch > :not(.pitch-lines):not(.mt-push), [dir="rtl"] .lu-pitch > .lu-p { transform: none; }
[dir="rtl"] .mt-flash { transform: translate(-50%, -50%); }
[dir="rtl"] .lu-p { left: calc(100% - var(--x)); transform: translate(-50%, -50%); }
[dir="rtl"] .mt-flash.is-home { left: 28%; } [dir="rtl"] .mt-flash.is-away { left: 72%; }
[dir="rtl"] .mt-pitch::after { left: auto; right: calc(var(--push) * .62); }
/* the tracker's pitch is lower, so the stats and timeline fit in the box */
.mt-pitch { aspect-ratio: 120 / 48; }
@media (max-width: 700px) { .mt-pitch { aspect-ratio: 120 / 62; } }
.mt-goals { display: inline-flex; align-items: center; gap: 10px; } .mt-goals i { font-style: normal; opacity: .7; }

/* Tracker pitch: the ball, its trail, the attack zone and the event replays */
.mt-ball, .mt-ball-trail { position: absolute; z-index: 3; left: 50%; top: 50%; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%);
  transition-property: left, top; transition-timing-function: cubic-bezier(.45, .05, .25, 1); }
.mt-ball { width: 14px; height: 14px; background: radial-gradient(circle at 35% 30%, #fff 0 45%, #d9d9d9 70%, #9a9a9a); box-shadow: 0 0 0 2px rgb(0 0 0 / .25), 0 4px 8px rgb(0 0 0 / .5);
  animation: mt-spin 1.2s linear infinite; }
.mt-ball::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #222; clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%); }
@keyframes mt-spin { to { rotate: 360deg; } }
.mt-ball-trail { z-index: 2; width: 34px; height: 34px; background: radial-gradient(closest-side, rgb(255 255 255 / .35), transparent); }
.mt-zone { position: absolute; z-index: 1; top: 0; bottom: 0; width: 50%; pointer-events: none; transition: left .9s ease, background .9s ease, opacity .6s; opacity: .95;
  background: linear-gradient(90deg, transparent, rgb(255 69 0 / .22)); }
.mt-zone.is-home { left: 50%; }
.mt-zone.is-away { left: 0; background: linear-gradient(270deg, transparent, rgb(244 244 244 / .2)); }
[dir="rtl"] .mt-zone.is-home { left: 0; background: linear-gradient(270deg, transparent, rgb(255 69 0 / .22)); }
[dir="rtl"] .mt-zone.is-away { left: 50%; background: linear-gradient(90deg, transparent, rgb(244 244 244 / .2)); }
.mt-zone.is-danger { animation: mt-danger 1s ease-in-out infinite; }
.mt-zone.is-safe { opacity: .35; }
@keyframes mt-danger { 50% { opacity: .5; } }
.mt-zone span { position: absolute; top: 12px; padding: 4px 10px; border-radius: 99px; font: 800 .72rem/1 var(--f-body); letter-spacing: .04em; text-transform: uppercase; color: #fff; background: rgb(0 0 0 / .5); white-space: nowrap; }
[dir="rtl"] .mt-zone span { letter-spacing: 0; text-transform: none; }
.mt-zone.is-home span { right: 14px; } .mt-zone.is-away span { left: 14px; }
[dir="rtl"] .mt-zone.is-home span { right: auto; left: 14px; } [dir="rtl"] .mt-zone.is-away span { left: auto; right: 14px; }
.mt-zone.is-danger span { background: #e5484d; }
/* the pop-up card sits above the ball */
.mt-flash { z-index: 4; }
/* goal: the net shakes and flashes */
.mt-pitch::before { content: ""; position: absolute; z-index: 2; top: 38%; bottom: 38%; width: 2.2%; opacity: 0; pointer-events: none;
  background: repeating-linear-gradient(45deg, rgb(255 255 255 / .9) 0 2px, transparent 2px 6px), repeating-linear-gradient(-45deg, rgb(255 255 255 / .9) 0 2px, transparent 2px 6px); }
.mt-pitch.is-net-right::before { right: 0; opacity: 1; animation: mt-net 1.4s ease; }
.mt-pitch.is-net-left::before { left: 0; opacity: 1; animation: mt-net 1.4s ease; }
@keyframes mt-net { 0%, 100% { transform: none; } 15% { transform: translateX(3px) scaleY(1.15); } 30% { transform: translateX(-2px); } 45% { transform: translateX(2px) scaleY(1.08); } 60% { transform: none; } }
.mt-pitch.is-net-right, .mt-pitch.is-net-left { animation: mt-goalflash 1.4s ease; }
@keyframes mt-goalflash { 20% { box-shadow: inset 0 0 120px rgb(255 69 0 / .65); } }
/* card: the whistle moment — the pitch dims a little and the card pops */
.mt-pitch.is-whistle { animation: mt-dim 1.6s ease; }
@keyframes mt-dim { 30% { filter: brightness(.75); } }
.mt-pitch.is-whistle .mt-ev-ic { animation: mt-card 1.2s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes mt-card { 0% { transform: translateY(14px) rotate(-30deg) scale(.4); } 60% { transform: translateY(-4px) rotate(10deg) scale(1.5); } }
/* substitution: the two arrows swap */
.mt-pitch.is-sub .ic-sub::before { animation: mt-up 1s ease 2; }
.mt-pitch.is-sub .ic-sub::after { animation: mt-down 1s ease 2; }
@keyframes mt-up { 50% { transform: translateY(-6px); } }
@keyframes mt-down { 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .mt-ball { animation: none; } .mt-zone.is-danger { animation: none; } }
/* a stronger attack zone */
.mt-zone { background: linear-gradient(90deg, transparent, rgb(255 69 0 / .34)); }
.mt-zone.is-away { background: linear-gradient(270deg, transparent, rgb(255 255 255 / .28)); }
[dir="rtl"] .mt-zone.is-home { background: linear-gradient(270deg, transparent, rgb(255 69 0 / .34)); }
[dir="rtl"] .mt-zone.is-away { background: linear-gradient(90deg, transparent, rgb(255 255 255 / .28)); }
.mt-zone.is-danger { background: linear-gradient(90deg, transparent 20%, rgb(229 72 77 / .45)); }
.mt-zone.is-away.is-danger { background: linear-gradient(270deg, transparent 20%, rgb(229 72 77 / .45)); }
[dir="rtl"] .mt-zone.is-home.is-danger { background: linear-gradient(270deg, transparent 20%, rgb(229 72 77 / .45)); }
[dir="rtl"] .mt-zone.is-away.is-danger { background: linear-gradient(90deg, transparent 20%, rgb(229 72 77 / .45)); }

/* ══ Tracker, stadium style (Amir 2026-11-28, like the tracker in the 964 app, in Nine's own look) ══ */
.mt-stadium { position: relative; border-radius: 18px; overflow: hidden; padding: 0 0 0; perspective: 900px;
  background: radial-gradient(120% 90% at 50% 0%, #2b2b2b, #0c0c0c 70%); }
/* the stands: rows of fans (dots) behind a line of NINE boards */
.mt-stands { position: relative; height: 64px; overflow: hidden;
  background: radial-gradient(circle at 3px 3px, rgb(255 255 255 / .22) 1.4px, transparent 1.6px) 0 0 / 9px 8px, radial-gradient(circle at 7px 7px, rgb(255 140 90 / .18) 1.3px, transparent 1.5px) 0 0 / 11px 10px, linear-gradient(#141414, #262626); }
.mt-boards { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; display: flex; gap: 0; overflow: hidden; background: #0b0b0b; border-top: 1px solid #333; border-bottom: 2px solid #ff4500; }
.mt-boards i { flex: none; padding: 0 16px; font: italic 900 .7rem/18px var(--f-head); letter-spacing: .12em; color: #ff6a2b; border-inline-end: 1px solid #2a2a2a; animation: mt-boards 18s linear infinite; }
@keyframes mt-boards { to { transform: translateX(-100%); } }
/* the pitch, tilted back like seen from the stand */
.mt-stadium .mt-pitch { aspect-ratio: 120 / 62; margin: -6px 4% 0; border-radius: 4px; transform-origin: 50% 0; transform: rotateX(32deg); transform-style: preserve-3d;
  background: repeating-linear-gradient(90deg, #2e9a3e 0 8.33%, #279034 8.33% 16.66%); box-shadow: 0 30px 40px -20px rgb(0 0 0 / .8), inset 0 0 50px rgb(0 0 0 / .25); }
[dir="rtl"] .mt-stadium .mt-pitch { transform: rotateX(32deg); }
.mt-stadium .pitch-lines * { stroke: rgb(255 255 255 / .9); stroke-width: .8; }
.mt-goal { position: absolute; top: 40%; height: 20%; width: 2.4%; border: 2px solid #fff; background: repeating-linear-gradient(45deg, rgb(255 255 255 / .5) 0 1px, transparent 1px 4px); }
.mt-goal.is-l { left: -2.2%; border-right: 0; } .mt-goal.is-r { right: -2.2%; border-left: 0; }
.mt-flag { position: absolute; width: 5px; height: 9px; background: #ff4500; }
.mt-flag.is-tl { left: 0; top: -9px; } .mt-flag.is-tr { right: 0; top: -9px; } .mt-flag.is-bl { left: 0; bottom: 0; } .mt-flag.is-br { right: 0; bottom: 0; }
.mt-mark { position: absolute; right: 22%; bottom: 10%; font: italic 900 clamp(1rem, 3vw, 1.8rem)/1 var(--f-head); letter-spacing: .14em; color: rgb(255 255 255 / .18); pointer-events: none; }
[dir="rtl"] .mt-mark { right: auto; left: 22%; }
/* the ball stands up from the tilted pitch */
.mt-stadium .mt-ball { width: 16px; height: 16px; transform: translate(-50%, -50%) rotateX(-32deg); }
.mt-stadium .mt-ball-trail { transform: translate(-50%, -50%); }
.mt-stadium .mt-zone span { display: none; }       /* the banner says it instead */
.mt-stadium .mt-flash { display: none; }
/* the banner across the bottom: team name and what they are doing */
.mt-banner { position: relative; z-index: 5; display: inline-grid; gap: 1px; margin: -34px 0 12px 14px; padding: 8px 46px 8px 18px; min-width: 46%; color: #fff;
  background: linear-gradient(100deg, #161616 0 82%, transparent 82.2%); clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%); border-inline-start: 4px solid #ff4500;
  animation: mt-banner .45s cubic-bezier(.2, 1.2, .4, 1); }
[dir="rtl"] .mt-banner { margin: -34px 14px 12px 0; padding: 8px 18px 8px 46px; clip-path: polygon(0 0, 100% 0, 100% 100%, 8% 100%); background: linear-gradient(260deg, #161616 0 82%, transparent 82.2%); }
@keyframes mt-banner { from { opacity: 0; transform: translateX(-16px); } }
.mt-banner b { font: italic 900 1.15rem/1.15 var(--f-head); letter-spacing: .02em; }
.mt-banner em { font-style: italic; font-size: .9rem; color: #d6d6d1; }
.mt-banner.is-away { border-inline-start-color: #f4f4f4; }
.mt-banner.is-danger { border-inline-start-color: #e5484d; } .mt-banner.is-danger em { color: #ff8a8d; font-weight: 800; }
.mt-banner.is-safe em { color: #9a9a95; }
.mt-banner.is-event.is-goal { background: linear-gradient(100deg, #ff4500 0 82%, transparent 82.2%); border-inline-start-color: #fff; }
[dir="rtl"] .mt-banner.is-event.is-goal { background: linear-gradient(260deg, #ff4500 0 82%, transparent 82.2%); }
.mt-banner.is-event.is-goal b { font-size: 1.5rem; }
.mt-banner.is-event.is-goal em { color: #fff; }
.mt-banner.is-event.is-card { border-inline-start-color: #ffd23f; }
/* events: one line down the middle, home on the start side, away on the end side, the minute on the line */
.mt-ev { margin-top: 14px; padding: 14px; border-radius: 16px; background: rgb(255 255 255 / .04); border: 1px solid rgb(255 255 255 / .07); }
.mt-ev-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.mt-ev-head h4 { margin: 0; font: 800 .95rem/1 var(--f-head); }
.mt-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 99px; background: rgb(255 255 255 / .06); }
.mt-tabs button { padding: 6px 14px; border-radius: 99px; border: 0; cursor: pointer; font: 700 .8rem/1 var(--f-body); color: #c9c9c4; background: none; transition: background .2s, color .2s; }
.mt-tabs button[aria-selected="true"] { color: #fff; background: #ff4500; }
.mt-line { list-style: none; margin: 0; padding: 0; position: relative; max-height: 360px; overflow: auto; }
.mt-line::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: rgb(255 255 255 / .18); }
.mt-line[data-mt-filter="top"] .mt-row:not(.is-top) { display: none; }
.mt-row { position: relative; display: grid; grid-template-columns: 1fr 52px 1fr; align-items: center; padding: 8px 0; animation: pr-rise .4s cubic-bezier(.2, .8, .2, 1) both; }
.mt-row .mt-min { grid-column: 2; grid-row: 1; justify-self: center; z-index: 1; padding: 3px 6px; border-radius: 8px; background: #111; color: #ff6a2b; font-weight: 900; font-size: .82rem; }
.mt-row.is-home .mt-who { grid-column: 1; grid-row: 1; justify-content: flex-end; text-align: end; flex-direction: row-reverse; }
.mt-row.is-away .mt-who { grid-column: 3; grid-row: 1; }
.mt-who { display: flex; align-items: center; gap: 10px; min-width: 0; padding-inline: 8px; }
.mt-who-txt { display: grid; min-width: 0; }
.mt-who-txt b { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-who-txt small { font-size: .74rem; color: #a9a9a4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-who-txt .mt-res { color: #fff; font-weight: 800; }
.mt-row.is-goal .mt-who-txt b { color: #ff8a4c; }
.mt-ht { display: flex; justify-content: center; padding: 10px 0; position: relative; z-index: 1; }
.mt-ht span { padding: 5px 14px; border-radius: 99px; font-size: .8rem; font-weight: 700; background: #1c1c1c; border: 1px solid rgb(255 255 255 / .2); }
.mt-stats { margin-top: 14px; }
@media (max-width: 700px) {
  .mt-stands { height: 44px; } .mt-banner { min-width: 70%; margin-top: -26px; } .mt-banner b { font-size: .95rem; } .mt-banner em { font-size: .78rem; }
  .mt-row { grid-template-columns: 1fr 44px 1fr; } .mt-who-txt b { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) { .mt-boards i, .mt-banner, .mt-row { animation: none; } }
.mt-row.is-home .mt-who { justify-content: flex-start; }   /* row-reverse: hugs the middle line */

/* Tracker v3 (Amir 2026-11-28): no crowd dots, a real-looking ball that rolls the way it goes, a pass line with an arrow,
   the name of the player on the ball, and no event pop-ups under the pitch */
.mt-stands { height: 22px; background: #0e0e0e; }
.mt-stadium .mt-ball { width: 18px; height: 18px; background: none; box-shadow: none; animation: none; border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(-32deg) rotate(var(--spin, 0deg)); filter: drop-shadow(0 3px 2px rgb(0 0 0 / .55));
  transition-property: left, top, transform; }
.mt-stadium .mt-ball::after { display: none; }
.mt-ball svg { display: block; width: 100%; height: 100%; }
.mt-pass { position: absolute; z-index: 2; height: 0; border-top: 2px dashed rgb(255 255 255 / .75); transform-origin: 0 50%; pointer-events: none; opacity: 0; }
.mt-pass::after { content: ""; position: absolute; right: -2px; top: -6px; border-left: 9px solid rgb(255 255 255 / .85); border-block: 5px solid transparent; }
.mt-pass.is-on { animation: mt-pass 1.9s ease-out forwards; }
@keyframes mt-pass { 0% { opacity: 0; clip-path: inset(0 100% 0 0); } 15% { opacity: 1; } 55% { opacity: 1; clip-path: inset(0 0 0 0); } 100% { opacity: 0; clip-path: inset(0 0 0 0); } }
.mt-pname { position: absolute; z-index: 4; padding: 3px 9px; border-radius: 99px; white-space: nowrap; pointer-events: none;
  font: 800 .78rem/1.2 var(--f-body); color: #fff; background: rgb(10 10 10 / .78); border: 1px solid rgb(255 255 255 / .25);
  transform: translate(-50%, -190%) rotateX(-32deg); transition-property: left, top, opacity; transition-timing-function: cubic-bezier(.45, .05, .25, 1); opacity: 0; }
.mt-pname.is-on { opacity: 1; }
.mt-banner.is-event { display: none; }
@media (max-width: 700px) { .mt-pname { font-size: .64rem; padding: 2px 6px; } .mt-stadium .mt-ball { width: 14px; height: 14px; } }
.mt-pname { transform: translate(var(--tx, -50%), -190%) rotateX(-32deg); transition-property: left, top, opacity, transform; }

/* ══ Line-up box v2 (Amir 2026-11-28): photos, formation, a real bench list, and after the match: goals, assists, subs, ratings ══ */
.lu-dot { width: 46px; height: 46px; overflow: visible; }
.lu-dot.has-photo { background: #e9e9e6 !important; }
.lu-dot img { border-radius: 50%; object-fit: cover; object-position: 50% 10%; }
.lu-p.is-home .lu-dot.has-photo { box-shadow: 0 0 0 3px #ff4500, 0 6px 14px -6px #000; border: 0; }
.lu-p.is-away .lu-dot.has-photo { box-shadow: 0 0 0 3px #f4f4f4, 0 6px 14px -6px #000; border: 0; }
.lu-dot img + b { bottom: -4px; inset-inline-start: -6px; inset-inline-end: auto; font-size: .62rem; padding: 1px 5px; border-radius: 6px; background: #111; color: #fff; border: 1px solid rgb(255 255 255 / .3); }
.lu-p { width: 86px; }
.lu-p small { font-size: .72rem; }
/* rating: top corner of the photo */
.lu-rate { position: absolute; top: -8px; inset-inline-end: -12px; z-index: 2; font: 800 .66rem/1 var(--f-body); font-style: normal; padding: 3px 5px; border-radius: 6px; color: #fff; background: #e5484d; }
.lu-rate.is-ok { background: #f59e0b; } .lu-rate.is-good { background: #22a05a; } .lu-rate.is-top { background: #1d7fe0; }
.lu-rate.is-best { background: linear-gradient(140deg, #ffd76a, #c8901a); color: #1a1a1a; box-shadow: 0 0 0 2px #fff; }
.lu-rate.is-best::before { content: "★ "; }
/* goals / assists / cards: small marks at the other corner */
.lu-marks { position: absolute; top: -8px; inset-inline-start: -12px; z-index: 2; display: flex; gap: 2px; }
.lu-m { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font: 900 .55rem/1 var(--f-body); font-style: normal; box-shadow: 0 2px 4px rgb(0 0 0 / .5); }
.lu-m.m-goal { background: radial-gradient(circle, #111 0 26%, #fff 28%); border: 1px solid #111; }
.lu-m.m-og { background: radial-gradient(circle, #fff 0 26%, #e5484d 28%); }
.lu-m.m-assist { background: #ff4500; color: #fff; }
.lu-m.m-yellow, .lu-m.m-red { width: 10px; height: 14px; border-radius: 2px; background: #ffd23f; } .lu-m.m-red { background: #e5484d; }
/* went off: a red arrow and the minute under the photo */
.lu-off { position: absolute; bottom: -6px; inset-inline-end: -16px; display: inline-flex; align-items: center; gap: 2px; font: 800 .58rem/1 var(--f-body); font-style: normal; padding: 2px 4px 2px 3px; border-radius: 6px; background: #111; color: #ff8a8d; }
.lu-off::before { content: ""; border-inline: 4px solid transparent; border-top: 6px solid #e5484d; }
.lu-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin: 10px 0 0; font-size: .76rem; color: #c9c9c4; }
.lu-key span { display: inline-flex; align-items: center; gap: 6px; }
.lu-key .lu-rate { position: static; }
.lu-off-key, .lu-on-key { width: 0; height: 0; border-inline: 5px solid transparent; }
.lu-off-key { border-top: 7px solid #e5484d; } .lu-on-key { border-bottom: 7px solid #22c55e; }
.lu-head .lu-after { color: #ffb27f; }
/* the bench: a card per club, each substitute with photo, number, position; who came on is green with the minute */
.lu-bench { gap: 14px; }
.lu-bench-col { padding: 12px; border-radius: 16px; background: rgb(255 255 255 / .04); border: 1px solid rgb(255 255 255 / .07); }
.lu-bench h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .9rem; }
.lu-bench ul { gap: 6px; }
.lu-bench li { position: relative; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; transition: background .2s; }
.lu-bench li:hover { background: rgb(255 255 255 / .05); }
.lu-bench li.is-on { background: rgb(34 197 94 / .1); box-shadow: inset 3px 0 0 #22c55e; }
[dir="rtl"] .lu-bench li.is-on { box-shadow: inset -3px 0 0 #22c55e; }
.lu-bdot { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #2a2a2a; }
.lu-bdot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; background: #e9e9e6; }
.lu-bdot b { min-width: 0; color: #ff6a2b; font-size: .8rem; }
.lu-bname { display: grid; min-width: 0; flex: 1; }
.lu-bname b { color: #fff; min-width: 0; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lu-bname small { font-size: .72rem; color: #a9a9a4; }
.lu-in { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: .74rem; color: #4ade80; }
.lu-in i { width: 0; height: 0; border-inline: 4px solid transparent; border-bottom: 6px solid #22c55e; }
.lu-bench li .lu-rate { position: static; }
.lu-bench li .lu-marks { position: static; }
@media (max-width: 700px) { .lu-p { width: 60px; } .lu-dot { width: 32px; height: 32px; } .lu-rate { font-size: .55rem; inset-inline-end: -10px; } .lu-marks { inset-inline-start: -10px; } .lu-off { display: none; } }
/* the same badge corners on every page language: rating top-right, goals/assists/cards top-left, number bottom-left, went-off bottom-right */
.lu-dot .lu-rate, [dir="rtl"] .lu-dot .lu-rate { right: -12px; left: auto; }
.lu-dot .lu-marks, [dir="rtl"] .lu-dot .lu-marks { left: -12px; right: auto; }
.lu-dot img + b, [dir="rtl"] .lu-dot img + b { left: -6px; right: auto; }
.lu-dot .lu-off, [dir="rtl"] .lu-dot .lu-off { right: -18px; left: auto; }
.lu-bench .lu-bname b { color: #fff; }
/* the coach next to the club: round photo, "Coach" and the name */
.lu-team { flex-wrap: wrap; row-gap: 6px; }
.lu-coach { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 3px; border-radius: 99px; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); }
[dir="rtl"] .lu-coach { padding: 3px 3px 3px 12px; }
.lu-coach img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 50% 10%; background: #e9e9e6; box-shadow: 0 0 0 2px #ff4500; }
.lu-team.is-away .lu-coach img { box-shadow: 0 0 0 2px #f4f4f4; }
.lu-coach > span { display: grid; line-height: 1.15; }
.lu-coach small { font-size: .64rem; color: #a9a9a4; text-transform: uppercase; letter-spacing: .06em; }
[dir="rtl"] .lu-coach small { text-transform: none; letter-spacing: 0; }
.lu-coach b { font-size: .8rem; color: #fff; white-space: nowrap; }
.lu-teams { align-items: flex-start; margin-bottom: 12px; }
.lu-key .lu-rate.is-best::before { content: "★"; }   /* one star in the key */
/* MVP: a small gold "★ MVP" tag under the player's name */
.lu-mvp { display: inline-block; margin-top: 1px; padding: 2px 7px; border-radius: 99px; font: 900 .62rem/1.2 var(--f-body); letter-spacing: .04em; color: #1a1a1a;
  background: linear-gradient(140deg, #fff1b8, #ffd76a 45%, #c8901a); box-shadow: 0 0 0 1.5px #fff, 0 4px 10px -4px rgb(255 215 106 / .9); animation: lu-mvp 2.4s ease-in-out infinite; }
@keyframes lu-mvp { 50% { box-shadow: 0 0 0 1.5px #fff, 0 0 14px 2px rgb(255 215 106 / .7); } }
.lu-key .lu-mvp { padding: 2px 6px; }
.lu-bname .lu-mvp { vertical-align: 1px; }
@media (prefers-reduced-motion: reduce) { .lu-mvp { animation: none; } }
/* Tracker (Amir 2026-11-28): the whole pitch in view (narrower, so the near corners fit after the 3D tilt), and no banner under it */
.mt-stadium { padding-bottom: 22px; }
.mt-stadium .mt-pitch, [dir="rtl"] .mt-stadium .mt-pitch { margin: 6px 11% 0; transform: rotateX(28deg); }
.mt-stadium .mt-ball { transform: translate(-50%, -50%) rotateX(-28deg) rotate(var(--spin, 0deg)); }
.mt-pname { transform: translate(var(--tx, -50%), -190%) rotateX(-28deg); }
.mt-banner { display: none !important; }
@media (max-width: 700px) { .mt-stadium .mt-pitch, [dir="rtl"] .mt-stadium .mt-pitch { margin-inline: 8%; } }
/* Tracker (Amir 2026-11-28): the pitch flat, seen straight from above — no tilt, every side straight */
.mt-stadium { perspective: none; padding: 0 0 16px; }
.mt-stadium .mt-pitch, [dir="rtl"] .mt-stadium .mt-pitch { transform: none; margin: 12px 16px 0; aspect-ratio: 120 / 72; border-radius: 10px; }
.mt-stadium .mt-ball { transform: translate(-50%, -50%) rotate(var(--spin, 0deg)); }
.mt-pname { transform: translate(var(--tx, -50%), -170%); }
@media (max-width: 700px) { .mt-stadium .mt-pitch, [dir="rtl"] .mt-stadium .mt-pitch { margin-inline: 8px; } }

/* Tracker (Amir 2026-11-28): goals with posts, crossbar and net; corner flags; calls (Out, Corner, Foul, Offside); no flashing */
.mt-stadium .mt-pitch { overflow: visible; }
.mt-stadium .mt-goal { position: absolute; z-index: 2; top: 41%; height: 18%; width: 3.2%; border: 3px solid #fff; box-shadow: 0 2px 6px rgb(0 0 0 / .45);
  background: repeating-linear-gradient(0deg, rgb(255 255 255 / .55) 0 1px, transparent 1px 5px), repeating-linear-gradient(90deg, rgb(255 255 255 / .55) 0 1px, transparent 1px 5px), rgb(0 0 0 / .15); }
.mt-stadium .mt-goal.is-l { left: -3.2%; border-right: 0; border-radius: 3px 0 0 3px; }
.mt-stadium .mt-goal.is-r { right: -3.2%; border-left: 0; border-radius: 0 3px 3px 0; }
.mt-cflag { position: absolute; z-index: 3; width: 2px; height: 18px; background: #f4f4f4; pointer-events: none; }
.mt-cflag::after { content: ""; position: absolute; top: 0; left: 2px; width: 11px; height: 8px; background: #ff4500; clip-path: polygon(0 0, 100% 50%, 0 100%); transform-origin: 0 50%; animation: mt-wave 1.6s ease-in-out infinite; }
.mt-cflag.is-tl { left: 0; top: -16px; } .mt-cflag.is-tr { right: 0; top: -16px; } .mt-cflag.is-bl { left: 0; bottom: 0; } .mt-cflag.is-br { right: 0; bottom: 0; }
.mt-cflag.is-tr::after, .mt-cflag.is-br::after { left: auto; right: 2px; transform-origin: 100% 50%; clip-path: polygon(100% 0, 0 50%, 100% 100%); }
@keyframes mt-wave { 50% { transform: scaleX(.65) skewY(-8deg); } }
/* the call: a pill in the middle of the pitch */
.mt-call { position: absolute; z-index: 5; left: 50%; top: 14%; display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; pointer-events: none;
  background: rgb(10 10 10 / .82); border: 1px solid rgb(255 255 255 / .25); color: #fff; transform: translate(-50%, -8px) scale(.9); opacity: 0; transition: opacity .25s, transform .3s cubic-bezier(.2, 1.4, .4, 1); }
.mt-call.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.mt-call b { font: 900 .95rem/1 var(--f-head); }
.mt-call small { font-size: .75rem; color: #c9c9c4; }
.mt-call small:empty { display: none; }
.mt-call i { width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.mt-call.is-out i { background: none; border: 2px dashed #fff; }
.mt-call.is-corner i { width: 2px; height: 16px; border-radius: 0; background: #fff; box-shadow: 6px -4px 0 -1px #ff4500; }
.mt-call.is-foul { border-color: #ffd23f; } .mt-call.is-foul i { background: #ffd23f; animation: mt-whistle .4s ease 3; }
.mt-call.is-offside { border-color: #ff4500; } .mt-call.is-offside i { width: 12px; height: 9px; border-radius: 1px; background: linear-gradient(135deg, #ffd23f 50%, #e5484d 50%); }
@keyframes mt-whistle { 50% { transform: scale(1.4); } }
/* calmer: no blinking danger zone, softer moves */
.mt-zone.is-danger { animation: none; }
.mt-pitch::after { animation: none; opacity: .6; }
.mt-zone { transition: left 1.4s ease, background 1.4s ease, opacity 1s; }
@media (prefers-reduced-motion: reduce) { .mt-cflag::after, .mt-call i { animation: none; } }
.mt-call { white-space: nowrap; }
