/* FootballMatch v3 — modern glass sports UI */
:root {
  --bg: #060a12;
  --bg-elevated: #0c1220;
  --surface: rgba(18, 26, 46, 0.82);
  --surface-2: rgba(28, 38, 64, 0.9);
  --surface-3: rgba(40, 54, 88, 0.95);
  --border: rgba(148, 163, 184, 0.1);
  --border-strong: rgba(148, 163, 184, 0.2);
  --text: #f8fafc;
  --text-2: #a8b4c8;
  --text-3: #6b7a94;
  --live: #ff2d55;
  --live-glow: rgba(255, 45, 85, 0.45);
  --accent: #00e5a8;
  --accent-2: #4cc9f0;
  --accent-soft: rgba(0, 229, 168, 0.14);
  --gold: #f5c542;
  --warning: #fbbf24;
  --danger: #f87171;
  --win: #34d399;
  --draw: #94a3b8;
  --loss: #f87171;
  --header: rgba(6, 10, 18, 0.78);
  --nav-h: 60px;
  --bottom-h: 64px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.28);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1100px;
  --row-pad-y: 12px;
  --pitch: linear-gradient(145deg, #0a1f18 0%, #0a1020 42%, #15102a 100%);
}

html[data-theme="light"] {
  --bg: #eef2f7;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f7fb;
  --surface-3: #e8eef6;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --header: rgba(255, 255, 255, 0.92);
  --shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 1px 4px rgba(15, 23, 42, 0.06);
  --pitch: linear-gradient(160deg, #dcfce7 0%, #eef2f7 40%, #e0e7ff 100%);
}

html[data-density="cozy"] { --row-pad-y: 15px; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 55% at 15% -10%, rgba(0, 229, 168, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 5%, rgba(76, 201, 240, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 70% 100%, rgba(255, 45, 85, 0.06), transparent 45%);
  background-attachment: fixed;
  min-height: 100dvh;
  padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* iOS Chrome: prevent right-edge bleed */
}
html {
  overflow-x: clip;
  max-width: 100%;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

/* —— Header —— */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  overflow: hidden; /* contain wide language row */
}
.app-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  min-width: 0;
  width: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
  flex-shrink: 1;
  min-width: 0;
}
.logo__mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, #22d3a6, #0ea5e9);
  display: grid;
  place-items: center;
  font-size: 15px;
  box-shadow: 0 0 20px rgba(34, 211, 166, 0.4);
  position: relative;
}
.logo__mark::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 13px;
  border: 1px solid rgba(34, 211, 166, 0.35);
  pointer-events: none;
}
.logo span {
  background: linear-gradient(90deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 42vw;
}
html[data-theme="light"] .logo span { background: none; color: var(--text); -webkit-background-clip: unset; }
.logo em { font-style: normal; font-weight: 700; opacity: 0.85; }

.desktop-nav { display: none; }
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-shrink: 1;
  max-width: min(58vw, 280px);
}
.chip-lang {
  display: flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
  gap: 1px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.chip-lang::-webkit-scrollbar { display: none; height: 0; }
.chip-lang a {
  color: var(--text-3);
  padding: 5px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex: 0 0 auto;
  white-space: nowrap;
}
.chip-lang a.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #041018;
}

/* —— Layout —— */
.main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 14px 32px;
  width: 100%;
  min-width: 0;
  overflow-x: clip;
}
.layout-dash {
  display: grid;
  gap: 14px;
}
@media (min-width: 900px) {
  .layout-dash {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }
  .layout-dash__side { position: sticky; top: calc(var(--nav-h) + 14px); }
  .desktop-nav {
    display: flex !important;
    gap: 2px;
    margin-left: 8px;
  }
  .desktop-nav a {
    color: var(--text-3);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 10px;
    transition: 0.15s ease;
  }
  .desktop-nav a.is-active,
  .desktop-nav a:hover {
    color: var(--text);
    background: var(--surface-2);
  }
  body { padding-bottom: 28px; }
  .bottom-nav { display: none; }
}

/* —— Banner —— */
.banner {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(251, 191, 36, 0.04));
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: #fde68a;
  font-size: 13px;
  margin-bottom: 14px;
  align-items: flex-start;
}
html[data-theme="light"] .banner { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.banner--info {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), transparent);
  border-color: rgba(56, 189, 248, 0.25);
  color: #7dd3fc;
}
html[data-theme="light"] .banner--info { color: #075985; background: #e0f2fe; border-color: #7dd3fc; }
.banner strong { display: block; margin-bottom: 2px; color: var(--text); }
.banner a { text-decoration: underline; text-underline-offset: 2px; }

/* Live pill */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--live);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 0 20px var(--live-glow);
  text-transform: uppercase;
}
.live-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1.2s ease infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Hero card (featured match) */
.hero-card {
  position: relative;
  display: block;
  border-radius: 22px;
  overflow: hidden;
  background: var(--pitch);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  padding: 18px 16px 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hero-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.5);
}
.hero-card__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 90%, rgba(0, 229, 168, 0.22), transparent 42%),
    radial-gradient(circle at 90% 10%, rgba(76, 201, 240, 0.18), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 45, 85, 0.06), transparent 55%);
  pointer-events: none;
}
.hero-card__top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.hero-card__tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-card__when {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
}
.hero-card,
.comp,
.card,
.mlist,
.mrow {
  max-width: 100%;
  min-width: 0;
}
.hero-card__board {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  text-align: center;
  margin-bottom: 14px;
}
.hero-card__name {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
  margin-top: 10px;
  line-height: 1.25;
}
.hero-card__score {
  font-family: var(--mono);
  font-size: clamp(2.6rem, 9vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 40px rgba(0, 229, 168, 0.25);
}
.hero-card__score.is-live { color: var(--live); text-shadow: 0 0 30px var(--live-glow); }
.hero-card__score span { opacity: 0.45; margin: 0 2px; }
.hero-card__vs {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.35);
}
.hero-card__kick {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  font-family: var(--mono);
}
.hero-card__cta {
  position: relative;
  text-align: center;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 229, 168, 0.2), rgba(76, 201, 240, 0.12));
  border: 1px solid rgba(0, 229, 168, 0.28);
  font-weight: 800;
  font-size: 13px;
  color: var(--accent);
}

/* WC ribbon + hub */
.wc-ribbon {
  margin-bottom: 14px;
  border-radius: 16px;
  background: linear-gradient(105deg, rgba(245, 197, 66, 0.16), rgba(0, 229, 168, 0.08), transparent);
  border: 1px solid rgba(245, 197, 66, 0.28);
  overflow: hidden;
}
.wc-ribbon__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  flex-wrap: wrap;
}
.wc-ribbon__icon { font-size: 22px; }
.wc-ribbon__inner strong { display: block; font-size: 14px; }
.wc-ribbon__inner span { font-size: 12px; color: var(--text-2); }
.wc-ribbon__cta {
  margin-left: auto;
  font-weight: 800;
  font-size: 13px;
  color: var(--gold);
  white-space: nowrap;
}
.wc-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 180px;
  border: 1px solid rgba(245, 197, 66, 0.2);
  box-shadow: var(--shadow);
}
.wc-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(245, 197, 66, 0.25), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(0, 229, 168, 0.15), transparent 40%),
    linear-gradient(160deg, #0c1a12, #0a1020 50%, #1a1230);
}
.wc-hero__content {
  position: relative;
  padding: 28px 20px;
}
.wc-hero__eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.wc-hero__title {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}
.wc-hero__sub {
  margin: 0 0 16px;
  color: var(--text-2);
  max-width: 36rem;
  font-size: 14px;
  line-height: 1.5;
}
.wc-hero__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.side-link {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--surface-2);
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid var(--border);
  transition: 0.12s;
}
.side-link:hover { border-color: var(--border-strong); background: var(--surface-3); }
.side-link--hot {
  background: linear-gradient(135deg, rgba(245, 197, 66, 0.15), rgba(0, 229, 168, 0.08));
  border-color: rgba(245, 197, 66, 0.35);
  color: var(--gold);
}

/* —— Crests —— */
.crest {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  margin: 0 auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.12);
  letter-spacing: -0.02em;
}
.crest--sm { width: 24px; height: 24px; font-size: 8px; border-width: 1px; }
.crest--lg { width: 64px; height: 64px; font-size: 16px; }
.crest--xl { width: 72px; height: 72px; font-size: 18px; }

/* Team color presets via data attribute */
.crest[data-team="ARS"], .crest[data-c="ef4444"] { background: linear-gradient(145deg, #ef4444, #991b1b); }
.crest[data-team="CHE"], .crest[data-c="3b82f6"] { background: linear-gradient(145deg, #3b82f6, #1e3a8a); }
.crest[data-team="BAR"], .crest[data-c="a21caf"] { background: linear-gradient(145deg, #a21caf, #1d4ed8); }
.crest[data-team="RMA"], .crest[data-c="eab308"] { background: linear-gradient(145deg, #f8fafc, #94a3b8); color: #0f172a; }
.crest[data-team="INT"], .crest[data-c="1e3a8a"] { background: linear-gradient(145deg, #1e3a8a, #0f172a); }
.crest[data-team="MIL"], .crest[data-c="dc2626"] { background: linear-gradient(145deg, #dc2626, #171717); }
.crest[data-team="BAY"], .crest[data-c="dc2626"] { background: linear-gradient(145deg, #dc2626, #1e3a8a); }
.crest[data-team="BVB"], .crest[data-c="eab308"] { background: linear-gradient(145deg, #eab308, #171717); color: #171717; }
.crest[data-team="PSG"], .crest[data-c="1e3a8a"] { background: linear-gradient(145deg, #1e3a8a, #db2777); }
.crest[data-team="MCI"], .crest[data-c="38bdf8"] { background: linear-gradient(145deg, #38bdf8, #0e7490); }
.crest[data-team="LIV"], .crest[data-c="dc2626"] { background: linear-gradient(145deg, #dc2626, #7f1d1d); }
.crest[data-team="MUN"], .crest[data-c="dc2626"] { background: linear-gradient(145deg, #dc2626, #450a0a); }
.crest[data-team="TOT"], .crest[data-c="f8fafc"] { background: linear-gradient(145deg, #f8fafc, #64748b); color: #0f172a; }
.crest[data-team="ATM"], .crest[data-c="dc2626"] { background: linear-gradient(145deg, #dc2626, #fff); color: #0f172a; }
.crest[data-team="JUV"], .crest[data-c="171717"] { background: linear-gradient(145deg, #171717, #f8fafc); }
.crest[data-team="NAP"], .crest[data-c="0ea5e9"] { background: linear-gradient(145deg, #0ea5e9, #1e3a8a); }
.crest[data-team="OM"], .crest[data-c="38bdf8"] { background: linear-gradient(145deg, #38bdf8, #fff); color: #0f172a; }
.crest[data-team="SEV"], .crest[data-c="ef4444"] { background: linear-gradient(145deg, #fff, #ef4444); color: #0f172a; }
.crest[data-team="AVL"], .crest[data-c="7c3aed"] { background: linear-gradient(145deg, #7c3aed, #0f172a); }
.crest--default { background: linear-gradient(145deg, #334155, #1e293b); }

.crest-img {
  display: block;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}
.crest-img--sm { width: 24px; height: 24px; }
.crest-img--md { width: 44px; height: 44px; }
.crest-img--lg { width: 64px; height: 64px; margin: 0 auto; }
.crest-img--xl { width: 72px; height: 72px; margin: 0 auto; }
html[data-theme="light"] .crest-img { background: #fff; }

/* —— Filters —— */
.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.filters::-webkit-scrollbar { display: none; }
.filters a, .filters button {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: 0.15s;
}
.filters a.is-active, .filters button.is-active {
  background: linear-gradient(135deg, var(--accent), #14b8a6);
  border-color: transparent;
  color: #042f2e;
  box-shadow: 0 4px 14px rgba(34, 211, 166, 0.3);
}
.filters .live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  margin-right: 6px;
  vertical-align: middle;
  animation: blink 1.2s ease infinite;
  box-shadow: 0 0 8px var(--live-glow);
}

/* —— Live rail (all live matches, clearly separated) —— */
.live-rail {
  background: var(--surface);
  border: 1px solid rgba(255, 59, 92, 0.35);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(255, 59, 92, 0.08), var(--shadow-sm);
  margin-bottom: 16px;
  overflow: hidden;
}
.live-rail__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(90deg, rgba(255, 59, 92, 0.16), transparent 70%);
  border-bottom: 1px solid rgba(255, 59, 92, 0.22);
}
.live-rail__count {
  margin-left: auto;
  min-width: 1.6em;
  height: 1.6em;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  background: var(--live);
  box-shadow: 0 0 12px var(--live-glow);
}
.live-rail__list .mrow--live {
  border-left: 3px solid var(--live);
}
.live-rail__list .mrow:last-child {
  border-bottom: 0;
}

/* Live text commentary feed */
.card--live-feed .card__title {
  color: var(--live);
}
.live-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 320px;
  overflow-y: auto;
}
.live-feed__item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.35;
}
.live-feed__item:last-child { border-bottom: 0; }
.live-feed__min {
  font-family: var(--mono);
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.live-feed__text { font-weight: 600; color: var(--text); }
.timeline__icon.meta {
  opacity: 0.85;
}

/* Live match row emphasis (everywhere) */
.mrow--live {
  background: rgba(255, 59, 92, 0.06);
}
.mrow--live:hover,
.mrow--live:active {
  background: rgba(255, 59, 92, 0.1);
}
.mrow--live .mrow__score {
  font-size: 24px;
}

/* —— Competition + match rows —— */
.comp {
  background: var(--surface);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 14px;
  overflow: hidden;
}
.comp__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(90deg, rgba(0, 229, 168, 0.06), transparent);
  border-bottom: 1px solid var(--border);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.comp__flag { font-size: 20px; line-height: 1; }
.comp__meta { color: var(--text-3); font-weight: 600; margin-left: auto; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }

/* —— Readable match list (v4) —— */
.mlist { display: flex; flex-direction: column; }
.mrow {
  display: block;
  padding: 16px 18px 18px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
  color: inherit;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.mrow:last-child { border-bottom: 0; }
.mrow:active, .mrow:hover { background: rgba(255, 255, 255, 0.035); }
.mrow__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 12px;
  padding-right: 2px;
}
.mrow__when {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.3;
  white-space: normal;
}
.mrow__when.is-live {
  color: #fff;
  background: var(--live);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: 0 0 16px var(--live-glow);
}
.mrow__round {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  background: var(--surface-2);
  padding: 4px 10px;
  border-radius: 999px;
}
/* Teams + score: score column inset toward center (not flush to right edge) */
.mrow__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(52px, 4.5rem);
  gap: 12px 14px;
  align-items: center;
  max-width: 100%;
  min-width: 0;
}
.mrow__teams {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mrow__team {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.mrow__name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mrow__team.is-winner .mrow__name { font-weight: 900; }
.mrow__score {
  min-width: 0;
  width: 100%;
  justify-self: stretch;
  text-align: center;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(148, 163, 184, 0.08);
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
}
.mrow__score span { display: block; }
.mrow__score.is-live {
  color: var(--live);
  background: rgba(255, 45, 85, 0.1);
  border-color: rgba(255, 45, 85, 0.22);
}
.mrow__vs {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}
@media (max-width: 400px) {
  .mrow { padding: 14px 14px 16px; }
  .mrow__body {
    grid-template-columns: minmax(0, 1fr) 3.25rem;
    gap: 10px 12px;
  }
  .mrow__score {
    font-size: 18px;
    padding: 5px 6px;
  }
  .mrow__name { font-size: 16px; }
}

/* Crests — single clean mark, no double badges */
.crest-img {
  display: block;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 3px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.crest-img--sm { width: 28px; height: 28px; }
.crest-img--md { width: 36px; height: 36px; }
.crest-img--lg { width: 56px; height: 56px; margin: 0 auto; }
.crest-img--xl { width: 80px; height: 80px; margin: 0 auto; border-radius: 16px; padding: 6px; }
.crest-fallback {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(145deg, #334155, #1e293b);
  color: #fff;
  font-weight: 800;
  font-family: var(--mono);
  border-radius: 10px;
  letter-spacing: -0.02em;
}
.crest-fallback--sm { width: 28px; height: 28px; font-size: 9px; }
.crest-fallback--md { width: 36px; height: 36px; font-size: 11px; }
.crest-fallback--lg { width: 56px; height: 56px; font-size: 14px; margin: 0 auto; }
.crest-fallback--xl { width: 80px; height: 80px; font-size: 18px; border-radius: 16px; }

/* Team profile */
.back-link { margin: 0 0 14px; }
.back-link a {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-2);
}
.team-head {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 20px;
  margin-bottom: 16px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.team-head__crest {
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: #fff;
  border-radius: 18px;
  padding: 8px;
  flex-shrink: 0;
}
.team-head__name {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 5vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.team-head__meta {
  margin: 0;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.45;
}
.team-head__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
}

/* Form dots */
.form-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 800;
  display: grid;
  place-items: center;
  color: #041018;
}
.form-dot--W { background: var(--win); }
.form-dot--D { background: var(--draw); color: #0f172a; }
.form-dot--L { background: var(--loss); color: #fff; }

/* —— Cards —— */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.card__title {
  padding: 16px 18px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card__title span.badge {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  text-transform: uppercase;
}
.card__body { padding: 14px 16px; }
.summary { color: var(--text-2); font-size: 14px; line-height: 1.6; }

/* —— Match hero v2 —— */
.hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--pitch);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  padding: 22px 16px 18px;
  margin-bottom: 12px;
  text-align: center;
}
.hero__comp {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.hero__scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}
.hero__name { font-weight: 800; font-size: 14px; line-height: 1.25; margin-top: 10px; }
.hero__pos {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  background: rgba(0,0,0,0.25);
  padding: 2px 8px;
  border-radius: 999px;
}
.hero__score {
  font-family: var(--mono);
  font-size: clamp(2.6rem, 9vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}
.hero__score.is-live { color: var(--live); text-shadow: 0 0 24px var(--live-glow); }
.hero__status { margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-3);
}
.hero__meta strong { color: var(--text-2); font-weight: 600; }

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: 1 0 auto;
  min-width: max-content;
  border: 0;
  background: transparent;
  color: var(--text-3);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: 0.15s;
}
.tabs button.is-active {
  background: var(--surface-3);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeIn 0.2s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* Stats bars */
.stat-row {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--mono);
}
.stat-row__label {
  grid-column: 1 / -1;
  text-align: center;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: -6px;
}
.stat-bar {
  height: 8px;
  background: var(--surface-3);
  border-radius: 999px;
  display: flex;
  overflow: hidden;
}
.stat-bar__home {
  background: linear-gradient(90deg, var(--accent), #14b8a6);
  border-radius: 999px 0 0 999px;
  transition: width 0.6s ease;
}
.stat-bar__away {
  background: linear-gradient(90deg, #38bdf8, #6366f1);
  border-radius: 0 999px 999px 0;
  margin-left: auto;
  transition: width 0.6s ease;
}

/* Timeline v2 */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 47px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent);
  opacity: 0.35;
}
.timeline li {
  display: grid;
  grid-template-columns: 44px 32px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 0;
  position: relative;
}
.timeline__min {
  font-weight: 800;
  font-family: var(--mono);
  color: var(--text-2);
  font-size: 13px;
  text-align: right;
}
.timeline__icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 13px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  z-index: 1;
}
.timeline__icon.goal { background: rgba(34, 211, 166, 0.15); border-color: rgba(34, 211, 166, 0.35); }
.timeline__icon.yellow { background: rgba(251, 191, 36, 0.15); }
.timeline__icon.red { background: rgba(248, 113, 113, 0.15); }
.timeline__body { font-size: 13px; padding-top: 3px; }
.timeline__body strong { font-weight: 700; }
.timeline__side {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}

/* Lineups pitch */
.lineups-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.lineups-grid h4 { margin: 0 0 10px; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.lineups-grid ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: shirt;
}
.lineups-grid li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
  counter-increment: shirt;
}
.lineups-grid li::before {
  content: counter(shirt);
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--surface-3);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  flex-shrink: 0;
}
.formation-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 999px;
}

/* H2H */
.h2h-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.h2h-row:last-child { border-bottom: 0; }
.h2h-score {
  font-family: var(--mono);
  font-weight: 700;
  min-width: 48px;
  text-align: center;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--surface-3);
}

/* Form strip */
.form-strip {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 8px;
}
.form-strip span {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
}
.form-strip .W { background: rgba(52, 211, 153, 0.2); color: var(--win); }
.form-strip .D { background: rgba(148, 163, 184, 0.2); color: var(--draw); }
.form-strip .L { background: rgba(248, 113, 113, 0.2); color: var(--loss); }

/* Standings */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.standings {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.standings th, table.standings td {
  padding: 10px 6px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
table.standings th {
  color: var(--text-3);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
table.standings td.team { text-align: left; font-weight: 600; white-space: nowrap; }
.team-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: 0.12s;
}
.team-link:hover {
  color: var(--accent);
  border-bottom-color: rgba(34, 211, 166, 0.45);
}
.team-link .crest-img { display: inline-block; }
table.standings tr:nth-child(-n+4) td.pos {
  color: var(--accent);
  font-weight: 800;
  font-family: var(--mono);
}
table.standings tr:nth-child(-n+4) { background: rgba(34, 211, 166, 0.04); }
table.standings .pts { font-weight: 800; font-family: var(--mono); }
table.standings .form-cell { display: flex; gap: 2px; justify-content: center; }

/* Search */
.search-box {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.search-box input {
  flex: 1;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--surface);
  outline: none;
  color: var(--text);
}
.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.search-box button {
  border: 0;
  background: linear-gradient(135deg, var(--accent), #14b8a6);
  color: #042f2e;
  border-radius: 14px;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
}

/* News / pulse */
.news-item__when {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent, #38bdf8);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.news-item {
  display: block;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.news-item:last-child { border-bottom: 0; }
.news-item:hover { background: var(--surface-2); }
.news-item__title { font-weight: 700; font-size: 15px; margin-bottom: 6px; line-height: 1.35; }
.news-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 12px;
  color: var(--text-3);
}
.news-item__date {
  color: var(--text-2);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.news-item__source { color: var(--text-3); }
.pulse-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  transition: background 0.12s;
}
.pulse-item:hover { background: var(--surface-2); }
.pulse-item:last-child { border-bottom: 0; }
.pulse-min {
  font-weight: 800;
  font-family: var(--mono);
  color: var(--live);
  font-size: 14px;
}

/* Side widgets */
.widget-list { max-height: 320px; overflow-y: auto; }
.widget-scorer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.widget-scorer:last-child { border-bottom: 0; }
.widget-scorer__rank {
  width: 22px;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--text-3);
  font-size: 12px;
}
.widget-scorer__goals {
  margin-left: auto;
  font-family: var(--mono);
  font-weight: 800;
  color: var(--accent);
}

/* Leagues */
.league-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (min-width: 640px) {
  .league-grid { grid-template-columns: repeat(3, 1fr); }
}
.league-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100px;
  transition: 0.15s;
  position: relative;
  overflow: hidden;
}
.league-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: 0.15s;
}
.league-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.league-card:hover::before { opacity: 1; }
.league-card__flag { font-size: 26px; }
.league-card__name { font-weight: 800; font-size: 14px; letter-spacing: -0.02em; }
.league-card__country { font-size: 12px; color: var(--text-3); }

/* Date nav */
.date-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.date-nav a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-2);
  font-weight: 800;
  font-size: 18px;
  transition: 0.12s;
}
.date-nav a:hover { background: var(--surface-3); }
.date-nav strong { font-size: 14px; font-family: var(--mono); }

/* —— Match calendar —— */
.cal-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.cal-month-label {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}
.cal-nav-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 22px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.cal-nav-btn:active { transform: scale(0.96); }

.cal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}
.cal-wd {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 0;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-cell {
  aspect-ratio: 1;
  min-height: 44px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  position: relative;
  transition: 0.12s;
  padding: 4px 2px;
}
.cal-cell--empty {
  background: transparent;
  pointer-events: none;
}
.cal-cell:hover {
  border-color: var(--border-strong);
  background: var(--surface-3);
}
.cal-cell.is-today {
  box-shadow: inset 0 0 0 1px rgba(34, 211, 166, 0.45);
}
.cal-cell.is-selected {
  background: linear-gradient(145deg, rgba(34, 211, 166, 0.25), rgba(56, 189, 248, 0.15));
  border-color: rgba(34, 211, 166, 0.5);
}
.cal-cell.has-matches .cal-daynum {
  font-weight: 800;
}
.cal-daynum {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.cal-dots {
  display: flex;
  gap: 2px;
  height: 6px;
  align-items: center;
}
.cal-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.cal-count {
  position: absolute;
  top: 3px;
  right: 4px;
  font-size: 9px;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--mono);
  line-height: 1;
}
.cal-day-nav {
  margin-top: 4px;
}
.cal-selected-meta {
  text-align: center;
  flex: 1;
  min-width: 0;
  padding: 0 8px;
}
.cal-selected-date {
  display: block;
  font-size: 16px;
  font-family: var(--font);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
  white-space: normal;
}
.cal-selected-meta strong {
  display: block;
  font-size: 16px;
  font-family: var(--font);
  font-weight: 900;
  white-space: normal;
}
.cal-selected-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  background: var(--surface-2);
  padding: 4px 12px;
  border-radius: 999px;
}
.cal-selected-ymd {
  font-family: var(--mono);
  font-weight: 800;
  color: var(--accent, #38bdf8);
  letter-spacing: 0.02em;
}

@media (min-width: 480px) {
  .cal-cell { min-height: 52px; }
  .cal-daynum { font-size: 15px; }
}

/* Settings */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-group select, .form-group input[type="text"] {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--surface-2);
  color: var(--text);
}
.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px;
  font-size: 12px;
  font-weight: 600;
}
.btn-row { display: flex; gap: 8px; margin-top: 8px; }
.btn {
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #14b8a6);
  color: #042f2e;
  flex: 1;
}
.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

/* Empty */
.empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-2);
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
}

/* Bottom nav */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  height: calc(var(--bottom-h) + env(safe-area-inset-bottom, 0px));
}
html[data-theme="light"] .bottom-nav { background: rgba(255, 255, 255, 0.94); }
.bottom-nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  height: var(--bottom-h);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  transition: color 0.12s;
}
.bottom-nav a svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.bottom-nav a.is-active { color: var(--accent); }

/* Footer */
.site-footer {
  max-width: var(--max);
  margin: 12px auto 0;
  padding: 12px 14px 24px;
  color: var(--text-3);
  font-size: 12px;
  text-align: center;
}
.site-footer a { text-decoration: underline; text-underline-offset: 2px; color: var(--text-2); }
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 10px;
}

/* Utils */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.page-title {
  font-size: clamp(1.5rem, 5vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  line-height: 1.2;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 10px;
  align-items: center;
}
.section-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin: 4px 0 10px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom-h) + 18px);
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--bg);
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 70;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 15px;
}

html[data-reduced-motion="1"] .live-pill__dot,
html[data-reduced-motion="1"] .filters .live-dot { animation: none; }

/* Countdown — upcoming fixtures */
.countdown--sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(99, 102, 241, 0.14));
  border: 1px solid rgba(56, 189, 248, 0.28);
  font-size: 13px;
  font-weight: 800;
  color: var(--accent, #38bdf8);
  white-space: nowrap;
}
.countdown--sm .countdown__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.countdown--sm .countdown__digits {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.countdown--sm.is-done {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.countdown--hero {
  margin-top: 6px;
  text-align: center;
}
.countdown--hero .countdown__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(44px, 1fr));
  gap: 8px;
  max-width: 280px;
  margin: 0 auto;
}
.countdown__grid > div {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 4px 6px;
  min-width: 0;
}
.countdown__grid span[data-cd] {
  display: block;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.countdown__grid small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.countdown--hero.is-done .countdown__label {
  color: #4ade80;
}
.hero-card__kick--sub {
  margin-top: 8px;
  font-size: 12px !important;
  opacity: 0.75;
}

/* Match article pack */
.tabs__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4em;
  height: 1.4em;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-2);
  vertical-align: middle;
}
.tabs button.is-active .tabs__count {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.35);
  color: var(--accent, #38bdf8);
}

.article-pack {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.article-pack__item {
  border-bottom: 1px solid var(--border);
}
.article-pack__item:last-child {
  border-bottom: 0;
}
.article-pack__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 2px;
  color: inherit;
  text-decoration: none;
  transition: background 0.12s ease;
  border-radius: 8px;
}
.article-pack__link:hover {
  background: rgba(255, 255, 255, 0.03);
}
.article-pack__link:hover .article-pack__title {
  color: var(--accent, #38bdf8);
}
.article-pack__when {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent, #38bdf8);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.article-pack__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
}
.article-pack__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
}
.article-pack__source {
  color: var(--text-2);
}
.article-pack__date {
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.article-pack__ext {
  margin-left: auto;
  opacity: 0.55;
  font-size: 13px;
}
.article-pack--full .article-pack__title {
  font-size: 16px;
}
.link-btn {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 800;
  color: var(--accent, #38bdf8);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
