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

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a2235;
  --bg-card-hover: #1f2a40;
  --text-primary: #f0f2f5;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent-gold: #D4AF37;
  --accent-blue: #75AADB;
  --accent-white: #FFFFFF;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --font-display: 'Georgia', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent-blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-gold); }

/* ===== Navigation ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,14,23,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700; color: var(--text-primary);
  letter-spacing: 0.5px;
}
.nav-brand span { color: var(--accent-gold); }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a {
  color: var(--text-secondary); font-size: 0.875rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 1px;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent-gold); }

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  background: radial-gradient(ellipse at 50% 0%, rgba(117,170,219,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 80%, rgba(212,175,55,0.05) 0%, transparent 50%),
              var(--bg-primary);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5; pointer-events: none;
}
.hero-eyebrow {
  font-size: 0.75rem; letter-spacing: 4px; text-transform: uppercase;
  color: var(--accent-gold); margin-bottom: 1.5rem; font-weight: 600;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700; line-height: 1.05;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff 0%, var(--accent-blue) 50%, var(--accent-gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--text-secondary); margin-bottom: 2rem; font-style: italic;
}
.hero-years {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300; color: var(--accent-gold);
  letter-spacing: 8px; margin-bottom: 1rem;
}
.hero-tagline {
  max-width: 600px; font-size: 1.05rem; color: var(--text-secondary);
  line-height: 1.8; margin-bottom: 3rem;
}

/* ===== Stat Cards ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem; max-width: 720px; width: 100%; margin: 0 auto;
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 1.5rem 1rem; text-align: center;
  transition: var(--transition);
}
.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow);
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 700; color: var(--accent-gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px; margin-top: 0.5rem;
}

/* ===== Section Styles ===== */
.section {
  max-width: 1200px; margin: 0 auto; padding: 5rem 2rem;
}
.section-header {
  text-align: center; margin-bottom: 3rem;
}
.section-eyebrow {
  font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent-gold); font-weight: 600; margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700;
  color: var(--text-primary); line-height: 1.2;
}
.section-desc {
  max-width: 600px; margin: 1rem auto 0; color: var(--text-secondary); font-size: 1rem;
}

/* ===== Timeline ===== */
.timeline { position: relative; padding: 2rem 0; }
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--accent-blue), var(--accent-gold));
  transform: translateX(-50%);
}
.tl-item {
  position: relative; display: flex; margin-bottom: 4rem;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.tl-item.visible { opacity: 1; transform: translateY(0); }
.tl-item:nth-child(odd) { flex-direction: row-reverse; }
.tl-dot {
  position: absolute; left: 50%; top: 2rem;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-gold); border: 4px solid var(--bg-primary);
  transform: translateX(-50%); z-index: 2;
  box-shadow: 0 0 20px rgba(212,175,55,0.4);
}
.tl-content {
  width: calc(50% - 3rem); background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 16px;
  padding: 2rem; transition: var(--transition);
}
.tl-item:nth-child(odd) .tl-content { margin-right: auto; }
.tl-item:nth-child(even) .tl-content { margin-left: auto; }
.tl-content:hover {
  border-color: var(--accent-gold); transform: scale(1.02);
  box-shadow: var(--shadow);
}
.tl-year {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 700; line-height: 1;
  margin-bottom: 0.25rem;
}
.tl-host { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.tl-role {
  display: inline-block; padding: 0.25rem 0.75rem;
  border-radius: 20px; font-size: 0.75rem; font-weight: 600;
  margin: 0.75rem 0;
}
.tl-statline {
  display: flex; gap: 1rem; margin: 1rem 0; flex-wrap: wrap;
}
.tl-stat {
  font-size: 0.8rem; color: var(--text-secondary);
}
.tl-stat strong { color: var(--accent-gold); font-size: 1.1rem; font-family: var(--font-display); }
.tl-story { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin-top: 1rem; }
.tl-result {
  display: inline-block; margin-top: 1rem; padding: 0.3rem 1rem;
  border-radius: 6px; font-size: 0.8rem; font-weight: 700; letter-spacing: 1px;
}
.tl-actions { margin-top: 1.25rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.tl-btn {
  display: inline-block; padding: 0.5rem 1.25rem; border-radius: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.5px;
  border: 1px solid var(--accent-gold); color: var(--accent-gold);
  transition: var(--transition); cursor: pointer; background: transparent;
}
.tl-btn:hover { background: var(--accent-gold); color: var(--bg-primary); }
.tl-btn.primary { background: var(--accent-gold); color: var(--bg-primary); }
.tl-btn.primary:hover { background: #c9a430; }

@media (max-width: 768px) {
  .timeline::before { left: 20px; }
  .tl-item, .tl-item:nth-child(odd) { flex-direction: column; padding-left: 3rem; }
  .tl-dot { left: 20px; }
  .tl-content, .tl-item:nth-child(odd) .tl-content, .tl-item:nth-child(even) .tl-content {
    width: 100%; margin-left: 0; margin-right: 0;
  }
}

/* ===== Chapter Page ===== */
.chapter-hero {
  min-height: 70vh; display: flex; flex-direction: column; justify-content: center;
  padding: 6rem 2rem 3rem; text-align: center;
}
.chapter-hero .hero-year {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 12rem); font-weight: 700; line-height: 1;
}
.chapter-hero .hero-host {
  font-size: 1.2rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 4px; margin-top: 0.5rem;
}
.chapter-hero .hero-result {
  display: inline-block; margin-top: 1.5rem; padding: 0.5rem 2rem;
  border-radius: 30px; font-size: 1rem; font-weight: 700; letter-spacing: 2px;
}

.chapter-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  max-width: 1100px; margin: 0 auto; padding: 0 2rem 4rem;
}
@media (max-width: 768px) { .chapter-grid { grid-template-columns: 1fr; } }

.chapter-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem;
}
.chapter-card h3 {
  font-family: var(--font-display); font-size: 1.3rem;
  margin-bottom: 1rem; color: var(--accent-gold);
}
.chapter-card p { color: var(--text-secondary); line-height: 1.8; font-size: 0.95rem; }

.data-row {
  display: flex; justify-content: space-between; padding: 0.6rem 0;
  border-bottom: 1px solid var(--border); font-size: 0.9rem;
}
.data-row:last-child { border-bottom: none; }
.data-label { color: var(--text-muted); }
.data-value { color: var(--text-primary); font-weight: 600; font-family: var(--font-mono); }

/* Match List */
.match-list { list-style: none; }
.match-item {
  padding: 1rem 0; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
}
.match-item:last-child { border-bottom: none; }
.match-stage { font-size: 0.7rem; color: var(--accent-gold); text-transform: uppercase; letter-spacing: 1px; }
.match-teams { font-size: 0.95rem; font-weight: 500; }
.match-score { font-family: var(--font-mono); font-weight: 700; font-size: 1rem; color: var(--accent-blue); }
.match-messi { font-size: 0.8rem; color: var(--text-muted); }
.match-messi .goal { color: var(--accent-gold); font-weight: 600; }
.match-messi .assist { color: #7bed9f; font-weight: 600; }

/* Quote */
.quote-block {
  border-left: 3px solid var(--accent-gold);
  padding: 1rem 1.5rem; margin: 1rem 0;
  background: rgba(212,175,55,0.05); border-radius: 0 8px 8px 0;
}
.quote-block blockquote {
  font-style: italic; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7;
}
.quote-block cite {
  display: block; margin-top: 0.5rem; font-size: 0.8rem; color: var(--text-muted);
  font-style: normal;
}

/* ===== Match Page ===== */
.match-page { max-width: 800px; margin: 0 auto; padding: 6rem 2rem 4rem; }
.match-header { text-align: center; margin-bottom: 3rem; }
.match-stage-badge {
  display: inline-block; padding: 0.3rem 1rem; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  background: rgba(212,175,55,0.15); color: var(--accent-gold); margin-bottom: 1rem;
}
.match-title {
  font-family: var(--font-display); font-size: 2rem; margin-bottom: 0.5rem;
}
.match-meta { color: var(--text-muted); font-size: 0.9rem; }
.match-score-display {
  font-family: var(--font-display); font-size: 3.5rem; font-weight: 700;
  margin: 1.5rem 0; letter-spacing: 8px;
}
.match-score-display .dash { color: var(--text-muted); }

/* Event Timeline */
.event-timeline { margin: 2rem 0; }
.event-item {
  display: flex; gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.event-min {
  font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem;
  color: var(--accent-gold); min-width: 50px; text-align: right;
}
.event-body { flex: 1; }
.event-desc { font-size: 0.95rem; color: var(--text-primary); }
.event-team { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.event-goal-icon { color: var(--accent-gold); }
.event-own-icon { color: #ff6b6b; }
.event-pen-icon { color: #74b9ff; }

/* Pitch */
.pitch-container {
  position: relative; width: 100%; max-width: 500px; margin: 2rem auto;
  aspect-ratio: 68/105; background: #1a3d1a;
  border: 2px solid rgba(255,255,255,0.3); border-radius: 8px;
  overflow: hidden;
}
.pitch-line {
  position: absolute; border: 1px solid rgba(255,255,255,0.2);
}
.pitch-center { top: 50%; left: 0; right: 0; height: 0; }
.pitch-circle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 80px; height: 80px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2);
}
.pitch-spot {
  position: absolute; left: 50%; width: 4px; height: 4px;
  background: rgba(255,255,255,0.3); border-radius: 50%; transform: translateX(-50%);
}
.goal-spot {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  transform: translate(-50%,-50%); cursor: pointer;
  transition: var(--transition);
}
.goal-spot.messi { background: var(--accent-gold); box-shadow: 0 0 12px var(--accent-gold); }
.goal-spot.other { background: var(--accent-blue); box-shadow: 0 0 8px var(--accent-blue); }
.goal-spot.opponent { background: #ff6b6b; box-shadow: 0 0 8px #ff6b6b; }
.goal-spot:hover { transform: translate(-50%,-50%) scale(1.5); z-index: 5; }
.goal-label {
  position: absolute; font-size: 0.6rem; color: #fff; white-space: nowrap;
  pointer-events: none; transform: translate(-50%, -20px);
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* ===== Data Explorer ===== */
.explorer { max-width: 1200px; margin: 0 auto; padding: 6rem 2rem 4rem; }
.filter-bar {
  display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem;
  padding: 1.5rem; background: var(--bg-card); border-radius: 12px;
  border: 1px solid var(--border);
}
.filter-group { display: flex; flex-direction: column; gap: 0.3rem; }
.filter-group label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.filter-group select {
  padding: 0.5rem 1rem; background: var(--bg-secondary); color: var(--text-primary);
  border: 1px solid var(--border); border-radius: 6px; font-size: 0.9rem;
}
.explorer-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem; margin-bottom: 2rem;
}
.explorer-stat {
  text-align: center; padding: 1.5rem; background: var(--bg-card);
  border-radius: 12px; border: 1px solid var(--border);
}
.explorer-stat .num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--accent-gold); }
.explorer-stat .lbl { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; margin-top: 0.3rem; }

.matches-table {
  width: 100%; border-collapse: collapse; background: var(--bg-card);
  border-radius: 12px; overflow: hidden; border: 1px solid var(--border);
}
.matches-table th {
  padding: 1rem; text-align: left; font-size: 0.7rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.matches-table td {
  padding: 0.75rem 1rem; font-size: 0.85rem; border-bottom: 1px solid var(--border);
}
.matches-table tr:last-child td { border-bottom: none; }
.matches-table tr:hover td { background: rgba(212,175,55,0.03); }
.matches-table a { color: var(--accent-blue); }

/* ===== Footer ===== */
.footer {
  text-align: center; padding: 3rem 2rem; color: var(--text-muted);
  font-size: 0.8rem; border-top: 1px solid var(--border); margin-top: 4rem;
}
.footer a { color: var(--accent-gold); }

/* ===== Scroll Animations ===== */
.fade-up {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== WC-specific theme colors ===== */
.wc-2006 { --wc-color: #8FA5B8; }
.wc-2010 { --wc-color: #5B8DBF; }
.wc-2014 { --wc-color: #C0C0C0; }
.wc-2018 { --wc-color: #D45353; }
.wc-2022 { --wc-color: #FFD700; }
.wc-2026 { --wc-color: #D4AF37; }

/* ===== Tabs ===== */
.tab-bar {
  display: flex; gap: 0; margin-bottom: 2rem; border-bottom: 2px solid var(--border);
}
.tab-btn {
  padding: 0.75rem 1.5rem; background: none; border: none; color: var(--text-muted);
  font-size: 0.85rem; font-weight: 600; cursor: pointer; letter-spacing: 0.5px;
  border-bottom: 2px solid transparent; margin-bottom: -2px; transition: var(--transition);
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--accent-gold); border-bottom-color: var(--accent-gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== Year Selector ===== */
.year-selector {
  display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap;
  margin: 2rem 0;
}
.year-btn {
  padding: 0.6rem 1.5rem; border-radius: 30px; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text-secondary); cursor: pointer;
  font-size: 0.9rem; font-weight: 600; transition: var(--transition);
  font-family: var(--font-display);
}
.year-btn:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.year-btn.active {
  background: var(--accent-gold); color: var(--bg-primary); border-color: var(--accent-gold);
}
.year-btn .age { font-size: 0.65rem; opacity: 0.7; display: block; font-family: var(--font-body); }

/* Bar chart */
.bar-chart { display: flex; flex-direction: column; gap: 0.75rem; }
.bar-row { display: flex; align-items: center; gap: 0.75rem; }
.bar-label { min-width: 60px; font-size: 0.85rem; color: var(--text-secondary); text-align: right; }
.bar-track { flex: 1; height: 24px; background: rgba(255,255,255,0.05); border-radius: 4px; overflow: hidden; position: relative; }
.bar-fill { height: 100%; border-radius: 4px; transition: width 1s ease; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; }
.bar-fill.goals { background: linear-gradient(90deg, var(--accent-gold), #f0c040); }
.bar-fill.assists { background: linear-gradient(90deg, #7bed9f, #2ed573); }
.bar-fill.caps { background: linear-gradient(90deg, var(--accent-blue), #5b8dbf); }
.bar-value { font-size: 0.75rem; font-weight: 700; color: var(--bg-primary); }

/* ===== Hero with background image ===== */
.hero-with-image {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
  opacity: 0.35;
  filter: brightness(0.6) saturate(0.8);
  z-index: 0;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,23,0.3) 0%, rgba(10,14,23,0.7) 60%, var(--bg-primary) 100%);
}
.hero-with-image > * { position: relative; z-index: 1; }

/* ===== Chapter hero with image ===== */
.chapter-hero-with-img {
  position: relative; min-height: 75vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 6rem 2rem 3rem; overflow: hidden;
}
.chapter-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.25; filter: brightness(0.5); z-index: 0;
}
.chapter-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--bg-primary) 100%);
}
.chapter-hero-with-img > * { position: relative; z-index: 1; }

/* ===== Image card in match/timeline ===== */
.img-card {
  position: relative; border-radius: 12px; overflow: hidden;
  margin: 1.5rem 0; border: 1px solid var(--border);
  aspect-ratio: 16/9; background: var(--bg-card);
}
.img-card img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform 0.6s ease;
}
.img-card:hover img { transform: scale(1.03); }
.img-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1rem; background: linear-gradient(transparent, rgba(0,0,0,0.85));
  font-size: 0.8rem; color: var(--text-secondary);
}

/* ===== WC card with image ===== */
.wc-card-with-img {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border); transition: var(--transition);
  cursor: pointer; background: var(--bg-card);
}
.wc-card-with-img:hover { transform: translateY(-4px); border-color: var(--accent-gold); box-shadow: var(--shadow); }
.wc-card-img {
  width: 100%; height: 180px; object-fit: cover; display: block;
  filter: brightness(0.7); transition: filter 0.3s;
}
.wc-card-with-img:hover .wc-card-img { filter: brightness(0.9); }
.wc-card-body { padding: 1.5rem; }
.wc-card-gradient {
  position: absolute; top: 0; left: 0; right: 0; height: 180px;
  background: linear-gradient(180deg, transparent 40%, var(--bg-card) 100%);
  pointer-events: none;
}

/* ===== Photo strip ===== */
.photo-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem;
  margin: 2rem 0;
}
.photo-strip-item {
  border-radius: 12px; overflow: hidden; border: 1px solid var(--border);
  transition: var(--transition);
}
.photo-strip-item:hover { border-color: var(--accent-gold); transform: translateY(-2px); }
.photo-strip-item img { width: 100%; height: 200px; object-fit: cover; display: block; }
.photo-strip-item .caption { padding: 0.75rem; font-size: 0.75rem; color: var(--text-muted); background: var(--bg-card); }

/* ===== Match page hero image ===== */
.match-hero-img {
  width: 100%; max-height: 350px; object-fit: cover; border-radius: 12px;
  border: 1px solid var(--border); margin-bottom: 2rem;
}

/* ===== Portrait circle ===== */
.portrait-circle {
  width: 140px; height: 140px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--accent-gold); margin: 0 auto 1.5rem;
  box-shadow: 0 0 30px rgba(212,175,55,0.3);
}

/* ===== Lightbox / Modal ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
  padding: 2rem;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
  position: relative; max-width: 90vw; max-height: 90vh;
  transform: scale(0.9); transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content { transform: scale(1); }
.modal-img {
  max-width: 90vw; max-height: 75vh; object-fit: contain;
  border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: block;
}
.modal-caption {
  text-align: center; color: var(--text-primary); font-size: 1rem;
  margin-top: 1rem; font-family: var(--font-display);
}
.modal-close {
  position: absolute; top: -2.5rem; right: 0;
  background: none; border: none; color: #fff; font-size: 2rem;
  cursor: pointer; padding: 0.5rem; line-height: 1;
  transition: var(--transition);
}
.modal-close:hover { color: var(--accent-gold); transform: scale(1.2); }

/* Clickable cards */
.clickable { cursor: pointer; transition: var(--transition); }
.clickable:hover { border-color: var(--accent-gold); }
.clickable:hover .photo-strip-item img { transform: scale(1.05); }

/* Moment modal */
.moment-detail {
  background: var(--bg-card); border-radius: 16px; padding: 2.5rem;
  max-width: 560px; width: 100%; border: 1px solid var(--accent-gold);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  position: relative;
}
.moment-detail .moment-year {
  font-family: var(--font-display); font-size: 3rem; font-weight: 700;
  line-height: 1;
}
.moment-detail .moment-title {
  font-size: 1.4rem; font-weight: 700; margin: 0.5rem 0;
}
.moment-detail .moment-match {
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem;
}
.moment-detail .moment-desc {
  font-size: 1rem; color: var(--text-secondary); line-height: 1.8;
}
.moment-detail .moment-actions {
  margin-top: 1.5rem; display: flex; gap: 0.75rem; flex-wrap: wrap;
}

/* ===== Mobile Navigation ===== */
.nav-toggle {
  display: none;
  background: none; border: none; color: var(--text-primary);
  font-size: 1.5rem; cursor: pointer; padding: 0.25rem 0.5rem;
}
.nav-toggle:hover { color: var(--accent-gold); }

@media (max-width: 700px) {
  .nav { padding: 0 1rem; height: 56px; }
  .nav-links {
    position: fixed; top: 56px; left: 0; right: 0;
    background: rgba(10,14,23,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%); opacity: 0; pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 99;
  }
  .nav-links.open {
    transform: translateY(0); opacity: 1; pointer-events: auto;
  }
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a {
    display: block; padding: 1rem 1.5rem;
    font-size: 0.9rem; text-align: center;
  }
  .nav-toggle { display: block; }
  .nav-brand { font-size: 1rem; }
  .nav-brand img { height: 24px !important; width: 24px !important; margin-right: 6px !important; }
}
