/*
 * Television showcase — additions on top of css/ud-showcase.css.
 *
 * The base file already gives every screen its card/panel/card grid, its
 * cover, its rail, its CTA form and its mobile layout — including how a card
 * behaves at every breakpoint down to 320px. None of that changes here. What
 * is different about a TV screen is its content: feature badges (tv_features
 * chips, the same ones the product page's hero shows) above the name, and a
 * full spec table — grouped the same way udtheme_product_spec_groups()
 * groups it on single-ud_product.php — instead of a feature story and stats.
 *
 * Enqueued after css/ud-showcase.css (see ud_enqueue_showcase_tv() in
 * includes/assets.php), which is what lets these rules win on equal
 * specificity without touching the base file's own selectors.
 */

.ud-showcase .uds-tv-badges{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;margin-bottom:2px}
.ud-showcase .uds-tv-badge{
  display:inline-block;font-size:11px;font-weight:700;letter-spacing:.04em;line-height:1;
  color:var(--dim);background:rgba(255,255,255,.06);border:1px solid var(--line);
  border-radius:100px;padding:6px 12px;white-space:nowrap;
}

.ud-showcase .uds-tv-specs{margin-top:4px}
.ud-showcase .uds-tv-spec-group{margin-top:16px}
.ud-showcase .uds-tv-spec-group:first-child{margin-top:0}
.ud-showcase .uds-tv-spec-title{
  font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:var(--dimmer);margin-bottom:6px;
}

/* Same reasoning as .uds-soon-spec in the base file: table-layout:fixed keeps
   a long value (VESA, dimensions) from pushing the table past the card at
   320px — it wraps inside its column instead. */
.ud-showcase .uds-tv-spec{width:100%;border-collapse:collapse;font-size:13px;table-layout:fixed}
.ud-showcase .uds-tv-spec td{padding:6px 0;vertical-align:baseline;border-bottom:1px solid rgba(255,255,255,.1)}
.ud-showcase .uds-tv-spec tr:last-child td{border-bottom:none}
.ud-showcase .uds-tv-spec .uds-k{width:44%;text-align:left;color:var(--dimmer);white-space:nowrap;padding-right:14px}
.ud-showcase .uds-tv-spec .uds-v{color:#fff;text-align:right;overflow-wrap:anywhere}

@media(max-width:1199px){
  .ud-showcase .uds-tv-spec{font-size:12px}
}

/* Card B goes left-aligned on a phone (see the base file's mobile block) —
   the badge row follows it the same way .uds-mini and .uds-toggle do there. */
@media(max-width:900px){
  .ud-showcase .uds-card--b .uds-tv-badges{justify-content:flex-start}
}

/* ---------- family index screen ----------
   32 families in seven sections. Tuned to sit on one 100dvh page: tight row
   padding, small type, section headings and panel sub-labels kept close. */
.ud-showcase .uds-intro-title--index{font-size:clamp(24px, 1.4rem + 1vw, 38px);margin-bottom:16px}
.ud-showcase .uds-screen--tv-index .uds-intro-index{
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:0 32px;padding-top:16px;
}
.ud-showcase .uds-screen--tv-index .uds-ix-head{font-size:11px;margin-bottom:8px}
.ud-showcase .uds-screen--tv-index .uds-ix-row{padding:3px 6px 3px 12px;gap:12px}
.ud-showcase .uds-screen--tv-index .uds-ix-row:hover{padding-left:16px}
.ud-showcase .uds-screen--tv-index .uds-ix-code{font-size:12px}
.ud-showcase .uds-screen--tv-index .uds-ix-meta{font-size:11px}
.ud-showcase .uds-screen--tv-index .uds-ix-sub{margin:8px 0 3px;padding-top:6px}
.ud-showcase .uds-screen--tv-index .uds-intro-eyebrow{margin-bottom:6px}

@media(max-width:1199px){
  .ud-showcase .uds-screen--tv-index .uds-intro-index{grid-template-columns:repeat(2,1fr);gap:0 28px}
}
@media(max-width:900px){
  .ud-showcase .uds-screen--tv-index .uds-intro-index{grid-template-columns:1fr;gap:18px}
}

/* ============================================================================
   Opening section (tpl-showcase-tv.php: .udstv-intro) — six editorial screens
   before the deck, adapted from the front of the offline presentation. Lives
   OUTSIDE .ud-showcase, so it carries its own colours rather than the deck's
   card variables. The deck's fixed chrome (rail, progress bar, mobile bar) is
   held back with .ud-showcase:not(.uds-live) until #uds-app scrolls into view
   (class added by js/ud-showcase-tv.js).
   ============================================================================ */

.udstv-intro{
  --ink:#fff;
  --navy:#002554;
  background:var(--navy);
  color:var(--ink);
  font-family:"Google Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.udstv-in{
  position:relative;
  min-height:100svh;
  display:flex;
  align-items:center;
  padding:96px clamp(20px,6vw,110px);
  scroll-snap-align:start;
  overflow:hidden;
}
/* Full-bleed photo with a wash dark enough to hold text at any crop. */
.udstv-in--photo::before,
.udstv-in--cover::before{
  content:"";position:absolute;inset:0;z-index:0;
  background:var(--img) center/cover no-repeat;
}
.udstv-in--photo::after,
.udstv-in--cover::after{
  content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(90deg,rgba(0,15,38,.92) 0%,rgba(0,15,38,.7) 42%,rgba(0,15,38,.35) 100%);
}
/* --plain: keep the photo, drop the wash; the text leans on its own shadow. */
.udstv-in--plain::after{content:none}
.udstv-in--plain .udstv-in-inner{text-shadow:0 2px 18px rgba(0,10,28,.75),0 1px 4px rgba(0,10,28,.6)}
.udstv-in--bottom{align-items:flex-end}
.udstv-in--center{justify-content:center;text-align:center}
.udstv-in--center .udstv-in-inner{max-width:640px}
.udstv-in--center .udstv-in-title{font-size:clamp(24px,2vw + .8rem,40px)}
.udstv-in--center .udstv-in-cue{margin-left:auto;margin-right:auto}
/* dive: text sits low, cue points into the deck */
.udstv-in--dive{padding-bottom:clamp(48px,8vh,110px)}
.udstv-in--dive .udstv-in-cue{margin-top:22px}

.udstv-in--stats{background:linear-gradient(160deg,#013063,#002554 60%,#001b40)}
/* dot field, denser toward the top-right, fading off behind the text */
.udstv-in--stats::before{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background-image:radial-gradient(rgba(127,211,244,.22) 1.5px,transparent 1.7px);
  background-size:28px 28px;
  -webkit-mask-image:radial-gradient(135% 130% at 100% 0%,#000 0%,rgba(0,0,0,.5) 50%,transparent 82%);
          mask-image:radial-gradient(135% 130% at 100% 0%,#000 0%,rgba(0,0,0,.5) 50%,transparent 82%);
}
.udstv-in-inner{position:relative;z-index:2;max-width:760px;width:100%}

/* --stack: text on top, image collage below (100 years). */
.udstv-in--stack{flex-direction:column;align-items:flex-start;justify-content:center;gap:clamp(28px,4vw,48px)}
.udstv-in-collage{margin:0;width:100%;max-width:1180px;align-self:center}
.udstv-in-collage img{display:block;width:100%;height:auto;border-radius:10px}

/* --split: image left at full height, text right (everyday life). */
.udstv-in--split{padding:0;align-items:stretch}
.udstv-in--split .udstv-in-media{margin:0;flex:0 0 46%;min-width:0;overflow:hidden}
.udstv-in--split .udstv-in-media img{width:100%;height:100%;object-fit:cover;display:block}
.udstv-in--split .udstv-in-inner{
  flex:1 1 auto;align-self:center;
  max-width:640px;padding:96px clamp(24px,5vw,80px);
}

.udstv-eyebrow{
  margin:0 0 14px;font-size:12px;font-weight:700;letter-spacing:.22em;
  text-transform:uppercase;color:#7fd3f4;
}
.udstv-in-title{
  margin:0;font-weight:700;line-height:1.06;letter-spacing:-.01em;
  font-size:clamp(30px,3vw + 1rem,60px);
}
.udstv-in--cover .udstv-in-title{font-size:clamp(38px,4vw + 1rem,76px)}
.udstv-in-lead{
  margin:20px 0 0;max-width:52ch;
  font-size:clamp(15px,.6vw + .8rem,20px);line-height:1.55;color:rgba(255,255,255,.82);
}

/* About-us figures */
.udstv-stats{
  list-style:none;margin:40px 0 0;padding:0;
  display:grid;grid-template-columns:repeat(2,1fr);gap:28px 40px;max-width:620px;
}
.udstv-stats li{display:flex;flex-direction:column;gap:8px}
.udstv-stats b{font-size:clamp(30px,2vw + 1rem,44px);font-weight:700;color:#fff;line-height:1}
.udstv-stats span{font-size:14px;line-height:1.4;color:rgba(255,255,255,.7)}

/* Everyday-life points */
.udstv-points{list-style:none;margin:32px 0 0;padding:0;display:grid;gap:16px;max-width:560px}
.udstv-points li{font-size:clamp(14px,.4vw + .8rem,17px);line-height:1.5;color:rgba(255,255,255,.82)}
.udstv-points b{display:block;color:#fff;font-weight:700;margin-bottom:2px}

/* Scroll cue */
.udstv-in-cue{
  display:block;width:22px;height:22px;margin-top:44px;
  border-right:2px solid rgba(255,255,255,.6);border-bottom:2px solid rgba(255,255,255,.6);
  transform:rotate(45deg);animation:udstvCue 1.8s ease-in-out infinite;
}
@keyframes udstvCue{0%,100%{transform:rotate(45deg) translate(0,0);opacity:.5}50%{transform:rotate(45deg) translate(4px,4px);opacity:1}}
@media(prefers-reduced-motion:reduce){.udstv-in-cue{animation:none}}

/* Hold the deck's fixed chrome until the deck itself is in view. */
.ud-showcase .uds-prog,
.ud-showcase .uds-rail,
.ud-showcase .uds-fs,
.ud-showcase .uds-export,
.ud-showcase .uds-mbar,
.ud-showcase .uds-mnav{transition:opacity .35s ease}
.ud-showcase:not(.uds-live) .uds-prog,
.ud-showcase:not(.uds-live) .uds-rail,
.ud-showcase:not(.uds-live) .uds-fs,
.ud-showcase:not(.uds-live) .uds-export,
.ud-showcase:not(.uds-live) .uds-mbar,
.ud-showcase:not(.uds-live) .uds-mnav{opacity:0;pointer-events:none;visibility:hidden}

@media(max-width:900px){
  .udstv-in{min-height:auto;padding:80px 22px}
  .udstv-in--cover,
  .udstv-in--photo.udstv-in--plain{min-height:100svh}
  .udstv-in--photo::after,
  .udstv-in--cover::after{background:linear-gradient(180deg,rgba(0,15,38,.72),rgba(0,15,38,.9))}
  .udstv-stats{grid-template-columns:1fr 1fr;gap:22px 20px}

  /* split -> stack: image on top, text under it */
  .udstv-in--split{flex-direction:column;align-items:stretch}
  .udstv-in--split .udstv-in-media{flex:0 0 auto;height:46svh}
  .udstv-in--split .udstv-in-inner{padding:44px 22px 72px}
  .udstv-in--stack{padding-top:64px}
}
@media(max-width:420px){
  .udstv-stats{grid-template-columns:1fr}
}

/* ============================================================================
   Family screen (js/ud-showcase-tv.js: familyHTML) — one screen per model
   family. Its own layout, not the base card/panel/card grid: the gallery panel
   (still the fixed .uds-scene, but it now CROSS-FADES between families instead
   of turning on rotateY) sits over the LEFT region as one square-cornered white
   plate pushed to the screen's left margin — thumb column + main image on top,
   a short row of feature chips on the plate below, the main image bleeding past
   the plate on the right. Both text cards stack on the RIGHT inside
   .uds-fam-cards — specs (card--b) above, name / description (card--a) below.
   The diagonal chip strip still swaps the spec set in place; the vertical
   section label stays down the right edge.
   ============================================================================ */

/* Two columns following the sketch: a big gallery region on the LEFT (1fr — the
   fixed white plate fills it and measure() sizes itself off .uds-fam-galslot),
   a narrower card stack on the RIGHT (--card-w). The plate takes the lion's
   share and scales UP with the viewport — there is no width cap, so on a wide
   monitor the plate and its shot grow, they do not shrink. Row 2 (1fr) is the
   spacer that pins the group to the top of the 100dvh screen.

   --panel-fill (read by js/ud-showcase-tv.js measure() off #uds-app) is raised
   here so the plate is tall and the shot large; this file only loads on the TV
   template, so the override is local to this deck. */
.ud-showcase{--panel-fill:.86}

.ud-showcase .uds-screen--fam{
  grid-template-columns:1fr var(--card-w);
  grid-template-rows:auto 1fr;
  /* The column gap is the runway the shot overhangs into: the shot runs ~20-25%
     of its width past the plate (see --uds-fam-bleed-r on .uds-gal-main), and
     the gap is kept a little wider than that so the shot fills the space up to
     the cards without covering their text. */
  gap:0 clamp(72px,13vw,280px);
  /* Narrow-ish card column so the plate stays dominant; grows gently with the
     viewport, capped so the plate always wins. */
  --card-w:clamp(320px,23vw,640px);
}
.ud-showcase .uds-screen--fam .uds-fam-galslot{grid-column:1;grid-row:1;min-height:62vh}

/* No horizontal scrollbar from the family screen. The shot deliberately overruns
   its column; clip the in-flow overflow at the deck root (this does NOT clip the
   fixed .uds-scene — its containing block is the viewport — so the panel shot
   still pokes out visually), and clip .uds-scene itself at the viewport edge for
   very narrow windows. clip (not hidden) adds no scroll box. */
.ud-showcase{overflow-x:clip}
.ud-showcase .uds-scene{overflow-x:clip}
.ud-showcase .uds-screen--fam .uds-fam-cards{
  grid-column:2;grid-row:1;align-self:start;
  display:flex;flex-direction:column;gap:clamp(16px,2vw,30px);
  padding-bottom:28px;
  /* Pushed down so the top card lines up with the top of the white plate;
     js/ud-showcase-tv.js measure() writes the offset (0 on phones). */
  margin-top:var(--fam-cards-top,0px);
  /* Snap is mandatory (below), so a card stack taller than the viewport would be
     unreachable — let it scroll inside itself, chaining to the page once it
     hits the end. When everything fits (the common case) this does nothing. A
     thin scrollbar shows only while it overflows. */
  max-height:calc(100dvh - 200px - var(--fam-cards-top,0px));
  overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.25) transparent;
}
.ud-showcase .uds-screen--fam .uds-fam-cards::-webkit-scrollbar{width:6px}
.ud-showcase .uds-screen--fam .uds-fam-cards::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.22);border-radius:3px;
}

/* The right-hand info cards show at once — no staged fade / slide-up reveal. The
   base .uds-rv mechanism (css/ud-showcase.css) still runs everywhere else in this
   deck (intro, series index, tail screens, outro form); this only neutralises it
   inside the family screen's card stack, on every viewport. Delete this block to
   bring the stagger back. */
.ud-showcase .uds-screen--fam .uds-fam-cards .uds-rv{
  opacity:1!important;transform:none!important;transition:none!important;
}

/* Slide navigation, PowerPoint-style: one flick commits to a whole slide, the
   deck never rests between them (base file uses `y proximity`). Paired with the
   discrete, un-eased transition in js/ud-showcase-tv.js. Desktop only — the
   phone layout scrolls freely. Kept TV-only because the mount deck's product
   screens can run taller than the viewport, where mandatory snap would trap the
   overflow; that deck gets the discrete cut without the forced snap. */
@media(min-width:901px){
  html.uds-on{scroll-snap-type:y mandatory}
}

/* Feature chips: on desktop they live ON the white plate, built into the panel
   media by js/ud-showcase-tv.js (.uds-fam-feats-plate below). familyHTML still
   emits .uds-fam-feats-under — an in-flow copy used only on phones, where the
   plate collapses into a short fixed band with no room for chips. */
.ud-showcase .uds-screen--fam .uds-fam-feats-under{display:none}

/* Lower card (name / description) picks up card--b's right-edge treatment. */
.ud-showcase .uds-screen--fam .uds-card--a{
  text-align:right;
  border-left:none;border-right:1px solid rgba(1,171,234,.45);
  border-radius:10px 0 0 10px;
}
.ud-showcase .uds-screen--fam .uds-card--a .uds-hline{margin-left:auto;transform-origin:right}

/* The two cards are stacked now, not side by side, so the column runs tall.
   Tighten padding, type and row spacing a little; the screen scrolls when the
   copy is long (full copy also on the linked product page). */
.ud-showcase .uds-screen--fam .uds-card{padding:20px 22px}
.ud-showcase .uds-screen--fam .uds-fam-cards .uds-hline{margin-top:10px;margin-bottom:12px}
.ud-showcase .uds-screen--fam .uds-tv-spec td{padding:4px 0}
.ud-showcase .uds-screen--fam .uds-diag-chips{margin:10px 0 2px}
.ud-showcase .uds-screen--fam .uds-lead{font-size:13.5px;line-height:1.5}
.ud-showcase .uds-screen--fam .uds-tv-feats{margin-top:12px}
.ud-showcase .uds-screen--fam .uds-nav-row{margin-top:14px}

/* ---- gallery internals: white plate behind, thumbs left, big image right ----
   Overrides the base overlay rules in css/ud-showcase.css. Safe to touch the
   shared .uds-face / .uds-gal* selectors here: this file only loads on the TV
   template, which never shows the mount scenes. The two faces are now plain
   stacked layers — no 3D — so render() can cross-fade them. */
.ud-showcase .uds-flip{transform-style:flat}
.ud-showcase .uds-face{
  background:transparent;box-shadow:none;overflow:visible;
  backface-visibility:visible;
}
/* render() writes each face's opacity every frame off the eased scroll value,
   so the cross-fade needs no CSS transition of its own. */
.ud-showcase .uds-face--b{transform:none}
.ud-showcase .uds-fam-plate{
  position:absolute;z-index:0;
  /* pulled in on the right so the shot reads as running off the white, without
     moving the shot itself (it is positioned against .uds-gal-main). Raise this
     to trim more white off the right edge; lower it to widen the plate. */
  inset:0 var(--uds-fam-plate-r,clamp(28px,3.6vw,84px)) 0 0;
  background:#fff;border-radius:10px;
  box-shadow:0 16px 44px rgba(0,0,0,.30);
}
/* .uds-gal is the column that stacks the gallery row over the chip row, both on
   the plate. .uds-gal-row is the old flex row: thumb column + main image. */
.ud-showcase .uds-gal{
  position:absolute;inset:0;
  display:flex;flex-direction:column;
  overflow:visible;
}
.ud-showcase .uds-gal-row{
  flex:1 1 auto;min-height:0;
  display:flex;gap:clamp(14px,1.4vw,24px);
}
/* The shot fills the plate's height and, being landscape, then runs wider than
   its column and spills past the white plate on the right — the "20-25% sticking
   out" the sketch shows. It is anchored to the LEFT (against the thumbs) and its
   width is capped at the column + the gap runway (--uds-fam-bleed-r), so however
   tall the plate gets the shot can never reach the cards. Transparent PNGs make
   it read as the set lifting off the card; the old white-bg JPEGs show a white
   sliver there until the media swap. Dial the overhang with --uds-fam-bleed-r
   (and keep the .uds-screen--fam column gap a touch wider than it). */
.ud-showcase .uds-gal-main{
  position:relative;flex:1 1 auto;min-width:0;
  overflow:visible;z-index:1;
  /* Fire TV › LED only: the shot is scaled by the family's diagonal so the
     three near-identical renders read as three sizes. --uds-fam-hero-scale is
     set on .uds-face-media by mediaOf() (js/ud-showcase-tv.js); 1 everywhere
     else. Seated at the bottom so the set keeps its shelf line and just the
     size changes. Transform, so no reflow — the thumbs and plate stay put. */
  transform:scale(var(--uds-fam-hero-scale,1));
  transform-origin:center bottom;
}
.ud-showcase .uds-gal-main .uds-frame{
  left:0;right:auto;bottom:auto;
  /* box runs past its column on the RIGHT only — it is flush with the plate top,
     no upward overhang. --uds-fam-bleed-t defaults to 0; give it a value to bring
     the top poke-out back. */
  top:calc(-1 * var(--uds-fam-bleed-t,0px));
  height:calc(100% + var(--uds-fam-bleed-t,0px));
  width:calc(100% + var(--uds-fam-bleed-r,clamp(64px,12vw,260px)));
  object-fit:contain;                        /* never crop the shot. A landscape hero fills the box width and so overhangs the plate on the right; a squarer render fits to height and pokes out less — the overhang tracks the render's shape */
  object-position:left top;                  /* anchor top-left: the shot sits against the plate's top-left corner and runs right into the gap; slack falls to the bottom */
}
.ud-showcase .uds-gal-main .uds-shot{object-position:center top}

/* Feature chips ON the plate (desktop), under the gallery row. Aligned under the
   main image — the left offset clears the thumb column (its width + its left
   margin + the row gap). Dark chips: they sit on #fff now, not the dark screen. */
.ud-showcase .uds-fam-feats-plate{
  flex:0 0 auto;position:relative;z-index:1;
  display:flex;flex-wrap:wrap;gap:8px;
  padding:12px 20px 16px;
  margin-left:calc(clamp(84px,7.6vw,116px) + 18px + clamp(14px,1.4vw,24px));
}
.ud-showcase .uds-fam-feats-plate .uds-tv-feat{
  color:#0a1f3d;background:rgba(0,37,84,.06);border-color:rgba(0,37,84,.16);
}
/* Thumb column: a few large squares down the left of the plate, the way the
   sketch draws it (the up/down steps show only when the strip overflows). */
.ud-showcase .uds-gal-side{
  position:relative;inset:auto;
  flex:0 0 auto;width:clamp(84px,7.6vw,116px);
  margin:20px 0 20px 18px;z-index:1;gap:10px;
}
.ud-showcase .uds-gal-thumbs{gap:12px}
.ud-showcase .uds-gal-thumbs .uds-t{border-radius:10px}

/* Phone-only gallery (js/ud-showcase-tv.js: famGalMobileHTML). Off on desktop,
   where the fixed panel does the job; on a phone it is the whole gallery — a
   static image on a white plate with a horizontal, tap-through thumbnail row. */
.ud-showcase .uds-fam-gal-m{display:none}

.ud-showcase .uds-fam-name{
  font-size:clamp(22px,1.4rem + 1vw,34px);font-weight:700;line-height:1.08;margin:0 0 2px;
}
.ud-showcase .uds-screen--fam .uds-lead{margin-top:12px}
/* Second spec half, now stacked under the main table in card--b — a hairline
   sets it off so the two tables do not read as one. */
.ud-showcase .uds-fam-left{margin-top:14px;padding-top:12px;border-top:1px solid rgba(255,255,255,.1)}
.ud-showcase .uds-fam-left:empty{display:none}
.ud-showcase .uds-fam-left .uds-tv-spec{font-size:12px}
.ud-showcase .uds-fam-left .uds-tv-spec .uds-v{color:var(--dim)}

/* Right card header: panel name + the picked diagonal's OS line. */
.ud-showcase .uds-fam-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px;justify-content:flex-end}
.ud-showcase .uds-fam-panel{font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--blue)}
.ud-showcase .uds-fam-os{font-size:13px;color:var(--dim)}

/* Diagonal chips — one per size, icon + number, the picked one lit. */
.ud-showcase .uds-diag-chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;margin:14px 0 4px}
.ud-showcase .uds-diag-chip{
  position:relative;display:inline-flex;align-items:center;gap:6px;
  padding:6px 12px;border:1px solid var(--line);border-radius:100px;
  background:rgba(255,255,255,.05);color:var(--dim);cursor:pointer;
  font:inherit;line-height:1;transition:background .2s,border-color .2s,color .2s;
}
.ud-showcase .uds-diag-chip:hover{background:rgba(255,255,255,.1);color:#fff}
.ud-showcase .uds-diag-chip.uds-is-on{background:var(--blue);border-color:var(--blue);color:#001225}
.ud-showcase .uds-diag-ico{width:16px;height:16px;object-fit:contain;filter:invert(1);opacity:.85}
.ud-showcase .uds-diag-chip.uds-is-on .uds-diag-ico{filter:none;opacity:1}
.ud-showcase .uds-diag-size{font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}
.ud-showcase .uds-diag-new{
  font-size:9px;font-weight:800;letter-spacing:.08em;line-height:1;
  padding:3px 5px;border-radius:4px;background:var(--red,#EA0029);color:#fff;
}

/* Features row under the specs. */
.ud-showcase .uds-tv-feats{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;margin-top:16px}
.ud-showcase .uds-tv-feat{
  display:inline-flex;align-items:center;gap:6px;
  font-size:11px;font-weight:700;letter-spacing:.03em;line-height:1;
  color:var(--dim);background:rgba(255,255,255,.06);border:1px solid var(--line);
  border-radius:100px;padding:6px 11px;white-space:nowrap;
}
/* Feature icons ship as light mono line art (img/showcase-tv/feat/*.svg), so
   they need no recolour — just sizing. A chip with an icon loses a little left
   padding so icon + label sit balanced. */
.ud-showcase .uds-tv-feat img{
  width:14px;height:14px;flex:0 0 auto;object-fit:contain;opacity:.9;
  margin-left:-2px;
}

/* Section label down the right edge of the screen (the sketch's "GOOGLE TV").
   Hidden below 1200 — the card stack reaches close to the edge there and the
   deck header already names the section. */
.ud-showcase .uds-screen--fam{position:relative}
.ud-showcase .uds-fam-edge{
  position:absolute;right:10px;top:50%;transform:translateY(-50%);z-index:1;
  writing-mode:vertical-rl;font-size:10px;letter-spacing:.34em;text-transform:uppercase;
  color:rgba(255,255,255,.28);pointer-events:none;
}
@media(max-width:1199px){
  .ud-showcase .uds-fam-edge{display:none}
}

@media(max-width:900px){
  .ud-showcase .uds-diag-chips,
  .ud-showcase .uds-tv-feats,
  .ud-showcase .uds-fam-head{justify-content:flex-start}

  /* Single-column flow, no fixed panel: the phone gallery (.uds-fam-gal-m) in
     the flow at the top of each family screen, then the feature chips, then the
     two cards. The fixed .uds-scene is dropped here and js/ud-showcase-tv.js
     skips mount() on phones, so nothing renders into it. */
  .ud-showcase .uds-scene{display:none}
  .ud-showcase .uds-screen--fam{display:block}
  /* base mobile reserves calc(36dvh + 74px) at the top for the fixed band that
     no longer exists — just clear the 52px bar */
  .ud-showcase .uds-screen.uds-screen--fam{padding:68px 16px 96px}
  .ud-showcase .uds-screen--fam .uds-fam-galslot{display:none}
  .ud-showcase .uds-screen--fam .uds-fam-cards{
    display:block;padding-bottom:0;
    max-height:none;overflow:visible;   /* no snap on phones — cards just flow */
  }
  .ud-showcase .uds-fam-feats-plate{display:none}
  .ud-showcase .uds-screen--fam .uds-fam-feats-under{
    display:flex;flex-wrap:wrap;gap:8px;padding:14px 0 4px;
  }
  .ud-showcase .uds-screen--fam .uds-card--a{
    margin-top:16px;text-align:left;
    border-right:none;border-left:1px solid rgba(1,171,234,.45);
    border-radius:0 10px 10px 0;
  }
  .ud-showcase .uds-screen--fam .uds-card--a .uds-hline{margin-left:0;transform-origin:left}

  /* ---- phone gallery ---- */
  .ud-showcase .uds-fam-gal-m{display:block}
  .ud-showcase .uds-fam-gal-m-main{
    position:relative;width:100%;aspect-ratio:4/3;
    background:#fff;border-radius:10px;overflow:hidden;
    box-shadow:0 12px 32px rgba(0,0,0,.26);
    /* Fire TV › LED only — see .uds-gal-main. --uds-fam-hero-scale is set on the
       .uds-fam-gal-m wrapper by famGalMobileHTML(); 1 everywhere else. Seated at
       the bottom so the smaller sizes still line up under the copy. */
    transform:scale(var(--uds-fam-hero-scale,1));
    transform-origin:center bottom;
  }
  /* frames inherit the base .uds-frame / .uds-shot / .uds-ph rules; just centre */
  .ud-showcase .uds-fam-gal-m-main .uds-shot{object-position:center}
  .ud-showcase .uds-fam-gal-m-thumbs{
    display:flex;gap:8px;margin-top:8px;padding-bottom:2px;
    overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;
  }
  .ud-showcase .uds-fam-gal-m-thumbs::-webkit-scrollbar{display:none}
  .ud-showcase .uds-fam-gal-m-t{
    flex:0 0 auto;width:60px;height:60px;padding:0;cursor:pointer;
    border:1px solid rgba(255,255,255,.22);border-radius:8px;overflow:hidden;background:#fff;
  }
  .ud-showcase .uds-fam-gal-m-t img{width:100%;height:100%;object-fit:cover;display:block}
  .ud-showcase .uds-fam-gal-m-t.uds-is-on{border-color:var(--blue);box-shadow:0 0 0 2px var(--blue)}
}

/* Cover index: bright rule between panels within a section (the sketch's strip). */
.ud-showcase .uds-ix-sub{
  margin:14px 0 6px;padding-top:10px;
  font-size:10px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--blue);
  border-top:2px solid var(--blue);
}
.ud-showcase .uds-ix-col > .uds-ix-sub:first-of-type{margin-top:6px}
.ud-showcase .uds-ix-meta{min-width:0;overflow-wrap:anywhere}

/* ---------- rail: section markers, active one expands ----------
   js/ud-showcase-tv.js builds a .uds-rail-dot--sec per section and a
   .uds-rail-fams box of .uds-rail-dot--fam under it; the box opens only while
   its group carries .uds-is-here. Labels stay hover-only (base .uds-rail-dot
   span). Thirty-two dots at once overflowed the viewport. */
.ud-showcase .uds-rail{gap:14px}
.ud-showcase .uds-rail-group{gap:9px}
.ud-showcase .uds-rail-dot--sec{width:11px;height:11px}
.ud-showcase .uds-rail-dot--sec.uds-is-active{background:var(--blue)}
.ud-showcase .uds-rail-fams{
  display:flex;flex-direction:column;align-items:center;gap:9px;
  max-height:0;overflow:hidden;opacity:0;
  transition:max-height .35s ease,opacity .25s ease,margin-top .3s ease;
}
/* overflow:hidden drives the collapse; once expanded it goes visible (delayed
   past the transition) so a hovered family dot's label, which sits to the
   right of the 7px dot, is not clipped by the box. */
.ud-showcase .uds-rail-group.uds-is-here .uds-rail-fams{
  max-height:62vh;opacity:1;margin-top:3px;overflow:visible;
  transition:max-height .35s ease,opacity .25s ease,margin-top .3s ease,overflow 0s .35s;
}
.ud-showcase .uds-rail-dot--fam{width:7px;height:7px;background:rgba(255,255,255,.26)}
.ud-showcase .uds-rail-dot--fam:hover{background:rgba(255,255,255,.55)}
.ud-showcase .uds-rail-dot--fam.uds-is-active{background:var(--blue);transform:scale(1.55)}

/* Tail markers (flat panels, streaming, coming-soon) — a single dot each, no
   expanding family box. --soon inherits the warm-tan tick from the base file. */
.ud-showcase .uds-rail-group--tail{gap:0}

/* ========== tail screens: interactive flat panels · streaming ==========
   The Soon heading and its pair screens reuse .uds-screen--soon-intro /
   .uds-screen--soon straight from css/ud-showcase.css and need nothing here.
   These two are new: same full-width shell as a Soon screen, then their own
   body. */
.ud-showcase .uds-screen--tv-tail{
  display:flex;flex-direction:column;gap:0;
  padding:60px 60px 80px 74px;
}
.ud-showcase .uds-tail-head{flex:0 0 auto;max-width:1180px;margin:0 auto;width:100%}
.ud-showcase .uds-tail-title{
  font-size:clamp(30px,1.8rem + 1.6vw,52px);font-weight:800;line-height:1.05;
  letter-spacing:-.012em;margin:8px 0 12px;
}
.ud-showcase .uds-tail-lead{
  font-size:clamp(14px,.82rem + .2vw,17px);line-height:1.7;color:var(--dim);
  max-width:56ch;margin:0;
}

/* IFP: the four diagonals as cards on one screen. */
.ud-showcase .uds-ifp-grid{
  flex:1 1 auto;min-height:0;align-content:center;
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;
  max-width:1180px;margin:28px auto 0;width:100%;
}
.ud-showcase .uds-ifp-card{
  display:flex;flex-direction:column;gap:8px;
  padding:18px;border:1px solid var(--line);border-radius:12px;
  background:rgba(10,16,44,.42);
}
/* A fixed-proportion area the render sits at the bottom of; the render itself
   is scaled down for the smaller diagonals (--ifp-scale, set inline), so the
   four cards show one panel at four sizes rather than the same picture ×4. */
.ud-showcase .uds-ifp-stage{
  aspect-ratio:16/11;display:flex;align-items:flex-end;justify-content:flex-start;
  margin-bottom:4px;
}
.ud-showcase .uds-ifp-shot{
  width:calc(100% * var(--ifp-scale,1));aspect-ratio:16/10;
  border-radius:8px;overflow:hidden;background:#fff;
}
.ud-showcase .uds-ifp-shot img{width:100%;height:100%;object-fit:contain;display:block}
.ud-showcase .uds-ifp-size{font-size:22px;font-weight:800;letter-spacing:-.01em}
.ud-showcase .uds-ifp-model{
  font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:var(--blue);
}
.ud-showcase .uds-ifp-spec{list-style:none;margin:6px 0 0;padding:0;font-size:12px}
.ud-showcase .uds-ifp-spec li{
  display:flex;justify-content:space-between;gap:10px;
  padding:5px 0;border-bottom:1px solid rgba(255,255,255,.09);
}
.ud-showcase .uds-ifp-spec li:last-child{border-bottom:none}
.ud-showcase .uds-ifp-spec .uds-k{color:var(--dimmer)}
.ud-showcase .uds-ifp-spec .uds-v{color:#fff;text-align:right;overflow-wrap:anywhere}

/* OTT: one device per screen — shot on the left, copy on the right. */
.ud-showcase .uds-screen--ott{
  flex-direction:row;align-items:center;gap:clamp(28px,5vw,72px);
}
.ud-showcase .uds-ott-media{flex:0 0 46%;min-width:0}
.ud-showcase .uds-ott-shot{
  position:relative;width:100%;aspect-ratio:1.3;
  background:#fff;border-radius:14px;overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,.32);
}
.ud-showcase .uds-ott-shot .uds-frame{position:absolute;inset:0}
.ud-showcase .uds-ott-shot img{width:100%;height:100%;object-fit:contain;display:block}
.ud-showcase .uds-ott-body{flex:1 1 auto;min-width:0;max-width:560px}
.ud-showcase .uds-ott-feats{list-style:none;margin:14px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.ud-showcase .uds-ott-feats li{
  font-size:12px;padding:5px 12px;border:1px solid var(--line);border-radius:999px;
  color:var(--dim);
}
.ud-showcase .uds-ott-spec{margin-top:16px}
.ud-showcase .uds-screen--ott .uds-soon-nav{width:100%;justify-content:flex-start;margin-top:24px}

@media(max-width:1199px){
  .ud-showcase .uds-ifp-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
}
@media(max-width:900px){
  .ud-showcase .uds-screen--tv-tail{padding:64px 16px 96px}
  .ud-showcase .uds-ifp-grid{grid-template-columns:1fr;gap:14px;margin-top:20px}
  .ud-showcase .uds-ifp-card{padding:14px}
  .ud-showcase .uds-screen--ott{flex-direction:column;align-items:stretch;gap:22px}
  .ud-showcase .uds-ott-media{flex:0 0 auto}
  .ud-showcase .uds-ott-shot{aspect-ratio:1.5}
  .ud-showcase .uds-ott-body{max-width:none}
  .ud-showcase .uds-screen--ott .uds-soon-nav{display:none}
}

/* ---- Family-screen card typography on wide monitors ----
   The right card column keeps growing on big screens (--card-w up to 1120), but
   the spec table and the rest of the card text stayed pinned near the ~13px
   base — unreadable across a room on a 4K/5K panel. Scale it in steps. The base
   sizes (below 1600) are unchanged. */
@media(min-width:1600px){
  .ud-showcase .uds-screen--fam .uds-tv-spec{font-size:15px}
  .ud-showcase .uds-screen--fam .uds-fam-left .uds-tv-spec{font-size:13.5px}
  .ud-showcase .uds-screen--fam .uds-lead{font-size:16px}
  .ud-showcase .uds-screen--fam .uds-fam-panel,
  .ud-showcase .uds-screen--fam .uds-fam-os,
  .ud-showcase .uds-screen--fam .uds-diag-size{font-size:14px}
  .ud-showcase .uds-screen--fam .uds-tv-feat,
  .ud-showcase .uds-screen--fam .uds-tag{font-size:12px}
}
@media(min-width:2200px){
  .ud-showcase .uds-screen--fam .uds-tv-spec{font-size:16px}
  .ud-showcase .uds-screen--fam .uds-fam-left .uds-tv-spec{font-size:14.5px}
  .ud-showcase .uds-screen--fam .uds-lead{font-size:17px}
  .ud-showcase .uds-screen--fam .uds-fam-panel,
  .ud-showcase .uds-screen--fam .uds-fam-os,
  .ud-showcase .uds-screen--fam .uds-diag-size{font-size:15px}
  .ud-showcase .uds-screen--fam .uds-tv-feat,
  .ud-showcase .uds-screen--fam .uds-tag{font-size:13px}
}
@media(min-width:2880px){
  .ud-showcase .uds-screen--fam{--card-w:940px}
  .ud-showcase .uds-screen--fam .uds-tv-spec{font-size:19px}
  .ud-showcase .uds-screen--fam .uds-fam-left .uds-tv-spec{font-size:17px}
  .ud-showcase .uds-screen--fam .uds-lead{font-size:21px}
  .ud-showcase .uds-screen--fam .uds-fam-panel,
  .ud-showcase .uds-screen--fam .uds-fam-os,
  .ud-showcase .uds-screen--fam .uds-diag-size{font-size:18px}
  .ud-showcase .uds-screen--fam .uds-tv-feat,
  .ud-showcase .uds-screen--fam .uds-tag{font-size:15px}
  .ud-showcase .uds-fam-name{font-size:44px}
}
@media(min-width:3600px){
  .ud-showcase .uds-screen--fam{--card-w:1120px}
  .ud-showcase .uds-screen--fam .uds-tv-spec{font-size:23px}
  .ud-showcase .uds-screen--fam .uds-fam-left .uds-tv-spec{font-size:20px}
  .ud-showcase .uds-screen--fam .uds-lead{font-size:25px}
  .ud-showcase .uds-screen--fam .uds-fam-panel,
  .ud-showcase .uds-screen--fam .uds-fam-os,
  .ud-showcase .uds-screen--fam .uds-diag-size{font-size:21px}
  .ud-showcase .uds-screen--fam .uds-tv-feat,
  .ud-showcase .uds-screen--fam .uds-tag{font-size:17px}
  .ud-showcase .uds-fam-name{font-size:54px}
}

/* Large screens — the TV-specific rail dots and tail widths, in step with the
   2880 / 3600 tiers in css/ud-showcase.css. */
@media(min-width:2880px){
  .ud-showcase .uds-rail{gap:22px}
  .ud-showcase .uds-rail-group{gap:12px}
  .ud-showcase .uds-rail-dot--sec{width:14px;height:14px}
  .ud-showcase .uds-rail-dot--fam{width:9px;height:9px}
  .ud-showcase .uds-ifp-grid,
  .ud-showcase .uds-tail-head{max-width:1560px}
  .ud-showcase .uds-ifp-spec{font-size:15px}
  .ud-showcase .uds-ott-body{max-width:720px}
}
@media(min-width:3600px){
  .ud-showcase .uds-rail{gap:26px}
  .ud-showcase .uds-rail-group{gap:14px}
  .ud-showcase .uds-rail-dot--sec{width:16px;height:16px}
  .ud-showcase .uds-rail-dot--fam{width:11px;height:11px}
  .ud-showcase .uds-ifp-grid,
  .ud-showcase .uds-tail-head{max-width:1960px}
  .ud-showcase .uds-ifp-spec{font-size:17px}
  .ud-showcase .uds-ott-body{max-width:860px}
}
