/* ============================================================
   SportNationHQ — Design System
   Every Sport. Every Moment.
   Mobile-first, fast, premium sports media.
   ============================================================ */

:root {
  --c-primary: #0F172A;
  --c-secondary: #2563EB;
  --c-accent: #F97316;
  --c-bg: #FFFFFF;
  --c-text: #111827;
  --c-muted: #6B7280;

  --c-surface: #F8FAFC;
  --c-surface-2: #F1F5F9;
  --c-border: #E5E7EB;
  --c-border-strong: #CBD5E1;
  --c-live: #DC2626;
  --c-win: #16A34A;

  --c-primary-90: rgba(15, 23, 42, 0.9);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Oswald", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1200px;
  --maxw-narrow: 760px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);

  --header-h: 60px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  max-width: 100%;
  font-family: var(--font-sans);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-secondary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; color: var(--c-primary); font-weight: 700; letter-spacing: 0; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.25rem; }
.prose p, .card-excerpt, .article-deck, .stat__label { font-family: var(--font-sans); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

/* ----- Layout ----- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.section { padding: 36px 0; }
.section--tight { padding: 22px 0; }
.grid { display: grid; gap: 18px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--c-accent); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ----- Header (tiered: sports topbar + main nav) ----- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--c-primary); color: #fff; box-shadow: 0 2px 10px rgba(15,23,42,0.18); }
.topbar { background: #0a1020; border-bottom: 1px solid rgba(255,255,255,0.08); }
.topbar-in { display: flex; align-items: center; gap: 12px; height: 34px; }
.sport-tabs { display: flex; gap: 2px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.sport-tabs::-webkit-scrollbar { display: none; }
.sport-tab { display: inline-flex; align-items: center; gap: 4px; color: rgba(255,255,255,0.66); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.78rem; font-weight: 600; padding: 7px 10px; white-space: nowrap; }
.sport-tab:hover { color: #fff; text-decoration: none; }
.sport-tab.on { color: #fff; box-shadow: inset 0 -3px 0 var(--c-accent); }
.sport-tab .soon { font-size: 0.6rem; opacity: 0.5; text-transform: none; letter-spacing: 0; }
.topbar-tag { margin-left: auto; color: rgba(255,255,255,0.4); font-size: 0.72rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; display: none; }
@media (min-width: 900px) { .topbar-tag { display: inline; } }

.header-bar { display: flex; align-items: center; gap: 14px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.35rem; letter-spacing: 0.3px; text-transform: uppercase; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-accent { color: var(--c-accent); }
.header-nav { display: none; margin-left: 14px; gap: 0; overflow-x: auto; }
.header-nav a { color: rgba(255,255,255,0.82); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; font-weight: 600; font-size: 0.86rem; padding: 8px 11px; white-space: nowrap; border-radius: 0; }
.header-nav a:hover { color: #fff; text-decoration: none; }
.header-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--c-accent); }
.nav-more { position: relative; display: inline-flex; align-items: center; }
.nav-more-btn { background: transparent; border: 0; color: rgba(255,255,255,0.82); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; font-weight: 600; font-size: 0.86rem; padding: 8px 11px; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.nav-more-btn:hover { color: #fff; }
.nav-more-menu { position: absolute; top: 100%; right: 0; min-width: 200px; background: #fff; border: 1px solid var(--c-border); border-radius: 0 0 var(--radius-sm) var(--radius-sm); box-shadow: var(--shadow-lg); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .15s, transform .15s; z-index: 120; }
.nav-more:hover .nav-more-menu, .nav-more:focus-within .nav-more-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-more-menu a { display: block; padding: 9px 12px; color: var(--c-primary); font-weight: 600; font-size: 0.9rem; border-radius: 6px; }
.nav-more-menu a:hover { background: var(--c-surface); text-decoration: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { background: rgba(255,255,255,0.12); border: 0; color: #fff; width: 38px; height: 38px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; transition: background .15s var(--ease); }
.icon-btn:hover { background: rgba(255,255,255,0.22); }
.icon-btn svg { width: 19px; height: 19px; }
.menu-toggle { display: inline-flex; }
@media (min-width: 1024px) {
  .header-nav { display: flex; gap: 2px; }
  .menu-toggle { display: none; }
}

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: calc(var(--header-h) + 34px) 0 0 auto; width: min(320px, 84vw);
  background: var(--c-primary); transform: translateX(100%); transition: transform .25s var(--ease);
  z-index: 99; padding: 14px; overflow-y: auto; box-shadow: var(--shadow-lg);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a { display: block; color: #fff; font-weight: 600; padding: 13px 12px; border-radius: 8px; font-size: 1.02rem; }
.mobile-nav a:hover { background: rgba(255,255,255,0.1); text-decoration: none; }
.nav-overlay { position: fixed; inset: calc(var(--header-h) + 34px) 0 0 0; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 98; }
.nav-overlay.open { opacity: 1; pointer-events: auto; }

/* ----- Scores ticker ----- */
.ticker { background: #fff; border-bottom: 1px solid var(--c-border); display: flex; align-items: stretch; min-height: 52px; }
.ticker-label { display: flex; align-items: center; gap: 6px; background: var(--c-primary); color: #fff; padding: 0 14px; font-family: var(--font-display); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.06em; flex: none; }
.ticker-label .ic { width: 16px; height: 16px; }
.ticker-rail { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.ticker-rail::-webkit-scrollbar { display: none; }
.tk { flex: none; min-width: 136px; padding: 7px 14px; border-right: 1px solid var(--c-border); display: flex; flex-direction: column; justify-content: center; gap: 3px; color: var(--c-primary); }
.tk:hover { background: var(--c-surface); text-decoration: none; }
.tk-meta { font-size: 0.6rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.03em; font-weight: 700; white-space: nowrap; }
.tk-live { color: var(--c-live); }
.tk-ft { color: var(--c-muted); }
.tk-side { display: flex; align-items: center; gap: 6px; font-size: 0.84rem; font-weight: 700; line-height: 1.25; }
.tk-side .fi.flag { font-size: 0.82rem; }
.tk-abbr { flex: 1; }
.tk-side b { font-variant-numeric: tabular-nums; min-width: 12px; text-align: right; }
.tk-side:not(.w) b { color: var(--c-muted); }

/* ----- Buttons & chips ----- */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--c-secondary); color: #fff; padding: 11px 20px; border-radius: 10px; font-weight: 700; border: 0; transition: transform .12s var(--ease), background .15s; }
.btn:hover { background: #1d4ed8; text-decoration: none; transform: translateY(-1px); }
.btn--accent { background: var(--c-accent); }
.btn--accent:hover { background: #ea6a0c; }
.btn--ghost { background: transparent; border: 1.5px solid var(--c-border-strong); color: var(--c-primary); }
.btn--ghost:hover { background: var(--c-surface); }
.btn--sm { padding: 8px 14px; font-size: 0.88rem; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 10px; border-radius: 999px; background: var(--c-surface-2); color: var(--c-muted); }
.chip--accent { background: rgba(249,115,22,0.12); color: #c2410c; }
.chip--secondary { background: rgba(37,99,235,0.1); color: #1d4ed8; }
.chip--live { background: var(--c-live); color: #fff; }
.chip--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.eyebrow { font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--c-secondary); margin-bottom: 6px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.section-head .more { font-weight: 700; font-size: 0.9rem; white-space: nowrap; }

/* ----- Flags (flag-icons) + icons ----- */
.fi { border-radius: 3px; box-shadow: 0 0 0 1px rgba(15,23,42,0.08); vertical-align: middle; background-size: cover; background-position: center; }
.match-team .fi.flag { font-size: 1.3rem; }
.tile .fi.flag { font-size: 1.7rem; }
.standings .team-cell .fi.flag { font-size: 1.15rem; }
.search-result .fi { font-size: 1.3rem; }
.flag.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-border-strong); display: inline-block; }
.ic { width: 22px; height: 22px; flex: none; }
.tile .ic { width: 26px; height: 26px; color: var(--c-secondary); }
.match-hero__team .fi.flag { font-size: clamp(1.7rem, 6vw, 2.4rem); }
.profile-emblem .fi { font-size: 2.5rem; border-radius: 6px; }
.profile-emblem .ic { width: 48px; height: 48px; color: var(--c-secondary); }

/* ----- Hero ----- */
.hero { position: relative; color: #fff; background: linear-gradient(140deg, #0F172A 0%, #1e293b 55%, #1d4ed8 130%); overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -80px; width: 380px; height: 380px; background: radial-gradient(circle, rgba(249,115,22,0.35), transparent 70%); }
.hero-inner { position: relative; display: grid; gap: 24px; padding: 40px 0 44px; z-index: 1; }
.hero-feature { display: block; color: #fff; }
.hero-feature:hover { text-decoration: none; }
.hero-feature h1 { color: #fff; margin: 10px 0 12px; }
.hero-feature p { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 60ch; }
.hero-cover { display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,0.12); }
.hero-cover img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; align-items: center; padding: 56px 0 60px; }
}

/* ----- News-front lead ----- */
.lead { background: var(--c-surface); border-bottom: 1px solid var(--c-border); padding: 22px 0; }
.lead-grid { display: grid; gap: 20px; }
@media (min-width: 920px) { .lead-grid { grid-template-columns: 1.7fr 1fr; align-items: start; } }
.lead-story { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.lead-cover { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--c-surface-2); }
.lead-cover img { width: 100%; height: 100%; object-fit: cover; }
.lead-body { padding: 16px 18px 20px; }
.lead-title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.06; margin: 9px 0 8px; }
.lead-title a { color: var(--c-primary); }
.lead-title a:hover { color: var(--c-secondary); text-decoration: none; }
.lead-sum { color: #374151; margin: 0 0 10px; font-size: 1.02rem; }
.lead-rail { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); }
.rail-head { display: flex; align-items: center; gap: 7px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; font-size: 0.95rem; color: var(--c-primary); padding: 11px 16px; border-bottom: 2px solid var(--c-accent); }
.rail-head .ic { width: 18px; height: 18px; color: var(--c-accent); }
.hl { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 11px 16px; border-bottom: 1px solid var(--c-border); color: var(--c-primary); align-items: baseline; }
.hl:hover { background: var(--c-surface); text-decoration: none; }
.hl-cat { grid-column: 1 / -1; font-family: var(--font-display); text-transform: uppercase; font-size: 0.66rem; letter-spacing: 0.05em; color: var(--c-accent); font-weight: 700; }
.hl-title { font-weight: 700; font-size: 0.97rem; line-height: 1.22; }
.hl-time { color: var(--c-muted); font-size: 0.72rem; white-space: nowrap; }
.rail-more { display: block; padding: 11px 16px; font-weight: 700; font-size: 0.85rem; color: var(--c-secondary); }
.rail-more:hover { text-decoration: none; background: var(--c-surface); }
.rank-row { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--c-border); font-size: 0.9rem; align-items: center; }
.rank-row .fi.flag { font-size: 0.95rem; }
.panel .rail-head { padding: 0 0 9px; margin-bottom: 11px; }
.panel .rail-more { padding: 11px 0 0; }

/* ----- Cards ----- */
.card { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-surface-2); }
.card-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px 16px 18px; }
.card-title { font-size: 1.05rem; font-weight: 800; color: var(--c-primary); margin: 7px 0 6px; line-height: 1.25; }
.card-title a { color: inherit; }
.card-title a:hover { color: var(--c-secondary); text-decoration: none; }
.card-meta { font-size: 0.8rem; color: var(--c-muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-excerpt { color: #374151; font-size: 0.92rem; margin: 8px 0 0; }

.cards-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 600px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }
.cards-grid--4 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .cards-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards-grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* ----- Home layout split ----- */
.home-split { display: grid; gap: 28px; }
@media (min-width: 980px) { .home-split { grid-template-columns: 1fr 320px; align-items: start; } }
.rail { display: grid; gap: 22px; }
.panel { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 16px; }
.panel h3 { font-size: 1.05rem; margin: 0 0 12px; }

/* ----- Match cards ----- */
.match-card { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 12px 14px; display: block; color: inherit; transition: box-shadow .15s, transform .15s; }
.match-card:hover { text-decoration: none; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.match-card__top { display: flex; justify-content: space-between; align-items: center; font-size: 0.74rem; color: var(--c-muted); margin-bottom: 9px; font-weight: 600; }
.match-card__row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 3px 0; }
.match-team { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--c-primary); min-width: 0; }
.match-team .flag { font-size: 1.25rem; line-height: 1; flex: none; }
.match-team__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-score { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 1.05rem; color: var(--c-primary); min-width: 22px; text-align: center; }
.match-kick { font-size: 0.92rem; color: var(--c-muted); font-weight: 700; min-width: 50px; text-align: center; }
.match-card__foot { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--c-border); font-size: 0.76rem; color: var(--c-muted); display: flex; justify-content: space-between; gap: 8px; }
.winner { color: var(--c-primary); }
.dimmed { opacity: 0.55; }

.matches-list { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .matches-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .matches-list--3 { grid-template-columns: repeat(3, 1fr); } }

/* ----- Standings table ----- */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-border); border-radius: var(--radius); }
table.standings { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 460px; }
.standings th, .standings td { padding: 10px 8px; text-align: center; border-bottom: 1px solid var(--c-border); }
.standings th { background: var(--c-surface-2); color: var(--c-muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 800; }
.standings td:nth-child(2), .standings th:nth-child(2) { text-align: left; }
.standings .pos { color: var(--c-muted); font-weight: 700; width: 28px; }
.standings .team-cell { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--c-primary); }
.standings tbody tr:nth-child(-n+2) .pos { color: var(--c-win); }
.standings .pts { font-weight: 800; color: var(--c-primary); }
.standings a { color: inherit; }

/* ----- Sport tabs / pills row ----- */
.pill-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.pill-row::-webkit-scrollbar { height: 0; }
.pill { flex: none; padding: 8px 16px; border-radius: 999px; background: var(--c-surface-2); color: var(--c-primary); font-weight: 700; font-size: 0.88rem; border: 1px solid transparent; }
.pill:hover { background: var(--c-surface); text-decoration: none; }
.pill[aria-current="page"], .pill.active { background: var(--c-primary); color: #fff; }

/* ----- Breadcrumbs ----- */
.breadcrumbs { font-size: 0.82rem; color: var(--c-muted); padding: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs a { color: var(--c-muted); }
.breadcrumbs a:hover { color: var(--c-secondary); }
.breadcrumbs .sep { color: var(--c-border-strong); }

/* ----- Page header ----- */
.page-head { background: var(--c-surface); border-bottom: 1px solid var(--c-border); padding: 26px 0; }
.page-head h1 { margin: 6px 0 6px; }
.page-head p { color: var(--c-muted); margin: 0; max-width: 70ch; }

/* ----- Match hero (scoreboard header) ----- */
.match-hero { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 10px; }
.match-hero__team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.match-hero__team .flag { font-size: clamp(1.7rem, 6vw, 2.4rem); line-height: 1; flex: none; }
.match-hero__team .name { font-size: clamp(0.95rem, 3.4vw, 1.4rem); font-weight: 800; color: var(--c-primary); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.match-hero__home { justify-content: flex-end; text-align: right; }
.match-hero__home .name { order: -1; }
.match-hero__score { font-size: clamp(1.6rem, 7vw, 2.6rem); font-weight: 800; color: var(--c-primary); white-space: nowrap; padding: 0 4px; }
.match-hero__score--time { font-size: clamp(1.05rem, 4.5vw, 1.4rem); color: var(--c-secondary); }

/* ----- Article ----- */
.article { padding: 8px 0 40px; }
.article-hero { margin: 0 0 22px; }
.article-title { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.04; margin: 8px 0 10px; }
.article-cover { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); margin: 6px auto 22px; max-width: 1000px; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article h1 { font-size: clamp(1.8rem, 4.5vw, 2.7rem); margin: 10px 0; }
.article-deck { font-size: 1.15rem; color: #374151; font-weight: 500; }
.article-byline { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; color: var(--c-muted); padding: 12px 0; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); margin: 18px 0; flex-wrap: wrap; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--c-secondary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; flex: none; }
.prose { max-width: var(--maxw-narrow); margin: 0 auto; }
.prose p { font-size: 1.07rem; color: #1f2937; margin: 0 0 1.15rem; }
.prose h2 { margin: 1.8rem 0 0.7rem; }
.prose blockquote { margin: 1.6rem 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--c-accent); font-size: 1.2rem; font-weight: 600; color: var(--c-primary); font-style: italic; }
.prose ul { margin: 0 0 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.inline-related { background: var(--c-surface); border-left: 4px solid var(--c-accent); border-radius: var(--radius-sm); padding: 12px 16px; margin: 22px 0; }
.inline-related .ir-label { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.68rem; font-weight: 700; color: var(--c-accent); margin-bottom: 3px; }
.inline-related a { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--c-primary); line-height: 1.2; }
.inline-related a:hover { color: var(--c-secondary); text-decoration: none; }
.callout { background: var(--c-surface); border: 1px solid var(--c-border); border-left: 4px solid var(--c-secondary); border-radius: var(--radius-sm); padding: 16px 18px; margin: 22px 0; }
.callout h3 { margin: 0 0 10px; font-size: 1rem; }
.callout ul { margin: 0; }

/* FAQ */
.faq { margin: 26px 0; }
.faq details { border: 1px solid var(--c-border); border-radius: var(--radius-sm); margin-bottom: 10px; background: var(--c-bg); overflow: hidden; }
.faq summary { padding: 14px 16px; font-weight: 700; color: var(--c-primary); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--c-secondary); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--c-border); }
.faq .faq-body { padding: 14px 16px; color: #374151; }
.faq .faq-body p { margin: 0; }

/* ----- Bio / profile header ----- */
.profile-head { display: grid; gap: 18px; align-items: center; }
@media (min-width: 700px) { .profile-head { grid-template-columns: auto 1fr; } }
.profile-emblem { width: 96px; height: 96px; border-radius: 20px; background: var(--c-surface-2); display: flex; align-items: center; justify-content: center; font-size: 3.2rem; box-shadow: var(--shadow-sm); }
.profile-emblem.has-photo { position: relative; overflow: hidden; padding: 0; }
.profile-emblem.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.profile-emblem .emblem-fb { z-index: 1; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.stadium-cover { background: linear-gradient(135deg, #0F172A, #1d4ed8); position: relative; }
.stadium-cover img { position: absolute; inset: 0; }
.venue-banner { width: 100%; max-height: 340px; overflow: hidden; background: linear-gradient(135deg,#0F172A,#1d4ed8); }
.venue-banner img { width: 100%; height: 100%; max-height: 340px; object-fit: cover; display: block; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0; }
@media (min-width: 560px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 14px; text-align: center; }
.stat__num { font-size: 1.7rem; font-weight: 800; color: var(--c-primary); font-variant-numeric: tabular-nums; }
.stat__label { font-size: 0.74rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; margin-top: 2px; }
.info-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.info-table th, .info-table td { padding: 10px 4px; border-bottom: 1px solid var(--c-border); text-align: left; }
.info-table th { color: var(--c-muted); font-weight: 600; width: 42%; }
.info-table td { font-weight: 700; color: var(--c-primary); }

/* ----- Directory grid (teams/players/stadiums) ----- */
.tile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 600px) { .tile-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 920px) { .tile-grid { grid-template-columns: repeat(4, 1fr); } }
.tile { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius); color: var(--c-primary); font-weight: 700; transition: box-shadow .15s, transform .15s; }
.tile:hover { text-decoration: none; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tile .flag { font-size: 1.7rem; line-height: 1; }
.tile small { display: block; color: var(--c-muted); font-weight: 600; font-size: 0.76rem; }
.roster-item { font-size: 0.92rem; }
div.tile.roster-item:hover { transform: none; box-shadow: var(--shadow-sm); cursor: default; }

/* ----- Knockout bracket ----- */
.bracket { display: flex; gap: 18px; overflow-x: auto; padding: 8px 2px 18px; -webkit-overflow-scrolling: touch; }
.bracket-col { flex: none; width: 230px; display: flex; flex-direction: column; gap: 14px; }
.bracket-col > h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-muted); margin: 0 0 2px; position: sticky; top: 0; }
.bracket-col--spread { justify-content: space-around; }
.bracket-tie { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: 8px 10px; box-shadow: var(--shadow-sm); }
.bracket-slot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 2px; font-size: 0.86rem; font-weight: 700; color: var(--c-primary); }
.bracket-slot + .bracket-slot { border-top: 1px solid var(--c-border); }
.bracket-slot .flag { font-size: 1.1rem; }
.bracket-slot.tbd { color: var(--c-muted); font-weight: 600; }
.bracket-slot .sc { font-variant-numeric: tabular-nums; color: var(--c-muted); }
.bracket-tie__meta { font-size: 0.68rem; color: var(--c-muted); margin-bottom: 4px; font-weight: 600; }
.bracket-final .bracket-tie { border-color: var(--c-accent); border-width: 2px; }

/* ----- Live scores ----- */
.live-board { display: grid; gap: 12px; }
.status-msg { color: var(--c-muted); padding: 24px; text-align: center; border: 1px dashed var(--c-border-strong); border-radius: var(--radius); }
.score-filter { margin-bottom: 18px; }

/* ----- Search ----- */
.search-overlay { position: fixed; inset: 0; background: var(--c-primary-90); z-index: 200; display: none; padding: 8vh 16px 16px; }
.search-overlay.open { display: block; }
.search-box { max-width: 640px; margin: 0 auto; }
.search-box input { width: 100%; font-size: 1.2rem; padding: 16px 18px; border-radius: 12px; border: 0; box-shadow: var(--shadow-lg); }
.search-box input:focus { outline: 3px solid var(--c-accent); }
.search-results { max-width: 640px; margin: 12px auto 0; background: #fff; border-radius: 12px; max-height: 64vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.search-results:empty { display: none; }
.search-result { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--c-border); color: var(--c-primary); }
.search-result:hover { background: var(--c-surface); text-decoration: none; }
.search-result .flag { font-size: 1.3rem; }
.search-result small { color: var(--c-muted); font-weight: 600; }
.search-close { position: absolute; top: 18px; right: 18px; background: rgba(255,255,255,0.15); border: 0; color: #fff; width: 42px; height: 42px; border-radius: 10px; font-size: 1.3rem; }

/* ----- Newsletter ----- */
.newsletter { background: linear-gradient(135deg, #0F172A, #1d4ed8); color: #fff; border-radius: var(--radius-lg); padding: 30px 24px; text-align: center; }
.newsletter h2 { color: #fff; }
.newsletter p { color: rgba(255,255,255,0.82); max-width: 50ch; margin: 0 auto 18px; }
.newsletter form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; flex-wrap: wrap; }
.newsletter input { flex: 1; min-width: 200px; padding: 13px 16px; border-radius: 10px; border: 0; font-size: 1rem; }

/* ----- Footer ----- */
.site-footer { background: var(--c-primary); color: rgba(255,255,255,0.7); margin-top: 40px; padding: 40px 0 24px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-brand .brand { margin-bottom: 10px; }
.footer-brand p { font-size: 0.9rem; max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.footer-col a { display: block; color: rgba(255,255,255,0.7); font-size: 0.9rem; padding: 5px 0; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 30px; padding-top: 18px; font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ----- Utility ----- */
.text-muted { color: var(--c-muted); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.divider { height: 1px; background: var(--c-border); border: 0; margin: 28px 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.related-links { display: flex; flex-wrap: wrap; gap: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
