/* Smart TV-only overrides. tv-detect.js adds tv-mode from the TV user agent. */
.tv-fullscreen-gate { display: none; }

.tv-mode a:focus,
.tv-mode button:focus,
.tv-mode input:focus { outline: 5px solid #58e9ff !important; outline-offset: 5px !important; }

.tv-mode .tv-fullscreen-gate {
  position: fixed; z-index: 99999; inset: 0; display: grid; place-items: center;
  padding: 4vh 6vw; color: #fff; background: rgba(5, 4, 18, .94); transition: opacity .2s ease;
}
.tv-mode .tv-fullscreen-gate.is-hidden { opacity: 0; pointer-events: none; }
.tv-mode .tv-fullscreen-card {
  width: min(760px, 86vw); padding: 42px 48px; text-align: center;
  border: 2px solid rgba(255,255,255,.17); border-radius: 30px;
  background: linear-gradient(145deg, #211347, #0d0a24);
  box-shadow: 0 30px 100px rgba(0,0,0,.6), 0 0 70px rgba(142,72,255,.22);
}
.tv-mode .tv-fullscreen-kicker { color: #53e7ff; font-size: 18px; font-weight: 900; letter-spacing: .12em; }
.tv-mode .tv-fullscreen-card h2 { margin: 12px 0; font-size: 50px; line-height: 1.05; }
.tv-mode .tv-fullscreen-card p { margin: 0 auto 28px; max-width: 650px; color: rgba(255,255,255,.76); font-size: 22px; line-height: 1.4; }
.tv-mode .tv-fullscreen-card button {
  min-height: 64px; padding: 0 30px; border: 0; border-radius: 18px;
  color: #170b20; font-size: 21px; font-weight: 900;
  background: linear-gradient(110deg, #ffd66c, #ff91c8 58%, #ff48d1);
}
.tv-mode .tv-fullscreen-card .tv-fullscreen-skip {
  display: block; min-height: 42px; margin: 17px auto 0; padding: 0 12px;
  color: rgba(255,255,255,.72); font-size: 15px; background: transparent;
}

/* Access page: one large card, no heavy logo and no empty scroll area. */
.tv-mode, .tv-mode body { width: 100%; min-width: 0; height: 100%; min-height: 100%; overflow: hidden; }
.tv-mode .access-shell {
  width: 100%; height: 100vh; min-height: 0; overflow: hidden; padding: 3vh 6vw;
  display: grid; grid-template-rows: auto 1fr;
}
.tv-mode .access-header { width: 100%; min-height: 44px; }
.tv-mode .buy-link { padding: 10px 19px; font-size: 17px; }
.tv-mode .access-stage {
  width: 100%; height: 100%; min-height: 0; padding: 1vh 0 4vh;
  display: flex; align-items: center; justify-content: center;
}
.tv-mode .visual { display: none !important; }
.tv-mode .access-card {
  width: min(900px, 88vw); max-height: 82vh; overflow: auto;
  padding: 34px 44px; border-radius: 30px;
}
.tv-mode .eyebrow { font-size: 17px; }
.tv-mode .access-card h1 { margin: 13px 0 12px; font-size: 58px; line-height: .98; }
.tv-mode .access-card .intro { max-width: 760px; margin-bottom: 20px; font-size: 21px; line-height: 1.42; }
.tv-mode .access-form label { font-size: 17px; }
.tv-mode .field-row input, .tv-mode .field-row button { height: 64px; min-height: 64px; font-size: 20px; }
.tv-mode .field-row input { padding: 0 21px; }
.tv-mode .field-row button { padding: 0 29px; }
.tv-mode .form-meta { min-height: 27px; padding-top: 9px; font-size: 14px; }
.tv-mode .flow-note { margin-top: 14px; padding: 13px 16px; }
.tv-mode .flow-note p { font-size: 15px; line-height: 1.38; }
.tv-mode .actions { margin-top: 14px; font-size: 16px; }
.tv-mode .access-footer { display: none; }

/* Checkout/result pages. */
.tv-mode body.tv-form-page { display: block; min-height: 100vh; padding: 18px 7vw; overflow-y: auto; }
.tv-mode body.tv-form-page main { width: 100%; max-width: 920px; margin: 0 auto; padding: 24px 34px; border-radius: 25px; }
.tv-mode body.tv-form-page .logo { width: 62px; height: 62px; margin-bottom: 8px; }
.tv-mode body.tv-form-page h1 { font-size: 38px; margin-bottom: 8px; }
.tv-mode body.tv-form-page p { margin-bottom: 10px; font-size: 17px; }
.tv-mode body.tv-form-page .summary { margin: 12px 0; padding: 15px 18px; }
.tv-mode body.tv-form-page input[type=email], .tv-mode body.tv-form-page input[type=text] { height: 52px; font-size: 18px; }
.tv-mode body.tv-form-page .button { min-height: 54px; font-size: 18px; }
.tv-mode body.tv-result-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 3vh 7vw; }
.tv-mode body.tv-result-page main { width: 76vw; max-width: 900px; padding: 30px 42px; }
.tv-mode body.tv-result-page h1 { font-size: 48px; }
.tv-mode body.tv-result-page p { font-size: 20px; }

/* Legal pages. */
.tv-mode body.legal-page { overflow-y: auto; }
.tv-mode .legal-nav, .tv-mode .legal-wrap { width: 88vw; max-width: 1420px; }
.tv-mode .legal-brand { font-size: 21px; }
.tv-mode .legal-back { font-size: 17px; padding: 10px 14px; }
.tv-mode .legal-main { padding: 28px 0 58px; }
.tv-mode .legal-hero { padding: 34px 42px; }
.tv-mode .legal-hero h1 { max-width: none; font-size: 52px; }
.tv-mode .legal-meta, .tv-mode .legal-doc { font-size: 19px; }
.tv-mode .legal-doc { padding: 38px 48px; }
.tv-mode .legal-doc h2 { font-size: 31px; }
.tv-mode .legal-toc a { padding: 10px 14px; font-size: 16px; }

/* Old TV browsers can fail to trigger IntersectionObserver on the landing. */
.tv-mode #bf-landing .bf-reveal { opacity: 1 !important; transform: none !important; visibility: visible !important; }
.tv-mode #bf-landing .bf-nav-links { display: flex !important; }
.tv-mode #bf-landing .bf-menu-toggle { display: none !important; }
.tv-mode #bf-landing .bf-section { min-height: 0 !important; }
.tv-mode #bf-landing a:focus, .tv-mode #bf-landing button:focus { box-shadow: 0 0 0 5px #58e9ff !important; }

@media screen and (max-height: 620px) {
  .tv-mode .access-card { padding: 22px 34px; }
  .tv-mode .access-card h1 { font-size: 47px; }
  .tv-mode .access-card .intro { margin-bottom: 13px; font-size: 18px; }
  .tv-mode .field-row input, .tv-mode .field-row button { height: 56px; min-height: 56px; }
  .tv-mode .flow-note { margin-top: 9px; padding: 9px 13px; }
  .tv-mode .actions { margin-top: 9px; }
  .tv-mode .tv-fullscreen-card { padding: 28px 38px; }
  .tv-mode .tv-fullscreen-card h2 { font-size: 42px; }
}
