/* Theater: laid out like Netflix (billboard, rows that grow when hovered, a title page), drawn in the VOID theme.
   No gradients: fades at the edges of pictures are shadows. */
.view.is-bleed { width: 100%; padding-block: 0 var(--s-8); }
.theater { padding-bottom: 5rem; overflow-x: clip; }
.theater a { color: inherit; text-decoration: none; }

/* Top bar: floats over the billboard and turns solid once the page scrolls */
.th-sentinel { height: 1px; }
.th-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); height: 4.5rem; margin: -1px 0 -4.5rem; padding: 0 var(--s-6); transition: background var(--dur) var(--ease-out); }
.th-bar.is-solid { background: var(--bg-0); box-shadow: 0 1px 0 var(--line); }
.th-tabs { display: flex; gap: var(--s-1); overflow-x: auto; scrollbar-width: none; }
.th-tabs button { padding: 0.45rem 0.95rem; border: 0; border-radius: 999px; background: none; color: rgb(var(--fg-rgb) / 0.72); font: inherit; font-weight: 600; white-space: nowrap; cursor: pointer; transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); }
.th-tabs button:hover { color: var(--white); }
.th-tabs button.is-active { color: var(--black); background: var(--white); }
.th-search { display: flex; align-items: center; border: 1px solid transparent; border-radius: 999px; transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out); }
.th-search.is-open { border-color: var(--line-strong); background: color-mix(in srgb, var(--bg-0) 80%, transparent); }
.th-search-open { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 0; background: none; color: var(--white); cursor: pointer; }
.th-search-open svg { width: 1.375rem; height: 1.375rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.th-search input { width: 0; padding: 0; border: 0; background: none; color: var(--white); font: inherit; opacity: 0; transition: width var(--dur-slow) var(--ease-out), opacity var(--dur) var(--ease-out), padding var(--dur) var(--ease-out); }
.th-search input:focus { outline: none; }
.th-search.is-open input { width: min(16rem, 46vw); padding: 0 var(--s-3) 0 0; opacity: 1; }

/* Billboard */
.th-hero { position: relative; display: flex; align-items: flex-end; height: clamp(28rem, 82vh, 48rem); overflow: hidden; background: var(--bg-1); }
.th-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.th-hero::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--bg-0) 22%, transparent); box-shadow: inset 0 -14rem 9rem -7rem var(--bg-0), inset 24rem 0 14rem -12rem color-mix(in srgb, var(--bg-0) 90%, transparent); pointer-events: none; }
.th-hero-info { position: relative; z-index: 2; display: grid; gap: var(--s-3); max-width: 38rem; padding: 0 var(--s-6) 8rem; }
.th-hero-info h1 { margin: 0; font-size: clamp(2.25rem, 6vw, 4.5rem); line-height: 1.02; }
.th-hero-text { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: clamp(0.95rem, 1.4vw, 1.125rem); }
.th-hero-meta, .th-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin: 0; color: var(--muted); font-size: 0.9375rem; }
.th-hero-meta strong, .th-meta strong, .th-pop-meta strong { color: var(--accent); }
.th-pill { padding: 0.05rem 0.5rem; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 0.8125rem; color: var(--white); }
.th-hero-buttons, .th-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.th-btn { display: inline-flex; align-items: center; gap: var(--s-2); padding: 0.7rem 1.6rem; border: 0; border-radius: var(--r-md); background: rgb(var(--fg-rgb) / 0.22); color: var(--white); font: inherit; font-size: 1.0625rem; font-weight: 700; cursor: pointer; transition: background var(--dur-fast) var(--ease-out), scale var(--dur-fast) var(--ease-spring); }
.th-btn:hover { background: rgb(var(--fg-rgb) / 0.34); }
.th-btn:active { scale: 0.97; }
.th-btn svg { width: 1.375rem; height: 1.375rem; fill: currentColor; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.th-btn-solid { background: var(--white); color: var(--black); }
.th-btn-solid:hover { background: var(--white-2); }
[data-list-toggle] svg { fill: none; }

/* Rows */
.th-rows { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-2); margin-top: -6rem; }
.th-rows-top { margin-top: 0; padding-top: 6rem; }
.th-heading { margin: 0 var(--s-6) var(--s-4); font-size: clamp(1.75rem, 4vw, 2.5rem); }
.th-row { content-visibility: auto; contain-intrinsic-size: auto 15rem; }
.th-row h2 { margin: 0; padding: 0 var(--s-6); font-size: 1.25rem; }
.th-row-wrap { position: relative; }
.th-scroll { display: flex; gap: 0.4rem; padding: 1.75rem var(--s-6); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--s-6); overscroll-behavior-x: contain; scrollbar-width: none; }
.th-scroll::-webkit-scrollbar { display: none; }
.th-arrow { position: absolute; top: 1.75rem; bottom: 1.75rem; z-index: 10; display: grid; place-items: center; width: 2rem; padding: 0; border: 0; background: color-mix(in srgb, var(--bg-0) 60%, transparent); color: var(--white); opacity: 0; cursor: pointer; transition: opacity var(--dur) var(--ease-out); }
.th-arrow svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.th-arrow-prev { left: 0; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.th-arrow-next { right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); }
.th-row-wrap:hover .th-arrow { opacity: 1; }
.th-row-wrap:not(.can-left) .th-arrow-prev, .th-row-wrap.at-end .th-arrow-next { display: none; }

/* A title grows when hovered and shows its buttons, as on Netflix */
.th-card { position: relative; flex: 0 0 clamp(11rem, 17vw, 17rem); scroll-snap-align: start; transition: transform 0.28s var(--ease-out) 0.2s, z-index 0s 0.2s; }
.th-card:hover, .th-card:has(:focus-visible) { z-index: 8; transform: translateX(var(--shift, 0px)) scale(1.28); }
.th-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-sm); background: var(--bg-2); }
.th-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.th-thumb::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -3.5rem 2.5rem -1.5rem rgb(0 0 0 / 0.78); pointer-events: none; }
.th-name { position: absolute; left: 0.6rem; right: 0.6rem; bottom: 0.5rem; z-index: 1; overflow: hidden; color: #fff; font-size: 0.875rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 6px rgb(0 0 0 / 0.9); transition: opacity var(--dur-fast); }
.th-card:hover .th-name { opacity: 0; }
.th-pop { position: absolute; inset: auto 0 0 0; z-index: 2; display: grid; gap: 0.2rem; padding: 0.55rem 11% 0.65rem; border-radius: 0 0 var(--r-sm) var(--r-sm); background: var(--bg-1); box-shadow: 0 -1px 0 var(--line); opacity: 0; pointer-events: none; transform: translateY(6px); transition: opacity 0.2s ease 0.22s, transform 0.2s ease 0.22s; }
.th-card:hover .th-pop, .th-card:has(:focus-visible) .th-pop { opacity: 1; pointer-events: auto; transform: none; }
.th-pop-buttons { display: flex; align-items: center; gap: 0.35rem; }
.th-round { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; padding: 0; border: 1.5px solid var(--line-strong); border-radius: 50%; background: var(--bg-1); color: var(--white); cursor: pointer; transition: border-color var(--dur-fast); }
.th-round:hover { border-color: var(--white); }
.th-round svg { width: 0.95rem; height: 0.95rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.th-round-solid { background: var(--white); border-color: var(--white); color: var(--black); }
.th-round-solid svg { fill: currentColor; }
.th-stars { color: #f5c518; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.th-stars small { color: var(--muted); font-weight: 400; }
.th-stars-thumb { position: absolute; top: 0.4rem; right: 0.4rem; z-index: 1; padding: 0.1rem 0.4rem; border-radius: 999px; background: rgb(0 0 0 / 0.65); transition: opacity var(--dur-fast); }
.th-card:hover .th-stars-thumb, .th-card:has(:focus-visible) .th-stars-thumb { opacity: 0; }
.th-round-end { margin-left: auto; }
.th-pop-meta, .th-pop-genres { display: flex; gap: 0.5rem; margin: 0; font-size: 0.6875rem; color: var(--muted); }
.th-pop-genres { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: block; }

/* Top 10: big outlined numbers beside tall posters */
.th-ten-item { position: relative; display: flex; flex: 0 0 clamp(13rem, 18vw, 17rem); align-items: flex-end; scroll-snap-align: start; pointer-events: none; }
.th-ten-item a { position: relative; z-index: 1; display: block; width: 58%; pointer-events: auto; }
.th-num { margin-right: -1.4rem; color: var(--bg-0); font-size: clamp(8rem, 12vw, 11rem); font-weight: 800; line-height: 0.78; -webkit-text-stroke: 4px rgb(var(--fg-rgb) / 0.55); }
.th-ten-item img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--r-sm); background: var(--bg-2); transition: scale var(--dur) var(--ease-out); }
.th-ten-item a:hover img { scale: 1.06; }
.th-watch-empty { display: grid; place-content: center; height: 100%; gap: var(--s-2); text-align: center; }
.th-watch-empty h2, .th-watch-empty p { margin: 0; }
.th-watch-empty p { color: var(--muted); }

.th-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 2.75rem 0.5rem; padding: 0 var(--s-6) var(--s-6); }
.th-grid .th-card { flex: none; }
.th-loading { display: grid; place-items: center; height: 18rem; }
.th-note { margin: 0; padding: var(--s-4) var(--s-6); color: var(--muted); }
.th-setup { display: grid; gap: var(--s-2); max-width: 36rem; margin: 10rem auto 0; padding: 0 var(--s-5); text-align: center; }
.th-setup h2 { margin: 0; }
.th-setup .th-note { padding: 0; }
.th-credit { max-width: 46rem; margin: var(--s-7, 3rem) auto 0; padding: 0 var(--s-5); color: var(--muted); font-size: 0.75rem; text-align: center; }

/* Title page: the video on top, then what it is about */
.th-title-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); max-width: 88rem; margin-inline: auto; padding: 5.5rem var(--s-6) 0; }
.th-back { justify-self: start; display: inline-flex; align-items: center; gap: var(--s-2); padding: 0.4rem 0.9rem 0.4rem 0.6rem; border: 1px solid var(--line-strong); border-radius: 999px; background: none; color: var(--white); font: inherit; cursor: pointer; }
.th-back svg { width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.th-back:hover { background: rgb(var(--fg-rgb) / 0.1); }
.th-player { position: relative; width: min(100%, calc(70vh * 16 / 9)); justify-self: center; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: #000; }
.th-player iframe, .th-player-art { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.th-player-art { box-shadow: inset 0 0 0 100vmax rgb(0 0 0 / 0.35); }
.th-player-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 5rem; height: 5rem; padding: 0; translate: -50% -50%; border: 0; border-radius: 50%; background: var(--white); color: var(--black); cursor: pointer; transition: scale var(--dur) var(--ease-spring); }
.th-player-play:hover { scale: 1.1; }
.th-player-play svg { width: 2.25rem; height: 2.25rem; fill: currentColor; margin-left: 0.2rem; }
.th-player-label { position: absolute; left: var(--s-4); bottom: var(--s-3); padding: 0.15rem 0.7rem; border-radius: 999px; background: rgb(0 0 0 / 0.65); color: #fff; font-size: 0.8125rem; font-weight: 600; }
.th-detail { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--s-6); }
.th-detail-main { display: grid; gap: var(--s-3); align-content: start; }
.th-detail-main h1 { margin: 0; font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.05; }
.th-tagline { margin: 0; color: var(--muted); font-style: italic; }
.th-overview { margin: 0; max-width: 46rem; font-size: 1.0625rem; line-height: 1.55; }
.th-facts { display: grid; gap: var(--s-3); align-content: start; font-size: 0.9375rem; }
.th-facts p { margin: 0; }
.th-facts span { display: block; margin-bottom: 2px; color: var(--muted); font-size: 0.8125rem; }
.th-section { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
.th-section h2 { margin: 0; font-size: 1.375rem; }
.th-section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.th-select { padding: 0.5rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--bg-1); color: var(--white); font: inherit; }
.th-episodes { display: grid; border-top: 1px solid var(--line); }
.th-episode { display: grid; grid-template-columns: 2.5rem 11rem minmax(0, 1fr); align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-3); border-bottom: 1px solid var(--line); border-radius: var(--r-sm); transition: background var(--dur-fast) var(--ease-out); content-visibility: auto; contain-intrinsic-size: auto 7rem; }
.th-episode:hover { background: rgb(var(--fg-rgb) / 0.06); }
.th-ep-num { color: var(--muted); font-size: 1.5rem; text-align: center; }
.th-ep-still { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-sm); background: var(--bg-2); }
.th-ep-still img { width: 100%; height: 100%; object-fit: cover; }
.th-episode h3 { display: flex; justify-content: space-between; gap: var(--s-3); margin: 0 0 0.25rem; font-size: 1rem; }
.th-episode h3 span { color: var(--muted); font-weight: 400; }
.th-episode p { margin: 0; color: var(--muted); font-size: 0.875rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.th-providers { display: flex; flex-wrap: wrap; gap: var(--s-5); }
.th-provider-group { display: flex; align-items: center; gap: var(--s-2); }
.th-provider-group > span { color: var(--muted); font-size: 0.8125rem; margin-right: var(--s-1); }
.th-provider-group img { width: 2.75rem; height: 2.75rem; border-radius: var(--r-sm); }
.th-link { justify-self: start; color: var(--muted); font-size: 0.875rem; text-decoration: underline !important; }
.th-link:hover { color: var(--white); }
.th-cast { display: flex; gap: var(--s-4); padding-bottom: var(--s-3); overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgb(var(--fg-rgb) / 0.28) transparent; } /* slim thumb, no track */
.th-person { display: grid; flex: none; width: 7.5rem; gap: 2px; text-align: center; font-size: 0.8125rem; }
.th-person strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-person > span:last-child { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.th-face { display: grid; place-items: center; width: 5.5rem; height: 5.5rem; margin: 0 auto var(--s-1); overflow: hidden; border-radius: 50%; background: var(--bg-2); font-size: 1.75rem; font-weight: 700; }
.th-face img { width: 100%; height: 100%; object-fit: cover; }
.th-title-page .th-rows { margin-top: 0; margin-inline: calc(-1 * var(--s-6)); }

@media (max-width: 52rem) {
  .th-bar { padding: 0 var(--s-3); }
  .th-hero-info { padding: 0 var(--s-4) 6rem; }
  .th-row h2, .th-scroll, .th-heading, .th-grid, .th-note { padding-inline: var(--s-4); }
  .th-scroll { scroll-padding-inline: var(--s-4); }
  .th-card:hover, .th-card:has(:focus-visible) { transform: none; }
  .th-pop { display: none; }
  .th-detail { grid-template-columns: 1fr; }
  .th-episode { grid-template-columns: 7rem minmax(0, 1fr); }
  .th-ep-num { display: none; }
  .th-title-page { padding-inline: var(--s-4); }
  .th-title-page .th-rows { margin-inline: calc(-1 * var(--s-4)); }
}
@media (hover: none) { .th-arrow { display: none; } }
