:root {
  color-scheme: dark;
  --background: #030b08;
  --surface: #091510;
  --surface-high: #10231a;
  --line: #1c3a2b;
  --content: #f4fff8;
  --muted: #99aea2;
  --neon: #23f66f;
  --danger: #ff6b6b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 50% -20%, #0c3822 0, var(--background) 42%); color: var(--content); }
button, input { font: inherit; }
button { cursor: pointer; }
.brand { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0; display: flex; align-items: center; gap: 10px; font-size: 1.35rem; }
.brand strong span { color: var(--neon); }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid var(--neon); border-radius: 12px; color: var(--neon); font-size: .85rem; box-shadow: 0 0 28px #23f66f33; }
main { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.access-card { width: min(480px, 100%); margin: 8vh auto 0; padding: clamp(24px, 6vw, 42px); border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg, #0b1a13, #06100c); box-shadow: 0 30px 90px #0008; }
.eyebrow { margin: 0 0 10px; color: var(--neon); font-size: .76rem; font-weight: 800; letter-spacing: .16em; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 7vw, 3.5rem); line-height: 1.02; letter-spacing: -.04em; }
.access-card h1 { font-size: clamp(2rem, 8vw, 3rem); }
.muted { color: var(--muted); }
form { display: grid; gap: 10px; margin-top: 28px; }
label { font-weight: 700; }
input { width: 100%; padding: 15px 16px; color: var(--content); background: #050d09; border: 1px solid var(--line); border-radius: 12px; outline: none; }
input:focus { border-color: var(--neon); box-shadow: 0 0 0 3px #23f66f22; }
button { border: 0; border-radius: 12px; padding: 15px 18px; background: var(--neon); color: #001b0b; font-weight: 900; }
button:disabled { cursor: wait; opacity: .65; }
.secondary { background: var(--surface-high); color: var(--content); font-weight: 700; }
.message { min-height: 1.4em; margin: 14px 0 0; color: var(--danger); }
.match { padding-bottom: 50px; }
.match-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin: 28px 0; }
.match-heading h1 { margin-bottom: 8px; }
.player-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player-copy { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px; }
.player-title { margin-bottom: 4px; font-size: 1.15rem; font-weight: 800; }
.player-copy p { margin-bottom: 0; }
.angle-selector { display: flex; max-width: 100%; gap: 8px; overflow-x: auto; padding: 2px; }
.angle-selector button { flex: 0 0 auto; padding: 10px 14px; border: 1px solid var(--line); background: var(--surface-high); color: var(--content); font-weight: 700; }
.angle-selector button.active { border-color: var(--neon); background: #143c25; color: var(--neon); }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 34px 0 14px; }
.section-heading h2 { margin: 0; }
.pill { padding: 6px 10px; border-radius: 999px; background: var(--surface-high); color: var(--muted); font-size: .82rem; }
.event-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 12px; }
.event { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; width: 100%; padding: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--content); text-align: left; font-weight: 400; }
.event:hover, .event:focus-visible, .event.active { border-color: var(--neon); background: var(--surface-high); }
.event-thumbnail { position: relative; display: block; width: 112px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 9px; background: linear-gradient(145deg, #123523, #06100c); }
.event-thumbnail::after { position: absolute; inset: 0; display: grid; place-items: center; content: "▶"; color: var(--neon); opacity: .8; }
.event-thumbnail.loaded::after { content: none; }
.event-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.event-copy { min-width: 0; align-self: center; }
.event strong { display: block; margin-bottom: 10px; font-size: 1.05rem; }
.event-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .88rem; }
footer { padding: 28px 16px 36px; color: var(--muted); text-align: center; font-size: .84rem; }

@media (max-width: 640px) {
  .brand { padding-top: 18px; }
  .access-card { margin-top: 3vh; }
  .match-heading { align-items: center; }
  .match-heading h1 { font-size: 2.25rem; }
  .player-copy { align-items: stretch; flex-direction: column; }
  .angle-selector { width: 100%; }
  .event { grid-template-columns: 96px minmax(0, 1fr); }
  .event-thumbnail { width: 96px; }
}
