:root {
  color-scheme: dark;
  --bg: #07110f;
  --panel: #101f1b;
  --panel-2: #152c25;
  --text: #f4f7f2;
  --muted: #b7c8c1;
  --line: #28483f;
  --accent: #f3c04d;
  --accent-2: #38b985;
  --danger: #e76f51;
  --blue: #61a5ff;
  --pink: #ef476f;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

#top {
  scroll-margin-top: 150px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 185, 133, 0.18), transparent 28%),
    radial-gradient(circle at 88% 20%, rgba(243, 192, 77, 0.12), transparent 25%),
    var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 17, 15, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
  letter-spacing: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  display: block;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 10px rgba(243, 192, 77, 0.22));
}

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

.nav-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a {
  text-decoration: none;
  padding: 8px 0;
}

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

.nav-links a.active,
.nav-links a[aria-current="page"] {
  margin-right: 2px;
  padding: 8px 12px;
  color: #091410;
  background: var(--accent);
  border-radius: 999px;
  font-weight: 800;
}

.nav-links a.active:hover,
.nav-links a[aria-current="page"]:hover {
  color: #091410;
  background: #ffd36a;
}

.hero {
  min-height: 84vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: end;
  width: 100%;
  margin: 0;
  padding: 88px max(16px, calc((100vw - 1180px) / 2)) 52px;
  background:
    linear-gradient(90deg, rgba(7, 17, 15, 0.94), rgba(7, 17, 15, 0.52) 62%, rgba(7, 17, 15, 0.8)),
    url("./assets/hero-stadium.png");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}

.hero-copy h1 {
  max-width: 900px;
  margin: 0;
  font-size: 92px;
  line-height: 0.97;
  letter-spacing: 0;
  text-wrap: balance;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 20px;
  margin: 24px 0 30px;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.button,
.filter,
.tab {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  border-radius: 999px;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.filter:hover,
.tab:hover {
  transform: translateY(-1px);
  border-color: rgba(243, 192, 77, 0.7);
}

.button.primary,
.filter.active,
.tab.active {
  background: var(--accent);
  color: #17200e;
  border-color: var(--accent);
}

.button.secondary {
  background: transparent;
  border-color: rgba(243, 192, 77, 0.48);
}

.hero-actions,
.toolbar,
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.match-selectors {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 260px));
  gap: 12px;
  margin-top: 14px;
}

.score-refresh-status {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  margin: 14px 0 16px;
  padding: 6px 10px;
  color: var(--muted);
  background: rgba(16, 31, 27, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.score-refresh-status.live {
  color: #091410;
  background: var(--accent-2);
  border-color: rgba(56, 185, 133, 0.7);
}

.score-refresh-status.error {
  color: #ffd9d0;
  background: rgba(231, 111, 81, 0.14);
  border-color: rgba(231, 111, 81, 0.42);
}

.filter-select {
  display: grid;
  gap: 6px;
}

.filter-select span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ticker {
  display: grid;
  gap: 12px;
  background: rgba(16, 31, 27, 0.78);
  border: 1px solid rgba(244, 247, 242, 0.12);
  padding: 14px;
  backdrop-filter: blur(10px);
}

.ticker-label {
  margin: 0 0 2px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ticker div,
.notice,
.video-panel,
.city-panel,
.goal-panel,
.match-card,
.analysis-card,
.fan-card,
.highlight-item,
.source-video-card,
.bracket-slot,
.team-card,
.city-card,
.newsletter-panel {
  background: var(--panel);
  border: 1px solid var(--line);
}

.ticker div {
  padding: 18px;
  background: rgba(7, 17, 15, 0.72);
}

.ticker span {
  display: block;
  font-size: 46px;
  line-height: 1;
  color: var(--accent-2);
  font-weight: 800;
}

.ticker p {
  margin: 6px 0 0;
  color: var(--muted);
}

.notice {
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto 0;
  padding: 14px 16px;
  color: var(--muted);
  border-left: 5px solid var(--accent);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0 0;
  scroll-margin-top: 116px;
}

#bracket.section {
  width: min(1500px, calc(100% - 32px));
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0 8px;
}

.page-hero.compact {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.page-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: 76px;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-heading h2 {
  margin: 0 0 18px;
  font-size: 46px;
  line-height: 1.05;
  text-wrap: balance;
}

.section-copy {
  color: var(--muted);
  max-width: 560px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 28px;
  align-items: start;
}

.match-grid,
.analysis-grid,
.fan-grid,
.source-video-grid,
.team-grid,
.city-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.match-grid.expanded,
.team-grid,
.city-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.analysis-grid.single {
  grid-template-columns: 1fr;
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 20px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.match-card,
.analysis-card,
.fan-card,
.highlight-item,
.source-video-card,
.team-card,
.city-card,
.video-panel,
.city-panel,
.goal-panel,
.newsletter-panel {
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
}

.notice,
.ticker,
.ticker div {
  border-radius: 8px;
}

.match-card,
.analysis-card,
.fan-card,
.highlight-item,
.source-video-card,
.bracket-slot {
  position: relative;
  overflow: hidden;
}

.match-card::before,
.analysis-card::before,
.fan-card::before,
.highlight-item::before,
.source-video-card::before,
.bracket-slot::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent-2);
}

.match-card:hover,
.analysis-card:hover,
.highlight-item:hover,
.source-video-card:hover,
.bracket-slot:hover,
.team-card:hover,
.city-card:hover {
  border-color: rgba(243, 192, 77, 0.7);
}

.team-card,
.city-card,
.newsletter-panel {
  background: var(--panel);
  border: 1px solid var(--line);
}

.city-card h4,
.team-card h4 {
  margin: 18px 0 8px;
  color: var(--accent);
}

.city-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.mini-stats span,
.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid var(--line);
  background: #20362f;
  color: var(--muted);
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
}

.bracket-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.bracket-note p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
}

.tournament-bracket {
  overflow: visible;
  padding: 4px 0 18px;
}

.bracket-poster {
  width: 100%;
  min-width: 0;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(170px, 0.58fr) minmax(0, 1.18fr) minmax(260px, 0.8fr);
  grid-template-rows: auto 1fr;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(244, 247, 242, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(191, 34, 48, 0.72), rgba(191, 34, 48, 0.26) 28%, transparent 43%),
    linear-gradient(110deg, transparent 38%, rgba(35, 81, 145, 0.58) 39% 65%, transparent 66%),
    linear-gradient(90deg, transparent 68%, rgba(38, 119, 84, 0.56) 69%),
    radial-gradient(circle at 42% 50%, rgba(243, 192, 77, 0.18), transparent 18%),
    #07110f;
  box-shadow: inset 0 0 0 8px rgba(244, 247, 242, 0.04), 0 24px 70px rgba(0, 0, 0, 0.28);
}

.poster-brand {
  grid-column: 1 / 4;
  display: flex;
  align-items: end;
  justify-content: center;
  min-height: 74px;
  text-align: center;
}

.poster-brand h3 {
  margin: 0;
  font-size: 46px;
  line-height: 0.95;
  text-transform: uppercase;
}

.bracket-wing {
  align-self: center;
}

.bracket-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}

.bracket-wing-right .bracket-path {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.path-column h4 {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.path-stack {
  display: grid;
  gap: 12px;
}

.path-column:nth-child(1) .path-stack { gap: 8px; }
.path-column:nth-child(2) .path-stack { gap: 24px; }
.path-column:nth-child(3) .path-stack { gap: 62px; }
.path-column:nth-child(4) .path-stack { gap: 152px; }

.bracket-wing-right .path-column:nth-child(1) .path-stack { gap: 152px; }
.bracket-wing-right .path-column:nth-child(2) .path-stack { gap: 62px; }
.bracket-wing-right .path-column:nth-child(3) .path-stack { gap: 24px; }
.bracket-wing-right .path-column:nth-child(4) .path-stack { gap: 8px; }

.bracket-center-stage {
  display: grid;
  align-content: center;
  gap: 14px;
  text-align: center;
}

.cup-emblem {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 170px;
  color: #17200e;
  background:
    radial-gradient(circle at 50% 25%, #fff3bd 0 18%, transparent 19%),
    linear-gradient(180deg, #ffe082, #b8892f 62%, #3b5f4b 63% 68%, #e8b84a 69%);
  clip-path: polygon(38% 0, 62% 0, 72% 30%, 62% 62%, 82% 100%, 18% 100%, 38% 62%, 28% 30%);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.32));
}

.cup-emblem span {
  font-size: 44px;
  font-weight: 900;
}

.cup-emblem strong {
  font-size: 18px;
  text-transform: uppercase;
}

.bracket-slot {
  width: 100%;
  min-height: 78px;
  padding: 9px;
  min-width: 0;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  background: rgba(16, 31, 27, 0.9);
  border: 1px solid rgba(244, 247, 242, 0.16);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.bracket-slot.final,
.bracket-slot.third {
  min-height: 100px;
}

.bracket-slot.finished::before {
  background: var(--accent);
}

.bracket-slot.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(243, 192, 77, 0.18), 0 18px 34px rgba(0, 0, 0, 0.24);
}

.bracket-slot .status {
  min-height: 22px;
  font-size: 11px;
}

.bracket-venue {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bracket-card-top,
.bracket-meta,
.bracket-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bracket-card-top,
.bracket-meta {
  color: var(--muted);
  font-size: 11px;
}

.bracket-team {
  min-height: 21px;
  margin-top: 4px;
  font-weight: 800;
  font-size: 18px;
}

.bracket-team span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bracket-team strong {
  color: var(--accent);
}

.bracket-meta {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.bracket-detail {
  min-height: 132px;
  padding: 14px;
  background: rgba(7, 17, 15, 0.82);
  border: 1px solid rgba(244, 247, 242, 0.16);
  border-radius: 8px;
}

.bracket-detail h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.1;
}

.bracket-detail p {
  margin: 0;
  color: var(--muted);
}

.bracket-detail strong {
  display: inline-flex;
  margin-top: 10px;
  color: var(--accent);
  font-size: 24px;
}

.groups-board {
  grid-row: 1 / 3;
  grid-column: 4;
  align-self: stretch;
  padding: 20px;
  background: rgba(8, 50, 34, 0.82);
  border: 1px solid rgba(244, 247, 242, 0.16);
  border-radius: 8px;
}

.groups-board h3 {
  margin: 0 0 16px;
  font-size: 38px;
  text-transform: uppercase;
}

.group-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.group-row h4 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
}

.group-teams {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.team-pill {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 3px 5px;
  color: #17200e;
  background: var(--text);
  border: 2px solid rgba(243, 192, 77, 0.78);
  border-radius: 999px;
  font-weight: 900;
  min-width: 0;
  overflow: hidden;
}

.team-flag {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 17, 15, 0.08);
  border: 1px solid rgba(7, 17, 15, 0.18);
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
}

.team-code {
  flex: 0 0 auto;
  min-width: 25px;
  overflow: visible;
  font-size: 11px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.match-top,
.match-score,
.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.match-top {
  color: var(--muted);
  font-size: 12px;
}

.match-score {
  margin: 12px 0;
  font-size: 18px;
  font-weight: 800;
}

.score {
  color: var(--accent);
  white-space: nowrap;
}

.status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  background: #20362f;
  color: var(--muted);
  font-size: 12px;
}

.status.live {
  background: var(--danger);
  color: white;
  animation: pulse 1.7s ease-in-out infinite;
}

.status.finished {
  background: #234b3a;
  color: #bdf2d7;
}

.highlight-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.highlight-item {
  text-align: left;
  cursor: pointer;
  width: 100%;
}

.highlight-item h3,
.analysis-card h3,
.fan-card h3,
.source-video-card h3 {
  margin: 0 0 8px;
}

.highlight-item p,
.analysis-card p,
.fan-card p,
.source-video-card p,
.goal-panel p,
.city-panel p {
  margin: 0;
  color: var(--muted);
}

.source-video-card a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.section-action {
  margin-top: 18px;
}

.card-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.view-more-row {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  grid-column: 1 / -1;
}

.split > .view-more-row {
  justify-content: flex-start;
}

.view-more-button {
  min-width: 150px;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(243, 192, 77, 0.16), rgba(56, 185, 133, 0.1)),
    #050807;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.video-shell.placeholder::after {
  content: "Video coming soon";
  position: absolute;
  inset: auto 14px 12px auto;
  color: rgba(244, 247, 242, 0.72);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.video-shell.source-only::after {
  content: "Open at source";
}

.video-shell iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.live-video-card {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.live-video-card .match-top {
  margin-bottom: 10px;
}

.video-shell.live-feed {
  margin-bottom: 0;
}

.goal-coverage {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -6px 0 14px;
}

.goal-coverage span,
.goal-source-row span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  color: var(--muted);
  background: #20362f;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.goal-source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.goal-source-row a {
  color: var(--accent);
  font-weight: 800;
}

.fan-grid {
  grid-template-columns: 1fr;
  margin: 0;
}

.fan-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  margin-bottom: 10px;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}

.host-map {
  height: clamp(360px, 48vw, 560px);
  border: 1px solid var(--line);
  background: #081410;
  position: relative;
  overflow: hidden;
}

.host-map.wide {
  height: clamp(390px, 44vw, 590px);
  margin-bottom: 24px;
}

.map-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.host-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--panel-2);
  color: white;
  cursor: pointer;
  font-weight: 800;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.host-dot.active {
  background: var(--accent);
  color: #17200e;
}

.city-panel h3,
.goal-panel h3 {
  margin: 0 0 10px;
  font-size: 26px;
}

.city-stats {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.city-stats span {
  color: var(--accent);
  font-weight: 800;
}

.city-detail {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.city-detail h4,
.city-panel h4 {
  margin: 16px 0 8px;
  color: var(--accent);
}

.city-detail p {
  margin: 0;
}

.city-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.city-panel li {
  margin: 6px 0;
}

.select-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 700;
}

select {
  width: 100%;
  min-height: 44px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 0 12px;
  margin-bottom: 16px;
  border-radius: 8px;
}

.newsletter-panel h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.1;
}

.newsletter-panel p {
  color: var(--muted);
}

.capture-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.capture-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.capture-form input {
  width: 100%;
  min-height: 44px;
  color: var(--text);
  background: #081410;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
}

.soccer-field {
  position: relative;
  min-height: 430px;
  border: 3px solid rgba(255,255,255,0.8);
  background:
    radial-gradient(circle at 50% 50%, transparent 0 58px, rgba(255,255,255,0.75) 59px 61px, transparent 62px),
    linear-gradient(90deg, transparent 49.7%, rgba(255,255,255,0.8) 49.9% 50.1%, transparent 50.3%),
    repeating-linear-gradient(90deg, #1d7d4d 0 82px, #218b55 82px 164px);
  overflow: hidden;
  border-radius: 8px;
}

.soccer-field::before,
.soccer-field::after {
  content: "";
  position: absolute;
  top: 30%;
  width: 80px;
  height: 40%;
  border: 3px solid rgba(255,255,255,0.8);
}

.soccer-field::before { left: -3px; }
.soccer-field::after { right: -3px; }

.goal-marker {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid white;
  background: var(--accent);
  color: #17200e;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 0 5px rgba(243, 192, 77, 0.18);
}

.goal-marker.has-video {
  background: #f4f7f2;
  color: #0b1b15;
  box-shadow: 0 0 0 5px rgba(56, 185, 133, 0.24);
}

.goal-marker.active {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(231, 111, 81, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(231, 111, 81, 0); }
}

.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 70px auto 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .nav {
    gap: 12px;
  }

  .nav-links {
    gap: 8px 12px;
  }

  .nav-links a.active,
  .nav-links a[aria-current="page"] {
    padding: 7px 11px;
  }

  .hero,
  .split,
  .map-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .hero-copy h1 {
    font-size: 48px;
    line-height: 1.02;
  }

  .section-heading h2 {
    font-size: 34px;
  }

  .page-hero h1 {
    font-size: 46px;
  }

  .match-grid,
  .analysis-grid,
  .source-video-grid,
  .team-grid,
  .city-grid,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .match-selectors {
    grid-template-columns: 1fr;
  }

  .bracket-note {
    align-items: flex-start;
    flex-direction: column;
  }

  #bracket.section {
    width: min(1180px, calc(100% - 32px));
  }

  .bracket-poster {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 18px;
    padding: 16px;
    background:
      linear-gradient(180deg, rgba(191, 34, 48, 0.54), rgba(35, 81, 145, 0.36) 45%, rgba(38, 119, 84, 0.34)),
      #07110f;
  }

  .poster-brand,
  .groups-board {
    grid-column: auto;
    grid-row: auto;
  }

  .poster-brand {
    min-height: auto;
    justify-content: flex-start;
    text-align: left;
  }

  .poster-brand h3 {
    font-size: 34px;
  }

  .bracket-center-stage {
    order: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .cup-emblem {
    grid-column: 1 / -1;
    min-height: 120px;
    max-width: 220px;
    width: 100%;
    justify-self: center;
  }

  .bracket-detail {
    grid-column: 1 / -1;
  }

  .bracket-wing-left {
    order: 2;
  }

  .bracket-wing-right {
    order: 3;
  }

  .groups-board {
    order: 4;
  }

  .bracket-path,
  .bracket-wing-right .bracket-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .path-column:nth-child(1) .path-stack,
  .path-column:nth-child(2) .path-stack,
  .path-column:nth-child(3) .path-stack,
  .path-column:nth-child(4) .path-stack,
  .bracket-wing-right .path-column:nth-child(1) .path-stack,
  .bracket-wing-right .path-column:nth-child(2) .path-stack,
  .bracket-wing-right .path-column:nth-child(3) .path-stack,
  .bracket-wing-right .path-column:nth-child(4) .path-stack {
    gap: 10px;
  }

  .groups-board h3 {
    font-size: 30px;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }
}

@media (max-width: 460px) {
  #top {
    scroll-margin-top: 170px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .lead {
    font-size: 18px;
  }

  .host-dot {
    min-width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .bracket-center-stage,
  .bracket-path,
  .bracket-wing-right .bracket-path,
  .group-teams {
    grid-template-columns: 1fr;
  }

  .bracket-slot.final,
  .bracket-slot.third {
    min-height: 92px;
  }

  .bracket-team {
    font-size: 17px;
  }

  .group-row {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .group-teams {
    gap: 8px;
  }

  .team-pill {
    width: 100%;
  }
}
