/* JamRun IPTV home page sections. */

/* ---------- Hero ---------- */
.hero-panel {
  position: relative; margin: 12px; min-height: calc(100svh - 24px);
  border-radius: var(--r-panel); overflow: hidden; isolation: isolate; background: var(--navy);
}
.hero-field { position: absolute; inset: 0; z-index: -1; contain: strict; }
/* Two pre-painted colour scenes; changing channel cross-fades them (opacity only, no repaint while it moves) */
.scene {
  --c1: #2fa8f0; --c2: #6a3bc9; --c3: #f28a2e;
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease);
  background:
    radial-gradient(120% 80% at 50% 115%, color-mix(in oklab, var(--c2) 85%, #fff 15%), transparent 60%),
    linear-gradient(165deg, color-mix(in oklab, var(--c2) 70%, var(--navy)) 0%, var(--navy) 55%, color-mix(in oklab, var(--c2) 45%, var(--deep)) 100%);
}
.scene.is-on { opacity: 1; }
.glow { position: absolute; border-radius: 50%; will-change: transform; }
.g1 { width: 80vw; height: 80vw; right: -26vw; top: -34vw; background: radial-gradient(closest-side, var(--c1), transparent); opacity: .85; }
.g2 { width: 100vw; height: 60vw; left: 0; bottom: -34vw; background: radial-gradient(closest-side, var(--c2), transparent); opacity: .9; }
.g3 { width: 56vw; height: 56vw; left: -20vw; top: 16%; background: radial-gradient(closest-side, var(--c3), transparent); opacity: .55; }
@media (prefers-reduced-motion: no-preference) {
  .g1 { animation: drift 18s ease-in-out infinite alternate; }
  .g3 { animation: drift 22s ease-in-out infinite alternate-reverse; }
  .hero-panel.is-paused .glow, .hero-panel.is-paused .pill .dot { animation-play-state: paused; }
}
@keyframes drift { to { transform: translate3d(-6vw, 5vw, 0) scale(1.08); } }

.hero-inner {
  min-height: inherit; display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center;
  padding: 116px clamp(24px, 5vw, 80px) 56px; max-width: 1640px; margin: 0 auto;
}
@media (min-width: 1500px) { .tv-card { width: 410px; } }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.h1-sub { display: block; margin-top: 22px; font-family: var(--text); font-size: clamp(17px, 1.5vw, 21px); font-weight: 600; letter-spacing: 0; line-height: 1.3; color: var(--ink); }
.works { font-size: 14px; color: color-mix(in oklab, var(--ink) 72%, transparent); }

.tv-card {
  justify-self: center; width: min(360px, 100%);
  padding: 14px; border-radius: 26px;
  background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.18);
  transform: perspective(1200px) rotateY(-8deg) rotateX(3deg);
}
.tv-top { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 12px; }
.ch-num { font-family: var(--display); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--mist); }
.tv-screen { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: #000; }
.screen-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; }
.screen-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.screen-scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px); }
@media (prefers-reduced-motion: no-preference) {
  .tv-screen.flick .screen-pic { animation: flick .42s var(--ease-out); }
  .tv-screen.flick .screen-flash { animation: flash .42s ease-out; }
}
@keyframes flick { 0% { transform: scaleY(.04); } 60% { transform: scaleY(1.01); } 100% { transform: none; } }
@keyframes flash { 0% { opacity: .7; } 100% { opacity: 0; } }
.tv-info { padding: 16px 6px 6px; }
.ch-name { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.ch-show { color: var(--mist); font-size: 15px; min-height: 1.55em; }
.segments { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 16px 0 12px; }
.segments i { height: 3px; border-radius: 3px; background: rgba(255,255,255,.18); overflow: hidden; position: relative; }
.segments i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--f, 0)); transform-origin: left; transition: transform .5s var(--ease); }
.ch-next { font-size: 13px; color: var(--mist); }
.tv-zap { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 6px; border-radius: 16px; background: rgba(5,9,19,.4); font-size: 13px; color: var(--mist); }
.zap { width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(255,255,255,.1); cursor: pointer; display: grid; place-items: center; transition: background-color .2s; }
.zap:hover { background: rgba(255,255,255,.2); }
.zap svg { width: 20px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* The one orchestrated load moment: the card assembles itself (transform and opacity only) */
@media (prefers-reduced-motion: no-preference) {
  .piece { opacity: 0; transform: translateY(16px); animation: assemble .8s var(--ease-out) forwards; }
  .tv-top.piece { animation-delay: .15s; } .tv-screen.piece { animation-delay: .3s; }
  .tv-info.piece { animation-delay: .45s; } .tv-zap.piece { animation-delay: .6s; }
}
@keyframes assemble { to { opacity: 1; transform: none; } }

/* ---------- Setup ---------- */
.setup { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; padding: 140px var(--gutter) 120px; max-width: 1320px; margin: 0 auto; }
.steps { list-style: none; counter-reset: step; margin-top: 36px; display: grid; gap: 26px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; }
.steps li::before { content: counter(step); grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-weight: 600; background: rgba(47,168,240,.16); color: var(--aqua); }
.steps b { font-size: 19px; font-weight: 600; }
.steps span { color: var(--mist); max-width: 58ch; }
.note { margin-top: 30px; font-size: 14px; color: var(--mist); }
.add-sheet { padding: 20px; border-radius: 26px; background: linear-gradient(170deg, var(--raised), var(--navy)); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 40px 90px -40px rgba(47,168,240,.35); max-width: 460px; justify-self: center; width: 100%; }
.sheet-title { font-family: var(--display); font-size: 22px; font-weight: 600; margin-bottom: 14px; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0,0,0,.3); font-size: 13px; text-align: center; }
.seg span { padding: 8px 4px; border-radius: 9px; color: var(--mist); }
.seg .on { background: rgba(255,255,255,.14); color: var(--ink); font-weight: 600; }
.paste { margin-top: 16px; padding: 14px; border-radius: 14px; background: rgba(0,0,0,.28); border: 1px dashed rgba(255,255,255,.16); font-size: 14px; color: var(--mist); }
.paste-label { display: block; font-size: 12px; margin-bottom: 6px; }
.paste mark { background: rgba(47,168,240,.22); color: var(--ink); border-radius: 4px; padding: 0 3px; }
.found { margin: 14px 0 0; }
.found div { display: flex; justify-content: space-between; padding: 9px 2px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 14px; }
.found dt { color: var(--mist); } .found dd { margin: 0; font-weight: 600; }
.sheet-btn { display: block; margin-top: 16px; padding: 12px; border-radius: 12px; text-align: center; font-weight: 600; background: var(--blue); color: #04121f; }

/* ---------- Feature rail (light band) ---------- */
.flow { position: relative; background: var(--paper); color: var(--paper-ink); padding: 110px 0 100px; overflow: hidden; }
.flow-words {
  font-family: var(--display); font-weight: 600; font-size: clamp(80px, 14vw, 220px); letter-spacing: -.05em; line-height: .9;
  white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px rgba(12, 21, 48, .16); padding-left: var(--gutter); margin-bottom: 12px;
}
.flow-head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 0 var(--gutter); }
.rail-btns { display: flex; gap: 8px; }
.rail-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(12,21,48,.16); background: #fff; cursor: pointer; display: grid; place-items: center; transition: background-color .2s, transform .2s var(--ease); }
.rail-btn:hover { background: var(--paper-ink); }
.rail-btn:hover svg { stroke: #fff; }
.rail-btn svg { width: 20px; fill: none; stroke: var(--paper-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rail {
  list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 23vw, 310px); gap: 18px;
  margin-top: 40px; padding: 10px var(--gutter) 30px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.fcard {
  position: relative; aspect-ratio: 3 / 4; scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 22px;
  border-radius: 26px; color: #fff; overflow: hidden; isolation: isolate; background: var(--navy);
  box-shadow: 0 40px 60px -40px rgba(12,21,48,.6);
}
.fcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.fcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5,9,19,0) 30%, rgba(5,9,19,.92) 78%); }
.fcard:hover img { transform: scale(1.04); }
.fcard h3 { font-family: var(--display); font-size: clamp(22px, 2vw, 27px); line-height: 1.04; letter-spacing: -.02em; }
.fcard p { font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.86); }
.ftag { position: absolute; top: 18px; left: 18px; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: var(--r-pill); background: rgba(5,9,19,.62); }
.flow-more { padding: 10px var(--gutter) 0; }

/* ---------- Player ---------- */
.player { background: #000; padding: 140px var(--gutter) 120px; overflow: hidden; }
.beyond-h { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; font-family: var(--display); font-weight: 600; letter-spacing: -.045em; line-height: .9; font-size: clamp(54px, 10vw, 160px); max-width: 1500px; margin: 0 auto; }
.b-bottom { color: color-mix(in oklab, var(--ink) 62%, transparent); }
/* The app icon between the two halves of the headline; it pops in with the opening animation's spring */
.beyond-h > .b-top, .beyond-h > .b-bottom { position: relative; z-index: 1; }
.blink-mark { position: relative; justify-self: center; width: clamp(64px, 10vw, 170px); aspect-ratio: 1; }
.mark-face {
  position: relative; display: block; overflow: hidden; border-radius: 22.5%; background: #0f1117;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 18px 40px -12px rgba(0,0,0,.7), 0 0 60px -6px rgba(47,168,240,.45);
}
.mark-face img { display: block; width: 100%; height: 100%; }
.mark-face::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-100%);
  background: linear-gradient(112deg, transparent 38%, rgba(255,255,255,.32) 50%, transparent 62%);
}
.blink-mark .mark-face { width: 100%; height: 100%; }
.ring { position: absolute; inset: -6.5%; border-radius: 50%; border: 2px solid var(--aqua); opacity: 0; pointer-events: none; }
.ring-2 { border-color: var(--orange); }
@media (prefers-reduced-motion: no-preference) {
  .blink-mark.is-armed .mark-face { transform: scale(0); }
  .blink-mark.is-in .mark-face { animation: mark-pop 1s linear both; }
  .blink-mark.is-in .mark-face::after { animation: mark-sweep .6s linear .55s both; }
  .blink-mark.is-in .ring { animation: ring-out .9s var(--ease) .06s both; }
  .blink-mark.is-in .ring-2 { animation-name: ring-out-2; }
}
/* The opening animation's spring (damping 11, stiffness 140, mass 0.9), sampled */
@keyframes mark-pop {
  0% { transform: rotate(-40deg) scale(0); } 5% { transform: rotate(-33.8deg) scale(.155); }
  10% { transform: rotate(-20.9deg) scale(.478); } 15% { transform: rotate(-8deg) scale(.8); }
  20% { transform: rotate(1.2deg) scale(1.031); } 25% { transform: rotate(5.9deg) scale(1.148); }
  30% { transform: rotate(6.8deg) scale(1.169); } 35% { transform: rotate(5.3deg) scale(1.134); }
  40% { transform: rotate(3.1deg) scale(1.076); } 45% { transform: rotate(1deg) scale(1.024); }
  50% { transform: rotate(-.5deg) scale(.989); } 60% { transform: rotate(-1.1deg) scale(.972); }
  70% { transform: rotate(-.4deg) scale(.989); } 85% { transform: rotate(.2deg) scale(1.005); }
  100% { transform: none; }
}
@keyframes mark-sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes ring-out { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(3.2); } }
@keyframes ring-out-2 { from { opacity: .5; transform: scale(1); } to { opacity: 0; transform: scale(2.3); } }
.player-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; max-width: 1500px; margin: 80px auto 0; }
.player-copy { display: grid; gap: 8px; align-content: start; }
.specs { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.specs li { display: grid; gap: 4px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); }
.specs b { font-size: 17px; }
.specs span { color: var(--mist); font-size: 15px; }

/* ---------- Expanding tiles ---------- */
.tonight { background: #000; padding: 60px var(--gutter) 130px; }
.tiles { display: flex; gap: 14px; height: 540px; margin-top: 44px; }
.tile {
  position: relative; flex: 1; min-width: 0; border-radius: var(--r-card); overflow: hidden; cursor: pointer; isolation: isolate;
  padding: 20px 24px; display: flex; flex-direction: column; justify-content: space-between; background: var(--navy);
  transition: flex-grow .7s var(--ease);
}
.tile-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5,9,19,.5), rgba(5,9,19,.12) 32%, rgba(5,9,19,.94) 72%); }
.tile.is-open { flex-grow: 2.7; cursor: default; }
.tile header { display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.85); font-variant-numeric: tabular-nums; }
.tnum { padding: 3px 9px; border-radius: 8px; background: rgba(5,9,19,.5); }
.tile-name { font-family: var(--display); font-size: clamp(30px, 3vw, 44px); font-weight: 600; letter-spacing: -.03em; transition: opacity .3s; }
.tile-body { position: absolute; left: 24px; right: 24px; bottom: 22px; max-width: 46ch; opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .5s var(--ease); pointer-events: none; }
.tile.is-open .tile-body { opacity: 1; transform: none; transition-delay: .25s; pointer-events: auto; }
.tile.is-open .tile-name { opacity: 0; }
.tile-body h3 { font-family: var(--display); font-size: clamp(28px, 2.6vw, 40px); line-height: 1; letter-spacing: -.03em; margin-bottom: 12px; }
.tile-body p { color: rgba(238,242,255,.88); }
.mini-posters { display: flex; gap: 10px; margin-top: 22px; }
.mini-posters i { position: relative; width: 74px; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: var(--navy); }
.mini-posters img { width: 100%; height: 100%; object-fit: cover; }
.mini-posters b { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--gold); }
.season-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; align-items: center; font-size: 13px; }
.season-row span { padding: 6px 12px; border-radius: var(--r-pill); background: rgba(255,255,255,.12); }
.season-row span.on { background: var(--ink); color: var(--navy); font-weight: 600; }
.season-row em { font-style: normal; font-weight: 600; padding: 6px 12px; border-radius: 8px; background: var(--gold); color: #2b1d0a; }
.score { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 12px 14px; border-radius: 14px; background: rgba(5,9,19,.6); font-size: 15px; }

/* ---------- Ask JamRun ---------- */
.ask { background: #000; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 60px var(--gutter) 140px; max-width: 1320px; margin: 0 auto; }
.ticks { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--aqua); border-bottom: 2px solid var(--aqua); transform: rotate(-45deg); }
.fine-print { margin-top: 24px; font-size: 14px; color: var(--mist); max-width: 58ch; }
.ask-demo { padding: 18px; border-radius: 26px; background: linear-gradient(170deg, #17153a, var(--navy)); border: 1px solid rgba(106,59,201,.4); box-shadow: 0 40px 90px -40px rgba(106,59,201,.55); }
.ask-field { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.08); font-size: 16px; }
.ask-field svg { width: 20px; flex: none; fill: none; stroke: var(--mist); stroke-width: 2; stroke-linecap: round; }
.typed { white-space: nowrap; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .ask-demo .typed { clip-path: inset(0 100% 0 0); }
  .ask-demo.is-in .typed { animation: type 1s steps(28, end) forwards; }
  .ask-demo .ask-group { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .6s var(--ease-out); }
  .ask-demo.is-in .ask-group { opacity: 1; transform: none; transition-delay: 1.05s; }
  .ask-demo.is-in .ask-group + .ask-group { transition-delay: 1.2s; }
}
@keyframes type { to { clip-path: inset(0 0 0 0); } }
.ask-h { margin: 18px 4px 8px; font-size: 13px; color: var(--mist); }
.ask-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.05); }
.ask-row img { width: 72px; height: 45px; border-radius: 8px; object-fit: cover; flex: none; }
.ask-row span { flex: 1; min-width: 0; display: grid; }
.ask-row b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask-row small { color: var(--mist); font-size: 13px; }
.ask-row em { font-style: normal; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 10px; background: var(--ink); color: var(--navy); }

/* ---------- Guide ---------- */
.depth { position: relative; background: #000; padding: 40px var(--gutter) 140px; overflow: hidden; }
.depth-field { position: relative; height: clamp(170px, 22vw, 300px); max-width: 1300px; margin: 0 auto; overflow: hidden; contain: paint; }
.chip-ch {
  position: absolute; left: var(--x); top: var(--y);
  width: calc(70px + var(--z) * 150px); aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: calc(10px + var(--z) * 8px); opacity: calc(.3 + var(--z) * .6);
}
.depth-copy { position: relative; z-index: 2; padding: 36px 0 56px; }
.depth-copy .h2 { max-width: 16ch; }
.epg { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; padding: 18px; border-radius: var(--r-card); background: rgba(18,29,56,.75); border: 1px solid rgba(255,255,255,.08); }
.epg-times, .epg-row { display: grid; grid-template-columns: 190px 1fr; gap: 10px; }
.epg-times { grid-template-columns: 190px repeat(4, 1fr); font-size: 12px; color: var(--mist); padding-bottom: 10px; }
.epg-row { margin-top: 8px; align-items: center; }
.epg-ch { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.epg-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.epg-track i { grid-column: calc(var(--s) + 1) / span var(--w); font-style: normal; font-size: 13px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.07); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.epg-track i.hot { background: linear-gradient(90deg, rgba(47,168,240,.35), rgba(47,168,240,.12)); border: 1px solid rgba(47,168,240,.45); }
.epg-track i.rem { background: rgba(209,184,138,.16); color: #f3e2bf; }
/* The now-line spans the programme columns; it creeps along with a transform in container units */
.now-wrap { position: absolute; top: 12px; bottom: 12px; left: calc(18px + 200px); right: 18px; container-type: inline-size; pointer-events: none; }
.now-line { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; border-radius: 2px; background: var(--live); box-shadow: 0 0 12px var(--live); transform: translateX(32cqw); }
@media (prefers-reduced-motion: no-preference) {
  .now-line { animation: creep 90s linear infinite alternate; }
  .depth.is-paused .now-line { animation-play-state: paused; }
}
@keyframes creep { from { transform: translateX(32cqw); } to { transform: translateX(72cqw); } }

/* ---------- Playlists + dial ---------- */
.playlists { background: #000; padding: 40px var(--gutter) 140px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; max-width: 1400px; margin: 0 auto; }
.pl-demo { margin-top: 36px; max-width: 420px; padding: 18px; border-radius: var(--r-card); background: linear-gradient(170deg, var(--raised), var(--navy)); border: 1px solid rgba(255,255,255,.08); }
.pl-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: rgba(0,0,0,.3); font-size: 13px; }
.pl-tabs span { flex: 1; text-align: center; padding: 8px; border-radius: 9px; color: var(--mist); }
.pl-tabs .on { background: rgba(255,255,255,.12); color: var(--ink); font-weight: 600; }
.pl-name { display: flex; align-items: center; gap: 10px; margin: 18px 4px 10px; font-size: 18px; }
.pl-demo dl { margin: 0; border-top: 1px solid rgba(255,255,255,.08); }
.pl-demo dl div { display: flex; justify-content: space-between; padding: 10px 4px; font-size: 14px; }
.pl-demo dt { color: var(--mist); } .pl-demo dd { margin: 0; font-weight: 600; }
.dial-title { font-family: var(--display); font-size: 26px; letter-spacing: -.02em; margin-bottom: 18px; }
.dial { list-style: none; border-top: 1px solid rgba(255,255,255,.12); }
.dial li { display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; padding: 16px 6px; border-bottom: 1px solid rgba(255,255,255,.12); }
.dn { grid-row: span 2; font-family: var(--display); font-weight: 600; color: var(--gold); font-variant-numeric: tabular-nums; padding-top: 2px; }
.dial b { font-weight: 600; font-size: 18px; }
.dd { color: var(--mist); font-size: 15px; }

/* ---------- Devices ---------- */
.devices { background: #000; padding: 40px var(--gutter) 130px; max-width: 1500px; margin: 0 auto; }
.device-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.device { display: block; padding: 22px; border-radius: var(--r-card); text-decoration: none; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); transition: background-color .3s, border-color .3s; }
.device:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }
.device h3 { font-family: var(--display); font-size: 24px; letter-spacing: -.02em; margin: 22px 0 6px; }
.device p { color: var(--mist); font-size: 15px; }
.device .more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--aqua); text-decoration: underline; text-underline-offset: 3px; }
.glyph { height: 120px; display: flex; align-items: flex-end; }
.glyph img { border: 2px solid rgba(238,242,255,.7); object-fit: cover; background: var(--navy); }
.g-tv img { width: 170px; height: 100px; border-radius: 10px; }
.g-phone img { width: 54px; height: 110px; border-radius: 14px; }
.g-pad img { width: 100px; height: 120px; border-radius: 12px; }
.g-mac img { width: 160px; height: 100px; border-radius: 10px 10px 4px 4px; border-bottom-width: 8px; }

/* ---------- Community ---------- */
.community { margin: 0 12px; padding: 90px clamp(24px, 6vw, 96px); border-radius: var(--r-panel); background: radial-gradient(70% 90% at 90% 10%, rgba(242,138,46,.35), transparent 60%), linear-gradient(150deg, #1b2a66, var(--navy) 70%); }
.community .body { color: color-mix(in oklab, var(--ink) 82%, transparent); }
.community .actions { margin-top: 30px; }

/* ---------- FAQ ---------- */
.faq { background: #000; padding: 130px var(--gutter) 130px; max-width: 980px; margin-inline: auto; }
.faq .h2 { margin-bottom: 32px; }
.faq-more { margin-top: 32px; }

/* ---------- Finale ---------- */
.finale {
  position: relative; margin: 0 12px; min-height: 86svh; border-radius: var(--r-panel); overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 80% at 85% 40%, rgba(47,168,240,.55), transparent 60%), radial-gradient(60% 70% at 10% 100%, rgba(242,138,46,.45), transparent 60%), linear-gradient(160deg, #241067, #0a1226 70%);
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
}
/* The app's opening animation: three ribbons coil into the icon, which springs out with a shockwave */
.launch { position: relative; grid-column: 2; grid-row: 1; aspect-ratio: 1; width: min(100%, 600px); justify-self: center; display: grid; place-items: center; }
.launch-ribbons {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent); mask-image: radial-gradient(closest-side, #000 62%, transparent);
}
.launch-mark { width: 42%; aspect-ratio: 1; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 60px -20px rgba(0,0,0,.6); }
@media (prefers-reduced-motion: no-preference) { .launch-mark.is-sweeping::after { animation: mark-sweep .6s linear both; } }
.finale-copy { grid-column: 1; grid-row: 1; position: relative; z-index: 2; padding: 80px clamp(24px, 5vw, 80px); display: grid; gap: 22px; justify-items: start; max-width: 640px; }
.finale-h { font-size: clamp(48px, 7vw, 104px); }
.fine { font-size: 13px; color: color-mix(in oklab, var(--ink) 72%, transparent); }
.finale + .foot, main + .foot { margin-top: -40px; padding-top: 140px; }

/* ---------- Scroll-linked motion (compositor only, where supported) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .flow-words { animation: words linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .chip-ch { animation: float linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@keyframes words { from { transform: translate3d(12vw, 0, 0); } to { transform: translate3d(-40vw, 0, 0); } }
@keyframes float { from { transform: translate3d(0, calc(var(--z) * 36px), 0); } to { transform: translate3d(0, calc(var(--z) * -36px), 0); } }

/* ---------- Smaller screens ---------- */
@media (max-width: 1100px) {
  .specs { grid-template-columns: 1fr; }
  .device-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 104px; gap: 48px; }
  .tv-card { transform: none; }
  .setup, .ask, .playlists, .player-grid { grid-template-columns: 1fr; gap: 44px; }
  .setup { padding-top: 110px; }
  .beyond-h { grid-template-columns: 1fr auto; }
  .beyond-h .b-bottom { grid-column: 1 / -1; }
  .tiles { flex-direction: column; height: auto; }
  .tile, .tile.is-open { flex: none; min-height: 420px; cursor: default; justify-content: flex-start; }
  .tile .tile-body { opacity: 1; transform: none; pointer-events: auto; }
  .tile .tile-name { display: none; }
  .epg-times, .epg-row { grid-template-columns: 120px 1fr; }
  .epg-times { grid-template-columns: 120px repeat(4, 1fr); }
  .now-wrap { left: calc(18px + 130px); }
  .finale { grid-template-columns: 1fr; align-items: start; }
  .launch { grid-column: 1; grid-row: 2; width: min(90%, 420px); margin-bottom: 30px; }
  .finale-copy { padding-bottom: 0; }
  .rail-btns { display: none; }
}
@media (max-width: 560px) {
  .device-row { grid-template-columns: 1fr; }
  .epg { padding: 12px; }
  .epg-times, .epg-row { grid-template-columns: 92px 1fr; gap: 6px; }
  .epg-times { grid-template-columns: 92px repeat(4, 1fr); }
  .now-wrap { left: calc(12px + 98px); right: 12px; }
  .epg-ch { font-size: 12px; }
  .epg-track i { padding: 10px 8px; font-size: 11px; }
  .community { padding: 64px 22px; }
  .tile, .tile.is-open { min-height: 460px; }
  .seg { font-size: 12px; }
}
