/* ─── Design Tokens ──────────────────────────────────────────────────────── */
:root {
  --navy:        #0D1B2A;
  --cream:       #F5F0E8;
  --gold:        #fcae00;
  --gold-dim:    #c89000;
  --card:        #1A2A3A;
  --card-light:  #243448;
  --card-hover:  #2a3d52;
  --border:      rgba(255, 255, 255, 0.08);
  --muted:       #7a93aa;
  --success:     #3a9e6e;
  --warn:        #c9843c;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  --radius:    12px;
  --radius-sm:  8px;
  --radius-xs:  5px;
  --shadow:    0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --transition: 0.18s ease;

  --container: 1240px;
  --nav-h: 60px;
}

/* ─── Reset / Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

img, svg { display: block; max-width: 100%; }

/* ─── Utility ────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--card);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--cream);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
  border-left: 4px solid var(--gold);
  padding-left: 12px;
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 40px;
  padding-left: 16px;
}

/* ─── Nav ────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(13, 27, 42, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.logo-accent { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--card-light);
  color: var(--gold);
}

.nav-short { display: none; }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
@keyframes heroGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 20px 60px;
  background: linear-gradient(
    135deg,
    #0a0e27 0%,
    #1a1060 25%,
    #0d2b4e 50%,
    #162a16 75%,
    #0a0e27 100%
  );
  background-size: 400% 400%;
  animation: heroGradient 8s ease infinite;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 60%,
    rgba(252, 174, 0, 0.08) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.hero-inner { max-width: 680px; }

.hero-eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--cream);
  margin-bottom: 18px;
  letter-spacing: -2px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--muted);
  margin-bottom: 14px;
}

.host-nations {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
}

.host-nations .fi {
  font-size: 1.3rem;
  margin-right: 0.3rem;
  border-radius: 3px;
}

.dot { color: rgba(252, 174, 0, 0.6); }

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.cd-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px 12px;
  min-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.cd-block span {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  min-width: 2ch;
  text-align: center;
}

.cd-block em {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.countdown-live {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  padding: 20px;
}

.live-phase-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
}

.phase-icon {
  font-size: 36px;
}

.phase-label {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phase-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
}

.hero-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 40px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}

.hero-cta:hover {
  background: #d9b85c;
  transform: translateY(-2px);
  text-decoration: none;
}

.hero-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-cta-schedule {
  display: inline-block;
  background: transparent;
  border: 2px solid #fcae00;
  color: #fcae00;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 32px;
  border-radius: 40px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background var(--transition), transform var(--transition);
}

.hero-cta-schedule:hover {
  background: rgba(252,174,0,0.1);
  transform: translateY(-2px);
}

/* ─── How It Works ───────────────────────────────────────────────────────── */
.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.format-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color var(--transition);
}

.format-card:hover { border-color: var(--gold); }

.format-icon { font-size: 1.8rem; margin-bottom: 12px; }

.format-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--cream);
}

.format-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

.bracket-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  justify-content: center;
}

.bb-step {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.bb-step.bb-final {
  color: var(--gold);
  font-weight: 700;
}

.bb-arrow {
  color: var(--border);
  font-size: 1rem;
}

/* ─── Teams Grid ─────────────────────────────────────────────────────────── */
#teams-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.group-block {}

.group-label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-left: 14px;
  border-left: 4px solid var(--gold);
}

.group-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* ─── Group panel buttons ───────────────────────────────────────────────────── */
.group-header-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.group-header-row .group-label { margin-bottom: 0; }

.group-panel-btns { display: flex; gap: 6px; }

.group-panel-btn {
  background: transparent;
  border: 1px solid rgba(252,174,0,0.4);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #fcae00;
  cursor: pointer;
  font-family: var(--font-body);
  white-space: nowrap;
  letter-spacing: 0.03em;
  transition: all 0.15s;
}
.group-panel-btn:hover { background: rgba(252,174,0,0.1); border-color: #fcae00; }
.group-panel-btn-active {
  background: rgba(252,174,0,0.15);
  border-color: #fcae00;
  color: #fcae00;
}

/* Collapsible inline panel */
.group-inline-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.group-panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px;
  margin-top: 12px;
}

/* Fixtures panel */
.gfp-matchday-mt { margin-top: 16px; }
.gfp-md-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.gfp-row {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
}
.gfp-row:last-child { border-bottom: none; }
.gfp-main {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.gfp-ft { color: #fcae00; }
.gfp-live { color: #ef4444; }
.gfp-min { font-size: 11px; }
.gfp-vs-txt { color: rgba(255,255,255,0.4); }
.gfp-info {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
  padding-left: 22px;
}
.gfp-time { color: rgba(255,255,255,0.4); }

/* Preview panel */
.gpp-intro {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin: 0 0 16px;
}

.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--conf-color, var(--border));
  border-radius: var(--radius);
  padding: 20px 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition),
              transform var(--transition), box-shadow var(--transition);
  text-align: center;
  position: relative;
}

.team-card:hover {
  border-color: var(--conf-color, var(--gold));
  border-top-color: var(--conf-color, var(--gold));
  background: var(--card-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--conf-color, var(--gold)) 30%, transparent);
}

.team-card.spotlight {
  border-top-width: 3px;
}

.team-flag {
  font-size: 2.4rem;
  line-height: 1;
  display: block;
}

.team-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cream);
  line-height: 1.3;
}

.team-conf {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  padding: 3px 8px;
  border-radius: 12px;
}

.team-spotlight-badge {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─── Group Previews ─────────────────────────────────────────────────────── */
#groups-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.group-preview-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.group-preview-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  text-align: left;
  transition: background var(--transition);
}

.group-preview-header:hover { background: var(--card-hover); }

.gp-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  min-width: 80px;
}

.gp-teams {
  font-size: 0.88rem;
  color: var(--muted);
  flex: 1;
}

.gp-toggle {
  font-size: 0.8rem;
  color: var(--muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.group-preview-body {
  padding: 0 22px 24px;
  border-top: 1px solid var(--border);
}

.gp-intro {
  font-size: 0.95rem;
  color: var(--cream);
  line-height: 1.7;
  margin-top: 18px;
  margin-bottom: 20px;
}

.gp-callouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--navy);
  border-radius: var(--radius-sm);
  padding: 14px;
  border: 1px solid var(--border);
}

.callout-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }

.callout div { display: flex; flex-direction: column; gap: 2px; }
.callout strong { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.callout span { font-weight: 700; font-size: 0.95rem; color: var(--cream); }
.callout p { font-size: 0.82rem; color: var(--muted); margin-top: 4px; line-height: 1.5; }

.gp-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  margin-top: 20px;
}

.top-fixture {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 20px;
}

.fixture-match {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cream);
  margin-bottom: 4px;
}

.fixture-story {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.5;
}

.fixture-spice { font-size: 0.82rem; color: var(--gold); }

.projected-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.projected-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 10px 8px;
  border-bottom: 1px solid var(--border);
}

.projected-table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--cream);
}

.pt-pos {
  font-weight: 700;
  color: var(--muted);
  width: 28px;
}

.pt-status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  white-space: nowrap;
}

.pt-status.qualified { background: rgba(58, 158, 110, 0.2); color: #5dc89a; }
.pt-status.third     { background: rgba(252, 174, 0, 0.2); color: var(--gold); }
.pt-status.underdog  { background: rgba(255, 255, 255, 0.06); color: var(--muted); }

.heartbreak {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  padding: 12px 14px;
  background: var(--navy);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* ─── Glossary ───────────────────────────────────────────────────────────── */
.glossary-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 800px;
}

.glossary-item {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.glossary-item:has(.glossary-term[aria-expanded="true"]) {
  border-color: rgba(252, 174, 0, 0.3);
}

.glossary-term {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--cream);
  transition: background var(--transition);
}

.glossary-term:hover { background: var(--card); }

.glossary-icon {
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
}

.glossary-def {
  padding: 0 20px 18px;
  border-top: 1px solid var(--border);
}

.glossary-def p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
  padding-top: 14px;
}

.glossary-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin-top: 16px;
}

.glossary-video iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
  border-radius: 8px;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  background: #0a1520;
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer p { font-size: 0.88rem; color: var(--muted); }
.footer strong { color: var(--cream); }
.footer a { color: var(--gold); font-size: 0.88rem; }
.footer-sources { font-size: 0.8rem !important; opacity: 0.6; }

/* ─── Modal ──────────────────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal.open {
  pointer-events: all;
  opacity: 1;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 720px;
  max-height: calc(100svh - 40px);
  overflow-y: auto;
  box-shadow: var(--shadow);
  transform: translateY(20px);
  transition: transform 0.2s ease;
  margin-top: var(--nav-h);
}

.modal.open .modal-panel {
  transform: translateY(0);
}

.modal-close-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  padding: 12px 14px 0;
  background: var(--card);
  pointer-events: none;
}

.modal-close,
.player-modal-close {
  pointer-events: all;
  width: 36px;
  height: 36px;
  background: var(--card-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--muted);
  transition: background var(--transition), color var(--transition);
  border: 1px solid var(--border);
}

.modal-close:hover,
.player-modal-close:hover { background: var(--card-hover); color: var(--cream); }

.modal-body { padding: 0 24px 32px; }

/* Modal Header */
.modal-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 4px 24px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-flag { font-size: 3.5rem; line-height: 1; flex-shrink: 0; }

.modal-title-block { flex: 1; min-width: 0; }

.modal-country {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 10px;
}

.modal-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.meta-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  padding: 4px 10px;
  border-radius: 14px;
}

.meta-group {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--navy);
  padding: 4px 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.meta-spotlight {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
}

/* WC Stats Bar */
.modal-wc-bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  overflow-x: auto;
}

.wc-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 20px 14px 0;
  margin-right: 20px;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}

.wc-stat:last-child { border-right: none; }

.wc-stat span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--cream);
  white-space: nowrap;
}

.wc-stat em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Modal Sections */
.modal-section {
  margin-top: 28px;
  padding-bottom: 4px;
}

.msec-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 14px;
}

.team-story {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--cream);
  font-style: italic;
  border-left: 3px solid var(--gold);
  padding-left: 16px;
}

/* Key Players */
.key-players {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.key-player {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.key-player.key-star { border-left: 3px solid var(--gold); }
.key-player.key-young { border-left: 3px solid #5dc89a; }

.kp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.kp-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cream);
}

.kp-type {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--muted);
}

.kp-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.kp-why {
  font-size: 0.85rem;
  color: var(--cream);
  line-height: 1.55;
  opacity: 0.85;
}

/* Tactical Shape */
.tactic-block {
  margin-bottom: 14px;
  padding: 12px 14px;
  background: var(--navy);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.tactic-block strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.tactic-block p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--cream);
}

/* WC History */
.wc-history {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.wc-year {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wc-yr {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}

.wc-result {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Fun Fact */
.fun-fact-section {
  background: var(--navy);
  border: 1px solid rgba(252, 174, 0, 0.2);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.fun-fact {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--cream);
}

/* Squad */
.squad-note, .no-squad-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.squad-position-group { margin-bottom: 20px; }

.squad-pos-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.squad-players {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.squad-player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-xs);
  transition: background 0.15s ease, padding-left 0.15s ease;
}

.squad-player-row { cursor: pointer; }

.squad-player-row:hover {
  background: rgba(252, 174, 0, 0.06);
  padding-left: 1.75rem;
}

.squad-player-row:hover .sp-name { color: var(--gold); }

.sp-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  width: 26px;
  text-align: center;
  flex-shrink: 0;
}

.sp-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sp-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-club {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-league-badge {
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(93, 200, 154, 0.15);
  color: #5dc89a;
  padding: 1px 5px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 4px;
}

.sp-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.sp-value {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
}

.sp-caps {
  font-size: 0.72rem;
  color: var(--muted);
}

/* Compact modal info */
.compact-info { display: flex; flex-direction: column; gap: 2px; }

.ci-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  transition: background var(--transition);
}

.ci-row:hover { background: var(--navy); }

.ci-row span { font-size: 0.85rem; color: var(--muted); }
.ci-row strong { font-size: 0.9rem; color: var(--cream); font-weight: 600; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .group-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section { padding: 52px 0; }

  .gp-callouts { grid-template-columns: 1fr; }

  .modal-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .modal-flag { font-size: 2.8rem; }

  .wc-stat { padding: 10px 16px 10px 0; margin-right: 16px; }

  .key-players { grid-template-columns: 1fr; }

  .wc-history { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .group-cards { grid-template-columns: repeat(2, 1fr); }
  .group-panel-btns { gap: 4px; }
  .group-panel-btn { padding: 3px 8px; font-size: 11px; }

  .countdown { gap: 8px; }
  .cd-block { padding: 12px 14px 10px; min-width: 60px; }
  .cd-block span { font-size: 1.5rem; }
  .phase-icon  { font-size: 28px; }
  .phase-label { font-size: 18px; }
  .phase-sub   { font-size: 12px; }

  .nav-inner { font-size: 13px; padding: 8px 10px; flex-wrap: nowrap; overflow-x: auto; gap: 4px; }
  .nav-logo { font-size: 18px; white-space: nowrap; }
  .nav-links a { padding: 4px 8px; white-space: nowrap; }
  .nav-full { display: none; }
  .nav-short { display: inline; }

  .modal { padding: 0; }
  .modal-panel { max-height: 100svh; border-radius: 0; margin-top: 0; max-width: 100%; }
}

@media (max-width: 400px) {
  .group-cards { grid-template-columns: repeat(2, 1fr); }
  .team-flag-icon { font-size: 1.8rem; }
}

/* ─── Flag Icons ─────────────────────────────────────────────────────────── */
.team-flag-icon {
  font-size: 2.4rem;
  line-height: 1;
  display: block;
  border-radius: 4px;
  overflow: hidden;
}

/* ─── Third-Place Explainer ──────────────────────────────────────────────── */
.tpc-card {
  margin-top: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.tpc-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--cream);
  cursor: pointer;
  list-style: none;
  transition: background var(--transition);
}

.tpc-summary::-webkit-details-marker { display: none; }
.tpc-summary:hover { background: var(--card-hover); }

.tpc-toggle {
  font-size: 0.8rem;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform var(--transition);
}

details[open] .tpc-toggle { transform: rotate(180deg); }

.tpc-body {
  padding: 0 22px 22px;
  border-top: 1px solid var(--border);
}

.tpc-intro {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 16px;
  margin-bottom: 18px;
  line-height: 1.6;
}

.tpc-steps { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }

.tpc-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-num {
  width: 26px;
  height: 26px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.tpc-step div strong { font-size: 0.9rem; color: var(--cream); display: block; margin-bottom: 3px; }
.tpc-step div p { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

.tpc-example-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.tpc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.tpc-table th {
  text-align: left;
  padding: 7px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.tpc-table td {
  padding: 9px 10px;
  color: var(--cream);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.tpc-adv { color: #5dc89a; font-weight: 700; font-size: 0.8rem; }
.tpc-out { color: var(--muted); font-size: 0.8rem; }
.tpc-note { font-size: 0.78rem; color: var(--muted); line-height: 1.5; font-style: italic; }

/* ─── About Tournament ───────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.about-card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: border-color var(--transition);
}

.about-card:hover { border-color: rgba(252, 174, 0, 0.3); }

.about-highlight {
  border-color: rgba(252, 174, 0, 0.25);
  background: linear-gradient(135deg, var(--navy), #1e1505);
}

.about-icon { font-size: 1.8rem; margin-bottom: 12px; }

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 10px;
}

.about-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

.about-card strong { color: var(--cream); }
.about-card em { font-style: italic; color: var(--gold); }

/* ─── Players to Watch ───────────────────────────────────────────────────── */
.players-tier { margin-bottom: 44px; }
.players-tier:last-child { margin-bottom: 0; }

.tier-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(252, 174, 0, 0.2);
  width: 100%;
}

.tier-label em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--card-light);
  padding: 3px 9px;
  border-radius: 12px;
}

.players-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.player-watch-card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.player-watch-card:hover {
  border-color: rgba(252, 174, 0, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.player-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.15);
}

.player-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.player-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--cream);
  line-height: 1.3;
}

.player-country {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--muted);
}

.player-country .fi { font-size: 0.9rem; border-radius: 2px; }

.player-club {
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0.8;
}

.player-pos-pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 12px;
  background: var(--card-light);
  color: var(--muted);
}

.player-stat {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
  font-style: italic;
}

@media (max-width: 900px) {
  .players-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .players-row {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }
  .player-watch-card {
    flex-shrink: 0;
    width: 155px;
    scroll-snap-align: start;
  }
}

/* ─── WC Historic Moments ────────────────────────────────────────────────── */
.moments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.moment-card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--transition), transform var(--transition);
}

.moment-card:hover {
  border-color: rgba(252, 174, 0, 0.3);
  transform: translateY(-2px);
}

.moment-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.moment-year {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.moment-flags {
  display: flex;
  gap: 4px;
  align-items: center;
}

.moment-flags .fi { font-size: 1.4rem; border-radius: 3px; }

.moment-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--cream);
  line-height: 1.35;
}

.moment-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.moment-yt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  padding: 6px 12px;
  border: 1px solid rgba(252, 174, 0, 0.3);
  border-radius: 20px;
  align-self: flex-start;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}

.moment-yt:hover {
  background: var(--gold);
  color: var(--navy);
  text-decoration: none;
}


@media (max-width: 400px) {
  .group-cards { grid-template-columns: repeat(2, 1fr); }
  .team-flag { font-size: 2rem; }
}

/* ─── Team code badge ────────────────────────────────────────────────────── */
.team-code {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ─── Clickable team links (group preview fixtures + tables) ─────────────── */
.team-link {
  cursor: pointer;
  font-weight: 500;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.team-link:hover {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── Fixture row in group previews ─────────────────────────────────────── */
.fixture-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.fixture-team { display: inline-flex; align-items: center; gap: 5px; }
.fixture-team .fi { font-size: 1rem; border-radius: 2px; }

.fixture-vs {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.gp-sep { color: var(--muted); opacity: 0.5; }

/* ─── View Toggle ────────────────────────────────────────────────────────── */
.view-toggle {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.toggle-btn {
  padding: 0.65rem 1.75rem;
  border-radius: 8px;
  border: 1px solid rgba(252, 174, 0, 0.3);
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.toggle-btn.active {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.toggle-btn:hover:not(.active) {
  border-color: rgba(252, 174, 0, 0.6);
  color: white;
}

/* ─── Match Schedule ─────────────────────────────────────────────────────── */
.schedule-body {
  border-top: 1px solid var(--border);
}

.matchday-block { margin-bottom: 0; }

.matchday-block:first-child .matchday-label { border-top: none; }

.matchday-label {
  padding: 0.4rem 1.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.match-row {
  display: grid;
  grid-template-columns: max-content 32px max-content max-content;
  align-items: center;
  padding: 8px 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  min-height: 40px;
}

.match-row.has-match-number {
  grid-template-columns: 28px max-content 32px max-content max-content;
}

.match-number {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(252, 174, 0, 0.75);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.match-team {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: color 0.15s;
}

.match-team-home { justify-content: flex-start; }
.match-team-away { justify-content: flex-start; }

.match-team:hover { color: var(--gold); }

.match-team .fi { font-size: 1rem; border-radius: 2px; flex-shrink: 0; }

.match-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(252, 174, 0, 0.6);
  font-weight: 800;
  font-size: 0.7rem;
  width: 32px;
  text-align: center;
}

.match-info {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  text-align: left;
  padding-left: 16px;
}

/* ─── Knockout Stage ─────────────────────────────────────────────────────── */
.schedule-stage-divider {
  margin: 1rem 0 0;
  padding: 0.6rem 1.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(252, 174, 0, 0.06);
  border-top: 1px solid rgba(252, 174, 0, 0.25);
  border-bottom: 1px solid rgba(252, 174, 0, 0.15);
}
.ko-date-range {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
  margin-left: auto;
  margin-right: 0.75rem;
}
.match-team.ko-team {
  cursor: default;
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
  font-size: 0.82rem;
}
.match-team.ko-team:hover { color: rgba(255, 255, 255, 0.55); }
.ko-final-card { border-color: rgba(252, 174, 0, 0.3); }
.ko-final-card .gp-label { color: var(--gold); }
.ko-final-row .match-team.ko-team {
  color: rgba(255, 255, 255, 0.75);
  font-style: normal;
  font-weight: 700;
}

@media (max-width: 600px) {
  .view-toggle { flex-wrap: wrap; }
  .toggle-btn { flex: 1; min-width: 140px; padding: 0.65rem 1rem; }
  .match-row {
    grid-template-columns: max-content 24px max-content;
    grid-template-rows: auto auto;
    padding: 8px 1rem;
  }
  .match-row.has-match-number {
    grid-template-columns: 20px max-content 24px max-content;
    grid-template-rows: auto auto;
  }
  .match-team { font-size: 0.8rem; }
  .match-info {
    grid-column: 1 / -1;
    text-align: left;
    padding-left: 0;
    padding-top: 3px;
    font-size: 0.68rem;
    display: block;
  }
  .ko-date-range { display: none; }
}

/* ─── Modal Tabs ─────────────────────────────────────────────────────────── */
.modal-tabs-bar {
  display: flex;
  gap: 4px;
  padding: 12px 20px 0;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.modal-tab {
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  border-radius: 8px 8px 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  position: relative;
  bottom: -1px;
}

.modal-tab:hover { color: rgba(255, 255, 255, 0.75); }

.modal-tab.active {
  color: var(--gold);
  background: var(--navy);
  border-color: var(--border);
  border-bottom-color: var(--navy);
}

.modal-tab-panel[hidden] { display: none; }

/* ─── Road to Glory ──────────────────────────────────────────────────────── */
.rtg-container { padding: 16px 20px 20px; color: white; font-family: inherit; }

.rtg-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.rtg-eyebrow {
  font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.35);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px;
}

.rtg-team-name { font-size: 20px; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 4px; }
.rtg-tier-label { font-size: 11px; color: rgba(255,255,255,0.4); }

.rtg-header-right { text-align: right; flex-shrink: 0; }
.rtg-win-label { font-size: 10px; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.rtg-win-pct { font-size: 32px; font-weight: 900; color: var(--gold); line-height: 1; }

.rtg-section-divider { margin: 20px 0 12px; }
.rtg-divider-line { height: 1px; background: rgba(255,255,255,0.1); margin-bottom: 8px; }
.rtg-divider-label { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.3); letter-spacing: 0.12em; text-transform: uppercase; }

.rtg-match-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.05); gap: 8px;
}
.rtg-match-teams { display: flex; align-items: center; gap: 6px; flex: 1; font-size: 13px; }
.rtg-vs { color: rgba(255,255,255,0.35); font-size: 11px; }
.rtg-opp-name { font-weight: 600; color: white; }
.rtg-prob { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.rtg-word { font-size: 10px; font-weight: 600; min-width: 60px; }

.rtg-assessment {
  margin-top: 12px; padding: 12px 14px;
  background: rgba(252,174,0,0.06); border: 1px solid rgba(252,174,0,0.2);
  border-radius: 8px; font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.65;
}
.rtg-assessment-label { color: var(--gold); font-weight: 700; }

.rtg-knockout-round {
  margin-bottom: 10px; padding: 14px 16px; border-radius: 10px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
}
.rtg-final { background: rgba(252,174,0,0.07); border-color: rgba(252,174,0,0.25); }

.rtg-round-label {
  font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.3);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px;
}
.rtg-final .rtg-round-label { color: var(--gold); }
.rtg-round-opponent { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 4px; }
.rtg-round-opponent strong { color: white; }
.rtg-round-reason { font-size: 12px; color: rgba(255,255,255,0.45); line-height: 1.6; margin-bottom: 10px; }

.rtg-prob-row { display: flex; align-items: center; gap: 8px; }
.rtg-prob-bar-track { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.08); overflow: hidden; }
.rtg-prob-bar-fill { height: 100%; border-radius: 2px; transition: width 0.7s ease; }
.rtg-prob-pct { font-size: 13px; font-weight: 800; min-width: 52px; }
.rtg-prob-emoji { font-size: 12px; }
.rtg-prob-word { font-size: 10px; font-weight: 600; min-width: 62px; }

.rtg-closing {
  margin-top: 16px; padding: 14px 16px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.7;
}
.rtg-historic {
  margin-top: 10px; padding: 12px 14px;
  background: rgba(244,63,94,0.06); border: 1px solid rgba(244,63,94,0.15);
  border-radius: 8px; font-size: 12px; color: rgba(255,255,255,0.55); line-height: 1.65;
}
.rtg-historic strong { color: #f43f5e; }

.rtg-underdog-banner {
  margin-bottom: 12px; padding: 10px 14px;
  background: rgba(251,191,36,0.07); border: 1px solid rgba(251,191,36,0.22);
  border-radius: 8px; font-size: 12px; color: rgba(255,255,255,0.7); line-height: 1.6;
}

.rtg-fairytale-callout {
  margin-top: 12px; padding: 14px 16px;
  background: rgba(167,139,250,0.07); border: 1px solid rgba(167,139,250,0.22);
  border-radius: 10px; font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.7;
}

.rtg-fairytale-callout strong { color: #a78bfa; }

/* ─── FIFA World Cup Facts ───────────────────────────────────────────────── */
.wc-facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.wc-fact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

.wc-fact-card:hover {
  border-color: rgba(252, 174, 0, 0.3);
  transform: translateY(-2px);
}

.wc-fact-icon { font-size: 2rem; margin-bottom: 10px; }

.wc-fact-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 6px;
}

.wc-fact-label {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 768px) { .wc-facts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .wc-facts-grid { grid-template-columns: 1fr; } }

/* ─── Player Modal ───────────────────────────────────────────────────────── */
.player-modal-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  flex-shrink: 0;
  border: 3px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  position: relative;
}
.player-modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.player-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.player-highlights li {
  font-size: 0.92rem;
  color: var(--cream);
  line-height: 1.55;
  padding-left: 20px;
  position: relative;
}

.player-highlights li::before {
  content: '•';
  color: var(--gold);
  position: absolute;
  left: 4px;
  font-size: 1.1em;
}

.player-view-squad {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 26px;
  border-radius: 30px;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition);
}

.player-view-squad:hover {
  background: var(--gold-dim);
  transform: translateY(-2px);
}

/* ─── Squad Player Popup ─────────────────────────────────────────────────── */
@keyframes popupFadeIn {
  from { opacity: 0; transform: scale(0.95) translateY(-50%); }
  to   { opacity: 1; transform: scale(1)    translateY(-50%); }
}

.squad-player-popup {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  background: #1a2744;
  border: 1px solid rgba(252, 174, 0, 0.3);
  border-radius: 12px;
  padding: 1.25rem;
  width: 280px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 400;
  animation: popupFadeIn 0.15s ease forwards;
}

.popup-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease;
}

.popup-close:hover { color: var(--cream); }

.popup-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.popup-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: rgba(252, 174, 0, 0.35);
  min-width: 2rem;
  line-height: 1;
}

.popup-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cream);
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.popup-country {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.popup-position-badge {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  background: rgba(252, 174, 0, 0.12);
  color: var(--gold);
  border-radius: 5px;
}

.popup-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 0.75rem;
}

.popup-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.popup-stat-label {
  font-size: 0.67rem;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.popup-stat-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--cream);
}

.popup-stat-value.gold { color: var(--gold); }

.popup-league-badge {
  margin-top: 0.75rem;
  padding: 0.4rem 0.75rem;
  background: rgba(0, 191, 165, 0.1);
  border: 1px solid rgba(0, 191, 165, 0.25);
  border-radius: 6px;
  font-size: 0.78rem;
  color: #00bfa5;
  text-align: center;
}

@media (max-width: 640px) {
  .squad-player-popup {
    right: 0.5rem;
    left: 0.5rem;
    width: auto;
    top: auto;
    bottom: 1rem;
    transform: none;
    animation: none;
  }
}

/* ─── Player initials fallback (shown when photo fails to load) ─────────── */
.player-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
}

/* ─── Find Your Team Quiz ────────────────────────────────────────────────── */
.quiz-section {
  padding: 5rem 2rem;
  background: #080e1c;
}
.quiz-section-header {
  text-align: center;
  margin-bottom: 2rem;
}
.quiz-section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 900;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.quiz-section-header p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.95rem;
}
.quiz-card-wrapper {
  max-width: 480px;
  margin: 0 auto;
  background: #0d1b2a;
  border-radius: 16px;
  padding: 28px 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.quiz-progress {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-bottom: 28px;
}
.quiz-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
}
.quiz-dot.done { background: #fcae00; }
.quiz-dot.active { background: #fcae00; width: 24px; }
.quiz-question-emoji {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 8px;
}
.quiz-question-text {
  text-align: center;
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 22px;
}
.quiz-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.quiz-option {
  padding: 14px 12px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: inherit;
}
.quiz-option:hover {
  border-color: rgba(252, 174, 0, 0.3);
  background: rgba(255, 255, 255, 0.06);
}
.quiz-option.selected {
  border-color: #fcae00;
  background: rgba(252, 174, 0, 0.12);
  transform: scale(1.02);
}
.quiz-option-emoji { font-size: 1.3rem; }
.quiz-option-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: white;
  line-height: 1.3;
}
.quiz-option.selected .quiz-option-label { color: #fcae00; }
.quiz-option-sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.4;
}
.quiz-next-btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}
.quiz-next-btn.active { background: #fcae00; color: #0d1b2a; }
.quiz-next-btn.disabled {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.2);
  cursor: not-allowed;
}
.quiz-counter {
  text-align: center;
  margin-top: 10px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.2);
}
.quiz-result { color: white; }
.quiz-result-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 8px;
}
.quiz-result-flag {
  text-align: center;
  line-height: 1;
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 3rem;
}
.quiz-result-name {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 900;
  color: white;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 6px;
}
.quiz-result-tagline {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  margin: 0 auto 16px;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  width: fit-content;
}
.quiz-result-hook {
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 14px;
}
.quiz-result-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.quiz-meta-item {
  padding: 9px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.quiz-meta-label {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.quiz-meta-value {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fcae00;
}
.quiz-player-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  background: rgba(252, 174, 0, 0.06);
  border: 1px solid rgba(252, 174, 0, 0.2);
  border-radius: 8px;
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.quiz-player-label {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.quiz-player-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fcae00;
}
.quiz-close-note {
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 12px;
}
.quiz-close-note strong { color: white; }
.quiz-profile-btn {
  width: 100%;
  padding: 13px;
  background: #fcae00;
  border: none;
  border-radius: 10px;
  color: #0d1b2a;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 8px;
}
.quiz-profile-btn:hover { background: #e09a00; }
.quiz-retake-btn {
  width: 100%;
  padding: 11px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 12px;
}
.quiz-retake-btn:hover { border-color: rgba(255, 255, 255, 0.3); color: rgba(255, 255, 255, 0.8); }
.quiz-share-line {
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.25);
}
.quiz-share-line span { color: #fcae00; }
@media (max-width: 500px) {
  .quiz-card-wrapper { padding: 20px 16px; }
  .quiz-options-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── Standings Table ────────────────────────────────────────────────────── */
.standings-section {
  margin-top: 16px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.st-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.st-title {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.st-updated {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
}

.st-placeholder {
  padding: 14px 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.standings-table th {
  padding: 6px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.standings-table th.st-col-pos,
.standings-table th.st-col-team { text-align: left; }

.standings-table td {
  padding: 7px 6px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.st-row { border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.st-row.st-qualifying { border-left: 2px solid #fcae00; }

.st-row .st-col-pos {
  text-align: left;
  color: rgba(255, 255, 255, 0.4);
}

.st-row .st-col-team {
  text-align: left;
  font-weight: 600;
  color: white;
  white-space: nowrap;
}

.st-gd { font-weight: 600; color: rgba(255, 255, 255, 0.5); }
.st-gd.st-gd-pos { color: #4ade80; }
.st-gd.st-gd-neg { color: #f87171; }

.st-pts-val {
  font-weight: 800;
  color: #fcae00;
}

/* ─── Main Standings Grid ────────────────────────────────────────────────── */
.standings-all-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.standings-all-grid .standings-section { margin-top: 0; }

/* Tighten cell padding in the multi-column desktop grid so GD/Pts don't clip */
@media (min-width: 641px) {
  .standings-all-grid .standings-table th,
  .standings-all-grid .standings-table td {
    padding-left: 3px;
    padding-right: 3px;
  }
}
.standings-no-data {
  text-align: center;
  color: rgba(255,255,255,0.35);
  font-size: 14px;
  padding: 24px 0;
}

/* ─── Match Cards ─────────────────────────────────────────────────────────── */
.mc-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 4px;
}

.mc-card-live {
  border-color: #ef4444;
  animation: mc-pulse 2s ease-in-out infinite;
}

@keyframes mc-pulse {
  0%, 100% { border-color: #ef4444; }
  50%       { border-color: rgba(239,68,68,0.3); }
}

.mc-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 10px;
}

.mc-status   { font-weight: 700; }
.mc-live     { color: #ef4444; }
.mc-ft       { color: #4ade80; }
.mc-upcoming { color: rgba(255,255,255,0.55); }
.mc-round    { color: rgba(255,255,255,0.35); font-size: 10px; }
.mc-match-num { font-size: 10px; color: rgba(255,255,255,0.3); margin-right: 6px; }
.mc-bracket  { font-size: 12px; color: rgba(255,255,255,0.6); font-style: italic; font-weight: 400; }

.mc-teams {
  display: flex;
  align-items: center;
}

.mc-team-home {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: white;
}

.mc-team-away {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: white;
}

.mc-card .fi { font-size: 16px; }

.mc-team-clickable {
  cursor: pointer;
  transition: color 0.2s ease;
}
.mc-team-clickable:hover {
  color: var(--gold, #fcae00);
  text-decoration: underline;
}

.mc-score {
  font-size: 20px;
  font-weight: 900;
  color: #fcae00;
  min-width: 20px;
  text-align: center;
  flex-shrink: 0;
  padding: 0 8px;
}

.mc-vs {
  color: rgba(255,255,255,0.25);
  font-size: 11px;
  min-width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.mc-venue {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  margin-top: 5px;
}

/* ── Hero match card carousel ───────────────────── */
#hero-match-cards {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  overflow: visible;
}

.hero-match-cards {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  justify-content: flex-start;
  padding: 0 calc(50vw - 140px);
  scroll-padding-inline: calc(50vw - 140px);
  width: 100%;
  box-sizing: border-box;
}

.hero-match-cards::-webkit-scrollbar { display: none; }
.hero-match-cards { -ms-overflow-style: none; scrollbar-width: none; }


.hero-match-cards .mc-card-live { border-color: #ef4444; }

/* ─── Match minute + events ──────────────────────────────────────────────── */
.mc-minute {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  margin: -2px 0 4px;
  letter-spacing: 0.03em;
}
.mc-minute-ht {
  color: #fcae00;
  font-weight: 700;
  font-size: 12px;
}

.mc-events {
  display: flex;
  gap: 8px;
  padding: 6px 0 2px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 2px;
}
.mc-ev-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mc-ev-home { align-items: flex-start; }
.mc-ev-away { align-items: flex-end; }

.mc-ev-row {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
  max-width: 100%;
}
.mc-ev-away .mc-ev-row { flex-direction: row-reverse; }

.mc-ev-indent { padding-left: 13px; opacity: 0.8; }
.mc-ev-away .mc-ev-indent { padding-left: 0; padding-right: 13px; }

.mc-ev-icon { font-size: 11px; flex-shrink: 0; }
.mc-ev-min  { font-size: 10px; color: rgba(255,255,255,0.4); flex-shrink: 0; }
.mc-ev-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mc-ev-sub-in  { color: #22c55e; font-weight: 700; }
.mc-ev-sub-out { color: #ef4444; font-weight: 700; }
.mc-ev-pen     { font-size: 9px; vertical-align: super; opacity: 0.75; margin-left: 1px; }
.mc-ev-sub-off { font-size: 11px; color: rgba(255,255,255,0.4); }

/* ─── Match Events collapsible (FT) ──────────────────────────────────────── */
.mc-events-section {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mc-events-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  font-family: var(--font-body);
  transition: color 0.15s, border-color 0.15s;
}
.mc-events-btn:hover { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.3); }
.mc-events-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.mc-events-panel.ev-open { overflow: visible; }
.mc-events-panel .mc-events { margin-top: 8px; }

/* ─── Lineups ─────────────────────────────────────────────────────────────── */
.mc-lineup-section {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mc-lineup-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  font-family: var(--font-body);
  transition: color 0.15s, border-color 0.15s;
}
.mc-lineup-btn:hover { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.3); }
.mc-lineup-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}
.mc-lineup-panel.lu-open {
  overflow: visible;
}
.mc-lineup-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}
.mc-lineup-team-hdr {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.mc-lineup-formation {
  font-weight: 400;
  color: rgba(255,255,255,0.35);
  font-size: 10px;
  text-transform: none;
  letter-spacing: 0;
}
.lu-row {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.68);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.lu-row:last-child { border-bottom: none; }
.lu-num { width: 18px; text-align: right; color: rgba(255,255,255,0.28); font-size: 11px; flex-shrink: 0; }
.lu-name { flex: 1; }
.lu-pos { font-size: 10px; color: rgba(255,255,255,0.3); width: 22px; text-align: right; }

.gfp-lineup-wrap { margin-top: 6px; }
.gfp-lineup-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  font-family: var(--font-body);
  transition: color 0.15s;
}
.gfp-lineup-btn:hover { color: rgba(255,255,255,0.65); }
.gfp-lineup-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}
.gfp-lineup-panel.lu-open {
  overflow: visible;
}
.glu-row { font-size: 11px; color: rgba(255,255,255,0.5); line-height: 1.7; padding-top: 3px; }
.glu-team { font-weight: 600; color: rgba(255,255,255,0.72); }
.glu-form { color: rgba(255,255,255,0.32); font-size: 10px; }
.glu-pos { color: rgba(255,255,255,0.28); font-size: 10px; }

@media (max-width: 540px) {
  .mc-lineup-cols { grid-template-columns: 1fr; }
}

/* ─── Schedule Section ────────────────────────────────────────────────────── */
.schedule-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
}

.schedule-header-text { flex: 1; }
.schedule-header-text .section-title { margin-bottom: 4px; }

.sched-toggle-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-family: var(--font-body);
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
  transition: background 0.15s;
}

.sched-toggle-btn:hover { background: rgba(255,255,255,0.14); }

.schedule-collapsible {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.schedule-filter-tabs { margin-top: 16px; }

.schedule-filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.sched-tab {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.55);
  padding: 6px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-family: var(--font-body);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.sched-tab:hover {
  color: white;
  border-color: rgba(255,255,255,0.4);
}

.sched-tab.active {
  background: #fcae00;
  color: #0a0a0a;
  border-color: #fcae00;
  font-weight: 700;
}

.sched-phase-header {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.9);
  margin: 36px 0 4px;
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(245,200,66,0.45);
}

.sched-phase-group:first-child .sched-phase-header { margin-top: 0; }

.sched-date-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  margin: 20px 0 8px;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sched-date-group:first-child .sched-date-header { margin-top: 12px; }

.sched-empty {
  color: rgba(255,255,255,0.35);
  text-align: center;
  padding: 48px 0;
  font-size: 14px;
}

@media (max-width: 640px) {
  #hero-match-cards {
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
  }
  .hero-match-cards {
    padding: 0 16px;
    scroll-padding-inline: 16px;
  }

  .hero-inner  { padding-top: 80px; }
  .hero-title  { font-size: clamp(2.4rem, 10vw, 4rem); }

  /* Hero CTA row — stack vertically */
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 0 16px;
    margin-left: auto;
    margin-right: auto;
    max-width: 400px;
  }
  .hero-cta-row .hero-cta,
  .hero-cta-row .hero-cta-schedule {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Host nations one-liner */
  .host-nations        { gap: 8px; font-size: 12px; }
  .host-nations .fi    { font-size: 16px; }
  .host-nations span   { white-space: nowrap; font-size: 12px; }

  /* Match cards */
  .mc-card             { padding: 8px 12px; }
  .mc-team-home,
  .mc-team-away        { font-size: 12px; }
  .mc-card .fi         { font-size: 14px; }
  /* Standings grid — single column on mobile */
  .standings-all-grid  { grid-template-columns: 1fr; }
  .mc-venue            { font-size: 10px; }
  .mc-score            { font-size: 17px; }

  /* Filter tabs — horizontal scroll */
  .schedule-filter-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 6px;
    padding-bottom: 4px;
  }
  .sched-tab {
    font-size: 12px;
    padding: 5px 10px;
    flex-shrink: 0;
  }
}

/* ── Hero Carousel Cards (renderHeroCard) ─────────── */
.hmc-slot {
  flex: 0 0 88vw;
  max-width: 360px;
  scroll-snap-align: center;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hmc-slot--prev,
.hmc-slot--next {
  opacity: 0.55;
  transform: scale(0.95);
}

.hmc-slot--center {
  opacity: 1;
  transform: scale(1);
}

.hc-card {
  background: var(--card-bg, #1a2540);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.hc-card--center {
  border-color: var(--gold, #fcae00);
  box-shadow: 0 0 20px rgba(252, 174, 0, 0.25);
}

.hc-card--prev,
.hc-card--next {
  border-color: rgba(255,255,255,0.08);
  box-shadow: none;
}

.hc-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hc-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hc-badge--live {
  background: rgba(220, 50, 50, 0.2);
  color: #ff6b6b;
}

.hc-badge--ft {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
}

.hc-badge--upcoming {
  background: rgba(252,174,0,0.15);
  color: var(--gold, #fcae00);
}

.hc-meta {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
}

.hc-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hc-team {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.hc-team--away {
  flex-direction: row-reverse;
  text-align: right;
}

.hc-team-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}

.hc-score {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold, #fcae00);
  white-space: nowrap;
  text-align: center;
  min-width: 60px;
  flex-shrink: 0;
}

.hc-dash {
  color: rgba(255,255,255,0.4);
}

.hc-vs {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
  min-width: 60px;
  flex-shrink: 0;
}

.hc-events {
  display: flex;
  gap: 8px;
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 8px;
}

.hc-event-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.75);
}

.hc-events-home {
  flex: 1;
  text-align: left;
}

.hc-events-away {
  flex: 1;
  text-align: right;
}

.hc-events-away .hc-event-row {
  flex-direction: row-reverse;
}

.hc-events-away .hc-event-detail {
  align-items: flex-end;
}

.hc-event-detail {
  display: flex;
  flex-direction: column;
}

.hc-event-assist {
  font-size: 0.7rem;
  opacity: 0.7;
  margin-top: 2px;
}

.hc-event-icon {
  font-size: 0.75rem;
  flex-shrink: 0;
}

.hc-event-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hc-lineup-wrap {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 8px;
  transition: all 0.35s ease;
}

.hc-lineup-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 6px;
}

.hc-lineup-country {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}

.hc-lineup-formation {
  font-size: 0.65rem;
  opacity: 0.6;
  margin-top: 2px;
  text-align: center;
}

.hc-details-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold, #fcae00);
  text-decoration: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 8px;
  transition: opacity 0.2s ease;
  display: block;
}

.hc-details-link:hover {
  opacity: 0.75;
}

.hc-venue {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 8px;
}

@media (min-width: 640px) {
  .hmc-slot {
    flex: 0 0 280px;
    max-width: 280px;
  }
  .hmc-slot--prev,
  .hmc-slot--next {
    opacity: 0.65;
    transform: scale(0.97);
  }
  .hc-team-name {
    max-width: 80px;
  }
}

@media (min-width: 768px) {
  .hmc-slot--center {
    flex: 0 0 320px;
    max-width: 360px;
  }
}
