/* Tenner TV: Tenner's look (Apple's system colours and type, glass only for the controls, everything blended, never
   cut off), following the device's light or dark setting. */
:root {
  color-scheme: light;
  --bg: #ffffff; --bg2: #f2f2f7; --label: #000000; --label2: rgba(60, 60, 67, .62); --label3: rgba(60, 60, 67, .36); --sep: rgba(60, 60, 67, .2);
  --fill: rgba(120, 120, 128, .12); --fill-strong: rgba(120, 120, 128, .2); --accent: #007aff;
  --gl-fill: rgba(255, 255, 255, .62); --gl-hover: rgba(255, 255, 255, .85); --gl-rim: rgba(60, 60, 67, .16);
  --sheet-bg: rgba(255, 255, 255, .78);
  --wp-base: #f7f6fa; --wp-1: rgba(255, 55, 95, .16); --wp-2: rgba(191, 90, 242, .15); --wp-3: rgba(10, 132, 255, .16); --wp-4: rgba(48, 209, 190, .10); --wp-grain: .05;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter Tight", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease-spring: cubic-bezier(.3, 1.25, .4, 1); --ease-out: cubic-bezier(.2, .8, .2, 1);
  --gutter: max(20px, env(safe-area-inset-left, 0px)); --gutter-r: max(20px, env(safe-area-inset-right, 0px)); --max: 1240px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #000000; --bg2: #1c1c1e; --label: #ffffff; --label2: rgba(235, 235, 245, .62); --label3: rgba(235, 235, 245, .3); --sep: rgba(84, 84, 88, .6);
    --fill: rgba(118, 118, 128, .24); --fill-strong: rgba(118, 118, 128, .36); --accent: #0a84ff;
    --gl-fill: rgba(255, 255, 255, .13); --gl-hover: rgba(255, 255, 255, .2); --gl-rim: rgba(255, 255, 255, .2);
    --sheet-bg: rgba(30, 30, 32, .74);
    --wp-base: #050508; --wp-1: rgba(255, 55, 95, .17); --wp-2: rgba(191, 90, 242, .16); --wp-3: rgba(10, 132, 255, .17); --wp-4: rgba(48, 209, 190, .07); --wp-grain: .07;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100svh; overflow-x: clip; background: var(--wp-base); color: var(--label); font: 400 17px/1.4 var(--font); letter-spacing: -.016em;
  -webkit-font-smoothing: antialiased; }
/* Tenner TV's wallpaper: still, fixed to the screen (it never moves or changes), soft blooms of Tenner's pink, purple
   and blue with a touch of teal, on near-black (dark) or pearl (light), and a fine grain so the gradients never band */
body::before, body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body::before { background:
  radial-gradient(60% 50% at 8% 4%, var(--wp-1), transparent 70%),
  radial-gradient(55% 55% at 92% 18%, var(--wp-2), transparent 70%),
  radial-gradient(60% 55% at 78% 92%, var(--wp-3), transparent 72%),
  radial-gradient(50% 45% at 6% 82%, var(--wp-4), transparent 70%),
  var(--wp-base); }
body::after { opacity: var(--wp-grain); mix-blend-mode: overlay; background-size: 200px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.grad { font-style: normal; background: linear-gradient(100deg, #ff375f 0%, #bf5af2 55%, #0a84ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-bottom: .06em; }

/* ---------- the bar ---------- */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: var(--max); margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) var(--gutter-r) 12px var(--gutter); }
.bar::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw) -24px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--wp-base) 82%, transparent) 45%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--label); font: 600 19px/1 var(--font); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand b { font-weight: 600; color: var(--label2); }
.bar-link { display: inline-flex; align-items: center; gap: 2px; height: 36px; padding: 0 12px 0 14px; border-radius: 999px; color: var(--label); font: 500 15px/1 var(--font);
  background: var(--gl-fill); box-shadow: inset 0 0 0 1px var(--gl-rim); -webkit-backdrop-filter: blur(20px) saturate(1.7); backdrop-filter: blur(20px) saturate(1.7); }
.bar-link svg { width: 14px; height: 14px; color: var(--label2); }
.bar-link:hover { text-decoration: none; background: var(--gl-hover); }

main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter-r) 40px var(--gutter); }

/* ---------- the top ---------- */
.hero { padding: 26px 0 6px; }
.eye { margin: 0 0 8px; color: var(--label2); font: 500 16px/1.2 var(--font); }
h1 { margin: 0; font: 800 clamp(40px, 6vw, 76px)/1 var(--font-display); letter-spacing: -.04em; text-wrap: balance; }
.lede { margin: 14px 0 0; max-width: 54ch; color: var(--label2); font-size: 17px; line-height: 1.45; }
/* the days: one line of pills, scrolling sideways on phones, fading at the edge */
.days { display: flex; gap: 8px; margin: 22px calc(-1 * var(--gutter-r)) 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter-r) 6px var(--gutter);
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); }
.days::-webkit-scrollbar { display: none; }
@media (max-width: 760px) { .days { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); } }
.days button { flex: none; scroll-snap-align: start; height: 36px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
  font: 500 15px/1 var(--font); color: var(--label); background: var(--fill); transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.days button:active { transform: scale(.96); }
.days button[aria-current="date"] { background: var(--label); color: var(--bg); font-weight: 600; }
@media (hover: hover) { .days button:not([aria-current]):hover { background: var(--fill-strong); } }

/* ---------- sections ---------- */
.sec { margin-top: 40px; }
.sec-hd { margin-bottom: 14px; }
.sec-hd h2 { margin: 0; font: 700 22px/1.2 var(--font); letter-spacing: -.02em; }
.sec-hd p { margin: 3px 0 0; color: var(--label2); font-size: 15px; }
/* ---------- the guide ---------- */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.guide { margin-top: 26px; }
/* the preview: a compact card for the programme you point at. A small still beside the words, nothing behind the guide */
.pv { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 20px; align-items: center; min-height: 126px; padding: 6px 0 18px; }
.pv-art { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: color-mix(in srgb, var(--label) 7%, transparent);
  box-shadow: inset 0 0 0 .5px color-mix(in srgb, var(--label) 12%, transparent); }
.pv-art img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s ease; }
.pv-art img.on { opacity: 1; }
.pv.poster .pv-art img { object-fit: contain; background: #1c1c1e; }
.pv-copy { min-width: 0; max-width: 680px; }
.pv-ch { margin: 0 0 4px; color: var(--label2); font: 600 14px/1.2 var(--font); }
.pv-t { margin: 0; font: 700 22px/1.15 var(--font); letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-sum { margin: 6px 0 0; font-size: 15px; line-height: 1.4; color: color-mix(in srgb, var(--label) 82%, transparent); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pv-meta { margin: 8px 0 0; color: var(--label2); font: 500 14px/1.2 var(--font); font-variant-numeric: tabular-nums; white-space: pre-wrap; }
.epg-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.now-btn { height: 34px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer; font: 600 14px/1 var(--font); color: #fff;
  background: linear-gradient(100deg, #ff375f, #bf5af2 60%, #0a84ff); box-shadow: 0 6px 18px -6px rgba(191, 90, 242, .7); transition: transform .2s ease; }
.now-btn:active { transform: scale(.96); }
.epg-hint { margin: 0; color: var(--label3); font-size: 13px; }
/* the guide: each channel a row, its programmes a strip you scroll on its own (as Pluto TV does), fading at the edge */
.guide { position: relative; isolation: isolate; }
.epg { --px: 5px; --chw: 200px; --rowh: 68px; position: relative; }
.rows { display: grid; }
/* rows off screen aren't drawn until they're near (smooth with 35 channels and a week of programmes) */
.crow { position: relative; display: grid; grid-template-columns: var(--chw) minmax(0, 1fr); height: var(--rowh); content-visibility: auto; contain-intrinsic-size: auto var(--rowh); }
.crow + .crow::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: .5px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--sep) 8%, var(--sep) 85%, transparent); }
.strip { display: flex; gap: 6px; align-items: stretch; padding: 7px 40px 7px 10px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x proximity;
  scroll-padding-left: 10px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 64px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 64px), transparent); }
.strip::-webkit-scrollbar { display: none; }
.ch { position: relative; z-index: 2; display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 0 10px 0 0; border: 0; border-radius: 12px; cursor: pointer; text-align: left; color: var(--label); font: 600 15px/1.15 var(--font); letter-spacing: -.016em;
  background: transparent; -webkit-tap-highlight-color: transparent; }
.ch svg { flex: none; width: 16px; height: 16px; color: var(--label3); opacity: 0; transition: opacity .2s ease, color .2s ease, transform .3s var(--ease-spring); }
@media (hover: hover) { .ch:hover svg { opacity: 1; } }
.ch[aria-pressed="true"] svg { opacity: 1; color: #ffcc00; }
.ch:active svg { transform: scale(1.3); }
.ch:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.cats { display: flex; gap: 8px; margin: 0 calc(-1 * var(--gutter-r)) 12px calc(-1 * var(--gutter)); padding: 2px var(--gutter-r) 4px var(--gutter); overflow-x: auto; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats button { flex: none; height: 32px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap; font: 500 14px/1 var(--font); color: var(--label2); background: none;
  box-shadow: inset 0 0 0 1px var(--sep); transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.cats button[aria-checked="true"] { color: var(--label); background: var(--fill-strong); box-shadow: none; font-weight: 600; }
@media (hover: hover) { .cats button[aria-checked="false"]:hover { color: var(--label); } }
.blk { position: relative; flex: none; scroll-snap-align: start; contain: layout paint style; display: block; min-width: 0; padding: 0; border: 0; border-radius: 10px; cursor: pointer;
  text-align: left; color: var(--label); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14); overflow: clip; transition: background-color .15s ease, box-shadow .2s ease, transform .2s ease; }
/* a programme that started before the visible part of the guide keeps its words at the visible edge (--off, set as you scroll) */
.blk .bi { display: grid; align-content: center; gap: 2px; height: 100%; padding: 0 10px 0 calc(10px + var(--off, 0px)); }
.blk b { font: 500 14px/1.2 var(--font); letter-spacing: -.012em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blk small { color: var(--label2); font: 400 12px/1 var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
@media (hover: hover) { .blk:hover { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px var(--gl-rim); } }
.blk:active { transform: scale(.98); }
.blk:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* on now: tinted, filled as far as it's got */
.blk.live { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 30%, transparent) var(--p, 0%), color-mix(in srgb, var(--accent) 12%, transparent) var(--p, 0%));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.blk.live small { color: var(--label); }
.blk.past { opacity: .45; }

/* tonight's picks: wide artwork cards in a row, the time on a frosted chip */
.picks { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 280px; gap: 16px; margin: 0 calc(-1 * var(--gutter-r)) 0 calc(-1 * var(--gutter));
  padding: 4px var(--gutter-r) 10px var(--gutter); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); }
.picks::-webkit-scrollbar { display: none; }
.picks li { scroll-snap-align: start; min-width: 0; }
.pick { display: grid; gap: 2px; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; }
.pick-art { position: relative; display: block; aspect-ratio: 16 / 9; margin-bottom: 9px; border-radius: 14px; overflow: hidden; background: var(--fill);
  box-shadow: 0 0 0 .5px var(--sep), 0 12px 26px -14px rgba(0, 0, 0, .6); transition: transform .45s var(--ease-spring), box-shadow .3s ease; }
.pick-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick-art .ph { display: grid; place-items: center; width: 100%; height: 100%; padding: 14px; color: #fff; font: 700 19px/1.15 var(--font); text-align: center; }
.chip { position: absolute; left: 8px; top: 8px; padding: 5px 9px; border-radius: 9px; color: #fff; font: 600 12.5px/1 var(--font); font-variant-numeric: tabular-nums;
  background: rgba(20, 20, 24, .55); -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .22); }
.pick b { font: 500 15px/1.25 var(--font); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pick small { color: var(--label2); font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (hover: hover) { .pick:hover .pick-art { transform: translateY(-3px); box-shadow: 0 0 0 .5px var(--sep), 0 20px 34px -14px rgba(0, 0, 0, .65); } }
.pick:active .pick-art { transform: scale(.98); }

.empty { padding: 48px 20px; text-align: center; color: var(--label2); }
.empty h3 { margin: 0 0 6px; color: var(--label); font: 700 20px/1.2 var(--font); }
/* loading: breathing placeholders, never a blank page */
.skel { display: grid; gap: 8px; padding: 12px; }
.skel i { height: 48px; border-radius: 10px; background: var(--fill); animation: breathe 1.4s ease-in-out infinite alternate; }
.skel i:first-child { height: 28px; width: 60%; }
@keyframes breathe { to { opacity: .45; } }

/* ---------- the sheet: centred glass, artwork melting into it, tap outside to close ---------- */
.sheet { width: min(520px, calc(100vw - 24px)); max-height: min(86svh, 760px); padding: 0; border: 0; border-radius: 26px; overflow: hidden; color: var(--label);
  background: var(--sheet-bg); -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8);
  box-shadow: inset 0 0 0 .5px var(--gl-rim), 0 30px 80px rgba(0, 0, 0, .4); }
.sheet::backdrop { background: rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet[open] { animation: sheetIn .45s var(--ease-spring); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.sh-in { max-height: inherit; overflow-y: auto; overscroll-behavior: contain; }
.sh-art { position: relative; aspect-ratio: 16 / 9; }
.sh-art:not(:has(img)) { aspect-ratio: auto; height: 60px; }
.sh-art img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.sh-x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; padding: 7px; border: 0; border-radius: 50%; cursor: pointer; color: #fff;
  background: rgba(0, 0, 0, .4); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.sh-x svg { display: block; width: 100%; height: 100%; }
.sh-body { padding: 4px 22px 22px; margin-top: -26px; position: relative; }
.sh-when { margin: 0; color: var(--label2); font: 600 13px/1.3 var(--font); font-variant-numeric: tabular-nums; }
.sh-body h2 { margin: 4px 0 0; font: 700 26px/1.12 var(--font); letter-spacing: -.025em; text-wrap: balance; }
.sh-ep { margin: 6px 0 0; color: var(--label2); font-size: 15px; }
.sh-sum { margin: 14px 0 0; font-size: 16px; line-height: 1.5; }
.sh-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.sh-tags li { padding: 6px 10px; border-radius: 999px; background: var(--fill); font: 500 13px/1 var(--font); }
.sh-link { display: inline-flex; margin-top: 18px; font: 500 15px/1 var(--font); }

/* ---------- the foot ---------- */
.foot { max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter-r) calc(env(safe-area-inset-bottom, 0px) + 32px) var(--gutter); color: var(--label3); font-size: 13px; }
.foot p { margin: 4px 0; }

@media (max-width: 760px) {
  .hero { padding-top: 14px; }
  .pv { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; min-height: 0; padding: 0 0 14px; }
  .pv-art { border-radius: 10px; margin-top: 4px; }
  .pv-t { font-size: 18px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .pv-meta { font-size: 13px; }
  .pv-sum { font-size: 14px; }
  .epg { --px: 3.6px; --chw: 132px; --rowh: 62px; }
  .ch { padding: 0 6px 0 10px; font-size: 13px; }
  .ch svg { width: 13px; height: 13px; opacity: .55; }
  .cats { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
  .epg-hint { display: none; }
  .lede { font-size: 16px; }
  .picks { grid-auto-columns: 78%; gap: 12px; }
  .bar-link { font-size: 14px; }
  .sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 26px 26px 0 0; max-height: 92svh; }
  .sheet[open] { animation: sheetUp .45s var(--ease-spring); }
  @keyframes sheetUp { from { transform: translateY(40%); opacity: .6; } }
}
@media (prefers-reduced-motion: reduce) { *, ::before, ::after { animation: none !important; transition: none !important; } }
@media (prefers-reduced-transparency: reduce) { .bar-link, .sheet, .chip, .sh-x { -webkit-backdrop-filter: none; backdrop-filter: none; } .sheet { background: var(--bg2); } }
/* light: the blocks are frosted white rather than see-through grey */
@media (prefers-color-scheme: light) { .blk { background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 .5px rgba(60, 60, 67, .14), 0 1px 2px rgba(0, 0, 0, .04); }
  @media (hover: hover) { .blk:hover { background: rgba(255, 255, 255, .85); } } }
@media (prefers-reduced-transparency: reduce) { .blk { background: var(--bg2); } }

/* ---------- channel logos, beside the name: our own copies, on a dark tile (they're made for dark, so the tile stays dark
   in light mode too, as Apple TV's channel badges do), or the channel's initials on a colour of its own ---------- */
.ch .ch-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ch-badge { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 7px; border-radius: 11px; background: #1c1c1e; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14), 0 2px 6px rgba(0, 0, 0, .18); }
.ch-badge img { width: 100%; height: 100%; object-fit: contain; image-rendering: auto; }
.ch-mono { padding: 0; color: #fff; font: 700 13px/1 var(--font); letter-spacing: -.02em; background: linear-gradient(150deg, hsl(var(--h) 55% 50%), hsl(calc(var(--h) + 40) 60% 32%)); box-shadow: none; }
.pv-logo { display: block; height: 20px; max-width: 110px; margin-bottom: 2px; padding: 4px 7px; border-radius: 9px; object-fit: contain; object-position: left center; background: #1c1c1e; box-sizing: content-box;
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14); }
/* ---------- pictures: a landscape still fills its frame; a portrait poster stands whole on a blur of itself ---------- */
.pick-art { display: grid; place-items: center; }
.pick-art .bed, .sh-poster .bed { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(24px) saturate(1.5); opacity: .85; }
.pick-art .pst { position: relative; height: 88%; width: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; box-shadow: 0 10px 24px rgba(0, 0, 0, .45), 0 0 0 .5px rgba(255, 255, 255, .2); }
.sh-poster { display: grid; place-items: center; overflow: hidden; }
.sh-poster .bed { inset: 0 -10%; height: 100%; -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.sh-poster + .sh-body { margin-top: 0; padding-top: 14px; }
.sh-poster .pst { position: relative; height: 82%; width: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); -webkit-mask-image: none; mask-image: none; }
@media (max-width: 760px) {
  .ch-badge { width: 38px; height: 38px; padding: 6px; border-radius: 10px; }
  .ch-mono { font-size: 11.5px; }
}

/* watch live: a glass pill with a pulsing red dot, to the channel's own player */
.live-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 14px; border-radius: 999px; color: var(--label); font: 600 15px/1 var(--font);
  background: var(--gl-fill); box-shadow: inset 0 0 0 1px var(--gl-rim); -webkit-backdrop-filter: blur(20px) saturate(1.7); backdrop-filter: blur(20px) saturate(1.7); transition: background-color .2s ease, transform .2s ease; }
.live-btn:hover { text-decoration: none; background: var(--gl-hover); }
.live-btn:active { transform: scale(.97); }
.live-btn i { width: 8px; height: 8px; border-radius: 50%; background: #ff375f; box-shadow: 0 0 0 0 rgba(255, 55, 95, .6); animation: livePulse 1.8s ease-out infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 7px rgba(255, 55, 95, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 55, 95, 0); } }
.pv-live:not(:empty) { margin-top: 10px; }
.pv .live-btn { height: 32px; font-size: 14px; }
.sh-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 18px; }
.sh-acts .sh-link { margin-top: 0; }
.sh-note { margin: 10px 0 0; color: var(--label3); font-size: 12.5px; }

/* where one day ends and the next begins, in every strip */
.daymark { flex: none; align-self: stretch; display: grid; place-content: center; gap: 2px; width: 58px; border-radius: 10px; scroll-snap-align: start; text-align: center;
  color: #fff; font: 500 11.5px/1.1 var(--font); background: linear-gradient(160deg, #ff375f, #bf5af2 55%, #0a84ff); box-shadow: 0 6px 16px -8px rgba(191, 90, 242, .8); }
.daymark b { font: 700 14px/1 var(--font); letter-spacing: -.01em; }

/* the beta badge, beside the name */
.beta { margin-left: 2px; padding: 4px 8px 4px; border-radius: 999px; font: 600 11.5px/1 var(--font); letter-spacing: .01em; color: var(--label);
  background: linear-gradient(var(--wp-base), var(--wp-base)) padding-box, linear-gradient(100deg, #ff375f, #bf5af2 55%, #0a84ff) border-box; border: 1.5px solid transparent; }
.blk .new { margin-right: 6px; padding: 2px 5px; border-radius: 5px; vertical-align: 1px; font: 700 9.5px/1 var(--font); font-style: normal; letter-spacing: .04em; text-transform: uppercase; color: #fff;
  background: linear-gradient(100deg, #ff375f, #bf5af2); }

/* phones: the bar on one line, and each channel shown by its logo alone (its name is still there for VoiceOver) */
.brand, .bar-link { white-space: nowrap; }
@media (max-width: 760px) {
  .bar-link .long { display: none; }
  .epg { --chw: 64px; margin-right: calc(-1 * var(--gutter-r)); }
  .ch { padding: 0; gap: 4px; }
  .ch:has(.ch-badge:not(.ch-mono)) .ch-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ch svg { position: absolute; right: 4px; top: 6px; width: 11px; height: 11px; }
  .ch-badge { width: 48px; height: 48px; padding: 7px; }
  .strip { padding-left: 8px; }
}

/* ---------- the sheet: stays put while open (the page behind doesn't scroll), closes with a gentle fall, and on phones
   has a grab handle to swipe it down ---------- */
html:has(.sheet[open]) { overflow: hidden; }
.sheet { transition: transform .35s var(--ease-out); touch-action: pan-y; }
.sheet.closing:not(.pulled) { animation: sheetOut .3s cubic-bezier(.4, 0, 1, 1) forwards; }
@keyframes sheetOut { to { opacity: 0; transform: translateY(24px) scale(.98); } }
.sheet::backdrop { transition: opacity .3s ease; }
.sheet.closing::backdrop { opacity: 0; }
.sh-grab { display: none; }
.sh-body h2 .new, .sh-body .new { margin-right: 8px; padding: 3px 7px; border-radius: 6px; vertical-align: 4px; font: 700 11px/1 var(--font); font-style: normal; letter-spacing: .04em; text-transform: uppercase; color: #fff;
  background: linear-gradient(100deg, #ff375f, #bf5af2); }
.sh-none { color: var(--label2); }
@media (max-width: 760px) {
  .sheet.closing:not(.pulled) { animation: sheetDown .3s cubic-bezier(.4, 0, 1, 1) forwards; }
  @keyframes sheetDown { to { transform: translateY(100%); } }
  .sh-grab { display: block; position: absolute; z-index: 3; top: 7px; left: 50%; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: rgba(255, 255, 255, .55); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
}
/* the retry link inside a message */
.retry { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; cursor: pointer; }
.retry:hover { text-decoration: underline; }
