/* =====================================================================
   GaafaruSports Design System — styles.css
   Read DESIGN-SYSTEM.md before adding anything. Use tokens, never raw hex.
   ===================================================================== */

/* ---------- 0. Dhivehi fonts (files in /fonts) ---------- */
/* From https://dhivehi.mv/fonts/ — DAM_Madheeh for headings, Mv Iyyu Normal for other text */
@font-face { font-family: "DAM Madheeh"; src: url("fonts/dam-madheeh.otf?v=1") format("opentype"); font-display: swap; }
@font-face { font-family: "MV Iyyu Normal"; src: url("fonts/mv-iyyu-normal.otf?v=1") format("opentype"); font-display: swap; }

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand palette */
  --navy-950: #050d1a;
  --navy-900: #081a33;
  --navy-800: #102849;
  --navy-700: #1d4778; /* primary brand navy */
  --navy-600: #285a93;
  --navy-500: #3a72b0;
  --navy-400: #6d9ad0;
  --navy-300: #a3c0e5;
  --navy-200: #ccdcf1;
  --navy-100: #e6eef8;
  --navy-50: #f3f7fc;
  --sky-400: #38bdf8; /* logo colour */

  /* Sport tones */
  --sport-football: #2fb36b;
  --sport-futsal: #3a8fd9;
  --sport-handball: #d9577f;
  --sport-athletics: #e39a3b;
  --sport-other: #8b7fd6;

  /* Status & medals */
  --success: #2fb36b;
  --warning: #e8a23a;
  --danger: #e5484d;
  --gold: #d9a520;
  --silver: #9aa6b6;

  /* Type */
  --font-sans: "Inter", "Noto Sans Thaana", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Manrope", "Inter", "Noto Sans Thaana", system-ui, sans-serif; /* headings, hero titles, section names */
  --font-thaana: "MV Iyyu Normal", "Noto Sans Thaana", "Faruma", sans-serif; /* Dhivehi body text */
  --font-thaana-heading: "DAM Madheeh", "MV Iyyu Normal", "Noto Sans Thaana", sans-serif; /* Dhivehi headings */

  /* Shape & layout */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;
  --container: 1200px;
  --gutter: 24px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Dark theme (default) */
  color-scheme: dark;
  --bg: #060c17;
  --bg-alt: #08111f;
  --surface: #0d1829;
  --surface-2: #122036;
  --surface-3: #182a45;
  --border: #1c2b45;
  --border-strong: #2a3e61;
  --text: #e8eef7;
  --text-2: #a7b5ca;
  --text-3: #71839d;
  --blue-600: #2563eb; /* primary brand blue */
  --blue-700: #1d4ed8;
  --brand: var(--blue-600);
  --brand-hover: #3b76f6;
  --brand-text: #7aa7ff;
  --brand-soft: #142a57;
  --on-brand: #fff;
  --logo-text: var(--blue-600);
  --accent: #7aa7ff; /* small highlights (MOTM, #1) */
  --accent-soft: #142a57;
  --shadow-md: 0 8px 24px rgb(0 0 0 / .35);
  --shadow-lg: 0 24px 60px rgb(0 0 0 / .45);
  --header-bg: rgb(6 12 23 / .8);
  --glow: radial-gradient(60% 90% at 10% 0%, rgb(37 99 235 / .28), transparent 70%), radial-gradient(35% 60% at 95% 0%, rgb(37 99 235 / .08), transparent 70%);
  --photo-fill: #5b6d87;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fa;
  --bg-alt: #eef2f7;
  --surface: #fff;
  --surface-2: #f4f7fb;
  --surface-3: #e8eef6;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0b1a2e;
  --text-2: #475569;
  --text-3: #6b7a90;
  --brand: var(--blue-600);
  --brand-hover: var(--blue-700);
  --brand-text: var(--blue-700);
  --brand-soft: #e0eaff;
  --logo-text: var(--blue-600);
  --accent: var(--blue-700);
  --accent-soft: #e0eaff;
  --shadow-md: 0 8px 24px rgb(11 26 46 / .08);
  --shadow-lg: 0 24px 60px rgb(11 26 46 / .12);
  --header-bg: rgb(255 255 255 / .85);
  --glow: radial-gradient(60% 90% at 10% 0%, rgb(37 99 235 / .12), transparent 70%), radial-gradient(35% 60% at 95% 0%, rgb(37 99 235 / .05), transparent 70%);
  --photo-fill: #9aa8bb;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; min-width: 320px; font: 400 15px/1.6 var(--font-sans); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--text); line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 2px; }
::selection { color: #fff; background: var(--brand); }
[hidden], .hidden-card { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-gold { color: var(--gold); }
.num { font-family: var(--font-sans); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
/* Manrope for headings, hero titles and section names */
h1, h2, h3, h4, .display, .page-title, .card-title, .brand-copy strong, .award-value, .edition-placeholder .num { font-family: var(--font-heading); }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.025em; }
.skip-link { position: absolute; z-index: 50; top: -60px; left: 16px; padding: 10px 14px; border-radius: var(--r-md); background: var(--surface); }
.skip-link:focus { top: 10px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
main { min-height: 60vh; }

/* ---------- 3. Typography ---------- */
.display { font-size: clamp(38px, 5.6vw, 68px); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; }
.display em { font-style: normal; color: var(--brand-text); }
.page-title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.1; letter-spacing: -.035em; }
.lead { color: var(--text-2); font-size: 17px; line-height: 1.6; }
.eyebrow { display: block; margin-bottom: 8px; color: var(--brand-text); font-size: 13px; font-weight: 600; letter-spacing: .01em; }

/* ---------- 4. Header ---------- */
.site-header { position: sticky; z-index: 30; top: 0; height: var(--header-h); border-bottom: 1px solid var(--border); background: var(--header-bg); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.header-inner { max-width: var(--container); height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 38px; height: 38px; flex: none; border-radius: 50%; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; gap: 3px; line-height: 1.15; }
.brand-copy strong { font-size: 17px; font-weight: 800; letter-spacing: -.03em; }
.brand-copy strong span { color: var(--logo-text); } /* "Sports" in the wordmark */
.brand-copy small { color: var(--text-3); font-size: 11px; }
.desktop-nav { display: flex; flex: 1; align-items: center; justify-content: center; gap: 2px; }
.nav-link { padding: 7px 12px; border-radius: var(--r-pill); color: var(--text-2); font-size: 14px; font-weight: 500; white-space: nowrap; transition: color .15s, background .15s; }
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.active { color: var(--brand-text); background: var(--brand-soft); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.search-box { display: flex; align-items: center; gap: 8px; width: 200px; height: 38px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface); color: var(--text-3); transition: border-color .15s; }
.search-box:focus-within { border-color: var(--border-strong); }
.search-box .icon { width: 16px; height: 16px; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 14px; }
.search-box input::placeholder { color: var(--text-3); }
.icon-btn { width: 38px; height: 38px; display: inline-grid; flex: none; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface); color: var(--text-2); cursor: pointer; transition: color .15s, border-color .15s; }
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn .icon { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
.menu-toggle { display: none; }
.mobile-nav { padding: 8px var(--gutter) 16px; border-bottom: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-md); }
.mobile-nav:not([hidden]) { display: grid; gap: 2px; }
.mobile-nav .nav-link { padding: 12px; border-radius: var(--r-md); font-size: 15px; }
.search-results { position: absolute; top: calc(var(--header-h) - 4px); right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); width: 340px; padding: 6px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-lg); }
.search-results:not([hidden]) { display: grid; gap: 2px; }
.search-results a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: var(--r-md); color: var(--text); font-size: 14px; }
.search-results a small { color: var(--text-3); font-size: 12px; }
.search-results a:hover { background: var(--surface-2); }
.search-results p { padding: 10px 12px; color: var(--text-3); font-size: 14px; }

/* Installed app on iPhone: keep the header clear of the status bar / notch */
.site-header { padding-top: env(safe-area-inset-top, 0px); height: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }

/* "Get the app" banner */
.install-banner { position: fixed; z-index: 60; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 12px; width: min(420px, calc(100vw - 32px)); padding: 12px 12px 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--r-lg); background: var(--surface-2); box-shadow: var(--shadow-lg); animation: install-in .35s var(--ease); }
.install-banner img { width: 44px; height: 44px; flex: none; border-radius: 12px; }
.install-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.install-text strong { font: 800 14px/1.3 var(--font-heading); }
.install-text span { color: var(--text-2); font-size: 12px; line-height: 1.45; }
.install-text .icon { width: 14px; height: 14px; vertical-align: -2px; color: var(--brand-text); }
.install-close { width: 30px; height: 30px; flex: none; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text-3); font-size: 20px; line-height: 1; cursor: pointer; }
.install-close:hover { color: var(--text); background: var(--surface-3); }
.install-spinner { width: 44px; height: 44px; flex: none; border: 4px solid var(--surface-3); border-top-color: var(--brand); border-radius: 50%; animation: app-spin .8s linear infinite; }
.install-banner.is-installing img { display: none; }
.install-banner.is-installed .install-text strong .icon { width: 16px; height: 16px; color: var(--success); }
@keyframes app-spin { to { transform: rotate(360deg); } }
@keyframes install-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 920px) { .install-banner { left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); width: auto; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }

/* Bottom navigation (phones & tablets) */
.bottom-nav { display: none; }

/* ---------- 5. Buttons, badges, chips ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.button .icon { width: 16px; height: 16px; transition: transform .15s; }
.button:hover .icon { transform: translateX(2px); }
.button-primary { color: var(--on-brand); background: var(--brand); }
.button-primary:hover { background: var(--brand-hover); }
.button-secondary { color: var(--text); border-color: var(--border); background: var(--surface); }
.button-secondary:hover { border-color: var(--border-strong); background: var(--surface-2); }
.button-accent { color: #fff; background: var(--brand); }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--text-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-brand { color: var(--brand-text); background: var(--brand-soft); }
.badge-accent { color: var(--accent); background: var(--accent-soft); }
.badge-success { color: var(--success); background: color-mix(in srgb, var(--success) 15%, transparent); }
.badge-ft { color: var(--text); background: var(--surface-3); font-weight: 700; letter-spacing: .04em; }
.badge-ft .icon { width: 13px; height: 13px; color: var(--success); stroke-width: 2.4; }
.badge-live { color: #fff; background: var(--danger); font-weight: 800; letter-spacing: .06em; }
.badge-live .dot { background: #fff; animation: live-pulse 1.2s ease-in-out infinite; }
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.next-match.is-live { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); }
.badge-gold { color: var(--gold); background: color-mix(in srgb, var(--gold) 15%, transparent); }
.chip-group { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip { height: 32px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 600; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.active { color: #fff; border-color: var(--brand); background: var(--brand); }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-text); font-size: 14px; font-weight: 600; white-space: nowrap; }
.text-link .icon { transition: transform .15s; }
.text-link:hover .icon { transform: translateX(3px); }
.back-link { margin-top: 32px; }
.back-link .icon { transform: rotate(180deg); }
.back-link:hover .icon { transform: rotate(180deg) translateX(3px); }

/* ---------- 6. Sections & page header ---------- */
.section { padding: 56px 0; }
.section-heading:not(:has(h2)) { margin-bottom: 6px; }
.section-heading:not(:has(h2)) .eyebrow { margin: 0; font-size: 15px; }
/* Two plain sections in a row: don't double the gap */
.section:not(.section-alt) + .section:not(.section-alt) { padding-top: 0; }
.section.section-photo { padding-bottom: 0; }
/* Same space above "Sponsors" and above "Latest news" */
.section.section-sponsors { padding-bottom: 24px; }
@media (max-width: 640px) { .section.section-sponsors { padding-bottom: 14px; } }
.section.section-photo + .section:not(.section-alt) { padding-top: 24px; }
@media (max-width: 640px) { .section.section-photo + .section:not(.section-alt) { padding-top: 14px; } }
.section-alt { border-block: 1px solid var(--border); background: var(--bg-alt); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-heading h2 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 800; letter-spacing: -.03em; }
.section-heading p { max-width: 560px; margin-top: 6px; color: var(--text-2); }
.subsection { margin-top: 40px; }
.subsection:first-child { margin-top: 0; }
.page-header { padding: 18px 0 26px; border-bottom: 1px solid var(--border); background: var(--glow); }
.page-back { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text); transition: border-color .15s, background .15s; }
.page-back:hover { border-color: var(--border-strong); background: var(--surface-2); }
.page-back .icon { width: 17px; height: 17px; transform: rotate(180deg); }
[dir="rtl"] .page-back .icon { transform: none; }
.facts .fact-champ { display: flex; align-items: center; gap: 12px; }
.facts .fact-champ > div { flex: 1 1 auto; padding: 0; }
.fact-champ .team-logo { flex: none; width: 40px; height: 40px; font-size: 13px; }
.page-sub { display: flex; align-items: flex-start; gap: 6px; line-height: 1.45; margin-top: 6px; color: var(--text-2); font-size: 13px; }
.page-sub strong { color: var(--text); font-weight: 600; }
.page-sub .icon { flex: none; width: 15px; height: 15px; margin-top: 1px; color: var(--brand-text); }
.page-lead { max-width: 640px; margin-top: 8px; color: var(--text-2); font-size: 14px; }
.page-content { min-height: 50vh; padding: 32px 0 88px; }

/* ---------- 7. Home hero ---------- */
.hero { position: relative; overflow: hidden; padding: 80px 0 72px; border-bottom: 1px solid var(--border); background: var(--glow); }
.hero::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; opacity: .45; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(60% 70% at 25% 20%, #000 10%, transparent 75%); mask-image: radial-gradient(60% 70% at 25% 20%, #000 10%, transparent 75%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 56px; }
.hero h1 { margin-top: 20px; }
.hero-lead { max-width: 520px; margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 16px 40px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); }
.stat { display: flex; flex-direction: column; }
.stat-value { color: var(--text); font-size: 36px; font-weight: 700; line-height: 1; }
.stat-label { margin-top: 6px; color: var(--text-3); font-size: 13px; }

/* Result card (latest result) */
.result-card { display: block; padding: 22px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-lg); transition: border-color .2s; }
.result-card:hover { border-color: var(--border-strong); }
.result-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 24px; color: var(--text-3); font-size: 13px; }
.scoreline { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.scoreline-team { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; text-align: center; }
.scoreline-team.is-loser { color: var(--text-2); }
.scoreline-score { font-size: 46px; font-weight: 800; line-height: 1; white-space: nowrap; }
.scoreline-score span { margin: 0 6px; color: var(--text-3); }
.scoreline-note { margin-top: 16px; color: var(--text-2); font-size: 13px; text-align: center; }
.result-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--text-2); font-size: 13px; }

/* Photo banner */
.section-photo { padding-top: 24px; padding-bottom: 0; }
.photo-banner { position: relative; margin: 0; overflow: hidden; isolation: isolate; -webkit-transform: translateZ(0); transform: translateZ(0); aspect-ratio: 21 / 8; min-height: 260px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface-2); }
.photo-banner img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.photo-banner::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(0deg, rgb(5 13 26 / .88), rgb(5 13 26 / .2) 55%, transparent); }
.photo-caption { position: absolute; z-index: 1; right: 96px; bottom: 28px; left: 32px; }
.photo-caption .eyebrow { color: var(--navy-300); }
.photo-caption h1 { max-width: 560px; color: #fff; font-size: clamp(20px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.03em; }
/* Slideshow */
.slider-track { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; display: -webkit-box; display: flex; transition: transform .7s cubic-bezier(.65, 0, .35, 1); will-change: transform; }
.photo-banner .slider-track .slide { position: relative; display: block; -webkit-flex: 0 0 100%; flex: 0 0 100%; width: 100%; min-width: 100%; height: 100%; max-width: none; }
.slider-btn { position: absolute; z-index: 2; top: 50%; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgb(5 13 26 / .45); color: #fff; cursor: pointer; opacity: 0; transform: translateY(-50%); transition: opacity .2s, background .2s; backdrop-filter: blur(6px); }
.slider-btn .icon { width: 20px; height: 20px; stroke-width: 2.2; }
.slider-btn:hover { background: rgb(5 13 26 / .7); }
.slider:hover .slider-btn, .slider-btn:focus-visible { opacity: 1; }
.slider-prev { left: 14px; }
.slider-next { right: 14px; }
.slider-dots { position: absolute; z-index: 2; right: 28px; bottom: 30px; display: flex; gap: 6px; }
.slider-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: var(--r-pill); background: rgb(255 255 255 / .5); cursor: pointer; transition: width .3s var(--ease), background .3s; }
.slider-dot.active { width: 24px; background: #fff; }

/* News slideshow: each slide = photo + headline at the bottom */
.news-slider::after { display: none; }
.news-slider .slide::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(0deg, rgb(5 13 26 / .92), rgb(5 13 26 / .35) 45%, transparent 70%); pointer-events: none; }
.slide-caption { position: absolute; z-index: 1; right: 24px; bottom: 40px; left: 24px; display: grid; justify-items: start; gap: 8px; text-align: right; }
.slide-caption .badge { height: auto; min-height: 24px; padding: 2px 12px; color: #fff; background: rgb(37 99 235 / .85); font-size: 14px; }
.slide-caption strong { display: -webkit-box; overflow: hidden; padding: .2em .2em 0; /* room for the slanted Dhivehi letters and their marks */ color: #fff; font: 400 clamp(21px, 2.5vw, 31px)/1.55 var(--font-thaana-heading); -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-shadow: 0 2px 12px rgb(0 0 0 / .45); }
.slide-caption[dir="ltr"] { text-align: left; }
.slide-caption[dir="ltr"] strong { font: 800 clamp(19px, 2.3vw, 29px)/1.3 var(--font-heading); letter-spacing: -.02em; }
.news-slider .slider-dots { right: 50%; left: auto; bottom: 14px; transform: translateX(50%); }
.news-slider a.slide:focus-visible { outline: 3px solid var(--brand-text); outline-offset: -3px; }

/* Top scorers: 3 cards in one row */
.scorer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.scorer-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 18px 12px 16px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); text-align: center; transition: border-color .2s, transform .2s var(--ease); }
a.scorer-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.scorer-card .player-photo { width: 64px; height: 64px; margin-bottom: 4px; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--rank, var(--border-strong)); }
.scorer-card strong { max-width: 100%; overflow: hidden; font: 800 15px/1.3 var(--font-heading); text-overflow: ellipsis; white-space: nowrap; }
.scorer-team { display: inline-flex; align-items: center; justify-content: center; gap: 6px; max-width: 100%; min-height: 22px; color: var(--text-3); font-size: 12px; }
.scorer-team > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scorer-goals { display: inline-flex; align-items: baseline; gap: 5px; margin-top: 4px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--brand-soft); color: var(--brand-text); font-size: 12px; font-weight: 600; }
.scorer-goals b { color: var(--text); font-size: 22px; font-weight: 800; line-height: 1; }
.scorer-rank { position: absolute; top: 10px; left: 10px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--rank, var(--surface-3)); color: #fff; font-size: 13px; font-weight: 800; }
/* All three cards look the same: brand blue rank badge and photo ring. */
.scorer-card.rank-1, .scorer-card.rank-2, .scorer-card.rank-3 { --rank: var(--brand); color: var(--text); background: var(--surface); }
.scorer-card.is-empty strong { color: var(--text-3); font-weight: 600; }
.scorer-card.is-empty .scorer-goals b { color: var(--text-3); }
@media (hover: none) { .slider-btn { display: none; } }
.photo-credit { position: absolute; z-index: 1; top: 14px; right: 14px; padding: 3px 9px; border-radius: var(--r-pill); background: rgb(5 13 26 / .55); color: rgb(255 255 255 / .75); font-size: 11px; }

/* Home top: photo + featured team */
.home-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: stretch; gap: 16px; }
.home-top .photo-banner { aspect-ratio: auto; min-height: 420px; }
.team-feature { display: flex; flex-direction: column; gap: 18px; padding: 24px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--glow), var(--surface); }
.team-feature > .badge { align-self: flex-start; }
.team-feature-head { display: flex; align-items: center; gap: 14px; }
.team-feature-head div { display: grid; gap: 2px; min-width: 0; }
.team-feature h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.team-feature-head div span { color: var(--text-3); font-size: 13px; }
.team-feature p { color: var(--text-2); font-size: 15px; }
.match-panel { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.match-panel .next-match { align-content: space-between; background: var(--surface); }
.match-panel .next-match.is-empty { align-content: center; background: transparent; }
.next-match.is-link { transition: border-color .2s; }
.next-match.is-link:hover { border-color: var(--border-strong); }
.next-match-teams .is-loser { color: var(--text-2); font-weight: 500; }
.next-match-score { align-self: center; padding: 6px 12px; border-radius: var(--r-md); background: var(--surface-2); font-size: 26px; font-weight: 800; line-height: 1; white-space: nowrap; }
.next-match-time { font-size: 20px; }
.next-match-teams > .score-stack { display: flex; flex-direction: column; align-items: center; gap: 6px; align-self: end; }
.score-stack .badge { height: 20px; padding: 0 8px; font-size: 10px; }
.score-stack .badge .icon { width: 11px; height: 11px; }
.next-match-note { color: var(--text-2); font-size: 13px; text-align: center; }
/* Coming up / Underway / Champions card body */
.up-body { display: flex; align-items: center; gap: 14px; min-width: 0; }
.up-body > div { display: grid; gap: 4px; min-width: 0; }
.up-body strong { font: 800 15px/1.3 var(--font-heading); }
.badge.badge-count { height: 26px; padding: 0 12px; font-size: 13px; font-weight: 700; }
.up-body span { color: var(--text-2); font-size: 13px; line-height: 1.5; }
.up-logo { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--brand-text); background: var(--brand-soft); }
.up-logo .icon { width: 24px; height: 24px; }
.match-panel.is-single { grid-template-rows: 1fr; }
.next-match { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-2); }
.next-match-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.next-match-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 8px; }
.next-match-teams div { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; font-size: 13px; font-weight: 600; text-align: center; overflow-wrap: anywhere; }
.next-match-vs { align-self: center; color: var(--text-3); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.next-match-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 12px; border-top: 1px solid var(--border); color: var(--text-2); font-size: 13px; }
.next-match-meta span { display: inline-flex; align-items: center; gap: 6px; }
.next-match-meta .icon { color: var(--text-3); }
.next-match.is-empty { justify-items: center; gap: 6px; padding: 24px 16px; border-style: dashed; border-color: var(--border-strong); background: transparent; text-align: center; }
.next-match.is-empty strong { margin-top: 6px; font-size: 15px; }
.next-match.is-empty p { color: var(--text-3); font-size: 13px; }
.team-feature .button { align-self: flex-start; margin-top: auto; }

/* Advertisements */
.partners { padding: 44px 0; }
.partners-title { margin-bottom: 24px; color: var(--text-2); font-size: 22px; font-weight: 700; letter-spacing: -.02em; text-align: center; }
.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
/* Partner ticker: scrolls right-to-left forever, pauses on hover/touch */
.ad-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ad-track { display: flex; width: max-content; animation: ad-ticker var(--ticker, 28s) linear infinite; }
.ad-track-copy { display: flex; }
@media (hover: hover) and (pointer: fine) { .ad-marquee:hover .ad-track { animation-play-state: paused; } }
.ad-track .ad-slot { flex: none; width: 200px; height: 200px; margin-right: 12px; }
@keyframes ad-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 640px) { .ad-track .ad-slot { width: 124px; height: 124px; margin-right: 8px; } }
@media (prefers-reduced-motion: reduce) { .ad-track { animation: none; } .ad-marquee { overflow-x: auto; } }
/* Logo tiles stay white in both themes so partner logos always read correctly. */
.ad-slot { position: relative; aspect-ratio: 1; display: grid; place-items: center; padding: 10px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; transition: transform .2s var(--ease), box-shadow .2s; }
a.ad-slot:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ad-slot img { width: 100%; height: 100%; object-fit: contain; }
.ad-empty { gap: 6px; align-content: center; justify-items: center; padding: 12px; border: 1px dashed color-mix(in srgb, var(--brand) 55%, var(--border)); background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 22%, var(--surface)), var(--surface)); color: var(--text-2); text-align: center; }
.ad-empty-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; }
.ad-empty-icon .icon { width: 22px; height: 22px; }
.ad-empty strong { color: var(--text); font: 800 16px/1.2 var(--font-heading); }
.ad-empty > span:last-child { font-size: 12px; line-height: 1.35; }
.partners-cta { margin-top: 20px; text-align: center; }

/* ---------- Dhivehi (ޚަބަރު) ---------- */
[lang="dv"] { font-family: var(--font-thaana); letter-spacing: 0; }
/* Dhivehi fonts have one weight: never fake bold */
[lang="dv"], [lang="dv"] * { font-weight: 400 !important; font-synthesis: none; }
[lang="dv"] h1, [lang="dv"] h2, [lang="dv"] h3, [lang="dv"] .page-title, .dv-label { font-family: var(--font-thaana-heading); font-weight: 400; letter-spacing: 0; }
[lang="dv"] .page-title { line-height: 1.3; }
[lang="dv"].page-header { padding: 18px 0 22px; }
[lang="dv"] .page-lead { margin-top: 4px; }
[lang="dv"].page-content { padding-top: 20px; }
.dv-label { font-size: 1.3em; line-height: 1; }
/* MV Iyyu / Madheeh look small, so Dhivehi text is set a bit larger */
[lang="dv"] .page-lead { font-size: 17px; }
[lang="dv"] .news-meta { font-size: 15px; }
[lang="dv"] .news-card h3 { font-size: 23px; }
[lang="dv"] .news-card.is-featured h3 { font-size: 30px; }
[lang="dv"] .news-card p { font-size: 17px; }
[lang="dv"] .article p { font-size: 21px; }
[lang="dv"] .text-link, [lang="dv"] .button, [lang="dv"] .badge { font-size: 16px; }
[lang="dv"] .badge { height: auto; min-height: 26px; padding: 2px 12px; white-space: nowrap; }
[lang="dv"] .page-lead { line-height: 1.9; }
[dir="rtl"] .text-link .icon, [dir="rtl"] .button .icon { transform: scaleX(-1); }
[dir="rtl"] .text-link:hover .icon, [dir="rtl"] .button:hover .icon { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .back-link .icon { transform: none; }
[dir="rtl"] .back-link:hover .icon { transform: translateX(3px); }
.news-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); transition: border-color .2s, transform .2s var(--ease); }
.news-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.news-media { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; background: var(--glow), var(--surface-2); }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.news-card:hover .news-media img { transform: scale(1.04); }
.news-placeholder .icon { width: 44px; height: 44px; color: var(--brand-text); opacity: .6; }
.news-body { display: grid; gap: 8px; padding: 16px 18px 20px; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--text-3); font-size: 13px; }
.news-card h3 { font-size: 19px; font-weight: 700; line-height: 1.6; }
.news-card p { display: -webkit-box; overflow: hidden; color: var(--text-2); font-size: 15px; line-height: 1.9; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.news-card.is-featured { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); margin-bottom: 16px; }
.news-card.is-featured .news-media { aspect-ratio: auto; min-height: 300px; }
.news-card.is-featured .news-body { align-content: center; padding: 28px; }
.news-card.is-featured h3 { font-size: 26px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.news-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.news-grid-2[lang="dv"] .news-card h3 { font-size: 19px; }
.article { max-width: 760px; }
.article-media { width: 100%; max-height: 440px; margin-bottom: 24px; border-radius: var(--r-lg); object-fit: cover; }
.article p { margin-bottom: 18px; color: var(--text); font-size: 18px; line-height: 2.1; }
.article .button { margin-top: 8px; }

/* ---------- 8. Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); transition: border-color .2s, background .2s, transform .2s var(--ease); }
a.card:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-2px); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; }
.card-eyebrow { color: var(--text-3); font-size: 12px; font-weight: 600; text-align: right; }
.card-title { font-size: 17px; font-weight: 800; line-height: 1.3; letter-spacing: -.02em; }
.card-text { color: var(--text-2); font-size: 14px; line-height: 1.55; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); color: var(--text-2); font-size: 13px; }
.card-foot > span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.card-foot strong { color: var(--text); }
.card-foot .icon-arrow { color: var(--text-3); transition: transform .2s, color .2s; }
a.card:hover .card-foot .icon-arrow { color: var(--brand-text); transform: translateX(3px); }
.icon-tile { width: 40px; height: 40px; display: grid; flex: none; place-items: center; border-radius: var(--r-md); color: var(--tile, var(--brand-text)); background: color-mix(in srgb, var(--tile, var(--brand-text)) 15%, transparent); }
.icon-tile .icon { width: 20px; height: 20px; }
.tone-football { --tile: var(--sport-football); }
.tone-futsal { --tile: var(--sport-futsal); }
.tone-handball { --tile: var(--sport-handball); }
.tone-athletics { --tile: var(--sport-athletics); }
.tone-other { --tile: var(--sport-other); }
.champion-note { color: rgb(255 255 255 / .75); font-size: 14px; }

/* Tournament tiles (logo + small name) */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.t-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 14px 18px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); text-align: center; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.t-tile:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-2px); }
.t-tile-logo { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 6px; overflow: hidden; border-radius: 50%; color: var(--brand); background: color-mix(in srgb, var(--brand) 18%, transparent); transition: transform .3s var(--ease); }
.t-tile:hover .t-tile-logo { transform: scale(1.06); }
.t-tile-logo .icon { width: 30px; height: 30px; }
.t-tile-logo.has-img { background: #fff; }
.t-tile-logo img { width: 100%; height: 100%; padding: 8px; object-fit: contain; }
.t-tile strong { font: 800 14px/1.3 var(--font-heading); letter-spacing: -.01em; color: var(--text); }
.t-tile > span:not(.t-tile-logo) { color: var(--text-3); font-size: 12px; }

.t-groups { display: grid; gap: 36px; }
.t-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 12px; }
.t-group-head .group-title { margin: 0; }
.t-group-head span { color: var(--text-3); font-size: 13px; }
.t-tile.is-past strong { color: var(--text-2); }
.t-tile-past { margin-top: 4px; padding: 2px 9px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--text-3); font-size: 11px; font-style: normal; font-weight: 600; }

/* Edition (year) cards */
/* Tournament year cards: big square logo area, name and facts underneath */
.edition-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-top: 18px; }
.edition-logo { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-bottom: 1px solid var(--border); background: radial-gradient(90% 80% at 25% 0%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 70%), var(--surface-2); }
/* Absolute box sizes (not grid/flex + 100%) so iPhone Safari keeps the logo inside */
.edition-logo img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; }   /* the logo fills the whole square */
.edition-placeholder { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; }
.edition-placeholder .num { color: var(--text); font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.edition-body { display: grid; gap: 6px; padding: 14px 16px 16px; }
.edition-title { margin-bottom: 4px; font: 800 17px/1.25 var(--font-heading); letter-spacing: -.02em; }
.edition-body p { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--text-2); font-size: 13.5px; }
.edition-body .icon { flex: none; width: 17px; height: 17px; color: var(--text-3); }
.edition-body .edition-champ { color: var(--text); font-weight: 600; }
.edition-body .edition-champ .icon { color: var(--gold); }
@supports not (aspect-ratio: 1 / 1) { .edition-logo { height: 200px; } }
@media (max-width: 640px) {
  .edition-title { font-size: 15px; }
  .edition-body { gap: 4px; padding: 12px; }
  .edition-body p { gap: 6px; font-size: 12px; }
  .edition-body .icon { width: 14px; height: 14px; }
  .edition-placeholder .num { font-size: 34px; }
}
.edition-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); transition: border-color .2s, transform .2s var(--ease); }
.edition-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.edition-badge { position: absolute; z-index: 1; top: 10px; left: 10px; }
.edition-badge .badge { height: 22px; padding: 0 9px; border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--border)); background: var(--surface); font-size: 11px; box-shadow: var(--shadow-md); }

/* ---------- 9. Facts, panels, tabs ---------- */
.facts { display: flex; flex-wrap: wrap; gap: 1px; margin: 0 0 28px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--border); }
.facts div { flex: 1 1 150px; padding: 14px 16px; background: var(--surface); }
.facts dt { color: var(--text-3); font-size: 12px; }
.facts dd { margin: 4px 0 0; font-size: 15px; font-weight: 600; }
.facts .fact-wide { flex-basis: 100%; }
.panel { padding: 20px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-heading h2, .panel-heading h3 { font-size: 16px; font-weight: 700; }
.tab-bar { display: flex; gap: 4px; width: max-content; max-width: 100%; margin-bottom: 20px; padding: 4px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface); }
.tab { height: 36px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: none; color: var(--text-2); font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: color .15s, background .15s; }
.tab:hover { color: var(--text); }
.tab.active { color: #fff; background: var(--brand); }
.notice { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); color: var(--text-2); font-size: 14px; }
.notice .icon { color: var(--brand-text); }
.empty-state { padding: 48px 20px; border: 1px dashed var(--border-strong); border-radius: var(--r-lg); color: var(--text-3); font-size: 14px; text-align: center; }
.group-title { margin: 28px 0 12px; color: var(--text-3); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.group-title:first-child { margin-top: 0; }

/* ---------- 10. Awards ---------- */
.award-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 12px; }
.award-grid .award-card { grid-column: span 2; }
.award-grid .award-champion, .award-grid .award-runner-up, .award-grid .award-wide { grid-column: span 3; }
.award-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.award-label { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.award-label .icon { width: 15px; height: 15px; color: var(--brand-text); }
.award-value { font-size: 17px; font-weight: 800; line-height: 1.3; letter-spacing: -.015em; }
.award-value.is-tbc { color: var(--text-3); font-size: 14px; font-weight: 500; }
.award-sub { color: var(--text-3); font-size: 13px; }
.award-team { display: flex; align-items: center; gap: 14px; }
.award-person { flex-direction: row; align-items: center; gap: 14px; }
.award-person > div { display: grid; gap: 4px; min-width: 0; }
.award-person .player-photo { width: 56px; height: 56px; }
.award-champion { border-color: transparent; color: #fff; background: radial-gradient(80% 120% at 100% 0%, rgb(255 255 255 / .14), transparent 60%), linear-gradient(135deg, #1e3a8a, var(--blue-600)); }
.award-champion .award-label { color: rgb(255 255 255 / .7); }
.award-champion .award-label .icon { color: var(--gold); }
.award-champion .award-value { color: #fff; font-size: 26px; letter-spacing: -.02em; }
.award-champion .award-value.is-tbc { color: rgb(255 255 255 / .6); font-size: 18px; }
.award-champion .team-logo-sample { box-shadow: 0 0 0 3px rgb(255 255 255 / .2); }
.award-runner-up .award-label .icon { color: var(--silver); }
.award-runner-up .award-value { font-size: 20px; }
.spotlight { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }
.spotlight .award-champion { grid-row: span 3; justify-content: space-between; min-height: 280px; padding: 28px; }
.spotlight .award-champion .award-value { font-size: 34px; }
.best-five { display: grid; margin: 0; padding: 0; list-style: none; }
.best-five li { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--border); font-size: 14px; }
.best-five li:last-child { border-bottom: 0; }
.best-rank { width: 26px; height: 26px; display: grid; flex: none; place-items: center; border-radius: var(--r-sm); background: var(--surface-3); color: var(--text-2); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.best-five li:first-child .best-rank { color: #fff; background: var(--brand); }
.best-name { font-weight: 600; }
.best-team { margin-left: auto; color: var(--text-3); font-size: 13px; text-align: right; }
.best-five em { color: var(--text-3); font-style: normal; }

/* ---------- 11. People & teams ---------- */
.player-photo { width: 40px; height: 40px; display: block; flex: none; border-radius: 50%; object-fit: cover; background: var(--surface-3); }
.player-photo-sample { background: var(--surface-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='25' r='11' fill='%23778aa5'/%3E%3Cpath d='M10 62c2-12 11-19 22-19s20 7 22 19' fill='%23778aa5'/%3E%3C/svg%3E") center/cover; }
.team-logo { width: 36px; height: 36px; display: inline-grid; flex: none; place-items: center; border-radius: 50%; object-fit: contain; }
img.team-logo { border-radius: 50%; object-fit: cover; background: var(--surface-3); }
.team-logo-sample { color: #fff; background: hsl(var(--team-hue) 42% 40%); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.team-logo-sm { width: 26px; height: 26px; font-size: 10px; }
.team-logo-lg { width: 52px; height: 52px; font-size: 17px; }
.team-logo-xl { width: 64px; height: 64px; font-size: 20px; }
.team-logo-tile { width: 40px; height: 40px; border-radius: var(--r-md); font-size: 13px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.team-chip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); font-size: 14px; font-weight: 600; }
.person-head { display: flex; align-items: center; gap: 12px; }
.person-head .player-photo { width: 48px; height: 48px; }
.person-head div { display: grid; min-width: 0; }
.person-head span { color: var(--text-3); font-size: 12px; }
/* Team cards: logo, name and sport on one line */
.card-compact { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
.card-compact .card-head { display: contents; }
.card-compact .card-head > :first-child { grid-column: 1; grid-row: 1; }
.card-compact .card-title { grid-column: 2; grid-row: 1; }
.card-compact .card-eyebrow { grid-column: 3; grid-row: 1; }
.card-compact .card-meta, .card-compact .card-foot, .card-compact .card-text { grid-column: 1 / -1; }
.card-compact .card-foot > span { display: block; }
.card-compact .card-foot > span .icon { display: inline-block; margin-right: 4px; vertical-align: -2px; }
.person-head .card-title, .card-compact .card-title { font-size: 15px; font-weight: 700; line-height: 1.25; }

/* ---------- 12. Fixtures & results ---------- */
.fixtures-block + .fixtures-block { margin-top: 56px; }
.fixture-days { display: grid; gap: 24px; }
.fixture-day { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: start; gap: 16px; }
.fixture-date { position: sticky; top: calc(var(--header-h) + 12px); display: flex; flex-direction: column; align-items: center; padding: 12px 6px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); text-align: center; }
.fixture-date-num { font-size: 32px; font-weight: 800; line-height: 1; }
.fixture-date-month { margin-top: 4px; color: var(--brand-text); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.fixture-date-week { color: var(--text-3); font-size: 12px; }
.fixture-list { display: grid; gap: 10px; }
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 12px; }
.fixture-card { --group: var(--brand-text); min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px 16px; padding: 12px 20px 14px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.fixture-meta { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text-3); font-size: 12px; }
.fixture-group { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 600; }
.fixture-group::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--group); }
.fixture-group-a { --group: var(--danger); }
.fixture-group-b { --group: var(--warning); }
.fixture-group-c { --group: var(--success); }
.fixture-group-d { --group: var(--sport-other); }
.fixture-semi-final { --group: var(--brand-text); }
.fixture-final { --group: var(--gold); }
.fixture-team { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 15px; font-weight: 600; }
.fixture-team span { min-width: 0; overflow-wrap: anywhere; }
.fixture-team.is-loser { color: var(--text-2); font-weight: 500; }
.fixture-home { justify-content: flex-end; text-align: right; }
.fixture-center strong { display: block; min-width: 84px; padding: 8px 12px; border-radius: var(--r-md); background: var(--surface-2); font-size: 26px; font-weight: 800; line-height: 1; text-align: center; white-space: nowrap; }
.fixture-center .is-time { color: var(--text-2); font-size: 18px; font-weight: 700; }
.fixture-center { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.fixture-venue { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; color: var(--text-3); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.fixture-venue .icon { flex: none; width: 12px; height: 12px; }
.fixture-note { grid-column: 1 / -1; color: var(--text-2); font-size: 13px; text-align: center; }
.fixture-motm { grid-column: 1 / -1; display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 8px; min-width: 0; padding-top: 10px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 12px; white-space: nowrap; }
.fixture-motm > * { flex: none; }
.fixture-motm .badge { height: 20px; padding: 0 7px; font-size: 10px; }
.fixture-motm .player-photo { width: 24px; height: 24px; }
.fixture-motm strong { color: var(--text); font-size: 13px; font-weight: 600; }
.fixture-motm > span:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 13. Tables ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); color: var(--text-3); font-size: 12px; font-weight: 600; text-align: left; }
.data-table td { padding: 12px; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: var(--surface-2); }
.data-table td[colspan] { color: var(--text-3); text-align: center; }
.standings-table { min-width: 620px; table-layout: fixed; }
.standings-table .col-rank { width: 56px; }
.standings-table .col-stat { width: 54px; }
.standings-table th, .standings-table td { text-align: center; }
.standings-table th:nth-child(2), .standings-table td:nth-child(2) { text-align: left; }
.standings-table td:last-child { font-weight: 700; }
/* # and Team stay put while the numbers scroll sideways on small screens */
.standings-table { border-collapse: separate; border-spacing: 0; }
.fact-note { color: var(--text-2); font-weight: 600; }
.standings-table th:nth-child(-n+2), .standings-table td:nth-child(-n+2) { position: sticky; z-index: 1; }
.standings-table th:nth-child(1), .standings-table td:nth-child(1) { left: 0; }
.standings-table th:nth-child(2), .standings-table td:nth-child(2) { left: 56px; box-shadow: inset -1px 0 var(--border); }
.standings-table td:nth-child(-n+2) { background: var(--surface); }
.standings-table tbody tr:hover td { background: var(--surface-2); }
.table-team { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; }
.table-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank { width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: var(--r-sm); background: var(--surface-3); color: var(--text-2); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rank-1 { color: var(--gold); background: color-mix(in srgb, var(--gold) 18%, transparent); }
.rank-2 { color: var(--silver); background: color-mix(in srgb, var(--silver) 18%, transparent); }
.table-note { margin-top: 10px; color: var(--text-3); font-size: 13px; }

/* ---------- 14. Forms & filters ---------- */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 24px; }
.filter-bar label { color: var(--text-3); font-size: 13px; font-weight: 500; }
.select { height: 38px; min-width: 160px; padding: 0 36px 0 14px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23778aa5' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 14px no-repeat; color: var(--text); font-size: 14px; cursor: pointer; appearance: none; -webkit-appearance: none; }
.select:hover { border-color: var(--border-strong); }
.contact-form { padding: 24px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: grid; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: var(--text-2); font-size: 13px; font-weight: 600; }
.form-field input, .form-field textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--r-md); outline: 0; background: var(--bg); color: var(--text); font-size: 14px; transition: border-color .15s; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--brand-text); }
.form-field textarea { min-height: 120px; resize: vertical; }
.form-feedback { margin-top: 12px; color: var(--text-2); font-size: 14px; }

/* ---------- 15. About & CTA ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: start; gap: 40px; }
.about-copy { display: grid; gap: 16px; color: var(--text-2); font-size: 16px; }
.about-copy h2 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.brand-panel { display: grid; place-items: center; gap: 16px; min-height: 300px; padding: 32px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--glow), var(--surface); text-align: center; }
.brand-panel svg, .brand-panel-logo { width: 120px; height: 120px; border-radius: 50%; }
.brand-panel strong { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.brand-panel p { color: var(--text-2); }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 36px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--glow), var(--surface); }
.cta h2 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.cta p { margin-top: 8px; color: var(--text-2); }

/* ---------- 16. Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer-main { max-width: var(--container); margin: 0 auto; padding: 32px var(--gutter) 24px; }
.footer-bottom a { color: var(--text-2); }
.footer-bottom a:hover { color: var(--text); }
.footer-brand p { max-width: 340px; margin-top: 14px; color: var(--text-2); font-size: 14px; }
.footer-main h2 { margin-bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: 0; }
.footer-links div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.footer-links .nav-link { padding: 0; border-radius: 0; background: none; color: var(--text-2); font-size: 14px; }
.footer-links .nav-link:hover, .footer-links .nav-link.active { color: var(--text); background: none; }
.footer-contact p { margin-bottom: 6px; color: var(--text-2); font-size: 14px; }
.footer-bottom { max-width: var(--container); margin: 0 auto; padding: 16px var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--text-3); font-size: 13px; }

/* ---------- 17. Responsive ---------- */
@media (max-width: 1100px) {
  .nav-link { padding: 7px 9px; font-size: 13px; }
  .search-box { width: 160px; }
}
@media (max-width: 920px) {
  .desktop-nav, .menu-toggle, .mobile-nav { display: none !important; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .bottom-nav { position: fixed; z-index: 40; right: 0; bottom: 0; left: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); height: calc(64px + env(safe-area-inset-bottom)); padding: 6px 6px env(safe-area-inset-bottom); border-top: 1px solid var(--border); background: var(--header-bg); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
  .bottom-nav-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; border-radius: var(--r-md); color: var(--text-3); font-size: 10.5px; font-weight: 600; letter-spacing: -.01em; transition: color .15s; }
  .bottom-nav-link .icon { width: 30px; height: 26px; padding: 3px 6px; border-radius: var(--r-pill); transition: background .15s; }
  .bottom-nav-link span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bottom-nav-link:hover { color: var(--text); }
  .bottom-nav-link.active { color: var(--text); }
  .bottom-nav-link.active .icon { color: var(--brand-text); background: var(--brand-soft); }
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .spotlight { grid-template-columns: 1fr; }
  .home-top { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; }
  .home-top .photo-banner { min-height: 280px; }
  .photo-caption { right: 20px; bottom: 44px; left: 20px; }
  .photo-caption h1 { font-size: 18px; }
  .slider-dots { right: auto; bottom: 18px; left: 20px; }
  .match-panel .next-match { gap: 10px; padding: 14px; }
  .ad-grid { gap: 10px; }
  .ad-slot { padding: 10px; }
  .spotlight .award-champion { grid-row: auto; min-height: 0; }
  .award-grid { grid-template-columns: repeat(2, 1fr); }
  .award-grid .award-card, .award-grid .award-runner-up, .award-grid .award-wide { grid-column: span 1; }
  .award-grid .award-champion { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 62px; }
  .header-inner { gap: 10px; }
  .brand-copy small { font-size: 10px; }
  .search-box { width: 38px; padding: 0; justify-content: center; }
  .search-box input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .search-box:focus-within { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); width: auto; padding: 0 12px; justify-content: flex-start; background: var(--surface); }
  .search-box:focus-within input { position: static; width: auto; height: auto; clip: auto; }
  .search-results { left: var(--gutter); right: var(--gutter); width: auto; }
  .hero { padding: 48px 0 48px; }
  .hero-stats { gap: 16px 28px; }
  .stat-value { font-size: 30px; }
  .section { padding: 28px 0; }
  .section-photo { padding-top: 12px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 16px; }
  .section-heading h2 { font-size: 24px; }
  .eyebrow { margin-bottom: 4px; }
  .cta h2 { font-size: 22px; }
  .page-header { padding: 12px 0 18px; }
  .page-content { padding: 24px 0 64px; }
  .scoreline-score { font-size: 38px; }
  .results-grid { grid-template-columns: 1fr; }
  .award-grid { grid-template-columns: 1fr; }
  .fixture-day { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .fixture-list, .fixture-days, .results-grid { min-width: 0; }
  .fixture-date { position: static; flex-direction: row; justify-content: flex-start; gap: 10px; padding: 0; border: 0; background: none; }
  .fixture-date-num { font-size: 22px; }
  .fixture-date-month { margin-top: 0; }
  .fixture-card { align-items: center; gap: 8px; padding: 10px 12px 12px; }
  .fixture-center { align-self: center; }
  .fixture-team { gap: 7px; font-size: 13px; line-height: 1.25; }
  .fixture-team .team-logo { width: 30px; height: 30px; font-size: 10px; }
  .fixture-home { justify-content: flex-end; text-align: right; }
  .fixture-center strong { min-width: 60px; padding: 6px 8px; font-size: 20px; }
  .fixture-center .is-time { font-size: 15px; }
  .fixture-venue { font-size: 11px; }
  .standings-table { min-width: 540px; }
  .standings-table .col-rank { width: 40px; }
  .standings-table .col-stat { width: 46px; }
  .standings-table th:nth-child(2), .standings-table td:nth-child(2) { left: 40px; }
  .fixture-venue .icon { width: 12px; height: 12px; }
  .cta { flex-direction: column; align-items: flex-start; padding: 24px; }
  .home-top { grid-template-columns: 1fr; }
  /* Real height on phones (Safari can collapse aspect-ratio boxes inside a grid to 0) */
  .photo-banner, .home-top .photo-banner { aspect-ratio: auto; height: calc((100vw - 32px) * .625); min-height: 200px; align-self: start; }
  .photo-caption { right: 16px; bottom: 34px; left: 16px; }
  .photo-caption .eyebrow { margin-bottom: 2px; font-size: 11px; }
  .photo-caption h1 { font-size: 15px; }
  .slider-dots { bottom: 14px; left: 16px; }
  .news-slider .slider-dots { left: auto; bottom: 10px; }
  .slide-caption { right: 14px; bottom: 26px; left: 14px; gap: 4px; }
  .slide-caption .badge { min-height: 20px; padding: 1px 9px; font-size: 12px; }
  .slide-caption strong { font-size: 18px; line-height: 1.5; }
  .scorer-grid { gap: 8px; }
  .scorer-card { gap: 4px; padding: 14px 6px 12px; }
  .scorer-card .player-photo { width: 46px; height: 46px; }
  .scorer-card strong { font-size: 12px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .scorer-team { font-size: 10.5px; }
  .scorer-team .team-logo { width: 18px; height: 18px; font-size: 7px; }
  .scorer-goals { padding: 3px 9px; font-size: 10.5px; }
  .scorer-goals b { font-size: 17px; }
  .scorer-rank { top: 6px; left: 6px; width: 20px; height: 20px; font-size: 11px; }
  .match-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 1fr; gap: 8px; }
  .match-panel.is-single { grid-template-columns: 1fr; }
  .match-panel .up-body { flex-direction: column; gap: 6px; text-align: center; }
  .match-panel .up-body strong { font-size: 12px; }
  .match-panel .next-match-head .badge.badge-count { height: 22px; padding: 0 10px; font-size: 12px; font-weight: 700; }
  .match-panel .up-body span { display: -webkit-box; overflow: hidden; font-size: 11px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .match-panel .up-body .team-logo, .match-panel .up-logo { width: 34px; height: 34px; }
  .match-panel .up-logo .icon { width: 17px; height: 17px; }
  .match-panel .next-match-head .badge { height: 18px; padding: 0 7px; font-size: 10px; }
  .match-panel .next-match-head { flex-direction: column; align-items: center; gap: 4px; text-align: center; }
  .match-panel .next-match-meta { align-items: center; text-align: center; }
  .match-panel .next-match-teams { gap: 4px; }
  /* Small card: logo · score/time · logo (names hidden) */
  .match-panel .next-match-teams { grid-template-columns: auto 1fr auto; align-items: end; gap: 4px; }
  .match-panel .next-match-teams > .score-stack { gap: 4px; }
  .match-panel .score-stack .badge { height: 17px; padding: 0 6px; font-size: 9px; }
  .match-panel .next-match { align-content: center; gap: 4px; padding: 8px 10px; }
  .match-panel .next-match-teams .team-logo { border-radius: 50% !important; aspect-ratio: 1; }
  .match-panel .next-match-meta { padding-top: 5px; }
  .match-panel .next-match-teams > div:not(.score-stack) > span:not(.team-logo) { display: none; }
  .match-panel .next-match-teams .team-logo { width: 34px !important; height: 34px !important; font-size: 12px !important; }
  .match-panel .next-match-score { justify-self: center; padding: 4px 8px; font-size: 18px; }
  .match-panel .next-match-note { display: none; }
  .match-panel .next-match-meta { flex-direction: column; gap: 2px; }
  .match-panel .next-match { gap: 6px; padding: 10px 12px; }
  .match-panel .next-match-head .award-label { font-size: 11px; }
  .match-panel .next-match-head .badge { height: 20px; padding: 0 8px; font-size: 10px; }
  .match-panel .next-match .team-logo-lg { width: 30px; height: 30px; font-size: 11px; }
  .match-panel .next-match-teams div { gap: 4px; font-size: 12px; }
  .match-panel .next-match-score { padding: 3px 8px; font-size: 17px; }
  .match-panel .next-match-note { font-size: 11px; }
  .match-panel .next-match-meta { padding-top: 6px; font-size: 11px; }
  .match-panel .next-match.is-empty { justify-items: center; align-content: center; gap: 4px; padding: 10px; text-align: center; }
  .match-panel .next-match.is-empty .icon-tile { width: 30px; height: 30px; }
  .match-panel .next-match.is-empty .icon-tile .icon { width: 15px; height: 15px; }
  .match-panel .next-match.is-empty strong { margin: 0; font-size: 13px; }
  .match-panel .next-match.is-empty p { display: none; }
  .match-panel .next-match.is-empty { gap: 4px; padding: 8px 10px; }
  .match-panel .next-match.is-empty .icon-tile { width: 26px; height: 26px; }
  .match-panel .next-match.is-empty strong { font-size: 12px; line-height: 1.3; }
  .match-panel .next-match-head .award-label { font-size: 10px; }
  .match-panel .next-match-meta { font-size: 10.5px; }
  .ad-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  [lang="dv"].page-header { padding: 12px 0 14px; }
  [lang="dv"].page-content { padding-top: 14px; }
  .news-grid-2 { gap: 10px; }
  .news-grid-2 .news-body { gap: 6px; padding: 10px 12px 14px; }
  .news-grid-2 .news-meta .badge { display: none; }
  .news-grid-2[lang="dv"] .news-meta { font-size: 11px; }
  .news-grid-2[lang="dv"] .news-card h3 { font-size: 14px; line-height: 1.7; }
  .news-grid-2 .news-card p { display: none; }
  .news-card.is-featured { grid-template-columns: 1fr; }
  .news-card.is-featured .news-media { min-height: 0; aspect-ratio: 16 / 9; }
  .news-card.is-featured .news-body { padding: 16px 18px 20px; }
  .news-card.is-featured h3 { font-size: 20px; }
  .article p { font-size: 16px; }
  .facts { margin-bottom: 20px; }
  .facts div { flex-basis: 30%; padding: 8px 12px; }
  .facts .fact-wide { flex-basis: 100%; }
  .facts dt { font-size: 11px; }
  .facts dd { margin-top: 1px; font-size: 13px; line-height: 1.35; }
  .sport-grid, .tile-grid, .edition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .t-tile { padding: 16px 10px 14px; }
  .t-tile-logo { width: 52px; height: 52px; margin-bottom: 4px; }
  .t-tile-logo .icon { width: 24px; height: 24px; }
  .t-tile strong { font-size: 13px; }
  .t-tile > span:not(.t-tile-logo) { font-size: 11px; }
  .card-sport { gap: 8px; padding: 14px; }
  .card-sport .card-head { min-height: 0; }
  .card-sport .icon-tile { width: 34px; height: 34px; }
  .card-sport .icon-tile .icon { width: 17px; height: 17px; }
  .card-sport .card-eyebrow { font-size: 11px; }
  .card-sport .card-title { font-size: 15px; }
  .card-sport .card-text, .card-sport .card-foot { display: none; }
  .ad-slot { padding: 6px; border-radius: var(--r-md); }
  .ad-empty { gap: 4px; padding: 8px; }
  .ad-empty-icon { width: 32px; height: 32px; }
  .ad-empty-icon .icon { width: 17px; height: 17px; }
  .ad-empty strong { font-size: 13px; }
  .ad-empty > span:last-child { font-size: 10px; }
  .partners { padding: 28px 0; }
  .partners-title { margin-bottom: 16px; font-size: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-main { padding-top: 24px; padding-bottom: 16px; }
}
/* Older iPhones/Safari (before iOS 15) don't support aspect-ratio — give boxes real heights so they never collapse to 0 */
@supports not (aspect-ratio: 1 / 1) {
  .photo-banner { height: 38vw; }
  .ad-slot { height: 200px; }
  .news-media { height: 210px; }
  .news-card.is-featured .news-media { height: auto; }
  @media (max-width: 640px) {
    .photo-banner, .home-top .photo-banner { height: calc((100vw - 32px) * .625); }
    .ad-slot { height: calc((100vw - 50px) / 4); }
    .news-media, .news-card.is-featured .news-media { height: calc((100vw - 32px) * .5625); }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Score Predictor (shared game styles use fx-) ---------- */
.fx { max-width: 820px; }
.fx-view { margin-bottom: 14px; }
.fx-intro { margin-bottom: 18px; }
.fx-h2 { margin: 28px 0 12px; font: 800 18px/1.3 var(--font-heading); letter-spacing: -.02em; }
.fx-note { color: var(--text-2); font-size: 14px; }
.fx-note.is-ok { display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-weight: 600; }
.fx-note .icon { width: 18px; height: 18px; }
.fx-msg { margin-top: 10px; padding: 10px 14px; border-radius: var(--r-md); background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--text); font-size: 14px; }
.fx-msg.is-ok { background: color-mix(in srgb, var(--success) 14%, transparent); }
.fx-link { padding: 0; border: 0; background: none; color: var(--brand-text); font: inherit; font-weight: 600; cursor: pointer; }
.fx-btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.fx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fx-summary { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.fx-summary > * { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.fx-summary-team strong { overflow: hidden; font: 800 17px/1.3 var(--font-heading); text-overflow: ellipsis; white-space: nowrap; }
.fx-summary-team span, .fx-stat span { overflow: hidden; color: var(--text-3); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.fx-stat b { font-size: 22px; font-weight: 800; }
.fx-deadline { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--text-2); font-size: 14px; }
.fx-deadline .icon { flex: none; width: 18px; height: 18px; color: var(--brand-text); }
.fx-deadline strong { color: var(--text); }



.fx-table { width: 100%; border-collapse: collapse; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); font-size: 14px; }
.fx-table th, .fx-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; }
.fx-table th { color: var(--text-3); font-size: 12px; font-weight: 600; }
.fx-table tr:last-child td { border-bottom: 0; }
.fx-table th:last-child, .fx-table td:last-child, .fx-board th:nth-child(3), .fx-board td:nth-child(3) { text-align: right; }
.fx-board td:first-child { width: 44px; color: var(--text-3); font-weight: 700; }
.fx-board td strong { display: block; }
.fx-board td span { color: var(--text-3); font-size: 12px; }
.fx-board tbody tr { cursor: pointer; }
.fx-board tbody tr:hover td { background: var(--surface-2); }
.fx-board tr.is-me td { background: color-mix(in srgb, var(--brand) 10%, var(--surface)); }
.fx-view .fx-note { margin-bottom: 10px; }
.fx-rules { display: grid; gap: 14px; margin-top: 18px; }
.fx-rules h3 { margin-bottom: 10px; font: 800 16px/1.3 var(--font-heading); }
.fx-rules ol { display: grid; gap: 8px; padding-left: 20px; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.fx-join .contact-form { position: relative; }
.fx-foot { margin-top: 24px; color: var(--text-3); font-size: 13px; text-align: center; }

.fx-promo { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--border)); border-radius: var(--r-lg); background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 18%, var(--surface)), var(--surface) 70%); }
.fx-promo > div { display: grid; flex: 1 1 auto; gap: 2px; min-width: 0; }
.fx-promo strong { font: 800 17px/1.3 var(--font-heading); }
.fx-promo span:not(.button):not(.icon-tile) { color: var(--text-2); font-size: 14px; }
@media (max-width: 640px) {
  .fx-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fx-summary-team { grid-column: 1 / -1; }
  .fx-summary > * { padding: 10px 12px; }
  .fx-stat b { font-size: 18px; }
  .fx-promo:not(.is-compact) { flex-wrap: wrap; }
  .fx-promo:not(.is-compact) .button { width: 100%; }
  .fx-promo.is-compact > div { min-width: 0; }
}
/* Countdown to kick-off (home page, before a tournament starts) */
.countdown-card { padding: 20px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--glow), var(--surface); }
.home-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.home-side .home-countdown { flex: 1 1 auto; }
.home-countdown { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 16px 18px; }
.fx-promo.is-compact { gap: 12px; padding: 10px 12px; }
.fx-promo.is-compact .icon-tile { width: 38px; height: 38px; }
.fx-promo.is-compact strong { font-size: 15px; }
.fx-promo.is-compact span:not(.button):not(.icon-tile) { font-size: 12.5px; }
.fx-promo.is-compact .button { flex: none; width: auto; height: 36px; padding: 0 14px; font-size: 13px; }
.cd-eyebrow { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 4px; color: var(--text-2); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cd-eyebrow .icon { width: 16px; height: 16px; color: var(--brand-text); }
.home-countdown .countdown-head { flex-direction: column; align-items: flex-start; }
.home-countdown .countdown { margin-top: 10px; }
.home-countdown .cd-box { padding: 10px 4px 8px; gap: 4px; }
.home-countdown .cd-box b { font-size: clamp(24px, 2.6vw, 34px); }
.cd-link { margin-top: 10px; }
.countdown-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.countdown-head strong { font: 800 18px/1.3 var(--font-heading); letter-spacing: -.02em; }
.cd-when-pre { color: var(--text-2); font-weight: 600; }
.countdown-head > span { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 14px; }
.countdown-head .icon { width: 16px; height: 16px; color: var(--brand-text); }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.cd-box { display: grid; gap: 6px; padding: 16px 6px 12px; border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--border)); border-radius: var(--r-md); background: var(--brand-soft); text-align: center; }
.cd-box b { color: var(--text); font: 800 clamp(30px, 4.4vw, 48px)/1 var(--font-heading); }
.cd-box span { color: var(--brand-text); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cd-live { display: none; align-items: center; gap: 8px; margin-top: 16px; font-weight: 700; }
.cd-live .icon { width: 20px; height: 20px; color: var(--brand-text); }
.countdown-card.is-live .countdown { display: none; }
.countdown-card.is-live .cd-live { display: flex; flex-wrap: wrap; }
@media (max-width: 640px) {
  .countdown-card { padding: 16px 14px; }
  .countdown-head strong { font-size: 16px; }
  .countdown-head > span { font-size: 13px; }
  .countdown { gap: 6px; margin-top: 12px; }
  .cd-box { padding: 12px 4px 10px; gap: 4px; }
  .cd-box b { font-size: 28px; }
  .cd-box span { font-size: 10px; }
}.fx-field-note { color: var(--text-3); font-size: 12px; line-height: 1.5; }
.fx-phone-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--border)); border-radius: var(--r-lg); background: color-mix(in srgb, var(--brand) 10%, var(--surface)); }
.fx-phone-box > div:first-child { display: grid; gap: 2px; }
.fx-phone-box strong { font-size: 15px; }
.fx-phone-box span { color: var(--text-2); font-size: 13px; }
.fx-phone-row { display: flex; gap: 8px; }
.fx-phone-row input { width: 150px; height: 34px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--r-md); outline: 0; background: var(--bg); color: var(--text); font-size: 14px; }
.fx-phone-row input:focus { border-color: var(--brand-text); }
/* Score Predictor match cards */
.px-day { margin: 18px 0 8px; color: var(--text-2); font-size: 13px; font-weight: 700; }
.px-list { display: grid; gap: 10px; }
.px-card { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px 10px; padding: 14px 14px 10px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.px-team { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; text-align: center; }
.px-team strong { display: -webkit-box; max-width: 100%; overflow: hidden; font-size: 14px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.px-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.px-inputs { display: flex; align-items: center; gap: 6px; }
.px-inputs > span { color: var(--text-3); font-weight: 800; }
.px-in { width: 52px; height: 52px; padding: 0; border: 1px solid var(--border-strong); border-radius: var(--r-md); outline: 0; background: var(--bg); color: var(--text); font: 800 24px/1 var(--font-heading); text-align: center; -moz-appearance: textfield; }
.px-in::-webkit-outer-spin-button, .px-in::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.px-in:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 30%, transparent); }
.px-in:disabled { opacity: .5; }
.px-vs { color: var(--text-3); font-weight: 700; }
.px-score { font: 800 28px/1 var(--font-heading); }
.px-foot { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 12.5px; }
.px-foot strong { color: var(--text); }
.px-status { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.px-status .icon { width: 14px; height: 14px; color: var(--success); }
.px-pts { flex: none; min-width: 34px; padding: 2px 10px; border-radius: var(--r-pill); font-size: 13px; font-weight: 800; text-align: center; }
.px-pts-exact { color: #fff; background: var(--success); }
.px-pts-result { color: #fff; background: var(--brand); }
/* one team's goals right */
.px-pts-one { color: var(--brand-text); background: var(--brand-soft); }
.px-pts-none { color: var(--text-3); background: var(--surface-3); }
.px-crowd { grid-column: 1 / -1; display: grid; gap: 6px; padding-top: 4px; }
.px-crowd-title { color: var(--text-3); font-size: 12px; }
.px-crowd-bar { display: flex; height: 8px; overflow: hidden; border-radius: var(--r-pill); background: var(--surface-3); }
.px-crowd-bar span:nth-child(1) { background: var(--brand); }
.px-crowd-bar span:nth-child(2) { background: var(--text-3); }
.px-crowd-bar span:nth-child(3) { background: var(--sky-400); }
.px-crowd-legend { display: flex; justify-content: space-between; gap: 8px; color: var(--text-2); font-size: 11.5px; }
.px-crowd-legend span:nth-child(2) { text-align: center; }
.px-crowd-legend span:nth-child(3) { text-align: right; }
.px-savebar { position: sticky; z-index: 5; bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--brand) 50%, var(--border)); border-radius: var(--r-lg); background: var(--surface-2); box-shadow: var(--shadow-md); font-size: 14px; font-weight: 600; }
.px-savebar[hidden] { display: none; }
@media (max-width: 920px) { .px-savebar { bottom: calc(76px + env(safe-area-inset-bottom)); } }
@media (max-width: 640px) {
  .px-card { padding: 12px 10px 8px; gap: 6px; }
  .px-team .team-logo-lg { width: 40px; height: 40px; font-size: 13px; }
  .px-team strong { font-size: 13px; }
  .px-in { width: 44px; height: 46px; font-size: 21px; }
  .px-score { font-size: 24px; }
  .px-savebar .button { width: 100%; }
}
/* Score Predictor profile photos */
.px-avatar { display: inline-grid; flex: none; place-items: center; width: 34px; height: 34px; overflow: hidden; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); font-size: 12px; font-weight: 800; object-fit: cover; }
.px-avatar-lg { width: 56px; height: 56px; font-size: 18px; }
.px-avatar .icon { width: 55%; height: 55%; }
.px-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.px-who > div, .px-who > span { min-width: 0; }
.px-photo-label { color: var(--text-2); font-size: 13px; font-weight: 600; }
.px-photo-label small { color: var(--text-3); font-weight: 500; }
.px-photo-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.px-photo-pick .button { position: relative; overflow: hidden; }
.px-file { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.fx-summary-team.px-me { flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; }
.px-me > div { display: grid; gap: 2px; min-width: 0; }
.px-photo-actions { font-size: 12px; }
.px-photo-actions .fx-link { position: relative; font-size: 12px; cursor: pointer; }
/* News list (links to other websites and our own stories) */
.nl-list { display: grid; gap: 14px; max-width: 700px; }
.nl-card { display: grid; grid-template-columns: 38% minmax(0, 1fr); overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); transition: border-color .2s, transform .2s var(--ease); }
.nl-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.nl-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-3); }
.nl-media img, .nl-media .news-placeholder { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.nl-media .news-placeholder { display: grid; place-items: center; color: var(--text-3); }
.nl-body { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-width: 0; padding: 14px 16px; }
.nl-body h3 { display: -webkit-box; overflow: hidden; font: 700 17px/1.35 var(--font-heading); letter-spacing: -.01em; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.nl-body h3[lang="dv"] { padding: .15em .3em 0; margin-right: -.3em; font-family: var(--font-thaana-heading); font-size: 19px; line-height: 1.7; }   /* room for the slanted Dhivehi letters */
.nl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--text-3); font-size: 13px; }
.nl-meta span + span::before { content: ""; display: inline-block; width: 1px; height: 12px; margin-right: 10px; vertical-align: -1px; background: var(--border-strong); }
.nl-meta .icon { width: 13px; height: 13px; }
/* small cards: text on the left, photo on the right */
.nl-card:not(.is-big) { grid-template-columns: minmax(0, 1fr) 38%; }
.nl-card:not(.is-big) .nl-media { order: 2; }
.nl-card.is-big { grid-template-columns: 1fr; }
.nl-card.is-big .nl-media { aspect-ratio: 16 / 10; }
.nl-card.is-big .nl-body { gap: 18px; padding: 18px 20px 20px; }
.nl-card.is-big h3 { font-size: 22px; -webkit-line-clamp: 2; }
.nl-card.is-big h3[lang="dv"] { font-size: 24px; }
@supports not (aspect-ratio: 1 / 1) { .nl-media { height: 120px; } .nl-card.is-big .nl-media { height: 56vw; } }
@media (max-width: 640px) {
  .nl-list { gap: 10px; }
  .nl-body { padding: 10px 12px; gap: 8px; }
  .nl-body h3 { font-size: 15px; }
  .nl-body h3[lang="dv"] { font-size: 17px; }
  .nl-meta { font-size: 12px; }
  .nl-card.is-big h3 { font-size: 19px; }
}
/* Sponsor poster on the Score Predictor page */
.px-poster { display: block; max-width: 820px; margin-bottom: 18px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-2); }
.px-poster img { display: block; width: 100%; height: auto; }
.px-poster.is-empty { display: flex; align-items: center; gap: 14px; min-height: 110px; padding: 18px 20px; border-style: dashed; border-color: color-mix(in srgb, var(--brand) 55%, var(--border)); background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 22%, var(--surface)), var(--surface)); }
.px-poster.is-empty > div { display: grid; gap: 4px; }
.px-poster.is-empty strong { font: 800 18px/1.2 var(--font-heading); }
.px-poster.is-empty span:not(.ad-empty-icon) { color: var(--text-2); font-size: 13px; }
@media (max-width: 640px) { .px-poster.is-empty { min-height: 90px; padding: 14px; } .px-poster.is-empty strong { font-size: 16px; } }
/* Phones: tabs share the full width so they all fit without sliding */
@media (max-width: 640px) {
  .tab-bar { width: 100%; gap: 2px; padding: 3px; overflow: hidden; }
  .tab-bar .tab { flex: 1 1 0; min-width: 0; height: 34px; padding: 0 4px; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
}
/* Team page */
.team-hero { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.team-hero .team-logo-xl { width: 76px; height: 76px; }
.team-hero .badge .icon { width: 13px; height: 13px; }
.team-tourney { display: flex; align-items: center; gap: 14px; max-width: 820px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--border)); border-radius: var(--r-lg); background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 16%, var(--surface)), var(--surface) 70%); }
.team-tourney img { width: 52px; height: 52px; flex: none; border-radius: var(--r-md); object-fit: contain; background: #fff; }
.team-tourney > div { display: grid; flex: 1 1 auto; gap: 2px; min-width: 0; }
.team-tourney .eyebrow { margin: 0; font-size: 12px; }
.team-tourney strong { font: 800 17px/1.3 var(--font-heading); }
.team-tourney > div > span:last-child { color: var(--text-2); font-size: 13px; }
.team-tourney > .icon { flex: none; color: var(--text-3); }
.team-h2 { margin: 26px 0 12px; font: 800 19px/1.3 var(--font-heading); }
.team-h2 small { margin-left: 6px; color: var(--text-3); font-size: 14px; font-weight: 600; }
.squad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; max-width: 820px; }
.squad-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px 14px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); text-align: center; }
.squad-card .player-photo { width: 64px; height: 64px; }
.squad-card strong { font-size: 14px; line-height: 1.3; }
.squad-num { position: absolute; top: 8px; left: 10px; color: var(--brand-text); font: 800 16px/1 var(--font-heading); }
.staff-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; max-width: 820px; }
.staff-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.staff-row > div { display: grid; gap: 2px; min-width: 0; }
.staff-row strong { font-size: 14px; }
.staff-row span { color: var(--brand-text); font-size: 12px; font-weight: 700; }
.team-hero + .team-tourney, .fixture-list { max-width: 820px; }
@media (max-width: 640px) {
  .team-hero .team-logo-xl { width: 60px; height: 60px; }
  .squad-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .squad-card { padding: 12px 6px 10px; gap: 6px; }
  .squad-card .player-photo { width: 50px; height: 50px; }
  .squad-card strong { font-size: 12px; }
  .squad-num { top: 6px; left: 8px; font-size: 13px; }
  .staff-list { grid-template-columns: 1fr; }
}
/* Times and scores in normal (not bold) type */
.fixture-center strong, .fixture-center .is-time, .next-match-score, .next-match-time, .px-score, .match-panel .next-match-score, .match-panel .next-match-time, .next-match .next-match-score.next-match-time { font-weight: 500; }
/* Group · tournament on one line, shrinking to fit */
.next-match-meta .nm-one { display: flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: clamp(9px, 2.6vw, 13px); }
.next-match-meta .nm-one .icon { flex: none; }
.match-panel > * { min-width: 0; }
.next-match-meta { min-width: 0; max-width: 100%; }
@media (max-width: 640px) { .match-panel .next-match-meta .nm-one { font-size: 9.5px; gap: 3px; letter-spacing: -.01em; } .next-match-meta .nm-one .icon { width: 11px; height: 11px; } .match-panel .next-match-meta .nm-one .nm-full, .nm-one .nm-full { display: none !important; } }

/* Squad: compact rows (number, small photo, name) */
.squad-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.squad-card { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 7px 10px; border-radius: var(--r-md); text-align: left; }
.squad-card .player-photo { width: 32px; height: 32px; order: 2; }
.squad-num { position: static; order: 1; min-width: 22px; font-size: 14px; text-align: right; }
.squad-card strong { order: 3; min-width: 0; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
  .squad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .squad-card { gap: 7px; padding: 6px 8px; }
  .squad-card .player-photo { width: 28px; height: 28px; }
  .squad-num { min-width: 18px; font-size: 12px; position: static; }
  .squad-card strong { font-size: 12px; }
}.squad-card strong { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.25; }
.staff-list { gap: 6px; }
.staff-row { gap: 10px; padding: 7px 10px; border-radius: var(--r-md); }
.staff-row .player-photo { width: 32px; height: 32px; }
.staff-row strong { font-size: 13.5px; }
@media (max-width: 640px) {
  .staff-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff-row { gap: 7px; padding: 6px 8px; }
  .staff-row .player-photo { width: 28px; height: 28px; }
  .staff-row strong { font-size: 12px; line-height: 1.25; }
  .staff-row span { font-size: 11px; }
}.gk-tag { order: 4; flex: none; margin-left: auto; padding: 1px 6px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--warning) 18%, transparent); color: var(--warning); font-size: 10px; font-weight: 800; letter-spacing: .04em; }
/* Coach gets the first line of the staff list on its own */
.staff-row.is-coach { grid-column: 1 / -1; }
.staff-list.coach-first { margin-bottom: 8px; }

/* Team page: squad and staff each in one card, two columns, simple rows */
.team-panel { max-width: 820px; padding: 6px 14px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.team-panel .squad-grid, .team-panel .staff-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; max-width: none; }
.team-panel .squad-card, .team-panel .staff-row { padding: 8px 2px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; }
.team-panel .staff-list.coach-first { margin: 0; }
.team-panel .staff-row.is-coach { grid-column: 1 / -1; }
.team-panel .staff-row > div { display: flex; flex-direction: column; }
.team-panel .staff-row span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.team-panel > :last-child > :nth-last-child(-n+2), .team-panel .staff-list:last-child > :nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 640px) {
  .team-panel { padding: 4px 10px; }
  .team-panel .squad-grid, .team-panel .staff-list { gap: 0 10px; }
  .team-panel .squad-card, .team-panel .staff-row { padding: 7px 0; }
}.team-panel + .team-panel { margin-top: 10px; }
.team-panel .panel-title { padding: 8px 2px 6px; border-bottom: 1px solid var(--border); color: var(--text-2); font: 700 12px/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; }
.coach-panel .staff-row { border-bottom: 0; }
.squad-name { order: 3; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.gk-label { color: var(--brand-text); font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
/* Smaller role labels (Coach, Goalkeeper, Manager, Official) */
.team-panel .staff-row span, .gk-label { font-size: 9px; letter-spacing: .06em; }
/* Group filter chips: smaller, one line (slides sideways only if it really can't fit) */
.chip-group { flex-wrap: nowrap; gap: 5px; overflow-x: auto; scrollbar-width: none; }
.chip-group::-webkit-scrollbar { display: none; }
.chip-group .chip { flex: none; height: 28px; padding: 0 10px; font-size: 12px; }
@media (max-width: 640px) {
  .chip-group { gap: 4px; }
  .chip-group .chip { height: 26px; padding: 0 8px; font-size: 11px; }
  /* Standings: smaller text and team logos */
  .standings-table { font-size: 12.5px; }
  .standings-table th { padding: 8px 6px; font-size: 11px; }
  .standings-table td { padding: 8px 6px; }
  .standings-table .team-logo { width: 24px; height: 24px; font-size: 9px; }
}/* Standings: points column in brand blue */
.standings-table th:last-child, .standings-table td:last-child { color: var(--brand); }
.standings-table td:last-child { font-weight: 800; }
.awards-soon { display: grid; justify-items: center; gap: 6px; }
.awards-soon .icon { width: 30px; height: 30px; color: var(--gold); }
.awards-soon strong { color: var(--text); font-size: 15px; }
/* Top scorers heading with a small Score Predictor button on the right */
.ts-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.ts-head > div { display: grid; gap: 4px; }
.ts-head .eyebrow { margin: 0; font-size: 15px; }
.ts-link { font-size: 13px; }
.ts-pill { display: inline-flex; flex: none; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border: 1px solid color-mix(in srgb, var(--brand) 55%, var(--border)); border-radius: var(--r-pill); background: var(--brand-soft); color: var(--brand-text); font-size: 12px; font-weight: 700; white-space: nowrap; }
.ts-pill .icon { width: 14px; height: 14px; }
.ts-pill:hover { background: var(--brand); color: #fff; }.ts-head { align-items: stretch; }
.ts-pill { height: auto; gap: 7px; padding: 4px 12px 4px 10px; border-radius: var(--r-md); line-height: 1.15; }
.ts-pill .icon { width: 18px; height: 18px; }
.scorers-more { margin-top: 10px; color: var(--text-2); font-size: 13px; text-align: center; }
.scorers-table td:first-child, .scorers-table th:first-child { width: 40px; text-align: center; color: var(--text-3); }
.scorers-table td:last-child, .scorers-table th:last-child { width: 60px; text-align: center; color: var(--brand); font-weight: 800; }
.scorers-team { display: inline-flex; align-items: center; gap: 6px; }@media (max-width: 640px) { .scorers-table { font-size: 12.5px; } .scorers-table td, .scorers-table th { padding: 8px 6px; } .scorers-table .team-logo { width: 20px; height: 20px; font-size: 8px; } .scorers-team { gap: 5px; } }
/* Top scorers: leader card + one card listing the next scorers */
.scorer-grid.has-list { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.scorer-list { display: flex; flex-direction: column; min-width: 0; padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.scorer-row { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 0; border-bottom: 1px solid var(--border); }
.scorer-row .scorer-rank { position: static; flex: none; width: 22px; height: 22px; font-size: 11px; }
.scorer-row .player-photo { width: 34px; height: 34px; }
.scorer-row-main { display: grid; flex: 1 1 auto; gap: 2px; min-width: 0; }
.scorer-row-main strong { overflow: hidden; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.scorer-row-main span { display: flex; align-items: center; gap: 5px; overflow: hidden; color: var(--text-3); font-size: 12px; white-space: nowrap; }
.scorer-row-main .team-logo-sm { width: 18px; height: 18px; font-size: 7px; }
.scorer-row-goals { display: inline-flex; flex: none; align-items: baseline; gap: 4px; color: var(--brand-text); font-size: 11px; font-weight: 600; }
.scorer-row-goals b { color: var(--text); font-size: 17px; font-weight: 600; }
.scorer-list-all { justify-content: center; margin-top: auto; padding: 8px 0 4px; font-size: 12.5px; }
.scorer-list-empty { margin: auto; color: var(--text-3); font-size: 13px; }
@media (max-width: 640px) {
  .scorer-grid.has-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 8px; }
  .scorer-list { padding: 2px 8px; }
  .scorer-row { gap: 7px; padding: 6px 0; }
  .scorer-row .player-photo { width: 26px; height: 26px; }
  .scorer-row .scorer-rank { width: 18px; height: 18px; font-size: 10px; }
  .scorer-row-main strong { font-size: 12px; }
  .scorer-row-main span { font-size: 10.5px; }
  .scorer-row-goals b { font-size: 15px; }
  .scorer-row-goals { font-size: 10px; }
}/* Smaller player names in Top scorers */
.scorer-row-main strong { font-size: 12.5px; font-weight: 600; }
.scorer-row-main span { font-size: 11px; }
.scorer-card strong { font-size: 14px; }
@media (max-width: 640px) { .scorer-row-main strong { font-size: 11px; } .scorer-row-main span { font-size: 9.5px; } .scorer-card strong { font-size: 11px; } .scorer-card .scorer-team span { font-size: 10px; } }
/* Thin line between the two columns of players / staff */
.team-panel .squad-grid, .team-panel .staff-list:not(.coach-first) { background: linear-gradient(var(--border), var(--border)) center / 1px 100% no-repeat; }

/* Live minute under the score */
.fixture-center .fixture-clock { color: var(--danger, #ef4444); font-size: 13px; font-weight: 700; line-height: 1; }

.score-stack .fixture-clock { color: var(--danger); font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; }
.fixture-center .fixture-clock { white-space: nowrap; font-size: 12px; }

.scorers-all { display: flex; justify-content: center; margin-top: 12px; font-size: 13px; }

/* Group standings: top 2 go through to the semi-finals */
.standings-table tr.is-qualify td { background: color-mix(in srgb, var(--brand) 9%, var(--surface)); }
.standings-table tr.is-qualify:hover td { background: color-mix(in srgb, var(--brand) 15%, var(--surface)); }
.standings-table tr.is-qualify td:first-child { box-shadow: inset 3px 0 var(--brand); }
.standings-table tr.is-cut td { border-bottom: 1px dashed color-mix(in srgb, var(--brand) 60%, transparent); }
.rank.is-q { color: #fff; background: var(--brand); box-shadow: 0 2px 8px color-mix(in srgb, var(--brand) 40%, transparent); }
.q-legend { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--text-2); font-size: 12.5px; }
.q-swatch { flex: none; width: 14px; height: 14px; border-radius: 4px; background: color-mix(in srgb, var(--brand) 25%, var(--surface)); box-shadow: inset 3px 0 var(--brand); }
/* Compact standings on phones: fits the screen without scrolling sideways */
@media (max-width: 640px) {
  .standings-table { min-width: 0; width: 100%; font-size: 11.5px; }
  .standings-table .col-rank { width: 30px; }
  .standings-table .col-stat { width: 27px; }
  .standings-table th { padding: 7px 2px; font-size: 10px; }
  .standings-table td { padding: 7px 2px; }
  .standings-table th:nth-child(2), .standings-table td:nth-child(2) { left: 30px; padding-left: 6px; }
  .standings-table .team-logo { width: 20px; height: 20px; font-size: 8px; }
  .standings-table .table-team { gap: 6px; min-width: 0; }
  .standings-table .table-team > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .standings-table .rank { width: 20px; height: 20px; font-size: 11px; border-radius: 6px; }
}
/* Tournament Teams tab: small cards, logo over name */
.team-grid-sm { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.team-grid-sm .team-chip { flex-direction: column; justify-content: center; gap: 8px; padding: 14px 8px 12px; text-align: center; font-size: 13px; line-height: 1.25; transition: border-color .2s, transform .2s var(--ease); }
.team-grid-sm .team-chip:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.team-grid-sm .team-logo { width: 44px; height: 44px; }
@media (max-width: 640px) { .team-grid-sm { grid-template-columns: repeat(3, minmax(0, 1fr)); } .team-grid-sm .team-chip { padding: 12px 6px 10px; font-size: 11.5px; } .team-grid-sm .team-logo { width: 38px; height: 38px; } }
/* Man of the Match line: smaller name, then shirt number and team */
.fixture-motm { gap: 6px; }
.fixture-motm strong { font-size: 12px; font-weight: 600; }
.fixture-motm .motm-meta { color: var(--text-3); font-size: 11px; }
@media (max-width: 640px) { .fixture-motm strong { font-size: 11.5px; } .fixture-motm .motm-meta { font-size: 10.5px; } .fixture-motm .player-photo { width: 22px; height: 22px; } }
/* Team page: Facebook / Instagram buttons */
.team-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.team-social { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: 12.5px; font-weight: 600; transition: border-color .2s, background .2s; }
.team-social .icon { width: 16px; height: 16px; }
.team-social.is-facebook .icon { color: #1877f2; }
.team-social.is-instagram .icon { color: #e1306c; }
.team-social:hover { border-color: var(--border-strong); background: var(--surface-3); }
/* Fixture filters: equal-width buttons on one line */
.fixtures-scope .chip-group { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; overflow: visible; }
.fixtures-scope .chip-group .chip { width: 100%; min-width: 0; padding: 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .fixtures-scope .chip-group { gap: 4px; } .fixtures-scope .chip-group .chip { padding: 0 2px; font-size: 11px; } }
/* Tournaments page: modern cards with status, glow behind the logo and a footer line */
.t-group { margin: 6px 0 12px; }
.t-group:not(:first-child) { margin-top: 28px; }
.t-tile { position: relative; overflow: hidden; gap: 5px; padding: 34px 14px 0; isolation: isolate; }
.t-tile::before { content: ""; position: absolute; inset: 0 0 auto; height: 110px; z-index: -1; background: radial-gradient(120px 90px at 50% 0%, color-mix(in srgb, var(--tile, var(--brand)) 30%, transparent), transparent 75%); }
.t-tile-logo { box-shadow: 0 0 0 4px color-mix(in srgb, var(--tile, var(--brand)) 20%, transparent), 0 8px 20px rgba(0, 0, 0, .35); }
.t-tile strong { margin-top: 4px; }
.t-tile > .t-tile-meta { color: var(--text-3); font-size: 12px; }
.t-tile > .t-tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; align-self: stretch; margin: auto -14px 0; padding: 10px 14px; border-top: 1px solid var(--border); color: var(--text-2); font-size: 11.5px; font-weight: 600; }
.t-tile { padding-bottom: 0; }
.t-tile strong + .t-tile-foot, .t-tile .t-tile-meta + .t-tile-foot { margin-top: 12px; }
.t-tile-foot .icon { flex: none; width: 15px; height: 15px; color: var(--text-3); transition: transform .2s var(--ease), color .2s; }
.t-tile:hover .t-tile-foot .icon { color: var(--brand); transform: translateX(3px); }
.t-pill { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: var(--r-pill); font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.t-pill.is-live { color: var(--success); background: color-mix(in srgb, var(--success) 16%, transparent); }
.t-pill.is-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); animation: pulse 1.6s infinite; }
.t-pill.is-soon { color: var(--brand); background: color-mix(in srgb, var(--brand) 16%, transparent); }
.t-pill.is-past { color: var(--text-3); background: var(--surface-3); }
.t-tile.is-active { border-color: color-mix(in srgb, var(--success) 40%, var(--border)); }
.t-tile.is-past .t-tile-logo { filter: grayscale(.5); opacity: .85; }
@media (max-width: 640px) { .t-tile { padding: 32px 10px 0; } .t-tile > .t-tile-foot { margin: auto -10px 0; padding: 9px 10px; font-size: 10.5px; } .t-pill { top: 8px; left: 8px; } }
.t-tile { padding-top: 40px; }
.t-tile-foot > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .t-tile { padding-top: 38px; } }
/* Tournament cards: bigger logo, no footer line */
.t-tile { padding-bottom: 18px; }
.t-tile .t-tile-logo { width: 88px; height: 88px; margin-bottom: 8px; }
.t-tile .t-tile-logo .icon { width: 38px; height: 38px; }
.t-tile .t-tile-logo img { padding: 6px; }
.t-tile::before { height: 140px; background: radial-gradient(150px 110px at 50% 10%, color-mix(in srgb, var(--tile, var(--brand)) 30%, transparent), transparent 75%); }
@media (max-width: 640px) { .t-tile { padding-bottom: 16px; } .t-tile .t-tile-logo { width: 76px; height: 76px; } .t-tile .t-tile-logo .icon { width: 32px; height: 32px; } }
/* Tournament years: small cards, 3 in a row */
.edition-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 720px; }
.edition-card { border-radius: var(--r-md); }
.edition-body { gap: 3px; padding: 9px 10px 10px; }
.edition-body .edition-title { font-size: 13px; line-height: 1.25; }
.edition-body p { gap: 5px; font-size: 11.5px; line-height: 1.3; }
.edition-body .icon { width: 13px; height: 13px; }
.edition-placeholder .num { font-size: 28px; }
.edition-badge { top: 6px; left: 6px; }
.edition-badge .badge { height: 20px; padding: 0 7px; font-size: 10px; }
@media (max-width: 640px) {
  .edition-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .edition-body { padding: 7px 7px 8px; }
  .edition-body .edition-title { font-size: 11.5px; }
  .edition-body p { font-size: 10px; }
  .edition-body .icon { width: 11px; height: 11px; }
  .edition-placeholder .num { font-size: 22px; }
  .edition-badge .badge { height: 17px; padding: 0 5px; font-size: 9px; }
}
/* Tournament year: row of small team logos above the tabs (scrolls sideways) */
.teams-strip { display: flex; gap: 6px; margin: 0 0 16px; padding: 10px 8px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); scrollbar-width: none; }
.teams-strip::-webkit-scrollbar { display: none; }
.teams-strip-item { flex: 0 0 72px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 2px; border-radius: var(--r-md); color: var(--text-2); font-size: 10.5px; font-weight: 600; line-height: 1.2; text-align: center; transition: background .2s, color .2s; }
.teams-strip-item:hover { background: var(--surface-2); color: var(--text); }
.teams-strip-item .team-logo { width: 42px; height: 42px; transition: transform .2s var(--ease); }
.teams-strip-item:hover .team-logo { transform: scale(1.08); }
.teams-strip-item span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) { .teams-strip-item { flex-basis: 64px; font-size: 10px; } .teams-strip-item .team-logo { width: 38px; height: 38px; } }
/* Tournament year header: organiser and dates side by side (wrap on small screens) */
.page-sub:has(.sub-item) { flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.page-sub .sub-item { display: inline-flex; align-items: flex-start; gap: 6px; }
/* Teams by group, side by side */
.teams-groups { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.teams-group { min-width: 0; padding: 10px 8px 8px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.teams-group h4 { display: flex; align-items: center; gap: 6px; margin: 0 4px 8px; color: var(--text-3); font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: .08em; text-transform: uppercase; }
.teams-group h4 span { min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--text-2); font-size: 10px; line-height: 18px; letter-spacing: 0; text-align: center; }
.teams-group-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 4px; }
.teams-group-logos .teams-strip-item { flex: none; }
@media (max-width: 640px) { .teams-groups { gap: 8px; } .teams-group { padding: 8px 4px 6px; } .teams-group-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; } .teams-group-logos .teams-strip-item { font-size: 9px; gap: 4px; } .teams-group-logos .team-logo { width: 34px; height: 34px; } }
/* Team logos in the group boxes: a little smaller */
.teams-group-logos { grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); }
.teams-group-logos .teams-strip-item { gap: 4px; font-size: 9.5px; }
.teams-group-logos .team-logo { width: 34px; height: 34px; }
@media (max-width: 640px) { .teams-group-logos .teams-strip-item { gap: 3px; font-size: 8.5px; } .teams-group-logos .team-logo { width: 28px; height: 28px; } }
@media (max-width: 640px) { .teams-group-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* One line per group: label on the left, that group's logos in a row */
.teams-groups { gap: 8px; }
.teams-group { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.teams-group h4 { flex: none; flex-direction: column; align-items: flex-start; gap: 5px; width: 62px; margin: 0; }
.teams-group-logos { flex: 1; min-width: 0; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); }
@media (max-width: 640px) { .teams-group { gap: 4px; padding: 6px 6px; } .teams-group h4 { width: 50px; font-size: 9.5px; } .teams-group-logos { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
/* Score Predictor: someone's predictions in a pop-up sheet with short rows */
body.pxs-open { overflow: hidden; }
.pxs-backdrop { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; background: rgba(2, 6, 18, .66); backdrop-filter: blur(3px); animation: pxs-fade .2s ease; }
.pxs-sheet { display: flex; flex-direction: column; width: 100%; max-width: 560px; max-height: 86vh; max-height: 86dvh; padding: 14px 14px 0; border: 1px solid var(--border); border-bottom: 0; border-radius: 20px 20px 0 0; background: var(--surface); box-shadow: 0 -12px 40px rgba(0, 0, 0, .45); animation: pxs-up .25s var(--ease); }
.pxs-sheet::before { content: ""; align-self: center; width: 40px; height: 4px; margin: -4px 0 10px; border-radius: 4px; background: var(--border-strong); }
.pxs-head { display: flex; align-items: center; gap: 10px; }
.pxs-title { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pxs-title strong { overflow: hidden; font: 800 16px/1.2 var(--font-heading); text-overflow: ellipsis; white-space: nowrap; }
.pxs-title span { color: var(--text-3); font-size: 12px; }
.pxs-close { flex: none; width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface-2); color: var(--text-2); font-size: 14px; cursor: pointer; }
.pxs-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0 10px; }
.pxs-stats div { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: var(--r-md); background: var(--surface-2); }
.pxs-stats b { font-size: 18px; font-weight: 800; }
.pxs-stats span { color: var(--text-3); font-size: 10.5px; }
.pxs-cols, .pxs-row { display: grid; grid-template-columns: minmax(0, 1fr) 46px 44px; align-items: center; gap: 8px; }
.pxs-cols { padding: 0 4px 6px; border-bottom: 1px solid var(--border); color: var(--text-3); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pxs-cols span:not(:first-child) { text-align: center; }
.pxs-list { overflow-y: auto; padding-bottom: max(14px, env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch; }
.pxs-row { padding: 8px 4px; border-bottom: 1px solid var(--border); font-size: 12px; }
.pxs-match { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto minmax(0, 1fr) 20px; align-items: center; gap: 5px; min-width: 0; }
.pxs-match .team-logo { width: 20px; height: 20px; font-size: 7px; }
.pxs-match .pxs-name { overflow: hidden; color: var(--text-2); text-overflow: ellipsis; white-space: nowrap; }
.pxs-match .pxs-name:first-of-type { text-align: right; }
.pxs-match b { padding: 2px 6px; border-radius: 6px; background: var(--surface-2); font-size: 12px; white-space: nowrap; }
.pxs-guess { text-align: center; font-weight: 700; }
.pxs-row .px-pts { min-width: 0; padding: 2px 4px; font-size: 11.5px; }
.px-pts-wait { color: var(--text-3); background: var(--surface-2); }
@keyframes pxs-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pxs-fade { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 700px) { .pxs-backdrop { align-items: center; } .pxs-sheet { border-bottom: 1px solid var(--border); border-radius: 20px; padding-bottom: 6px; } .pxs-sheet::before { display: none; } }
/* Leaderboard: guess for the next match, right of Points */
.px-next-note { display: flex; align-items: center; gap: 6px; margin: -2px 0 10px; color: var(--text-2); font-size: 12.5px; }
.px-next-note .icon { flex: none; width: 15px; height: 15px; color: var(--brand); }
.px-next-note b { color: var(--text); }
.fx-board th:last-child, .fx-board .px-next-cell { text-align: center; }
.fx-board.has-next th:nth-last-child(2), .fx-board.has-next td:nth-last-child(2) { text-align: center; }
.px-next-guess { display: inline-block; min-width: 40px; padding: 3px 7px; border-radius: 8px; background: color-mix(in srgb, var(--brand) 16%, var(--surface-2)); color: var(--text); font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.px-next-yes { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.px-next-yes .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.px-next-no { color: var(--text-3); }
@media (max-width: 640px) { .px-next-guess { min-width: 34px; padding: 2px 5px; font-size: 11.5px; } }
/* Leaderboard with the Next column: fixed narrow number columns, names cut with … */
.fx-board.has-next { table-layout: fixed; }
.fx-board.has-next th:nth-child(1) { width: 36px; }
.fx-board.has-next th:nth-child(3) { width: 52px; }
.fx-board.has-next th:nth-child(4) { width: 58px; }
.fx-board.has-next th:nth-child(5) { width: 58px; }
.fx-board.has-next th, .fx-board.has-next td { padding: 10px 6px; }
.fx-board.has-next th:nth-child(3), .fx-board.has-next td:nth-child(3) { text-align: center; }
.fx-board.has-next .px-who { min-width: 0; }
.fx-board.has-next .px-who > div { min-width: 0; }
.fx-board.has-next .px-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
  .fx-board.has-next { font-size: 12.5px; }
  .fx-board.has-next th { font-size: 10.5px; }
  .fx-board.has-next th:nth-child(1) { width: 26px; }
  .fx-board.has-next th:nth-child(3) { width: 40px; }
  .fx-board.has-next th:nth-child(4) { width: 46px; }
  .fx-board.has-next th:nth-child(5) { width: 48px; }
  .fx-board.has-next th, .fx-board.has-next td { padding: 9px 3px; }
  .fx-board.has-next td:first-child { width: auto; text-align: center; }
  .fx-board.has-next .px-who { gap: 6px; }
  .fx-board.has-next .px-avatar { width: 30px; height: 30px; flex: none; font-size: 11px; }
  .fx-board.has-next td span { font-size: 10.5px; }
}
/* Leaderboard: a little smaller text */
.fx-board { font-size: 13px; }
.fx-board th { font-size: 11px; }
.fx-board td strong { font-size: 13px; }
.fx-board td span { font-size: 11px; }
.px-next-note { font-size: 11.5px; }
@media (max-width: 640px) {
  .fx-board, .fx-board.has-next { font-size: 11.5px; }
  .fx-board th, .fx-board.has-next th { font-size: 9.5px; }
  .fx-board td strong { font-size: 12px; }
  .fx-board td span, .fx-board.has-next td span { font-size: 9.5px; }
  .px-next-guess { font-size: 10.5px; }
  .px-next-note { font-size: 11px; }
}
/* My predictions: a little smaller */
.fx-summary { gap: 8px; }
.fx-summary > * { padding: 10px 12px; }
.fx-summary-team strong { font-size: 15px; }
.fx-summary-team span, .fx-stat span { font-size: 11px; }
.fx-stat b { font-size: 18px; }
.fx-h2 { margin: 22px 0 10px; font-size: 16px; }
.px-day { margin: 14px 0 6px; font-size: 12px; }
.px-list { gap: 8px; }
.px-card { gap: 6px 8px; padding: 10px 10px 8px; }
.px-team { gap: 4px; }
.px-team .team-logo { width: 40px; height: 40px; }
.px-team strong { font-size: 12.5px; }
.px-in { width: 44px; height: 44px; font-size: 20px; }
.px-score { font-size: 22px; }
.px-foot { margin-top: 2px; padding-top: 6px; font-size: 11.5px; }
.px-pts { font-size: 12px; padding: 1px 8px; }
.px-crowd-title { font-size: 11px; }
.px-crowd-legend { font-size: 10.5px; }
@media (max-width: 640px) {
  .fx-summary-team strong { font-size: 14px; }
  .fx-stat b { font-size: 16px; }
  .fx-summary-team span, .fx-stat span { font-size: 10px; }
  .px-team .team-logo { width: 34px; height: 34px; }
  .px-team strong { font-size: 11.5px; }
  .px-in { width: 42px; height: 42px; font-size: 18px; }
  .px-score { font-size: 20px; }
  .px-foot { font-size: 10.5px; }
}
#px-root .fx-note { font-size: 12.5px; }
.fx-summary-team .px-avatar-lg { width: 48px; height: 48px; font-size: 15px; }
.px-mid .badge { height: 22px; font-size: 11px; }
@media (max-width: 640px) { #px-root .fx-note { font-size: 12px; } .fx-summary-team .px-avatar-lg { width: 42px; height: 42px; } }
/* Score Predictor Results tab: one card with short rows */
.px-results-card { padding: 10px 10px 2px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.px-results-card .pxs-row:last-child { border-bottom: 0; }
#px-root > .pxs-stats { margin-top: 0; }
.px-results-key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 10px; font-size: 11px; }
.px-results-key .px-pts { min-width: 0; padding: 1px 6px; font-size: 10.5px; }
@media (max-width: 640px) {
  #px-root > .tab-bar .tab { padding-left: 4px; padding-right: 4px; font-size: 12px; }
  .px-results-card { padding: 8px 6px 2px; }
  .px-results-card .pxs-cols, .px-results-card .pxs-row { grid-template-columns: minmax(0, 1fr) 34px 32px; gap: 4px; }
  .px-results-card .pxs-row { padding: 7px 2px; font-size: 11px; }
  .px-results-card .pxs-match { grid-template-columns: 16px minmax(0, 1fr) auto minmax(0, 1fr) 16px; gap: 3px; }
  .px-results-card .pxs-match .team-logo { width: 16px; height: 16px; }
  .px-results-card .pxs-match b { padding: 1px 4px; font-size: 11px; }
  .px-results-card .px-pts { font-size: 10.5px; padding: 1px 2px; }
}
/* Tournaments page: 3 cards in a row on phones */
@media (max-width: 640px) {
  .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .t-tile { padding: 30px 6px 12px; gap: 3px; border-radius: var(--r-md); }
  .t-tile .t-tile-logo { width: 54px; height: 54px; margin-bottom: 4px; }
  .t-tile .t-tile-logo .icon { width: 24px; height: 24px; }
  .t-tile strong { font-size: 11px; line-height: 1.25; }
  .t-tile > .t-tile-meta { font-size: 9.5px; }
  .t-pill { top: 6px; left: 6px; height: 17px; padding: 0 6px; font-size: 8.5px; }
  .t-pill.is-live .dot { width: 5px; height: 5px; }
}

/* Footer credit */
.footer-credit { color: var(--text-3); }
.footer-credit strong { color: var(--text-2); font-weight: 600; }

.footer-credit::before { content: " · "; }
@media (max-width: 640px) { .footer-credit { display: block; margin-top: 3px; } .footer-credit::before { content: none; } .footer-bottom { align-items: flex-start; } }

.footer-credit { font-size: 11px; }
@media (max-width: 640px) { .footer-credit { font-size: 10.5px; } }

.px-forgot-done { text-align: center; }
.px-forgot-done .icon-tile { margin: 0 auto 10px; }

.px-forgot-link { align-self: flex-end; margin-top: 8px; font-size: 13px; }
.form-field:has(.px-forgot-link) { display: flex; flex-direction: column; }

/* News page on wider screens: big lead story + grid of cards */
@media (min-width: 700px) {
  .nl-list { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .nl-card.is-big { grid-column: 1 / -1; }
  .nl-card:not(.is-big) { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .nl-card:not(.is-big) .nl-media { order: 0; aspect-ratio: 16 / 9; }
  .nl-card:not(.is-big) .nl-body { padding: 12px 14px 14px; }
}
@media (min-width: 1000px) {
  .nl-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .nl-card.is-big { grid-column: span 2; grid-row: span 2; grid-template-rows: 1fr auto; }
  .nl-card.is-big .nl-media { aspect-ratio: auto; min-height: 340px; }
  .nl-card.is-big .nl-body { padding: 20px 24px 22px; }
  .nl-card.is-big h3 { font-size: 26px; }
  .nl-card.is-big h3[lang="dv"] { font-size: 28px; }
}
/* Same full page width on every page in a computer browser (only article text stays narrow for easy reading) */
@media (min-width: 900px) {
  .fx, .px-poster, .team-tourney, .squad-grid, .staff-list, .team-hero + .team-tourney, .fixture-list, .team-panel { max-width: none; }
  .edition-grid { max-width: none; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .fixture-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
  .px-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .squad-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (min-width: 900px) { .teams-groups[style*="--cols:1"]:has(.teams-group + .teams-group) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Clubs & Teams: small team cards, grouped Men / Women */
.club-group { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; }
.club-group:not(:first-child) { margin-top: 28px; }
.club-group span { min-width: 22px; height: 20px; padding: 0 7px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--text-2); font-size: 11px; line-height: 20px; letter-spacing: 0; text-align: center; }
.club-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.club-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px 12px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); text-align: center; transition: border-color .2s, transform .2s var(--ease); }
.club-tile:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.club-tile .team-logo { width: 52px; height: 52px; }
.club-tile strong { display: -webkit-box; overflow: hidden; font-size: 13px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.club-tile > span:last-child { color: var(--text-3); font-size: 11px; }
.club-tile-cup { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 2px; color: var(--gold); font-size: 11px; font-weight: 800; }
.club-tile-cup .icon { width: 15px; height: 15px; }
@media (max-width: 640px) { .club-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .club-tile { padding: 14px 4px 10px; border-radius: var(--r-md); } .club-tile .team-logo { width: 42px; height: 42px; } .club-tile strong { font-size: 11.5px; } .club-tile > span:last-child { font-size: 10px; } }
/* Champions / Runner-up stage photo at the top of the award card */
.award-card.has-photo { overflow: hidden; padding-top: 0; }
.award-photo { display: block; margin: 0 -18px 4px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.award-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.award-photo:hover img { transform: scale(1.03); }
/* Champions photo: fades into the blue card, thin gold line on top */
.award-champion.has-photo { box-shadow: inset 0 3px 0 var(--gold), 0 12px 32px rgb(30 58 138 / .35); }
.award-champion .award-photo { position: relative; margin-bottom: -18px; }
.award-champion .award-photo::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(180deg, transparent, #1f3f99); pointer-events: none; }
.award-champion.has-photo .award-label, .award-champion.has-photo .award-team { position: relative; z-index: 1; }
/* Runner-up photo: small, beside the team name */
.award-runner-up.has-photo { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 14px; row-gap: 6px; align-items: start; padding: 12px; }
.award-runner-up .award-photo { grid-row: 1 / span 2; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--r-md); box-shadow: 0 0 0 2px color-mix(in srgb, var(--silver) 55%, transparent); }
.award-runner-up.has-photo .award-label { align-self: end; margin-top: 4px; }
.award-runner-up.has-photo .award-team { align-self: start; gap: 8px; }
.award-runner-up.has-photo .award-team .team-logo { width: 34px; height: 34px; }
.award-runner-up.has-photo .award-value { font-size: 18px; }
@media (max-width: 640px) { .award-runner-up.has-photo { grid-template-columns: 96px minmax(0, 1fr); column-gap: 10px; } }
/* King of the Tournament first in Best players */
.best-five li.is-king .best-rank .icon { width: 15px; height: 15px; }
.best-king { margin-left: 4px; padding: 1px 6px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); font-size: 10px; font-weight: 700; vertical-align: 2px; }
.best-king { display: inline-flex; align-items: center; gap: 3px; }
.best-king .icon { width: 11px; height: 11px; }

/* Runner-up and Fair Play Team side by side */
.award-grid .award-fairplay { grid-column: span 3; }
@media (max-width: 900px) { .award-grid .award-runner-up, .award-grid .award-fairplay { grid-column: span 1; } }
@media (max-width: 640px) {
  .award-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .award-grid .award-card { grid-column: 1 / -1; }
  .award-grid .award-runner-up, .award-grid .award-fairplay { grid-column: span 1; min-width: 0; padding: 12px; gap: 8px; }
  .award-grid .award-runner-up .award-label, .award-grid .award-fairplay .award-label { font-size: 10px; }
  .award-grid .award-runner-up .award-team, .award-grid .award-fairplay .award-team { flex-direction: column; align-items: flex-start; gap: 6px; }
  .award-grid .award-runner-up .team-logo, .award-grid .award-fairplay .team-logo { width: 38px; height: 38px; }
  .award-grid .award-runner-up .award-value, .award-grid .award-fairplay .award-value { font-size: 16px; }
  .award-runner-up.has-photo { display: flex; padding-top: 0; }
  .award-runner-up.has-photo .award-photo { margin: 0 -12px 2px; border-radius: 0; box-shadow: none; aspect-ratio: 16 / 10; }
}
@media (min-width: 901px) { .award-grid .award-champion { grid-column: 1 / -1; } .award-champion .award-photo { aspect-ratio: 21 / 8; } }

/* Fair Play Team + Fair Play Player stacked beside Runner-up */
.award-stack { display: grid; gap: 12px; min-width: 0; grid-column: span 3; }
.award-stack .award-card { grid-column: auto; }
.award-stack .award-person { gap: 10px; }
.award-stack .award-person .player-photo { width: 44px; height: 44px; }
@media (max-width: 900px) { .award-grid .award-stack { grid-column: span 1; } }
@media (max-width: 640px) {
  .award-grid .award-stack { grid-column: span 1; gap: 8px; }
  .award-stack .award-card { padding: 10px; gap: 6px; }
  .award-stack .award-label { font-size: 9.5px; letter-spacing: .04em; }
  .award-stack .award-team { flex-direction: row; align-items: center; gap: 8px; }
  .award-stack .award-team .team-logo { width: 30px; height: 30px; }
  .award-stack .award-value { font-size: 14px; }
  .award-stack .award-person { flex-direction: column; align-items: flex-start; }
  .award-stack .award-person .player-photo { width: 34px; height: 34px; }
  .award-stack .award-sub { font-size: 11px; }
  .award-runner-up.has-photo .award-label { align-self: flex-start; }
}
@media (min-width: 901px) { .award-runner-up.has-photo { display: flex; flex-direction: column; padding: 0 18px 18px; } .award-runner-up.has-photo .award-photo { margin: 0 -18px 4px; border-radius: 0; box-shadow: none; aspect-ratio: 16 / 6; } .award-runner-up.has-photo .award-label { align-self: flex-start; } }

/* Runner-up + Fair Play pair: equal heights, same gaps, smaller names */
.award-stack { grid-template-rows: 1fr 1fr; align-self: stretch; padding: 0; }
.award-stack .award-card { height: 100%; justify-content: center; }
@media (max-width: 640px) {
  .award-grid .award-stack { gap: 10px; }
  .award-grid { row-gap: 10px; column-gap: 10px; }
  .award-grid .award-runner-up { padding: 0 12px 12px; gap: 8px; }
  .award-grid .award-runner-up:not(.has-photo) { padding: 12px; justify-content: center; }
  .award-runner-up .award-team { flex-direction: row; align-items: center; gap: 8px; }
  .award-runner-up .award-team .team-logo { width: 32px; height: 32px; }
  .award-grid .award-runner-up .award-value, .award-stack .award-value { font-size: 14px; line-height: 1.25; }
  .award-stack .award-card { padding: 10px 12px; gap: 6px; }
  .award-stack .award-person { flex-direction: row; align-items: center; gap: 8px; }
  .award-stack .award-person .player-photo { width: 32px; height: 32px; }
  .award-stack .award-label, .award-grid .award-runner-up .award-label { font-size: 9.5px; letter-spacing: .05em; gap: 5px; }
  .award-stack .award-label .icon, .award-grid .award-runner-up .award-label .icon { width: 13px; height: 13px; }
  .award-stack .award-sub { font-size: 10.5px; line-height: 1.3; }
}
@media (max-width: 640px) { .award-stack .award-person { flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; } .award-stack .award-label { white-space: nowrap; } }

/* Logo / photo and name on the same line in the Runner-up and Fair Play cards */
.award-grid .award-runner-up .award-team, .award-grid .award-stack .award-team { flex-direction: row; align-items: center; gap: 8px; }
.award-person-row .award-team > div { display: grid; gap: 1px; min-width: 0; }
.award-person-row .player-photo { flex: none; width: 40px; height: 40px; }
.award-person-row .award-sub { overflow: hidden; color: var(--text-3); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
  .award-grid .award-runner-up .award-team .team-logo, .award-grid .award-stack .award-team .team-logo, .award-person-row .player-photo { width: 30px; height: 30px; }
  .award-person-row .award-sub { font-size: 10px; }
}
/* King + Top Scorer, Best Coach + Most Promising: two to a line */
.award-grid > .award-person { grid-column: span 3; }
@media (max-width: 900px) { .award-grid > .award-person { grid-column: span 1; } }
@media (max-width: 640px) {
  .award-grid > .award-person { grid-column: span 1; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; min-width: 0; }
  .award-grid > .award-person .player-photo { width: 44px; height: 44px; }
  .award-grid > .award-person > div { min-width: 0; width: 100%; }
  .award-grid > .award-person .award-label { font-size: 9.5px; letter-spacing: .04em; gap: 5px; line-height: 1.3; }
  .award-grid > .award-person .award-label .icon { width: 13px; height: 13px; flex: none; }
  .award-grid > .award-person .award-value { font-size: 14px; line-height: 1.25; }
  .award-grid > .award-person .award-sub { font-size: 11px; }
}
.best-five li.is-king .best-rank { color: #1a1300; background: var(--gold); }
.best-five li.is-king .best-rank .icon { width: 15px; height: 15px; }

/* New award order: Runner-up · King, Top Scorer · Best Coach, Fair Play Team · Fair Play Player */
.award-grid > .award-person-row, .award-grid > .award-fairplay { grid-column: span 3; }
.award-grid .award-fairplay .award-team { flex-direction: row; align-items: center; gap: 10px; }
.award-grid > .award-person { justify-content: center; }
@media (max-width: 900px) { .award-grid > .award-person-row, .award-grid > .award-fairplay { grid-column: span 1; } }
@media (max-width: 640px) {
  .award-grid > .award-person-row, .award-grid > .award-fairplay { grid-column: span 1; min-width: 0; padding: 12px; gap: 8px; justify-content: center; }
  .award-grid > .award-person-row .award-label, .award-grid > .award-fairplay .award-label { font-size: 9.5px; letter-spacing: .04em; gap: 5px; white-space: nowrap; }
  .award-grid > .award-person-row .award-label .icon, .award-grid > .award-fairplay .award-label .icon { width: 13px; height: 13px; }
  .award-grid .award-fairplay .award-team { gap: 8px; }
  .award-grid .award-fairplay .team-logo { width: 30px; height: 30px; }
  .award-grid > .award-person-row .award-value, .award-grid > .award-fairplay .award-value { font-size: 14px; line-height: 1.25; }
}
/* Fair Play Team: one full-width line — label on the left, logo and name on the right */
.award-grid > .award-fairplay { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.award-grid > .award-fairplay .award-team { flex-direction: row; align-items: center; gap: 10px; min-width: 0; }
@media (max-width: 640px) { .award-grid > .award-fairplay { grid-column: 1 / -1; padding: 12px 14px; } }
/* King of the Tournament photo at the top of the King card (beside Runner-up) */
.award-person.has-photo { flex-direction: column; align-items: stretch; justify-content: flex-start; overflow: hidden; padding-top: 0; }
.award-person.has-photo .award-photo { margin: 0 -18px 4px; aspect-ratio: 16 / 6; }
.award-king.has-photo { border-color: color-mix(in srgb, var(--gold) 40%, var(--border)); }
@media (max-width: 900px) { .award-person.has-photo .award-photo { aspect-ratio: 16 / 10; } }
@media (max-width: 640px) { .award-grid > .award-person.has-photo { padding: 0 12px 12px; justify-content: flex-start; } .award-grid > .award-person.has-photo .award-photo { margin: 0 -12px 2px; aspect-ratio: 16 / 10; } }
/* Runner-up & King photos: taller, whole photo visible (nothing cut), blurred copy fills the space behind */
.award-runner-up .award-photo, .award-person .award-photo { position: relative; isolation: isolate; background: #0b1424; }
.award-runner-up .award-photo::before, .award-person .award-photo::before { content: ""; position: absolute; inset: -20px; z-index: -1; background: var(--photo) center / cover no-repeat; filter: blur(18px) brightness(.55) saturate(1.2); }
.award-runner-up .award-photo img, .award-person .award-photo img { object-fit: contain; }
.award-runner-up .award-photo::after, .award-person .award-photo::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(180deg, transparent, var(--surface)); pointer-events: none; }
.award-runner-up.has-photo .award-photo, .award-person.has-photo .award-photo { aspect-ratio: 4 / 3; }
.award-king.has-photo { background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--gold) 8%, var(--surface))); box-shadow: 0 8px 24px color-mix(in srgb, var(--gold) 12%, transparent); }
.award-king.has-photo .award-label { color: var(--gold); }
@media (max-width: 640px) {
  .award-grid .award-runner-up.has-photo .award-photo, .award-grid > .award-person.has-photo .award-photo { aspect-ratio: 4 / 5; }
}
/* Each photo at its own natural shape (whole photo, no bands); very tall photos are limited and fill with blur */
.award-grid .award-runner-up.has-photo .award-photo, .award-grid > .award-person.has-photo .award-photo { aspect-ratio: auto; max-height: 340px; }
.award-runner-up .award-photo img, .award-person .award-photo img { display: block; width: 100%; height: auto; max-height: 340px; }
.award-runner-up .award-photo::after, .award-person .award-photo::after { height: 22%; }
.award-grid .award-runner-up.has-photo, .award-grid > .award-person.has-photo { justify-content: flex-start; }
@media (min-width: 641px) {
  .award-grid .award-runner-up.has-photo .award-photo, .award-grid > .award-person.has-photo .award-photo { height: 320px; max-height: none; }
  .award-runner-up .award-photo img, .award-person .award-photo img { height: 100%; max-height: none; object-fit: contain; }
  .award-grid > .award-person:not(.has-photo) { justify-content: flex-start; }
}
.award-runner-up.has-photo, .award-person.has-photo { align-items: stretch; }
.award-runner-up.has-photo .award-photo, .award-person.has-photo .award-photo { align-self: stretch; width: auto; }

/* Runner-up and King photos: exactly the same size on phones too */
@media (max-width: 640px) {
  .award-grid .award-runner-up.has-photo .award-photo, .award-grid > .award-person.has-photo .award-photo { aspect-ratio: 4 / 3; height: auto; max-height: none; }
  .award-runner-up .award-photo img, .award-person .award-photo img { height: 100%; max-height: none; object-fit: contain; }
}
/* Smaller person award cards on phones (Top Scorer, Best Coach, Most Promising, Fair Play Player) */
@media (max-width: 640px) {
  .award-grid > .award-person:not(.has-photo) { padding: 10px 12px; gap: 6px; }
  .award-grid > .award-person:not(.has-photo) .player-photo { width: 38px; height: 38px; }
  .award-grid > .award-person:not(.has-photo) .award-value { font-size: 13.5px; }
  .award-grid > .award-person:not(.has-photo) .award-sub { font-size: 10.5px; }
}
/* Person award cards: big square photo on top, then label, name and team */
.award-grid > .award-person.has-face { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 10px; padding: 0 0 14px; overflow: hidden; }
.award-face { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: radial-gradient(70% 60% at 50% 30%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%), var(--surface-2); }
.award-face .player-photo { display: block; width: 100%; height: 100%; border-radius: 0; box-shadow: none; object-fit: cover; object-position: center 20%; }
.award-face .player-photo-sample { background-size: 62%; background-position: center 85%; opacity: .75; }
.award-face::after { content: ""; position: absolute; inset: auto 0 0; height: 35%; background: linear-gradient(180deg, transparent, var(--surface)); pointer-events: none; }
.award-person.has-face > div:last-child { padding: 0 14px; }
.award-person.has-face .award-label { margin-bottom: 4px; }
.award-person.has-face .award-value { display: block; font-size: 17px; line-height: 1.25; }
.award-person.has-face .award-sub { display: block; margin-top: 2px; }
@media (min-width: 641px) { .award-grid > .award-person.has-face { grid-column: span 2; } }
@media (max-width: 640px) {
  .award-grid > .award-person.has-face { padding: 0 0 12px; gap: 8px; }
  .award-person.has-face > div:last-child { padding: 0 12px; }
  .award-person.has-face .award-value { font-size: 14px; }
  .award-person.has-face .award-sub { font-size: 11px; }
}
.award-grid > .award-person.has-face .award-face .player-photo { width: 100%; height: 100%; margin: 0; border-radius: 0; box-shadow: none; }

.award-face .player-photo-sample { background-repeat: no-repeat; background-size: 58%; background-position: center 110%; }
@media (min-width: 641px) { .award-grid > .award-person.has-face { grid-column: span 3; } .award-face { aspect-ratio: 16 / 10; } }
@media (min-width: 641px) {
  .award-grid:has(> .award-person.has-face) { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .award-grid > .award-champion { grid-column: 1 / -1; }
  .award-grid > .award-runner-up, .award-grid > .award-person.has-photo { grid-column: span 6; }
  .award-grid > .award-person.has-face { grid-column: span 3; }
  .award-grid > .award-fairplay { grid-column: 1 / -1; }
  .award-face { aspect-ratio: 1 / 1; }
}
/* Smaller square-photo award cards */
.award-face { aspect-ratio: 4 / 3; }
.award-person.has-face .award-value { font-size: 15px; }
@media (min-width: 641px) { .award-grid > .award-person.has-face { padding-bottom: 12px; gap: 8px; } }
@media (max-width: 640px) {
  .award-grid > .award-person.has-face { padding-bottom: 10px; gap: 6px; }
  .award-person.has-face > div:last-child { padding: 0 10px; }
  .award-person.has-face .award-label { font-size: 9px; margin-bottom: 2px; }
  .award-person.has-face .award-value { font-size: 13px; }
  .award-person.has-face .award-sub { font-size: 10px; }
}
/* Phones: the 4 photo award cards in one line */
@media (max-width: 640px) {
  .award-grid:has(> .award-person.has-face) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .award-grid:has(> .award-person.has-face) > * { grid-column: 1 / -1; }
  .award-grid:has(> .award-person.has-face) > .award-runner-up, .award-grid:has(> .award-person.has-face) > .award-person.has-photo { grid-column: span 2; }
  .award-grid > .award-person.has-face { grid-column: span 1; padding: 0 0 8px; gap: 5px; border-radius: var(--r-md); }
  .award-face { aspect-ratio: 1 / 1; }
  .award-person.has-face > div:last-child { padding: 0 6px; text-align: center; }
  .award-person.has-face .award-label { display: block; font-size: 7.5px; letter-spacing: .02em; line-height: 1.25; white-space: normal; margin-bottom: 3px; }
  .award-person.has-face .award-label .icon { display: none; }
  .award-person.has-face .award-value { font-size: 10.5px; line-height: 1.2; }
  .award-person.has-face .award-sub { font-size: 8.5px; line-height: 1.2; }
}
@media (max-width: 640px) { .award-person.has-face .award-value { font-size: 9.5px; word-break: break-word; } .award-person.has-face .award-value.is-tbc { font-size: 9px; } }

/* Smaller names: award cards and Best players list */
.award-person.has-face .award-value { font-size: 13px; }
.best-five li { font-size: 13px; }
.best-name { font-size: 13px; }
.best-team { font-size: 12px; }
@media (max-width: 640px) {
  .award-person.has-face .award-value { font-size: 8.5px; }
  .award-person.has-face .award-sub { font-size: 7.5px; }
  .best-five li { gap: 10px; padding: 8px 2px; }
  .best-name { font-size: 12px; }
  .best-team { font-size: 10.5px; }
  .best-five .player-photo { width: 32px; height: 32px; }
}
@media (max-width: 640px) { .award-grid > .award-person.has-face .award-value { font-size: 9px; word-break: normal; overflow-wrap: normal; } .award-grid > .award-person.has-face .award-sub { font-size: 7.5px; } .award-grid > .award-person.has-face .award-value.is-tbc { font-size: 8.5px; } }

/* 4 small award cards: same-height label area so every name sits on one line; slightly bigger text */
@media (max-width: 640px) {
  .award-grid > .award-person.has-face { padding-bottom: 9px; }
  .award-person.has-face > div:last-child { display: flex; flex-direction: column; align-items: center; padding: 0 5px; }
  .award-grid > .award-person.has-face .award-label { display: flex; align-items: flex-end; justify-content: center; height: 2.5em; margin: 0 0 4px; font-size: 7.5px; color: var(--brand-text); text-align: center; }
  .award-grid > .award-person.has-face .award-value { display: flex; align-items: flex-start; justify-content: center; min-height: 2.5em; font-size: 10.5px; line-height: 1.2; }
  .award-grid > .award-person.has-face .award-value.is-tbc { font-size: 9.5px; color: var(--text-3); }
  .award-grid > .award-person.has-face .award-sub { margin-top: 2px; font-size: 8.5px; color: var(--text-3); }
  .award-face::after { height: 45%; }
}
/* Small award cards: each word of the name on its own line (phones) */
@media (max-width: 640px) {
  .award-grid > .award-person.has-face .award-value { flex-direction: column; align-items: center; min-height: 2.5em; }
  .award-grid > .award-person.has-face .nm-line { display: block; }
}
@media (max-width: 640px) { .award-grid > .award-person.has-face .award-label { align-items: flex-start; } }

@media (max-width: 640px) { .award-grid > .award-person.has-face .award-label { height: 2.3em; line-height: 1.15; margin: 0 0 1px; } .award-grid > .award-person.has-face > div:last-child { gap: 0; } }

/* Shirt numbers on award photos and in the Best players list */
.award-face, .award-photo { position: relative; }
.award-num { position: absolute; top: 8px; right: 8px; z-index: 2; min-width: 26px; height: 26px; padding: 0 6px; display: grid; place-items: center; border-radius: 8px; background: rgb(8 15 30 / .78); color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 0 0 1px rgb(255 255 255 / .15); backdrop-filter: blur(4px); }
.award-king .award-num { background: var(--gold); color: #1a1300; }
.best-num { color: var(--brand-text); font-size: .9em; font-weight: 800; }
@media (max-width: 640px) { .award-num { top: 5px; right: 5px; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 6px; font-size: 10px; } }
/* Score Predictor Champion (home page, in place of Next match after the final) */
.px-champ { position: relative; overflow: hidden; isolation: isolate; align-items: center; justify-content: center; gap: 10px; text-align: center; border-color: color-mix(in srgb, var(--gold) 55%, var(--border)); background: radial-gradient(90% 70% at 50% 0%, color-mix(in srgb, var(--gold) 26%, transparent), transparent 70%), linear-gradient(160deg, #1b2440, #0e1628); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 20%, transparent), 0 12px 32px color-mix(in srgb, var(--gold) 15%, transparent); }
.px-champ .award-label { justify-content: center; color: var(--gold); }
.px-champ .award-label .icon { color: var(--gold); }
.px-champ-body { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.px-champ-who { display: grid; justify-items: center; gap: 4px; }
.px-champ-who strong { color: #fff; font: 800 20px/1.2 var(--font-heading); }
.px-champ-who span { color: var(--text-2); font-size: 12.5px; }
.px-champ-who b { color: var(--gold); font-size: 15px; }
.px-champ-avatar { width: 84px !important; height: 84px !important; font-size: 26px; box-shadow: 0 0 0 3px #0e1628, 0 0 0 5px var(--gold), 0 0 24px color-mix(in srgb, var(--gold) 55%, transparent); animation: px-champ-glow 2.4s ease-in-out infinite; }
.px-champ-game { color: var(--text-3); font-size: 11.5px; }
.px-champ-wait { color: var(--text-3); font-size: 13px; }
.px-champ-confetti { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.px-champ-confetti i { position: absolute; top: -12px; left: calc(var(--i) * 5.6% + 1%); width: 7px; height: 11px; border-radius: 2px; background: hsl(calc(var(--i) * 47) 85% 60%); opacity: .9; animation: px-confetti calc(3s + var(--i) * .17s) linear calc(var(--i) * -.37s) infinite; }
.px-champ-confetti i:nth-child(3n) { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
@keyframes px-confetti { 0% { transform: translateY(0) rotate(0); } 100% { transform: translateY(330px) rotate(540deg); } }
@keyframes px-champ-glow { 0%, 100% { box-shadow: 0 0 0 3px #0e1628, 0 0 0 5px var(--gold), 0 0 16px color-mix(in srgb, var(--gold) 40%, transparent); } 50% { box-shadow: 0 0 0 3px #0e1628, 0 0 0 5px var(--gold), 0 0 30px color-mix(in srgb, var(--gold) 75%, transparent); } }
@media (prefers-reduced-motion: reduce) { .px-champ-confetti, .px-champ-avatar { animation: none; } .px-champ-confetti { display: none; } }
@media (max-width: 640px) { .px-champ { gap: 8px; padding-left: 10px; padding-right: 10px; } .px-champ .award-label { font-size: 9.5px; letter-spacing: .05em; gap: 4px; } .px-champ-avatar { width: 70px !important; height: 70px !important; } .px-champ-who strong { font-size: 16px; } .px-champ-who span { font-size: 11px; } .px-champ-game { font-size: 10px; } }

/* Shorter champion card: photo beside the name */
.px-champ { gap: 6px; padding-top: 12px; padding-bottom: 12px; justify-content: center; }
.px-champ-who { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; row-gap: 2px; justify-items: start; align-items: center; text-align: left; }
.px-champ-avatar { grid-row: 1 / span 2; width: 52px !important; height: 52px !important; font-size: 18px; }
.px-champ-who strong { font-size: 17px; align-self: end; }
.px-champ-who span { align-self: start; }
.px-champ-body { gap: 8px; flex-direction: column; align-items: center; }
.px-champ-game { margin: 0; }
@media (max-width: 640px) { .px-champ-who { grid-template-columns: 1fr; justify-items: center; text-align: center; } .px-champ-avatar { grid-row: auto; width: 48px !important; height: 48px !important; } .px-champ-who strong { font-size: 14px; } .px-champ-game { display: none; } }
/* Tournament Champions card (home page after the final): gold shine sweep + twinkling stars round the logo */
.champ-card { position: relative; overflow: hidden; isolation: isolate; border-color: color-mix(in srgb, var(--gold) 50%, var(--border)); background: radial-gradient(80% 60% at 50% 100%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%), var(--surface); }
.champ-shine { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgb(255 223 128 / .28) 48%, rgb(255 255 255 / .38) 50%, rgb(255 223 128 / .28) 52%, transparent 65%); transform: translateX(-120%); animation: champ-shine 3.2s ease-in-out infinite; }
.champ-logo { position: relative; display: inline-grid; place-items: center; flex: none; }
.champ-logo .team-logo { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--gold), 0 0 18px color-mix(in srgb, var(--gold) 50%, transparent); }
.champ-stars i { position: absolute; left: 50%; top: 50%; color: var(--gold); font-size: 11px; font-style: normal; line-height: 1; opacity: 0; transform: rotate(calc(var(--i) * 60deg)) translate(38px) rotate(calc(var(--i) * -60deg)); animation: champ-twinkle 1.8s ease-in-out calc(var(--i) * .3s) infinite; }
.champ-stars i:nth-child(even) { font-size: 8px; color: #fff3c4; }
@keyframes champ-shine { 0%, 15% { transform: translateX(-120%); } 60%, 100% { transform: translateX(120%); } }
@keyframes champ-twinkle { 0%, 100% { opacity: 0; scale: .4; } 50% { opacity: 1; scale: 1.15; } }
@media (max-width: 640px) { .champ-stars i { transform: rotate(calc(var(--i) * 60deg)) translate(30px) rotate(calc(var(--i) * -60deg)); font-size: 9px; } }
@media (prefers-reduced-motion: reduce) { .champ-shine, .champ-stars { display: none; } }
.px-champ-avatar { width: 40px !important; height: 40px !important; font-size: 14px; }
@media (max-width: 640px) { .px-champ-avatar { width: 36px !important; height: 36px !important; } }

/* Animated "WINNERS" badge on the Champions card */
.champ-winners { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 3px; }
.champ-cup { display: inline-block; font-size: 15px; line-height: 1; transform-origin: 50% 90%; animation: champ-cup 1.6s ease-in-out infinite; }
.champ-winners b { font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; background: linear-gradient(90deg, #b8860b, #ffe08a, #fff7d6, #ffe08a, #b8860b); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: champ-gold 2.2s linear infinite; }
@keyframes champ-cup { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-3px) rotate(-10deg); } 50% { transform: translateY(0) rotate(0); } 75% { transform: translateY(-3px) rotate(10deg); } }
@keyframes champ-gold { from { background-position: 200% 0; } to { background-position: 0 0; } }
@media (max-width: 640px) { .champ-card .up-body > div { display: flex; flex-direction: column; align-items: center; } .champ-winners { justify-content: center; } .champ-cup { font-size: 13px; } .champ-winners b { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { .champ-cup, .champ-winners b { animation: none; } }
.px-champ .award-label { display: block; width: 100%; text-align: center; } .px-champ .award-label .icon { display: inline-block; vertical-align: -2px; margin-right: 4px; }

.champ-logo .team-logo { box-shadow: none; }
.champ-stars { display: none; }

.px-champ-who strong { font-size: 14px; }
@media (max-width: 640px) { .px-champ-who strong { font-size: 12px; } }

/* Gold confetti falling on the tournament Champions card */
.champ-confetti i { left: calc(var(--i) * 6.2% + 1%); background: linear-gradient(135deg, #ffe08a, #d4a017); animation-duration: calc(3.4s + var(--i) * .19s); }
.champ-confetti i:nth-child(3n) { width: 5px; height: 5px; border-radius: 50%; background: #fff3c4; }
.champ-confetti i:nth-child(4n) { width: 4px; height: 9px; background: #b8860b; }
/* Predictor champion: stars floating up + light rays turning behind the photo */
.px-champ-rise { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.px-champ-rise i { position: absolute; bottom: -14px; left: calc(var(--i) * 7% + 2%); color: var(--gold); font-size: calc(8px + (var(--i) * 3) % 8 * 1px); font-style: normal; line-height: 1; opacity: 0; animation: px-rise calc(3.6s + var(--i) * .23s) ease-in calc(var(--i) * -.41s) infinite; }
.px-champ-rise i:nth-child(even) { color: #fff3c4; }
@keyframes px-rise { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; } 80% { opacity: .8; } 100% { transform: translateY(-260px) translateX(12px) scale(1.1) rotate(160deg); opacity: 0; } }
.px-champ-pic { position: relative; display: inline-grid; place-items: center; grid-row: 1 / span 2; }
.px-champ-pic .px-champ-avatar { position: relative; z-index: 1; grid-row: auto; }
.px-champ-rays { position: absolute; width: 92px; height: 92px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--gold) 45%, transparent) 0deg 10deg, transparent 10deg 30deg); -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); mask: radial-gradient(circle, #000 30%, transparent 70%); animation: px-rays 9s linear infinite; }
@keyframes px-rays { to { transform: rotate(360deg); } }
@media (max-width: 640px) { .px-champ-pic { grid-row: auto; } .px-champ-rays { width: 76px; height: 76px; } }
@media (prefers-reduced-motion: reduce) { .px-champ-rise, .px-champ-rays { display: none; } }
.champ-logo .team-logo { position: relative; z-index: 1; }
.champ-card .px-champ-rays { width: 96px; height: 96px; }
@media (max-width: 640px) { .champ-card .px-champ-rays { width: 80px; height: 80px; } }

.champ-cup { font-size: 30px; }
@media (max-width: 640px) { .champ-cup { font-size: 26px; } }

.champ-card .up-body .champ-winners .champ-cup { font-size: 30px; line-height: 1; }
@media (max-width: 640px) { .champ-card .up-body .champ-winners .champ-cup { font-size: 26px; } }

/* Joint champions: two mini cards side by side */
.px-champ.is-joint .px-champ-body { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; }
.px-champ.is-joint .px-champ-who { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 8px 10px; border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--border)); border-radius: var(--r-md); background: rgb(255 255 255 / .03); min-width: 0; flex: 1 1 0; }
.px-champ.is-joint .px-champ-pic { grid-row: auto; }
.px-champ.is-joint .px-champ-game { flex-basis: 100%; }
@media (max-width: 640px) { .px-champ.is-joint .px-champ-body { gap: 5px; } .px-champ.is-joint .px-champ-who { padding: 6px 4px; } .px-champ.is-joint .px-champ-who strong { font-size: 11px; } .px-champ.is-joint .px-champ-who span { font-size: 9.5px; } .px-champ.is-joint .px-champ-avatar { width: 30px !important; height: 30px !important; } }
/* Joint award (two top scorers): two faces side by side, both names */
.award-face-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.award-grid > .award-person.has-face .award-face-2 .player-photo { width: 100%; height: 100%; }
.award-person.is-joint .nm-line { display: block; }
.award-person.is-joint .nm-amp { display: block; color: var(--gold); font-size: .8em; line-height: 1.1; }
@media (max-width: 640px) { .award-grid > .award-person.is-joint .award-value { min-height: 0; font-size: 8.5px; } }
.award-face-2 { grid-template-rows: 100%; }
.award-face-2 .player-photo { min-height: 0; object-fit: cover; object-position: center 20%; }
.award-face-2::after { z-index: 1; }
@media (max-width: 640px) { .award-grid > .award-person.is-joint .award-value { font-size: 9px; } }

/* Home: tournament awards after a tournament (Champions, Runner-up, King, Top scorer) */
.hl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hl-tile { display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow: hidden; padding: 0 0 12px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); transition: border-color .2s, transform .2s var(--ease); }
.hl-tile:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.hl-photo { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: 6px; overflow: hidden; isolation: isolate; background: #0b1424; }
.hl-photo::before { content: ""; position: absolute; inset: -20px; z-index: -1; background: var(--photo) center / cover no-repeat; filter: blur(16px) brightness(.55); }
.hl-photo img { width: 100%; height: 100%; object-fit: contain; }
.hl-logo { background: radial-gradient(70% 60% at 50% 40%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 70%), var(--surface-2); }
.hl-faces { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; background: var(--surface-2); }
.hl-faces .player-photo { width: 100%; height: 100%; border-radius: 0; box-shadow: none; object-fit: cover; object-position: center 20%; }
.hl-label { display: flex; align-items: center; gap: 5px; padding: 0 12px; color: var(--text-3); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.hl-label .icon { flex: none; width: 13px; height: 13px; color: var(--brand-text); }
.hl-tile strong { padding: 0 12px; font: 800 15px/1.25 var(--font-heading); }
.hl-sub { padding: 0 12px; color: var(--text-3); font-size: 12px; }
.hl-tile.is-champ { border-color: color-mix(in srgb, var(--gold) 55%, var(--border)); box-shadow: 0 8px 24px color-mix(in srgb, var(--gold) 12%, transparent); }
.hl-tile.is-champ .hl-label, .hl-tile.is-champ .hl-label .icon, .hl-tile.is-king .hl-label, .hl-tile.is-king .hl-label .icon { color: var(--gold); }
@media (max-width: 900px) { .hl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 640px) { .hl-tile { padding-bottom: 10px; border-radius: var(--r-md); } .hl-label { padding: 0 10px; font-size: 9.5px; } .hl-tile strong { padding: 0 10px; font-size: 13px; } .hl-sub { padding: 0 10px; font-size: 10.5px; } }
/* Awards row: as many columns as cards (3 now that the King is in the Next match spot) */
.hl-grid { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
@media (max-width: 640px) { .hl-grid { gap: 8px; } .hl-photo { aspect-ratio: 3 / 4; } .hl-label { font-size: 8.5px; letter-spacing: .03em; } .hl-tile strong { font-size: 11.5px; } .hl-sub { font-size: 9.5px; } }
/* King of the Tournament in the Next match spot */
.king-box { padding: 0; overflow: hidden; gap: 0; border-color: color-mix(in srgb, var(--gold) 50%, var(--border)); box-shadow: 0 8px 24px color-mix(in srgb, var(--gold) 12%, transparent); }
.king-box .king-box-photo { flex: 1; aspect-ratio: auto; min-height: 150px; margin: 0; }
.king-box-face { display: grid; place-items: center; padding: 18px 0 6px; }
.king-box-face .player-photo { width: 84px; height: 84px; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--gold); }
.king-box-text { display: grid; gap: 3px; padding: 10px 14px 12px; text-align: left; }
.king-box-text .award-label, .king-box-text .award-label .icon { color: var(--gold); }
.king-box-text strong { font: 800 17px/1.25 var(--font-heading); color: var(--text); }
.king-box-text span:last-child { color: var(--text-3); font-size: 12px; }
@media (max-width: 640px) { .king-box .king-box-photo { min-height: 110px; } .king-box-text { padding: 8px 10px 10px; } .king-box-text .award-label { font-size: 9px; } .king-box-text strong { font-size: 13px; } .king-box-text span:last-child { font-size: 10px; } }
@media (min-width: 641px) { .king-box .king-box-photo { flex: none; height: 190px; min-height: 0; } }
.king-box .king-box-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 640px) { .king-box .king-box-photo { flex: none; height: 170px; min-height: 0; } }

/* Smaller home award cards */
.king-box .king-box-photo { height: 150px !important; }
.king-box-text { padding: 8px 12px 10px; gap: 2px; }
.king-box-text strong { font-size: 15px; }
.hl-photo { aspect-ratio: 16 / 10; margin-bottom: 4px; }
.hl-tile { padding-bottom: 9px; gap: 2px; }
.hl-tile strong { font-size: 13.5px; }
@media (max-width: 640px) {
  .king-box .king-box-photo { height: 115px !important; }
  .king-box-text { padding: 6px 9px 8px; }
  .king-box-text strong { font-size: 12.5px; }
  .hl-photo { aspect-ratio: 1 / 1; }
  .hl-tile { padding-bottom: 7px; }
  .hl-tile strong { font-size: 11px; }
  .champ-card { padding-top: 10px; padding-bottom: 10px; }
  .champ-card .up-body strong { font-size: 13px; }
  .champ-card .up-body span { font-size: 10.5px; }
}
@media (min-width: 641px) { .hl-grid { grid-template-columns: repeat(var(--n, 4), minmax(0, 240px)); } }

/* Home King card: round profile photo */
.king-box { align-items: center; justify-content: center; text-align: center; }
.king-box-face { padding: 16px 0 4px; }
.king-box-face .player-photo { width: 92px; height: 92px; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--gold), 0 0 22px color-mix(in srgb, var(--gold) 45%, transparent); }
.king-box-text { justify-items: center; text-align: center; }
@media (max-width: 640px) { .king-box-face { padding-top: 12px; } .king-box-face .player-photo { width: 70px; height: 70px; } }
/* Awards row on computers: full width, equal cards, fixed photo height */
@media (min-width: 641px) {
  .hl-grid { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 16px; align-items: stretch; }
  .hl-tile { padding-bottom: 14px; gap: 4px; }
  .hl-photo { aspect-ratio: auto; height: 210px; margin-bottom: 8px; }
  .hl-label { padding: 0 16px; }
  .hl-tile strong { padding: 0 16px; font-size: 16px; }
  .hl-sub { padding: 0 16px; font-size: 12.5px; }
  .hl-photo::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(180deg, transparent, var(--surface)); pointer-events: none; }
}
/* Wider news slider on computers */
@media (min-width: 1101px) { .home-top { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); } }

/* Team logo placeholders (initials) in the Teams row: centred */
.teams-strip-item span.team-logo { display: inline-grid; place-items: center; -webkit-line-clamp: unset; font-size: 11px; font-weight: 800; line-height: 1; }

/* Score Predictor: show / hide PIN (eye button inside the box) */
.px-pin-wrap { position: relative; display: block; }
.px-pin-wrap input { width: 100%; padding-right: 46px; }
.px-eye { position: absolute; top: 50%; right: 6px; width: 36px; height: 36px; display: grid; place-items: center; transform: translateY(-50%); border: 0; border-radius: 50%; background: transparent; color: var(--text-3); cursor: pointer; }
.px-eye:hover, .px-eye[aria-pressed="true"] { color: var(--brand-text); background: var(--surface-2); }
.px-eye .icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Social page: teams' Instagram / Facebook posts */
.social-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.social-head span { padding: 2px 9px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--brand-text); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.social-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; margin-bottom: 28px; }
.social-card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.social-team { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.social-team strong { flex: 1; min-width: 0; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.social-kind .icon { width: 18px; height: 18px; }
.social-kind.is-instagram { color: #e1306c; }
.social-kind.is-facebook { color: #1877f2; }
.social-frame { display: block; width: 100%; height: 640px; border: 0; background: #fff; }
.social-frame.is-facebook { height: 600px; }
@media (max-width: 640px) { .social-grid { grid-template-columns: 1fr; } }
/* Bottom bar with 6 buttons: smaller labels so Tournaments fits */
.bottom-nav-link span { font-size: 10px; letter-spacing: -.01em; white-space: nowrap; overflow: visible; text-overflow: clip; }
@media (max-width: 380px) { .bottom-nav-link span { font-size: 9px; } }

/* Social: posts shrunk to fit, 2 per row on phones */
.social-frame-wrap { --s: 1; position: relative; height: calc(620px * var(--s)); overflow: hidden; background: #fff; }
.social-frame-wrap .social-frame { position: absolute; top: 0; left: 0; width: 350px; height: 620px; transform: scale(var(--s)); transform-origin: 0 0; }
.social-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 640px) {
  .social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .social-card { border-radius: var(--r-md); }
  .social-team { gap: 5px; padding: 6px 7px; }
  .social-team .team-logo { width: 20px; height: 20px; }
  .social-team strong { font-size: 11px; }
  .social-kind .icon { width: 13px; height: 13px; }
}
.social-filter { margin-bottom: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; }
.social-filter .chip { width: 100%; margin: 0; justify-content: center; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) { .social-filter { grid-template-columns: repeat(3, 1fr); } .social-filter .chip { padding-left: 6px; padding-right: 6px; } }
/* Team buttons: always one line, all the same width (slide sideways if there are many) */
.social-filter { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 136px; justify-content: start; overflow-x: auto; scrollbar-width: none; }
.social-filter::-webkit-scrollbar { display: none; }
@media (max-width: 640px) { .social-filter { grid-template-columns: none; grid-auto-columns: minmax(78px, 1fr); justify-content: stretch; gap: 6px; } .social-filter .chip { padding-left: 6px; padding-right: 6px; font-size: 12.5px; } }
.social-card[hidden] { display: none; }

/* Social: one small card per row, centred */
.social-grid { grid-template-columns: minmax(0, 300px); justify-content: center; }
@media (max-width: 640px) { .social-grid { grid-template-columns: minmax(0, 260px); gap: 12px; } .social-team { gap: 6px; padding: 7px 9px; } .social-team .team-logo { width: 22px; height: 22px; } .social-team strong { font-size: 12px; } .social-kind .icon { width: 15px; height: 15px; } }

/* Social: smaller cards */
.social-grid { grid-template-columns: minmax(0, 230px); }
@media (max-width: 640px) { .social-grid { grid-template-columns: minmax(0, 200px); } }

/* Social: every card the same height (post header + photo); full post opens on Facebook / Instagram */
.social-frame-wrap { height: calc(470px * var(--s)); }
.social-frame-wrap::after { content: ""; position: absolute; inset: auto 0 0; height: 36px; background: linear-gradient(180deg, transparent, #fff); pointer-events: none; }
.social-open { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 8px; border-top: 1px solid var(--border); color: var(--brand-text); font-size: 12px; font-weight: 600; }
.social-open .icon { width: 13px; height: 13px; }
@media (max-width: 640px) { .social-open { font-size: 11px; padding: 7px; } }
/* Social: square photo only (Instagram's top bar hidden; Facebook's sits on the photo) */
.social-frame-wrap { height: auto; aspect-ratio: 1 / 1; }
.social-frame-wrap::after { display: none; }
.social-frame-wrap .social-frame.is-instagram { top: calc(-49px * var(--s)); height: 900px; }
/* Social: photo left, text right */
.social-grid { grid-template-columns: minmax(0, 560px); }
.social-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); }
.social-row .social-frame-wrap { align-self: start; }
.social-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 12px 14px; }
.social-row .social-team { padding: 0; border: 0; }
.social-text { display: -webkit-box; overflow: hidden; color: var(--text); font-size: 13.5px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.social-meta { display: flex; align-items: center; gap: 5px; color: var(--text-3); font-size: 11.5px; }
.social-meta .icon { width: 13px; height: 13px; }
.social-row .social-open { justify-content: flex-start; margin-top: auto; padding: 0; border: 0; }
@media (max-width: 640px) {
  .social-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .social-row { grid-template-columns: 130px minmax(0, 1fr); }
  .social-info { gap: 4px; padding: 8px 10px; }
  .social-row .social-team .team-logo { width: 20px; height: 20px; }
  .social-row .social-team strong { font-size: 12.5px; }
  .social-text { font-size: 12px; -webkit-line-clamp: 4; }
  .social-meta { font-size: 10.5px; }
  .social-row .social-open { font-size: 11px; }
}
/* Home slider: a social post — blurred photo behind, the whole photo on the right, team + text on the left */
.photo-banner .slide-social .slide-bg { filter: blur(26px) brightness(.5) saturate(1.2); transform: scale(1.2); object-position: center; }
.photo-banner .slide-social .slide-photo { left: auto; width: auto; max-width: 56%; height: 100%; aspect-ratio: auto; object-fit: contain; object-position: right center; }
.news-slider .slide-social::after { background: linear-gradient(90deg, rgb(5 13 26 / .75), rgb(5 13 26 / .35) 45%, transparent 60%); }
.slide-social .slide-caption { right: calc(56% + 16px); bottom: 50%; transform: translateY(50%); }
.slide-social .slide-caption strong { -webkit-line-clamp: 4; font-size: clamp(16px, 2vw, 24px); }
@media (max-width: 760px) { .slide-social .slide-caption { right: calc(56% + 10px); } .slide-social .slide-caption strong { -webkit-line-clamp: 4; font-size: 13.5px; line-height: 1.35; } }
/* The whole text fits: the caption fills the left side and the text size is fitted by fitSlideTexts() */
.slide-social .slide-caption { top: 16px; bottom: 34px; transform: none; align-content: center; }
.slide-social .slide-caption strong { display: block; overflow: hidden; -webkit-line-clamp: unset; line-height: 1.3; width: 100%; min-width: 0; overflow-wrap: anywhere; }
/* Champions card alone (no next match): big logo on the left, the texts on the right */
.match-panel.is-single .champ-card { display: flex; flex-direction: column; }
.match-panel.is-single .champ-card .next-match-head { justify-content: flex-start; }
/* the texts sit in the middle of the whole card; the logo stays on the left (same space kept free on both sides) */
.match-panel.is-single .champ-card .up-body { --lw: 104px; position: relative; display: flex; flex: 1; flex-direction: row; align-items: center; justify-content: center; text-align: center; }
.match-panel.is-single .champ-card .up-body > div { display: grid; flex: 1; justify-items: center; gap: 4px; min-width: 0; padding: 0 calc(var(--lw) + 14px); text-align: center; }
.match-panel.is-single .champ-card .champ-logo { position: absolute; top: 50%; left: 0; flex: none; transform: translateY(calc(-50% - 9px)); }   /* a little up: centred on the whole card, "Champions" heading included */
.match-panel.is-single .champ-card .team-logo-lg { width: 104px; height: 104px; }
.match-panel.is-single .champ-card strong { font-size: 24px; line-height: 1.2; }
/* computers: the box beside the slider is narrow and tall, so the logo goes above the texts, all centred */
@media (min-width: 801px) {
  .match-panel.is-single .champ-card .next-match-head { justify-content: center; }
  .match-panel.is-single .champ-card .up-body { flex-direction: column; gap: 16px; }
  .match-panel.is-single .champ-card .up-body > div { flex: none; padding: 0; }
  .match-panel.is-single .champ-card .champ-logo { position: relative; top: auto; transform: none; }
}
@media (max-width: 800px) { .match-panel.is-single .champ-card .next-match-head { justify-content: flex-start; text-align: left; } .match-panel.is-single .champ-card .team-logo-lg { width: 88px; height: 88px; } .match-panel.is-single .champ-card .up-body { --lw: 88px; } .match-panel.is-single .champ-card strong { font-size: 22px; } }
/* Slide badge with the team / organization logo in front */
.slide-by { display: inline-flex; align-items: center; gap: 8px; }
.photo-banner .slide-by .team-logo { position: static; inset: auto; width: 34px; height: 34px; flex: none; object-fit: cover; border-radius: 50%; box-shadow: 0 2px 8px rgb(0 0 0 / .35); }   /* not the slider's full-size photo rule */
@media (max-width: 760px) { .slide-by { gap: 6px; } .photo-banner .slide-by .team-logo { width: 26px; height: 26px; } }
/* Social slides: keep the text clear of the ‹ arrow on computers */
@media (min-width: 761px) { .slide-social .slide-caption { left: 64px; } }
/* Saved copy of the post photo (real shape, nothing cut) */
.social-photo { display: block; align-self: start; background: var(--surface-2, #fff); }
.social-photo img { display: block; width: 100%; height: auto; object-fit: cover; }
/* Computers: 2 equal columns */
@media (min-width: 900px) {
  .social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; justify-content: stretch; }
}
