@import url('/css/supers.css');

/* CANADA 2026 WORLD CUP - CANADIAN SPORTS DESIGN SYSTEM */
/* A sub-brand of Supers with bold Canadian visual identity */

:root {
  /* Canadian National Colors */
  --canada-red: #FF0000;
  --canada-white: #FFFFFF;
  --canada-red-dark: #CC0000;
  --canada-red-darker: #990000;

  /* Supporting Colors */
  --pitch-green: #1a4d2e;
  --night: #0a0a0a;
  --charcoal: #1a1a1a;
  --ash: #2a2a2a;
  --silver: #cccccc;

  /* Typography - New Design System */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-2: #1a1a1a;
  --bg-3: #2a2a2a;
  --bg-card: #1a1a1a;
  --bg-stripe: rgba(255, 0, 0, 0.05);
  --text: #ffffff;
  --text-dim: #999999;
  --text-dimmer: #666666;
  --accent: #FF0000;
  --accent-glow: #FF3333;
  --accent-soft: rgba(255, 0, 0, 0.1);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);
  --shadow: 0 8px 32px rgba(255, 0, 0, 0.2);
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f5f5f5;
  --bg-3: #e5e5e5;
  --bg-card: #ffffff;
  --bg-stripe: rgba(255, 0, 0, 0.03);
  --text: #0a0a0a;
  --text-dim: #666666;
  --text-dimmer: #999999;
  --accent: #FF0000;
  --accent-glow: #CC0000;
  --accent-soft: rgba(255, 0, 0, 0.08);
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.2);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* CANADIAN STRIPE PATTERN BACKGROUND */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg,
      transparent 0%,
      var(--bg-stripe) 50%,
      transparent 100%
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 100px,
      var(--bg-stripe) 100px,
      var(--bg-stripe) 200px
    );
  pointer-events: none;
  z-index: 0;
}

/* HERO RED GLOW */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60vh;
  background: radial-gradient(ellipse at top, rgba(255, 0, 0, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* NAVIGATION - CANADIAN JERSEY STYLE */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--nav-bg, rgba(250,250,250,0.8));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border, rgba(0,0,0,0.08));
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

[data-theme="dark"] .nav {
  background: rgba(0,0,0,0.8);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
}

.brand-logo {
  width: 28px;
  height: 28px;
}

.brand-text {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
  padding-right: 1rem;
  border-right: 1px solid var(--border);
}

.share-icon {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: all 0.2s;
}

.share-icon:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.theme-toggle {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.theme-toggle:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .sun {
  fill: none;
  stroke: var(--text-dim);
  stroke-width: 2;
}

.theme-toggle .moon {
  fill: var(--text-dim);
}

[data-theme="dark"] .sun { display: none; }
[data-theme="dark"] .moon { display: block; }
[data-theme="light"] .sun { display: block; }
[data-theme="light"] .moon { display: none; }

/* CONTAINER */
.container {
  position: relative;
  z-index: 10;
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 3rem 6rem;
}

/* PAGE (profile pages like alphonso-davies, christine-sinclair, vancouver-base) */
.page {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
}

/* PROFILE PAGE STYLES */
.header {
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border) 50%, transparent);
}

.page .title {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: clamp(2.5rem, 10vw, 5rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.years-epithet {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.years {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.epithet {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-style: italic;
  color: var(--text-dim);
  font-weight: 400;
  max-width: 40ch;
  line-height: 1.4;
}

/* PROFILE CONTENT */
.main-content {
  margin-bottom: 3rem;
}

.body {
  font-family: var(--font-body);
  line-height: 1.8;
}

.body p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.drop-cap {
  float: left;
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 4rem;
  line-height: 0.8;
  margin-right: 0.5rem;
  margin-top: 0.1em;
  color: var(--accent);
  font-weight: 500;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  margin: 3rem 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* SIDEBAR & SUPER CARD */
.sidebar {
  margin: 2rem 0;
}

.super-card {
  background: var(--bg-card, var(--bg-2));
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.super-card-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.super-card-grid {
  display: grid;
  gap: 1rem;
}

.super-card-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.super-card-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.super-card-value {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}

/* PROFILE STATS GRID */
.page .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
  padding: 2rem;
  background: var(--bg-card, var(--bg-2));
  border: 1px solid var(--border);
  border-radius: 8px;
}

.page .stat {
  text-align: center;
}

.page .stat .stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.page .stat .stat-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

/* TIMELINE */
.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 0.25rem;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.timeline-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* REVEAL ANIMATION */
.reveal {
  opacity: 1;
}

/* GRID OVERLAY - hide it */
.grid-overlay {
  display: none;
}

/* HERO - BOLD CANADIAN SPORTS STYLE */
.hero {
  position: relative;
  padding: 6rem 0 4rem;
  text-align: center;
  background:
    linear-gradient(180deg, var(--bg) 0%, transparent 100%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      var(--bg-stripe) 2px,
      var(--bg-stripe) 4px
    );
}

.hero-maple {
  font-size: 4rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.3));
}

.hero-super {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 0.9;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, var(--canada-red) 0%, var(--canada-red-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 20px rgba(255, 0, 0, 0.2);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 2rem;
}

.hero-desc {
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.2rem;
  color: var(--text-dim);
  line-height: 1.8;
}

/* STATS BAR - HOCKEY SCOREBOARD STYLE */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2px;
  background: var(--accent);
  border: 3px solid var(--accent);
  margin: 3rem 0;
  box-shadow: var(--shadow);
}

.stat-item {
  background: var(--bg-card);
  padding: 2rem 1.5rem;
  text-align: center;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
}

.stat-item:hover {
  border-bottom-color: var(--accent);
  transform: translateY(-4px);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* SECTION HEADERS */
.section {
  margin: 6rem 0;
}

.section-header {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  line-height: 1;
}

/* TEAM CARD - JERSEY INSPIRED */
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 5px solid var(--accent);
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow);
}

.team-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.team-flag {
  font-size: 3rem;
}

.team-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.team-stat {
  text-align: center;
}

.team-stat-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.team-stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

/* ROSTER GRID */
.roster-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  margin: 2rem 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.player-card {
  background: var(--bg-3);
  border-left: 4px solid var(--accent);
  padding: 1.25rem;
  transition: all 0.2s;
  cursor: pointer;
}

.player-card:hover {
  background: var(--bg-2);
  border-left-width: 6px;
  transform: translateX(4px);
}

.player-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.player-position {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.player-club {
  font-size: 0.8rem;
  color: var(--text-dimmer);
  margin-top: 0.25rem;
}

/* MATCH CARD - BROADCAST GRAPHICS STYLE */
.matches-grid {
  display: grid;
  gap: 2rem;
}

.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.match-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(255, 0, 0, 0.3);
}

.match-header {
  background: var(--accent);
  color: white;
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.match-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 2.5rem 2rem;
  gap: 2rem;
}

.match-team {
  text-align: center;
}

.match-team.home {
  text-align: right;
}

.match-team.away {
  text-align: left;
}

.match-flag {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.match-team-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.match-vs {
  text-align: center;
  min-width: 100px;
}

.match-vs-text {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 1rem;
}

.match-date,
.match-venue {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.match-date {
  margin-bottom: 0.5rem;
}

/* CONTENT GRID */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: all 0.3s;
}

.content-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.content-card-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 700;
}

.content-card-desc {
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.content-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: all 0.2s;
}

.content-card-link:hover {
  gap: 1rem;
}

/* FOOTER - CLEAN CANADIAN */
.footer {
  position: relative;
  z-index: 10;
  background: var(--bg-2);
  border-top: 3px solid var(--accent);
  padding: 2rem;
  margin-top: auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copyright {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-dimmer);
}

.heart {
  color: var(--accent);
}

/* ============================================================
   NEWS · HIGHLIGHTS · RESULTS  (data-driven by build-worldcup.mjs)
   ============================================================ */

/* Status pills on fixture cards */
.match-pill {
  float: right;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}
.match-pill.live {
  background: #fff;
  color: var(--accent);
  animation: wc-pulse 1.4s ease-in-out infinite;
}
@keyframes wc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.match-recap {
  display: inline-block;
  margin: 0 2rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}
.match-recap:hover { text-decoration: underline; }

/* Results list */
.results-list { display: grid; gap: 1.5rem; }
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-3);
  border-left: 4px solid var(--text-dimmer);
}
.result-row.win { border-left-color: var(--accent); }
.result-row.loss { border-left-color: var(--text-dim); }
.result-comp {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}
.result-score { font-size: 1.3rem; font-weight: 700; color: var(--text); }
.result-goals { font-weight: 800; }
.result-goals.win { color: var(--accent); }
.result-goals.loss,
.result-goals.draw { color: var(--text-dim); }
.result-recap {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  margin-left: 0.5rem;
}
.result-recap:hover { text-decoration: underline; }
.result-badge {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  white-space: nowrap;
}
.result-badge.win { color: #fff; background: var(--accent); }
.result-badge.loss,
.result-badge.draw {
  color: var(--text-dim);
  background: var(--bg-2);
  border: 1px solid var(--border);
}

/* Group standings table */
.standings-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 5px solid var(--accent);
  box-shadow: var(--shadow);
  padding: 1rem 1.5rem 1.5rem;
  overflow-x: auto;
}
.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-display);
  font-size: 0.9rem;
}
.standings-table th {
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  padding: 0.85rem 0.5rem;
  border-bottom: 2px solid var(--border);
}
.standings-table td {
  text-align: center;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.standings-table tr:last-child td { border-bottom: none; }
.standings-table th.st-team,
.standings-table td.st-team {
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.st-flag { margin-right: 0.5rem; }
.st-pos { color: var(--text-dim); width: 2rem; }
.st-pts { font-weight: 800; color: var(--accent); }
.standings-table tr.is-canada td { background: var(--accent-soft); }
.standings-table tr.is-canada .st-team { color: var(--accent); }
.standings-note {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dimmer);
}

/* News card grid (hub section + news hub page) */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.news-card-cat {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.news-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.news-card-date {
  display: block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dimmer);
  margin-bottom: 0.75rem;
}
.news-card-summary {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}
.news-card-link {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.section-more {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.section-more:hover { opacity: 0.8; }

/* Highlights (linked thumbnail cards) */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.highlight-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.highlight-thumb,
.video-embed-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--canada-red-darker), var(--canada-red));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.highlight-play {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
}
.highlight-play::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}
.highlight-card:hover .highlight-play,
.video-embed:hover .highlight-play {
  background: var(--accent);
  transform: scale(1.08);
}
.highlight-duration {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}
.highlight-meta { padding: 1.25rem; }
.highlight-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* ARTICLE PAGE */
.article-page { max-width: 760px; }
.wc-breadcrumb {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.wc-breadcrumb a { color: var(--accent); text-decoration: none; }
.wc-breadcrumb a:hover { text-decoration: underline; }
.wc-breadcrumb .sep { color: var(--text-dimmer); }
.article-head { margin-bottom: 2rem; }
.article-head .eyebrow { margin-bottom: 1rem; }
.article-head .dot { color: var(--text-dimmer); }
.article-page .title { font-size: clamp(2rem, 6vw, 3.25rem); margin-bottom: 1.25rem; }
.article-dek {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text-dim);
}
.article-img { width: 100%; height: auto; border-radius: 8px; margin: 1.5rem 0; }
.article-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--text);
  border-left: 4px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
}
.article-list { margin: 1.5rem 0 1.5rem 1.25rem; }
.article-list li {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 0.6rem;
  color: var(--text);
}
.article-source {
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.article-source a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.article-source a:hover { text-decoration: underline; }
.article-back {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
}
.article-back:hover { color: var(--accent); }

/* Video embed (links out to YouTube / FIFA) */
.video-embed { display: block; text-decoration: none; margin: 1.5rem 0 2rem; }
.video-embed-thumb { border-radius: 8px; overflow: hidden; flex-direction: column; gap: 1rem; }
.video-embed-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Compact hero for the news hub */
.hero-compact { padding: 4rem 0 2rem; }
.hero-compact .hero-title { font-size: clamp(2.5rem, 7vw, 4.5rem); }

/* Flag images (reliable cross-platform via flagcdn) */
.flag-img {
  display: inline-block;
  vertical-align: middle;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px var(--border);
  flex: none;
}
/* Fixed width + height so every flag is the same size (object-fit crops, no distortion). */
.flag-img.flag-lg { width: 3.4rem; height: 2.5rem; border-radius: 4px; }
.flag-emoji.flag-lg { font-size: 3rem; }
.flag-img.flag-sm { width: 1.6rem; height: 1.15rem; margin-right: 0.6rem; }
.flag-img.flag-xs { width: 1.35rem; height: 0.95rem; margin: 0 0.3rem; position: relative; top: 1px; }

/* Scoreboard — "Around the World Cup" other results */
.scoreboard { display: grid; gap: 0.75rem; }
.om-row {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--text-dimmer);
  padding: 0.9rem 1.25rem;
}
.om-row.is-final { border-left-color: var(--accent); }
.om-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}
.om-ft { color: var(--accent); font-weight: 700; }
.om-match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
}
.om-team { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; color: var(--text); }
.om-team.home { justify-content: flex-end; text-align: right; }
.om-team.away { justify-content: flex-start; text-align: left; }
.om-team .flag-img { margin: 0; }
.om-score { font-size: 1.2rem; font-weight: 800; color: var(--accent); white-space: nowrap; }
.om-score.live { animation: wc-pulse 1.4s ease-in-out infinite; }
.om-vs {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Highlight card / video thumbnail enhancements */
.highlight-thumb.has-img,
.video-embed-thumb.has-img { background-color: var(--charcoal); }
.highlight-thumb.has-img::before,
.video-embed-thumb.has-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.5) 100%);
}
.highlight-thumb > *,
.video-embed-thumb > * { position: relative; z-index: 1; }
.highlight-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.highlight-play {
  width: 60px;
  height: 60px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.video-embed.facade {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
}
.video-embed-iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  margin: 1.5rem 0 2rem;
}

/* Language switch (EN | FR) */
.lang-switch {
  display: flex;
  justify-content: flex-end;
  gap: 0.3rem;
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.lang-switch a {
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  text-decoration: none;
  transition: all 0.2s;
}
.lang-switch a:hover { border-color: var(--accent); color: var(--accent); }
.lang-switch a.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Scores page (Google-style match cards) */
.sc-day { margin: 2.5rem 0; }
.sc-day-head {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 0.6rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--border);
}
.sc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.sc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.sc-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.sc-card.is-canada { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.sc-comp {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}
.sc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 0;
}
.sc-side { display: flex; align-items: center; gap: 0.6rem; color: var(--text); }
.sc-side .flag-img { margin: 0; }
.sc-name { font-weight: 600; }
.sc-num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dim);
  min-width: 1.5rem;
  text-align: right;
}
.sc-row.win .sc-name { font-weight: 800; }
.sc-row.win .sc-num { color: var(--accent); }
.sc-status {
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.sc-live { color: var(--accent); font-weight: 700; animation: wc-pulse 1.4s ease-in-out infinite; }
.sc-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}
.sc-link:hover { text-decoration: underline; }
.sc-prob-pct {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dim);
  min-width: 2.6rem;
  text-align: right;
}
.sc-prob-bar {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin: 0.85rem 0 0.1rem;
  background: var(--bg-3);
}
.sc-prob-bar .seg { height: 100%; }
.sc-prob-bar .seg.home { background: var(--accent); }
.sc-prob-bar .seg.draw { background: var(--text-dimmer); }
.sc-prob-bar .seg.away { background: var(--text); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav {
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .container {
    padding: 8rem 1.5rem 4rem;
  }

  .page {
    padding: 8rem 1.5rem 4rem;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .match-body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .match-team.home,
  .match-team.away {
    text-align: center;
  }

  .match-vs {
    order: 2;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .team-stats {
    grid-template-columns: 1fr 1fr;
  }

  .roster-grid {
    grid-template-columns: 1fr;
  }

  .news-grid,
  .highlights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nav {
    padding: 0.75rem 1.25rem;
  }

  .nav-links {
    display: none;
  }

  .container {
    padding-top: 4rem;
  }

  .page {
    padding: 4rem 1.25rem 3rem;
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }

  .team-stats {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .result-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .standings-table .st-hide-sm { display: none; }
  .standings-table { font-size: 0.85rem; }
}
