/* Movies page (movies.html, assets/js/movies.js, assets/js/video-theatre.js).
   White and ink like the rest of the site: Caslon titles, 2px corners, hairline rules, media first. The only dark
   surface is the theatre, where the picture is the point. */

.movies-page { width: 100%; max-width: 1560px; margin: 0 auto; padding: 20px 20px 80px; min-width: 0; }
.mv-head { margin-bottom: 18px; }
.mv-head h1 { margin: 0; }
.mv-sub { margin: 4px 0 0; color: var(--text-muted); }
.mv-kicker { margin: 0 0 8px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.movies-page [hidden] { display: none !important; }
.movies-page #hero-promo[data-page="movies"] .hero-slides, .movies-page #hero-promo[data-page="movies"].hero-slides { margin: 0 0 28px; }

/* Now showing: one big title, with a moving preview that fades over the still. */
.mv-marquee { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 28px; align-items: center; margin: 0 0 32px; }
.mv-mq-art { position: relative; aspect-ratio: 16 / 9; background: color-mix(in srgb, var(--text) 8%, var(--bg)); overflow: hidden; border-radius: 2px; }
.mv-mq-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mv-mq-live { opacity: 0; animation: mv-fade 7s ease-in-out 1.2s infinite alternate; }
@keyframes mv-fade { 0%, 12% { opacity: 0; } 35%, 100% { opacity: 1; } }
.mv-mq-body h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.12; margin: 0 0 8px; }
.mv-mq-by { margin: 0 0 18px; color: var(--text-muted); }
.mv-mq-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mv-primary, .mv-ghost { width: auto; padding: 12px 22px; border-radius: 2px; font-weight: 700; cursor: pointer; border: 1.5px solid var(--text); }
.mv-primary { background: var(--text); color: var(--bg); }
.mv-ghost { background: transparent; color: var(--text); }

/* Fill my evening + length: the two ways in that need no browsing. */
.mv-tools { display: flex; flex-wrap: wrap; gap: 20px 48px; padding: 16px 0 20px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 28px; }
.mv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mv-chips button { width: auto; padding: 8px 16px; border-radius: 2px; background: transparent; color: var(--text); border: 1px solid var(--text); font-weight: 600; cursor: pointer; }
.mv-chips button:hover, .mv-chips button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.mv-note { margin: 8px 0 0; min-height: 1.2em; font-size: 0.88rem; color: var(--text-muted); }

/* Shelves */
.mv-shelf { margin: 0 0 34px; min-width: 0; }
.mv-shelf-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 12px; }
.mv-shelf-head h2 { margin: 0; font-family: var(--font-serif); font-weight: 400; }
.mv-shelf-head p { margin: 0; font-size: 0.88rem; }
.mv-rail { display: flex; gap: 18px; overflow-x: auto; padding: 2px 0 12px; scroll-snap-type: x proximity; scrollbar-width: thin; min-width: 0; }

.mv-tile, .mv-prog-card { flex: 0 0 280px; width: 280px; padding: 0; background: none; border: 0; border-radius: 0; text-align: left; color: inherit; cursor: pointer; scroll-snap-align: start; display: flex; flex-direction: column; gap: 0; }
.mv-poster, .mv-stack { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px; background: color-mix(in srgb, var(--text) 8%, var(--bg)); }
.mv-poster img, .mv-stack img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.mv-tile:hover .mv-poster img, .mv-tile:focus-visible .mv-poster img, .mv-prog-card:hover .mv-stack img { transform: scale(1.03); }
.mv-tile:focus-visible, .mv-prog-card:focus-visible, .mv-chips button:focus-visible, .mv-primary:focus-visible, .mv-ghost:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.mv-dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 2px; background: rgba(0, 0, 0, 0.78); color: #fff; font-family: var(--font-mono); font-size: 0.72rem; }
.mv-play { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: #111; font-size: 0.9rem; opacity: 0; transform: scale(.9); transition: opacity .2s ease, transform .2s ease; }
.mv-tile:hover .mv-play, .mv-tile:focus-visible .mv-play { opacity: 1; transform: scale(1); }
.mv-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, 0.35); }
.mv-prog i { display: block; height: 100%; background: #fff; }
.mv-title { display: block; margin-top: 9px; font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mv-by { display: block; margin-top: 2px; font-size: 0.84rem; color: var(--text-muted); }

/* A programme is a small stack of frames: the offset edges say "more than one". */
.mv-stack { box-shadow: 5px 5px 0 -1px var(--bg), 5px 5px 0 0 var(--text), 10px 10px 0 -1px var(--bg), 10px 10px 0 0 color-mix(in srgb, var(--text) 45%, transparent); margin: 0 10px 10px 0; }

.mv-empty { text-align: center; padding: 70px 20px; }
.mv-empty h2 { font-family: var(--font-serif); font-weight: 400; }

/* Theatre: lights down. */
body.theatre-open { overflow: hidden; }
.theatre { position: fixed; inset: 0; z-index: 1000; background: #0b0b0b; color: #f4f1ea; display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-rows: auto 1fr; overflow: auto; animation: th-in .22s ease-out; }
@keyframes th-in { from { opacity: 0; } to { opacity: 1; } }
.theatre[hidden] { display: none; }
.theatre-bar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; }
.theatre-close { width: auto; padding: 8px 14px; border-radius: 2px; background: transparent; color: #f4f1ea; border: 1px solid rgba(244, 241, 234, 0.5); cursor: pointer; font-weight: 600; }
.theatre-close:hover, .theatre-close:focus-visible { background: #f4f1ea; color: #0b0b0b; outline: none; }
.theatre-close kbd { margin-left: 6px; opacity: .6; font-family: var(--font-mono); font-size: .7rem; }
.theatre-auto { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; cursor: pointer; }
.theatre-auto input { width: 18px; height: 18px; accent-color: #f4f1ea; }
.theatre-main { padding: 0 20px 28px; min-width: 0; }
.theatre-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 190px); background: #000; border-radius: 2px; overflow: hidden; margin: 0 auto; }
.theatre-stage mux-player { --controls: auto; }
.theatre-loading img, .theatre-inter > img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .5; }
.theatre-info { padding-top: 14px; }
.theatre-title { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.3rem, 2.4vw, 1.9rem); color: #f4f1ea; }
.theatre-artist { color: rgba(244, 241, 234, 0.75); text-decoration: underline; text-decoration-color: rgba(244, 241, 234, 0.35); text-underline-offset: 4px; }
.theatre-msg { margin: 8px 0 0; min-height: 1.2em; font-size: 0.85rem; color: rgba(244, 241, 234, 0.6); }

/* Intermission: the next title card sits over the end of the video. */
.theatre-inter { position: absolute; inset: 0; background: #000; display: grid; animation: th-in .3s ease-out; }
.theatre-inter > img { position: absolute; inset: 0; }
.theatre-inter-card { position: relative; align-self: end; padding: clamp(16px, 4vw, 40px); background: linear-gradient(to top, rgba(0,0,0,.92), rgba(0,0,0,0)); }
.theatre-inter-k { margin: 0 0 6px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(244,241,234,.7); }
.theatre-inter-card h3 { margin: 0 0 4px; font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.3rem, 3vw, 2rem); color: #f4f1ea; }
.theatre-inter-card p { margin: 0; color: rgba(244,241,234,.8); }
.theatre-inter-count { margin-top: 10px !important; min-height: 1.2em; }
.theatre-inter-actions { display: flex; gap: 10px; margin-top: 14px; }
.theatre-inter-actions button { width: auto; padding: 10px 20px; border-radius: 2px; cursor: pointer; font-weight: 700; border: 1.5px solid #f4f1ea; }
.ti-now { background: #f4f1ea; color: #0b0b0b; }
.ti-stay { background: transparent; color: #f4f1ea; }

.theatre-queue { padding: 0 20px 28px 0; min-width: 0; }
.theatre-queue h3 { margin: 0 0 10px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(244,241,234,.6); font-weight: 400; }
.theatre-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.theatre-list button { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; width: 100%; padding: 0; background: none; border: 0; border-radius: 0; text-align: left; color: #f4f1ea; cursor: pointer; align-items: start; }
.theatre-list img { width: 112px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; background: #1c1c1c; }
.theatre-list strong { display: block; font-family: var(--font-serif); font-weight: 400; font-size: .98rem; line-height: 1.25; }
.theatre-list small { display: block; margin-top: 2px; color: rgba(244,241,234,.6); font-size: .8rem; }
.theatre-list button:hover strong, .theatre-list button:focus-visible strong { text-decoration: underline; text-underline-offset: 3px; }
.theatre-list button:focus-visible { outline: 2px solid #f4f1ea; outline-offset: 3px; }
.theatre-empty { color: rgba(244,241,234,.6); font-size: .88rem; }

@media (max-width: 900px) {
  .mv-marquee { grid-template-columns: 1fr; gap: 14px; }
  .theatre { grid-template-columns: 1fr; }
  .theatre-queue { padding: 0 20px 28px; }
  .theatre-stage { max-height: none; }
  .mv-tile, .mv-prog-card { flex-basis: 232px; width: 232px; }
}
@media (prefers-reduced-motion: reduce) {
  .mv-mq-live { animation: none; }
  .theatre, .theatre-inter { animation: none; }
  .mv-poster img, .mv-stack img, .mv-play { transition: none; }
}

/* ── Format tabs ── */
.mv-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; position: sticky; top: 0; z-index: 5; padding: 10px 0; background: var(--bg); border-bottom: 1px solid var(--rule); }
.mv-tabs button { width: auto; padding: 8px 20px; border-radius: 2px; background: transparent; color: var(--text); border: 1px solid var(--text); font-weight: 700; cursor: pointer; }
.mv-tabs button[aria-pressed="true"], .mv-tabs button:hover { background: var(--text); color: var(--bg); }
.mv-tabs button:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* ── Cells: a tile plus its My List button ── */
.mv-cell { position: relative; flex: 0 0 280px; width: 280px; scroll-snap-align: start; }
.mv-cell .mv-tile { flex: none; width: 100%; }
.mv-add { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.85); background: rgba(0,0,0,.6); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s ease; }
.mv-cell:hover .mv-add, .mv-add:focus-visible, .mv-add[aria-pressed="true"], .mv-cell:focus-within .mv-add { opacity: 1; }
@media (hover: none) { .mv-add { opacity: 1; } }
.mv-add:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.mv-rate { position: absolute; left: 8px; top: 8px; padding: 1px 6px; border: 1px solid rgba(255,255,255,.85); border-radius: 2px; color: #fff; background: rgba(0,0,0,.55); font-family: var(--font-mono); font-size: .68rem; }

/* Top 10: a big outlined number to the left of the poster, like a billboard. */
.mv-top10 .mv-cell { flex-basis: 250px; width: 250px; padding-left: 62px; }
.mv-num { position: absolute; left: 0; bottom: 38px; font-family: var(--font-serif); font-size: 6.6rem; line-height: .8; font-weight: 700; color: var(--bg); -webkit-text-stroke: 2px var(--text); letter-spacing: -.06em; pointer-events: none; }

/* Shorts: tall posters, and a grid when the Shorts tab is open. */
.mv-short { flex-basis: 170px; width: 170px; }
.mv-short .mv-poster { aspect-ratio: 9 / 16; }
.mv-rail.mv-grid { flex-wrap: wrap; overflow: visible; }
.mv-rail.mv-grid .mv-cell { flex-basis: 220px; width: 220px; }
.mv-rail.mv-grid .mv-short { flex-basis: 180px; width: 180px; }

/* ── Series page ── */
.mv-sheet { position: fixed; inset: 0; z-index: 990; background: rgba(0,0,0,.72); overflow: auto; display: grid; place-items: start center; padding: 4vh 16px; animation: th-in .2s ease-out; }
.mv-sheet[hidden] { display: none; }
.mv-sheet-card { position: relative; width: min(860px, 100%); background: var(--bg); color: var(--text); border-radius: 2px; overflow: hidden; }
.mv-sheet-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: auto; padding: 6px 14px; border-radius: 2px; background: rgba(0,0,0,.65); color: #fff; border: 1px solid rgba(255,255,255,.7); cursor: pointer; font-weight: 600; }
.mv-sheet-hero { aspect-ratio: 16 / 7; overflow: hidden; background: #111; }
.mv-sheet-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mv-sheet-body { padding: 20px clamp(16px, 4vw, 32px) 28px; }
.mv-sheet-body h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0 0 4px; }
.mv-sheet-desc { max-width: 62ch; line-height: 1.55; }
.mv-sheet .mv-mq-actions { align-items: center; }
.mv-sheet .mv-add { position: static; opacity: 1; width: auto; height: auto; padding: 12px 18px; border-radius: 2px; background: transparent; color: var(--text); border: 1.5px solid var(--text); font-size: .95rem; font-weight: 700; }
.mv-season { display: block; margin: 18px 0 8px; }
.mv-season select { width: auto; margin-left: 8px; }
.mv-eps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.mv-eps button { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; width: 100%; padding: 10px 0; background: none; border: 0; border-top: 1px solid var(--rule); border-radius: 0; text-align: left; color: inherit; cursor: pointer; align-items: center; }
.mv-eps img { width: 132px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; background: color-mix(in srgb, var(--text) 8%, var(--bg)); }
.mv-eps strong { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 1.02rem; }
.mv-eps small { color: var(--text-muted); }
.mv-eps button:hover strong, .mv-eps button:focus-visible strong { text-decoration: underline; text-underline-offset: 3px; }
.mv-eps button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.mv-prog-line { position: relative; display: block; height: 3px; margin-top: 6px; background: var(--rule); }
.mv-prog-line i { background: var(--text); }

/* ── Theatre extras: badges, actions, chapters, skip intro, next up ── */
.theatre-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.theatre-badges:empty { display: none; }
.theatre-badges span { padding: 1px 8px; border: 1px solid rgba(244,241,234,.5); border-radius: 2px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(244,241,234,.8); }
.theatre-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.theatre-actions button { width: auto; padding: 8px 16px; border-radius: 2px; background: transparent; color: #f4f1ea; border: 1px solid rgba(244,241,234,.55); cursor: pointer; font-weight: 600; }
.theatre-actions button:hover, .theatre-actions button:focus-visible, .theatre-actions button[aria-pressed="true"] { background: #f4f1ea; color: #0b0b0b; outline: none; }
.theatre-desc { margin: 12px 0 0; max-width: 70ch; line-height: 1.55; color: rgba(244,241,234,.8); }
.theatre-desc:empty { display: none; }
.theatre-chapters { margin-top: 16px; }
.theatre-chapters h3 { margin: 0 0 8px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; color: rgba(244,241,234,.6); }
.theatre-chapters ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.theatre-chapters button { width: auto; padding: 5px 12px; border-radius: 2px; background: transparent; color: #f4f1ea; border: 1px solid rgba(244,241,234,.35); cursor: pointer; font-size: .85rem; }
.theatre-chapters button:hover, .theatre-chapters button:focus-visible { border-color: #f4f1ea; outline: none; }
.theatre-chapters time { font-family: var(--font-mono); opacity: .65; margin-right: 6px; }
.theatre-skip { position: absolute; right: 18px; bottom: 76px; z-index: 3; width: auto; padding: 10px 18px; border-radius: 2px; background: rgba(11,11,11,.82); color: #f4f1ea; border: 1px solid #f4f1ea; font-weight: 700; cursor: pointer; }
.theatre-skip:hover, .theatre-skip:focus-visible { background: #f4f1ea; color: #0b0b0b; }
.theatre-nextup { position: absolute; right: 18px; bottom: 76px; z-index: 3; width: auto; max-width: 280px; padding: 10px 16px; border-radius: 2px; text-align: left; background: rgba(11,11,11,.85); color: #f4f1ea; border: 1px solid rgba(244,241,234,.6); cursor: pointer; display: grid; gap: 2px; }
.theatre-nextup span { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; opacity: .65; }
.theatre-nextup strong { font-family: var(--font-serif); font-weight: 400; }

/* ── Mature gate: one question, once ── */
.mature-gate { position: absolute; inset: 0; z-index: 4; display: grid; align-content: center; justify-items: center; gap: 8px; padding: 24px; text-align: center; background: rgba(0,0,0,.82); color: #f4f1ea; }
.mature-gate p { margin: 0; max-width: 34ch; line-height: 1.45; }
.mature-gate-k { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.mature-gate-actions { margin-top: 10px; }
.mature-gate-btn { display: inline-block; width: auto; padding: 10px 22px; border-radius: 2px; background: #f4f1ea; color: #0b0b0b; border: 1.5px solid #f4f1ea; font-weight: 700; cursor: pointer; text-decoration: none; }
.mature-gate-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.mature-gate-note { font-size: .78rem; opacity: .6; }

/* ── Shorts feed ── */
.shorts { position: fixed; inset: 0; z-index: 1010; background: #000; color: #f4f1ea; animation: th-in .2s ease-out; }
.shorts[hidden] { display: none; }
.shorts-close, .shorts-sound { position: absolute; top: 14px; z-index: 3; width: auto; padding: 8px 14px; border-radius: 2px; background: rgba(0,0,0,.55); color: #fff; border: 1px solid rgba(255,255,255,.7); cursor: pointer; font-weight: 600; }
.shorts-close { left: 14px; }
.shorts-sound { right: 14px; }
.shorts-close kbd { margin-left: 6px; opacity: .6; font-family: var(--font-mono); font-size: .7rem; }
.shorts-feed { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.shorts-feed::-webkit-scrollbar { display: none; }
.shorts-item { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: grid; place-items: center; }
.shorts-stage { position: relative; height: 100%; max-height: 100vh; aspect-ratio: 9 / 16; max-width: 100%; background: #0b0b0b; overflow: hidden; }
.shorts-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shorts-stage mux-player { position: absolute; inset: 0; z-index: 1; }
.shorts-meta { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 2; width: min(100%, calc(100vh * 9 / 16)); padding: 56px 16px 22px; background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,0)); pointer-events: none; }
.shorts-meta > * { pointer-events: auto; }
.shorts-artist { color: #fff; font-weight: 700; text-decoration: none; }
.shorts-artist:hover { text-decoration: underline; }
.shorts-title { margin: 4px 0 10px; font-family: var(--font-serif); font-size: 1.1rem; line-height: 1.3; }
.shorts-actions { display: flex; gap: 10px; }
.shorts-actions button { width: auto; padding: 7px 14px; border-radius: 2px; background: rgba(0,0,0,.45); color: #fff; border: 1px solid rgba(255,255,255,.7); cursor: pointer; font-weight: 600; }
.shorts-actions button[aria-pressed="true"] { background: #fff; color: #000; }
.shorts-bar { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 3; width: min(100%, calc(100vh * 9 / 16)); height: 3px; background: rgba(255,255,255,.25); }
.shorts-bar i { display: block; height: 100%; width: 0; background: #fff; }
@media (max-width: 900px) {
  .mv-cell { flex-basis: 232px; width: 232px; }
  .mv-top10 .mv-cell { flex-basis: 214px; width: 214px; padding-left: 52px; }
  .mv-num { font-size: 5.4rem; }
  .mv-short { flex-basis: 150px; width: 150px; }
  .mv-eps button { grid-template-columns: 110px minmax(0, 1fr); }
  .mv-eps img { width: 110px; }
}
@media (prefers-reduced-motion: reduce) { .mv-sheet, .shorts { animation: none; } .mv-add { transition: none; } }
