@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── Design tokens ── */
:root {
  /* Outcome / semantic */
  --green:      #16A34A;   /* win / positive stat */
  --green-lt:   #F0FDF4;
  --green-mid:  #BBF7D0;
  --green-hi:   #22C55E;   /* brand logo accent */
  --amber:      #D97706;   /* draw / neutral */
  --amber-lt:   #FFFBEB;
  --amber-mid:  #FDE68A;
  --red:        #DC2626;   /* loss / negative stat */
  --red-lt:     #FEF2F2;
  --red-mid:    #FECACA;

  /* Interactive — links, CTAs, nav active */
  --blue:       #2563EB;
  --blue-lt:    #EFF6FF;
  --blue-mid:   #BFDBFE;
  --blue-hi:    #3B82F6;

  /* Surfaces */
  --bg:         #FFFFFF;
  --surface:    #F8FAFC;
  --surface2:   #F1F5F9;
  --border:     #E2E8F0;
  --border2:    #CBD5E1;

  /* Text */
  --text:       #0F172A;
  --text2:      #1E293B;
  --muted:      #475569;
  --muted2:     #64748B;

  /* Header / footer */
  --header-bg:     #0A0F1E;
  --header-border: #1E293B;
  --header-text:   #F1F5F9;
  --header-muted:  #94A3B8;

  /* Type */
  --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --serif: 'Plus Jakarta Sans', system-ui, sans-serif; /* fallback — Lora removed, kept token for compatibility */

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;

  /* Spacing rhythm */
  --section-gap: 40px;
  --card-gap:    16px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); text-decoration: underline; }

/* ── Heading type scale ── */
h1, h2, h3 { margin: 0; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(22px, 3.5vw, 30px); font-weight: 800; letter-spacing: -0.5px; }
h2 { font-size: 17px; font-weight: 700; }
h3 { font-size: 14px; font-weight: 700; }
/* Section-level subheadings between content blocks */
.section-subheading {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 14px;
}

/* ── Accessibility utility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Site Header ── */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  padding: 0 32px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 300;
  box-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.site-logo {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 17px;
  color: var(--header-text);
  letter-spacing: -0.5px;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}
.site-logo:hover { text-decoration: none; color: var(--header-text); }
.site-logo span { color: var(--green-hi); }

/* ── Nav ── */
.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--header-muted);
  padding: 7px 14px;
  border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--sans);
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link:hover { color: var(--header-text); background: rgba(255,255,255,0.07); text-decoration: none; }
.nav-link.active { color: var(--blue-hi); background: rgba(59,130,246,0.15); font-weight: 600; }
/* Explicit nav hover - don't let a:hover blue underline fire on nav */
.site-nav a:hover { text-decoration: none; }

/* ── Leagues dropdown ── */
.nav-dropdown { position: relative; }
.nav-dropdown-btn { cursor: pointer; }
.nav-chevron {
  transition: transform 0.2s;
  flex-shrink: 0;
}
.nav-dropdown.open .nav-chevron { transform: rotate(180deg); }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 16px;
  min-width: 480px;
  z-index: 400;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }

.nav-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 12px;
}
.nav-dropdown-group-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted2);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.nav-dropdown-item {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  padding: 4px 0;
  transition: color 0.12s;
  text-decoration: none;
}
.nav-dropdown-item:hover { color: var(--blue); text-decoration: none; }

/* ── Hamburger ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--header-muted);
  border-radius: var(--r-sm);
  transition: background 0.15s;
  flex-shrink: 0;
}
.nav-toggle:hover { background: rgba(255,255,255,0.08); color: var(--header-text); }
.nav-toggle svg { display: block; }

/* ── Page subheader band ── */
/* A thin coloured band that bridges the dark header to the white content,
   giving the page a clear top hierarchy rather than a jarring black→white cut. */
.page-band {
  background: var(--header-bg);
  border-bottom: 3px solid var(--blue);
  padding: 10px 32px 12px;
}
.page-band-inner {
  max-width: 1300px;
  margin: 0 auto;
  font-size: 12px;
  color: var(--header-muted);
}
.page-band-inner a { color: #94A3B8; text-decoration: none; }
.page-band-inner a:hover { color: var(--header-text); text-decoration: none; }
.page-band-inner .sep { margin: 0 6px; opacity: 0.4; }

/* ── Site Footer ── */
.site-footer {
  background: var(--header-bg);
  border-top: 1px solid var(--header-border);
  padding: 40px 32px 24px;
  margin-top: auto;
}
.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--header-border);
  margin-bottom: 20px;
}
.footer-brand {
  font-weight: 800;
  font-size: 16px;
  color: var(--header-text);
  margin-bottom: 8px;
}
.footer-brand span { color: var(--green-hi); }
.footer-tagline {
  font-size: 12px;
  color: var(--header-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.footer-meta-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-link {
  font-size: 12px;
  color: var(--header-muted);
  transition: color 0.15s;
  text-decoration: none;
}
.footer-link:hover { color: var(--header-text); text-decoration: none; }

.footer-link-rg {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.footer-rg-badge {
  font-size: 9px;
  font-weight: 700;
  background: #b91c1c;
  color: #fff;
  border-radius: 3px;
  padding: 1px 4px;
  letter-spacing: 0.3px;
  line-height: 1.4;
}

.footer-link-x {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.footer-x-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  display: block;
}

.footer-leagues {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px 12px;
}
.footer-col-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--header-muted);
  margin-bottom: 8px;
}
.footer-league-link {
  display: block;
  font-size: 12px;
  color: var(--header-muted);
  padding: 2px 0;
  transition: color 0.12s;
  text-decoration: none;
}
.footer-league-link:hover { color: var(--header-text); text-decoration: none; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: var(--header-muted);
}

/* ── Section headings ── */
.section-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.section-heading-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
}
.section-heading-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
}

/* ── Result badges ── */
.result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
  flex-shrink: 0;
}
.result-w { background: var(--green); }
.result-d { background: var(--amber); }
.result-l { background: var(--red);   }

/* ── Form strip ── */
.form-strip { display: flex; gap: 3px; align-items: center; }

/* ── Stat chip ── */
.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 3px 9px;
  font-size: 12px;
}
.chip-label { color: var(--muted); font-weight: 500; }
.chip-value { color: var(--text); font-weight: 700; }

/* ── CTA / affiliate button ── */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--r-md);
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
  white-space: nowrap;
}
.cta-btn:hover { background: var(--blue-hi); text-decoration: none; transform: translateY(-1px); }
.cta-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--blue-mid);
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.cta-btn-outline:hover { background: var(--blue-lt); border-color: var(--blue); text-decoration: none; }

/* ── Data table (shared) ── */
.data-table-wrap {
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  background: var(--surface2);
  color: var(--muted);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 2px solid var(--border2);
  white-space: nowrap;
}
.data-table th.num,
.data-table td.num { text-align: right; }
.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface); }
.data-table .td-strong { color: var(--text); font-weight: 600; }
.data-table .td-muted  { color: var(--muted); font-size: 12px; }
.data-table .td-green  { color: var(--green); font-weight: 600; }
.data-table .td-red    { color: var(--red);   font-weight: 600; }
.data-table .td-amber  { color: var(--amber); font-weight: 600; }

/* ── Card ── */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.card-eyebrow {
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

/* ── Live/update dot ── */
.live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-hi);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── Skeleton loader ── */
.skeleton {
  background: linear-gradient(90deg, var(--surface2) 25%, var(--border) 50%, var(--surface2) 75%);
  background-size: 200% 100%;
  animation: skeleton-sweep 1.5s infinite;
  border-radius: 4px;
}
@keyframes skeleton-sweep {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Utility ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
.text-green  { color: var(--green);  }
.text-red    { color: var(--red);    }
.text-amber  { color: var(--amber);  }
.text-muted  { color: var(--muted);  }
.text-muted2 { color: var(--muted2); }
.text-blue   { color: var(--blue);   }
.font-bold   { font-weight: 700; }
.font-semi   { font-weight: 600; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .site-header { padding: 0 16px; height: auto; min-height: 58px; flex-wrap: wrap; }
  .page-band { padding: 8px 16px 10px; }
  .site-footer { padding: 28px 16px 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-leagues { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 4px; }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 12px;
    border-top: 1px solid var(--header-border);
    order: 3;
  }
  .site-nav.open { display: flex; }
  .nav-toggle    { display: block; }
  .nav-link { font-size: 14px; padding: 10px 12px; }

  /* Dropdown becomes inline on mobile — collapsed by default, tap to expand */
  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 12px;
    min-width: 0;
    background: transparent;
    display: none;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-grid { grid-template-columns: repeat(2, 1fr); gap: 8px 0; }
  .nav-dropdown-item { font-size: 13px; padding: 6px 0; color: var(--header-muted); }
  .nav-dropdown-item:hover { color: var(--header-text); }
  .nav-dropdown-group-label { color: var(--header-muted); margin-top: 8px; }
  .nav-chevron { display: inline; }
}

/* ── API Enrichment Section ─────────────────────────────────────── */
.enrich-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .enrich-grid { grid-template-columns: 1fr; }
}
.enrich-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 18px;
}
.enrich-panel-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.enrich-injury { max-width: 400px; }

/* ── Team API Stats ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .team-api-grid { grid-template-columns: 1fr !important; }
}

/* ── Help tooltip ─────────────────────────────────────────────── */
.help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  font-size: 9px;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
  font-style: normal;
  flex-shrink: 0;
  transition: background 0.12s;
}
.help-icon:hover { background: var(--blue-lt); color: var(--blue); border-color: var(--blue-mid); }

/* ── Shared status pills ── */
/* Use these classes in build scripts instead of hardcoded hex pill styles. */
.spill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid;
}
.spill-green  { background: var(--green-lt);  border-color: var(--green-mid); color: var(--green);  }
.spill-red    { background: var(--red-lt);    border-color: var(--red-mid);   color: var(--red);    }
.spill-amber  { background: var(--amber-lt);  border-color: var(--amber-mid); color: var(--amber);  }
.spill-blue   { background: var(--blue-lt);   border-color: var(--blue-mid);  color: var(--blue);   }
.spill-neutral{ background: var(--surface);   border-color: var(--border);    color: var(--muted);  }

/* ── Archive / notice banners ── */
/* Amber warning strip used on archived season pages and info notices. */
.arch-banner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--amber-lt);
  border: 1px solid var(--amber-mid);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 16px;
}
.arch-banner a { color: var(--amber); text-decoration: underline; }

/* ── Fixture rows ── */
.fx-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  min-height: 42px;
}
.fx-card:last-child { border-bottom: none; }
.fx-card:hover .fx-cta { text-decoration: underline; }
.fx-card:hover .fx-odds-box {
  background: var(--blue-lt);
  border-color: var(--blue-mid);
}
.fx-meta {
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
  white-space: nowrap;
  width: 42px;
}
.fx-meta-wide {
  width: 120px;
}
.fx-team-home {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}
.fx-team-away {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.fx-team-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.fx-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}
.fx-league {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  width: 120px;
  white-space: nowrap;
  overflow: hidden;
}
.fx-vs {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}
.fx-odds-group {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.fx-odds-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 4px 8px;
  text-align: center;
  min-width: 46px;
  transition: background 0.12s, border-color 0.12s;
}
.fx-odds-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
  margin-bottom: 2px;
}
.fx-odds-val {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.fx-cta {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 72px;
  text-align: right;
}
.fx-date-header {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 7px 16px 5px;
  border-top: 1px solid var(--border);
  background: var(--surface2);
}
.fx-date-header:first-child { border-top: none; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.fx-expand-btn {
  display: block;
  padding: 8px 16px;
  background: none;
  border: none;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.fx-expand-btn:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .fx-meta, .fx-meta-wide { display: none; }
  .fx-league { display: none; }
  .fx-logo { display: none; }
  .fx-odds-box { min-width: 40px; padding: 3px 5px; }
  .fx-odds-val { font-size: 12px; }
  .fx-team-name { font-size: 12px; }
  .fx-cta { min-width: 56px; font-size: 11px; }
}

/* ── Scroll-to-top button ── */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, background 0.15s, border-color 0.15s, color 0.15s;
  z-index: 250;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.scroll-top-btn.stt-visible {
  opacity: 1;
  pointer-events: auto;
}
.scroll-top-btn:hover {
  background: var(--blue-lt);
  border-color: var(--blue-mid);
  color: var(--blue);
}
@media (max-width: 560px) {
  .scroll-top-btn { bottom: 16px; right: 16px; width: 34px; height: 34px; }
}

/* ── Dark mode ── */
@media (prefers-color-scheme: dark) {
  :root {
    /* Semantic — slightly brightened so they pop on dark surfaces */
    --green:      #22C55E;
    --green-lt:   #052e16;
    --green-mid:  #14532d;
    --green-hi:   #4ade80;
    --amber:      #FBBF24;
    --amber-lt:   #1c1002;
    --amber-mid:  #78350f;
    --red:        #F87171;
    --red-lt:     #1f0707;
    --red-mid:    #7f1d1d;

    /* Interactive */
    --blue:       #60A5FA;
    --blue-lt:    #0c1a3e;
    --blue-mid:   #1e3a8a;
    --blue-hi:    #93C5FD;

    /* Surfaces */
    --bg:         #0F172A;
    --surface:    #1E293B;
    --surface2:   #334155;
    --border:     #334155;
    --border2:    #475569;

    /* Text */
    --text:       #F1F5F9;
    --text2:      #CBD5E1;
    --muted:      #94A3B8;
    --muted2:     #94A3B8;

    /* Header stays essentially the same — deepen slightly */
    --header-bg:     #020617;
    --header-border: #1E293B;
    --header-text:   #F1F5F9;
    --header-muted:  #94A3B8;
  }

  /* Nav dropdown needs a shadow lift on dark bg */
  .nav-dropdown-menu {
    box-shadow: 0 8px 32px rgba(0,0,0,0.55);
    border-color: var(--border2);
  }
}

/* ── Share button ── */
.share-wrap {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; font-family: var(--sans);
  color: var(--muted); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 6px 12px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.share-btn:hover {
  background: var(--green-lt);
  border-color: var(--green-mid);
  color: var(--green);
}
.share-drop {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 200; min-width: 148px;
  overflow: hidden;
}
.share-opt {
  display: block; width: 100%;
  padding: 10px 14px;
  font-size: 13px; font-weight: 600; font-family: var(--sans);
  color: var(--text); background: none; border: none;
  text-align: left; text-decoration: none;
  cursor: pointer;
  transition: background 0.12s;
}
.share-opt:hover { background: var(--surface); color: var(--green); }
/* On mobile, view-header right column (view-meta + share) wraps below team name */
@media (max-width: 560px) {
  .view-header { flex-wrap: wrap; }
  .view-header > div:last-child {
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100%;
    justify-content: flex-start;
  }
}
