/* ==========================================================================
   styles-tv.css — Corpse TV (#page-tv), the Lot's live channels.
   A CRT set in the street's colours: ink bezel, scanlines, a burst of static
   between channels, a green on-screen channel number, and a lower-third bar
   with what is on now and next. Scoped to .tv.
   ========================================================================== */

.tv{--tv-green:#7dff9a}
.tv *{box-sizing:border-box}
.tv-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 14px}
.tv-title{margin:4px 0 0;font:400 clamp(30px,4.4vw,52px)/1 var(--display);color:var(--text-hi);text-shadow:3px 3px 0 var(--ink),0 0 24px rgba(82,230,255,.35)}
.tv-lede{margin:8px 0 0;max-width:70ch;font-size:14px;color:var(--dim)}
.tv-count{margin:0;font:600 12px/1 var(--sans);color:var(--dimmer)}

/* ------------------------------- the set -------------------------------- */
.tv-set{border-radius:22px;padding:12px;background:linear-gradient(160deg,#2c1f35,#140e1a);border:2px solid var(--ink);
  box-shadow:0 0 0 4px #221829,0 24px 60px -24px rgba(0,0,0,.9)}
.tv-screenwrap{position:relative;aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:#000;border:2px solid var(--ink);
  box-shadow:inset 0 0 60px rgba(0,0,0,.9)}
.tv-screen,.tv-screen > *{position:absolute;inset:0;width:100%;height:100%}
.tv-screen iframe,.tv-video,.tv-frame{border:0;width:100%;height:100%;background:#000;object-fit:contain}
/* no fake scanlines over the picture: real video looks worse under them */
.tv-static{position:absolute;inset:-50%;z-index:4;pointer-events:none;opacity:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");background-size:160px}
.tv-static.is-on{animation:tvStatic .55s steps(6) both}
@keyframes tvStatic{0%{opacity:1;transform:translate(0,0)}20%{transform:translate(-8%,4%)}40%{transform:translate(6%,-6%)}60%{opacity:.9;transform:translate(-4%,8%)}80%{opacity:.5;transform:translate(8%,2%)}100%{opacity:0;transform:translate(0,0)}}
.tv-osd{position:absolute;top:14px;right:18px;z-index:5;display:flex;flex-direction:column;align-items:flex-end;gap:2px;pointer-events:none;
  opacity:0;transition:opacity .3s;font:400 13px/1.1 var(--display);color:var(--tv-green);text-shadow:0 0 8px rgba(125,255,154,.8),2px 2px 0 #000}
.tv-osd.is-on{opacity:1}
.tv-osd b{font-size:clamp(30px,5vw,54px);font-weight:400;letter-spacing:.04em}
.tv-osd span{max-width:40ch;text-align:right}
.tv-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;padding:20px;
  background:radial-gradient(circle at 50% 40%,#2c1f35,#000);color:var(--text)}
.tv-card b{font:400 clamp(22px,3vw,34px)/1.1 var(--display);color:var(--text-hi)}
.tv-card p{margin:0;max-width:44ch;color:var(--dim)}

/* --------------------------------- bar ---------------------------------- */
.tv-bar{margin-top:10px;border-radius:14px;background:var(--ink);border:1px solid #2a1f33;overflow:hidden}
.tv-prog{height:4px;background:#241a2c}
.tv-prog i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--arcade),var(--neon));transition:width 1s linear}
.tv-barin{display:flex;align-items:center;gap:12px;padding:10px 12px;flex-wrap:wrap}
.tv-info{flex:1 1 300px;min-width:0}
.tv-chname{margin:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap;font:400 14px/1.2 var(--display);color:var(--dusk)}
.tv-chname b{padding:2px 7px;border-radius:6px;background:var(--neon);color:var(--ink);font-weight:400}
.tv-now{margin:5px 0 0;font-size:14px;color:var(--text-hi);display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;min-width:0}
.tv-now b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.tv-now small{color:var(--dimmer)}
.tv-time{margin-left:auto;font:600 12px/1 var(--sans);font-variant-numeric:tabular-nums;color:var(--dim)}
.tv-next{margin:3px 0 0;font-size:12.5px;color:var(--dimmer);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tv-next b{color:var(--dim);font-weight:600}
.tv-dim{color:var(--dimmer)}
.tv-bad{color:var(--down,#ff7a8a)}
.tv-tag{padding:1px 7px;border-radius:999px;font:700 10px/1.5 var(--sans);font-style:normal;letter-spacing:.04em;text-transform:uppercase;color:var(--beetle,#e9c46a);border:1px solid rgba(233,196,106,.5)}
.tv-tag.is-live{color:#ff6b6b;border-color:rgba(255,107,107,.55)}
.tv-tag.is-room{color:var(--arcade);border-color:rgba(82,230,255,.5)}
.tv-remote{display:flex;gap:6px;flex:0 0 auto}
.tv-btn{min-height:42px;min-width:46px;padding:0 13px;border-radius:12px;border:2px solid var(--ink);background:var(--night-3,#2c1f35);color:var(--text-hi);
  font:400 13px/1 var(--display);cursor:pointer;box-shadow:0 3px 0 #000;transition:transform .12s var(--pop)}
.tv-btn:hover{background:#3a2a45}
.tv-btn:active{transform:translateY(3px);box-shadow:0 0 0 #000}
#tvUp,#tvDown{background:var(--dusk);color:var(--ink)}
.tv-hint{margin:8px 2px 0;font-size:12px;color:var(--dimmer)}
.tv-hint kbd{padding:1px 6px;border-radius:5px;border:1px solid var(--line);background:var(--night-2,#221829);font:600 11px/1.4 var(--sans);color:var(--text)}

/* -------------------------------- guide --------------------------------- */
.tv-guidewrap{margin-top:22px}
.tv-guidehead{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.tv-guidehead h2{margin:0;font:400 20px/1 var(--display);color:var(--text-hi)}
.tv-q{flex:0 1 300px;min-width:0}
.tv-sections{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:12px 0;padding-bottom:3px}
.tv-sections::-webkit-scrollbar{display:none}
.tv-sections button{flex:0 0 auto;min-height:34px;padding:0 12px;border-radius:999px;border:1px solid var(--line);background:var(--night-2,#221829);
  color:var(--dim);font:600 12.5px/1 var(--sans);cursor:pointer}
.tv-sections button.is-on{background:var(--dusk);color:var(--ink);border-color:var(--ink)}
.tv-sec{margin:16px 0 6px;font:400 12px/1 var(--display);letter-spacing:.06em;color:var(--dusk)}
.tv-rows{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:3px}
.tv-row{width:100%;display:grid;grid-template-columns:40px minmax(150px,240px) minmax(0,1fr);align-items:center;gap:12px;min-height:48px;padding:6px 12px;
  border-radius:12px;border:2px solid transparent;background:rgba(255,255,255,.03);color:var(--text);text-align:left;font:500 13px/1.35 var(--sans);cursor:pointer}
.tv-row:hover{background:rgba(168,155,214,.10);border-color:var(--line)}
.tv-row.is-on{background:rgba(243,182,198,.12);border-color:var(--dusk)}
.tv-num{font:400 14px/1 var(--display);color:var(--tv-green);text-shadow:0 0 6px rgba(125,255,154,.45)}
.tv-rowname{font-weight:600;color:var(--text-hi);display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.tv-rownow{color:var(--dim);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tv-rownow b{color:var(--text);font-weight:600}
.tv-rownow small{color:var(--dimmer)}
.tv-row:focus-visible,.tv-btn:focus-visible,.tv-sections button:focus-visible{outline:none;box-shadow:var(--ring)}

/* fullscreen: the set fills the screen, the bar sits on the picture */
.tv-set:fullscreen{padding:0;border-radius:0;display:flex;flex-direction:column;background:#000}
.tv-set:fullscreen .tv-screenwrap{flex:1 1 auto;aspect-ratio:auto;border-radius:0;border:0}
.tv-set:fullscreen .tv-bar{margin:0;border-radius:0}

@media (max-width:600px){
  .tv-set{padding:6px;border-radius:16px}
  .tv-screenwrap{border-radius:12px}
  .tv-remote{width:100%}
  .tv-btn{flex:1 1 0}
  .tv-row{grid-template-columns:32px minmax(0,1fr);row-gap:2px}
  .tv-rownow{grid-column:2;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .tv-hint{display:none}
}
@media (prefers-reduced-motion:reduce){ .tv-static.is-on{animation:none} }
html.is-calm .tv-static.is-on{animation:none}

@media (max-width:600px){ .tv-lede{display:none} .tv-head{margin-bottom:10px} }

/* ---- ZomBeGotchi: a live pet from zombegotchi.xyz in the Horde panel ---- */
.zg-live{margin:18px 0;padding:14px;border-radius:18px;background:#0b0d0b;border:2px solid var(--ink)}
.zg-live[hidden]{display:none}
.zg-livehead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.zg-livehead .kicker{margin:0}
.zg-liveframe{position:relative;width:100%;max-width:520px;margin:0 auto;aspect-ratio:9/16;max-height:78dvh;border-radius:14px;overflow:hidden;background:#060806}
.zg-liveframe iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* ------------------------- the guide, as a TV grid ------------------------ */
.tv-guide{--tv-chw:210px}
.tv-grid{position:relative;max-height:72dvh;overflow:auto;border-radius:16px;border:2px solid var(--ink);background:#120c17;overscroll-behavior:contain;scrollbar-width:thin}
.tv-ghead{position:sticky;top:0;z-index:4;display:flex;width:calc(var(--tv-chw) + var(--tv-w));background:#1d1424;border-bottom:2px solid var(--ink)}
.tv-gcorner{position:sticky;left:0;z-index:5;flex:0 0 var(--tv-chw);padding:10px 12px;background:#1d1424;border-right:2px solid var(--ink);
  font:400 12px/1 var(--display);color:var(--dusk);letter-spacing:.04em}
.tv-gtimes{display:flex}
.tv-tick{flex:0 0 auto;padding:10px 8px;border-left:1px solid #2c2035;font:700 12px/1 var(--sans);color:var(--text);font-variant-numeric:tabular-nums}
.tv-gbody{position:relative;width:calc(var(--tv-chw) + var(--tv-w))}
.tv-gsec{position:sticky;left:0;width:max-content;padding:12px 12px 5px;font:400 11px/1 var(--display);letter-spacing:.07em;color:var(--dusk)}
.tv-grow{display:flex;min-height:54px;border-bottom:1px solid #241a2c;cursor:pointer}
.tv-grow:hover .tv-gch,.tv-grow:focus-visible .tv-gch{background:#2a1d33}
.tv-grow.is-on .tv-gch{background:var(--dusk);color:var(--ink)}
.tv-grow.is-on .tv-gch b{color:var(--neon-dk,#c22d7c);text-shadow:none}
.tv-grow:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--arcade)}
.tv-gch{position:sticky;left:0;z-index:2;flex:0 0 var(--tv-chw);display:flex;align-items:center;gap:10px;padding:6px 12px;
  background:#1a1220;border-right:2px solid var(--ink);color:var(--text-hi);font:600 13px/1.25 var(--sans)}
.tv-gch b{flex:0 0 30px;font:400 14px/1 var(--display);color:var(--tv-green);text-shadow:0 0 6px rgba(125,255,154,.45)}
.tv-gch > span{min-width:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.tv-gline{position:relative;flex:0 0 auto;display:flex;overflow:hidden}
.tv-cell{flex:0 0 auto;display:flex;flex-direction:column;justify-content:center;gap:2px;min-width:0;padding:6px 9px;overflow:hidden;
  border-left:1px solid #2c2035;background:rgba(255,255,255,.025);color:var(--dim);font:500 12.5px/1.25 var(--sans)}
.tv-cell b{font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tv-cell small{font-size:11px;color:var(--dimmer);white-space:nowrap}
.tv-cell.is-now{background:rgba(82,230,255,.09)}
.tv-cell.is-now b{color:var(--text-hi)}
.tv-cell.is-live b{color:#ff8b8b}
.tv-grow:hover .tv-cell{background:rgba(168,155,214,.08)}
.tv-grow:hover .tv-cell.is-now{background:rgba(82,230,255,.14)}
.tv-nowline{position:absolute;top:0;bottom:0;width:2px;background:#ff4f6d;box-shadow:0 0 8px #ff4f6d;z-index:3;pointer-events:none}
.tv-more{display:flex;margin:12px auto 0}
@media (max-width:600px){
  .tv-guide{--tv-chw:132px}
  .tv-gch{gap:6px;padding:6px 8px;font-size:12px}
  .tv-gch b{flex-basis:24px;font-size:12px}
  .tv-grid{max-height:64dvh}
}

/* ------------------------------ on demand -------------------------------- */
.tv-modes{display:inline-flex;gap:3px;padding:3px;margin:0 0 12px;border-radius:13px;background:var(--ink);border:1px solid #2a1f33}
.tv-modes button{min-height:38px;padding:0 16px;border:0;border-radius:10px;background:transparent;color:var(--dim);font:600 13.5px/1 var(--sans);cursor:pointer}
.tv-modes button.is-on{background:var(--dusk);color:var(--ink)}
.tv-backlive{background:#ff4f6d!important;color:#fff!important}
.tv-dfilters{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}
.tv-dfilters button{min-height:34px;padding:0 12px;border-radius:999px;border:1px solid var(--line);background:var(--night-2,#221829);color:var(--dim);font:600 12.5px/1 var(--sans);cursor:pointer}
.tv-dfilters button i{font-style:normal;color:var(--dimmer);margin-left:3px}
.tv-dfilters button.is-on{background:var(--dusk);color:var(--ink);border-color:var(--ink)}
.tv-dfilters button.is-on i{color:#6b3d52}
.tv-dgrid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.tv-dcard{width:100%;display:flex;flex-direction:column;gap:6px;padding:0;border:0;background:none;text-align:left;color:var(--text);cursor:pointer}
.tv-dart{position:relative;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#241a2c;border:2px solid var(--ink)}
.tv-dart img{width:100%;height:100%;object-fit:cover;transition:transform .25s var(--glide,ease)}
.tv-dart i{position:absolute;right:6px;bottom:6px;padding:2px 6px;border-radius:6px;background:rgba(0,0,0,.8);font:600 11px/1.3 var(--sans);font-style:normal;color:#fff}
.tv-dcard:hover .tv-dart{border-color:var(--dusk)}
.tv-dcard:hover img{transform:scale(1.04)}
.tv-dcard:focus-visible{outline:none}
.tv-dcard:focus-visible .tv-dart{box-shadow:var(--ring)}
.tv-dcard b{font:600 13px/1.3 var(--sans);color:var(--text-hi);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tv-dcard small{font-size:11.5px;color:var(--dimmer);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:600px){ .tv-dgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px} }

/* ================================ lite mode ============================== */
/* html.is-lite is set by js/lite.js on a Fire TV, other smart TVs, weak
   devices, or a page that measures itself under ~40 fps. Everything still
   works and sound stays on; only the expensive look goes: blur behind
   panels, the film grain, glows, moving animations and slide-ins. */
html.is-lite *,html.is-lite *::before,html.is-lite *::after{
  animation:none!important;transition:none!important;scroll-behavior:auto!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  text-shadow:none!important;will-change:auto!important;
}
html.is-lite body::before{display:none!important}                 /* film grain */
html.is-lite .site-bg-img{-webkit-mask-image:none;mask-image:none;filter:none!important}
html.is-lite .site-bg.is-photo{opacity:.18}
html.is-lite .site-bg-scrim{background:rgba(13,13,15,.55)}
html.is-lite .brain-pop,html.is-lite .ar-scan,html.is-lite .hs-ad{display:none!important}
/* blur is gone, so panels that relied on it go solid to stay readable */
html.is-lite .topbar,html.is-lite .wallet-strip,html.is-lite .panel{background:#151517}
html.is-lite [class*="glow"],html.is-lite .btn-primary,html.is-lite .chip-cta,html.is-lite .fuse i,html.is-lite .brand .mark{box-shadow:none!important}

/* TV remote: a focus ring big enough to see from the sofa */
html.is-tv :focus-visible{outline:3px solid #ff5fa2!important;outline-offset:3px!important}

/* ============================ the Lot is a TV ============================ */
/* The Lot's old rooms are now channels and on-demand shelves inside Corpse
   TV, so the zone drops its room menu and heading and gives the whole width
   to the set, sized so the picture and its bar fit on one screen. */
.zone-lot.is-tvonly{display:block}
.zone-lot.is-tvonly > .zone-head,.zone-lot.is-tvonly > .roombar{display:none}
.zone-lot.is-tvonly .rooms{min-width:0}
.zone-lot.is-tvonly .tv-head{margin-bottom:10px}
.zone-lot.is-tvonly .tv-lede{display:none}
.zone-lot.is-tvonly .tv-title{font-size:clamp(24px,3vw,36px)}
.zone-lot.is-tvonly .tv-head{align-items:center}
.zone-lot.is-tvonly .tv-setslot{max-width:min(100%,calc((100vh - 250px) * 16 / 9 + 28px));margin:0 auto}
.zone-lot.is-tvonly .tv-hint{text-align:center}

/* ------------------- guide screen: the picture docks on top ------------------ */
/* Watch shows the big set and the three screen buttons. TV guide and On
   demand dock the same set into a band at the top (picture left, what is on
   and the remote right) that stays put while the list scrolls under it. Part
   of the page, never floating over it; the player is resized, not reloaded. */
.tv:not(.is-guide) .tv-guidewrap > :not(.tv-modes){display:none}
.tv:not(.is-guide) .tv-guidewrap{margin-top:14px}
.tv:not(.is-guide) .tv-modes{justify-content:center}
.tv-watch{display:none}
.tv.is-guide .tv-head,.tv.is-guide .tv-hint,.tv.is-guide .fineprint{display:none}
.tv.is-guide .tv-setslot{position:sticky;top:0;z-index:6;max-width:none;margin:0;padding:6px 0 10px;background:var(--bg,#0d0d0f);
  border-bottom:1px solid var(--line)}
.tv.is-guide .tv-set{display:grid;grid-template-columns:minmax(0,min(44%,calc(34vh * 16 / 9))) minmax(0,1fr);gap:12px;align-items:stretch;padding:8px;border-radius:18px}
.tv.is-guide .tv-bar{margin:0;display:flex;flex-direction:column}
.tv.is-guide .tv-barin{flex:1 1 auto;flex-direction:column;align-items:stretch;justify-content:space-between}
.tv.is-guide .tv-info{flex:0 1 auto}
.tv.is-guide .tv-now b{white-space:normal}
.tv.is-guide .tv-next{white-space:normal}
.tv.is-guide .tv-remote{flex-wrap:wrap}
.tv.is-guide .tv-watch{display:inline-flex;align-items:center;background:var(--neon);color:var(--ink)}
.tv.is-guide #tvGuideBtn{display:none}
.tv.is-guide .tv-guidewrap{margin-top:12px}
.tv.is-guide .tv-set:fullscreen{display:flex}
@media (max-width:700px){
  .tv.is-guide .tv-set{grid-template-columns:1fr;gap:6px;padding:4px}
  .tv.is-guide .tv-next,.tv.is-guide .tv-chname + .tv-now small{display:none}
  .tv.is-guide .tv-barin{padding:6px 8px;gap:6px}
}
.zone-lot.is-guide-on{padding-top:0}

/* ------------------------------ Alexa remote ----------------------------- */
.tv-alexa{margin:12px auto 0;max-width:720px;border-radius:16px;border:2px solid var(--ink);background:linear-gradient(160deg,#1d2f3a,#140e1a);padding:16px 18px}
.tv-alexa-in{display:grid;gap:6px;justify-items:center;text-align:center}
.tv-alexa-k{margin:0;font:400 12px/1 var(--display);letter-spacing:.06em;color:var(--arcade)}
.tv-alexa-code{margin:2px 0;font:400 clamp(34px,6vw,52px)/1 var(--display);letter-spacing:.08em;color:var(--tv-green);text-shadow:0 0 10px rgba(125,255,154,.45)}
.tv-alexa-say{margin:0;font-size:15px;color:var(--text-hi)}
.tv-alexa-st{margin:0;font-size:12px;color:var(--dimmer)}
.tv-alexa-st.is-good{color:var(--up,#8fa88a)}
.tv-alexa-help{margin:4px 0;max-width:60ch;font-size:12.5px;color:var(--dim)}
.tv-alexabtn{background:#1d2f3a}
.tv.is-guide .tv-alexa{display:none}

/* ============================ On demand: streaming =========================== */
/* The best bits of the big services: a billboard on top (Netflix, Prime),
   rows of 16:9 posters that slide sideways (all of them), a ranked row with
   big numbers (Netflix), My List and Recently watched (Prime, Plex, Crave),
   "See all" on each row (Plex). Remote-friendly: every card is a button and
   ◀ ▶ walk along a row. */
.tv-hero{position:relative;min-height:clamp(240px,34vw,420px);border-radius:20px;overflow:hidden;margin:4px 0 14px;border:2px solid var(--ink);background:#000;isolation:isolate}
.tv-heroart{position:absolute;inset:0;z-index:-1}
.tv-heroart img{width:100%;height:100%;object-fit:cover;object-position:center 30%}
.tv-heroart::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,6,10,.96) 0%,rgba(8,6,10,.75) 38%,rgba(8,6,10,.1) 75%),linear-gradient(0deg,rgba(8,6,10,.9) 0%,rgba(8,6,10,0) 45%)}
.tv-herotext{position:relative;display:flex;flex-direction:column;justify-content:flex-end;gap:8px;min-height:inherit;max-width:min(560px,62%);padding:clamp(18px,3vw,34px)}
.tv-herok{margin:0;font:400 12px/1 var(--display);letter-spacing:.08em;color:var(--neon)}
.tv-herotext h3{margin:0;font:400 clamp(26px,3.6vw,46px)/1.05 var(--display);color:#fff;text-shadow:2px 2px 0 #000}
.tv-herometa{margin:0;font:600 13px/1.4 var(--sans);color:#e8e2ef}
.tv-herofrom{margin:0;font-size:13px;color:var(--dim)}
.tv-herobtns{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}
.tv-play,.tv-listbtn{min-height:46px;padding:0 22px;border-radius:10px;font:700 15px/1 var(--sans);cursor:pointer;border:2px solid transparent}
.tv-play{background:#fff;color:#0d0d0f}
.tv-play:hover{background:#e6e6e6}
.tv-listbtn{background:rgba(255,255,255,.14);color:#fff;border-color:rgba(255,255,255,.35)}
.tv-listbtn[aria-pressed="true"]{background:rgba(125,255,154,.18);border-color:var(--tv-green)}
.tv-play:focus-visible,.tv-listbtn:focus-visible{outline:none;box-shadow:var(--ring)}
.tv-herodots{display:flex;gap:6px;margin-top:10px}
.tv-herodots button{width:22px;height:5px;padding:0;border:0;border-radius:3px;background:rgba(255,255,255,.3);cursor:pointer}
.tv-herodots button.is-on{background:#fff;width:34px}
.tv-rail{margin:18px 0 6px}
.tv-railhead{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0 2px 8px}
.tv-railhead h3{margin:0;font:700 17px/1.2 var(--sans);color:var(--text-hi)}
.tv-railmore{border:0;background:none;color:var(--dim);font:600 13px/1 var(--sans);cursor:pointer;padding:6px}
.tv-railmore:hover,.tv-railmore:focus-visible{color:var(--neon);outline:none}
.tv-railwrap{position:relative}
.tv-railrow{list-style:none;margin:0;padding:4px 2px 8px;display:grid;grid-auto-flow:column;grid-auto-columns:clamp(160px,17vw,250px);gap:12px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;overscroll-behavior-x:contain}
.tv-railrow::-webkit-scrollbar{display:none}
.tv-rcell{scroll-snap-align:start;min-width:0}
.tv-railbtn{position:absolute;top:0;bottom:44px;z-index:3;width:42px;border:0;font:400 34px/1 var(--sans);color:#fff;cursor:pointer;opacity:0;transition:opacity .2s}
.tv-railbtn.is-prev{left:-2px;background:linear-gradient(90deg,rgba(13,13,15,.9),rgba(13,13,15,0));border-radius:12px 0 0 12px}
.tv-railbtn.is-next{right:-2px;background:linear-gradient(270deg,rgba(13,13,15,.9),rgba(13,13,15,0));border-radius:0 12px 12px 0}
.tv-railwrap:hover .tv-railbtn{opacity:1}
.tv-rail .tv-dcard:hover .tv-dart,.tv-rail .tv-dcard:focus-visible .tv-dart{transform:scale(1.05);border-color:var(--dusk)}
.tv-rail .tv-dart{transition:transform .2s var(--glide,ease)}
.tv-rail.is-ranked .tv-railrow{grid-auto-columns:clamp(200px,22vw,300px)}
.tv-rail.is-ranked .tv-dcard{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:0;align-items:end}
.tv-rank{grid-row:1/4;align-self:center;font:400 clamp(58px,6vw,92px)/.8 var(--display);color:#0d0d0f;-webkit-text-stroke:2px var(--dusk);margin-right:-10px;z-index:1}
.tv-rail.is-ranked .tv-dart,.tv-rail.is-ranked .tv-dcard b,.tv-rail.is-ranked .tv-dcard small{grid-column:2}
.tv-dresults{margin:0 2px 10px;color:var(--dim);font-size:13px}
html.is-lite .tv-rail .tv-dcard:hover .tv-dart,html.is-lite .tv-rail .tv-dcard:focus-visible .tv-dart{transform:none}
@media (hover:none){ .tv-railbtn{display:none} }
@media (max-width:700px){
  .tv-hero{min-height:300px}
  .tv-herotext{max-width:100%}
  .tv-heroart::after{background:linear-gradient(0deg,rgba(8,6,10,.97) 15%,rgba(8,6,10,.35) 70%,rgba(8,6,10,.1))}
  .tv-railrow{grid-auto-columns:62vw;gap:10px}
  .tv-rail.is-ranked .tv-railrow{grid-auto-columns:72vw}
}
.tv-herotext h3{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.tv-herotext h3.is-long{font-size:clamp(22px,2.4vw,32px)}
.tv-dfilters{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:3px}
.tv-dfilters::-webkit-scrollbar{display:none}
.tv-dfilters button{flex:0 0 auto}
@media (max-width:700px){
  .tv.is-guide .tv-remote{flex-wrap:nowrap}
  .tv.is-guide .tv-btn{min-height:36px;padding:0 8px;font-size:12px;white-space:nowrap}
  .tv.is-guide .tv-alexabtn,.tv.is-guide #tvFull{display:none}
}

/* ======================= On demand: streaming polish ======================= */
.tv-herobadge{display:inline-block;margin-right:8px;padding:3px 7px;border-radius:5px;background:var(--neon);color:var(--ink);font:400 10px/1 var(--display);letter-spacing:.06em;vertical-align:1px}
.tv-heroabout{margin:0;max-width:52ch;font-size:14px;line-height:1.5;color:#d9d2e2;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.tv-sep{color:rgba(255,255,255,.35)}
.tv-free{padding:1px 6px;border-radius:4px;border:1px solid rgba(125,255,154,.6);color:var(--tv-green);font:700 10.5px/1.4 var(--sans);letter-spacing:.06em}
/* the still drifts slowly like a trailer frame, and fades in once it has loaded */
.tv-heroart img,.tv-titleart img{opacity:0;transition:opacity .6s ease}
.tv-heroart img.is-in,.tv-titleart img.is-in{opacity:1}
.tv-heroart img.is-in{animation:tvKen 14s ease-out both}
@keyframes tvKen{from{transform:scale(1.02)}to{transform:scale(1.1) translate(-1.5%,-1%)}}
html.is-lite .tv-heroart img,html.is-lite .tv-titleart img{opacity:1}
/* buttons, the streaming way: solid white Play, glass secondary, round add */
.tv-ghostbtn{min-height:46px;padding:0 20px;border-radius:10px;border:2px solid rgba(255,255,255,.28);background:rgba(255,255,255,.12);color:#fff;font:700 15px/1 var(--sans);cursor:pointer;backdrop-filter:blur(6px)}
.tv-ghostbtn:hover{background:rgba(255,255,255,.22)}
.tv-roundbtn{width:46px;height:46px;border-radius:50%;border:2px solid rgba(255,255,255,.55);background:rgba(13,13,15,.45);color:#fff;font:400 24px/1 var(--sans);cursor:pointer;display:grid;place-items:center}
.tv-roundbtn[aria-pressed="true"]{border-color:var(--tv-green);color:var(--tv-green)}
.tv-roundbtn:hover{border-color:#fff}
.tv-play:focus-visible,.tv-ghostbtn:focus-visible,.tv-roundbtn:focus-visible,.tv-backbtn:focus-visible,.tv-linkbtn:focus-visible{outline:none;box-shadow:0 0 0 3px #0d0d0f,0 0 0 6px var(--neon)}
/* cards: lift, glow, play badge, progress */
.tv-dart{box-shadow:0 8px 22px -12px rgba(0,0,0,.9);background:linear-gradient(110deg,#221829 30%,#2e2238 50%,#221829 70%);background-size:220% 100%;animation:tvShim 1.4s linear infinite}
.tv-dart:has(img){animation:none}
@keyframes tvShim{to{background-position:-120% 0}}
.tv-dplay{position:absolute;left:50%;top:50%;width:46px;height:46px;margin:-23px 0 0 -23px;border-radius:50%;display:grid;place-items:center;background:rgba(13,13,15,.7);border:2px solid #fff;color:#fff;font-size:16px;opacity:0;transform:scale(.8);transition:opacity .18s,transform .18s}
.tv-dcard:hover .tv-dplay,.tv-dcard:focus-visible .tv-dplay{opacity:1;transform:scale(1)}
.tv-dcard:hover .tv-dart,.tv-dcard:focus-visible .tv-dart{border-color:var(--neon);box-shadow:0 14px 30px -12px rgba(0,0,0,.95),0 0 0 2px var(--neon)}
.tv-dprog{position:absolute;left:8px;right:8px;bottom:6px;height:4px;border-radius:2px;background:rgba(255,255,255,.25);overflow:hidden}
.tv-dprog span{display:block;height:100%;background:var(--neon)}
.tv-dprog ~ i,.tv-dart:has(.tv-dprog) i{bottom:14px}
.tv-skel{aspect-ratio:16/9;border-radius:12px;background:linear-gradient(110deg,#221829 30%,#2e2238 50%,#221829 70%);background-size:220% 100%;animation:tvShim 1.4s linear infinite}
html.is-lite .tv-skel,html.is-lite .tv-dart{animation:none}
.tv-rail .tv-railhead h3{font:800 18px/1.2 var(--sans);letter-spacing:-.01em}
/* the title page (Prime/Plex-style detail screen inside the page, not a pop-up) */
.tv-tpage{position:relative;min-height:clamp(320px,40vw,520px);border-radius:20px;overflow:hidden;border:2px solid var(--ink);background:#000;isolation:isolate;margin:4px 0 8px}
.tv-titleart{position:absolute;inset:0;z-index:-1}
.tv-titleart img{width:100%;height:100%;object-fit:cover;object-position:center 25%}
.tv-titleart::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,6,10,.97) 0%,rgba(8,6,10,.82) 42%,rgba(8,6,10,.15) 80%),linear-gradient(0deg,rgba(8,6,10,.95) 0%,rgba(8,6,10,0) 50%)}
.tv-titletext{position:relative;display:flex;flex-direction:column;justify-content:flex-end;gap:10px;min-height:inherit;max-width:min(620px,64%);padding:clamp(56px,5vw,64px) clamp(18px,3vw,36px) clamp(20px,3vw,34px)}
.tv-titletext h3{margin:0;font:400 clamp(28px,3.8vw,50px)/1.05 var(--display);color:#fff;text-shadow:2px 2px 0 #000;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.tv-titletext h3.is-long{font-size:clamp(22px,2.6vw,34px)}
.tv-titleabout{margin:4px 0 0;max-width:60ch;font-size:15px;line-height:1.55;color:#e2dbe9}
.tv-titleprog{width:min(320px,100%);height:5px;border-radius:3px;background:rgba(255,255,255,.22);overflow:hidden}
.tv-titleprog span{display:block;height:100%;background:var(--neon)}
.tv-titleleft{margin:-4px 0 0;font-size:12.5px;color:var(--dim)}
.tv-titlefacts{display:flex;flex-wrap:wrap;gap:8px 26px;margin:6px 0 0}
.tv-titlefacts div{display:flex;flex-direction:column;gap:2px}
.tv-titlefacts dt{font:700 10.5px/1 var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--dimmer)}
.tv-titlefacts dd{margin:0;font-size:13.5px;color:var(--text-hi)}
.tv-linkbtn{padding:0;border:0;background:none;color:var(--neon);font:600 13.5px/1.3 var(--sans);cursor:pointer;text-align:left}
.tv-linkbtn:hover{text-decoration:underline}
.tv-backbtn{position:absolute;top:14px;left:14px;z-index:2;min-height:38px;padding:0 14px;border-radius:999px;border:1px solid rgba(255,255,255,.3);background:rgba(13,13,15,.6);color:#fff;font:700 13px/1 var(--sans);cursor:pointer}
.tv-backbtn.is-inline{position:static}
.tv-gridhead{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:6px 2px 14px}
.tv-gridhead h3{margin:0;font:800 22px/1.2 var(--sans);color:var(--text-hi)}
.tv-gridhead p{margin:0;color:var(--dimmer);font-size:13px}
.tv-empty{padding:30px 0;text-align:center}
.tv-dgrid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:18px 14px}
@media (max-width:700px){
  .tv-tpage{min-height:460px}
  .tv-titletext{max-width:100%}
  .tv-titleart::after{background:linear-gradient(0deg,rgba(8,6,10,.98) 30%,rgba(8,6,10,.4) 75%,rgba(8,6,10,.15))}
  .tv-titleabout{font-size:14px}
  .tv-ghostbtn{padding:0 14px}
  .tv-dgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}
}

/* ===================== On demand: a full-screen streaming app ===================== */
/* No live picture docked on top: the browse screen gets the whole page, the
   menu sticks to the top while you scroll (Prime, Crave), and the billboard
   is tall and edge to edge (Netflix). Live TV pauses and comes back on Watch. */
.tv.is-demand .tv-setslot{display:none}
.tv.is-demand .tv-guidewrap{margin-top:0}
.tv.is-demand .tv-modes{position:sticky;top:0;z-index:9;display:flex;width:100%;margin:0 0 10px;padding:6px;border-radius:0 0 14px 14px;
  background:rgba(13,13,15,.94);border:0;border-bottom:1px solid var(--line);box-shadow:0 10px 24px -14px rgba(0,0,0,.9);backdrop-filter:blur(12px)}
.tv.is-demand .tv-modes::before{content:"CORPSE TV";align-self:center;margin:0 14px 0 8px;font:400 18px/1 var(--display);letter-spacing:.04em;color:var(--neon);text-shadow:0 0 14px rgba(255,95,162,.45)}
.tv.is-demand .tv-modes button{min-height:40px}
.tv.is-demand .tv-guidehead h2{display:none}
.tv.is-demand .tv-guidehead{justify-content:flex-end;margin-bottom:6px}
.tv.is-demand .tv-q{flex:0 1 360px}
.tv.is-demand .tv-hero{min-height:clamp(320px,min(68vh,46vw),640px);border-radius:22px}
.tv.is-demand .tv-hero .tv-herotext{max-width:min(620px,58%);padding:clamp(22px,4vw,56px)}
.tv.is-demand .tv-hero .tv-herotext h3{font-size:clamp(32px,4.6vw,64px)}
.tv.is-demand .tv-hero .tv-herotext h3.is-long{font-size:clamp(26px,3.2vw,44px)}
.tv.is-demand .tv-dfilters{margin-top:16px}
@media (max-width:700px){
  .tv.is-demand .tv-modes::before{display:none}
  .tv.is-demand .tv-modes button{flex:1 1 0;padding:0 8px}
  .tv.is-demand .tv-hero{min-height:440px}
  .tv.is-demand .tv-hero .tv-herotext{max-width:100%}
  .tv.is-demand .tv-q{flex:1 1 auto}
}

/* ======================= TV: the page itself scrolls ======================= */
/* Silk on a Fire TV gives a cursor; pushing it to the screen edge scrolls the
   PAGE, never a box inside it. The site normally scrolls each zone inside a
   locked panel, which that cursor cannot move. So on a TV the lock comes off:
   the zone grows to its full height and the browser page scrolls, with the
   top bar pinned. Boxes that scrolled on their own (the guide grid) do the
   same, and every row's ‹ › arrows stay visible for the cursor to click. */
html.is-tv,html.is-tv body{height:auto;overflow:visible}
html.is-tv body{min-height:100%;display:block}
html.is-tv #app{overflow:visible;flex:none;isolation:auto}
html.is-tv .zone{position:relative;inset:auto;overflow:visible;min-height:calc(100vh - var(--top-h))}
html.is-tv .zone.is-in-fwd,html.is-tv .zone.is-in-back{animation:none}
html.is-tv .topbar{position:sticky;top:0;z-index:50}
html.is-tv .tv-grid{max-height:none;overflow-y:visible;overflow-x:auto}
html.is-tv .tv.is-guide .tv-setslot,html.is-tv .tv.is-demand .tv-modes{top:var(--top-h)}
html.is-tv .tv-railbtn{opacity:1;width:56px;font-size:40px}
html.is-tv .tv-railwrap:hover .tv-railbtn{opacity:1}
/* bigger targets for a cursor driven by arrow keys */
html.is-tv .tv-btn,html.is-tv .tv-modes button,html.is-tv .tv-dfilters button{min-height:48px}
html.is-tv #page-tv,html.is-tv .tv-tpage,html.is-tv .tv-dfilters{scroll-margin-top:calc(var(--top-h) + 8px)}
/* every channel is listed: rows off screen cost nothing to draw */
.tv-grow{content-visibility:auto;contain-intrinsic-size:auto 54px}

/* ------------------------------- 18+ mode ------------------------------- */
.tv-adultbtn{display:none;min-height:38px;min-width:52px;padding:0 12px;border-radius:999px;border:1px solid var(--line);background:var(--night-2,#221829);
  color:var(--dim);font:700 13px/1 var(--sans);cursor:pointer}
.tv.is-guide .tv-adultbtn{display:inline-flex;align-items:center;justify-content:center}
.tv-adultbtn.is-on{background:#ff5f7a;border-color:#000;color:#1a0b10}
.tv-adultbtn:focus-visible{outline:none;box-shadow:var(--ring)}
.tv-age{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:20px;background:rgba(6,4,8,.82)}
.tv-age[hidden]{display:none}
.tv-age-in{max-width:460px;padding:24px;border-radius:18px;border:2px solid var(--ink);background:#1a1220;box-shadow:0 30px 80px -20px #000;color:var(--text)}
.tv-age-in h3{margin:0 0 10px;font:400 22px/1.1 var(--display);color:var(--text-hi)}
.tv-age-in p{margin:0 0 10px;font-size:14px;line-height:1.5;color:var(--dim)}
.tv-age-in p b{color:var(--text-hi)}
.tv-age-btns{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}

/* ------------------------------- series ------------------------------- */
.tv-epnow{margin:0;font-size:15px;color:#e8e2ef}
.tv-epnow b{color:var(--neon);font-weight:800;margin-right:6px}
.tv-epnow span{color:var(--dim)}
.tv-dcard.is-series .tv-dart::after{content:"";position:absolute;left:8%;right:8%;top:-6px;height:6px;border-radius:6px 6px 0 0;background:rgba(255,255,255,.14)}
.tv-eps{margin:18px 0 8px;padding:16px;border-radius:16px;background:rgba(255,255,255,.03);border:1px solid var(--line)}
.tv-epshead{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:0 0 12px}
.tv-epshead h3{margin:0;font:800 20px/1.2 var(--sans);color:var(--text-hi)}
.tv-seasons{display:flex;gap:6px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.tv-seasons::-webkit-scrollbar{display:none}
.tv-seasons button{flex:0 0 auto;min-height:38px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:var(--night-2,#221829);color:var(--dim);font:700 13px/1 var(--sans);cursor:pointer}
.tv-seasons button.is-on{background:#fff;color:#0d0d0f;border-color:#fff}
.tv-seasons button:focus-visible{outline:none;box-shadow:var(--ring)}
.tv-season1{margin:0;color:var(--dim);font:600 13px/1 var(--sans)}
.tv-eplist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.tv-ep{width:100%;display:grid;grid-template-columns:40px 176px minmax(0,1fr);align-items:center;gap:14px;padding:8px;border-radius:12px;border:2px solid transparent;
  background:transparent;color:var(--text);text-align:left;cursor:pointer}
.tv-ep:hover,.tv-ep:focus-visible{background:rgba(255,255,255,.06);border-color:var(--neon);outline:none}
.tv-ep.is-on{background:rgba(255,95,162,.1);border-color:rgba(255,95,162,.5)}
.tv-epnum{font:400 24px/1 var(--display);color:var(--dim);text-align:center;display:flex;flex-direction:column;gap:2px}
.tv-epnum small{font:600 10px/1 var(--sans);color:var(--dimmer)}
.tv-epart{position:relative;aspect-ratio:16/9;border-radius:8px;overflow:hidden;background:#241a2c}
.tv-epart img{width:100%;height:100%;object-fit:cover}
.tv-ep:hover .tv-dplay,.tv-ep:focus-visible .tv-dplay{opacity:1;transform:scale(1)}
.tv-eptext{display:flex;flex-direction:column;gap:4px;min-width:0}
.tv-eptext b{font:700 15px/1.3 var(--sans);color:var(--text-hi);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tv-eptext small{font-size:12.5px;color:var(--dimmer)}
.tv-eptext em{font-style:normal;color:var(--neon)}
@media (max-width:700px){ .tv-ep{grid-template-columns:28px 120px minmax(0,1fr);gap:10px} .tv-eptext b{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical} }
