:root {
  --bg: #030504;
  --panel: #0d120f;
  --text: #f4f1e8;
  --muted: #9ca79e;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #f6c400;
  --red: #ff5f57;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  min-height: 100svh;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(3, 5, 4, 0.96), rgba(3, 5, 4, 0.76), rgba(3, 5, 4, 0.95)),
    url("./assets/world-cup-hero.png") center / cover fixed;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  display: grid;
  min-height: 100svh;
  padding: clamp(10px, 2vw, 24px);
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  width: 100%;
}

.watch-main {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.ad-shell {
  display: grid;
  overflow: hidden;
  place-items: center;
  border: 1px dashed rgba(246, 196, 0, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(246, 196, 0, 0.12), rgba(13, 18, 15, 0.96) 42%, rgba(246, 196, 0, 0.08)),
    linear-gradient(rgba(246, 196, 0, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 196, 0, 0.08) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  color: rgba(246, 196, 0, 0.72);
  font-size: 11px;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.ad-shell span,
.brand-kicker,
.eyebrow {
  color: var(--gold);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ad-shell strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 20px;
  font-weight: 1000;
}

.banner-link {
  display: block;
  height: 100%;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.banner-link img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.ad-leaderboard {
  min-height: 90px;
}

.ad-rail {
  align-self: start;
  min-height: 250px;
}

.player-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 5, 4, 0.9);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.player-brand {
  display: flex;
  min-height: 54px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.38);
  padding: 10px 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #ffd93d);
  color: #060606;
  font-size: 15px;
  font-weight: 1000;
}

.brand strong {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-style: italic;
  line-height: 1;
}

.stage {
  position: relative;
  display: grid;
  min-height: min(72svh, 720px);
  place-items: center;
  overflow: hidden;
  background: #000;
}

.stage video,
.stage iframe {
  display: block;
  height: 100%;
  width: 100%;
  border: 0;
  background: #000;
}

.empty-state {
  max-width: 560px;
  padding: 28px;
  text-align: center;
}

.eyebrow {
  margin: 0;
}

h1 {
  margin: 8px 0 0;
  font-size: clamp(24px, 5vw, 58px);
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

p {
  color: var(--muted);
  line-height: 1.6;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  background: rgba(13, 18, 15, 0.96);
  padding: 16px;
}

.controls h1 {
  font-size: clamp(18px, 3vw, 28px);
}

.control-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

label {
  display: grid;
  min-width: 180px;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

select,
.button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #070a08;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

select {
  padding: 0 10px;
}

.button {
  padding: 0 14px;
  cursor: pointer;
}

.button:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.error {
  color: var(--red);
}

@media (max-width: 760px) {
  .shell {
    padding: 0;
  }

  .watch-layout,
  .watch-main {
    display: block;
  }

  .ad-leaderboard {
    min-height: 90px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .ad-rail {
    display: none;
  }

  .player-panel {
    min-height: calc(100svh - 180px);
    border: 0;
    border-radius: 0;
  }

  .controls {
    align-items: stretch;
    flex-direction: column;
  }

  .control-row {
    justify-content: stretch;
  }

  label,
  .button {
    width: 100%;
  }
}
