:root {
  --tv-surface: #050505;
  --tv-border: rgba(255, 255, 255, .2);
  --tv-text: #0b0b0b;
  --tv-muted: #5d5d5d;
  --tv-red: #ec1424;
}

html,
body.tv-page {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  margin: 0;
}

body.tv-page {
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  background: #080808;
  color: var(--tv-text);
  font-family: "Roboto", Arial, sans-serif;
}

body.tv-page.is-video-modal-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

.tv-page *,
.tv-page *::before,
.tv-page *::after {
  box-sizing: border-box;
}

.tv-backdrops {
  position: fixed;
  inset: 0;
}

.tv-backdrops {
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 72% 52% at 50% 46%, rgba(118, 122, 127, .3) 0%, rgba(52, 55, 59, .18) 36%, rgba(12, 13, 14, 0) 72%),
    linear-gradient(135deg, #050505 0%, #17191b 48%, #080809 100%);
  pointer-events: none;
}

.tv-backdrops::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .014) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 72%, transparent);
  content: "";
  opacity: .5;
}

.tv-site-header {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  left: 0;
}

.tv-site-header .navbar {
  background: rgba(5, 5, 5, .91);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.tv-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100dvh;
  padding: clamp(112px, 14vh, 150px) 0 80px;
}

.tv-player-card {
  position: relative;
  isolation: isolate;
  width: min(900px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 2px;
  border: 1px solid var(--tv-border);
  border-radius: 6px;
  background: var(--tv-surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 24px 42px rgba(0, 0, 0, .72),
    0 48px 80px rgba(0, 0, 0, .45);
}

.tv-player-card::before {
  position: absolute;
  z-index: -1;
  right: 4%;
  bottom: -44px;
  left: 4%;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(164, 170, 177, .3) 0%, rgba(75, 79, 84, .16) 38%, rgba(0, 0, 0, 0) 74%);
  filter: blur(9px);
  content: "";
  pointer-events: none;
  transform: perspective(220px) rotateX(62deg);
  transform-origin: top;
}

.tv-player-card::after {
  position: absolute;
  z-index: -2;
  right: 9%;
  bottom: -20px;
  left: 9%;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .92);
  box-shadow: 0 18px 35px rgba(0, 0, 0, .78);
  content: "";
  filter: blur(8px);
  pointer-events: none;
}

.tv-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 3px;
  background: #090909;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .85);
}

.tv-stage .video-js {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  font-family: inherit;
  background: #090909;
}

.tv-stage .vjs-poster img {
  object-fit: cover;
}

.tv-stage .vjs-control-bar {
  height: 3.4em;
  background: linear-gradient(transparent, rgba(0, 0, 0, .88));
  font-size: 11px;
}

.tv-stage .video-js .vjs-big-play-button {
  top: 50%;
  left: 50%;
  width: 88px;
  height: 88px;
  margin: 0;
  border: 1px solid #d0d0d0;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, #f2f2f2);
  color: #080808;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .34), inset 0 2px 0 #fff, inset 0 -6px 10px rgba(0, 0, 0, .13);
  font-size: 4.3rem;
  line-height: 86px;
  transform: translate(-50%, -50%);
  transition: background-color .18s ease, transform .18s ease;
}

.tv-stage .video-js:hover .vjs-big-play-button,
.tv-stage .video-js .vjs-big-play-button:focus-visible {
  border-color: #d0d0d0;
  background: #fff;
  color: #080808;
  transform: translate(-50%, -50%) scale(1.05);
}

.tv-stage .video-js .vjs-big-play-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.tv-stage .vjs-progress-control,
.tv-stage .vjs-live-control,
.tv-stage .vjs-seek-to-live-control,
.tv-stage .vjs-picture-in-picture-control,
.tv-stage .vjs-fullscreen-control {
  display: none;
}

.tv-stage .vjs-error-display,
.tv-stage .vjs-modal-dialog {
  background: rgba(0, 0, 0, .8);
}

.tv-live {
  position: absolute;
  z-index: 5;
  top: 18px;
  left: 18px;
  min-width: 102px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--tv-red);
  color: #fff;
  box-shadow: 0 10px 22px rgba(236, 20, 36, .3);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .18em;
}

.tv-live__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .18);
}

.tv-stage-actions {
  position: absolute;
  z-index: 6;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 10px;
}

.tv-stage-action {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 11px;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 50%;
  background: rgba(255, 255, 255, .93);
  color: #0a0a0a;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .22), inset 0 -3px 7px rgba(0, 0, 0, .08);
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease;
}

.tv-stage-action:hover,
.tv-stage-action:focus-visible {
  outline: none;
  background: #fff;
  transform: translateY(-2px);
}

.tv-stage-action:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.tv-stage-action svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tv-cast {
  padding: 10px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  --connected-color: #0a0a0a;
  --disconnected-color: #0a0a0a;
}

.tv-cast.is-available {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.tv-player-copy {
  display: none;
}

.video-library {
  width: min(1440px, 100%);
  margin: clamp(86px, 10vw, 132px) auto 0;
  color: #fff;
  scroll-margin-top: 92px;
}

.video-library__heading {
  padding: 0 clamp(24px, 4.5vw, 68px);
}

.video-library__line {
  width: 100%;
  height: 1px;
  display: block;
  margin-bottom: clamp(26px, 3vw, 40px);
  background: linear-gradient(90deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .42) 48%, rgba(255, 255, 255, .07));
}

.video-library__heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3.3vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
}

.video-library__empty {
  margin: 36px 0 0;
  color: rgba(255, 255, 255, .62);
  font-size: .95rem;
}

.video-shelf {
  margin-top: clamp(42px, 5.2vw, 66px);
}

.video-shelf__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(24px, 4.5vw, 68px);
  margin-bottom: 18px;
}

.video-shelf__header h3 {
  margin: 0;
  font-size: clamp(1.2rem, 1.75vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.video-shelf__all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 0 8px 12px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .68);
  font: inherit;
  font-size: .83rem;
  font-weight: 700;
  cursor: pointer;
  transition: color .18s ease;
}

.video-shelf__all:hover,
.video-shelf__all:focus-visible {
  color: #fff;
}

.video-shelf__all:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .88);
  outline-offset: 4px;
}

.video-shelf__all svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}

.video-shelf.is-expanded .video-shelf__all svg {
  transform: rotate(90deg);
}

.video-shelf__viewport {
  position: relative;
}

.video-shelf__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(230px, 23vw, 318px);
  gap: clamp(12px, 1.45vw, 20px);
  padding: 5px clamp(24px, 4.5vw, 68px) 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-padding-inline: clamp(24px, 4.5vw, 68px);
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.video-shelf__rail::-webkit-scrollbar {
  display: none;
}

.video-shelf.is-expanded .video-shelf__rail {
  grid-auto-flow: row;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  overflow: visible;
  scroll-snap-type: none;
}

.video-card {
  position: relative;
  min-width: 0;
  scroll-snap-align: start;
}

.video-card__trigger {
  position: absolute;
  z-index: 3;
  inset: 0;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.video-card__trigger:focus-visible {
  outline: none;
}

.video-card__image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 7px;
  background: #151515;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .28);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.video-card__image::after {
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, .55));
  content: "";
  pointer-events: none;
}

.video-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(.78) contrast(1.04);
  transition: filter .25s ease, transform .35s ease;
}

.video-card:hover .video-card__image {
  border-color: rgba(255, 255, 255, .35);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .48);
  transform: translateY(-3px);
}

.video-card:focus-within .video-card__image {
  border-color: rgba(255, 255, 255, .82);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .25), 0 18px 38px rgba(0, 0, 0, .48);
  transform: translateY(-3px);
}

.video-card:hover .video-card__image img {
  filter: saturate(1) contrast(1.02);
  transform: scale(1.035);
}

.video-card__play {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 50%;
  background: rgba(7, 7, 7, .72);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.video-card__play svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.video-card__copy {
  padding: 13px 2px 0;
}

.video-card__category {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, .54);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .055em;
  line-height: 1.2;
  text-transform: uppercase;
}

.video-card h4 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.video-shelf__arrow {
  position: absolute;
  z-index: 4;
  top: clamp(68px, 8.8vw, 90px);
  width: 48px;
  height: 76px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(5, 5, 5, .82);
  color: #fff;
  opacity: 0;
  cursor: pointer;
  pointer-events: none;
  transform: translateY(-50%);
  transition: background-color .18s ease, opacity .18s ease;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.video-shelf__viewport:hover .video-shelf__arrow:not([disabled]),
.video-shelf__arrow:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.video-shelf__arrow:hover,
.video-shelf__arrow:focus-visible {
  outline: none;
  background: rgba(5, 5, 5, .96);
}

.video-shelf__arrow:focus-visible {
  box-shadow: inset 0 0 0 2px #fff;
}

.video-shelf__arrow[disabled],
.video-shelf.is-expanded .video-shelf__arrow {
  opacity: 0;
  pointer-events: none;
}

.video-shelf__arrow.is-previous {
  left: 0;
  border-left: 0;
  border-radius: 0 7px 7px 0;
}

.video-shelf__arrow.is-next {
  right: 0;
  border-right: 0;
  border-radius: 7px 0 0 7px;
}

.video-shelf__arrow svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.video-modal {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 64px);
}

.video-modal[hidden] {
  display: none;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(20px) brightness(.3);
  backdrop-filter: blur(20px) brightness(.3);
}

.video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: calc(100dvh - clamp(48px, 8vw, 128px));
  color: #fff;
  filter: drop-shadow(0 30px 70px rgba(0, 0, 0, .72));
  animation: video-modal-enter .24s ease-out both;
}

.video-modal__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 7px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .88);
}

.video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #000;
}

.video-modal__close {
  position: absolute;
  z-index: 2;
  top: -20px;
  right: -20px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: 50%;
  background: #fff;
  color: #080808;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}

.video-modal__close:hover,
.video-modal__close:focus-visible {
  outline: none;
  background: #f1f1f1;
  transform: scale(1.06);
}

.video-modal__close:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .32), 0 10px 28px rgba(0, 0, 0, .45);
}

.video-modal__close svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
}

.video-modal__copy {
  padding: 18px 2px 0;
}

.video-modal__copy p {
  margin: 0 0 7px;
  color: rgba(255, 255, 255, .58);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.video-modal__copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.3;
}

@keyframes video-modal-enter {
  from {
    opacity: 0;
    transform: scale(.975);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 700px) {
  .tv-shell {
    padding: 94px 0 122px;
  }

  .tv-player-card {
    width: min(100%, 460px);
    width: calc(100% - 28px);
    border-radius: 5px;
  }

  .tv-player-card::before {
    right: 2%;
    bottom: -31px;
    left: 2%;
    height: 42px;
  }

  .tv-stage {
    border-width: 1px;
    border-radius: 2px;
  }

  .tv-live {
    top: 10px;
    left: 10px;
    min-width: 84px;
    height: 31px;
    gap: 6px;
    padding: 0 11px;
    font-size: .62rem;
  }

  .tv-live__dot {
    width: 6px;
    height: 6px;
  }

  .tv-stage-actions {
    top: 8px;
    right: 8px;
    gap: 7px;
  }

  .tv-stage-action {
    width: 36px;
    height: 36px;
    padding: 9px;
  }

  .tv-stage .video-js .vjs-big-play-button {
    width: 68px;
    height: 68px;
    font-size: 3.35rem;
    line-height: 66px;
  }

  .video-library {
    margin-top: 76px;
  }

  .video-library__heading,
  .video-shelf__header {
    padding-right: 14px;
    padding-left: 14px;
  }

  .video-library__line {
    margin-bottom: 24px;
  }

  .video-library__heading h2 {
    font-size: 2rem;
  }

  .video-shelf {
    margin-top: 38px;
  }

  .video-shelf__header {
    margin-bottom: 14px;
  }

  .video-shelf__header h3 {
    font-size: 1.12rem;
  }

  .video-shelf__all {
    padding-right: 2px;
    font-size: .78rem;
  }

  .video-shelf__rail {
    grid-auto-columns: min(78vw, 286px);
    gap: 12px;
    padding: 4px 14px 12px;
    scroll-padding-inline: 14px;
  }

  .video-shelf.is-expanded .video-shelf__rail {
    grid-template-columns: 1fr;
  }

  .video-card__copy {
    padding-top: 11px;
  }

  .video-card h4 {
    font-size: .93rem;
  }

  .video-card__category {
    font-size: .68rem;
  }

  .video-shelf__arrow {
    display: none;
  }

  .video-modal {
    padding: 18px 14px;
  }

  .video-modal__dialog {
    width: 100%;
    max-height: calc(100dvh - 36px);
  }

  .video-modal__frame {
    border-radius: 5px;
  }

  .video-modal__close {
    top: -18px;
    right: -2px;
    width: 40px;
    height: 40px;
    padding: 11px;
  }

  .video-modal__copy {
    padding-top: 14px;
    padding-right: 46px;
  }

  .video-modal__copy h2 {
    font-size: 1.05rem;
  }

}

@media (max-width: 380px), (max-height: 700px) {
  .tv-shell {
    padding-top: 78px;
    padding-bottom: 112px;
  }

  .tv-player-card {
    padding: 2px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .tv-stage-action,
  .tv-stage .video-js .vjs-big-play-button,
  .video-card__image,
  .video-card__image img,
  .video-shelf__all svg,
  .video-shelf__rail,
  .video-modal__dialog,
  .video-modal__close {
    transition: none;
    scroll-behavior: auto;
    animation: none;
  }
}
