: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: hidden;
  background: #080808;
  color: var(--tv-text);
  font-family: "Roboto", Arial, sans-serif;
}

.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;
  display: grid;
  place-items: center;
  padding: 108px 24px 38px;
}

.tv-player-card {
  position: relative;
  isolation: isolate;
  width: min(900px, calc(100vw - 48px));
  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 {
  display: none;
  padding: 10px;
  --connected-color: #0a0a0a;
  --disconnected-color: #0a0a0a;
}

.tv-cast.is-available {
  display: block;
}

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

@media (max-width: 700px) {
  .tv-shell {
    padding: 88px 14px 108px;
  }

  .tv-player-card {
    width: min(100%, 460px);
    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;
  }

}

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

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

}

@media (prefers-reduced-motion: reduce) {
  .tv-stage-action,
  .tv-stage .video-js .vjs-big-play-button {
    transition: none;
  }
}
