/* 16:9 frames (TVs and fullscreen HD). Keep artwork inside the screen. */

@media (min-width: 1100px) and (max-height: 1200px) and (min-aspect-ratio: 16/10) {
  .hero--has-banner .hero__visual {
    width: min(52vw, 920px);
    top: var(--header-height);
    bottom: 0;
  }

  .hero--has-banner .hero-slider,
  .hero--has-banner .hero-slider__viewport {
    height: 100%;
    min-height: 0;
    max-height: 100%;
  }

  .hero--has-banner .hero-slider__layer .hero-slider__img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: right bottom;
  }

  .hero__content {
    max-width: min(46vw, 720px);
  }

  .contact-layout__main {
    grid-template-columns: minmax(280px, 42%) minmax(0, 1fr);
  }

  .contact-slider {
    max-height: calc(100vh - var(--header-height) - 8.5rem);
    max-height: calc(100dvh - var(--header-height) - 8.5rem);
  }

  .contact-slider__img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: right bottom;
  }

  .about-hero__title {
    white-space: normal;
  }

  .scores-header {
    flex-wrap: wrap;
  }
}

@media (min-width: 901px) and (max-height: 820px) {
  .live-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 2200px) {
  html {
    font-size: 20px;
  }

  :root {
    --header-height: 108px;
    --page-gutter: clamp(28px, 2.4vw, 56px);
  }

  .hero__inner,
  .page-section__inner {
    width: min(2200px, 100%);
  }
}

/* TV overscan: keep the header and page edges on screen. */
html.is-tv {
  --tv-safe-x: clamp(28px, 3vw, 64px);
  --tv-safe-y: clamp(16px, 2.2vh, 36px);
}

html.is-tv .site-header {
  padding-top: var(--tv-safe-y);
  padding-inline: var(--tv-safe-x);
  height: calc(var(--header-height) + var(--tv-safe-y));
}

html.is-tv .hero__inner,
html.is-tv .page-section__inner {
  padding-top: calc(var(--header-height) + var(--tv-safe-y));
  padding-left: var(--tv-safe-x);
  padding-right: var(--tv-safe-x);
}

html.is-tv .page-section__inner--about {
  padding-top: calc(var(--header-height) + var(--tv-safe-y) + 0.5rem);
}

html.is-tv body.live-watch-page .live-watch {
  padding: var(--tv-safe-y) var(--tv-safe-x);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
}

html.is-tv .live-watch__video {
  object-fit: contain;
  object-position: center center;
}

html.is-tv,
html.is-tv * {
  cursor: none !important;
}

html.is-tv .tv-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2147483646;
  width: 22px;
  height: 22px;
  margin: -3px 0 0 -3px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #d40000;
  box-shadow: 0 0 0 2px #000, 0 2px 8px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  opacity: 0;
}

html.is-tv .tv-cursor.is-on {
  opacity: 1;
}

html.is-tv a:focus-visible,
html.is-tv button:focus-visible,
html.is-tv [role="link"]:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
