:root {
  --bg: #070908;
  --surface: #101411;
  --surface-strong: #171d18;
  --line: rgba(255, 255, 255, 0.13);
  --text: #f7fbf5;
  --muted: #aab5ac;
  --morocco-red: #d7193f;
  --morocco-green: #009a44;
  --brazil-yellow: #f7d23e;
  --brazil-green: #18a84a;
  --white-soft: #f4f6ee;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(215, 25, 63, 0.2), transparent 28rem),
    radial-gradient(circle at 90% 5%, rgba(247, 210, 62, 0.13), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family:
    "Barlow", "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

/* Header */
.nav-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family:
    "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  position: relative;
  display: inline-block;
  background:
    linear-gradient(135deg, var(--morocco-red) 0 48%, var(--brazil-yellow) 48% 58%, var(--brazil-green) 58% 100%);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.logo-mark::before,
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
}

.logo-mark::after {
  inset: 14px 7px;
  border-width: 0;
  border-top: 2px solid rgba(255, 255, 255, 0.82);
  border-bottom: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 0;
}

.logo-text {
  background: linear-gradient(90deg, var(--white-soft), var(--brazil-yellow) 58%, #a9f3bd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.language-switcher,
.player-toolbar {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.language-button,
.stream-tab {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  padding: 0 14px;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.language-button:hover,
.stream-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.language-button.is-active,
.stream-tab.is-active {
  color: #071008;
  background: linear-gradient(135deg, var(--brazil-yellow), #ffffff 45%, #7df0a2);
  box-shadow: 0 8px 24px rgba(247, 210, 62, 0.2);
}

/* Hero stadium scene */
.hero-section {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  padding: 90px 0 110px;
}

.stadium-scene {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(to bottom, rgba(3, 5, 4, 0.45), rgba(3, 5, 4, 0.92) 66%, #050705),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 68px),
    linear-gradient(120deg, rgba(215, 25, 63, 0.5), transparent 33%),
    linear-gradient(240deg, rgba(24, 168, 74, 0.42), transparent 32%),
    #101510;
}

.stadium-scene::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -28%;
  width: 1280px;
  max-width: 150vw;
  aspect-ratio: 16 / 7;
  transform: translateX(-50%) perspective(720px) rotateX(58deg);
  transform-origin: bottom;
  border: 2px solid rgba(255, 255, 255, 0.26);
  background:
    linear-gradient(90deg, transparent 49.7%, rgba(255, 255, 255, 0.22) 49.7% 50.3%, transparent 50.3%),
    repeating-linear-gradient(90deg, rgba(13, 103, 45, 0.94) 0 96px, rgba(10, 84, 38, 0.94) 96px 192px);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.45), 0 -10px 70px rgba(25, 168, 74, 0.16);
}

.stadium-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05), transparent 30%),
    radial-gradient(ellipse at 50% 78%, rgba(247, 210, 62, 0.16), transparent 35%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.floodlight {
  position: absolute;
  top: 18%;
  width: 34vw;
  height: 42vh;
  background: linear-gradient(to bottom, rgba(255, 246, 196, 0.24), transparent 72%);
  filter: blur(1px);
  clip-path: polygon(46% 0, 60% 0, 100% 100%, 0 100%);
  opacity: 0.75;
}

.floodlight-left {
  left: -4vw;
  transform: skewX(-16deg);
}

.floodlight-right {
  right: -4vw;
  transform: skewX(16deg);
}

.crowd {
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.26) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(247, 210, 62, 0.25) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(215, 25, 63, 0.24) 0 1px, transparent 2px);
  background-size: 32px 18px, 46px 21px, 58px 24px;
  background-position: 0 0, 16px 7px, 28px 12px;
  opacity: 0.45;
}

.crowd-one {
  top: 10%;
}

.crowd-two {
  top: 20%;
  opacity: 0.3;
}

.pitch-line {
  position: absolute;
  left: 50%;
  bottom: 9%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transform: translateX(-50%) perspective(600px) rotateX(66deg);
}

.center-circle {
  width: 210px;
  height: 210px;
  border-radius: 50%;
}

.pitch-arc {
  width: 520px;
  height: 250px;
  bottom: -4%;
  border-radius: 50% 50% 0 0;
  border-bottom: 0;
}

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

.eyebrow,
.section-kicker,
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 30px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  padding: 6px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--morocco-red);
  box-shadow: 0 0 0 0 rgba(215, 25, 63, 0.75);
  animation: livePulse 1.5s infinite;
}

.matchup {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.team {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 14px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(5, 8, 6, 0.5);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.team-flag {
  flex: 0 0 48px;
  width: 48px;
  height: 34px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

.team strong {
  font-size: 1.1rem;
}

.versus {
  font-family:
    "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--brazil-yellow);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family:
    "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  letter-spacing: 0;
  line-height: 1.02;
}

h1 {
  max-width: 840px;
  margin-bottom: 22px;
  margin-top: 28px;
  font-size: clamp(3.2rem, 10vw, 7.9rem);
  text-transform: uppercase;
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 32px;
  color: #d8e1da;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-cta,
.secondary-cta {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0 20px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.primary-cta {
  color: #071008;
  background: linear-gradient(135deg, var(--brazil-yellow), #fff5b8 47%, #8cf2ac);
  box-shadow: 0 14px 34px rgba(247, 210, 62, 0.24);
}

.secondary-cta {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.primary-cta:hover,
.secondary-cta:hover {
  transform: translateY(-2px);
}

/* Focus states */
.primary-cta:focus-visible,
.secondary-cta:focus-visible,
.language-button:focus-visible,
.stream-tab:focus-visible,
.nav-links a:focus-visible {
  outline: 3px solid rgba(247, 210, 62, 0.85);
  outline-offset: 3px;
}

/* Sections */
.match-section,
.player-section,
.guide-section {
  padding: 86px 0;
}

.match-section,
.guide-section {
  background: linear-gradient(180deg, #070908, #0d110e);
}

.player-section {
  background:
    linear-gradient(180deg, rgba(215, 25, 63, 0.08), rgba(24, 168, 74, 0.07)),
    #090c0a;
}

.section-heading,
.match-grid,
.player-toolbar,
.player-shell,
.steps-grid,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading h2 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(2.3rem, 5vw, 4.3rem);
  text-transform: uppercase;
}

.section-heading p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-kicker {
  margin-bottom: 12px;
  color: var(--brazil-yellow);
}

.match-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.match-card,
.match-center,
.step-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.07);
}

.match-card {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 190px;
  padding: 24px;
}

.match-card h3,
.step-card h3 {
  margin-bottom: 8px;
  font-size: 1.9rem;
  text-transform: uppercase;
}

.match-card p,
.step-card p,
.match-center p {
  margin-bottom: 0;
  color: var(--muted);
}

.team-label {
  color: var(--brazil-yellow);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flag-card {
  flex: 0 0 104px;
  width: 104px;
  aspect-ratio: 3 / 2;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}

.match-center {
  min-height: 190px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background:
    linear-gradient(135deg, rgba(215, 25, 63, 0.28), rgba(24, 168, 74, 0.18)),
    rgba(255, 255, 255, 0.06);
}

.match-center strong {
  margin-top: 14px;
  margin-bottom: 8px;
  font-family:
    "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 2.1rem;
  line-height: 1;
  text-transform: uppercase;
}

.live-badge {
  padding: 5px 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--morocco-red), #9d132d);
  box-shadow: 0 0 26px rgba(215, 25, 63, 0.34);
}

.player-toolbar {
  margin-bottom: 16px;
}

/* Player */
.stream-tab {
  padding: 0 18px;
}

.player-shell {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.player-topline {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.26);
}

.player-language {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.player-frame-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 210px;
  background:
    linear-gradient(135deg, rgba(215, 25, 63, 0.13), transparent),
    linear-gradient(225deg, rgba(247, 210, 62, 0.12), transparent),
    #050605;
}

.player-mount,
.player-mount iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-mount iframe {
  display: block;
  border: 0;
  background: #000;
}

.player-loader,
.player-fallback,
.locker-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}

.player-loader {
  gap: 12px;
  background: #050605;
  color: var(--muted);
}

.spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--brazil-yellow);
  animation: spin 820ms linear infinite;
}

.player-fallback {
  background: rgba(5, 6, 5, 0.92);
}

.player-fallback strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.player-fallback span {
  color: var(--muted);
}

.locker-overlay {
  z-index: 10;
  background: rgba(2, 3, 2, 0.84);
  backdrop-filter: blur(10px);
}

.locker-panel {
  width: min(430px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 26px;
  background: rgba(16, 20, 17, 0.94);
  box-shadow: var(--shadow);
}

.locker-panel h3 {
  margin: 16px 0 8px;
  font-size: 2rem;
  text-transform: uppercase;
}

.locker-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card {
  min-height: 210px;
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.step-card:hover {
  transform: translateY(-3px);
  border-color: rgba(247, 210, 62, 0.34);
  background: rgba(255, 255, 255, 0.075);
}

.step-number {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--brazil-yellow);
  font-family:
    "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-logo {
  margin-bottom: 8px;
}

.site-footer p {
  margin-bottom: 0;
}

/* Responsive */
[hidden] {
  display: none !important;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes livePulse {
  70% {
    box-shadow: 0 0 0 10px rgba(215, 25, 63, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(215, 25, 63, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .nav-shell {
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-section {
    min-height: auto;
    padding: 72px 0 88px;
  }

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

  .match-center {
    order: -1;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 68px;
  }

  body {
    font-size: 16px;
  }

  .nav-shell,
  .section-heading,
  .match-grid,
  .player-toolbar,
  .player-shell,
  .steps-grid,
  .site-footer,
  .hero-content {
    width: min(100% - 24px, 1180px);
  }

  .logo {
    font-size: 1.32rem;
  }

  .logo-mark {
    width: 30px;
    height: 30px;
  }

  .language-switcher {
    width: 100%;
  }

  .language-button {
    flex: 1;
    padding: 0 10px;
  }

  .nav-links a {
    padding: 0 10px;
    white-space: nowrap;
  }

  .hero-section {
    padding: 54px 0 72px;
  }

  .matchup {
    gap: 10px;
  }

  .team {
    min-height: 48px;
    padding-right: 10px;
  }

  .team-flag {
    flex-basis: 44px;
    width: 44px;
    height: 31px;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.8rem);
  }

  .hero-actions,
  .player-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-cta,
  .secondary-cta,
  .stream-tab {
    width: 100%;
  }

  .match-section,
  .player-section,
  .guide-section {
    padding: 64px 0;
  }

  .match-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .player-topline,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .player-frame-wrap {
    min-height: 196px;
  }

  .locker-panel {
    padding: 22px;
  }
}
