/*
 * tournament.css — Tier 2 (tennis-tournament page type)
 *
 * Loaded on tournament detail pages (e.g. /tournaments/us-open-2025/).
 * Loaded AFTER site.css so the tournament-local palette (cyan-blue) wins
 * over the sitewide green accent — preserving the existing visual design.
 *
 * This file is a straight migration of the previously inline <style> in
 * src/templates/tournament/template.html. Restructuring and visual polish
 * are out of scope for the v1.2 CSS refactor.
 */

/* ─────────────────────────────────────────────────────────────
 * 1. Tournament-local palette override (cyan-blue accent)
 * ───────────────────────────────────────────────────────────── */

:root {
  /* Tournament-page palette override: tennis-green / tennis-yellow swap to
   * the cyan-blue family (intentional, see DESIGN-SYSTEM.md and
   * MEMORY.md `project_tournament_palette`). --gold is the trophy/winner
   * accent. --light-text is a tournament-local off-white used inside
   * bracket match-name rows (slightly softer than --white). The
   * site-level --white, --dark-bg, --accent-* tokens come from site.css. */
  --tennis-green: #4DC9F6;
  --tennis-yellow: #3AB0FF;
  --gold: #FFD700;
  --light-text: #eaeaea;
}

body {
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--light-text);
  background: var(--dark-bg);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body.lang-zh { font-family: 'Noto Sans SC', 'Sora', sans-serif; }
body.lang-ko { font-family: 'Noto Sans KR', 'Sora', sans-serif; }
body.lang-ja { font-family: 'Noto Sans JP', 'Sora', sans-serif; }
body.lang-ar { font-family: 'Noto Sans Arabic', 'Sora', sans-serif; }
body.lang-hi { font-family: 'Noto Sans Devanagari', 'Sora', sans-serif; }
body.lang-fa { font-family: 'Noto Sans Arabic', 'Sora', sans-serif; direction: rtl; }
body.lang-fa .spark-footer p { letter-spacing: 0; text-transform: none; }
body.lang-fa .hero-ol { letter-spacing: 0; text-transform: none; }
body.lang-ru { font-family: 'Sora', sans-serif; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg,
    #070d1e 0%, #0b1e4a 15%, #0e2870 30%, #1a3ca0 45%,
    #2048c8 55%, #2a3cb8 62%, #2d1f80 72%, #3c1870 82%,
    #4a1560 92%, #3a1050 100%);
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(77,201,246,0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(58,176,255,0.1) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(58,176,255,0.08) 0%, transparent 35%);
  z-index: -1;
  pointer-events: none;
}

body[dir="rtl"] .bracket-nav { direction: ltr; }
body[dir="rtl"] .round-pills { direction: ltr; }
body[dir="rtl"] .match-player { direction: rtl; }

/* ─────────────────────────────────────────────────────────────
 * 2. Page shell. (Short-name lang switcher rules removed 2026-04-18,
 *    slice f — same dead-code reason as the parallel removal in
 *    site.css §11.)
 * ───────────────────────────────────────────────────────────── */

.pw { max-width: 1160px; margin: 0 auto; padding: 0 24px 10px; }

/* ─────────────────────────────────────────────────────────────
 * 3. Hero + stats bar
 * ───────────────────────────────────────────────────────────── */

.hero { text-align: center; padding: 48px 24px 32px; }
.hero-ol {
  font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  background: linear-gradient(135deg, var(--tennis-green) 30%, var(--tennis-yellow) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 16px; display: inline-block;
}
.hero h1 {
  font-family: 'Manrope', sans-serif; font-size: clamp(26px, 5vw, 40px);
  font-weight: 700; color: var(--white); line-height: 1.15; margin-bottom: 8px;
}
.hero h2 {
  font-family: 'Poppins', sans-serif; font-size: clamp(18px, 3vw, 24px);
  font-weight: 500; color: var(--tennis-green); margin-bottom: 12px;
}
.hero p {
  font-family: 'Sora', sans-serif; font-size: 15px; color: var(--text-tertiary);
  max-width: 600px; margin: 0 auto 24px; line-height: 1.7;
}

/* Stats bar layout moved to site.css §9b (shared component).
 * Tournament keeps its display-type overrides (Manrope number font,
 * cyan-blue gradient, 12px label) because tournament.css does not
 * redefine --accent-primary/--accent-secondary — only the tournament-
 * local --tennis-green / --tennis-yellow tokens. */
.sn {
  font-family: 'Manrope', sans-serif;
  background: linear-gradient(135deg, var(--tennis-green) 30%, var(--tennis-yellow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sl {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ─────────────────────────────────────────────────────────────
 * 4. Tabs (singles/doubles/mixed/milestones)
 * ───────────────────────────────────────────────────────────── */

.tabs {
  display: flex; justify-content: center; gap: 8px;
  margin: 48px auto 32px; background: rgba(8,14,16,0.5);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 40px; padding: 8px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  flex-wrap: nowrap; overflow-x: auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 500;
  color: var(--text-tertiary); padding: 8px 16px; border-radius: 32px;
  cursor: pointer; transition: all .3s; user-select: none; border: none; background: none;
}
.tab:hover { color: var(--tennis-green); }
.tab.active {
  background: var(--tennis-green); color: var(--dark-bg); font-weight: 600;
  box-shadow: 0 2px 12px rgba(77,201,246,0.3);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ─────────────────────────────────────────────────────────────
 * 5. Bracket section, nav, round pills
 * ───────────────────────────────────────────────────────────── */

.bracket-section { margin: 0 auto 48px; }
.bracket-title {
  font-family: 'Poppins', sans-serif; font-size: 24px; font-weight: 700;
  color: var(--white); text-align: center; margin-bottom: 24px;
}

.bracket-nav { display: flex; align-items: center; justify-content: center; margin-bottom: 20px; gap: 12px; }
.bracket-nav-arrow {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .3s;
  color: var(--text-secondary); font-size: 18px; user-select: none;
}
.bracket-nav-arrow:hover {
  background: rgba(77,201,246,0.1); border-color: rgba(77,201,246,0.3);
  color: var(--tennis-green);
}
.bracket-nav-arrow.disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }

.round-pills { display: flex; gap: 8px; overflow-x: auto; padding: 0 8px; scrollbar-width: none; }
.round-pills::-webkit-scrollbar { display: none; }
.round-pill {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px; padding: 6px 14px;
  font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 500;
  color: var(--text-tertiary); cursor: pointer; transition: all .3s;
  white-space: nowrap; user-select: none;
}
.round-pill:hover {
  background: rgba(77,201,246,0.1); border-color: rgba(77,201,246,0.3);
  color: var(--tennis-green);
}
.round-pill.active {
  background: var(--tennis-green); color: var(--dark-bg); font-weight: 600;
  border-color: var(--tennis-green);
}

/* ─────────────────────────────────────────────────────────────
 * 6. Bracket container + tree layout (track, rounds, match cards)
 * ───────────────────────────────────────────────────────────── */

.bracket-container {
  background: rgba(8,14,16,0.68); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 24px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  overflow: hidden; cursor: grab; user-select: none; -webkit-user-select: none;
}
.bracket-container:active { cursor: grabbing; }
.bracket-container.swiping .bracket-track { transition: none !important; }

.bracket-viewport { overflow: hidden; position: relative; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.bracket-viewport::-webkit-scrollbar { display: none; }
.bracket-track { position: relative; transition: transform 0.3s ease; will-change: transform; }

.bracket-round { width: 280px; padding: 0 16px; position: absolute; top: 0; left: 0; }
.bracket-round:first-child { padding-left: 0; }
.bracket-round:last-child { padding-right: 0; }

.round-title {
  font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 600;
  color: var(--tennis-green); text-align: center; margin-bottom: 12px; white-space: nowrap;
}

.match {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px; padding: 8px 10px;
  font-family: 'Sora', sans-serif; font-size: 12px;
  position: absolute; height: 82px; cursor: pointer;
  transition: border-color .2s, background .2s;
  overflow: hidden; box-sizing: border-box;
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
}
.match:hover { border-color: rgba(77,201,246,0.3); background: rgba(255,255,255,0.06); }
.match.final { border: 1px solid var(--gold); background: rgba(255,215,0,0.06); }
.match-player { display: flex; align-items: center; gap: 4px; line-height: 1.4; }
.match-seed { color: var(--text-tertiary); font-size: 10px; min-width: 20px; font-weight: 500; text-align: right; }
.match-flag { font-size: 12px; flex-shrink: 0; }
.match-name { color: var(--light-text); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.match-name.winner { color: var(--gold); font-weight: 700; }
.match-vs { color: var(--text-tertiary); font-size: 9px; padding-left: 24px; line-height: 1; opacity: 0.5; }
.match-score { color: var(--tennis-green); font-weight: 600; font-size: 10px; padding-left: 24px; letter-spacing: 0.3px; }
.match-video-icon {
  position: absolute; top: 5px; right: 6px; opacity: 0.95;
  display: flex; align-items: center;
}

.bracket-line { position: absolute; z-index: 1; }
.bracket-line-h { height: 2px; background: rgba(77,201,246,0.25); }
.bracket-line-v { width: 2px; background: rgba(77,201,246,0.25); }
.bracket-line.horizontal { height: 2px; }
.bracket-line.vertical { width: 2px; }

/* ─────────────────────────────────────────────────────────────
 * 7. Doubles bracket
 * ───────────────────────────────────────────────────────────── */

.doubles-bracket { margin: 32px auto; }
.doubles-title {
  font-family: 'Poppins', sans-serif; font-size: 20px; font-weight: 600;
  color: var(--tennis-green); text-align: center; margin-bottom: 20px;
}
.doubles-container {
  background: rgba(8,14,16,0.68); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 24px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.doubles-tree { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; max-width: 600px; margin: 0 auto; }
.doubles-match {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px; padding: 16px;
  font-family: 'Sora', sans-serif; font-size: 12px;
}
.doubles-match.final { border: 2px solid var(--gold); background: rgba(255,215,0,0.08); }
.doubles-team { margin-bottom: 8px; }
.doubles-team:last-child { margin-bottom: 0; }
.doubles-player { color: var(--light-text); font-weight: 500; }
.doubles-team.winner .doubles-player { color: var(--gold); font-weight: 700; }
.doubles-score { color: var(--tennis-green); font-weight: 600; text-align: center; margin-top: 8px; }

/* ─────────────────────────────────────────────────────────────
 * 8. Milestones
 * ───────────────────────────────────────────────────────────── */

.milestones {
  margin: 48px auto; background: rgba(8,14,16,0.68);
  border: 1px solid rgba(77,201,246,0.2); border-radius: 12px; padding: 30px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.milestones h3 {
  font-family: 'Poppins', sans-serif; font-size: 24px; font-weight: 700;
  color: var(--tennis-green); text-align: center; margin-bottom: 24px;
}
.milestone { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.milestone:last-child { margin-bottom: 0; }
.milestone-num {
  font-family: 'Manrope', sans-serif; font-size: 16px; font-weight: 700;
  color: var(--gold); min-width: 24px; text-align: center; margin-top: 2px;
}
.milestone-text {
  font-family: 'Sora', sans-serif; font-size: 14px; color: var(--light-text); line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────
 * 9. Champion card
 * ───────────────────────────────────────────────────────────── */

.champions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px auto; max-width: 820px; }
/* Single-champion (men-only or women-only) events: center the lone card so it
 * doesn't hug the left half of the 2-col grid. */
.champions:has(> .champion-card:only-child) { grid-template-columns: minmax(0, 400px); justify-content: center; }
.champion-card {
  background: rgba(8,14,16,0.7); border: 1px solid rgba(255,215,0,0.15);
  border-radius: 12px; padding: 20px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  text-align: center; position: relative; overflow: hidden;
}
.champion-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--tennis-green));
}
.champion-card:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,215,0,0.15); }
.champion-headshot {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: top;
  border: 2px solid var(--gold); margin: 0 auto 10px; display: block;
  background: rgba(255,255,255,0.05);
}
.champion-header { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 14px; }
.champion-trophy { font-size: 20px; }
.champion-title {
  font-family: 'Sora', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gold);
}
.champion-name-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 2px; }
.champion-flag { font-size: 18px; }
.champion-player {
  font-family: 'Manrope', sans-serif; font-size: 20px; font-weight: 700;
  color: var(--white); text-decoration: none;
}
a.champion-player:hover,
a.champion-player:hover ~ *,
.champion-opp-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.champion-seed {
  font-family: 'Sora', sans-serif; font-size: 12px; color: var(--text-tertiary);
  margin-bottom: 12px; text-align: center;
}
.champion-opponent {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px; padding: 8px 12px; margin-bottom: 12px;
}
.champion-vs { font-family: 'Sora', sans-serif; font-size: 11px; color: var(--text-tertiary); margin-bottom: 2px; text-align: center; }
.champion-opp-name { font-family: 'Sora', sans-serif; font-size: 13px; color: var(--light-text); font-weight: 500; text-align: center; }
.champion-opp-name a { color: inherit; text-decoration: none; }
.champion-score {
  font-family: 'Sora', sans-serif; font-size: 14px; color: var(--tennis-green);
  font-weight: 700; margin-top: 4px; letter-spacing: 0.5px; text-align: center;
}
.champion-prize { font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 700; color: var(--gold); margin-bottom: 12px; text-align: center; }
.champion-prize-label {
  font-family: 'Sora', sans-serif; font-size: 10px; color: var(--text-tertiary);
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 2px; text-align: center;
}
.champion-link {
  display: inline-flex; margin: 0 auto; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 50px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-secondary); font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 500;
  text-decoration: none; transition: all .3s;
}
.champion-link:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.28); color: var(--white); }
/* True YouTube red on the icon itself — the brand cue belongs on the play
 * triangle, not on the surrounding chip (red chip reads as a danger alert). */
.champion-link svg { width: 16px; height: 12px; fill: #ff0000; }

/* ─────────────────────────────────────────────────────────────
 * 10. Match popup (redesigned — full version)
 * ───────────────────────────────────────────────────────────── */

.match-popup {
  display: none; position: fixed;
  background: rgba(12, 18, 30, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 18px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  z-index: 10000; min-width: 290px; max-width: 360px;
  font-family: 'Sora', sans-serif;
}
.match-popup.show { display: block; }

.match-popup-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.match-popup-round {
  font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 600;
  color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 1.2px; white-space: nowrap;
}
.match-popup-header-sep { color: var(--text-tertiary); font-size: 10px; opacity: 0.5; }
.match-popup-header-score {
  font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 700;
  color: var(--tennis-green); white-space: nowrap;
}
.match-popup-close {
  background: none; border: none; color: var(--text-tertiary); font-size: 16px;
  cursor: pointer; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px; transition: all 0.2s;
  margin-left: auto; flex-shrink: 0;
}
.match-popup-close:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }

.match-popup-players { margin-bottom: 10px; }
.match-popup-player {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 0; font-size: 14px; flex-direction: row;
}
.match-popup-player.doubles-row { justify-content: space-between; }
.match-popup-player.doubles-row .match-popup-info { text-align: center; flex: 1; min-width: 0; }
.match-popup-player.doubles-row .popup-headshot,
.match-popup-player.doubles-row .popup-doubles-initial { flex-shrink: 0; }
.match-popup-player.winner .match-popup-name { color: var(--gold); font-weight: 600; }
.match-popup-player.loser .match-popup-name { color: #d5d5d5; font-weight: 400; }

.popup-headshot {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover; object-position: top;
  border: 2.5px solid #FFD700;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
  flex-shrink: 0;
}
.match-popup-player.loser .popup-headshot,
.match-popup-player.loser.doubles-row .popup-headshot {
  border-color: rgba(255, 255, 255, 0.25); box-shadow: none;
}
.popup-avatar-slot { width: 64px; height: 64px; flex-shrink: 0; }
.match-popup-player.doubles-row .popup-headshot { width: 42px; height: 42px; }
.popup-doubles-initial {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); border: 2px solid rgba(255, 255, 255, 0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; color: #d5d5d5; flex-shrink: 0;
}
.popup-doubles-flags-inline { display: flex; gap: 2px; font-size: 18px; flex-shrink: 0; align-items: center; }

.match-popup-flag {
  font-size: 28px; flex-shrink: 0; width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.04); border-radius: 50%;
  border: 2.5px solid rgba(255, 215, 0, 0.3);
}
.match-popup-player.loser .match-popup-flag { border-color: rgba(255, 255, 255, 0.18); }

.match-popup-info { flex: 1; min-width: 0; }
.match-popup-seed { color: var(--text-tertiary); font-size: 12px; font-weight: 500; }
.match-popup-name { font-family: 'Poppins', sans-serif; font-size: 14px; line-height: 1.3; }
.match-popup-name a { color: inherit; text-decoration: none; transition: text-decoration-color 0.2s; }
.match-popup-name a:hover { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.4); }
.match-popup-player.winner .match-popup-name a:hover { text-decoration-color: rgba(255, 215, 0, 0.5); }
.match-popup-flags { display: flex; gap: 2px; font-size: 14px; margin-top: 1px; }
.match-popup-checkmark { color: var(--gold); font-size: 16px; font-weight: bold; flex-shrink: 0; }

.match-popup-vs {
  text-align: center; color: var(--text-tertiary);
  font-size: 11px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
  margin: 6px 0;
}

.match-popup-video {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px; padding: 9px 14px;
  color: var(--text-secondary); text-decoration: none;
  font-size: 13px; font-weight: 500;
  transition: all 0.3s; margin-top: 10px;
}
.match-popup-video:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.28); color: var(--white); text-decoration: none; }
.match-popup-video .yt-icon { flex-shrink: 0; }

.popup-overlay-DISABLED {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7); z-index: 999;
  opacity: 0; animation: fadeIn 0.2s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

/* ─────────────────────────────────────────────────────────────
 * 11. Tournament-local footer variant
 * ───────────────────────────────────────────────────────────── */

/* Page-local source-attribution block, sits inside <main> at the end of
 * page content. The global .site-footer follows it with its own margin-top
 * and border-top — so we DON'T draw our own border or add bottom padding
 * here (avoids the "double-decker" two-divider visual the user flagged).
 * Just a small breathing block above the page content's edge. */
.spark-footer {
  text-align: center; padding: 12px 0 0;
  margin-top: 24px;
}
.spark-footer-source { font-size: 13px; color: var(--text-tertiary); line-height: 1.6; margin-bottom: 0; }
/* .spark-footer-timestamp removed — no markup ever emitted it; the global
 * .site-footer in the shell carries the copyright/legal line below. */

/* Dead code removed (slice e, 2026-04-18): legacy .ft / .fl decorative
 * footer rule (text + colored bar). No consumers in src/templates/ or
 * scripts/prebuild.js — superseded by the v1.3 .site-footer in the
 * shell. */

/* ─────────────────────────────────────────────────────────────
 * 12. Responsive (768 / 600 / 480)
 * ───────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .pw { padding: 0 16px; }
  .hero { padding: 36px 16px 24px; }
  .sb { gap: 20px; }
  .sn { font-size: 22px; }
  .tabs { flex-wrap: nowrap; gap: 4px; }
  .tab { padding: 6px 12px; font-size: 12px; }
  .bracket-container { padding: 16px; }
  .bracket-round { min-width: 240px; padding: 0 12px; }
  .doubles-tree { grid-template-columns: 1fr; gap: 16px; }
  .milestones { padding: 24px; }
}

@media (max-width: 600px) {
  .bracket-round { min-width: 200px; padding: 0 8px; }
  .match { min-height: 80px; padding: 10px; }
  .match-video img { height: 50px; }
  .play-overlay { width: 20px; height: 20px; font-size: 8px; }
  .champions { grid-template-columns: 1fr; }
  .champion-player { font-size: 18px; }
  .champion-prize { font-size: 16px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 24px; }
  .hero h2 { font-size: 18px; }
  .bracket-container { padding: 12px; }
  .bracket-round { min-width: 180px; }
}
