/* Kaitu 開途 — Kaitu TV (/tv): the live set and channel guide, and the On Demand library. */
.tv { padding: clamp(110px, 12vw, 150px) 0 clamp(60px, 8vw, 100px); }
.tv__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; }
.tv__head .lede { margin: 0; }
@media (max-width: 900px) { .tv__head { grid-template-columns: minmax(0, 1fr); } }

/* tabs */
.tv__tabs { display: flex; gap: 8px; margin-top: clamp(24px, 3vw, 36px); }
.tv__tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; font-weight: 500; font-size: 14.5px; color: var(--ink-2); transition: background .25s, color .25s, border-color .25s; }
.tv__tabs a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tv__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--seal); box-shadow: 0 0 0 0 rgba(200,55,45,.5); animation: tv-dot 1.8s ease-out infinite; }
@keyframes tv-dot { 70%, 100% { box-shadow: 0 0 0 7px rgba(200,55,45,0); } }

/* the set and the guide */
.tv__deck { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; margin-top: 18px; align-items: start; }
@media (max-width: 1000px) { .tv__deck { grid-template-columns: minmax(0, 1fr); } }
.tv__set { border-radius: var(--r-xl); background: #15120E; padding: 12px; box-shadow: var(--shadow-3); }
.tv__screen { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.tv__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.tv__bug { position: absolute; top: 14px; right: 16px; display: flex; align-items: center; gap: 7px; padding: 5px 9px 5px 6px; border-radius: 8px; background: rgba(0,0,0,.42); color: #fff; font: 600 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; backdrop-filter: blur(4px); }
.tv__bug img { width: 18px; height: 18px; }
.tv__live { padding: 3px 6px; border-radius: 4px; background: var(--seal); font-weight: 600; letter-spacing: .1em; }
.tv-page .is-break .tv__live { background: #B7802A; }
.tv__chan { position: absolute; top: 14px; left: 16px; color: #fff; font: 500 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.tv__chan b { font-size: 22px; letter-spacing: 0; margin-right: 6px; }
.tv__third { position: absolute; left: 16px; bottom: 16px; max-width: min(78%, 620px); display: grid; gap: 3px; padding: 11px 15px 12px; border-radius: 10px; border-left: 4px solid var(--seal); background: rgba(21,18,14,.78); color: #fff; backdrop-filter: blur(6px); opacity: 0; translate: -12px 0; transition: opacity .5s, translate .6s var(--ease-out); }
.tv__screen.show-third .tv__third { animation: tv-third 9s ease forwards; }
.tv__screen:hover .tv__third { opacity: 1; translate: 0 0; animation: none; }
@keyframes tv-third { 0% { opacity: 0; translate: -12px 0; } 6%, 82% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: -12px 0; } }
.tv__kind { font: 500 10px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: #F2A79A; }
.tv__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1rem, .8rem + .8vw, 1.35rem); line-height: 1.15; }
.tv__credit { font-size: 12px; color: rgba(255,255,255,.75); }
.tv__credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.tv__static { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, transparent 1px 3px), radial-gradient(circle at 50% 50%, #333, #000); }
.tv__screen.is-static .tv__static { animation: tv-static .55s steps(6) forwards; }
@keyframes tv-static { 0% { opacity: 1; } 70% { opacity: .7; } 100% { opacity: 0; } }
.tv__sound { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 0; background: rgba(255,253,247,.92); color: var(--ink); font-weight: 500; font-size: 13px; box-shadow: 0 6px 18px -8px rgba(0,0,0,.6); }
.has-sound .tv__sound { display: none; }
.tv__bar { display: flex; align-items: center; gap: 8px; padding: 10px 4px 2px; }
.tv__bar button { padding: 7px 12px; border-radius: 8px; border: 1px solid rgba(244,238,227,.18); background: transparent; color: rgba(244,238,227,.85); font: 500 12px/1 var(--f-mono); letter-spacing: .08em; transition: background .2s, color .2s; }
.tv__bar button:hover { background: rgba(244,238,227,.1); color: #fff; }
.tv__clock { margin: 0 auto; font: 500 12px/1 var(--f-mono); letter-spacing: .12em; color: rgba(244,238,227,.6); }

.tv__guide { border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-1); overflow: hidden; }
.tv__list { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; max-height: 560px; overflow: auto; scrollbar-width: thin; }
.tv__ch { width: 100%; display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-areas: 'no name' 'no now' 'no prog'; column-gap: 10px; row-gap: 3px; padding: 10px 12px; border-radius: 12px; border: 0; background: transparent; text-align: left; transition: background .2s; }
.tv__ch:hover { background: var(--paper-2); }
.tv__ch[aria-current="true"] { background: var(--ink); color: var(--paper); }
.tv__no { grid-area: no; font: 500 14px/1.2 var(--f-mono); color: var(--seal); }
.tv__ch[aria-current="true"] .tv__no { color: #F2A79A; }
.tv__cname { grid-area: name; font-weight: 500; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.tv__cname i { font: normal 500 9.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; padding: 3px 5px; border-radius: 4px; background: var(--seal-tint); color: var(--seal-deep); }
.tv__now { grid-area: now; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv__ch[aria-current="true"] .tv__now { color: rgba(244,238,227,.7); }
.tv__prog { grid-area: prog; height: 3px; border-radius: 3px; background: var(--paper-3); overflow: hidden; }
.tv__prog i { display: block; height: 100%; background: var(--seal); }

.tv__below { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px 48px; margin-top: clamp(28px, 4vw, 44px); }
.tv__below--about { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
@media (max-width: 900px) { .tv__below { grid-template-columns: minmax(0, 1fr); } }
.tv__next { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 0; }
.tv__next li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tv__next time { font: 500 12px/1 var(--f-mono); color: var(--muted); }
.tv__next .is-now time { color: var(--seal); font-weight: 600; }
.tv__next b { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv__next .is-break b { color: #8A5A10; }
.tv__next span { font-size: 12px; color: var(--muted); }
.tv__about p { margin-top: 10px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }

/* On Demand */
.vod__player { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: center; margin-top: 18px; padding: 12px; border-radius: var(--r-xl); background: #15120E; color: var(--paper); box-shadow: var(--shadow-3); scroll-margin-top: 100px; }
.vod__player[hidden] { display: none; }
.vod__screen { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.vod__video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.vod__info { padding: 6px 14px; display: grid; gap: 8px; justify-items: start; }
.vod__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); line-height: 1.1; }
.vod__credit { font-size: 13px; color: rgba(244,238,227,.7); }
.vod__credit a { color: inherit; text-decoration: underline; }
.vod__close { margin-top: 4px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(244,238,227,.25); background: transparent; color: var(--paper); font-size: 13px; }
@media (max-width: 900px) { .vod__player { grid-template-columns: minmax(0, 1fr); } }
.vod__top { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.vod__q { max-width: 420px; }
.vod__count { font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.vod__row { margin-top: clamp(26px, 3.4vw, 38px); }
.vod__row h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.4rem; letter-spacing: -.015em; }
.vod__row h3 span { font: 500 11px/1 var(--f-mono); color: var(--muted); margin-left: 6px; vertical-align: middle; }
.vod__row > p { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.vod__strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 230px); gap: 14px; overflow-x: auto; padding: 14px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.vod__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; padding-top: 14px; }
.vod__card { display: grid; gap: 6px; text-align: left; border: 0; padding: 0; background: none; scroll-snap-align: start; cursor: pointer; }
.vod__art { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #2A2520, #15120E); box-shadow: var(--shadow-1); transition: translate .4s var(--ease-spring), box-shadow .4s; }
.vod__art img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease-out); }
.vod__art i { position: absolute; right: 8px; bottom: 8px; padding: 3px 7px; border-radius: 6px; background: rgba(0,0,0,.65); color: #fff; font: normal 500 10.5px/1.2 var(--f-mono); }
.vod__ph { display: grid; place-items: center; height: 100%; font-size: 2rem; color: rgba(244,238,227,.35); }
.vod__card:hover .vod__art { translate: 0 -4px; box-shadow: var(--shadow-2); }
.vod__card:hover .vod__art img { scale: 1.05; }
.vod__card b { font-weight: 500; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vod__card small { font-size: 12px; color: var(--muted); }
.vod__none { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .tv__dot, .tv__screen.show-third .tv__third, .tv__screen.is-static .tv__static { animation: none; } .tv__third { opacity: 1; translate: 0 0; } }
/* phones: a compact credit and controls, so the picture stays clear */
@media (max-width: 600px) {
  .tv__set { padding: 8px; border-radius: 20px; }
  .tv__third { left: 8px; bottom: 8px; max-width: 70%; padding: 7px 10px 8px; gap: 1px; }
  .tv__title { font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .tv__credit { display: none; }
  .tv__chan { top: 9px; left: 10px; font-size: 10px; } .tv__chan b { font-size: 16px; }
  .tv__bug { top: 8px; right: 8px; padding: 4px 6px; font-size: 9.5px; } .tv__bug span { display: none; }
  .tv__sound { right: 8px; bottom: 8px; padding: 7px 10px; font-size: 12px; }
  .tv__bar { gap: 6px; flex-wrap: nowrap; }
  .tv__bar button { padding: 6px 8px; font-size: 11px; white-space: nowrap; }
  .tv__clock { display: none; }
  .tv__bar [data-tv-full] { margin-left: auto; }
}

/* the ogv.js player fills the screen like the video it stands in for, with simple controls on demand */
.tv__screen > div.tv__video, .vod__screen > div.vod__video { position: absolute; inset: 0; width: 100%; height: 100%; }
.vod__screen { position: relative; }
.tv__ogvbar { display: flex; align-items: center; gap: 10px; padding: 8px 6px 2px; color: rgba(244,238,227,.8); font: 500 11px/1 var(--f-mono); }
.tv__ogvbar[hidden] { display: none; }
.tv__ogvbar button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(244,238,227,.25); background: transparent; color: inherit; }
.tv__ogvbar input { flex: 1; accent-color: var(--seal); }

/* ---- the set alone, then the guide beneath it ---- */
.tv { padding-top: clamp(96px, 10vw, 120px); }
.tv__tabs { margin-top: 0; }
.tv__deck { grid-template-columns: minmax(0, 1fr); }
/* the programme's credit appears only while the pointer is over the picture */
.tv__third { opacity: 0; translate: 0 6px; transition: opacity .35s, translate .45s var(--ease-out); animation: none !important; }
.tv__screen:hover .tv__third, .tv__screen:focus-within .tv__third { opacity: 1; translate: 0 0; }
@media (hover: none) { .tv__third { display: none; } }

/* ---- the TV guide: channels down the side, time across, scrolled without a scrollbar ---- */
.epg { margin-top: clamp(18px, 2.4vw, 28px); }
.epg__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.epg__title { font-family: var(--f-display); font-weight: 400; font-size: 1.4rem; letter-spacing: -.015em; }
.epg__nav { display: flex; gap: 6px; }
.epg__nav button { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); font-size: 13px; color: var(--ink-2); transition: background .2s, color .2s; }
.epg__nav button:hover { background: var(--ink); color: var(--paper); }
.epg__grid { position: relative; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-1); cursor: grab; overscroll-behavior-x: contain; }
.epg__grid::-webkit-scrollbar { display: none; }
.epg__grid.is-drag { cursor: grabbing; user-select: none; }
.epg__row { display: flex; width: max-content; min-width: 100%; border-bottom: 1px solid var(--line); }
.epg__row:last-of-type { border-bottom: 0; }
.epg__ch { position: sticky; left: 0; z-index: 3; flex: none; width: 168px; display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 58px; border: 0; border-right: 1px solid var(--line); background: var(--card); text-align: left; font-size: 13.5px; font-weight: 500; color: var(--ink); cursor: pointer; }
.epg__ch b { font: 500 12px/1 var(--f-mono); color: var(--seal); }
.epg__ch span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.epg__ch i { margin-left: auto; font: normal 500 9px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 3px 5px; border-radius: 4px; background: var(--seal-tint); color: var(--seal-deep); }
.epg__row.is-on .epg__ch { background: var(--ink); color: var(--paper); }
.epg__row.is-on .epg__ch b { color: #F2A79A; }
.epg__row--ruler .epg__track { height: 30px; }
.epg__ch--ruler { height: 30px; cursor: default; font: 500 10.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.epg__row--ruler .epg__track span { position: absolute; top: 9px; padding-left: 6px; border-left: 1px solid var(--line-strong); font: 500 11px/1 var(--f-mono); color: var(--muted); white-space: nowrap; }
.epg__track { position: relative; flex: none; height: 58px; }
.epg__show { position: absolute; top: 5px; bottom: 5px; display: grid; align-content: center; gap: 2px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); text-align: left; overflow: hidden; cursor: pointer; transition: border-color .2s, background .2s; }
.epg__show:hover { border-color: var(--seal); background: #FFFDF8; }
.epg__show b { font-weight: 500; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; }
.epg__show small { font: 500 10.5px/1.2 var(--f-mono); color: var(--muted); white-space: nowrap; position: relative; }
.epg__show.is-now { background: #FBF3EE; border-color: rgba(200,55,45,.35); }
.epg__show.is-now small { color: var(--seal-deep); }
.epg__fill { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(200,55,45,.08); }
.epg__row.is-on .epg__show.is-now { background: #F6E3DC; border-color: var(--seal); }
.epg__line { position: absolute; top: 30px; bottom: 0; width: 2px; margin-left: -1px; background: var(--seal); z-index: 2; pointer-events: none; }
@media (max-width: 600px) { .epg__ch { width: 112px; padding: 0 8px; font-size: 12.5px; } .epg__ch i { display: none; } }
/* each block is exactly its own width (padding included): neighbours never overlap */
.epg__show { box-sizing: border-box; min-width: 0; }
.epg__show em { font-style: normal; font-weight: 500; color: var(--seal-deep); }

/* ---- a plain video player with a soft glow; controls and the credit appear over the picture on hover ---- */
.tv__set { padding: 0; background: none; border-radius: 18px; box-shadow: 0 0 0 1px rgba(200,55,45,.18), 0 0 36px -8px rgba(200,55,45,.35), 0 24px 50px -30px rgba(26,23,18,.55); }
.tv__screen { border-radius: 18px; }
.tv__hud { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; opacity: 0; transition: opacity .35s; }
.tv__screen:hover .tv__hud, .tv__screen:focus-within .tv__hud { opacity: 1; }
.tv__hud > * { pointer-events: auto; }
.tv__hud .tv__third { position: static; max-width: none; opacity: 1; translate: none; border: 0; border-radius: 0; padding: 16px 20px 40px; background: linear-gradient(rgba(0,0,0,.62), transparent); backdrop-filter: none; }
.tv__hud .tv__bar { display: flex; align-items: center; gap: 6px; padding: 40px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.66)); }
.tv__hud .tv__bar button { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; transition: background .2s, scale .3s var(--ease-spring); }
.tv__hud .tv__bar button:hover { background: rgba(255,255,255,.26); scale: 1.08; }
.tv__hud .tv__bar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tv__hud .tv__bar [data-tv-mute] svg path:first-child { fill: currentColor; }
.tv__hud [data-tv-mute].is-muted .tv__wave { opacity: .25; }
.tv__hud .tv__clock { margin: 0 auto 0 8px; color: rgba(255,255,255,.8); }
.tv__hud [data-tv-mute] { margin-left: auto; }
@media (hover: none) { .tv__hud { opacity: 1; } .tv__hud .tv__third { display: none; } }
@media (max-width: 600px) { .tv__hud .tv__bar { padding: 24px 8px 8px; } .tv__hud .tv__bar button { width: 32px; height: 32px; } .tv__hud .tv__clock { display: none; } }

/* ---- the guide, zoomed in like a TV app: tall rows, a logo for every channel ---- */
.epg__ch { width: 190px; height: 82px; justify-content: center; position: sticky; padding: 0 14px; }
.epg__ch b { position: absolute; top: 8px; left: 10px; font-size: 10.5px; color: var(--muted); }
.chlogo { width: 140px; height: auto; display: block; color: var(--ink); }
.chlogo .cjk { font-family: var(--f-cjk); } .chlogo .serif { font-family: var(--f-display); } .chlogo .mono { font-family: var(--f-mono); } .chlogo .sans { font-family: var(--f-sans, inherit); }
.chlogo--text { font-family: var(--f-display); font-size: 1.1rem; }
.epg__row.is-on .epg__ch { background: #FBF0EC; color: var(--ink); box-shadow: inset 4px 0 0 var(--seal); }
.epg__row.is-on .epg__ch b { color: var(--seal); }
.epg__ch:hover .chlogo { scale: 1.04; } .chlogo { transition: scale .3s var(--ease-spring); }
.epg__track { height: 82px; }
.epg__show { top: 7px; bottom: 7px; padding: 0 14px; border-radius: 10px; gap: 4px; }
.epg__show b { font-size: 14.5px; }
.epg__show small { font-size: 12px; }
.epg__row--ruler .epg__track, .epg__ch--ruler { height: 38px; }
.epg__row--ruler .epg__track span { top: 12px; font-size: 12px; }
.epg__line { top: 38px; }
@media (max-width: 600px) { .epg__ch { width: 120px; height: 70px; padding: 0 8px; } .chlogo { width: 100px; } .epg__track { height: 70px; } .epg__ch b { display: none; } }
/* the sound prompt sits top right, clear of the controls */
.tv__sound { top: 14px; right: 14px; bottom: auto; z-index: 2; }
@media (max-width: 600px) { .epg__ch--ruler { font-size: 9px; letter-spacing: .06em; height: 38px; } }

.epg__ch .chlogo { width: 150px; height: auto; }
@media (max-width: 600px) { .epg__ch .chlogo { width: 104px; } }

/* channel boxes: a square logo tile for every channel, like a TV app's guide */
.epg__ch { width: 124px; padding: 0; }
.epg__ch .chlogo { width: 66px; height: 66px; border-radius: 12px; box-shadow: 0 4px 10px -6px rgba(26,23,18,.55); }
.epg__ch b { top: 6px; left: 8px; }
.epg__row.is-on .epg__ch .chlogo { box-shadow: 0 0 0 2.5px var(--seal), 0 6px 14px -6px rgba(200,55,45,.6); }
@media (max-width: 600px) { .epg__ch { width: 84px; } .epg__ch .chlogo { width: 56px; height: 56px; } }
/* zoomed in like a TV app: clear wordmarks, tall rows, big titles */
.epg__ch { width: 150px; height: 112px; }
.epg__ch .chlogo { width: 100px; height: 100px; border-radius: 0; box-shadow: none; }
.epg__row.is-on .epg__ch .chlogo { box-shadow: none; }
.epg__row.is-on .epg__ch { background: #FBEFEA; box-shadow: inset 5px 0 0 var(--seal); }
.epg__track { height: 112px; }
.epg__show { top: 10px; bottom: 10px; padding: 0 18px; border-radius: 12px; gap: 6px; }
.epg__show b { font-size: 16.5px; }
.epg__show small { font-size: 13px; }
.epg__row--ruler .epg__track, .epg__ch--ruler { height: 44px; }
.epg__row--ruler .epg__track span { top: 14px; font-size: 13px; }
.epg__line { top: 44px; }
@media (max-width: 600px) { .epg__ch { width: 96px; height: 96px; } .epg__ch .chlogo { width: 80px; height: 80px; } .epg__track { height: 96px; } .epg__show b { font-size: 14.5px; } }

/* ================= On Demand: the Kaitu TV catalogue ================= */
.od { --od-poster: clamp(128px, 11vw, 168px); }
.od__hero { position: relative; height: clamp(420px, 46vw, 600px); margin-top: 18px; overflow: hidden; background: var(--night); color: var(--paper); isolation: isolate; }
.od__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s var(--ease-out), visibility 0s .9s; }
.od__slide.is-on { opacity: 1; visibility: visible; transition: opacity .9s var(--ease-out); }
.od__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; scale: 1.04; transition: scale 9.5s linear; }
.od__slide.is-on .od__bg { scale: 1.12; }
.od__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,18,14,.94) 0%, rgba(20,18,14,.78) 32%, rgba(20,18,14,.18) 66%, rgba(20,18,14,.05)), linear-gradient(0deg, rgba(20,18,14,.85), transparent 42%); }
.od__copy { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding-bottom: clamp(58px, 6vw, 76px); }
.od__copy > * { max-width: 560px; }
.od__eyebrow { font: 500 11px/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ochre); }
.od__copy h2, .odt__head h2 { font-family: var(--f-display); font-weight: 400; font-variation-settings: 'opsz' 72; font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.2rem); line-height: .98; letter-spacing: -.025em; text-wrap: balance; }
.od__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font: 500 12.5px/1.4 var(--f-mono); letter-spacing: .04em; color: rgba(244,238,227,.82); }
.od__meta i, .odt__src i { font-style: normal; margin: 0 9px; opacity: .55; }
.od__ov { font-size: 15.5px; line-height: 1.55; color: rgba(244,238,227,.86); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.od__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.od__cta .btn svg, .odt__play svg { width: 16px; height: 16px; fill: currentColor; margin-right: 6px; }
.od__info { --bg: rgba(244,238,227,.14); --fg: var(--paper); --bd: rgba(244,238,227,.28); backdrop-filter: blur(6px); }
.od__dots { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; gap: 8px; }
.od__dots button { width: 34px; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; }
.od__dots span { display: block; height: 3px; border-radius: 3px; background: rgba(244,238,227,.32); overflow: hidden; position: relative; }
.od__dots [aria-current] span::after { content: ''; position: absolute; inset: 0; background: var(--paper); transform-origin: left; animation: od-dot 9s linear forwards; }
.od__hero:hover .od__dots [aria-current] span::after, .od__hero:focus-within .od__dots [aria-current] span::after { animation-play-state: paused; }
@keyframes od-dot { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .od__bg, .od__slide.is-on .od__bg { scale: 1; transition: none; } .od__dots [aria-current] span::after { animation: none; transform: none; } }

.od__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 26px; }
.od__q { flex: 1 1 280px; max-width: 460px; }
.od__kinds { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.od__kinds button { padding: 8px 16px; border: 0; border-radius: 999px; background: none; font: 500 13.5px/1 var(--f-body); color: var(--muted); cursor: pointer; transition: background var(--t-fast), color var(--t-fast); }
.od__kinds [aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.od__count { margin-left: auto; font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.od__row { margin-top: clamp(26px, 3vw, 36px); }
.od__rowhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.od__rowhead h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.3rem, 1.1rem + .5vw, 1.6rem); letter-spacing: -.015em; }
.od__all { border: 0; background: none; padding: 4px 0; font: 500 13px/1 var(--f-body); color: var(--muted); cursor: pointer; }
.od__all span { font-family: var(--f-mono); font-size: 11px; }
.od__all:hover { color: var(--seal); }
.od__track { position: relative; margin: 0 calc(var(--gutter) * -1); }
.od__strip { display: grid; grid-auto-flow: column; grid-auto-columns: var(--od-poster); gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding: 0 var(--gutter); padding: 14px var(--gutter) 6px; scrollbar-width: none; }
.od__strip::-webkit-scrollbar { display: none; }
.od__nav { position: absolute; top: 14px; bottom: 46px; z-index: 2; width: calc(var(--gutter) + 6px); border: 0; padding: 0; display: grid; place-items: center; color: var(--paper); background: linear-gradient(90deg, rgba(20,18,14,.55), transparent); opacity: 0; cursor: pointer; transition: opacity var(--t); }
.od__nav--l { left: 0; } .od__nav--r { right: 0; background: linear-gradient(-90deg, rgba(20,18,14,.55), transparent); }
.od__nav svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.od__track:hover .od__nav { opacity: 1; }
@media (hover: none) { .od__nav { display: none; } }

.od__card { display: grid; gap: 7px; align-content: start; color: inherit; text-decoration: none; scroll-snap-align: start; min-width: 0; }
.od__poster { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, #2E2822, #14120E); box-shadow: var(--shadow-1, 0 2px 6px rgba(26,23,18,.12)); outline: 2px solid transparent; outline-offset: 2px; transition: translate .45s var(--ease-spring), box-shadow .45s, outline-color var(--t-fast); }
.od__poster em { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; text-align: center; font: 400 1.05rem/1.15 var(--f-display); font-style: normal; color: rgba(244,238,227,.86); }
.od__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease-out); }
.od__poster img.is-broken { display: none; }
.od__poster i { position: absolute; left: 8px; top: 8px; padding: 4px 7px; border-radius: 6px; background: rgba(20,18,14,.78); color: var(--paper); font: normal 500 9.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.od__card:hover .od__poster, .od__card:focus-visible .od__poster { translate: 0 -5px; box-shadow: 0 14px 30px -12px rgba(26,23,18,.45); outline-color: var(--seal); }
.od__card:hover img { scale: 1.05; }
.od__card:focus-visible { outline: none; }
.od__card b { font-weight: 500; font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.od__card small { font-size: 12px; color: var(--muted); margin-top: -3px; }
.od__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--od-poster), 1fr)); gap: 22px 14px; padding-top: 14px; }
.od__moreb { margin: 26px auto 0; display: flex; }
.od__none { margin-top: 18px; color: var(--muted); }
.od__loading { display: flex; gap: 14px; margin-top: 30px; overflow: hidden; }
.od__loading span { flex: 0 0 var(--od-poster); aspect-ratio: 2 / 3; border-radius: 12px; background: linear-gradient(100deg, var(--line) 30%, rgba(26,23,18,.05) 50%, var(--line) 70%) 0 0 / 300% 100%; animation: od-shim 1.4s linear infinite; }
.od__loading--title span:first-child { flex-basis: 240px; } .od__loading--title span:last-child { flex: 1; aspect-ratio: auto; height: 220px; }
@keyframes od-shim { to { background-position: -300% 0; } }

/* a title */
.odt__back { display: inline-flex; align-items: center; gap: 4px; margin-top: 18px; font: 500 13.5px/1 var(--f-body); color: var(--muted); text-decoration: none; }
.odt__back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: translate var(--t-fast); }
.odt__back:hover { color: var(--seal); } .odt__back:hover svg { translate: -3px 0; }
.odt__stage { position: relative; margin-top: 14px; aspect-ratio: 16 / 9; max-height: 74vh; width: 100%; border-radius: var(--r-lg); overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(200,55,45,.25), 0 24px 60px -24px rgba(200,55,45,.45), 0 18px 40px -20px rgba(20,18,14,.55); }
.odt__stage .vod__screen { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; }
.odt__art { position: absolute; inset: 0; color: var(--paper); transition: opacity .5s var(--ease-out), visibility 0s; }
.odt__stage.is-playing .odt__art { opacity: 0; visibility: hidden; transition: opacity .5s var(--ease-out), visibility 0s .5s; }
.odt__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.odt__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,18,14,.9), rgba(20,18,14,.55) 40%, rgba(20,18,14,.08) 75%), linear-gradient(0deg, rgba(20,18,14,.75), transparent 50%); }
.odt__head { position: absolute; left: clamp(20px, 4vw, 48px); right: clamp(20px, 4vw, 48px); bottom: clamp(20px, 4vw, 44px); display: grid; gap: 10px; justify-items: start; max-width: 620px; }
.odt__play { margin-top: 6px; }
.odt__now { min-height: 1.5em; margin-top: 12px; font: 500 12.5px/1.5 var(--f-mono); letter-spacing: .03em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.odt__now b { color: var(--ink); font-weight: 500; }
.odt__grid { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: clamp(22px, 4vw, 52px); margin-top: 26px; align-items: start; }
.odt__poster { box-shadow: 0 18px 40px -18px rgba(20,18,14,.5); }
.odt__facts { display: grid; gap: 10px; margin-top: 20px; }
.odt__facts div, .odt__credits div { display: grid; gap: 2px; }
.odt__facts dt, .odt__credits dt { font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.odt__facts dd { font-size: 14px; line-height: 1.4; }
.odt__ov { font-family: var(--f-display); font-size: clamp(1.08rem, 1rem + .35vw, 1.3rem); line-height: 1.55; max-width: 68ch; }
.odt__credits { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px 28px; margin-top: 24px; }
.odt__credits dd { font-size: 14.5px; line-height: 1.5; } .odt__credits dd span { color: var(--muted); }
.odt__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.odt__tags span { padding: 6px 12px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; }
.odt__seasons { margin-top: 34px; }
.odt__seasonbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.odt__stabs { display: flex; flex-wrap: wrap; gap: 6px; }
.odt__stabs button { padding: 9px 15px; border-radius: 999px; border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font: 500 13.5px/1 var(--f-body); cursor: pointer; transition: background var(--t-fast), color var(--t-fast); }
.odt__stabs [aria-selected="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.odt__avail { font: 500 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.odt__eps { display: grid; gap: 10px; margin-top: 16px; }
.odt__ep { display: grid; grid-template-columns: clamp(140px, 22vw, 230px) minmax(0, 1fr); gap: 18px; align-items: start; padding: 10px; border: 0; border-radius: 16px; background: none; text-align: left; color: inherit; cursor: pointer; box-shadow: inset 0 0 0 1px transparent; transition: background var(--t-fast), box-shadow var(--t-fast); }
.odt__ep:hover, .odt__ep:focus-visible { background: var(--card); box-shadow: inset 0 0 0 1px var(--seal); outline: none; }
.odt__ep.is-playing { background: var(--card); box-shadow: inset 0 0 0 2px var(--seal); }
.odt__still { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: linear-gradient(160deg, #2E2822, #14120E); }
.odt__still img { width: 100%; height: 100%; object-fit: cover; }
.odt__still img.is-broken { display: none; }
.odt__still svg { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; padding: 9px; border-radius: 50%; fill: var(--paper); background: rgba(20,18,14,.6); opacity: 0; scale: .8; transition: opacity var(--t-fast), scale var(--t) var(--ease-spring); }
.odt__ep:hover .odt__still svg, .odt__ep.is-playing .odt__still svg { opacity: 1; scale: 1; }
.odt__still i { position: absolute; right: 6px; bottom: 6px; padding: 3px 6px; border-radius: 5px; background: rgba(0,0,0,.66); color: #fff; font: normal 500 10px/1.2 var(--f-mono); }
.odt__eptxt { display: grid; gap: 4px; padding-top: 2px; min-width: 0; }
.odt__eptxt b { font-weight: 500; font-size: 15px; line-height: 1.3; }
.odt__eptxt b span { font: 500 12px/1 var(--f-mono); color: var(--seal); margin-right: 9px; }
.odt__eptxt small { font-size: 12.5px; color: var(--muted); }
.odt__epov { font-size: 13.5px; line-height: 1.5; color: var(--ink-soft, #4A443B); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.odt__src { margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.odt__src a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 760px) {
  .od__hero { height: 520px; margin-top: 12px; }
  .od__shade { background: linear-gradient(0deg, rgba(20,18,14,.96) 0%, rgba(20,18,14,.8) 48%, rgba(20,18,14,.1) 85%); }
  .od__copy { padding-bottom: 54px; }
  .od__count { margin-left: 0; }
  .odt__stage { border-radius: 14px; }
  .odt__head { gap: 6px; } .odt__head .od__meta, .odt__head .od__eyebrow { display: none; }
  .odt__head h2 { font-size: 1.6rem; }
  .odt__grid { grid-template-columns: minmax(0, 1fr); }
  .odt__side { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; }
  .odt__facts { margin-top: 0; }
  .odt__ep { grid-template-columns: 128px minmax(0, 1fr); gap: 12px; padding: 8px; }
  .odt__epov { -webkit-line-clamp: 2; }
}
.odt__facts dd, .odt__credits dd { margin: 0; }
.odt__orig { font: 500 12px/1.4 var(--f-mono); letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }

/* On Demand's home: the hero reaches up behind the header and the tabs (as the home page's hero does) */
.tv { position: relative; }
html.tv-od-home .tv { padding-top: 0; }
html.tv-od-home .tv__tabs { position: absolute; top: clamp(96px, 10vw, 120px); left: 0; right: 0; z-index: 4; }
html.tv-dark-top .tv__tabs a { color: var(--paper); border-color: rgba(244,238,227,.32); background: rgba(20,18,14,.18); backdrop-filter: blur(6px); }
html.tv-dark-top .tv__tabs a[aria-current="page"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
html.tv-od-home .od__hero { margin-top: 0; height: calc(clamp(420px, 46vw, 600px) + clamp(150px, 15vw, 180px)); }
html.tv-od-home .od__shade { background: linear-gradient(180deg, rgba(20,18,14,.78) 0%, rgba(20,18,14,.15) 26%, transparent 40%), linear-gradient(90deg, rgba(20,18,14,.94) 0%, rgba(20,18,14,.78) 32%, rgba(20,18,14,.18) 66%, rgba(20,18,14,.05)), linear-gradient(0deg, rgba(20,18,14,.85), transparent 42%); }
@media (max-width: 760px) {
  html.tv-od-home .od__hero { height: 660px; }
  html.tv-od-home .od__shade { background: linear-gradient(180deg, rgba(20,18,14,.8) 0%, transparent 28%), linear-gradient(0deg, rgba(20,18,14,.96) 0%, rgba(20,18,14,.8) 48%, rgba(20,18,14,.1) 85%); }
}
/* endless shelves: no snapping fights the quiet re-centring */
.od__strip.is-loop { scroll-snap-type: none; }
.site-header.on-dark:not(.is-scrolled) .brand--tv .brand__word em { color: var(--sky); }

/* first paint (tv-boot.js): the state an address opens is drawn at once, before the script runs */
html.tv-od .tv__pane[data-pane="live"] { display: none; }
html.tv-od .tv__pane[data-pane="ondemand"][hidden] { display: block; }
html.tv-od:not(.tv-od-home) .od__home { display: none; }
html.tv-od:not(.tv-od-home) .od__title[hidden] { display: block; }
html.tv-od .tv__tabs [data-tab="live"] { background: transparent; color: var(--ink-2); border-color: var(--line-strong); }
html.tv-od .tv__tabs [data-tab="ondemand"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
html.tv-dark-top .tv__tabs [data-tab="live"]:not([aria-current]) { color: var(--paper); border-color: rgba(244,238,227,.32); background: rgba(20,18,14,.18); }
html.tv-od-home .tv__tabs [data-tab="ondemand"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
html.tv-boot *, html.tv-boot *::before, html.tv-boot *::after { transition: none !important; }
/* backgrounds appear whole once loaded, never painted in strips */
.od__bg { opacity: 0; transition: opacity .6s var(--ease-out), scale 9.5s linear; }
.od__bg.is-loaded { opacity: 1; }

/* the corner player: live now, bottom right, on every Kaitu TV page but Live TV itself */
.tvmini { position: fixed; right: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 24px); z-index: 60; width: clamp(250px, 24vw, 360px); }
.tvmini[hidden] { display: none; }
.tvmini__card { border-radius: 18px; overflow: hidden; background: #14120E; color: var(--paper); box-shadow: 0 0 0 1px rgba(244,238,227,.08), 0 24px 60px -18px rgba(0,0,0,.65), 0 0 0 1px rgba(200,55,45,.18); animation: tvmini-in .5s var(--ease-out) both; }
.tvmini__card[hidden] { display: none; }
@keyframes tvmini-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.tvmini__player.player { border-radius: 0; box-shadow: none; aspect-ratio: 16 / 9; cursor: pointer; }
.tvmini__info { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 8px 8px 8px 10px; }
.tvmini__logo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--paper); }
.tvmini__logo img { width: 36px; height: 36px; }
.tvmini__now { display: grid; gap: 2px; min-width: 0; color: inherit; text-decoration: none; }
.tvmini__now b { font: 500 13px/1.2 var(--f-body); }
.tvmini__now span { font-size: 11.5px; color: rgba(244,238,227,.66); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tvmini__btn { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(244,238,227,.1); color: var(--paper); cursor: pointer; transition: background var(--t-fast); }
.tvmini__btn:hover { background: rgba(244,238,227,.22); }
.tvmini__btn svg { width: 15px; height: 15px; }
.tvmini__reopen { float: right; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 0; background: #14120E; color: var(--paper); font: 500 13.5px/1 var(--f-body); box-shadow: 0 14px 30px -12px rgba(0,0,0,.6); cursor: pointer; }
.tvmini__reopen i { width: 8px; height: 8px; border-radius: 50%; background: var(--seal); animation: player-pulse 1.6s ease-in-out infinite; }
.tvmini.is-closed { width: auto; }
@media (max-width: 640px) { .tvmini { width: min(62vw, 280px); } .tvmini__info { grid-template-columns: 32px minmax(0, 1fr) auto auto; padding: 6px; } .tvmini__logo { width: 32px; height: 32px; } .tvmini__logo img { width: 28px; height: 28px; } }

.tv__tabs a { text-decoration: none; }
/* Live TV's screen: Kaitu's player fills it; the programme's credit sits above the controls */
.tv__screen .tv__player.player { position: absolute; inset: 0; border-radius: inherit; box-shadow: none; aspect-ratio: auto; }
.tv__screen .tv__third { position: absolute; left: clamp(14px, 2vw, 24px); right: clamp(14px, 2vw, 24px); bottom: 74px; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .4s; }
.tv__screen:has(.player.ui-on) .tv__third, .tv__screen:has(.player.is-paused) .tv__third { opacity: 1; }
.tv__screen .tv__third a { pointer-events: auto; }
.tv__sound { z-index: 3; }
.has-sound .tv__sound { display: none; }
.tv__sound svg { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }
/* a title's screen: Kaitu's player under the title's art */
.odt__stage .odt__player.player { position: absolute; inset: 0; border-radius: 0; box-shadow: none; aspect-ratio: auto; }
.odt__stage:not(.is-playing) .odt__player .player__bar { display: none; }
.tv__screen .tv__sound { top: 16px; bottom: auto; }
.tvmini__reopen[hidden] { display: none; }

/* Live TV opens on the same dark as the front page and On Demand: the header, the tabs and the player on night,
   the TV guide below on paper */
html.tv-live .tv__deck { position: relative; box-shadow: 0 0 0 100vmax var(--night); clip-path: inset(-100vh -100vmax -48px -100vmax); background: var(--night); }
html.tv-live .tv { background: linear-gradient(var(--night), var(--night)) top / 100% 200px no-repeat; }
html.tv-live .tv__tabs { position: relative; z-index: 1; }
html.tv-live .epg { margin-top: 72px; }
html.tv-dark-top .tv__tabs [data-tab="ondemand"]:not([aria-current]) { color: var(--paper); border-color: rgba(244,238,227,.32); background: rgba(20,18,14,.18); }
@media (max-width: 640px) { .tvmini { width: 196px; } .tvmini__now { display: none; } .tvmini__info { grid-template-columns: 32px 1fr auto auto; } .tvmini__info::after { content: ''; } }
/* the corner player's dock: the film or episode you were watching, still playing */
.tvmini__dock { display: none; }
.tvmini.is-docked .tvmini__dock { display: block; }
.tvmini__dock > .player { aspect-ratio: 16 / 9; border-radius: 0; box-shadow: none; cursor: pointer; }
.tvmini__dock .player__track, .tvmini__dock .player__time { display: none; }
.tvmini__dock .player__bar { justify-content: flex-start; }
.tvmini__dock .player__bar .pp { margin-right: auto; }
.tvmini__player[hidden] { display: none; }
.tvmini__logo.is-art { background: #2A2520; overflow: hidden; }
.tvmini__logo.is-art img { width: 100%; height: 100%; object-fit: cover; }
/* the front page inside the app: its hero runs up behind the header, the tabs sit over it */
html.tv-home .tv { padding-top: 0; }
html.tv-home .tv__tabs { position: absolute; top: clamp(96px, 10vw, 120px); left: 0; right: 0; z-index: 4; }
.tv__aboutwrap[hidden] { display: none; }
.tvmini__dock { display: block; }
/* the guide: only what is on now is a button; later programmes are information */
div.epg__show { cursor: default; }
div.epg__show:hover { transform: none; }
/* a screen whose picture has moved to the corner (scrolled out of view): it says so, and brings it back */
.stage__away { position: absolute; inset: 0; z-index: 5; display: none; place-content: center; justify-items: center; gap: 14px; background: radial-gradient(80% 80% at 50% 50%, #2A231D, #14120E); color: var(--paper); text-align: center; }
.is-away > .stage__away { display: grid; }
.stage__away span { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(244,238,227,.75); }
.stage__away i { width: 8px; height: 8px; border-radius: 50%; background: var(--seal); animation: player-pulse 1.6s ease-in-out infinite; }
.stage__away button { padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(244,238,227,.3); background: rgba(244,238,227,.08); color: var(--paper); font: 500 14px/1 var(--f-body); cursor: pointer; }
.stage__away button:hover { background: rgba(244,238,227,.18); }
.odt__stage.is-away .odt__art { opacity: 0; visibility: hidden; }
