@import url('tokens.css');

/* The NextUp visual system, shared by the PWA and both TV shells. */
:root {
  color-scheme: dark;
  --muted: var(--text-2);
  --blue: var(--volt-500);
  --cyan: var(--volt-300);
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
}
* {
  box-sizing: border-box;
}
@media (pointer: coarse) {
  html:not(.tv),
  html:not(.tv) body {
    touch-action: pan-x pan-y;
  }
}
@media (max-width: 959px) {
  html:not(.tv) input,
  html:not(.tv) select,
  html:not(.tv) textarea {
    font-size: 16px;
  }
}
body {
  margin: 0;
  font-family: var(--font);
  font-weight: var(--fw-body);
  font-synthesis: none;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Scores, clocks, codes and stat columns never shift width as digits change. */
.num,
.score,
.card-score,
.matchup-score,
.picker-score,
.channel-row .number,
.pair-code {
  font-variant-numeric: tabular-nums;
}
button,
input {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 0.75rem;
  padding: 0.85rem 1.1rem;
  text-align: left;
  transition:
    transform 180ms var(--ease),
    box-shadow 180ms,
    background 180ms;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button[aria-busy='true'] {
  opacity: 1;
}
.primary .nu-loader {
  --loader-ink: #fff;
}
button svg {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}
button strong,
button small {
  display: block;
}
button:focus,
input:focus {
  outline: none;
}
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  box-shadow: 0 0 0 7px #1f7aff55;
}
input {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 0.75rem;
  padding: 1rem;
  min-width: 0;
  width: 100%;
}
input:focus {
  border-color: var(--volt-400);
  box-shadow: 0 0 0 3px #1f7aff47;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
small,
.muted {
  color: var(--muted);
}
/* Brand: the tile mark, bare chevrons and the outlined wordmark share one geometry.
   Sizes follow --mark; the wordmark cap height is 0.7 of the tile. */
.nu-mark,
.nu-glyph {
  position: relative;
  display: inline-block;
  flex: none;
  width: var(--mark, 2.5rem);
  height: var(--mark, 2.5rem);
}
.nu-mark svg,
.nu-glyph svg,
.nu-loader-mark svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.nu-chev path {
  fill: none;
  stroke: currentColor;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nu-mark .nu-chev {
  color: #fff;
}
.nu-wordmark {
  display: block;
  flex: none;
  height: calc(var(--mark, 2.5rem) * 0.7 * 862 / 710);
  width: auto;
  color: var(--text);
  overflow: visible;
}
.nu-lockup {
  display: inline-flex;
  align-items: flex-start;
  gap: calc(var(--mark, 2.5rem) * 0.34);
}
.nu-lockup .nu-wordmark {
  margin-top: calc(var(--mark, 2.5rem) * 0.15);
}
#view {
  padding: calc(1rem + env(safe-area-inset-top)) 1.5rem 8rem;
  min-height: 100vh;
}
body {
  overflow-x: hidden;
}

#nav {
  position: fixed;
  z-index: 20;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0b0d14f5;
  border-top: 1px solid var(--line);
  padding: 0.5rem 1rem calc(0.5rem + env(safe-area-inset-bottom));
}
.rail-links {
  display: flex;
  gap: 0.5rem;
}
#nav button {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  border: 0;
  background: transparent;
  color: var(--text-3);
  font-size: 0.75rem;
  padding: 0.65rem 0.25rem;
}
#nav button.active {
  color: var(--cyan);
}
.nav-icon {
  display: flex;
}
.nav-icon svg {
  width: 1.45rem;
  height: 1.45rem;
}
.nav-label {
  font-weight: var(--fw-label);
}
/* TV only: the mark heads the rail; the wordmark joins it when the rail opens. */
.rail-brand {
  display: none;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: var(--fw-label);
  letter-spacing: var(--track-label);
}
.page-head {
  padding: 1.5rem 0 1.8rem;
}
.page-head h1 {
  font-size: 2.75rem;
  font-weight: var(--fw-display);
  letter-spacing: var(--track-display);
  line-height: var(--lh-display);
  margin: 0.6rem 0 0.7rem;
}
.page-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: var(--lh-body);
}

/* Real team colours create the same two-sided broadcast artwork as the prototype. */
.feature {
  position: relative;
  margin: -8rem -1.5rem 0;
  padding: 18.5rem 1.5rem 2rem;
  min-height: 34rem;
  isolation: isolate;
}
.feature-art {
  position: absolute;
  /* The decorative backdrop has explicit edges and never sizes its contents. */
  contain: strict;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
}
.feature-art:before,
.game-card:before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: repeating-linear-gradient(115deg, #ffffff08 0 2px, transparent 2px 16px);
  pointer-events: none;
}
.feature-art:after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(0deg, var(--bg) 0%, #07080ce8 17%, #07080c55 62%, #07080cbb 100%);
}
.matchup-art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}
.crest {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 4.5rem;
  height: 4.5rem;
  font-size: 1.4rem;
  font-weight: var(--fw-display);
}
.crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0.4rem 0.6rem #0008);
}
.versus {
  font-size: 0.8rem;
  color: #ffffff80;
  font-weight: 600;
}
.feature-art .matchup-art {
  position: absolute;
  left: 0;
  right: 0;
  top: 9.7rem;
  gap: 1.8rem;
  z-index: 1;
}
.feature-art .crest {
  width: 7rem;
  height: 7rem;
}
.feature-art .versus {
  font-size: 1.15rem;
}
.feature-copy {
  position: relative;
  z-index: 2;
}
.feature h1 {
  font-size: 3.2rem;
  line-height: var(--lh-display);
  letter-spacing: var(--track-display);
  font-weight: var(--fw-display);
  margin: 1rem 0;
}
.feature h1 > span {
  margin-right: 0.2em;
  font-size: 0.45em;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
}
.feature h1 br {
  display: none;
}

.feature-broadcast {
  color: var(--text-3);
  font-size: 0.76rem;
  margin-top: 0.35rem;
  line-height: 1.5;
}
.feature-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.5rem;
}
.feature-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.feature-cta {
  background: var(--text);
  color: #0b0d14;
  font-weight: var(--fw-label);
  border-color: transparent;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  box-shadow: 0 0 1.5rem #1f7aff25;
}
.feature-cta svg {
  fill: currentColor;
  stroke: none;
  width: 1.1rem;
}

.badge {
  font-size: 0.6rem;
  letter-spacing: 0.055em;
  font-weight: var(--fw-title);
  display: inline-block;
  background: #07080c80;
  padding: 0.4rem 0.5rem;
  border-radius: 0.3rem;
  color: var(--text);
  white-space: nowrap;
}
.badge.live {
  background: var(--live);
  color: #fff;
}
.badge.live:before {
  content: '';
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  background: white;
  border-radius: 50%;
  vertical-align: 0.05rem;
  margin-right: 0.35rem;
}
.chips {
  display: flex;
  gap: 0.55rem;
  overflow: auto;
  padding: 0.5rem 0.3rem 1rem;
  margin-left: -0.3rem;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar,
.game-row::-webkit-scrollbar {
  display: none;
}
.chips button {
  white-space: nowrap;
  border-radius: 2rem;
  padding: 0.65rem 1rem;
  font-size: 0.75rem;
  background: #ffffff08;
  color: var(--text-2);
}
.chips button.selected {
  background: var(--text);
  border-color: var(--text);
  color: #11141d;
}
.league {
  margin: 1.25rem 0 1.6rem;
}
.section-title {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}
.section-title h2 {
  font-size: 1.3rem;
  letter-spacing: var(--track-title);
  font-weight: var(--fw-title);
}
.section-title p {
  font-size: 0.7rem;
  color: var(--text-3);
}
.game-row {
  display: flex;
  /* Isolate shelf layout/painting; existing padding leaves room for focus rings. */
  contain: layout paint;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0.8rem;
  padding: 0.6rem 1.5rem 1rem;
  margin: -0.6rem -1.5rem 0;
  scroll-padding-left: 1.5rem;
}
.game-card {
  flex: 0 0 18rem;
  width: 18rem;
  height: 10.65rem;
  position: relative;
  overflow: hidden;
  border-radius: 0.85rem;
  padding: 0.8rem 0.9rem;
  border: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
/* Each secondary blooms within its own half; primary colours blend at the centre.
   Explicit ellipse sizes also map directly to Samsung's cached canvas artwork. */
.feature-art,
.game-card,
.matchup-heading,
.gd-hero-art {
  background:
    radial-gradient(
      ellipse 62% 105% at 0% 90%,
      var(--away-secondary) 0%,
      var(--away-secondary-clear) 100%
    ),
    radial-gradient(
      ellipse 62% 105% at 100% 90%,
      var(--home-secondary) 0%,
      var(--home-secondary-clear) 100%
    ),
    linear-gradient(90deg, var(--away) 24%, var(--home) 76%);
}
.game-card:after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(0deg, #000f 0%, #0008 30%, #0002 65%, #0003 100%);
  pointer-events: none;
}
.game-card > * {
  position: relative;
  z-index: 1;
}
.game-top {
  width: 100%;
  text-align: center;
}
.game-time {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
}
.game-time.live {
  color: #ffb2ba;
}
.game-card .matchup-art {
  gap: 0.85rem;
  margin-top: -0.1rem;
}
.game-card .crest {
  width: 3.4rem;
  height: 3.4rem;
}
.game-card .versus {
  font-size: 0.65rem;
}
.game-bottom strong {
  font-size: 1rem;
  letter-spacing: var(--track-title);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.game-bottom strong > span {
  font-weight: 500;
  color: #ffffffaa;
  font-size: 0.8em;
}
.game-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.45rem;
  gap: 0.4rem;
}
.mapping {
  font-size: 0.64rem;
  color: var(--text-3);
}
.mapping.available {
  color: var(--text-2);
}
.mapping.available:first-letter {
  color: var(--ok);
}
.card-score {
  font-size: 0.8rem;
  font-weight: var(--fw-title);
}
.empty {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 1.25rem;
  color: var(--text-3);
  font-size: 0.8rem;
  line-height: 1.6;
  background: #ffffff03;
  flex: 1;
  min-width: 15rem;
}
.section-wait {
  display: flex;
  justify-content: center;
  padding: 3rem 0;
  color: var(--text-2);
}

.notice {
  padding: 0.9rem;
  border-radius: 0.75rem;
  background: #b17b1518;
  border: 1px solid #b17b153a;
  color: #e7c992;
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.checked {
  font-size: 0.65rem;
  color: var(--text-3);
  padding-top: 1rem;
  line-height: 1.6;
  max-width: 65rem;
}
.loading {
  color: var(--text-3);
  padding: 2rem 0;
}
/* News keeps the same poster-card language, with country shelves. */
.country {
  margin: 1rem 0 2rem;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}
.station {
  position: relative;
  background:
    radial-gradient(ellipse at 80% 0, #1f7aff26, transparent 75%),
    linear-gradient(145deg, #1d2434, #0d1018);
  padding: 1rem;
  border-radius: 0.9rem;
  min-height: 11rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  border: 1px solid #ffffff08;
}
.station:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: repeating-linear-gradient(115deg, #ffffff03 0 2px, transparent 2px 16px);
  pointer-events: none;
}
.station-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4.6rem;
  width: 100%;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  font-size: 1.5rem;
  font-weight: var(--fw-display);
  color: var(--cyan);
}
.station-mark img {
  max-width: 7.4rem;
  max-height: 3.6rem;
  object-fit: contain;
  background: #f4f6fb;
  border-radius: 0.5rem;
  padding: 0.5rem;
}
.station strong {
  font-size: 0.85rem;
  font-weight: var(--fw-title);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}
.station small {
  font-size: 0.65rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-3);
}
.guide-tools {
  display: grid;
  gap: 1rem;
  margin: 0 0 1rem;
}
.guide-tools input {
  background: #ffffff07;
  padding: 1rem 1.2rem;
  font-size: 0.85rem;
}
.channel-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}
.channel-row {
  display: flex;
  align-items: stretch;
  min-width: 0;
  gap: 0.5rem;
}
.channel-row > button:first-child {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 1rem;
  align-items: center;
  background: #ffffff04;
}
.channel-row .number {
  font-size: 0.75rem;
  color: var(--text-3);
  min-width: 2rem;
}
.channel-info {
  min-width: 0;
}
.channel-info strong {
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.channel-info small {
  font-size: 0.72rem;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.channel-logo {
  width: 3.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #eef3fc;
  border-radius: 0.45rem;
  padding: 0.4rem;
}
.channel-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.star {
  font-size: 1.3rem;
  color: var(--text-3);
  padding: 0.7rem;
  background: #ffffff04;
}
.star.on {
  color: var(--cyan);
}
.load-more {
  width: 100%;
  text-align: center;
  margin-top: 1rem;
}
.primary {
  background: var(--blue);
  border-color: var(--blue);
  text-align: center;
  font-weight: 700;
}
.text-link {
  background: transparent;
  border: 0;
  padding: 0.75rem;
  color: var(--cyan);
}
/* Sign-in and TV pairing: one quiet column, the lockup, then the single task. */
.auth {
  --mark: 2.75rem;
  max-width: 24rem;
  margin: 9vh auto 0;
}
.auth-brand {
  margin-bottom: 2.75rem;
}
.auth h1 {
  font-size: 2.25rem;
  font-weight: var(--fw-display);
  letter-spacing: var(--track-display);
  line-height: var(--lh-display);
  margin: 0 0 0.75rem;
}
.auth p {
  color: var(--muted);
  line-height: var(--lh-body);
  margin-bottom: 1.75rem;
}
.auth form {
  display: grid;
  gap: 1.1rem;
}
.auth label {
  display: grid;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: var(--fw-meta);
  color: var(--text-2);
}
.auth .error {
  min-height: 1.4em;
  color: #ffa3aa;
  font-size: 0.85rem;
  margin: -0.25rem 0 0;
}
.auth .primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
}
.auth .primary .nu-loader {
  color: #fff;
}
.pair {
  display: grid;
  gap: 2rem;
}
.pair-steps {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0.7rem;
  color: var(--text-2);
  line-height: 1.45;
}
.pair-steps li {
  counter-increment: step;
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
}
.pair-steps li:before {
  content: counter(step);
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: var(--fw-title);
  color: var(--volt-300);
  background: #1f7aff22;
  border: 1px solid #47a3ff55;
  transform: translateY(-0.05rem);
}
.pair-panel {
  display: grid;
  justify-items: start;
  gap: 1rem;
  padding: 1.75rem;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, #142036, #0c0f17 72%);
  border: 1px solid var(--line-strong);
}
.pair-label {
  font-size: 0.75rem;
  font-weight: var(--fw-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-3);
}
.pair .pair-code {
  font-size: 3.5rem;
  font-weight: var(--fw-display);
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
}
.pair-code .pair-gap {
  display: inline-block;
  width: 0.35em;
}
.pair-message {
  min-height: 1.6em;
  margin: 0 !important;
  color: var(--text-2);
}
.pair-panel .nu-status {
  margin: 0;
}
/* Explicit edges keep overlays compatible with the Samsung Chromium 85 engine. */
#sheet {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #000c;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet-panel {
  width: 100%;
  max-height: 92vh;
  overflow: auto;
  background: linear-gradient(145deg, #181e2b, #0d1018 70%);
  border: 1px solid var(--line-strong);
  border-radius: 1.5rem 1.5rem 0 0;
  padding: 1.5rem 1.5rem calc(1.8rem + env(safe-area-inset-bottom));
  box-shadow: 0 2rem 6rem #0009;
}
.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.sheet-head h2 {
  font-size: 1.6rem;
  font-weight: var(--fw-title);
  letter-spacing: var(--track-title);
}
.sheet-head button {
  background: #ffffff08;
}
.sheet-panel > p {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.options {
  display: grid;
  gap: 0.6rem;
}
.option {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem;
  background: #ffffff04;
  border-color: #ffffff10;
}
.option-copy {
  min-width: 0;
  flex: 1;
}
.stream-quality {
  flex: 0 0 auto;
  max-width: 13rem;
  padding: 0.4rem 0.6rem;
  border-radius: 0.45rem;
  background: #ffffff09;
  color: var(--text-3);
  font-size: 0.72rem;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.stream-quality.verified {
  color: var(--volt-300);
  background: #1f7aff18;
}
@media (max-width: 600px) {
  .option {
    flex-wrap: wrap;
  }
  .stream-quality {
    margin-left: auto;
    max-width: 100%;
  }
}
.option strong {
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}
.option small {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--text-3);
  line-height: 1.5;
}
.option-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.4rem;
  height: 2.8rem;
  border-radius: 0.5rem;
  padding: 0.45rem;
  background: #f1f4fa;
  flex-shrink: 0;
}
.option-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.option-logo.team-option {
  background: #ffffff0b;
}
.option-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  margin: 1.7rem 0 0.8rem;
}
.option-heading span {
  font-size: 0.75rem;
  color: var(--text-3);
  font-weight: 400;
}
.matchup-heading {
  position: relative;
  overflow: hidden;
  padding: 1.4rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
}
.matchup-heading:before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(#07080c66, #07080cbb);
  pointer-events: none;
}
.matchup-heading > * {
  position: relative;
}
.matchup-heading .eyebrow {
  color: var(--text-2);
}
.teams {
  display: grid;
  gap: 0.8rem;
}
.team {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.team-mark {
  width: 2.8rem;
  height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-weight: 800;
  font-size: 0.7rem;
  flex-shrink: 0;
}
.team-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px #0006);
}
.team-name {
  font-size: 1.15rem;
  font-weight: var(--fw-title);
  letter-spacing: var(--track-title);
  flex: 1;
}
.score {
  font-size: 1.5rem;
  font-weight: 800;
}
.sheet-panel .teams {
  margin: 1rem 0 0;
}
.fallback-toggle {
  margin-top: 1.5rem;
}
.fallback-toggle button {
  width: 100%;
  color: var(--cyan);
}
#event-slots {
  margin-top: 0.75rem;
}
.sheet-panel .checked {
  margin-top: 0.8rem;
  font-size: 0.65rem;
  color: var(--text-3);
}
.sheet-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.3rem;
}
.sheet-actions button {
  flex: 1;
}
/* Toasts: a raised dark surface, so the cinematic page never flashes white.
   The icon colour carries the outcome; the copy stays plain text. */
#toast {
  position: fixed;
  bottom: 7rem;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 0.7rem;
  width: max-content;
  max-width: min(90vw, 34rem);
  background: #1a1f2bf7;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0.75rem 2.5rem #0008;
  color: var(--text);
  border-radius: var(--r-md);
  padding: 0.85rem 1.15rem 0.85rem 0.9rem;
  font-size: 0.9rem;
  font-weight: var(--fw-meta);
  line-height: 1.4;
  z-index: 100;
}
.toast-icon {
  flex: none;
  display: inline-flex;
  width: 1.35rem;
  height: 1.35rem;
  color: var(--volt-300);
}
.toast-ok .toast-icon {
  color: var(--ok);
}
.toast-error .toast-icon {
  color: var(--bad);
}
.toast-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Settled outcomes: success, error and information share one component. */
.nu-status {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.55rem;
  max-width: 28rem;
  margin: 0 auto;
}
.nu-status-icon {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.3rem;
  color: var(--volt-300);
}
.nu-status-ok .nu-status-icon {
  color: var(--ok);
}
.nu-status-error .nu-status-icon {
  color: var(--bad);
}
.nu-status-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nu-status-icon circle {
  fill: currentColor;
  fill-opacity: 0.12;
}
.nu-status strong {
  font-size: 1.15rem;
  font-weight: var(--fw-title);
  letter-spacing: var(--track-title);
}
.nu-status p {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: var(--lh-body);
  margin: 0;
}
.nu-status button {
  margin-top: 0.8rem;
}
.pair-panel .nu-status,
.auth .nu-status {
  justify-items: start;
  text-align: left;
}
#player {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: black;
  z-index: 40;
}
#video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#player-ui {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(#000b, transparent 30%, transparent 65%, #000c);
  pointer-events: none;
  transition: opacity 0.2s;
}
#player-ui > * {
  pointer-events: auto;
}
#player-ui header {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  padding: calc(1.25rem + env(safe-area-inset-top)) 1.25rem 1.25rem;
}
#player-title {
  font-size: 1rem;
  overflow-wrap: anywhere;
}
#player-ui footer {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 1.6rem 1rem calc(1.6rem + env(safe-area-inset-bottom));
}
#player-ui button {
  background: #182433de;
  font-size: 0.8rem;
}
#player-status {
  align-self: center;
  text-align: center;
  padding: 1.6rem;
  max-width: 90%;
  border-radius: 1.25rem;
  background: #0c1724da;
  line-height: 1.6;
}
#player-status:empty {
  display: none;
}
.tv #player-status {
  font-size: 1.45rem;
  padding: 1.3rem 2rem;
}
#player-ui.controls-hidden {
  opacity: 0;
  pointer-events: none;
}
#player-ui.controls-hidden > * {
  pointer-events: none;
}
@media (min-width: 760px) and (max-width: 959px) {
  .news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .feature {
    padding-top: 23rem;
  }
  .feature-art .crest {
    width: 9rem;
    height: 9rem;
  }
  .sheet-panel {
    max-width: 40rem;
    border-radius: 1.5rem;
    margin-bottom: 5vh;
  }
}
/* As in Opus's prototype, 1920 and 960 pixel TV viewports share one composition. */
@media (min-width: 960px) {
  :root {
    font-size: calc(100vw / 120);
  }
  #view {
    padding: 3rem 5.5rem 5rem 10.75rem;
  }
  #nav {
    top: 0;
    bottom: 0;
    right: auto;
    width: 7rem;
    padding: 2.75rem 0 2.75rem 1.5rem;
    border: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(90deg, #07080cf7, #07080ce0 62%, #07080c00);
    overflow: hidden;
    transition: width 240ms var(--ease);
  }
  .rail-links {
    flex-direction: column;
    gap: 0.45rem;
    margin: auto 0;
  }
  .rail-brand {
    --mark: 2.6rem;
    position: absolute;
    top: 2.75rem;
    left: 2.2rem;
    display: flex;
    align-items: center;
    gap: 0.95rem;
    pointer-events: none;
  }
  .rail-brand .nu-wordmark {
    height: calc(var(--mark) * 0.52 * 862 / 710);
    margin-top: calc(var(--mark) * 0.11);
  }
  #nav button {
    position: relative;
    flex: none;
    flex-direction: row;
    gap: 1.1rem;
    width: 4rem;
    height: 3.75rem;
    padding: 0 1.2rem;
    white-space: nowrap;
    border-radius: 0.85rem;
    font-size: 1.375rem;
    text-align: left;
    transition:
      width 240ms,
      background 140ms;
  }
  .nav-icon svg {
    width: 1.6rem;
    height: 1.6rem;
  }
  .nav-label {
    opacity: 0;
    transition: opacity 140ms;
  }
  #nav button.active {
    color: var(--text);
  }
  #nav button.active .nav-icon {
    color: var(--volt-400);
  }
  #nav button.active:before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.95rem;
    bottom: 0.95rem;
    width: 0.3rem;
    border-radius: 0 0.3rem 0.3rem 0;
    background: var(--blue);
    box-shadow: 0 0 1rem var(--accent-glow);
  }
  #nav:focus-within {
    width: 21rem;
    background: linear-gradient(90deg, #07080c 20%, #07080cf7 75%, #07080ce0);
    box-shadow: 8rem 0 12rem 8rem #07080cd0;
  }
  #nav:focus-within button {
    width: 18rem;
  }
  #nav:focus-within .nav-label {
    opacity: 1;
  }
  #nav button:focus {
    background: white;
    color: #10131c;
  }
  #nav button:focus .nav-icon {
    color: var(--accent-deep);
  }

  .feature {
    margin: -11rem -5.5rem 0 -10.75rem;
    min-height: 63vh;
    padding: 21vh 5.5rem 4rem 10.75rem;
    display: flex;
    align-items: flex-end;
  }
  .feature-art:after {
    background:
      linear-gradient(90deg, #07080cf7 0%, #07080cc9 30%, #07080c22 65%, #07080c55 100%),
      linear-gradient(0deg, var(--bg) 0%, #07080c99 22%, transparent 65%);
  }
  .feature-art .matchup-art {
    left: auto;
    right: 8%;
    top: 43%;
    transform: translateY(-50%);
    gap: 3rem;
  }
  .feature-art .crest {
    width: 17rem;
    height: 17rem;
  }
  .feature-art .crest img {
    filter: drop-shadow(0 2rem 2rem #0009);
  }
  .feature-art .versus {
    font-size: 2rem;
  }
  .feature-copy {
    max-width: 54rem;
  }
  .feature .eyebrow {
    flex-wrap: wrap;
    font-size: 1.05rem;
    gap: 0.9rem;
  }
  .feature h1 {
    font-size: 4.75rem;
    line-height: 0.99;
    margin: 1.2rem 0;
    max-width: 49rem;
  }
  .feature h1 br {
    display: block;
  }
  .feature h1 > span {
    vertical-align: 0.15em;
  }

  .feature-broadcast {
    font-size: 1.05rem;
  }
  .feature-actions {
    margin-top: 1.75rem;
    gap: 1rem;
  }
  .feature-actions button {
    height: 3.75rem;
    padding: 0 1.75rem;
    font-size: 1.3rem;
    gap: 0.7rem;
    border-radius: 0.85rem;
  }
  .feature-actions svg {
    width: 1.35rem;
    height: 1.35rem;
  }

  .chips {
    gap: 0.7rem;
    padding: 0.6rem 0.4rem 1.1rem;
    margin-left: -0.4rem;
  }
  .chips button {
    height: 2.9rem;
    padding: 0 1.3rem;
    font-size: 1.0625rem;
  }
  .league {
    margin: 1.5rem 0 2.5rem;
  }
  .section-title {
    gap: 1rem;
    margin-bottom: 1rem;
  }
  .section-title h2 {
    font-size: 1.75rem;
  }
  .section-title p {
    font-size: 1.0625rem;
  }
  .game-row {
    gap: 1.25rem;
    padding: 1.1rem 5.5rem 1.4rem 10.75rem;
    margin: -1.1rem -5.5rem 0 -10.75rem;
    scroll-padding-left: 10.75rem;
  }
  .game-card {
    flex-basis: 25rem;
    width: 25rem;
    height: 14.0625rem;
    border-radius: 1.25rem;
    padding: 1rem 1.1rem;
  }
  .badge {
    font-size: 0.85rem;
    padding: 0.45rem 0.7rem;
  }
  .game-card .matchup-art {
    gap: 1.1rem;
  }
  .game-card .crest {
    width: 4.75rem;
    height: 4.75rem;
  }
  .game-card .versus {
    font-size: 1.0625rem;
  }
  .game-bottom strong {
    font-size: 1.375rem;
  }
  .game-meta {
    margin-top: 0.45rem;
  }
  .mapping {
    font-size: 0.9rem;
  }
  .card-score {
    font-size: 1.15rem;
  }
  .empty {
    padding: 1.5rem;
    font-size: 1.0625rem;
    max-width: 60rem;
  }

  .checked {
    font-size: 0.875rem;
    padding-top: 1.25rem;
  }
  .notice {
    font-size: 1rem;
  }
  .page-head {
    padding: 1.25rem 0 2rem;
  }
  .page-head h1 {
    font-size: 3.25rem;
  }
  .page-head p:not(.eyebrow) {
    font-size: 1.1rem;
  }
  .eyebrow {
    font-size: 0.9rem;
  }
  .country {
    margin: 2rem 0 3rem;
  }
  .news-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }
  .station {
    min-height: 16rem;
    padding: 1.4rem;
    border-radius: 1.25rem;
  }
  .station-mark {
    height: 7rem;
    margin-bottom: 1.5rem;
  }
  .station-mark img {
    max-width: 11rem;
    max-height: 5.5rem;
    padding: 0.8rem;
  }
  .station strong {
    font-size: 1.375rem;
    margin-bottom: 0.45rem;
  }
  .station small {
    font-size: 1.0625rem;
  }
  .guide-tools {
    max-width: 70rem;
  }
  .guide-tools input {
    font-size: 1.25rem;
  }
  .channel-row > button:first-child {
    padding: 1.25rem;
    gap: 1.5rem;
  }
  .channel-info strong {
    font-size: 1.25rem;
  }
  .channel-info small {
    font-size: 1.0625rem;
  }
  .channel-logo {
    width: 5rem;
    height: 3.5rem;
    padding: 0.5rem;
  }
  .star {
    padding: 1rem;
    font-size: 1.5rem;
  }
  #sheet {
    align-items: center;
  }
  .sheet-panel {
    max-width: 64rem;
    border-radius: 1.5rem;
    max-height: 90vh;
    padding: 2.5rem;
    scroll-padding: 2rem;
  }
  .sheet-head h2 {
    font-size: 2rem;
  }
  .sheet-panel > p {
    font-size: 1.1rem;
  }
  .sheet-panel .checked {
    font-size: 0.85rem;
  }
  .option {
    padding: 1.25rem;
  }
  .option strong {
    font-size: 1.25rem;
  }
  .option small {
    font-size: 1rem;
  }
  .option-logo {
    width: 5.4rem;
    height: 3.4rem;
  }
  .option-heading {
    font-size: 1.5rem;
  }
  .option-heading span {
    font-size: 1rem;
  }
  .matchup-heading {
    padding: 1.5rem 2rem;
  }
  .matchup-heading .team-name {
    font-size: 1.75rem;
  }
  .matchup-heading .teams {
    display: flex;
    gap: 3rem;
    margin-top: 1.5rem;
  }
  .matchup-heading .team {
    flex: 1;
  }
  .team-mark {
    width: 4rem;
    height: 4rem;
  }
  .team-name {
    font-size: 1.5rem;
  }
  #player-title {
    font-size: 1.6rem;
  }
  #player-ui button {
    font-size: 1.25rem;
  }
  #toast {
    bottom: 3rem;
    font-size: 1.15rem;
    padding: 1rem 1.5rem 1rem 1.15rem;
    gap: 0.85rem;
  }
  .toast-icon {
    width: 1.6rem;
    height: 1.6rem;
  }
  .nu-status strong {
    font-size: 1.6rem;
  }
  .nu-status p {
    font-size: 1.25rem;
  }
  .nu-status-icon {
    width: 3.75rem;
    height: 3.75rem;
  }
  .auth {
    --mark: 3.5rem;
    max-width: 32rem;
  }
  .auth h1 {
    font-size: 3.5rem;
  }
  /* TV pairing: instructions left, the code right, both inside title-safe space. */
  .pair {
    max-width: 92rem;
    min-height: calc(100vh - 10rem);
    margin: 0 auto;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6rem;
    align-items: center;
    align-content: center;
  }
  .pair .auth-brand {
    margin-bottom: 3.5rem;
  }
  .pair-steps {
    font-size: 1.4rem;
    gap: 1.1rem;
  }
  .pair-steps li:before {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.1rem;
  }
  .pair-panel {
    padding: 3rem;
    gap: 1.5rem;
    border-radius: 1.75rem;
  }
  .pair-label {
    font-size: 1rem;
  }
  .pair .pair-code {
    font-size: 7.5rem;
  }
  .pair-message {
    font-size: 1.3rem;
  }
}
/* One TV focus treatment. Keep :focus separate from unsupported :focus-visible
   selectors so Samsung Chromium 85 and Fire TV render the same blue ring. */
.tv button,
.tv input {
  transition: none;
}
.tv button:focus,
.tv input:focus {
  outline: 0;
  box-shadow: 0 0 0 0.28rem var(--volt-400);
}
.tv .game-card,
.tv .station {
  scroll-margin-top: 1rem;
  scroll-margin-bottom: 1rem;
}
.tv .game-card:focus,
.tv .station:focus {
  transform: none;
  box-shadow: 0 0 0 0.28rem var(--volt-400);
}
.tv #nav button:focus {
  background: var(--volt-500);
  color: white;
  box-shadow: inset 0 0 0 0.18rem var(--volt-300);
}
.tv #nav button:focus .nav-icon {
  color: white;
}
.tv .option:focus,
.tv .channel-row > button:focus {
  background: #203557;
  border-color: var(--volt-400);
}
.tv .chips button:focus,
.tv .feature-cta:focus {
  background: var(--volt-500);
  color: white;
  transform: none;
}
.tv .sheet-panel .options {
  padding: 0.5rem;
  margin: 0 -0.5rem;
}
/* TV legibility floor: secondary text stays at or above 19px on a 1080p screen. */
.tv .page-head p:not(.eyebrow),
.tv .sheet-panel > p {
  font-size: 1.3rem;
}
.tv .station small,
.tv .channel-info small,
.tv .option small {
  font-size: 1.2rem;
}
.tv .channel-row .number {
  font-size: 1.1rem;
  min-width: 2.75rem;
}
.tv .checked,
.tv .sheet-panel .checked {
  font-size: 1.05rem;
}
.tv .news-grid,
.tv .channel-list {
  padding: 0.5rem;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}
.tv #player-ui.controls-hidden button:focus {
  outline: 0;
  box-shadow: none;
}
.tv #player-ui button:focus {
  background: #195caa;
}
/* Focus changes must not animate layout, repaint a screen-sized glow, or reraster
   team artwork. The shared artwork and composition stay identical on both TVs. */
.tv .crest img,
.tv .feature-art .crest img,
.tv .team-mark img {
  filter: none;
}
@media (min-width: 960px) {
  .tv #nav,
  .tv #nav button,
  .tv .nav-label {
    transition: none;
  }
  .tv #nav:focus-within {
    box-shadow: none;
    background: #07080c;
    overflow: visible;
  }
  .tv #nav:focus-within:after {
    content: '';
    position: absolute;
    left: 100%;
    top: 0;
    bottom: 0;
    width: 8rem;
    background: linear-gradient(90deg, #07080c, transparent);
    pointer-events: none;
  }
}
@media (hover: hover) {
  html:not(.tv) .game-card:hover,
  html:not(.tv) .station:hover {
    box-shadow: 0 0 0 2px #ffffff80;
  }
  html:not(.tv) .option:hover {
    background: #ffffff0b;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
/* League pages and account preferences share the approved cinematic palette. */
.league-tabs {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow: auto;
  padding: 0.5rem 0.3rem 1rem;
  margin: 0 -0.3rem;
  scrollbar-width: none;
}
.league-tabs::-webkit-scrollbar {
  display: none;
}
.league-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex: 1;
  min-width: 4.5rem;
  border-radius: 0.7rem;
  background: #0b101cb8;
  border: 1px solid #ffffff12;
  color: var(--text-3);
  font-size: 0.8rem;
  font-weight: var(--fw-title);
  padding: 0.6rem 0.4rem;
  white-space: nowrap;
}
.league-tabs img {
  width: 1.45rem;
  height: 1.6rem;
  object-fit: contain;
}
.league-tabs button.selected {
  color: white;
  background: #1f7aff25;
  border-color: #4994ff80;
  box-shadow: inset 0 -2px #4093ff;
}
.feature {
  margin-top: -4rem;
  padding-top: 15rem;
  min-height: 31rem;
}
.feature-art .matchup-art {
  top: 5.8rem;
}
.feature .feature-step {
  width: 2.6rem;
  padding: 0;
  height: 2.8rem;
  font-size: 1.6rem;
  background: #ffffff12;
  border-color: #ffffff22;
}

.feature-actions {
  gap: 0.55rem;
  flex-wrap: wrap;
}

.league-quiet {
  min-height: 18rem;
  padding: 3rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  background: radial-gradient(ellipse at 50% 20%, #1f7aff18, transparent 65%);
}
.league-quiet > img {
  height: 5rem;
  width: 6rem;
  object-fit: contain;
}
.league-quiet h1 {
  font-size: 2.5rem;
}
.league-quiet p {
  color: var(--text-3);
  font-size: 0.85rem;
}

.settings-section {
  max-width: 65rem;
  margin-bottom: 2.2rem;
}
.settings-section h2 {
  font-size: 1.35rem;
  font-weight: var(--fw-title);
  margin-bottom: 0.8rem;
  letter-spacing: var(--track-title);
}
.settings-section > p {
  font-size: 0.85rem;
  color: var(--text-3);
  line-height: 1.6;
  margin-bottom: 0.7rem;
}
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  width: 100%;
  background: #ffffff05;
  padding: 1.2rem;
}
.setting-row small {
  margin-top: 0.35rem;
  line-height: 1.5;
  color: var(--text-3);
  font-size: 0.75rem;
}
.switch {
  flex: none;
  display: block;
  width: 2.8rem;
  height: 1.55rem;
  border-radius: 2rem;
  background: #414858;
  padding: 0.2rem;
}
.switch:after {
  content: '';
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: white;
}
.switch.on {
  background: var(--blue);
}
.switch.on:after {
  transform: translateX(1.25rem);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
@media (max-width: 479px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}
.team-choice {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 0.7rem;
  background: #ffffff04;
  min-height: 4.5rem;
}
.team-choice img {
  width: 2.4rem;
  height: 2.4rem;
  object-fit: contain;
  flex-shrink: 0;
}
.team-choice strong {
  font-size: 0.72rem;
  line-height: 1.4;
  flex: 1;
}
.team-choice > span {
  color: var(--text-3);
}
.team-choice.selected {
  border-color: #4093ff90;
  background: #1f7aff18;
}
.team-choice.selected > span {
  color: var(--cyan);
}
.data-health {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
}
.settings-section .sheet-actions {
  max-width: 30rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
/* Startup: the tile loader above the wordmark. A static background paints at
   once; the brand only appears if the wait passes the loader delay. */
.boot-screen {
  --mark: 5.5rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 42%, #0f2142 0%, #07080c 62%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 30;
  gap: 1.5rem;
}
.boot-screen > .nu-wordmark {
  height: calc(var(--mark) * 0.34 * 862 / 710);
  animation: nu-appear var(--motion-loader-appear) var(--motion-ease) var(--motion-loader-delay)
    both;
}
.boot-screen .nu-status {
  margin-top: 0.75rem;
  padding: 0 1.5rem;
}
.boot-error > .nu-wordmark {
  animation: none;
}
.boot-error .nu-mark {
  opacity: 0.9;
}
@media (min-width: 960px) {
  .league-tabs {
    justify-content: flex-start;
    gap: 0.8rem;
    padding: 0.5rem 0.4rem 1.2rem;
    margin-left: -0.4rem;
  }
  .league-tabs button {
    flex: none;
    min-width: 10rem;
    height: 4rem;
    padding: 0.7rem 1.5rem;
    gap: 0.85rem;
    font-size: 1.25rem;
    border-radius: 0.85rem;
  }
  .league-tabs img {
    width: 2.3rem;
    height: 2.6rem;
  }
  .feature {
    margin-top: -5.2rem;
    min-height: 36rem;
    padding-top: 8rem;
    padding-bottom: 3rem;
  }
  .feature-art .matchup-art {
    top: 50%;
    right: 5%;
    gap: 2.5rem;
  }
  .feature-art .crest {
    width: 16rem;
    height: 16rem;
  }
  .feature h1 {
    font-size: 4.5rem;
  }
  .feature-copy {
    max-width: 52rem;
  }
  .feature .feature-step {
    width: 3.5rem;
    height: 3.75rem;
    font-size: 2rem;
    padding: 0;
  }

  .feature-actions {
    gap: 1rem;
  }

  .league-quiet {
    min-height: 30rem;
  }
  .league-quiet > img {
    width: 10rem;
    height: 9rem;
  }
  .league-quiet h1 {
    font-size: 4rem;
  }
  .league-quiet p {
    font-size: 1.2rem;
  }

  .settings-section {
    margin-bottom: 3rem;
    max-width: 85rem;
  }
  .settings-section h2 {
    font-size: 1.8rem;
  }
  .settings-section > p {
    font-size: 1.1rem;
  }
  .setting-row {
    max-width: 65rem;
    font-size: 1.3rem;
  }
  .setting-row small {
    font-size: 1rem;
  }
  .switch {
    transform: scale(1.15);
    margin-right: 0.5rem;
  }
  .team-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
  }
  .team-choice {
    padding: 1.1rem;
    min-height: 6rem;
    gap: 1rem;
  }
  .team-choice img {
    height: 3.4rem;
    width: 3.4rem;
  }
  .team-choice strong {
    font-size: 1.05rem;
  }
  .team-choice > span {
    font-size: 1.35rem;
  }
  .boot-screen {
    --mark: 8.5rem;
    gap: 2.25rem;
  }
}
.tv .league-tabs button:focus {
  background: var(--volt-500);
  color: white;
}
.tv .team-choice:focus,
.tv .setting-row:focus {
  background: #203557;
  border-color: var(--volt-400);
}
.tv .team-grid {
  padding: 0.5rem;
  margin: -0.5rem;
}
.tv .feature-step:focus {
  background: var(--volt-500);
  color: white;
}
/* Shared header cleanup: centered league navigation over uninterrupted hero artwork. */
.feature {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12rem;
  margin-top: calc(-1rem - env(safe-area-inset-top));
  padding-top: calc(1rem + env(safe-area-inset-top));
  min-height: 34rem;
}
.feature > .league-tabs {
  flex: none;
  margin: 0;
  padding: 0.5rem 0.3rem;
  justify-content: center;
}
.feature-copy {
  width: 100%;
}
.feature-art .matchup-art {
  top: 6.5rem;
}
.sports-leagues {
  justify-content: center;
}
@media (min-width: 960px) {
  .feature {
    margin-top: -3rem;
    min-height: 38rem;
    padding-top: 2.5rem;
    gap: 3rem;
    align-items: stretch;
  }
  .feature > .league-tabs {
    margin: 0 -5.5rem 0 -10.75rem;
    padding: 0.5rem 1rem;
    justify-content: center;
  }
  .feature-art .matchup-art {
    top: 57%;
  }
  .rail-links {
    margin: auto 0;
  }
}

/* Featured names and artwork stay separate; carousel controls sit below both. */
.feature {
  min-height: 30rem;
  gap: 1.5rem;
  padding-bottom: 1rem;
}
.feature-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column-reverse;
  padding-top: 1.2rem;
  gap: 1.3rem;
  min-width: 0;
}
.feature-copy {
  max-width: none;
  min-width: 0;
}
.feature .feature-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  font-size: clamp(1.2rem, 5.4vw, 2.8rem);
  line-height: 1.06;
  letter-spacing: var(--track-display);
  margin: 1rem 0;
  max-width: none;
}
.feature-title .feature-line {
  display: flex;
  align-items: baseline;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  margin: 0;
  white-space: nowrap;
}
.feature-title .feature-vs {
  font-size: 0.45em;
  font-weight: 500;
  color: var(--text-2);
  margin-left: 0.5em;
  letter-spacing: 0;
}
.feature-title .feature-name {
  font: inherit;
  letter-spacing: inherit;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
}
.feature-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-width: 0;
}
.feature-logos .crest {
  height: 6.5rem;
  width: 6.5rem;
}
.feature-logos .versus {
  font-size: 1rem;
}
.feature-meta {
  color: var(--text-2);
  font-size: 0.8rem;
  line-height: 1.65;
  margin: 0.75rem 0 0;
}
.feature-separator {
  color: var(--text-3);
  padding: 0 0.25em;
}
.feature-carousel {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 0.25rem;
}
.feature-carousel .feature-step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: #ffffff08;
  color: var(--text);
}
.feature-carousel .feature-step svg {
  height: 1.4rem;
  width: 1.4rem;
  fill: none;
  stroke: currentColor;
}
.feature-carousel .feature-step[aria-disabled='true'] {
  color: #68717e;
  background: transparent;
  cursor: default;
}
.feature-dots {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  height: 1.2rem;
}
.feature-dot {
  display: block;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #728096;
  opacity: 0.5;
  transform: scale(1);
}
.feature-dot.selected {
  background: var(--volt-300);
  opacity: 1;
  transform: scale(1.3);
}
.matchup-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.01em;
  font-weight: var(--fw-display);
  color: white;
  background: #07111bc9;
  border: 1px solid #ffffff20;
  border-radius: 0.65rem;
  padding: 0.35em 0.45em;
  flex-shrink: 0;
}
.game-card {
  height: 14rem;
}
.game-card .matchup-art {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.4rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: center;
  margin: 0.35rem 0 0.15rem;
  width: 100%;
}
.card-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
}
.card-team .crest {
  margin: 0 auto 0.5rem;
}
.card-team .card-team-name {
  display: block;
  width: 100%;
  min-height: 2.5em;
}
.card-venue {
  margin: 0;
  min-height: 2.8em;
  font-size: 0.7rem;
  line-height: 1.4;
  text-align: center;
  color: var(--text-2);
}
.game-bottom {
  width: 100%;
}
.game-card .card-score {
  font-size: 1.45rem;
  padding: 0;
  align-self: start;
  margin-top: 1rem;
  background: none;
  border: 0;
  border-radius: 0;
}
.game-card .versus {
  align-self: start;
  margin-top: 1.25rem;
  font-size: 0.75rem;
  min-width: 2rem;
  text-align: center;
}
.card-team-name {
  font-size: 0.83rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: var(--track-title);
  overflow-wrap: break-word;
}
.team-abbr {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  white-space: nowrap;
}
.game-meta {
  justify-content: center;
  text-align: center;
  padding-top: 0.45rem;
  margin-top: 0.3rem;
  border-top: 1px solid #ffffff12;
}
.matchup-heading .teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}
.matchup-heading .team {
  flex-direction: column;
  text-align: center;
  min-width: 0;
  gap: 0.5rem;
}
.matchup-heading .team-name {
  font-size: 0.9rem;
  line-height: 1.25;
  overflow-wrap: break-word;
}
.matchup-heading .picker-score {
  font-size: 1.35rem;
}
.matchup-heading .versus {
  text-align: center;
}
@media (min-width: 960px) {
  .feature {
    min-height: 39rem;
    gap: 1.5rem;
    padding-bottom: 1.25rem;
  }
  .feature-body {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
  }
  .feature .feature-title {
    font-size: 3.85rem;
    gap: 0.4rem;
    margin: 1.25rem 0;
  }
  .feature-meta {
    font-size: 1.05rem;
  }
  .game-time {
    font-size: 1rem;
  }
  .card-venue {
    font-size: 0.9rem;
  }
  .feature-actions {
    justify-content: flex-start;
  }
  .feature-logos {
    gap: 2rem;
  }
  .feature-logos .crest {
    height: 17rem;
    width: 17rem;
  }
  .feature-logos .versus {
    font-size: 1.5rem;
  }
  .feature-carousel {
    gap: 1.6rem;
    margin: 0.2rem -5.5rem 0 -10.75rem;
  }
  .feature-carousel .feature-step {
    height: 3.5rem;
    width: 3.5rem;
  }
  .feature-carousel .feature-step svg {
    height: 2rem;
    width: 2rem;
  }
  .feature-dots {
    gap: 1rem;
    height: 1.6rem;
  }
  .feature-dot {
    height: 0.6rem;
    width: 0.6rem;
  }
  .game-card {
    height: 17rem;
  }
  .game-card .matchup-art {
    grid-template-columns: minmax(0, 1fr) 4.4rem minmax(0, 1fr);
    gap: 0.7rem;
    margin: 0.4rem 0 0.2rem;
  }
  .game-card .crest {
    width: 4.6rem;
    height: 4.6rem;
  }
  .game-card .card-score {
    margin-top: 1.4rem;
    font-size: 1.9rem;
  }
  .game-card .versus {
    margin-top: 1.8rem;
    font-size: 1rem;
  }
  .card-team-name {
    font-size: 1.1rem;
  }
  .game-meta {
    padding-top: 0.55rem;
    margin-top: 0.3rem;
  }
  .matchup-heading .teams {
    gap: 1.25rem;
  }
  .matchup-heading .team {
    flex-direction: row;
    text-align: left;
    gap: 0.8rem;
  }
  .matchup-heading .team:last-child {
    flex-direction: row-reverse;
    text-align: right;
  }
  .matchup-heading .team-name {
    font-size: 1.3rem;
  }
  .matchup-heading .picker-score {
    font-size: 2rem;
  }
}
