/*
 * Cinema Time — quiet schedule.
 *
 * Design rule this stylesheet exists to enforce: a value is printed once, at
 * the level where it varies. Day lives in the rail, cinema lives in the venue
 * caption, and a time pill is allowed to say nothing but the time. Everything
 * below is in service of that — hairlines instead of nested cards, one accent
 * used only for "you are here" and "you can book this".
 */

:root {
  color-scheme: dark;
  --ink: #0a0a0c;
  --raise: rgba(255, 255, 255, 0.04);
  --raise-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.055);
  --text: #f4f2f0;
  --label: #bdb8c4;
  --dim: #918c96;
  --dimmer: #6e6a76;
  --accent: #f0b95f;
  --accent-ink: #17120a;
  /* Opaque, unlike --raise: the one surface that floats over other content. */
  --pop: #17171c;
  --live: #5fd39a;
  --warn: #ff7f8f;
  --tap: 44px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, sans-serif;
  font-synthesis-weight: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
.dim { color: var(--dim); }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 10px;
}

/* ---------------------------------------------------------------- chrome */

/*
 * One content column, and the gutter beside it, derived once.
 *
 * The two views want different widths and it is worth honouring that: a
 * poster wall wants breadth, while a schedule is prose-like and gets harder
 * to scan as the lines grow. So the grid widens the column and the film page
 * keeps the narrow one.
 */
:root { --column: 760px; }
body.on-grid { --column: 1120px; }
.topbar,
.commandbar > *,
.shell,
.site-footer {
  width: min(var(--column), 100% - 32px);
  margin-inline: auto;
}
.commandbar { --gutter: max(16px, calc((100% - var(--column)) / 2)); }

.topbar {
  position: relative;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 0 14px;
}

@media (display-mode: standalone) {
  .topbar { padding-top: calc(22px + env(safe-area-inset-top, 0px)); }
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.lang-toggle {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--raise);
  color: var(--dim);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.lang-toggle:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.18); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand-name { font-weight: 650; letter-spacing: -0.015em; }

/* Freshness earns one dot and two words, not a paragraph. */
.health {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--dim);
  font-size: 0.8rem;
  font-weight: 550;
}
.health:hover { color: var(--text); border-color: var(--line); background: var(--raise); }
.health-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dimmer);
}
.health-dot.ok { background: var(--live); }
.health-dot.bad { background: var(--warn); }
.offline-banner {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: calc(9px + env(safe-area-inset-top, 0px)) 16px 9px;
  background: linear-gradient(135deg, rgba(240, 185, 95, 0.96), rgba(255, 127, 143, 0.96));
  color: #140f13;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.offline-banner[hidden] { display: none; }

/* ----------------------------------------------------------- command bar */

.commandbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  display: grid;
  gap: 10px;
  padding: 8px 0 10px;
  background: var(--ink);
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.commandbar.is-stuck { border-bottom-color: var(--line-soft); }
.commandbar::before {
  content: "";
  position: absolute;
  inset: calc(-1 * env(safe-area-inset-top, 0px)) 0 100% 0;
  background: var(--ink);
  backdrop-filter: none;
}

.searchrow { display: flex; gap: 8px; }

.searchline {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  gap: 10px;
  height: var(--tap);
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--raise);
}
.searchline:focus-within { border-color: var(--accent); }
.searchline:focus-within :focus-visible { outline: none; }
.search-icon {
  flex: none;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--dim);
  stroke-width: 1.7;
  stroke-linecap: round;
}
#search {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font-size: 1rem;
}
#search::placeholder { color: var(--dimmer); }
#search::-webkit-search-cancel-button { display: none; }
.search-clear {
  flex: none;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: var(--raise-2);
  color: var(--dim);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

/*
 * The day rail: the single control that removes the date from every pill.
 *
 * It scrolls edge to edge rather than stopping at the content column, so a
 * half-visible chip advertises that more days exist. The inline padding is the
 * column gutter, which keeps the first chip aligned with the text above it at
 * every width — a plain negative margin would win against the shared centering
 * rule and drag the rail off-column on wide screens.
 */
.dayrail {
  display: flex;
  width: 100%;
  gap: 6px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
}
.dayrail::-webkit-scrollbar { display: none; }
.day {
  flex: none;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--dim);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
/* `:not(.is-active)` is load-bearing, not decoration: `:not(:disabled)` pushes
   this selector to (0,3,0), which would otherwise outrank `.day.is-active` and
   strip the fill off the selected day whenever a pointer rests on it. */
.day:hover:not(:disabled):not(.is-active) { color: var(--text); background: var(--raise); }
.day.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
.day:disabled { opacity: 0.32; cursor: default; }

/*
 * Browse rail: time of day, then the viewing types actually on offer.
 *
 * One scrolling row rather than two stacked controls, because both are the
 * same kind of move — narrowing the grid — and stacking them was how the
 * original design ate its own first screen.
 */
.browse {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 6px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
}
.browse::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: none;
  color: var(--dim);
  font-size: 0.83rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.chip:hover:not(.is-active) { color: var(--text); background: var(--raise); }
.chip.is-active { background: var(--raise-2); border-color: rgba(255, 255, 255, 0.18); color: var(--text); }
.chip-divider {
  flex: none;
  width: 1px;
  height: 20px;
  margin-inline: 4px;
  background: var(--line);
}

.more {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: var(--tap);
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: none;
  color: var(--dim);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}
.more:hover { color: var(--text); background: var(--raise); }
.more-count {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.72rem;
  font-weight: 800;
}

.active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.pillfilter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--raise);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.pillfilter::after { content: "\00d7"; color: var(--dim); font-size: 0.95rem; }
.pillfilter:hover::after { color: var(--text); }

/* -------------------------------------------------------------- results */

.shell { padding-bottom: 56px; }
.site-footer {
  padding: 0 0 32px;
  color: var(--dim);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
}
.site-footer p { margin: 0; }
:where(.card-title, .film-title, .resulthead h1, .hero-overview, .venue-name span:first-child, .artwork-credit) { unicode-bidi: plaintext; }
[dir="rtl"] body { text-align: start; }
[dir="rtl"] .search-icon { transform: scaleX(-1); }
[dir="rtl"] .time-clock,
[dir="rtl"] .meridiem { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .backlink { flex-direction: row-reverse; }

.resulthead { padding: 22px 0 4px; }
.resulthead h1 {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.resulthead p { font-size: 0.88rem; margin-top: 2px; }

/* On the grid the posters are the content and the rails already say what is
   being shown, so the heading only needs to anchor the page, not dominate it.
   On a film page the heading is the film's name and keeps its full size. */
body.on-grid .resulthead { padding: 14px 0 2px; }
body.on-grid .resulthead h1 { font-size: 1.15rem; font-weight: 680; letter-spacing: -0.02em; }
body.on-grid .resulthead p { font-size: 0.8rem; }

.results { display: grid; }

/* ------------------------------------------------------------ film grid */

/*
 * The landing view. Posters are the fastest way to recognise a film, so the
 * grid gives them the space and keeps the text underneath to two lines: what
 * it is, and when you could next see it.
 */
/* Three across on a phone. Two was a catalogue you scrolled; three is a
   glance. The text below each poster shrinks to match. */
.results.grid {
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 20px 10px;
  padding-top: 6px;
}

.card { display: grid; gap: 8px; align-content: start; }

.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: var(--raise);
  border: 1px solid var(--line-soft);
}
.poster::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.13) 45%, transparent 70%);
  pointer-events: none;
}
.poster.is-loading::before {
  opacity: 1;
  animation: shimmer 1.15s linear infinite;
}
.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 180ms ease;
}
.poster:not(.is-loading) img { opacity: 1; }
@keyframes shimmer { to { transform: translateX(100%); } }
.card:hover .poster { border-color: rgba(255, 255, 255, 0.24); }

/*
 * Stand-in for a film the provider has not matched. The tint is derived from
 * title, so the grid stays a grid instead of collapsing around empty frames
 * and two unmatched films never read as the same missing thing.
 */
.poster.is-blank {
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg,
      hsl(var(--tint, 40) 24% 17%),
      hsl(calc(var(--tint, 40) + 40) 20% 11%));
}
.poster-initials {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: hsl(var(--tint, 40) 40% 76%);
}

.card-body { display: grid; gap: 4px; }
/* Clamped so one long title cannot make its card taller than the row and
   knock the grid out of alignment. */
.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 640;
  letter-spacing: -0.01em;
  line-height: 1.28;
}
.card:hover .card-title { color: var(--accent); }
.card-next {
  display: grid;
  gap: 0;
  font-size: 0.72rem;
  line-height: 1.35;
}
.card-next strong { color: var(--label); font-weight: 620; font-variant-numeric: tabular-nums; }
.card-next span { color: var(--dimmer); }

.card-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 1px; }
.badge {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--raise-2);
  color: var(--label);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------- film hero */

.hero {
  /* Named because the runtime panel measures against them: it is allowed to
     open back across the poster and the gap beside it, and no further. */
  --poster-w: 116px;
  --poster-gap: 16px;
  display: grid;
  grid-template-columns: var(--poster-w) minmax(0, 1fr);
  gap: 14px var(--poster-gap);
  padding: 4px 0 22px;
}
.hero-media { display: grid; gap: 6px; align-content: start; }
.hero .poster { border-radius: 12px; }
.artwork-credit { color: var(--dimmer); font-size: 0.66rem; line-height: 1.3; }
.hero-credit { grid-column: 1 / -1; margin-top: 2px; }
.hero-body { display: grid; gap: 14px; align-content: start; }
/*
 * Positions the panel as well as holding the strip. Anchoring the panel to the
 * button put its edge wherever the button happened to land, which in RTL is
 * the near side of a right-aligned strip - the panel then grew off the far
 * edge of the screen. The card spans the content column in both directions, so
 * hanging the panel from its inline start can never overflow.
 */
/*
 * Sits beside the poster, and positions the panel.
 *
 * Shrink-wrapped rather than stretched, so the card's inline-end edge is the
 * button's edge and the panel hangs from the control it belongs to. Stretched,
 * the card fills a column the 180px strip only starts, and the panel drifted
 * up to 124px away from its own button. `max-width` is the other half: a grid
 * item sized to its content will otherwise run straight past the track.
 */
.runtime-card {
  display: grid;
  justify-items: start;
  justify-self: start;
  max-width: 100%;
  position: relative;
}

/*
 * The old block stacked three labelled stats and two paragraphs of caveat,
 * which read as the page's main content rather than as one fact about the
 * film. The caveats are behind the info button now, and what is left is a
 * small box beside the artwork.
 *
 * Phone first, because that is where the room runs out: beside a 116px poster
 * the body column is 196-266px, and the two figures and the button want 285px
 * of it. So the figures stack and the button keeps the top-right corner, which
 * fits in 178px. The row arrangement returns at 620px, where the column is
 * wide enough for it.
 */
.runtime-strip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 100%;
  padding: 9px 10px 10px 13px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--raise);
}
.runtime-figures { display: grid; gap: 9px; min-width: 0; }
.runtime-stat { display: grid; gap: 2px; min-width: 0; }
.runtime-stat + .runtime-stat {
  padding-block-start: 9px;
  border-block-start: 1px solid var(--line);
}
.runtime-stat span {
  color: var(--dimmer);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}
.runtime-stat strong { font-size: 1.22rem; line-height: 1.1; color: var(--text); letter-spacing: -0.03em; }
.runtime-stat.is-censored span { color: var(--warn); }
.runtime-stat.is-censored strong { color: var(--warn); }
.runtime-stat.is-unknown strong { color: var(--dim); font-size: 1rem; font-weight: 600; letter-spacing: 0; }

/* Takes the slack, so the button keeps the corner whatever the figures do. */
.runtime-info { margin-inline-start: auto; display: flex; }
.runtime-info-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--raise-2);
  color: var(--label);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
/* The ring is 32px because a 44px one would out-weigh the figure beside it;
   the tap target is 44px regardless. */
.runtime-info-toggle::after {
  content: "";
  position: absolute;
  inset: calc((32px - var(--tap)) / 2);
  border-radius: 999px;
}
.runtime-info-toggle:hover { color: var(--text); }
.runtime-info.is-open .runtime-info-toggle {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-ink);
}
.info-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.runtime-info-panel {
  position: absolute;
  top: calc(100% + 9px);
  inset-inline-end: 0;
  z-index: 30;
  width: max-content;
  /* Wider than the card it hangs from: it opens back across the poster. `100%`
     is the card, so adding the poster column to it stops the panel exactly at
     the content column's near edge - the one clamp that holds in both
     directions, at any card width. A viewport-based cap does not: the anchor
     moves with the card, and in RTL a shorter Arabic label pushed the panel
     flush against the screen edge. */
  max-width: min(19rem, calc(100% + var(--poster-w) + var(--poster-gap)));
  display: grid;
  gap: 8px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  /* Opaque: it sits over the poster and the schedule below it. */
  background: var(--pop);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6);
}
/* `display: grid` above is an author rule and would beat the UA's
   `[hidden] { display: none }`, so the closed state has to be restated. */
.runtime-info-panel[hidden] { display: none; }
.runtime-info-panel p { color: var(--label); font-size: 0.78rem; line-height: 1.45; }
.runtime-info-panel p + p { color: var(--dimmer); font-size: 0.7rem; line-height: 1.4; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--dimmer);
  font-size: 0.78rem;
  font-weight: 550;
}
.hero-facts > * + *::before { content: "·"; margin-right: 7px; }
.hero-facts .chainmark { text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; }
.hero-score { display: flex; align-items: baseline; gap: 5px; }
.hero-score strong { font-size: 1.05rem; font-weight: 700; color: var(--accent); }
.hero-score span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--dimmer);
}
.hero-overview { color: var(--dim); font-size: 0.88rem; line-height: 1.55; }
.hero-note { color: var(--dimmer); font-size: 0.78rem; }
.trailer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  gap: 8px;
  min-height: 42px;
  padding-inline: 12px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(246, 181, 77, 0.12);
}
.trailer-link:hover { filter: brightness(1.05); }
.trailer-icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: currentColor;
}
.trailer-icon circle { opacity: 0.24; }
.trailer-icon path { opacity: 1; }

/* A film is a hairline-separated block, not a card. Fewer boxes, less noise. */
.film {
  display: grid;
  gap: 12px;
  padding: 22px 0;
  border-top: 1px solid var(--line-soft);
}
.film:first-child { border-top: 0; }

.film-head { display: grid; gap: 3px; }
.film-title {
  font-size: 1.12rem;
  font-weight: 680;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
a.film-title:hover { color: var(--accent); }
/* Deliberately the quietest line on the block: it is context, not an answer. */
.film-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--dimmer);
  font-size: 0.78rem;
  font-weight: 550;
}
.film-meta > * + *::before { content: "·"; margin-right: 7px; }
.film-meta .chainmark {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}

.venues { display: grid; gap: 14px; }
.venue { display: grid; gap: 7px; }
.venue-name {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label);
}
/* A format or language only shows up here when the whole venue shares it. */
.venue-tag {
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--raise-2);
  color: var(--text);
  font-size: 0.67rem;
  letter-spacing: 0.06em;
}

.times { display: flex; flex-wrap: wrap; gap: 6px; }

.time {
  display: inline-grid;
  justify-items: center;
  align-content: center;
  gap: 1px;
  min-width: 74px;
  min-height: var(--tap);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--raise);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.time:hover { border-color: rgba(255, 255, 255, 0.22); background: var(--raise-2); }
.time-clock { font-size: 1rem; font-weight: 650; letter-spacing: -0.01em; }
.time-clock .meridiem { color: var(--dim); font-size: 0.72rem; font-weight: 600; margin-left: 2px; }
/* Per-time tag: only rendered when times inside one venue actually differ. */
.time-tag {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dim);
}

.time.is-bookable { border-color: rgba(240, 185, 95, 0.26); }
.time.is-bookable:hover { border-color: var(--accent); }
.time.is-unavailable { opacity: 0.45; cursor: default; }
.time.is-unavailable .time-clock { text-decoration: line-through; }

.time.is-next {
  border-color: var(--accent);
  background: rgba(240, 185, 95, 0.11);
}

.more-times {
  min-height: var(--tap);
  padding: 0 14px;
  border: 1px dashed var(--line);
  border-radius: 11px;
  background: none;
  color: var(--dim);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}
.more-times:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.2); }

.empty {
  padding: 56px 0;
  text-align: center;
  display: grid;
  gap: 8px;
  justify-items: center;
}
.empty strong { font-size: 1.05rem; font-weight: 650; }
.empty p { color: var(--dim); font-size: 0.9rem; max-width: 34ch; }
.empty .btn-quiet { margin-top: 6px; }

/* --------------------------------------------------------- detail route */

/* Above the title, where a way back belongs. */
.crumb { padding-top: 16px; }
.backlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  color: var(--dim);
  font-size: 0.86rem;
  font-weight: 600;
}
.backlink:hover { color: var(--text); }
.crumb + .resulthead { padding-top: 4px; }

.daygroup { display: grid; gap: 14px; padding: 22px 0; border-top: 1px solid var(--line-soft); }
.daygroup:first-child { border-top: 0; }
.daygroup-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------------------------------------------------------- filter sheet */

.sheet {
  width: min(460px, 100% - 24px);
  max-height: min(78vh, 640px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #121215;
  color: var(--text);
  overflow: hidden;
}
.sheet::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(3px); }
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
}
.sheet-head h2 { font-size: 1rem; font-weight: 680; letter-spacing: -0.01em; }
.sheet-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--raise-2);
  color: var(--dim);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.sheet-body {
  display: grid;
  gap: 18px;
  padding: 4px 18px 18px;
  overflow-y: auto;
}
.facet { display: grid; gap: 8px; }
.facet-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.facet-options { display: flex; flex-wrap: wrap; gap: 6px; }
.opt {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: none;
  color: var(--dim);
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
}
.opt:hover:not(.is-active) { color: var(--text); background: var(--raise); }
.opt.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
/* "Any" is the absence of a filter, so it must not look like one. The accent
   is reserved for choices that are actually narrowing the results. */
.opt.is-any.is-active {
  background: var(--raise-2);
  border-color: var(--line);
  color: var(--text);
}
.sheet-foot {
  display: flex;
  gap: 8px;
  padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-soft);
}
.btn-quiet, .btn-solid {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 11px;
  font-weight: 650;
  cursor: pointer;
}
.btn-quiet { flex: none; border: 1px solid var(--line); background: none; color: var(--dim); }
.btn-quiet:hover { color: var(--text); }
.btn-solid { flex: 1; border: 0; background: var(--accent); color: var(--accent-ink); }

/* --------------------------------------------------------- status route */

.status-list { display: grid; gap: 10px; padding: 20px 0 60px; }
.status-row {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--raise);
}
.status-row strong { font-size: 0.85rem; letter-spacing: 0.1em; }
.status-row span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.status-row.ok span { color: var(--live); }
.status-row.bad span { color: var(--warn); }
.status-row small { color: var(--dim); font-size: 0.8rem; line-height: 1.5; }

/* --------------------------------------------------------------- widths */

@media (min-width: 620px) {
  /* Room for the row arrangement again. */
  .runtime-strip { align-items: center; }
  .runtime-figures { grid-auto-flow: column; align-items: center; gap: 16px; }
  .runtime-stat + .runtime-stat {
    padding-block-start: 0;
    padding-inline-start: 16px;
    border-block-start: 0;
    border-inline-start: 1px solid var(--line);
  }
  .time { min-width: 84px; }
  .resulthead h1 { font-size: 1.85rem; }
  .film-title { font-size: 1.25rem; }
  .results.grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 26px 16px; }
  .card-title { font-size: 0.92rem; }
  .card-next { font-size: 0.77rem; }
  .hero { --poster-w: 168px; --poster-gap: 22px; gap: 22px var(--poster-gap); }
}

@media (min-width: 1000px) {
  .results.grid { grid-template-columns: repeat(auto-fill, minmax(166px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------- publisher pages */
.publisher-content,
.prose-card {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--label);
}
.publisher-content h2,
.prose-card h1,
.prose-card h2 {
  color: var(--text);
  letter-spacing: -0.02em;
}
.publisher-content h2 { font-size: clamp(1.25rem, 4vw, 1.7rem); margin-bottom: 10px; }
.publisher-content p + p,
.prose-card p + p,
.prose-card p + ul,
.prose-card p + ol,
.prose-card ul + p,
.prose-card ol + p { margin-top: 12px; }
.prose-card h1 { font-size: clamp(2rem, 8vw, 3.2rem); line-height: 0.95; margin-bottom: 16px; }
.prose-card h2 { margin-top: 24px; margin-bottom: 8px; font-size: 1.15rem; }
.prose-card ul,
.prose-card ol { padding-inline-start: 1.35rem; margin: 12px 0 0; }
.prose-card li + li { margin-top: 8px; }
.prose-page { padding-top: 18px; }
.content-topbar { padding-bottom: 0; }
.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--dim);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.page-nav.inline { margin-top: 16px; margin-bottom: 0; }
.page-nav a,
.footer-links a,
.text-link {
  color: var(--accent);
  text-decoration: none;
}
.page-nav a:hover,
.footer-links a:hover,
.text-link:hover { text-decoration: underline; }
.footer-links { margin-top: 6px; color: var(--dim); font-size: 0.86rem; }
.content-page .site-footer { margin-top: 34px; }

