/*
 * Presentation only: screening/pricing/confirmation rules stay in the backend.
 * Sections follow the page: shared tokens, programme, voice panel, dialogue,
 * accessibility helpers and responsive overrides. No external fonts or artwork.
 */
:root {
  color-scheme: dark;
  --bg: #131716;
  --panel: #1b211f;
  --line: #35413a;
  --paper: #f3f1e9;
  --muted: #adb6ad;
  --lime: #e7f06b;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}
/* Include borders/padding in control dimensions. Native hidden state must win
   over component display:flex/grid rules, especially the finish field and chat. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--paper); }
button, input, select { font: inherit; }
button, a, select, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: wait; opacity: .55; }
/* Preserve visible keyboard focus without adding an outline to every mouse
   click. The composite finish field supplies its own group-level outline. */
button:focus-visible, a:focus-visible, summary:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 5px;
}
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
p { line-height: 1.6; }
/* Shared horizontal rhythm and the original typographic wordmark. The fictional
   notice remains visible rather than being hidden inside a details disclosure. */
.masthead, main, footer { max-width: 1400px; margin: auto; padding: 0 5vw; }
.masthead { height: 100px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { font-weight: 900; font-size: 34px; letter-spacing: -2px; text-decoration: none; display: flex; flex-direction: column; line-height: .9; }
.brand span { font-size: 9px; letter-spacing: 5px; margin: 10px 0 0 2px; }
.demo-label { color: var(--muted); font-size: 12px; }
.opening { margin: 52px 0 48px; }
h1 { font-weight: 400; font-size: clamp(44px, 5.5vw, 72px); line-height: 1.1; letter-spacing: -3px; }
h1 em { font-family: Georgia, serif; color: var(--lime); }
/* The programme may shrink below its content's natural width; minmax(0, 1fr)
   prevents long titles/controls from forcing horizontal page overflow. */
.cinema-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; gap: 16px; }
.section-heading h2 { font-size: 20px; font-weight: 400; }
.muted { color: var(--muted); font-size: 12px; }
/* Wide screens keep the filter controls on one row. min-width:0 lets native
   inputs shrink within grid cells; breakpoint overrides below stack the row. */
.filters { display: grid; grid-template-columns: 1.25fr 1fr 1.1fr minmax(140px, 1fr) auto; gap: 10px; align-items: end; }
.filters label, .finish-filter { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--muted); min-width: 0; }
input, select { width: 100%; min-width: 0; min-height: 42px; padding: 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); color: var(--paper); font-size: 13px; }
/* Any time and the editable cutoff share one 42px outer frame, so changing mode
   cannot change row height. Child focus is represented by :focus-within; removing
   a child's outline here does not remove the visible group focus indicator. */
.finish-control { display: flex; align-items: center; height: 42px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); color: var(--paper); }
.finish-control:focus-within { outline: 2px solid var(--lime); outline-offset: 5px; }
.finish-control button { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 10px; border: 0; background: transparent; font-size: 13px; }
.finish-control button:focus-visible, .finish-control input:focus-visible { outline: none; }
#finish-any { width: 100%; gap: 8px; }
#finish-any svg { flex-shrink: 0; color: var(--muted); }
#finish-any:hover { color: var(--lime); }
/* Let the time input consume the space left by the fixed-width clear button.
   Hide WebKit's extra picker icon to avoid a second affordance in the compact
   field; the native time control still handles editing and validation. */
.finish-control input { flex: 1; width: 0; height: 40px; min-height: 0; padding: 0 0 0 8px; border: 0; background: transparent; font-variant-numeric: tabular-nums; }
.finish-control input::-webkit-calendar-picker-indicator { display: none; }
#finish-clear { flex: 0 0 32px; justify-content: center; padding: 0; color: var(--muted); }
#finish-clear:hover, #finish-clear:focus-visible { color: var(--paper); background: #ffffff0a; }
.filter-button { min-height: 42px; padding: 10px 14px; background: var(--paper); color: var(--bg); border: 1px solid var(--paper); border-radius: 3px; font-size: 13px; }
.filter-button:hover { background: var(--lime); border-color: var(--lime); }
.programme-note { display: flex; align-items: center; justify-content: space-between; margin: 18px 0; color: var(--muted); font-size: 12px; }
.text-button { background: none; border: 0; padding: 8px 0; color: var(--muted); font-size: 12px; }
.text-button:hover { color: var(--paper); }
/* Original posters are text and catalogue-provided --film/--ink colours, not
   imported images. Keep both columns shrinkable and use one column on phones. */
.film-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
.film { min-width: 0; }
.poster { height: 295px; padding: 26px; background: var(--film); color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.poster-index { align-self: flex-end; opacity: .65; font-size: 12px; }
.poster-title { max-width: 260px; font-family: Georgia, serif; font-size: clamp(34px, 3.5vw, 49px); font-weight: 400; line-height: 1; letter-spacing: -2px; }
.film:nth-child(even) .poster-title { font-style: italic; }
.film-info { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0 8px; }
.film-meta { color: var(--muted); font-size: 12px; }
.screening { flex-shrink: 0; border: 1px solid var(--line); border-radius: 3px; background: transparent; padding: 8px 12px; min-height: 46px; font-size: 14px; }
.screening span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.screening:hover { background: var(--paper); color: var(--bg); }
.screening:hover span { color: #394239; }
/* Native details/summary keeps optional copy keyboard-operable. Summary focus
   is included in the shared focus rule instead of using a custom click target. */
.film-details { font-size: 13px; color: var(--muted); line-height: 1.6; }
.film-details summary { width: fit-content; cursor: pointer; padding: 8px 0; font-size: 12px; }
.film-details p { margin-top: 10px; }
.film-details p:first-of-type { color: var(--paper); }
/* Keep voice actions in reach on desktop. Mobile layout removes sticky positioning
   and places the panel before the programme, without changing DOM reading order. */
.box-office { position: sticky; top: 28px; padding: 26px; border: 1px solid var(--line); border-radius: 4px; }
.box-office h2 { font-family: Georgia, serif; font-size: 28px; font-weight: 400; letter-spacing: -.7px; }
/* Fixed bar proportions provide the shape; --mic-level, written by app.js from
   measured input, controls their scale. There is no autonomous speaking animation
   that could misleadingly suggest the microphone is hearing sound. */
.voice-art { display: flex; align-items: center; justify-content: center; gap: 5px; height: 100px; }
.voice-art span { width: 4px; height: 16px; border-radius: 3px; background: var(--lime); }
.voice-art span:nth-child(2n) { height: 28px; }
.voice-art span:nth-child(3n) { height: 46px; }
.voice-art span:nth-child(4n) { height: 36px; }
.voice-art span { transform: scaleY(calc(.18 + var(--mic-level, 0) * .82)); transition: transform .1s; }
/* Diagnostics stay inside a compact native disclosure until opened by the user
   or a warning. The waveform is visual only; these status labels carry meaning. */
.mic-controls { margin-top: 14px; font-size: 12px; color: var(--muted); }
.mic-controls summary { cursor: pointer; width: fit-content; padding: 6px 0; }
.mic-controls select { margin-top: 8px; }
#mic-status { font-size: 12px; }
.primary { display: flex; align-items: center; justify-content: space-between; gap: 15px; width: 100%; min-height: 48px; padding: 14px 16px; background: var(--lime); color: #202719; border: 0; border-radius: 3px; font-size: 14px; }
.primary:hover { background: #f0f795; }
.voice-status { margin-top: 16px; color: var(--muted); font-size: 12px; }
.privacy { margin-top: 8px; color: var(--muted); font-size: 11px; }
/* Bound the visible transcript height while JavaScript separately caps retained
   message rows. The chat form is hidden when no conversation is active. */
.transcript { max-height: 260px; overflow-y: auto; scrollbar-width: thin; }
.utterance { margin-top: 16px; font-size: 13px; }
.utterance strong { display: block; color: var(--muted); font-size: 11px; margin-bottom: 3px; }
.chat { display: flex; gap: 6px; margin-top: 16px; }
.chat button { background: var(--lime); color: #202719; border: 0; padding: 10px; }
/* Empty/error results span the full film grid. Transient alerts sit above the
   normal page; the native modal dialogue uses the browser's separate top layer. */
.empty { grid-column: 1 / -1; padding: 50px 20px; border: 1px solid var(--line); text-align: center; }
.empty h3 { font-size: 20px; font-weight: 400; margin-bottom: 8px; }
.empty p { font-size: 14px; color: var(--muted); }
.notice { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); width: min(90vw, 600px); background: var(--paper); color: #202719; padding: 16px 24px; z-index: 30; border-radius: 4px; font-size: 14px; line-height: 1.5; }
footer { margin-top: 56px; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
/* The browser handles modality/focus through showModal(); CSS only supplies
   appearance and viewport bounds. Long reviews remain scrollable on small screens. */
dialog { border: 1px solid var(--line); background: var(--panel); color: var(--paper); padding: 28px; width: min(500px, 92vw); max-height: 90vh; border-radius: 5px; }
dialog::backdrop { background: #050b09cc; backdrop-filter: blur(4px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.close { font-size: 26px; width: 42px; height: 42px; flex-shrink: 0; background: transparent; border: 0; }
dialog h2 { font-family: Georgia, serif; font-weight: 400; font-size: 30px; letter-spacing: -.8px; }
dialog h3 { font-size: 20px; margin-bottom: 16px; }
.booking-row { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 14px; gap: 15px; }
.booking-row span:first-child { color: var(--muted); }
#booking-form { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 16px; margin: 20px 0; }
#booking-form .primary { grid-column: 1 / -1; justify-content: center; }
#booking-message { color: var(--lime); margin: 20px 0; font-size: 14px; }
#booking-message:empty { display: none; }
/* Keep labels available to assistive technology without taking visual space.
   The skip link becomes visible when keyboard-focused; never use display:none
   for either helper, which would also remove it from accessibility navigation. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.skip { position: absolute; top: -80px; background: var(--lime); color: #111; padding: 12px; z-index: 100; }
.skip:focus { top: 10px; }
/* Tablet/compact desktop: keep the two main columns, but wrap filters into two
   columns and let the submit button span the row. */
@media (max-width: 1100px) {
  .cinema-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 30px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-button { grid-column: 1 / -1; }
  .poster { height: 250px; padding: 20px; }
  .poster-title { font-size: 34px; }
  .box-office { padding: 22px; }
}
/* Narrow layout: voice moves visually above the programme, and its status/chat
   elements span both internal panel columns. The underlying DOM order is stable. */
@media (max-width: 760px) {
  .masthead { height: 84px; }
  .brand { font-size: 30px; }
  .opening { margin: 34px 0; }
  h1 { font-size: 48px; letter-spacing: -2px; }
  .cinema-layout { display: flex; flex-direction: column; gap: 36px; }
  .box-office { position: static; order: -1; width: 100%; display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; align-items: center; }
  .box-office h2 { font-size: 25px; }
  .voice-art { height: 55px; }
  .box-office .primary { grid-column: 1 / -1; margin-top: 10px; }
  .voice-status, .privacy, .transcript, .chat, .mic-controls { grid-column: 1 / -1; }
  .voice-status { margin-top: 14px; }
  .privacy { margin-top: 4px; }
  #programme { width: 100%; }
  .film-grid { gap: 30px 18px; }
  .poster { height: 250px; }
  .film-info { align-items: flex-start; }
  .film-meta { padding-top: 8px; }
  footer { margin-top: 36px; }
}
/* Single-column posters protect readable titles on small phones. */
@media (max-width: 520px) {
  .film-grid { grid-template-columns: 1fr; }
  .poster { height: 290px; padding: 26px; }
  .poster-title { font-size: 46px; }
}
/* Extra-small devices need a little more room for the heading and panel content. */
@media (max-width: 380px) {
  h1 { font-size: 42px; }
  .box-office { padding: 18px; }
}
/* Respect reduced motion for keyframe animations and smooth scrolling. Meter
   values still update; this rule does not remove the bar's short CSS transition. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
}

/* Submission demo: original illustrated posters, a clear conversation stage,
   explicit comparison and a ticket keepsake. Existing native controls retain
   their keyboard/focus contracts; no animation is required to use the page. */
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 1.7px; text-transform: uppercase; color: var(--muted); }
.opening { margin: 44px 0 42px; }
.opening .eyebrow { margin-bottom: 14px; }
.opening-note { margin-top: 16px; font-size: 14px; color: var(--muted); }
h1 { font-size: clamp(54px, 6.8vw, 90px); }
.cinema-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 40px; }
.film-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 20px; }
.poster { position: relative; height: auto; aspect-ratio: 2 / 3; padding: 0; border-radius: 3px; isolation: isolate; }
.poster img { position: absolute; width: 100%; height: 100%; object-fit: cover; inset: 0; transition: transform .45s ease; }
.film:hover .poster img { transform: scale(1.035); }
.poster::after { content: ''; position: absolute; inset: 58% 0 0; background: linear-gradient(transparent, var(--film) 74%); z-index: 1; }
.poster-index { position: absolute; top: 18px; left: 20px; font-size: 10px; letter-spacing: 2px; opacity: .7; }
.poster-title { position: absolute; z-index: 2; bottom: 23px; left: 20px; right: 14px; font-size: clamp(27px, 2.4vw, 38px); line-height: .99; letter-spacing: -1.5px; }
.film-info { padding: 13px 0 10px; gap: 6px; }
.film-meta { font-size: 11px; }
.film-meta span { white-space: nowrap; }
.compare-toggle { border: 0; background: none; font-size: 10px; padding: 7px 0 7px 5px; color: var(--muted); white-space: nowrap; }
.compare-toggle[aria-pressed=true], .compare-toggle:hover { color: var(--lime); }
.screening { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 12px; }
.screening span { margin: 0; }
.screening .screening-start { font-size: 15px; color: inherit; }
.film-details summary { padding: 12px 0 5px; font-size: 11px; }
.box-office { padding: 25px; background: linear-gradient(150deg, #20292366, transparent 55%); }
.box-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.box-caption { font-size: 12px; color: var(--muted); margin-top: 9px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.live .live-dot { background: var(--lime); box-shadow: 0 0 14px #e7f06b66; }
.voice-art { border: 1px solid #e7f06b26; border-radius: 50%; width: 128px; height: 128px; margin: 30px auto 18px; background: radial-gradient(circle, #e7f06b0c, transparent 68%); }
.activity { min-height: 20px; color: var(--muted); font-size: 12px; text-align: center; margin-bottom: 22px; }
.entry-options { display: flex; justify-content: space-between; gap: 14px; margin-top: 6px; }
.entry-options button { min-height: 34px; }
.journey { display: flex; list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid var(--line); }
.journey li { flex: 1; padding-top: 12px; color: var(--muted); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.journey li.current { color: var(--lime); border-top: 1px solid var(--lime); margin-top: -1px; }
.voice-status { margin-top: 16px; font-size: 11px; }
.privacy { font-size: 10px; line-height: 1.6; }
.preview { border: 1px solid #e7f06b44; border-radius: 3px; padding: 14px; margin-top: 18px; background: #e7f06b08; }
.preview-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 10px; color: var(--lime); font-size: 10px; text-transform: uppercase; letter-spacing: .8px; }
.preview-top button { border: 0; background: transparent; padding: 4px; font-size: 18px; }
.preview p { font-size: 13px; margin-bottom: 13px; line-height: 1.55; }
.preview small { display: block; font-size: 10px; color: var(--muted); margin-top: 10px; }
.secondary { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 3px; background: transparent; padding: 12px 15px; color: var(--paper); min-height: 44px; font-size: 13px; }
.secondary:hover { border-color: var(--lime); color: var(--lime); }
.preview .secondary { width: 100%; font-size: 12px; }
.empty > span { display: block; font-size: 44px; color: var(--lime); margin-bottom: 12px; }
.empty .secondary { margin: 20px auto 0; }
.compare-tray { position: fixed; z-index: 20; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 18px; width: min(600px, 92vw); padding: 12px 16px 12px 22px; border: 1px solid var(--line); border-radius: 6px; background: #202923f5; box-shadow: 0 15px 60px #0006; }
.compare-tray > span { flex: 1; font-size: 13px; }
.compare-tray .primary { width: auto; min-height: 42px; font-size: 12px; }
.compare-tray .close { width: 26px; }
#comparison { width: min(800px, 94vw); padding: 30px; }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.comparison-art { width: 100%; height: 170px; object-fit: cover; object-position: 50% 40%; border-radius: 2px; margin-bottom: 20px; }
.comparison-grid h3 { font-family: Georgia, serif; font-size: 28px; font-weight: 400; margin: 8px 0 14px; }
.comparison-grid p { font-size: 13px; margin-bottom: 14px; }
.comparison-grid .eyebrow { font-size: 10px; }
.comparison-grid .muted { font-size: 11px; }
.comparison-grid .secondary { width: 100%; font-size: 12px; }
.comparison-grid .secondary span { font-size: 11px; }
#comparison .dialog-top .eyebrow { margin-bottom: 8px; }
#booking { width: min(510px, 92vw); }
#booking.confirmed { border-color: #e7f06b88; }
.confirmed #booking-details { border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); padding: 22px 0; }
.confirmed #booking-heading { color: var(--lime); }
.ticket-actions { margin-top: 22px; }
.ticket-actions .secondary { width: 100%; }
#booking-message { font-family: monospace; font-size: 12px; letter-spacing: .8px; }
footer { display: flex; gap: 20px; justify-content: space-between; padding-bottom: 32px; font-size: 10px; }
footer > span:first-child { font-size: 13px; color: var(--paper); }
@media (max-width: 1200px) { .film-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cinema-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; } .poster-title { font-size: 36px; } .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .filter-button { grid-column: 1 / -1; } }
@media (max-width: 760px) { .opening { margin: 32px 0; } h1 { font-size: 60px; } .opening-note { font-size: 12px; } .cinema-layout { display: flex; gap: 32px; } .box-office { display: block; padding: 22px; } .voice-art { width: 90px; height: 90px; margin: 14px auto 10px; } .activity { margin-bottom: 16px; } .box-heading h2 { font-size: 28px; } .journey { margin-top: 12px; } .poster-title { font-size: 32px; } .film-info { display: block; } .compare-toggle { padding: 7px 0; } .comparison-grid { gap: 16px; } .comparison-grid h3 { font-size: 24px; } .comparison-grid .secondary { flex-direction: column; align-items: start; } footer { flex-wrap: wrap; gap: 12px; } }
@media (max-width: 480px) { h1 { font-size: 52px; } .film-grid { grid-template-columns: 1fr 1fr; gap: 28px 14px; } .poster-title { font-size: 25px; left: 13px; bottom: 17px; letter-spacing: -1px; } .poster-index { left: 13px; top: 13px; font-size: 8px; } .screening { flex-wrap: wrap; padding: 10px; gap: 5px; } .screening span:nth-child(2) { order: 3; width: 100%; font-size: 9px; } .compare-tray { gap: 9px; padding: 10px 12px; } .compare-tray > span { font-size: 11px; } .compare-tray .primary { padding: 10px; } #comparison { padding: 22px; } .comparison-grid { grid-template-columns: 1fr; gap: 25px; } .comparison-art { height: 140px; } .comparison-grid .secondary { flex-direction: row; align-items: center; } }
@media (prefers-reduced-motion: reduce) { .poster img { transition: none; } .film:hover .poster img { transform: none; } }
