/* Kaitu TV's front page (/tv) — the same look as On Demand: a dark hero running up behind the header, Fraunces
   headlines, Kaitu red and ochre; poster shelves exactly as On Demand draws them. */
html.tv-dark-top .tvp-hero { margin-top: 0; }
.tvp-hero { position: relative; min-height: clamp(640px, 92vh, 860px); display: flex; align-items: flex-end; overflow: hidden; background: var(--night); color: var(--paper); isolation: isolate; }
/* a slow-moving wall of the library's posters */
.tvp-wall { position: absolute; inset: -14% -20%; display: grid; grid-template-rows: repeat(4, 1fr); gap: 14px; transform: rotate(-7deg); z-index: -2; opacity: .55; }
.tvp-wall__row { display: flex; gap: 14px; width: max-content; animation: tvp-drift 140s linear infinite; animation-direction: var(--d-dir, normal); }
.tvp-wall__row[style*="--d:-1"] { animation-direction: reverse; }
.tvp-wall__row img { height: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; background: #2A2520; }
@keyframes tvp-drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tvp-wall__row { animation: none; } }
.tvp-hero__shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(20,18,14,.86) 0%, rgba(20,18,14,.35) 22%, rgba(20,18,14,.4) 50%, rgba(20,18,14,.96) 100%),
  radial-gradient(120% 90% at 18% 80%, rgba(20,18,14,.92), transparent 70%); }
.tvp-hero__copy { padding-top: clamp(190px, 22vw, 250px); padding-bottom: clamp(48px, 7vw, 86px); display: grid; gap: 18px; justify-items: start; }
.tvp-eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 11.5px/1.2 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ochre); }
.tvp-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--seal); box-shadow: 0 0 0 4px rgba(200,55,45,.25); animation: player-pulse 1.6s ease-in-out infinite; }
.tvp-title { font-family: var(--f-display); font-weight: 400; font-variation-settings: 'opsz' 144; font-size: clamp(2.9rem, 1.2rem + 6.4vw, 6.6rem); line-height: .94; letter-spacing: -.035em; max-width: 13ch; }
.tvp-title em, .tvp-h2 em { font-style: italic; color: var(--seal); }
.tvp-hero .tvp-title em { color: #F07A6E; }
.tvp-lede { max-width: 56ch; font-size: clamp(1rem, .95rem + .35vw, 1.2rem); line-height: 1.6; color: rgba(244,238,227,.86); }
.tvp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.tvp-cta .btn svg { width: 16px; height: 16px; fill: currentColor; margin-right: 6px; }
.tvp-ghost { --bg: rgba(244,238,227,.12); --fg: var(--paper); --bd: rgba(244,238,227,.3); backdrop-filter: blur(6px); }
.tvp-stats { display: flex; flex-wrap: wrap; gap: 10px 34px; margin-top: 18px; padding-top: 20px; border-top: 1px solid rgba(244,238,227,.16); }
.tvp-stats div { display: grid; gap: 4px; }
.tvp-stats dt { font: 500 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(244,238,227,.6); }
.tvp-stats dd { margin: 0; font-family: var(--f-display); font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); line-height: 1; }

/* sections */
.tvp-sec { padding: clamp(64px, 8vw, 110px) 0 0; }
.tvp-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px 24px; margin-bottom: clamp(20px, 3vw, 30px); }
.tvp-kicker { grid-column: 1 / -1; font: 500 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--seal); }
.tvp-h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; }
.tvp-more { font: 500 14px/1 var(--f-body); color: var(--ink); text-decoration: none; padding-bottom: 6px; white-space: nowrap; }
.tvp-more span { display: inline-block; transition: translate var(--t) var(--ease-spring); }
.tvp-more:hover { color: var(--seal); } .tvp-more:hover span { translate: 4px 0; }

/* on now: every channel, what it is playing and how far it has run */
.tvp-chans { display: flex; flex-wrap: wrap; gap: 12px; } /* the last row's cards stretch: every row full */
.tvp-chans > .tvp-chan { flex: 1 1 270px; min-width: 0; }
.tvp-chan { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 14px 12px 12px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: inherit; text-decoration: none; transition: box-shadow var(--t-fast), translate var(--t) var(--ease-spring); }
.tvp-chan:hover { box-shadow: inset 0 0 0 1.5px var(--seal), 0 14px 30px -18px rgba(26,23,18,.45); translate: 0 -2px; }
.tvp-chan__logo { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 14px; background: var(--paper); }
.tvp-chan__logo img { width: 58px; height: 58px; }
.tvp-chan__txt { display: grid; gap: 5px; min-width: 0; }
.tvp-chan__txt b { font-weight: 500; font-size: 15px; }
.tvp-chan__now { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.3em; }
.tvp-chan__bar { display: block; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.tvp-chan__bar i { display: block; height: 100%; width: 0; background: var(--seal); border-radius: 3px; }

/* the world's screens */
.tvp-regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.tvp-region { position: relative; display: grid; align-content: end; gap: 4px; min-height: 210px; padding: 18px; border-radius: 20px; overflow: hidden; background: var(--night); color: var(--paper); text-decoration: none; isolation: isolate; }
.tvp-region__art { position: absolute; inset: 0; z-index: -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.tvp-region__art img { width: 100%; height: 100%; object-fit: cover; transition: scale .8s var(--ease-out); }
.tvp-region::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,18,14,.15), rgba(20,18,14,.88) 78%); }
.tvp-region:hover .tvp-region__art img { scale: 1.06; }
.tvp-region b { font-family: var(--f-display); font-weight: 400; font-size: 1.45rem; line-height: 1.1; }
.tvp-region span { font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(244,238,227,.72); }
.tvp-region:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; }

/* why */
.tvp-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.tvp-feat { padding: 24px 22px 26px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.tvp-feat__ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--seal-tint); color: var(--seal); margin-bottom: 16px; }
.tvp-feat--curated .tvp-feat__ic { background: var(--ochre-tint); color: #A86F12; }
.tvp-feat--every .tvp-feat__ic { background: var(--indigo-tint); color: var(--indigo); }
.tvp-feat--world .tvp-feat__ic { background: var(--jade-tint); color: var(--jade); }
.tvp-feat__ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tvp-feat h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; line-height: 1.15; }
.tvp-feat p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2, #4A443B); }

/* mission */
.tvp-mission { margin-top: clamp(64px, 8vw, 110px); padding: clamp(64px, 9vw, 120px) 0; background: var(--night); color: var(--paper); }
.tvp-mission__in { display: grid; gap: 22px; max-width: 980px; }
.tvp-mission__q { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.6rem); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.tvp-mission__q em { font-style: italic; color: #F07A6E; }
.tvp-mission__p { max-width: 62ch; font-size: 1.05rem; line-height: 1.7; color: rgba(244,238,227,.78); }

/* questions */
.tvp-faq__in { max-width: 920px; }
.tvp-qs { display: grid; gap: 10px; }
.tvp-q { border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.tvp-q summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; font-weight: 500; font-size: 15.5px; }
.tvp-q summary::-webkit-details-marker { display: none; }
.tvp-q summary span { width: 12px; height: 12px; flex: none; border-right: 2px solid var(--seal); border-bottom: 2px solid var(--seal); transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--t) var(--ease-out); }
.tvp-q[open] summary span { transform: rotate(-135deg) translate(-2px, -2px); }
.tvp-q p { padding: 0 20px 20px; font-size: 14.5px; line-height: 1.65; color: var(--ink-2, #4A443B); max-width: 70ch; }

/* the last word */
.tvp-end { margin-top: clamp(64px, 8vw, 110px); padding: clamp(56px, 8vw, 100px) 0; background: radial-gradient(90% 120% at 50% 0%, #2A1C17, var(--night) 70%); color: var(--paper); text-align: center; }
.tvp-end__in { display: grid; gap: 22px; justify-items: center; }
.tvp-end .tvp-h2 em { color: #F07A6E; }

@media (max-width: 760px) {
  .tvp-hero { min-height: 720px; }
  .tvp-wall { inset: -20% -60%; }
  .tvp-head { grid-template-columns: minmax(0, 1fr); }
  .tvp-more { justify-self: start; }
  .tvp-stats { gap: 14px 24px; }
}
.tvp-od { --od-poster: clamp(128px, 11vw, 168px); }
