/* /live-tv-2: the Tukker TV preview. Everything is scoped to .tv2. Mobile sizes
   follow the 390px design (screen1); from 700px up the card scales up. */
.tv2 {
  position: relative;
  overflow: hidden;
  padding: 18px 0 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  background:
    repeating-conic-gradient(from 0deg at 50% 58%, rgba(255, 255, 255, 0.42) 0deg 5deg, rgba(255, 255, 255, 0) 5deg 12deg),
    radial-gradient(ellipse 70% 60% at 50% 55%, #ffffff 0%, #fff6f6 45%, #fde7e8 100%);
}

/* The red slanted banner. */
.tv2__tagline {
  display: flex;
  justify-content: center;
  margin: 0 16px;
}
.tv2__tagline span {
  display: inline-block;
  padding: 5px 18px 6px;
  color: #fff;
  font-size: 16.5px;
  font-weight: 900;
  font-style: italic;
  line-height: 1.15;
  letter-spacing: -0.2px;
  white-space: nowrap;
  background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
  clip-path: polygon(2.5% 0, 100% 0, 97.5% 100%, 0 100%);
  transform: rotate(-1.6deg);
}

.tv2__intro {
  max-width: 300px;
  margin: 10px auto 0;
  color: var(--black);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.17;
}

/* The set, standing on a gingham tablecloth that runs the width of the card. */
.tv2__stage {
  position: relative;
  margin-top: 2px;
  padding-bottom: 6%;
}
.tv2__stage::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 17%;
  background:
    repeating-linear-gradient(90deg, rgba(227, 6, 19, 0.55) 0 10px, rgba(227, 6, 19, 0) 10px 20px),
    repeating-linear-gradient(0deg, rgba(227, 6, 19, 0.55) 0 6px, rgba(227, 6, 19, 0) 6px 12px),
    #fff;
  transform: perspective(240px) rotateX(38deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, #000 45%, #000 85%, rgba(0, 0, 0, 0.6) 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, #000 45%, #000 85%, rgba(0, 0, 0, 0.6) 100%);
}
.tv2__set {
  position: relative;
  z-index: 1;
  width: 96%;
  margin: 0 auto;
}
.tv2__image {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 12px rgba(72, 2, 6, 0.28));
}

/* The glass of the set: the bounding box of the cut-out in tukker-tv-frame-*
   (1536x1024: x 167-1133, y 235-866; a superellipse fitted to the real bezel).
   The video fills this box; the frame on top bends the bezel over its edges. */
.tv2__screen {
  position: absolute;
  z-index: 1;
  left: 10.872%;
  top: 22.949%;
  width: 62.891%;
  height: 61.621%;
  overflow: hidden;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.tv2__screen .video-player,
.tv2__screen video,
.tv2__screen iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
/* The player draws its own <video> letterboxed (contain); in the set it fills the glass. */
.tv2__screen .nlrp-video { object-fit: cover !important; }
.tv2.is-playing .tv2__screen { opacity: 1; pointer-events: auto; }

/* The set again with the glass cut out, over the video. Clicks pass through to
   the player's controls. Hidden until play, so the picture underneath is one image. */
.tv2__frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: auto;
  pointer-events: none;
  visibility: hidden;
}
.tv2.is-playing .tv2__frame { visibility: visible; }
/* Keep the player's control bar clear of the rounded bottom of the glass. */
.tv2__screen .nlrp-bar { padding: 0 6% 4%; }
.tv2__screen:fullscreen { border-radius: 0; }
.tv2__screen:fullscreen video,
.tv2__screen:fullscreen .nlrp-video { object-fit: contain !important; }

/* The whole set is the play button until the stream runs. */
.tv2__hit {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.tv2__hit:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; border-radius: var(--radius); }
.tv2.is-playing .tv2__hit { display: none; }

.tv2__cta { position: relative; z-index: 1; margin: 6px 16px 0; }
.tv2__button {
  min-width: 214px;
  height: 36px;
  padding: 0 24px;
  gap: 12px;
  font-size: 16.5px;
  font-weight: 900;
  letter-spacing: -0.2px;
  background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
  box-shadow: 0 4px 12px rgba(187, 5, 16, 0.28);
}
.tv2__button .icon { font-size: 15px; }
.tv2__button[aria-disabled='true'] { min-width: 0; font-size: 14px; opacity: 0.6; }

@media (min-width: 700px) {
  .tv2 { padding: 40px 0 32px; }
  .tv2__tagline span { padding: 8px 30px 10px; font-size: 30px; }
  .tv2__intro { max-width: 560px; margin-top: 18px; font-size: 18px; line-height: 1.3; }
  .tv2__stage { margin-top: 8px; }
  .tv2__stage::before { height: 16%; transform: perspective(600px) rotateX(40deg); }
  .tv2__set { width: min(94%, 880px); }
  .tv2__cta { margin-top: 10px; }
  .tv2__button { min-width: 300px; height: 54px; font-size: 21px; gap: 14px; }
  .tv2__button .icon { font-size: 18px; }
}
