/* Shared GGTV product chrome. The network bar and radio dock use their existing runtime. */
html body.ggtv-product {
  isolation: isolate;
  --product-gutter: clamp(20px, 2.6vw, 50px);
  --product-inset: max(var(--product-gutter), calc((100% - 1860px) / 2));
  --product-width: min(1704px, calc(100% - 2 * var(--product-gutter)));
}

html body.ggtv-product::before {
  background: linear-gradient(90deg, #050d19b8, #050d198a 64%, #030a1680),
    url("assets/redesign/neon-streamer-lounge.webp") center / cover no-repeat;
}

html body.ggtv-product.has-gg-radio-bar {
  padding-bottom: calc(var(--gg-bottom-bar-height, 76px) + 2px) !important;
}

html body.ggtv-product > header.site.product-header {
  box-sizing: border-box;
  width: 100%;
  min-height: 62px;
  margin: 0;
  padding: 7px var(--product-inset);
  gap: clamp(14px, 2.1vw, 40px);
  border-bottom: 1px solid #216078;
  background: radial-gradient(ellipse at 70% 100%, #0c2741, #040d18 60%);
}

html body.ggtv-product .product-header .brand-lockup { min-width: 0; }
html body.ggtv-product .product-header .brand-emblem { width: 48px; height: 48px; }
html body.ggtv-product .product-header .brand { font-size: clamp(1.06rem, 1.67vw, 1.8rem); white-space: nowrap; }
html body.ggtv-product .product-header .brand span { color: var(--ggtv-cyan); }
html body.ggtv-product .product-header .tagline { display: none; }
html body.ggtv-product .product-header nav.site { width: auto; }
html body.ggtv-product .product-header nav.site ul { align-items: stretch; justify-content: flex-end; flex-wrap: wrap; overflow: visible; padding: 0; }
html body.ggtv-product .product-header nav.site a {
  min-height: 38px;
  padding: 7px clamp(6px, .65vw, 14px);
  border: 1px solid transparent;
  border-radius: 9px;
  color: #f5faff;
  font-size: .875rem;
}
html body.ggtv-product .product-header nav.site a:is([aria-current], :hover) {
  color: #b5faff;
  border-color: #24738d;
  background: #0a3447;
  box-shadow: inset 0 0 12px #01daee22, 0 0 14px #01daee38;
}
html body.ggtv-product .product-header nav.site .account-link { border-color: #568198; border-radius: 999px; gap: 7px; }
.product-header nav svg, .footer-community svg {
  width: 1.35em;
  height: 1.35em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html body.ggtv-product > .makeover-footer {
  padding: 10px var(--product-inset) !important;
  border-color: #53b3cf;
  background: radial-gradient(ellipse at 67% 0%, #0c3047, #061624 52%, #040d17);
  box-shadow: 0 -3px 16px #04c4ed25;
}
.footer-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px; padding: 0 0 6px; border-bottom: 1px solid #2a4254; }
html body.ggtv-product .footer-head p { margin: 0; color: #e3f0f8; font-size: .91rem; }
.footer-community { display: flex; gap: 4px; }
.footer-community a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; }
html body.ggtv-product .footer-community a { color: #ecf8ff; }
html body.ggtv-product .footer-community a:hover { color: #8cf6ff; background: #134056; }
.footer-community svg { width: 21px; height: 21px; }
html body.ggtv-product .makeover-footer nav { flex-direction: row; gap: 4px 16px; margin: 4px 0; }
html body.ggtv-product .makeover-footer nav a { padding: 4px 0; }
html body.ggtv-product .makeover-footer > p { margin: 3px 0 0; }

/* Interior pages reuse the homepage's cyan accents, gradients and outline system. */
html body.ggtv-product main.page {
  width: var(--product-width);
  max-width: none;
  min-width: 0;
  padding: clamp(20px, 2.3vw, 42px) 0 clamp(30px, 4vw, 66px);
  gap: clamp(12px, 1.45vw, 22px);
}
.product-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .3em .6em;
  color: #a9c0d2;
}
html body.ggtv-product .product-breadcrumb { margin: 0; }
html body.ggtv-product main.page > .page-title {
  margin: 0 0 .18em;
  font-size: clamp(2.45rem, 4.1vw, 4.4rem);
  line-height: 1.04;
}
html body.ggtv-product main.page > .page-title::after {
  width: clamp(52px, 8vw, 104px);
  height: 3px;
  margin-top: .24em;
  border-radius: 20px;
  background: linear-gradient(90deg, #09edff, #0dbeee9e 72%, #0dbeee00);
}
html body.ggtv-product :is(main.page section.card, .wiki-layout .card) {
  min-width: 0;
  margin: 0;
  padding: clamp(18px, 2vw, 33px);
  border: 1px solid #315d75;
  border-radius: 16px;
  background: radial-gradient(ellipse at 0 0, #14314afc, #0a1f30f2 42%, #081723eb 88%);
  box-shadow: inset 0 1px #8deeff10, 0 9px 22px #01081160;
}
html body.ggtv-product main.page section.card > :first-child { margin-top: 0; }
html body.ggtv-product main.page section.card > :last-child { margin-bottom: 0; }
html body.ggtv-product main.page section.card h2 {
  max-width: 36ch;
  font-size: clamp(1.4rem, 2.05vw, 2.2rem);
  line-height: 1.14;
}
html body.ggtv-product main.page section.card :is(p, ul, ol, dl) { color: #c5d7e6; }
html body.ggtv-product main.page section.card > p { max-width: 85ch; }
html body.ggtv-product main.page section.card p a:not(.cta, .button, .product-subnav a) { text-underline-offset: .18em; }
html body.ggtv-product .download-card,
html body.ggtv-product main.page .platform-reference,
html body.ggtv-product main.page .feature-card {
  min-width: 0;
  padding: clamp(14px, 1.5vw, 24px);
  border: 1px solid #36738c;
  border-radius: 14px;
  background: linear-gradient(145deg, #10304a, #071722 82%);
  box-shadow: inset 0 0 16px #1dd8f011;
  overflow-wrap: anywhere;
}
html body.ggtv-product .download-card:focus-within { border-color: #74dcf2; box-shadow: 0 0 12px #04bdeb32; }
html body.ggtv-product main.page .status-pill { border: 1px solid #4c8091; border-radius: 999px; background: #112c3c; color: #b8f5ff; }
html body.ggtv-product main.page :is(.cta, .button) {
  min-height: 44px;
  box-sizing: border-box;
  border-radius: 10px;
}
html body.ggtv-product main.page :is(.cta:not(.secondary), .button.primary) {
  color: #001018;
  border-color: #76f7ff;
  background: linear-gradient(175deg, #76fbff, #0edce9 43%, #00abd0);
  box-shadow: inset 0 0 11px #adf8ff68, 0 0 16px #0af1ff32;
}
html body.ggtv-product main.page :is(.cta.secondary, .button.secondary) { color: #e7f9ff; border-color: #5a899e; background: #0a2234; }
html body.ggtv-product main.page :is(.cta, .button):hover { filter: brightness(1.14); }
html body.ggtv-product main.page :is(.table-scroll, pre) { max-width: 100%; overflow-x: auto; border-radius: 10px; }
html body.ggtv-product main.page .table-scroll:focus-visible { outline: 2px solid #7df6ff; outline-offset: 3px; }
html body.ggtv-product main.page :is(th, td) { border-color: #254a61; }
html body.ggtv-product main.page th { background: #0b344a; }
html body.ggtv-product main.page .matrix th { font-size: 1rem; font-weight: 650; }
html body.ggtv-product main.page td { background: #091c2a; }
html body.ggtv-product main.page code { overflow-wrap: anywhere; }
html body.ggtv-product main.page pre code { overflow-wrap: normal; }
html body.ggtv-product main.page :is(a, button, input, select, textarea, summary):focus-visible { outline-color: #7df6ff; }
.product-subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.product-subnav a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; border: 1px solid #3b809a; border-radius: 8px; background: #0a283b; text-decoration: none; }
.product-subnav a:hover { background: #13455d; }
.page-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.site-filter-field { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem .75rem; }
.site-filter-field label { flex-basis: 100%; color: #d0e5f1; }
.site-filter-field input { flex: 1 1 18rem; min-width: 0; min-height: 44px; padding: .55rem .7rem; }
html body.ggtv-product .site-filter-field button { margin: 0; }
.site-filter-field button[hidden] { display: none !important; }
#site-filter-status { margin-bottom: 0; }
html body.ggtv-product main.page :is(.account-intro, .account-card) { justify-self: center; }
html body.ggtv-product main.page .account-intro h1 {
  margin-block: .25em;
  font-size: clamp(2.5rem, 4.1vw, 4.4rem);
  line-height: 1.03;
}
html body.ggtv-product main.page .account-intro .eyebrow { justify-content: center; color: #a5f7ff; }
html body.ggtv-product main.page .account-card input { min-height: 44px; max-width: 100%; }
html body.ggtv-product main.page .account-card details { padding: .65rem .85rem; margin-block: .6rem; border: 1px solid #35657b; border-radius: 10px; background: #091b29; }
html body.ggtv-product main.page .account-card button[type="submit"] { min-height: 44px; }

.commerce-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.15vw, 18px);
}
.store-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
html body.ggtv-product main.page .commerce-intro {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(18px, 3vw, 52px);
  padding: clamp(20px, 3vw, 45px);
  background: radial-gradient(ellipse at 100% 8%, #14465c, #0a1e32 53%, #071522 88%);
}
html body.ggtv-product main.page :is(.commerce-intro, .plans-intro) h2 {
  max-width: 25ch;
  margin: .35em 0 .5em;
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  line-height: 1.06;
}
html body.ggtv-product main.page .commerce-kicker {
  margin: 0;
  color: #80edf9;
  font-size: .8rem;
  font-weight: 750;
  letter-spacing: .17em;
  text-transform: uppercase;
}
html body.ggtv-product main.page .commerce-note { margin-bottom: 0; font-size: .9rem; color: #c2d4e1; }
.commerce-capture { min-width: 0; margin: 0; }
.commerce-capture img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #52a2bd;
  border-radius: 12px;
  box-shadow: 0 0 20px #20b4dd32, 0 12px 22px #020b18a0;
}
.commerce-capture figcaption { margin-top: .45rem; color: #bad6e6; font-size: .85rem; }
.commerce-icon {
  display: block;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  color: #63efff;
  filter: drop-shadow(0 0 8px #0ad4ec52);
}
svg.commerce-icon { box-sizing: border-box; padding: .22rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.platform-tile, .plan-tier { display: flex; flex-direction: column; align-items: flex-start; }
.platform-tile h3, .plan-tier h3 { margin: .45rem 0; }
.platform-tile p { margin: .35rem 0 .7rem; }
.platform-tile .status-pill { font-size: .83rem; }
.platform-tile p:last-child { margin-bottom: 0; }
html body.ggtv-product main.page .plan-tier { padding: clamp(18px, 2.55vw, 38px); }
html body.ggtv-product main.page .plan-tier-pro {
  border-color: #5adcff;
  background: radial-gradient(ellipse at 92% 0%, #193f62 0%, #102948 44%, #081a2e 90%);
  box-shadow: inset 0 0 18px #27b4ff23, 0 0 20px #22c1ef23;
}
html body.ggtv-product main.page .plan-limit { margin: .2rem 0; color: #e4faff; }
.plan-limit strong, .plan-limit span { display: block; }
.plan-limit strong { font-size: clamp(1.85rem, 3.8vw, 3.6rem); letter-spacing: -.04em; line-height: 1.1; }
.plan-tier-pro .plan-limit strong { color: #8aeeff; }
.plan-limit span { margin-top: .2rem; }
.plan-tier li { margin: .28rem 0; }
.plan-tier p:last-child { margin-top: auto; margin-bottom: 0; padding-top: .65rem; }
html body.ggtv-product main.page .plan-comparison tbody td:last-child { background: #0c2a40; color: #e3f8ff; }
html body.ggtv-product main.page .plan-comparison thead th:last-child { background: #12445c; }

@media (min-width: 721px) {
  html body.ggtv-product main.page .plan-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body.ggtv-product main.page .features:has(> article:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .store-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  html body.ggtv-product main.page .commerce-intro { grid-template-columns: minmax(0, 1fr); }
  .commerce-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1001px) and (max-width: 1240px) {
  html body.ggtv-product > header.site.product-header { flex-wrap: nowrap; gap: 8px; }
  html body.ggtv-product .product-header nav.site a { min-height: 32px; font-size: .75rem; padding-inline: 5px; }
  html body.ggtv-product .product-header nav.site .account-link { padding-inline: 8px; }
}
@media (max-width: 900px) {
  html body.ggtv-product > header.site.product-header { padding-inline: 14px; }
  html body.ggtv-product .product-header nav.site { width: 100%; }
  html body.ggtv-product.site-menu-open .product-header nav.site a { padding-inline: 8px; }
}
@media (max-width: 680px) {
  html body.ggtv-product { --product-gutter: 14px; }
  html body.ggtv-product::before {
    background-image: linear-gradient(#050d19a3, #050d19b8 70%), url("assets/redesign/neon-streamer-lounge.webp");
    background-position: center, 72% center;
  }
  .footer-head { flex-direction: column; gap: 6px; }
  html body.ggtv-product main.page section.card h2 { overflow-wrap: anywhere; }
  html body.ggtv-product main.page .matrix th { font-size: .9rem; }
  html body.ggtv-product main.page .matrix code { font-size: .85em; }
  html body.ggtv-product main.page :is(th, td) { padding-inline: .49rem; }
}

@media (forced-colors: active) {
  html body.ggtv-product::before { display: none; }
}
