:root {
  --bg: #0a0f1e;
  --bg-alt: #0e1530;
  --card: #131c3a;
  --card-hi: #1a2548;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef2ff;
  --muted: #93a0c2;
  --green: #2dd4a7;
  --red: #ff5d73;
  --blue: #4f8dff;
  --gold: #ffc857;
  --grad: linear-gradient(90deg, #2dd4a7, #4f8dff 50%, #ff5d73);
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
h1, h2, h3 { font-family: "Sora", "Inter", sans-serif; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 5vw;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; }
.brand-badge {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--grad); color: #08101f;
  font-family: "Sora"; font-weight: 800; font-size: 0.9rem;
}
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  text-align: center;
  padding: 90px 5vw 70px;
}
.hero-glow {
  position: absolute; inset: -40% -20% auto;
  height: 130%;
  background:
    radial-gradient(600px 320px at 25% 20%, rgba(45, 212, 167, 0.18), transparent 70%),
    radial-gradient(600px 320px at 75% 15%, rgba(255, 93, 115, 0.16), transparent 70%),
    radial-gradient(700px 380px at 50% 55%, rgba(79, 141, 255, 0.14), transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero-kicker {
  display: inline-block;
  font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--green); font-weight: 600;
  border: 1px solid rgba(45, 212, 167, 0.35);
  padding: 6px 16px; border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; line-height: 1.1; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { max-width: 620px; margin: 18px auto 0; color: var(--muted); font-size: 1.05rem; }

.countdown { display: flex; justify-content: center; gap: 14px; margin: 36px 0 8px; flex-wrap: wrap; }
.cd-box {
  min-width: 86px; padding: 14px 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.cd-box strong { display: block; font-family: "Sora"; font-size: 1.9rem; font-weight: 800; }
.cd-box span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.cd-live {
  font-family: "Sora"; font-weight: 800; font-size: 1.4rem;
  padding: 16px 32px; border-radius: var(--radius);
  background: rgba(45, 212, 167, 0.12); border: 1px solid rgba(45, 212, 167, 0.4);
  color: var(--green);
}
.cd-live .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--green); margin-right: 10px; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero-stats { display: flex; justify-content: center; gap: 36px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats div { text-align: center; }
.hero-stats strong { display: block; font-family: "Sora"; font-size: 1.6rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- Sections ---------- */
.section { padding: 70px 5vw; max-width: 1200px; margin: 0 auto; }
.section.alt { max-width: none; background: var(--bg-alt); }
.section.alt > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.section-head p { color: var(--muted); margin-top: 8px; max-width: 640px; }
.pill {
  font-family: "Inter"; font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(79, 141, 255, 0.15); color: var(--blue);
  border: 1px solid rgba(79, 141, 255, 0.3);
}
.pill.gold { background: rgba(255, 200, 87, 0.12); color: var(--gold); border-color: rgba(255, 200, 87, 0.3); }

/* ---------- View toggle ---------- */
.view-toggle { display: inline-flex; gap: 6px; margin-top: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 5px; }
.view-toggle button {
  background: transparent; border: none; color: var(--muted);
  font: inherit; font-size: 0.88rem; font-weight: 600;
  padding: 8px 18px; border-radius: 9px; cursor: pointer; transition: 0.2s;
}
.view-toggle button.active { background: var(--card-hi); color: var(--text); }

/* ---------- Calendar ---------- */
.calendar { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin-top: 24px; }
.cal-month { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.cal-month h3 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; text-align: center; color: var(--green); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-dow { text-align: center; font-size: 0.65rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 0; }
.cal-day {
  position: relative; aspect-ratio: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  border-radius: 10px; font: inherit; font-size: 0.85rem;
  color: var(--muted); background: transparent; border: 1px solid transparent;
}
.cal-day.off { visibility: hidden; }
.cal-day.has-match {
  cursor: pointer; color: var(--text); font-weight: 600;
  background: rgba(79, 141, 255, 0.1); border-color: rgba(79, 141, 255, 0.25);
  transition: 0.15s;
}
.cal-day.has-match:hover { background: rgba(79, 141, 255, 0.22); }
.cal-day.selected { background: var(--grad) !important; color: #08101f; border-color: transparent; }
.cal-day.selected .count { background: rgba(8, 16, 31, 0.25); color: #08101f; }
.cal-day .count {
  font-size: 0.6rem; font-weight: 700; line-height: 1;
  background: rgba(45, 212, 167, 0.2); color: var(--green);
  padding: 2px 6px; border-radius: 999px;
}
.day-panel { margin-top: 26px; }

/* ---------- Group standings ---------- */
.groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin-top: 32px; }
.group-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.group-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.group-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.group-table th {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); font-weight: 600; text-align: center; padding: 6px 4px;
  border-bottom: 1px solid var(--line);
}
.group-table td { text-align: center; padding: 9px 4px; border-bottom: 1px solid var(--line); color: var(--muted); }
.group-table .tname { text-align: left; color: var(--text); font-weight: 600; white-space: nowrap; }
.group-table .pts { color: var(--gold); font-weight: 700; }
.group-table tbody tr:last-child td { border-bottom: none; }
.team-row { cursor: pointer; transition: background 0.15s; }
.team-row:hover { background: rgba(79, 141, 255, 0.1); }

/* ---------- Best Third-Place Table ---------- */
.best-third-wrap { scroll-margin-top: 80px; }
.best-third-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 22px;
  overflow-x: hidden;
}
.best-third-table { width: 100%; }
.best-third-table th { font-size: 0.62rem; }
.best-third-table td { font-size: 0.82rem; }

/* Qualified rows get a subtle green left border */
.best-third-table tr.bt-qualified { border-left: 3px solid var(--green); }
/* Eliminated rows get dimmed */
.best-third-table tr.bt-eliminated td { opacity: 0.55; }
.best-third-table tr.bt-eliminated:hover td { opacity: 0.85; }

/* Divider between rank 8 and 9 */
.best-third-table tbody tr.bt-eliminated:first-of-type td {
  border-top: 2px dashed rgba(255, 93, 115, 0.45);
}

/* Group badge */
.bt-group-badge {
  display: inline-block;
  font-family: "Sora", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  width: 26px; height: 26px;
  line-height: 26px;
  text-align: center;
  border-radius: 8px;
  background: rgba(79, 141, 255, 0.15);
  color: var(--blue);
  border: 1px solid rgba(79, 141, 255, 0.3);
}

/* Status badge */
.bt-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.bt-status.bt-qualified {
  background: rgba(45, 212, 167, 0.12);
  color: var(--green);
  border: 1px solid rgba(45, 212, 167, 0.3);
}
.bt-status.bt-eliminated {
  background: rgba(255, 93, 115, 0.1);
  color: var(--red);
  border: 1px solid rgba(255, 93, 115, 0.25);
  opacity: 1;
}

/* Footnote */
.bt-footnote {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 14px;
  text-align: center;
  opacity: 0.7;
}

@media (max-width: 720px) {
  .best-third-card { padding: 10px 6px; }
  .best-third-table th { font-size: 0.55rem; padding: 5px 2px; }
  .best-third-table td { font-size: 0.72rem; padding: 7px 2px; }
  .best-third-table .tname { font-size: 0.7rem; }
  .bt-group-badge { width: 22px; height: 22px; line-height: 22px; font-size: 0.6rem; border-radius: 6px; }
  .best-third-table .team-flag-img { width: 18px !important; height: 11px !important; }
  .bt-footnote { font-size: 0.65rem; }
}

/* ---------- Team modal ---------- */
.hidden { display: none !important; }
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5, 8, 18, 0.75); backdrop-filter: blur(6px);
  padding: 20px;
}
.modal-card {
  position: relative; width: 100%; max-width: 560px; max-height: 85vh; overflow-y: auto;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px;
}
.modal-close {
  position: absolute; top: 14px; right: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 50%;
  width: 34px; height: 34px; color: var(--muted); font-size: 1.2rem; cursor: pointer;
}
.modal-close:hover { color: var(--text); }
.modal-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.modal-flag { font-size: 2.6rem; }
.modal-head h3 { font-size: 1.4rem; font-weight: 800; }
.modal-head p { font-size: 0.82rem; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat-box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px; text-align: center; }
.stat-box strong { display: block; font-family: "Sora"; font-size: 1.25rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-box span { font-size: 0.62rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; }
.fixtures-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue); margin: 22px 0 10px; }
.fixture-list { display: flex; flex-direction: column; gap: 8px; }
.fixture-row {
  display: grid; grid-template-columns: 38px 1fr auto auto; gap: 10px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 0.82rem;
}
.fixture-row.win { border-left: 3px solid var(--green); }
.fixture-row.loss { border-left: 3px solid var(--red); }
.fixture-row.draw { border-left: 3px solid var(--gold); }
.fx-no { font-size: 0.68rem; color: var(--muted); font-weight: 600; }
.fx-teams { font-weight: 600; }
.fx-score { font-family: "Sora"; font-weight: 800; }
.fx-score.win { color: var(--green); } .fx-score.loss { color: var(--red); } .fx-score.draw { color: var(--gold); }
.fx-time, .fx-venue { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.score { font-family: "Sora"; font-weight: 800; color: var(--gold); margin: 0 10px; }
.tag.time.ft { background: rgba(255, 200, 87, 0.15); color: var(--gold); }

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .fixture-row { grid-template-columns: 1fr auto; }
  .fx-no, .fx-venue { display: none; }
}

/* ---------- Filters ---------- */
.filters { display: flex; gap: 10px; margin: 28px 0 6px; flex-wrap: wrap; }
.filters select, .filters input {
  background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; font: inherit; font-size: 0.9rem;
}
.filters input { flex: 1; min-width: 200px; }
.filters select:focus, .filters input:focus { outline: 2px solid rgba(79, 141, 255, 0.5); }
.btn-ghost {
  background: transparent; color: var(--muted);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 18px; font: inherit; font-size: 0.9rem; cursor: pointer; transition: 0.2s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }
.result-count { color: var(--muted); font-size: 0.85rem; margin: 10px 2px 18px; }

/* ---------- Schedule ---------- */
.schedule-list { display: flex; flex-direction: column; gap: 26px; }
.day-block h3 {
  font-size: 0.95rem; font-weight: 700; color: var(--green);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.match-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 10px;
  transition: border-color 0.2s, transform 0.2s;
}
.match-row:hover { border-color: rgba(79, 141, 255, 0.45); transform: translateX(4px); }
.match-no { text-align: center; }
.match-no strong { display: block; font-family: "Sora"; font-weight: 800; font-size: 1.05rem; }
.match-no span { font-size: 0.65rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.match-teams { font-weight: 600; font-size: 1rem; }
.match-teams .vs { color: var(--red); font-weight: 800; font-size: 0.8rem; margin: 0 8px; }
.match-meta { font-size: 0.8rem; color: var(--muted); margin-top: 3px; font-weight: 400; }
.match-tags { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.tag {
  font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.tag.stage-group { background: rgba(45, 212, 167, 0.12); color: var(--green); }
.tag.stage-ko { background: rgba(255, 93, 115, 0.12); color: var(--red); }
.tag.stage-final { background: rgba(255, 200, 87, 0.15); color: var(--gold); }
.tag.time { background: rgba(79, 141, 255, 0.12); color: var(--blue); }

/* ---------- Player cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; margin-top: 32px; }
.player-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: transform 0.2s, border-color 0.2s;
}
.player-card:hover { transform: translateY(-4px); border-color: rgba(255, 200, 87, 0.4); }
.player-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.player-flag { font-size: 2rem; }
.player-top h3 { font-size: 1.05rem; font-weight: 700; }
.player-top p { font-size: 0.78rem; color: var(--muted); }
.player-pos {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  color: var(--gold); border: 1px solid rgba(255, 200, 87, 0.35);
  padding: 3px 9px; border-radius: 999px; margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.player-card .blurb { font-size: 0.87rem; color: var(--muted); }

/* ---------- Team cards ---------- */
.teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; margin-top: 32px; }
.team-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.team-head {
  width: 100%; display: flex; align-items: center; gap: 14px;
  background: var(--card-hi); border: none; color: var(--text);
  padding: 18px 20px; cursor: pointer; font: inherit; text-align: left;
}
.team-head .player-flag { font-size: 1.7rem; }
.team-head h3 { font-family: "Sora"; font-size: 1.05rem; font-weight: 700; }
.team-head .grp { font-size: 0.75rem; color: var(--muted); }
.team-head .chev { margin-left: auto; color: var(--muted); transition: transform 0.25s; }
.team-card.open .chev { transform: rotate(180deg); }
.team-body { display: none; padding: 18px 20px 22px; font-size: 0.88rem; }
.team-card.open .team-body { display: block; }
.team-body h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; margin: 14px 0 4px; }
.team-body h4.s { color: var(--green); } .team-body h4.w { color: var(--red); } .team-body h4.k { color: var(--gold); } .team-body h4.p { color: var(--blue); }
.team-body h4:first-child { margin-top: 0; }
.team-body p { color: var(--muted); }

/* ---------- Facts Section ---------- */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.fact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  transform: translateY(30px);
}
.fact-card.reveal {
  opacity: 1;
  transform: translateY(0);
}
.fact-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--green);
  box-shadow: 0 15px 30px rgba(45, 212, 167, 0.15);
}
.fact-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  background: var(--grad);
}
.fact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--fact-flag);
  background-size: cover;
  background-position: center;
  opacity: 0.07;
  filter: grayscale(1);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.4s, filter 0.4s;
}
.fact-card:hover::after {
  opacity: 0.15;
  filter: grayscale(0);
}
.fact-num {
  font-family: "Sora";
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.04);
  position: absolute;
  top: -10px;
  right: 10px;
  line-height: 1;
}
.fact-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 12px;
  padding: 2px 8px;
  background: rgba(45, 212, 167, 0.1);
  border-radius: 4px;
}
.fact-text {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  position: relative;
  z-index: 2;
}
.fact-card:nth-child(even) .fact-tag { color: var(--blue); background: rgba(79, 141, 255, 0.1); }
.fact-card:nth-child(3n) .fact-tag { color: var(--gold); background: rgba(255, 200, 87, 0.1); }

/* ---------- Watch ---------- */
.watch {
  padding: 50px 28px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
  background:
    linear-gradient(135deg, rgba(45, 212, 167, 0.08), transparent 45%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  animation: fadeInUp 0.6s ease-out both;
}
.watch-left { max-width: 480px; }
.watch .eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--green);
  margin-bottom: 10px;
}
.watch h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin-bottom: 14px; }
.watch p { color: var(--muted); line-height: 1.7; font-size: 0.95rem; }
.watch-note {
  margin-top: 18px;
  padding: 14px 16px;
  background: rgba(79, 141, 255, 0.08);
  border: 1px solid rgba(79, 141, 255, 0.2);
  border-radius: 12px;
  font-size: 0.85rem !important;
  color: var(--text) !important;
}
.watch-note strong { color: var(--blue); }

.watch-right { display: flex; flex-direction: column; gap: 18px; }
.watch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}
.watch-card {
  background: var(--bg-alt);
  padding: 22px 18px;
  text-align: center;
  transition: background 0.2s, transform 0.2s;
  cursor: default;
}
.watch-card:hover {
  background: var(--card-hi);
  transform: translateY(-2px);
}
.watch-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.watch-card strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.watch-card small {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.watch-extra {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.watch-tip {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.watch-tip span { font-size: 1.4rem; flex-shrink: 0; }
.watch-tip strong { font-size: 0.9rem; color: var(--text); display: block; }
.watch-tip p { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

@media (max-width: 900px) {
  .watch { grid-template-columns: 1fr; gap: 30px; }
  .watch-grid { grid-template-columns: 1fr; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* ---------- Footer ---------- */
.footer { text-align: center; padding: 50px 5vw 60px; border-top: 1px solid var(--line); color: var(--muted); }
.footer .fine { font-size: 0.75rem; max-width: 560px; margin: 10px auto 0; opacity: 0.7; }

/* ---------- Hamburger Menu ---------- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s;
}
.nav-hamburger:hover { background: var(--card); }
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 65px;
  left: 0; right: 0;
  background: rgba(10, 15, 30, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 16px 5vw 20px;
  z-index: 49;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 8px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.nav-mobile-menu a:hover { color: var(--text); background: var(--card); }

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 200;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad);
  border: none;
  color: #08101f;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(45, 212, 167, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  transform: translateY(10px);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { transform: translateY(-3px) scale(1.05); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  /* Match row: match no + content stacked, tags full width */
  .match-row {
    grid-template-columns: 50px 1fr;
    gap: 10px;
  }
  .match-tags {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    align-items: center;
  }

  /* Time tag: allow wrapping, no overflow */
  .tag.time {
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
    font-size: 0.62rem;
    line-height: 1.4;
    text-align: left;
    padding: 4px 8px;
    border-radius: 8px;
  }

  .hero { padding-top: 60px; }
}

/* ---------- Real flag images (flagpedia.net) ---------- */
.team-flag-img {
  display: inline-block;
  vertical-align: middle;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.team-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.team-label.inline {
  font-size: 0.78rem;
}
.player-flag-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.player-flag-wrap .team-flag-img {
  width: 36px;
  height: 24px;
  border-radius: 4px;
}
/* modal flag img */
.modal-flag .team-flag-img {
  width: 48px !important;
  height: 32px !important;
  border-radius: 6px;
}