/* Layout: header + view tabs + filter strip over a poster wall; a film opens as a sheet with its showings as ticket stubs. */
:root {
  --bg: #eef0f2; --surface: #ffffff; --ink: #16181d; --muted: #5d6470; --line: #d6dae1;
  --accent: #a3213a; --accent-ink: #ffffff; --chip: #e2e5ea; --chip-on: #16181d; --chip-on-ink: #f3f4f6;
  --soon: #1f7a45; --scrim: rgba(10, 12, 16, .55); --edge: #a9b0bb; --stick-shadow: rgba(0, 0, 0, .2); --band: #ffffff;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "IBM Plex Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101216; --surface: #191c22; --ink: #e9ebef; --muted: #9097a3; --line: #2b2f37;
    --accent: #f0647d; --accent-ink: #101216; --chip: #23272e; --chip-on: #e9ebef; --chip-on-ink: #101216;
    --soon: #6fd198; --scrim: rgba(0, 0, 0, .7); --edge: #4a515d; --stick-shadow: rgba(0, 0, 0, .6); --band: #0a0c0f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101216; --surface: #191c22; --ink: #e9ebef; --muted: #9097a3; --line: #2b2f37;
  --accent: #f0647d; --accent-ink: #101216; --chip: #23272e; --chip-on: #e9ebef; --chip-on-ink: #101216;
  --soon: #6fd198; --scrim: rgba(0, 0, 0, .7); --edge: #4a515d; --stick-shadow: rgba(0, 0, 0, .6); --band: #0a0c0f;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--body);
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 16px; }
/* header */
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 24px 14px; }
h1 { font: 800 36px/0.9 var(--display); margin: 0 0 6px; text-transform: uppercase; letter-spacing: .01em; }
h1 span { color: var(--accent); }
.sub { color: var(--muted); font-size: 13px; }
.topright { display: flex; gap: 8px; align-items: center; flex: none; }
/* a flex item, not inline: the signed-out button holds only an icon, so on a text line it would sit on the baseline, above centre */
.topright .dd { display: flex; }
/* the title has no margin under it, so the buttons beside it centre on the title itself */
.top h1 { margin-bottom: 0; }
.topright select { font-weight: 600; }
.regionsopt .row { margin-top: 6px; gap: 14px; }
.banner { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--soon);
  padding: 10px 14px; border-radius: 4px; margin-bottom: 12px; font-size: 14px; }
.btn { border: 1px solid var(--ink); background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 6px;
  cursor: pointer; font-weight: 500; font-size: 14px; white-space: nowrap; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn:disabled { opacity: .5; cursor: default; }
/* layout: filter sidebar beside the grid on wide screens; a slide-in panel on narrow ones */
.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.main { min-width: 0; }
.filters { position: sticky; top: 12px; max-height: calc(100dvh - 24px); overflow: auto; padding-block: 12px 24px; }
.filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.filters-head h2 { font: 700 20px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; margin: 0; }
#filtersDone, #filtersBtn { display: none; }
.fg { border: 0; margin: 0; padding: 12px 0; border-top: 1px solid var(--line); min-width: 0; }
.fg legend { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--muted); padding: 0 0 6px; }
.fg legend .hint { text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 4px; }
.ck { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 4px 0; cursor: pointer; }
.ck input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); flex: none; }
.ck span:first-of-type { flex: 1; min-width: 0; }
.ck .n { font: 500 11px var(--mono); color: var(--muted); }
.btn.small { padding: 5px 10px; font-size: 13px; }
@media (max-width: 999px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  #filtersBtn, #filtersDone { display: inline-block; }
  /* phones: the filter panel is a bottom sheet */
  .filters { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 20; max-height: 85dvh;
    background: var(--surface); border-top: 1px solid var(--edge); border-radius: 14px 14px 0 0; padding: 16px 16px 0;
    transform: translateY(105%); transition: transform .2s ease; }
  body.filters-open .filters { transform: none; box-shadow: 0 0 0 100vmax var(--scrim); }
}
/* pinned bar: [All films | ★ My watchlist], then [search ......] [Date] [Filters]. */
.bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
/* All films / My watchlist: a full-width two-way switch */
.listswitch { display: flex; border: 1px solid var(--edge); border-radius: 8px; overflow: hidden; }
.listswitch button { flex: 1; border: 0; background: transparent; color: var(--ink); padding: 9px 8px; cursor: pointer;
  font: 600 14px var(--body); }
.listswitch button + button { border-left: 1px solid var(--edge); }
.listswitch button[aria-pressed="true"] { background: var(--chip-on); color: var(--chip-on-ink); }
.listswitch button[data-list="watch"][aria-pressed="false"] { color: var(--accent); }
#view { flex: 1 1 auto; min-width: 0; }
.searchbox { position: relative; display: flex; align-items: center; flex: 1 1 160px; min-width: 0; }
.searchbox input { flex: 1; min-width: 0; text-overflow: ellipsis; }
.searchbox input::-webkit-search-cancel-button { display: none; }
.qclear { position: absolute; right: 6px; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; }
.qclear:hover { color: var(--ink); background: color-mix(in srgb, currentColor 12%, transparent); }
.qclear[hidden] { display: none; }
.searchbox > svg { position: absolute; left: 13px; color: var(--muted); pointer-events: none; }
.iconbtn { flex: none; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-size: 20px; line-height: 1; padding: 0; }
.chip.watch { font-weight: 600; flex: none; border-color: var(--accent); }
.chip.watch[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
#filtersBtn { flex: none; }
/* filter options as chips: the real checkbox/radio is hidden inside a tappable pill */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.opt-chip { position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--chip); font-size: 13px; cursor: pointer; user-select: none; }
.opt-chip input { position: absolute; opacity: 0; pointer-events: none; }
.opt-chip .n { font: 500 11px var(--mono); opacity: .65; }
.opt-chip:has(input:checked) { background: var(--chip-on); color: var(--chip-on-ink); border-color: var(--chip-on); }
.opt-chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.filters-foot { display: flex; gap: 8px; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); }
#filtersShow { display: none; }
@media (max-width: 999px) {
  /* narrow bar: Date and Filters keep their size and the search field gives way (down to its icon) */
  .bar { flex-wrap: nowrap; }
  .searchbox { flex: 1 1 0; min-width: var(--pill-h); }
  #filtersShow { display: inline-block; flex: 1; }
  .filters { display: flex; flex-direction: column; }
  #filtersBody { flex: 1; overflow: auto; }
  .filters-foot { position: sticky; bottom: 0; background: var(--surface); padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); }
}
/* while you're typing in a narrow search field (phones, small tablets), it takes the whole bar */
@container (max-width: 459px) { .bar:has(#q:focus) > :not(.searchbox) { display: none; } }
@media (min-width: 1000px) { #view { flex: 0 1 240px; } }
/* controls */
.controls { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg);
  padding-block: 12px; display: grid; gap: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
input[type=search], input[type=email] { flex: 1 1 240px; min-width: 0; font: inherit; padding: 9px 12px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
select { font: inherit; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.chip { font-size: 13px; padding: 5px 11px; border-radius: 999px; border: 1px solid transparent; background: var(--chip);
  cursor: pointer; white-space: nowrap; }
.chip.on, .chip[aria-pressed="true"] { background: var(--chip-on); color: var(--chip-on-ink); }
.chip .n { opacity: .6; margin-left: 5px; font: 500 11px var(--mono); }
.seg { display: inline-flex; flex-wrap: wrap; background: var(--chip); border-radius: 999px; padding: 2px; }
.seg .chip { background: transparent; }
.seg .chip.on { background: var(--chip-on); }
.cinemas { padding: 8px 0 2px; }
.linkbtn { background: none; border: 0; color: var(--accent); cursor: pointer; font-size: 13px; padding: 5px 4px; }
.sec h2 .n { font: 500 11px var(--mono); opacity: .7; }
/* sections: header pins under the controls bar; click collapses to one line */
.sec { scroll-margin-top: var(--stick-top, 0px); }
.sech { position: sticky; top: var(--stick-top, 0px); z-index: 4; margin: 0; background: var(--bg); }
.sech button { width: 100%; display: flex; align-items: baseline; gap: 10px; text-align: left; background: none; border: 0;
  border-bottom: 1px solid var(--edge); padding: 18px 0 8px; cursor: pointer; color: var(--ink); }
.sech .lbl { font: 700 24px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.sech .peek { flex: 1; min-width: 0; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sech .chev { margin-left: auto; color: var(--muted); font-size: 14px; }
.sec > .grid { padding-top: 14px; }
.card.nosale .poster img { opacity: .4; filter: grayscale(.6); }
.card.nosale h3 { color: var(--muted); }
.nosaletag { display: inline-block; margin-top: 2px; font-size: 11px; padding: 1px 6px; border-radius: 3px;
  border: 1px dashed var(--muted); color: var(--muted); }
.count { color: var(--muted); font: 500 12px var(--mono); padding-block: 14px 10px; }
/* poster wall */
.grid { list-style: none; margin: 0; padding: 0 0 10px; display: grid; gap: 22px 16px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.card { position: relative; min-width: 0; }
.card > a { display: block; text-decoration: none; }
.poster { position: relative; aspect-ratio: 2 / 3; max-width: 100%; border-radius: 4px; overflow: hidden; background: var(--chip); }
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.card > a:hover .poster img { transform: scale(1.03); }
.poster .ph { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 10px;
  font: 800 22px/0.95 var(--display); text-transform: uppercase; color: var(--muted); }
.flag { position: absolute; left: 6px; top: 6px; background: var(--accent); color: var(--accent-ink);
  font: 600 11px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 4px 6px; border-radius: 3px; }
.kind { position: absolute; left: 6px; bottom: 6px; background: rgba(10, 12, 16, .7); color: #fff;
  font: 600 10px/1 var(--body); letter-spacing: .05em; text-transform: uppercase; padding: 4px 6px; border-radius: 3px; }
.hint { color: var(--muted); font-size: 12px; margin-left: 4px; }
.star { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(10, 12, 16, .55); color: #fff; font-size: 17px; line-height: 32px; text-align: center; padding: 0; }
.star.on { background: var(--accent); color: var(--accent-ink); }
.card h3 { font: 700 19px/1.02 var(--display); text-transform: uppercase; margin: 8px 0 3px; letter-spacing: .01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .m { color: var(--muted); font-size: 12px; line-height: 1.35; }
.card .m b { color: var(--ink); font-weight: 500; }
.card .m .today { color: var(--soon); }
.empty { grid-column: 1 / -1; padding: 50px 0; color: var(--muted); text-align: center; }
.foot { color: var(--muted); font-size: 12px; padding-block: 10px 40px; border-top: 1px solid var(--line); }
/* dialogs */
dialog { border: 0; padding: 0; background: var(--surface); color: var(--ink); border-radius: 8px;
  width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow: auto; }
dialog::backdrop { background: var(--scrim); }
#account, #friendsAdd { width: min(440px, calc(100vw - 32px)); padding: 22px; }
.dlg-close { position: sticky; top: 0; height: 0; display: flex; justify-content: flex-end; z-index: 5; }
/* above pinned headings and card overlays */
.x { width: 36px; height: 36px; margin: 8px; border-radius: 50%; border: 0; background: var(--chip); font-size: 22px; line-height: 1; cursor: pointer; }
.fhead { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 22px; }
.fhead .poster { width: 150px; }
.fhead h2 { font: 800 34px/0.95 var(--display); text-transform: uppercase; margin: 0 0 6px; text-wrap: balance; padding-right: 36px; }
.fhead .alt { color: var(--muted); font-style: italic; margin: -2px 0 6px; }
.fhead .meta { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.fhead p { margin: 0 0 12px; font-size: 14px; max-width: 62ch; }
.badges { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.badge { font-size: 12px; padding: 2px 8px; border-radius: 3px; background: var(--chip); }
.badge.line { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.badge.new { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.exts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ext { font-size: 12px; padding: 3px 9px; border-radius: 3px; border: 1px solid var(--line); text-decoration: none; color: var(--muted); }
.ext:hover { border-color: var(--ink); color: var(--ink); }
.ext.lb { color: var(--ink); }
.ext b { font: 500 12px var(--mono); color: var(--soon); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.actions a { color: var(--muted); }
.days { padding: 0 22px 22px; }
.day { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding-block: 12px; border-top: 1px solid var(--line); }
.day h4 { margin: 0; font: 800 22px/1 var(--display); text-transform: uppercase; }
.day.today h4 { color: var(--soon); }
.stubs { display: flex; flex-wrap: wrap; gap: 8px; }
/* a showing is a small ticket: rounded card, perforated red left edge (green when you're going), like the showing's own page */
.stub { display: inline-flex; flex-direction: column; text-decoration: none; padding: 9px 14px; border-radius: 12px;
  border: 1px solid var(--line); border-left: 3px dotted var(--accent); background: color-mix(in srgb, var(--bg) 60%, var(--surface)); font-size: 12px; line-height: 1.3; max-width: 100%; }
a.stub:hover { border-color: var(--ink); border-left-color: var(--accent); }
.stub .t { font: 500 18px var(--mono); }
.stub .c { color: var(--muted); }
.stub .t + .c { color: var(--ink); font-weight: 600; }
.stub .tg { color: var(--accent); font-size: 11px; }
.stub .nt { font-size: 11px; color: var(--ink); max-width: 28ch; }
.stub.nosale { border-style: dashed; border-left-color: var(--muted); opacity: .75; }
.hiddenNote { color: var(--muted); font-size: 13px; padding: 10px 0 0; border-top: 1px solid var(--line); }
/* Right under the film's header, which has its own line: no second one. */
.days > .hiddenNote:first-child { border-top: 0; padding-top: 0; }
/* The sheet of a film this location doesn't list: why there are no showings. */
.ghostnote > p { color: var(--muted); font-size: 14px; margin: 0; max-width: 62ch; }
/* Where to watch it instead, in this location's country: built from the showings' own parts (a day-style row per kind, each service
   a stub), under a heading in the day labels' type. */
.watchopts { margin-top: 18px; }
.watchopts h3 { margin: 0 0 4px; font: 700 22px/1.1 var(--display); text-transform: uppercase; }
.worow { padding-block: 10px; }
.wostub { flex-direction: row; align-items: center; gap: 8px; padding: 7px 12px 7px 9px; color: var(--ink); }
.wostub img { width: 22px; height: 22px; border-radius: 3px; flex: none; }
.wostub .t { font: 600 14px var(--body); }
.wonone { color: var(--muted); font-size: 14px; margin: 6px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.wofoot { color: var(--muted); font-size: 12px; margin: 0; padding-top: 10px; border-top: 1px solid var(--line); }
.wofoot a { color: inherit; }
/* account */
#account h2 { font: 800 28px/1 var(--display); text-transform: uppercase; margin: 0 0 8px; }
#account p { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
#account form.signin { display: flex; gap: 8px; flex-wrap: wrap; }
.opt { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.opt input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); }
.opt small { display: block; color: var(--muted); font-size: 12px; }
.who { font: 500 13px var(--mono); margin-bottom: 14px; word-break: break-all; }
.msg { font-size: 13px; margin-top: 10px; }
.msg.err { color: var(--accent); }
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 18px 10px; }
  .card h3 { font-size: 16px; }

  dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .fhead { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .fhead .poster { width: 96px; }
  .fhead h2 { font-size: 26px; }
  .days { padding: 0 16px 24px; }
  .day { grid-template-columns: 1fr; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
/* Last on purpose, so nothing overrides it: iPhone Safari zooms the page when you tap a text box
   smaller than 16px (that's what made the page look too wide after tapping search). */
@media (max-width: 1000px) {
  input[type=search], input[type=email], input[inputmode], select, textarea { font-size: 16px; }
}
/* ===================== Preview: V1 layout in the 17:54 "pill" style ===================== */
:root { --accent-tint: #f7e1e6; --pill-h: 36px; --chip-h: calc(var(--pill-h) - 8px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --accent-tint: #3b2028; } }
:root[data-theme="dark"] { --accent-tint: #3b2028; }
/* one control language: soft pills, same height */
.pill { display: inline-flex; align-items: center; gap: 6px; height: var(--pill-h); padding: 0 14px; border-radius: 999px;
  border: 1px solid transparent; background: var(--chip); color: var(--ink); font: 600 14px var(--body); cursor: pointer;
  white-space: nowrap; max-width: 100%; }
.pill:hover { border-color: var(--line); }
.pill .k { font-weight: 400; color: var(--muted); }
.pill .chev { color: var(--muted); font-size: 11px; margin-left: 2px; }
#filtersBtn[aria-pressed="true"] { background: var(--accent-tint); border-color: var(--accent); }
.iconbtn { width: var(--pill-h); height: var(--pill-h); border-radius: 999px; border: 1px solid transparent; background: var(--chip); }
.searchbox input { height: var(--pill-h); border-radius: 999px; border: 1px solid transparent; background: var(--chip); padding: 0 36px 0 36px; }
/* All films / My watchlist: a pill switch, like 17:54's switches */
.listswitch { display: flex; gap: 2px; padding: 0; border: 0; border-radius: 999px; background: var(--chip); }
.listswitch button { flex: 1; border: 0; border-radius: 999px; background: transparent; color: var(--muted); padding: 7px 10px;
  font: 600 14px var(--body); cursor: pointer; }
.listswitch button + button { border-left: 0; }
.listswitch button[data-list="all"][aria-pressed="true"] { background: var(--chip-on); color: var(--chip-on-ink); }
.listswitch button[data-list="watch"] { color: var(--accent); }
.listswitch button[data-list="watch"][aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.listswitch button[data-list="friends"][aria-pressed="true"] { background: var(--chip-on); color: var(--chip-on-ink); }
/* three tabs: icons while there's room (a narrow switch is text only); the count on the selected one */
.listswitch { container-type: inline-size; }
.listswitch button { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; padding-inline: 8px; }
.listswitch .cnt { font-weight: 500; opacity: .8; font-variant-numeric: tabular-nums; white-space: pre; margin-left: -2px; }
.listswitch .ico { flex: none; }
@container (max-width: 335px) { .listswitch .ico { display: none; } }
/* pill menus */
.dd { position: relative; flex: none; min-width: 0; }
.menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; z-index: 30; padding: 6px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .28); }
.menu.right { left: auto; right: 0; min-width: 160px; }
.menu button { display: block; width: 100%; text-align: left; border: 0; background: none; color: var(--ink); cursor: pointer;
  padding: 9px 12px 9px 30px; border-radius: 8px; font: 500 14px var(--body); position: relative; }
.menu button small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 1px; }
.menu button:hover, .menu button:focus-visible { background: var(--chip); outline: none; }
.menu button[aria-checked="true"] { color: var(--accent); }
.menu button[aria-checked="true"]::before { content: "✓"; position: absolute; left: 11px; top: 9px; }
/* lighter filter chips: outline, selected = soft accent tint */
.opt-chip { background: transparent; border: 1px solid var(--line); padding: 5px 11px; font-size: 13px; }
.opt-chip:has(input:checked) { background: var(--accent-tint); border-color: var(--accent); color: var(--ink); }
.fg legend { padding-bottom: 8px; }
.fg { padding-block: 14px; }
/* header: title left, location pill right */
.top { align-items: center; padding-block: 16px;  /* the same above and below, so the title and buttons sit in the middle of the band */ }
/* group headings without border lines running through them; spacing separates groups */
.fg { border: 0; padding: 0; margin: 0 0 18px; }
.fg legend { padding: 0 0 8px; }
.menu { min-width: max(230px, 100%); }
.menusep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu button.plain { padding-left: 30px; font-weight: 500; color: var(--muted); }
.menu button.plain:hover { color: var(--ink); }
.grab { display: none; }
.scrim { position: fixed; inset: 0; z-index: 19; background: var(--scrim); }
.scrim[hidden] { display: none; }
@media (max-width: 999px) {
  .grab { display: block; width: 40px; height: 4px; border-radius: 99px; background: var(--edge); margin: -6px auto 10px; }
  body.filters-open .filters { box-shadow: none; }
  .filters-head { margin-bottom: 10px; }
}
@media (min-width: 1000px) {
  .scrim { display: none; }
  .bar { flex-wrap: nowrap; }
  .bar .searchbox { flex: 1 1 auto; }
  /* the Filters heading is centred on the bar's All films / Watchlist switch, at the top of the page and pinned alike */
  .filters { padding-top: 12px; top: 0; max-height: 100dvh; }
  .filters-head { min-height: 38.5px; }  /* the switch's height */
}
/* --- review pass 2 --- */
@media (max-width: 999px) { #filtersDone { display: none; } }
/* handle, backdrop and "Show N films" close it */
@media (min-width: 1000px) {
  /* desktop sidebar: options as a tidy list, not wrapping chips */
  .layout { grid-template-columns: 240px minmax(0, 1fr); }
  .filters .chips { flex-direction: column; align-items: stretch; gap: 2px; }
  .filters .opt-chip { border: 0; border-radius: 8px; padding: 7px 10px; background: transparent; font-size: 14px; justify-content: space-between; }
  .filters .opt-chip:hover { background: var(--chip); }
  .filters .opt-chip .n { margin-left: auto; }
  .filters .opt-chip:has(input:checked) { background: var(--accent-tint); border: 0; }
  .filters-head { margin-bottom: 14px; }
}
.card .m .nw { white-space: nowrap; }
.card .m .nw.today { color: var(--soon); }
/* keep last: stop iPhone zooming the page when the search box is tapped */
@media (max-width: 1000px) { .searchbox input { font-size: 16px; } }
/* heart buttons */
.star svg { display: block; margin: auto; }
.star { display: flex; align-items: center; justify-content: center; padding: 0; }
.actions .btn svg { vertical-align: -3px; }
/* each section is one panel: the header is its top row and the films sit inside it */
#grid { overflow-anchor: none; padding-top: 14px; }
/* anchor: no re-jump on collapse; padding: gap under the bar's line */
.sec { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin: 0 0 16px; overflow: clip; }
/* clip (unlike hidden) keeps the header sticky */
.sec .sech { top: calc(var(--stick-top, 0px) - 1px); padding: 0; background: var(--surface); border-radius: 0; }
.sec .sech button { align-items: center; padding: 14px 16px; border: 0; border-radius: inherit; background: none; transition: background .15s; }
.sec .sech button:hover { background: var(--chip); }
.sec .sech button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.sec .sech .lbl, .sec.shut .sech .lbl { font-size: 22px; color: var(--ink); }
.sec .sech .chev { margin-left: auto; display: flex; color: var(--muted); transition: transform .15s; }
.sec.shut .sech .chev { transform: rotate(-90deg); }
.sec .sech button:hover .chev { color: var(--ink); }
.sec > .grid { padding: 2px 16px 16px; }
@media (max-width: 560px) { .sec > .grid { padding: 2px 10px 12px; } .sec .sech button { padding: 13px 12px; } }
/* sign-in / account dialogs: pill controls everywhere, bottom sheet on phones */
#account .signin { flex-direction: column; gap: 10px; }
#account input[type=email], #account input[type=text], #account input[inputmode] { flex: none; width: 100%; font: inherit; font-size: 16px; padding: 12px 16px;
  border-radius: 999px; border: 1px solid transparent; background: var(--chip); color: var(--ink); }
#account .signin .btn { width: 100%; padding: 12px 16px; border-radius: 999px; font-size: 15px; }
#account h2 { padding-right: 44px; }
@media (max-width: 560px) {
  #account, #friendsAdd { position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: 100%; height: auto; max-height: 92dvh;
    border-radius: 18px 18px 0 0; padding: 22px 18px calc(24px + env(safe-area-inset-bottom, 0px)); }
}
/* The band runs edge to edge through a pseudo-element, so menus can still drop out of it (a clip-path would cut them off). */
body { overflow-x: clip; }
.top { position: relative; z-index: 6; isolation: isolate; background: none; }
.top::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: var(--band); z-index: -1; }
/* The controls bar is plain page (opaque only so pinned content doesn't show through), its controls in line with the
   films, and as snug at the top of the page as it is when pinned. Below desktop it covers the page edge to edge. */
.controls { background: var(--bg); }
#grid { padding-top: 0; }
/* the same spacing at every width: the title, its padding and the gap between control rows don't change with the screen */
.controls { row-gap: 10px; }
@media (max-width: 999px) {
  .controls { background: none; }
  .controls::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: var(--bg); z-index: -1; }
}
/* sections: even rhythm, header and posters share one left edge */
.sec { margin: 0 0 12px; border-radius: 16px; }
.sec .sech button { padding: 16px 18px; gap: 12px; }
.sec .sech .n { font: 600 12px var(--mono); opacity: .55; }
.sec .sech .chev { margin-right: -4px; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; transition: transform .15s, background .15s; }
.sec .sech button:hover .chev { background: var(--bg); }
.sec > .grid { padding: 16px 18px 18px; }
/* phones: panels run edge to edge so the posters get the width, with the same breathing room on every side */
@media (max-width: 560px) {
  .sec { margin-inline: -16px; border-radius: 0; border-inline: 0; }
  .sec .sech button { padding: 14px 12px; }
  .sec > .grid { padding: 12px; }
}
/* The day control (a calendar icon, named when there's room) */
#dayDD { flex: none; }
#dayBtn svg { flex: none; color: var(--muted); }
#dayBtn.on { background: var(--accent-tint); border-color: var(--accent); }
/* another day than today, like active filters */
#dayBtn.on svg { color: var(--accent); }
.dayempty { margin: 0; padding: 22px 18px 24px; color: var(--muted); }
.menu.cal { left: 0; min-width: 0; width: 300px; padding: 12px; }
.menu.cal .calhead { gap: 2px; }
.menu.cal .calhead b { margin-right: auto; padding-left: 4px; }
.menu.cal .caltoday { display: inline-flex; align-items: center; width: auto; height: 30px; padding: 0 12px; margin-right: 4px; border: 1px solid var(--line); border-radius: 999px;
  font: 600 13px var(--body); }
.menu.cal .caltoday:hover { border-color: var(--ink); }
.calhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.calhead b { font: 700 18px var(--display); text-transform: uppercase; letter-spacing: .02em; }
.menu.cal :is(.calnav, .cday) { display: inline-flex; align-items: center; justify-content: center; padding: 0; text-align: center; }
.menu.cal .calnav { width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; }
.calgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.calgrid .wd { text-align: center; font: 500 11px var(--mono); color: var(--muted); padding-bottom: 4px; }
.menu.cal .cday { width: 100%; aspect-ratio: 1; border-radius: 50%; font: 500 14px var(--body); font-variant-numeric: tabular-nums; }
.menu.cal .cday.now { box-shadow: inset 0 0 0 1px var(--edge); }
.menu.cal .cday[aria-pressed="true"] { background: var(--chip-on); color: var(--chip-on-ink); }
.menu.cal button:disabled { color: var(--muted); opacity: .4; cursor: default; background: none; }
.day.picked { box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }
.day.picked h4 { color: var(--accent); }
@media (max-width: 999px) {
  /* narrow: the picker drops from the whole bar so it fits */
  .bar { position: relative; }
  #dayDD { position: static; }
  .menu.cal { width: min(300px, 100%); }
}
/* The date button always shows the day's name: the search field gives way, never the button. */
.bar { container-type: inline-size; }
@media (min-width: 1000px) { .menu.cal { left: auto; right: 0; } }
/* the date sits at the bar's right end: open leftwards */
@media (max-width: 560px) { .dayempty { padding: 18px 12px 20px; } }
/* The header compacts step by step only as far as it must to stay on one row (fitHeader in app.js sets these). */
.top { flex-wrap: wrap; }
/* last resort: the buttons go under the title */
.topright { margin-left: auto; }
#accountBtn .ico { display: none; }
.top.fit-account #accountBtn.primary { width: var(--pill-h); padding: 0; justify-content: center; }
.top.fit-account #accountBtn .lbl { display: none; }
.top.fit-account #accountBtn .ico { display: block; }
.top.fit-pin #regionBtn svg { display: none; }
.top.fit-chev #regionBtn .chev { display: none; }
.top.fit-title h1 { font-size: 30px; }
/* The What's new panel: days (pinned headers), each split into labelled "Tickets on sale" / "Newly announced" grids of
   the usual cards. Every card here is new, so no "New" flag, and announced films aren't dimmed: the label says why.
   It's as wide as a film's page (the dialog default). */
.nhead { padding: 22px 22px 4px; }
.nhead h2 { font: 800 34px/0.95 var(--display); text-transform: uppercase; margin: 0 0 6px; padding-right: 44px; }
.nhead p { margin: 0; color: var(--muted); font-size: 13px; }
.nday { padding: 0 22px 8px; }
.nday > h3 { position: sticky; top: 0; z-index: 3; margin: 0; padding: 18px 0 10px; background: var(--surface);
  border-bottom: 1px solid var(--line); font: 700 24px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.nkind h4 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 16px 0 12px; font-weight: 400; }
.nkind .ntag { padding: 5px 12px; border-radius: 999px; font: 700 13px var(--body); letter-spacing: .02em; text-transform: uppercase; }
.nkind.ann .ntag { background: var(--accent-tint); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.nkind.sale .ntag { background: var(--soon); color: var(--bg); }
.nkind .n { font: 600 12px var(--mono); color: var(--muted); }
.nkind .grid { padding-bottom: 6px; }
.nempty { padding: 18px 22px 24px; color: var(--muted); }
@media (max-width: 560px) { .nhead, .nday { padding-inline: 16px; } .nempty { padding-inline: 16px; } }
/* film page on phones: a bottom sheet with a Close button where the thumb is. The page behind can't scroll: app.js pins it in place
   while any dialog is open (overflow: hidden isn't enough: iOS ignores it while the keyboard is up). */
dialog { overscroll-behavior: contain; }
.sheetbar { display: none; }
@media (max-width: 560px) {
  #film { position: fixed; inset: auto 0 0 0; width: 100%; max-width: 100%; height: auto; max-height: 88dvh; margin: 0;
    border-radius: 18px 18px 0 0; }
  #film .dlg-close { top: 0; }
  .sheetbar { display: block; position: sticky; bottom: 0; z-index: 3; padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--surface); border-top: 1px solid var(--line); }
  .sheetbar .btn { width: 100%; padding: 12px; border-radius: 999px; font-size: 15px; }
}
/* Short confirmation message (a popover, so it shows above open dialogs): one line, bottom centre, Undo on the right. */
#toast { position: fixed; inset: auto 0 calc(20px + env(safe-area-inset-bottom)) 0; margin: 0 auto; width: max-content; max-width: calc(100vw - 32px);
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border: 0; border-radius: 12px;
  background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 500; line-height: 1.3; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
#toast:not(:popover-open) { display: none; }
#toast:popover-open { animation: toast-in .2s ease-out; }
#toast span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
/* Header: the location is a plain pill with a pin; signing in is the one filled button, then a round avatar once signed in. */
#accountBtn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
#accountBtn.avatar { width: var(--pill-h); padding: 0; justify-content: center; font-weight: 700; background: var(--accent-tint); border-color: var(--accent); color: var(--accent); }
#regionBtn svg { flex: none; color: var(--muted); }
/* "Last chance" / "Leaving soon" line on a poster card. */
.card .m .leave { color: var(--accent); font-weight: 600; }
/* Poster overlays stay above the image when it zooms on hover (the transformed image otherwise paints over them). */
.poster .flag, .poster .kind, .poster .pillr, .poster .fstack { z-index: 1; }
/* Hide-a-film button: always visible, bottom-left of the poster, the height of the rating tag. Hidden films are dimmed (not their buttons). */
.poster .hide { position: absolute; left: 6px; bottom: 6px; width: 20px; height: 20px; border-radius: 50%; border: 0; cursor: pointer; padding: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center; background: rgba(10, 12, 16, .55); color: #fff; }
.poster .hide svg { width: 11px; height: 11px; }
.poster .kind { left: 32px; }
/* the type label (Shorts, Live & stage, ...) sits beside the hide button */
.card.hid .poster img, .card.hid .poster .ph, .card.hid .m, .card.hid h3 { opacity: .45; }
#toast .linkbtn { flex: none; color: inherit; font-weight: 700; text-decoration: none; padding: 6px 12px; border-radius: 8px; background: color-mix(in srgb, currentColor 16%, transparent); }
#toast .linkbtn:hover { background: color-mix(in srgb, currentColor 26%, transparent); }
.actions .btn svg { vertical-align: -3px; }
/* Hover feedback on the heart and hide buttons. */
.star, .hide { transition: transform .15s ease, background-color .15s ease, opacity .15s ease; }
.star:hover:not(.on), .hide:hover { background: rgba(10, 12, 16, .88); transform: scale(1.12); }
.star.on:hover { transform: scale(1.12); filter: brightness(1.12); }
.star:active, .hide:active { transform: scale(.94); }
/* Film sheet header: the details (badges, title, rating, description) beside the poster, then one main action with
   share and a "more" menu, then a quiet line of links. The showings below have their own heading, with the Cinemas /
   Format menus on it and the strip of days under it. On phones the buttons sit under the poster using the full width. */
.fhead { grid-template-rows: auto 1fr; row-gap: 0; padding-bottom: 18px; }
.fhead .poster { grid-row: span 2; }
.fmore { grid-column: 2; margin-top: 4px; }
.ftext .badges { margin-bottom: 8px; }
.fhead .meta { margin-bottom: 10px; }
.fhead .meta:has(+ .rate) { margin-bottom: 4px; }
.rate { display: flex; align-items: baseline; gap: 6px; width: fit-content; margin-bottom: 10px; font-size: 13px; color: var(--muted); text-decoration: none; }
.rate b { font: 500 13px var(--mono); color: var(--soon); }
.rate span { text-decoration: underline; text-underline-offset: 2px; }
.rate:hover { color: var(--ink); }
.actions { flex-wrap: nowrap; }
.actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; }
.actions .btn.primary { flex: 1 1 auto; max-width: 300px; }
.actions .btn.icon { flex: none; width: 40px; padding: 0; }
.actions .btn.share { flex: none; padding: 0 14px; }
@media (max-width: 359px) { .actions .btn.share { width: 40px; padding: 0; } .actions .btn.share .lbl { display: none; } }
/* too narrow for the label */
.actions .dd { flex: none; }
.actions .menu { min-width: 190px; }
.fhead .friendline { margin: 12px 0 0; }
.showings { margin: 0 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.showhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 12px; }
.showhead h3 { margin: 0; font: 700 12px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.showings .picks { margin-top: 0; }
@media (max-width: 600px) {
  .fhead { padding-bottom: 14px; }
  .fhead .poster { grid-row: auto; }
  .fmore { grid-column: 1 / -1; margin-top: 14px; }
  .actions .btn.primary { max-width: none; }
  .showings { margin: 0 16px; }
}
/* Dimming (hiding a film) fades; the button that was pressed bounces once. */
.card .poster img { transition: opacity .3s ease, transform .25s ease; }
.card .poster .ph, .card .m, .card h3 { transition: opacity .3s ease; }
.pop { animation: pop .35s ease; }
@keyframes pop { 40% { transform: scale(1.28); } }
/* Film sheet: the Cinemas and Format menus and the strip of days that narrow its showings. A picked
   menu is highlighted like an active filter; a format that can't combine with those picked is dimmed. */
.picks { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.pmenus { display: flex; flex-wrap: wrap; gap: 8px; }
.pill.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.pill.sm .lbl { overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.pill.sm.on { background: var(--accent-tint); border-color: var(--accent); }
.pmenus .menu { max-height: min(360px, 60vh); overflow-y: auto; max-width: calc(100vw - 32px); }
.pmenus .menu button { display: flex; gap: 12px; align-items: baseline; }
.pmenus .menu .n { margin-left: auto; color: var(--muted); font-weight: 400; font-size: 12px; font-variant-numeric: tabular-nums; }
.pmenus .menu button.alone { opacity: .5; }
.pmenus .menu button.alone:hover, .pmenus .menu button.alone:focus-visible { opacity: 1; }
.pmenus .menu button[aria-checked="true"]::before { top: 50%; transform: translateY(-50%); }
.dwrap { display: flex; align-items: center; gap: 6px; }
.dstrip { position: relative; flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.dstrip::-webkit-scrollbar { display: none; }
.dstrip button { flex: none; display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: 5px 8px; border-radius: 10px;
  border: 1px solid transparent; background: var(--chip); color: var(--ink); cursor: pointer; font: 500 11px/1.25 var(--body); }
.dstrip button span { color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.dstrip button b { font-size: 13px; font-weight: 600; white-space: nowrap; }
.dstrip button:hover { border-color: var(--line); }
.dstrip button[aria-pressed="true"] { background: var(--chip-on); color: var(--chip-on-ink); }
.dstrip button[aria-pressed="true"] span { color: inherit; opacity: .75; }
.dnav { flex: none; width: 32px; height: 32px; padding: 0 0 2px; border-radius: 50%; border: 1px solid var(--line); background: none;
  color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.dnav:hover:not(:disabled) { border-color: var(--ink); }
.dnav:disabled { opacity: .3; cursor: default; }
.dwrap.fits .dnav { display: none; }
.dstrip.more-l { mask-image: linear-gradient(to right, transparent, #000 28px); }
.dstrip.more-r { mask-image: linear-gradient(to left, transparent, #000 28px); }
.dstrip.more-l.more-r { mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
@media (max-width: 600px) {
  /* swiped, running to the screen's edges */
  .dnav { display: none; }
  .dstrip { margin: 0 -16px; padding: 0 16px; }
}
/* friends: initials on posters and in the film sheet, and the friends screen in the account dialog */
.fstack { position: absolute; right: 6px; bottom: 6px; display: flex; pointer-events: none; }
.fdot { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; box-sizing: border-box;
  font: 700 10px/1 var(--body); color: #fff; background: hsl(var(--h, 210) 45% 36%); border: 2px solid var(--surface); }
.fstack .fdot + .fdot { margin-left: -8px; }
.fdot.more { background: var(--chip-on); color: var(--chip-on-ink); }
.friendline { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 13px; color: var(--muted); }
.friendline .fstack { position: static; }
#account .back { padding-left: 0; margin-bottom: 6px; }
#account .subh { display: block; font: 700 12px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.codebox { text-align: center; font: 700 30px/1 var(--mono); letter-spacing: .12em; padding: 16px 8px; margin: 4px 0 10px;
  background: var(--chip); border-radius: 8px; user-select: all; -webkit-user-select: all; }
#account .codebtns { display: flex; gap: 8px; margin-bottom: 16px; }
#account .codebtns .btn, #account .signin .row .btn { flex: 1; }
#account .signin .row { display: flex; gap: 8px; }
#account .signin .row .btn { width: auto; }
#account .alt { margin-top: 14px; font-size: 13px; }
#account .google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px 16px; border-radius: 999px; font-size: 15px; font-weight: 600; }
#account .google svg { flex: none; }
#account .orline { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--muted); font-size: 12px; }
#account .orline::before, #account .orline::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.friendlist { list-style: none; margin: 0 0 4px; padding: 0; }
.friendlist li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.friendlist .fname { flex: 1; min-width: 0; overflow-wrap: anywhere; }
#account .nofriends { margin: 0; }
.linkrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 12px 0; border: 0; border-top: 1px solid var(--line);
  background: none; color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.linkrow small { display: block; color: var(--muted); font-size: 12px; }
#account p.lead { padding-right: 44px; }
/* account dropdown (avatar menu) and its wider panels */
#acctMenu { min-width: 250px; }
.menuhead { display: flex; flex-direction: column; gap: 1px; padding: 8px 12px 6px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.menuhead b { color: var(--ink); font-size: 14px; }
.menu .mi { position: absolute; left: 10px; top: 10px; display: block; color: var(--muted); }
.menu a { display: block; position: relative; padding: 9px 12px 9px 30px; border-radius: 8px; font: 500 14px var(--body); color: var(--ink); text-decoration: none; }
.menu a:hover, .menu a:focus-visible { background: var(--chip); outline: none; }
.menu button.signout { color: var(--muted); }
.menu button.signout:hover { color: var(--ink); }
@media (min-width: 561px) { #account.wide { width: min(580px, calc(100vw - 32px)); padding: 26px 28px; } }
#account .hint { margin: 6px 0 14px; font-size: 13px; color: var(--muted); }
#account .hint b { color: var(--ink); font-weight: 600; }
#account .hint .linkbtn { padding: 0 2px; font-size: inherit; }
#account .opt.master { border-top: 0; padding-top: 4px; font-weight: 600; }
#account .opt.master small { font-weight: 400; }
#account fieldset.emailopts { border: 0; margin: 0; padding: 0; min-width: 0; }
#account fieldset.emailopts:disabled { opacity: .45; }
#account .cardopts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 340px) { #account .cardopts { grid-template-columns: 1fr; } }
.cardopt { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 14px; }
.cardopt input { position: absolute; opacity: 0; pointer-events: none; }
.cardopt small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.cardopt:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.cardopt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
#account .chips { display: flex; flex-wrap: wrap; gap: 8px; }
#account .summary { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--chip); font-size: 13px; line-height: 1.4; }
/* The poster in the film sheet opens larger. */
.pzoom { display: block; position: relative; width: 150px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: inherit; align-self: start; }
.fhead > .pzoom { grid-row: span 2; }
.pzoom:has(img) { cursor: zoom-in; }
.pzoom:has(img)::after { content: ""; position: absolute; right: 6px; bottom: 6px; width: 28px; height: 28px; border-radius: 50%; pointer-events: none;
  background: rgba(10, 12, 16, .62) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M10 20H4v-6M20 4l-7 7M4 20l7-7'/%3E%3C/svg%3E") center / 16px no-repeat; }
.pzoom:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 600px) { .fhead > .pzoom { grid-row: auto; width: 96px; } .pzoom:has(img)::after { width: 24px; height: 24px; background-size: 14px; } }
#zoom { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; background: transparent; border-radius: 0; cursor: zoom-out; }
#zoom::backdrop { background: rgba(6, 8, 11, .9); }
#zoom[open] { display: grid; place-items: center; }
#zoom img { display: block; height: min(88dvh, 1100px); max-width: 94vw; width: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 12px 48px rgba(0, 0, 0, .6); animation: zoomin .18s ease-out; }
#zoom .zclose { position: fixed; top: 0; right: 0; width: auto; height: auto; }
#zoom .x { background: rgba(255, 255, 255, .16); color: #fff; }
@keyframes zoomin { from { opacity: 0; transform: scale(.94); } }
@media (prefers-reduced-motion: reduce) { #zoom img { animation: none; } }
/* Film sheet: a long description is cut to a few lines, with a Show more button. */
.blurb { --lines: 5; margin: 0 0 12px; }
.blurb p { margin: 0 0 4px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--lines); overflow: hidden; }
.blurb.open p { display: block; -webkit-line-clamp: unset; }
.blurb .linkbtn { padding: 4px 0; }
@media (max-width: 600px) { .blurb { --lines: 4; } }
/* Filters: radios for one choice, check-marked pills for several; hints; chips for the filters in force. */
.radio { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; cursor: pointer; }
.radio input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.fghint { margin: -2px 0 8px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.fgrow { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.fgrow:not(:empty) { margin-top: 8px; }
.fgrow .linkbtn { padding: 2px 0; }
.opt-chip:has(input:checked)::before { content: "✓"; font-weight: 700; font-size: 12px; }
.activechips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 12px 0 0; }
.activechips[hidden] { display: none; }
.achip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 12px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent-tint);
  color: var(--ink); font: 500 13px var(--body); cursor: pointer; }
.achip span { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; margin-left: -1px; font-size: 14px; line-height: 1; opacity: .6; transition: background-color .12s, color .12s, opacity .12s; }
.achip:hover span, .achip:focus-visible span { opacity: 1; background: var(--ink); color: var(--bg); }
.achip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.activechips .linkbtn { padding: 4px 2px; }
.hiddenkinds { margin: 4px 0 28px; text-align: center; color: var(--muted); font-size: 13px; }
.hiddenkinds .linkbtn { padding: 0; font-size: inherit; }
.foot-links { margin-top: 8px; }
.foot-links .linkbtn { padding: 4px 0; text-decoration: none; }
/* The filters in force: one line under the toolbar, to the right of the Filters button. The chips scroll sideways (fading at the
   edge; they wrap on desktop); "Clear all" stays pinned at the end of the line. */
.controls .activechips { display: flex; flex-wrap: nowrap; min-width: 0; align-items: center; gap: 8px; padding: 0; }
.activechips[hidden] { display: none; }
.chiplist { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none;
  mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); padding-right: 14px; margin-right: -6px; }
.chiplist::-webkit-scrollbar { display: none; }
.chiplist > * { flex: none; white-space: nowrap; }
#chipsClear { flex: none; padding: 4px 2px; white-space: nowrap; }
#chipsClear[hidden] { display: none; }
.achip { background: transparent; border-color: var(--line); }
.achip:hover { border-color: var(--ink); }
@media (min-width: 1000px) { .controls .activechips { flex-wrap: wrap; } .chiplist { flex-wrap: wrap; overflow: visible; mask-image: none; padding-right: 0; margin-right: 0; } }
.radio small { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }
.radio { align-items: flex-start; }
.radio input { margin-top: 1px; }
/* The top-right buttons wait (visibly empty, but taking their space) until app.js has settled them, with a fallback in case it doesn't run. */
.top:not(.ready) .topright { visibility: hidden; animation: reveal 0s 1.5s forwards; }
@keyframes reveal { to { visibility: visible; } }
/* The Friends tab: share your code, add a friend's, and who your friends are. */
.fpanel { margin: 0 0 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.fpanel[hidden] { display: none; }
.fpanel .fh { margin: 0 0 4px; font: 800 22px/1.05 var(--display); text-transform: uppercase; }
.fpanel .fp { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.fpanel .fp:last-child { margin-bottom: 0; }
.fsum { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; }
.fpeople { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; min-width: 0; }
.fpeople .fp { margin: 0; }
.fchip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 3px 4px; border: 1px solid var(--line); border-radius: 999px; background: none; color: inherit; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.fchip:not(:has(.fdot)) { padding-left: 12px; }
.fchip .fdot { width: 22px; height: 22px; font-size: 9px; border: 0; }
.fchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.fmanage .subh { margin-bottom: 4px; }
.fmanage { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.fmanage summary { cursor: pointer; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.fpanel .fh2 { margin: 0 0 12px; font: 700 12px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.frow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 14px; }
.fbody { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.fcols { display: grid; gap: 18px; grid-template-columns: 1fr; }
.fcol { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fcol .subh, .fmanage .subh { margin: 0; font: 700 12px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fcol input { font: inherit; font-size: 16px; padding: 10px 14px; border-radius: 999px; border: 1px solid transparent; background: var(--chip); color: var(--ink); width: 100%; }
.fcol .row { display: flex; gap: 8px; flex-wrap: wrap; }
.codebox.sm { margin: 0; padding: 10px 8px; font-size: 22px; }
.fpanel .btn.small, #friendsAdd .btn.small { padding: 8px 14px; border-radius: 999px; }
/* on its own row, wider than a phone: don't stretch the switch across the page */
.fbar { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.fbar > span:first-child { font-weight: 700; }
.fbar .fsub { flex: 1; min-width: 0; color: var(--muted); font-size: 13px; }
.fbar .chev { color: var(--muted); }
.fbody { margin-top: 14px; }
.fbody[hidden] { display: none; }
.fline { display: flex; align-items: center; gap: 6px; padding: 5px; border-radius: 999px; background: var(--chip); }
.fline:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.fline .fcode, .fline input { flex: 1; min-width: 0; width: auto; padding: 9px 6px; text-align: center; line-height: 1.2; border: 0; background: none; outline: 0; box-shadow: none; }
.fline .fcode { display: flex; align-items: center; justify-content: center; font: 700 20px/1.2 var(--mono); text-indent: .12em; letter-spacing: .12em; }
.fline .btn { flex: none; white-space: nowrap; width: 138px; text-align: center; }
.fpanel .btn:disabled, #friendsAdd .btn:disabled { opacity: .4; cursor: default; }
.fbody .fcols { max-width: 520px; }
@media (min-width: 700px) { .fbody .fcols { max-width: none; grid-template-columns: 1fr 1fr; gap: 24px; } }
.fcols { gap: 16px; }
.fpanel .btn.dark, #friendsAdd .btn.dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.wlinvite { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 4px 12px; padding: 14px 16px; }
.wlinvite[hidden] { display: none; }
.wlinvite .wlico { color: var(--accent); margin-top: 1px; }
.wlinvite .wlmsg { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.35; }
.wlinvite .wlmsg strong { font-size: 15px; }
.wlinvite .wlmsg span { color: var(--muted); }
.wlinvite .btn { grid-column: 1 / -1; margin-top: 8px; justify-self: stretch; text-align: center; }
@media (min-width: 640px) { .wlinvite { grid-template-columns: auto 1fr auto; align-items: center; } .wlinvite .btn { grid-column: auto; margin: 0; justify-self: auto; } }
.switchrow { display: flex; align-items: center; gap: 8px; min-width: 0; }
.switchrow .listswitch { flex: 1; min-width: 0; }
.addfriend { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--chip); color: var(--ink); cursor: pointer; }
.addfriend[hidden] { display: none; }
#friendsAdd h2 { font: 800 28px/1 var(--display); text-transform: uppercase; margin: 0 0 8px; padding-right: 44px; }
#friendsAdd p { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
#friendsAdd .fcols { max-width: none; grid-template-columns: 1fr; }
#friendsAdd .fmanage .subh, #friendsAdd .fcol .subh { display: block; }
.fpanel .fh + .fp { margin-bottom: 14px; }
@media (min-width: 700px) { .fpanel > .fcols { grid-template-columns: 1fr 1fr; gap: 24px; } }
.fpanel > .fcols { max-width: none; }
/* Long lists: cards off screen skip layout and paint until they scroll near (450 films made switching tabs stutter). The size is
   a guess until a card has been shown once; the browser then remembers its real height. */
.sec > .grid > .card { content-visibility: auto; contain-intrinsic-size: auto 270px; }
@media (min-width: 561px) { .sec > .grid > .card { contain-intrinsic-size: auto 330px; } }
/* the feed and the main navigation: a capsule in the iOS "liquid glass" manner. The tabs share the width equally and a
   raised lens slides under the current one (pure CSS: it follows aria-current). Desktop: an inset track in the header;
   phones: a floating glass bar at the foot of the screen with the icon over its label. */
:root { --lens: #ffffff; --glass-hi: rgba(255, 255, 255, .7); --glass-lo: rgba(0, 0, 0, .06); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --lens: #3a3f49; --glass-hi: rgba(255, 255, 255, .14); --glass-lo: rgba(0, 0, 0, .4); } }
:root[data-theme="dark"] { --lens: #3a3f49; --glass-hi: rgba(255, 255, 255, .14); --glass-lo: rgba(0, 0, 0, .4); }
.mainnav { --navring: var(--chip); --pad: 4px; position: relative; isolation: isolate; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: var(--pad); border-radius: 999px; background: var(--chip); box-shadow: inset 0 1px 2px var(--glass-lo); }
.mainnav::before { content: ""; position: absolute; z-index: -1; top: var(--pad); bottom: var(--pad); left: var(--pad); width: calc((100% - 2 * var(--pad)) / 2);
  border-radius: 999px; background: var(--lens); box-shadow: inset 0 1px 0 var(--glass-hi), 0 1px 3px rgba(0, 0, 0, .12), 0 4px 12px -4px rgba(0, 0, 0, .2);
  transition: transform .5s cubic-bezier(.34, 1.45, .5, 1), opacity .2s; }
.mainnav:has(> a:nth-child(2)[aria-current])::before { transform: translateX(100%); }
.mainnav:not(:has([aria-current]))::before { opacity: 0; }
/* as on iOS: the tabs you're not on are plain ink (white in dark mode), the one you're on is the accent colour */
.mainnav a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 20px; border-radius: 999px; color: var(--ink);
  font-weight: 600; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: color .2s, transform .25s cubic-bezier(.34, 1.45, .5, 1); }
.mainnav a[aria-current] { color: var(--accent); font-weight: 700; }
.mainnav a:active { transform: scale(.92); }
.mainnav a[aria-current] svg { stroke-width: 2.4; }
.mainnav .ni { position: relative; display: grid; place-items: center; }
.navdot { position: absolute; top: -10px; right: -9px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 10px; box-sizing: border-box; background: var(--accent); color: var(--accent-ink); font: 700 11px/18px var(--body); text-align: center; font-style: normal; box-shadow: 0 0 0 2px var(--navring, var(--band, var(--bg))); }
.navdot[hidden] { display: none; }
@media (min-width: 640px) { .mainnav a:has(.navdot:not([hidden])) .nl { margin-left: 8px; } }
@media (prefers-reduced-motion: reduce) { .mainnav::before, .mainnav a { transition: none; } }
@media (max-width: 639px) {
  /* floating glass, clear of the screen edge: clearly see-through (the page shows through, blurred) but held apart from it by a
     fine edge, a lit top rim and a close, even shadow that doesn't reach the bottom of the screen */
  .mainnav { --navring: var(--lens); --pad: 4px; position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 30;
    width: min(250px, calc(100% - 48px)); background: color-mix(in srgb, var(--surface) 55%, transparent);
    -webkit-backdrop-filter: blur(16px) saturate(1.9); backdrop-filter: blur(16px) saturate(1.9);
    box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 0 0 1px color-mix(in srgb, var(--glass-hi) 40%, transparent),
      0 0 0 .5px color-mix(in srgb, var(--ink) 22%, transparent), 0 2px 10px rgba(0, 0, 0, .14); }
  .mainnav::before { background: color-mix(in srgb, var(--ink) 11%, transparent); box-shadow: none; }
  .mainnav a { flex-direction: column; gap: 1px; padding: 5px 10px 4px; font-size: 10.5px; line-height: 1.2; letter-spacing: .01em; }
  .mainnav .ni svg { width: 22px; height: 22px; }
  .navdot { top: -5px; right: -12px; min-width: 16px; height: 16px; font-size: 10px; line-height: 16px; padding: 0 4px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
body.page-feed #comingUp, body.page-feed .controls, body.page-feed #wlInvite, body.page-feed #friendsPanel, body.page-feed #grid, body.page-feed #hiddenKinds, body.page-feed .filters, body.page-feed .scrim { display: none; }
body.page-feed .layout { grid-template-columns: minmax(0, 1fr); }
.feed { max-width: 860px; margin-inline: auto; width: 100%; }
.feedtitle { font: 800 34px/0.95 var(--display); text-transform: uppercase; margin: 8px 0 4px; }
.feed .nday { padding: 0 0 8px; }
.feed .nday > h3 { background: var(--bg); }
.post { margin: 0 0 12px; padding: 14px 18px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.phead { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.phead .fdot { width: 34px; height: 34px; font-size: 12px; }
.pico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--chip); color: var(--ink); }
.pico.k-sale { background: var(--soon); color: var(--bg); }
.pico.k-announced { background: var(--accent-tint); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.ptext { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ptext strong { font-weight: 600; }
.ptext time { color: var(--muted); font-size: 12px; }
.post .grid { padding: 0; }
.post .flag { display: none; }
.post .card.nosale .poster img { opacity: 1; filter: none; }
.post .card.nosale h3 { color: var(--ink); }
.postmore { display: block; margin: 12px auto 0; }
.feednudge { margin-top: 12px; }
.feed .feedtitle { margin-top: 18px; }
@media (max-width: 639px) { #toast { inset: auto 0 calc(76px + env(safe-area-inset-bottom, 0px)) 0; } }
.post .card .m:empty { display: none; }
.post .card h3 { margin-bottom: 1px; }
.feed { padding-top: 0; }
.post .m .cin { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.post .m .dt { font-weight: 400; }
/* posters in the feed are the size of the ones on Films: same columns, same side padding (full width on phones, like the sections) */
@media (max-width: 560px) { .post { margin-inline: -16px; padding-inline: 12px; border-radius: 0; border-inline: 0; } }
.feedfilter { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 12px; }
.feedfilter::-webkit-scrollbar { display: none; }
.feedfilter .chip { flex: none; padding: 7px 14px; font: 600 14px var(--body); cursor: pointer; color: inherit; }
.feedfilter .chip[aria-pressed="true"] { background: var(--chip-on); color: var(--chip-on-ink); }
/* desktop: the Filters button toggles the sidebar; closed, the content is centred as on the Feed page */
@media (min-width: 1000px) {
  #filtersBtn { display: inline-block; }
  body:not(.filters-off) #filtersBtn { background: var(--chip-on); border-color: var(--chip-on); color: var(--chip-on-ink); }
  body.filters-off .filters { display: none; }
  body.filters-off .layout { grid-template-columns: minmax(0, 1fr); }
  body.filters-off .main { width: 100%; max-width: 860px; margin-inline: auto; }
}
/* The controls, one set of rules at every width.
   See layoutControls (app.js): from 640px search and Date prefer the top line beside the switch; the Filters button is always
   first on the left and never alone on a line unless chips are with it. */
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px; }
.controls > .switchrow { flex: 1 1 100%; min-width: 0; }
.controls > .filterrow { flex: 0 1 auto; display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.controls > .bar { flex: 1 1 200px; min-width: 0; flex-wrap: nowrap; }
.filterrow > #filtersBtn { flex: none; }
.filterrow > .activechips { flex: 1 1 auto; min-width: 0; }
.controls.tools-top > .bar { order: 1; }
.controls.tools-top > .filterrow { order: 2; flex: 1 1 100%; }
.controls.all-top > .filterrow { order: 0; }
.controls.all-top > .switchrow { order: 1; }
.controls.all-top > .bar { order: 2; }
@media (min-width: 640px) {
  .controls > .switchrow > .listswitch { max-width: 370px; }  /* alone on its line it stays 370px wide, not the whole width */
  .controls.tools-top > .switchrow, .controls.all-top > .switchrow { flex: 0 0 370px; }
}
/* typing in the search field on a phone: it takes the whole row */
@media (max-width: 559px) {
  .controls:has(#q:focus) > .switchrow, .controls:has(#q:focus) > .filterrow { display: none; }
}
/* the header stays on screen from 640px (below that the navigation is the bottom capsule); the controls pin under it */
:root { --hdr-h: 0px; }
@media (min-width: 640px) {
  :root { --hdr-h: 70px; }
  .top { position: sticky; top: 0; z-index: 7; }
}
.controls { top: calc(var(--hdr-h, 0px) + env(safe-area-inset-top, 0px)); }
@media (min-width: 1000px) { .filters { top: var(--hdr-h, 0px); max-height: calc(100dvh - var(--hdr-h, 0px)); } }
/* room for the film count is kept on the selected tab before it arrives, and the tabs stay still while the page loads */
.listswitch button[aria-pressed="true"] .cnt:empty::before { content: " · 000"; visibility: hidden; }
.top:not(.ready) .mainnav { visibility: hidden; }
/* placeholders while the programme loads */
.sk .poster, .sk h3, .sk .m, .skbar, .sk .pico { background: var(--chip); border-radius: 6px; animation: sk-pulse 1.3s ease-in-out infinite; }
.sk .poster { border-radius: 8px; }
.sk .poster::after, .sk .poster::before { display: none; }
.sk h3 { height: 14px; width: 72%; margin: 10px 0 8px; font-size: 0; }
.sk .m { height: 11px; width: 52%; }
.sk .m:empty { display: block; }
.skbar { display: block; height: 14px; width: 150px; }
.skbar.short { width: 70px; height: 10px; margin-top: 6px; }
.sech .skbar { margin: 18px 18px; }
.sk .pico { background: var(--chip); box-shadow: none; }
@keyframes sk-pulse { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .sk .poster, .sk h3, .sk .m, .skbar, .sk .pico { animation: none; } }
/* the Feed's filter row stays on screen under the header while you scroll */
.feedfilter { position: sticky; top: calc(var(--hdr-h, 0px) + env(safe-area-inset-top, 0px)); z-index: 5; background: var(--bg); margin-inline: -16px; padding: 12px 16px; }
/* the top-right button is a menu for everyone: an avatar when signed in, a person icon when not */
#accountBtn.guest { width: var(--pill-h); padding: 0; justify-content: center; }
#accountBtn.guest .ico { display: block; }
.regions { display: grid; gap: 8px; margin-top: 4px; }
.region { text-align: left; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font: 600 15px var(--body); cursor: pointer; }
.region[aria-pressed="true"] { background: var(--chip-on); color: var(--chip-on-ink); border-color: var(--chip-on); }
#account h2 + p { padding-right: 44px; }
.poster:has(.pillr) .fstack { bottom: 30px; }
/* the friends' initials sit above the rating, not under it */
.pico svg { display: block; }
/* ---------------------------------------------------------------- a showing's own page (inside the film sheet) */
a.stub.going, a.stub.going:hover { border-color: var(--soon); border-left-color: var(--soon); box-shadow: inset 0 0 0 1px var(--soon); }
.buy { display: flex; justify-content: center; align-items: center; box-sizing: border-box; width: 100%; min-height: 48px; margin-top: 12px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 16px; text-decoration: none; }
.buy.off { background: var(--chip); color: var(--muted); }
.plan { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.plan .lab { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.prow { display: flex; gap: 8px; flex-wrap: wrap; }
.pbtn { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 600 15px var(--body); cursor: pointer; display: inline-flex; align-items: center; }
.pbtn.dark { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pbtn.on { background: color-mix(in srgb, var(--soon) 14%, transparent); border-color: var(--soon); color: var(--soon); cursor: default; }
.pbtn.quiet { background: var(--chip); border-color: transparent; }
.pbtn.sm { min-height: 34px; padding: 0 12px; font-size: 14px; background: var(--surface); }
.inp { font: 16px var(--body); min-height: 44px; box-sizing: border-box; width: 100%; padding: 0 12px; border-radius: 8px; border: 0; background: var(--chip); color: var(--ink); }
.goers { display: flex; gap: 6px; flex-wrap: wrap; }
.goers .fdot { width: 22px; height: 22px; border-radius: 50%; background: var(--soon); color: #fff; display: grid; place-items: center; font-size: 11px; }
.pbtn:disabled { cursor: not-allowed; }
.showings { border-top: 0; }
.days .day:first-child { border-top: 0; }
.showings { padding-top: 0; }
.showhead { justify-content: flex-start; }
/* a divider under the film header's action row, and under the row of showing menus / back pill */
.fhead { margin-bottom: 12px; padding-bottom: 16px; background: linear-gradient(var(--line), var(--line)) no-repeat 22px 100% / calc(100% - 44px) 1px; }
@media (max-width: 600px) { .fhead { background-position: 16px 100%; background-size: calc(100% - 32px) 1px; } }
.showhead { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
/* only the one divider, under the header's action row */
.showhead { border-bottom: 0; padding-bottom: 0; }
/* the header's actions sit under the details beside the poster (no row of their own); compact */
.ftext .fmore { grid-column: auto; margin-top: 10px; }
.fhead .actions { flex-wrap: nowrap; }
.fhead .actions .btn.icon { width: 34px; min-height: 34px; border-radius: 50%; }
.fhead .actions .btn { min-height: 34px; }
.fhead .friendline { margin: 8px 0 0; }
/* the Going card */
.plan .vis { width: 100%; display: flex; flex-direction: column; gap: 8px; background: var(--chip); border-radius: 10px; padding: 12px; box-sizing: border-box; }
.plan .vis .lab { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); }
.fhead > .pzoom, .fhead > .poster { grid-row: 1; }
.fhead > .blurb { grid-column: 1 / -1; grid-row: 2; margin-top: 12px; }
/* Letterboxd, Watchlist and the menu share one line of matching pills */
.fhead .actions { flex-wrap: wrap; row-gap: 6px; gap: 6px; }
.fhead .actions > * { flex: none; }
.fhead .meta:has(+ .fmore) { margin-bottom: 10px; }
/* Watchlist: outlined when off, filled accent when on, like the Watchlist chip on the main page */
.fhead .actions .btn.wl { display: inline-flex; align-items: center; gap: 6px; height: 32px; min-height: 32px; padding: 0 12px; font-size: 13px; font-weight: 600; border-radius: 999px; background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.fhead .actions .btn.wl.on { background: var(--accent); color: var(--accent-ink); }
.fhead .actions .btn.wl svg { width: 14px; height: 14px; }
.fhead .actions .btn.icon { width: 32px; min-height: 32px; height: 32px; }
.blurb { --lines: 3; }
@media (max-width: 600px) { .blurb { --lines: 2; } }
.fhead > .blurb { margin-bottom: 0; }
.blurb p { margin-bottom: 0; }
.blurb .linkbtn { padding: 2px 0 0; }
.fhead { padding-bottom: 12px; margin-bottom: 12px; }
#film:focus { outline: none; }
.switch { flex: none; width: 48px; height: 28px; border-radius: 999px; border: 0; padding: 3px; background: var(--edge); cursor: pointer; display: flex; align-items: center; transition: background .15s; }
.switch span { width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch[aria-checked="true"] { background: var(--soon); }
.switch[aria-checked="true"] span { transform: translateX(20px); }
/* invited: someone's plan you followed a link to */
.invited { display: flex; align-items: center; gap: 10px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; font-size: 15px; }
.invited .fdot { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
/* the header's buttons stay on one line */
.fhead .actions { flex-wrap: nowrap; min-width: 0; }
.fhead .actions .btn.wl { min-width: 0; }
@media (max-width: 370px) { .fhead .actions .btn.wl .wll { display: none; } .fhead .actions .btn.wl { padding: 0 10px; } }
/* Coming up: the same look as the showing page's card (date in the display font, time · cinema under it) */
.cu { margin: 0 0 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.cu h4 { margin: 0; padding: 12px 14px 8px; font: 700 12px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cu .curows { list-style: none; margin: 0; padding: 0; }
.cu .curows li { border-top: 1px solid var(--line); }
.cu .curows a { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; padding: 12px 14px; color: var(--ink); text-decoration: none; }
.cu .curows a:hover { background: var(--chip); }
.cu .cposter .poster { width: 44px; border-radius: 4px; }
.cu .cposter .ph { font-size: 6px; padding: 3px; line-height: 1; }
.cu .ctext { display: flex; flex-direction: column; min-width: 0; }
.cu .cdt { font: 800 22px/1 var(--display); text-transform: uppercase; }
.cu .cline { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; margin-top: 3px; }
.cu .ctm { font: 600 15px var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cu .ctm .m { font-family: var(--mono); font-weight: 500; }
.cu .csub { margin-top: 2px; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Coming up rows open the showing: a chevron says so, the film line is plain text colour */
.cu .curows a { grid-template-columns: 44px 1fr 16px; column-gap: 12px; cursor: pointer; }
.cu .cgo { align-self: center; color: var(--muted); }
.cu .curows a:hover .cgo, .cu .curows a:focus-visible .cgo { color: var(--ink); }
.cu .curows a:active { background: color-mix(in srgb, var(--ink) 10%, var(--chip)); }
.cu .csub { font: 500 14px var(--body); color: var(--ink); }
/* showing buttons in the film's list: you (green check) and friends (initials) going */
.stub { position: relative; }
.stub .sgoers { position: absolute; top: 5px; right: 5px; display: flex; align-items: center; pointer-events: none; }
.stub .sgoers .fdot { width: 18px; height: 18px; font-size: 8px; border: 1.5px solid var(--bg); }
.stub .sgoers .fdot + .fdot, .stub .sgoers .sgo-you + .fdot { margin-left: -5px; }
.stub .sgo-you { width: 18px; height: 18px; border-radius: 50%; background: var(--soon); color: var(--bg); display: grid; place-items: center; font-size: 10px; font-weight: 700; border: 1.5px solid var(--bg); box-sizing: border-box; }
.stub.going { padding-right: 36px; }
/* the goers sit on a line of their own at the bottom of the button (no overlap with the time) */
.stub .sgoers { position: static; margin-top: 4px; align-self: flex-start; }
.stub.going { padding-right: 11px; }
/* Coming up: a status, not a button. You're going (green, with a check), or who else is going (their initials). */
.cu .cstat { flex: none; max-width: 58%; display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px var(--body); white-space: nowrap; min-width: 0; }
.cu .cstat.you { color: var(--soon); }
.cu .cstat.fr { color: var(--ink); }
.cu .cstat.gone { color: var(--muted); font-style: italic; }
.gonenote { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; font-size: 13.5px; color: var(--ink); }
.cu .cstat .cfn { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cu .curows li:has(.cstat.you) a { box-shadow: inset 3px 0 0 var(--soon); }
/* Coming up rows: date and time together at the top (like the showing page), the film a little further below */
.cu .curows a { align-items: start; }
.cu .cposter { align-self: start; }
.cu .ctext { justify-content: flex-start; }
.cu .cdt { margin-top: -3px; }
.cu .cline { margin-top: 2px; }
.cu .csub { margin: 9px 0 0; }
.cu .cgo { align-self: center; }
/* ================================================================ Showing page: the showing's card
   One spacing scale: 4 / 8 / 14 / 22. Side padding is 14. The people section has the same padding at the top and the bottom (14);
   inside it, things are separated by one 10px gap, and a few are pulled closer on purpose: the note under your row (4), a name box
   under its invitation (6). The heading is a little further from its first line (12) so it reads as the section's. */
.showpage { padding: 0 22px 24px; }
@media (max-width: 600px) { .showpage { padding-inline: 16px; } }
/* lines up with the film header above it */
.backrow { margin-bottom: 12px; }
.showpage .back { height: 32px; min-height: 0; padding: 0 12px 0 10px; gap: 4px; background: var(--chip); color: var(--ink); font-size: 13px; font-weight: 400; text-decoration: none; max-width: none; }
.showpage .back span { font-size: 16px; line-height: 1; margin-top: -1px; }
.showpage .back:hover { background: color-mix(in srgb, var(--ink) 14%, var(--chip)); }
.plan9 { margin-top: 2px; border: 1px solid var(--line); border-left: 3px dotted var(--accent); border-radius: 14px; background: color-mix(in srgb, var(--bg) 60%, var(--surface)); overflow: hidden; }
.plan9.going { border-left-color: var(--soon); }
.ph9 { display: flex; align-items: flex-start; gap: 12px; padding: 14px; }
.ph9 .l { flex: 1; min-width: 0; }
.ph9 .dt { font: 800 26px/1 var(--display); text-transform: uppercase; }
.ph9 .tm { margin-top: 3px; font: 600 17px var(--body); }
.ph9 .tm .m { font-family: var(--mono); font-weight: 500; }
.ph9 .sub { margin-top: 3px; font-size: 12px; line-height: 1.35; color: var(--muted); }
.ph9 .sub .tg { color: var(--accent); }
.ph9 .nt { margin-top: 2px; font-size: 12px; line-height: 1.35; color: var(--muted); }
.tkbtn { flex: none; align-self: center; display: inline-flex; align-items: center; justify-content: center; min-width: 124px; height: 52px; padding: 0 22px; box-sizing: border-box; border-radius: 999px;
  background: var(--ink); color: var(--bg); font: 700 17px var(--body); text-decoration: none; text-align: center; }
.tkbtn.off { min-width: 0; background: var(--chip); color: var(--muted); font-size: 14px; }
/* who is going: one column, equal padding top and bottom, a 10px gap between its parts */
.plist { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.plist .wh { margin-bottom: 2px; }
.plist .wh h4 { margin: 0; font: 700 12px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.prow2 { display: flex; align-items: center; gap: 10px; min-height: 34px; }
.av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 14px var(--body); }
.pname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 16px var(--body); }
.pname.muted { color: var(--muted); font-weight: 500; }
.visnote { margin: -6px 0 0 44px; font: 400 12.5px var(--body); color: var(--muted); }
/* 4px under your row */
.plist > .visnote + .prow2 { margin-top: 4px; }
/* before you've joined: the invitation (and its note), the button at the right; guests get a name box under it */
.prow2.yours { min-height: 38px; }
.ask { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ask .pname { flex: none; overflow: visible; white-space: normal; text-overflow: clip; }
.ask small, .asktop small { font: 400 12.5px var(--body); color: var(--muted); }
.asktop { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.asktop .pname { flex: none; overflow: visible; white-space: normal; text-overflow: clip; }
.asktop small { max-width: 48%; text-align: right; line-height: 1.3; }
.asktop + .prow2.yours { margin-top: -4px; }
/* 6px: the invitation and its name box are one group */
.prow2.yours .inp { flex: 1; min-width: 0; min-height: 40px; }
.plist > .prow2.yours + .prow2 { margin-top: 8px; }
/* the join group stands apart from the people below */
.gopill { flex: none; display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--soon); background: var(--soon); color: var(--bg); font: 700 15px var(--body); cursor: pointer; }
.gopill.on { background: color-mix(in srgb, var(--soon) 14%, var(--surface)); color: var(--soon); }
/* seats: others on one line, yours in two small lines with a pencil, "+ add seats" before you have any */
.seat1 { flex: none; padding: 4px 9px; border-radius: 8px; background: var(--chip); color: var(--ink); font: 600 13px var(--body); white-space: nowrap; }
.seat2 { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border: 0; border-radius: 8px; background: var(--chip); color: var(--ink); font: 600 13px/1.2 var(--body); text-align: left; white-space: nowrap; }
button.seat2, button.seat { cursor: pointer; }
.seat2 .lines { display: flex; flex-direction: column; }
.seat2 .sl { display: flex; justify-content: space-between; gap: 8px; }
.seat2 .v { font-weight: 600; font-variant-numeric: tabular-nums; }
.seat2 .pen { flex: none; color: var(--muted); }
.seat2 .oneline { display: none; font-variant-numeric: tabular-nums; }
.seat2.one .oneline { display: inline; }
.seat2.one .lines { display: none; }
.seat.add { flex: none; padding: 5px 10px; border: 1px dashed var(--edge); border-radius: 8px; background: transparent; color: var(--muted); font: 600 13px var(--body); white-space: nowrap; }
.seatedit label { display: flex; flex-direction: column; gap: 2px; font: 600 11px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.seatedit .seatinp { width: 52px; min-height: 36px; box-sizing: border-box; padding: 0 8px; border: 1px solid var(--accent); border-radius: 8px; background: var(--surface); color: var(--ink); font: 600 16px var(--body); text-align: center; outline: none; }
.seatedit .seatinp:focus { border-width: 2px; }
.seatedit .seatinp.wide { width: 88px; }
.pfoot { margin-top: 4px; }
/* the I'm going button: solid green call to action; once pressed, a lighter green confirmation with a check */
.gopill.on { background: var(--surface); color: var(--soon); border-color: var(--soon); }
/* the seat editor sits on your own line: labelled Row and Seat(s) boxes, then Done */
.seatedit { flex: none; display: flex; align-items: flex-end; gap: 8px; }
.seatedit .seatinp { width: 44px; }
.seatedit .seatinp.wide { width: 72px; }
.seatedit .pbtn.sm { height: 36px; min-height: 36px; padding: 0 12px; box-sizing: border-box; }
.prow2.editing { min-height: 0; }
.visnote { margin-top: -6px; }
/* not enough room on your own line (very narrow phones): the editor drops to a line under it, lined up with the name */
.plist { container-type: inline-size; }
@container (max-width: 290px) {
  .prow2.editing { flex-wrap: wrap; row-gap: 4px; }
  .prow2.editing .seatedit { flex: none; width: calc(100% - 44px); margin-left: 44px; }
}

/* ================================================================ Letterboxd rating: one look for the pill in the film header and the badge on posters
   Light mode: white with a thin border, dark number, green star. Dark mode: Letterboxd's dark blue-grey, white number, brighter star.
   The header pill also carries Letterboxd's own logo (the light or the dark version) at its left; the poster badge is the same without it. */
:root { --rt-bg: #fff; --rt-bd: var(--line); --rt-ink: #14181c; --rt-star: #00b848; --rt-hover: #f4f6f8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --rt-bg: #202830; --rt-bd: #2f3a46; --rt-ink: #fff; --rt-star: #00e054; --rt-hover: #2a343f; } }
:root[data-theme="dark"] { --rt-bg: #202830; --rt-bd: #2f3a46; --rt-ink: #fff; --rt-star: #00e054; --rt-hover: #2a343f; }
.rate.lbpill, .pillr { display: inline-flex; align-items: center; box-sizing: border-box; border: 1px solid var(--rt-bd); border-radius: 999px; background: var(--rt-bg); color: var(--rt-ink);
  font: 600 13px var(--body); font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; }
.rate.lbpill svg, .pillr svg { flex: none; color: var(--rt-star); }
.rate.lbpill { height: 32px; margin: 0; padding: 0 11px 0 0; gap: 0; }
.rate.lbpill:hover { background: var(--rt-hover); }
.rate.lbpill b { display: inline-flex; align-items: center; gap: 3px; font: inherit; color: inherit; }
.rate.lbpill span { color: inherit; font-weight: 600; text-decoration: none; }
.rate.lbpill .lbmark { display: block; width: 30px; height: 30px; margin: 0 0 0 8px; border-radius: 50%; }
.rate.lbpill .lb-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rate.lbpill .lb-light { display: none; } :root:not([data-theme="light"]) .rate.lbpill .lb-dark { display: block; } }
:root[data-theme="dark"] .rate.lbpill .lb-light { display: none; }
:root[data-theme="dark"] .rate.lbpill .lb-dark { display: block; }
.pillr { position: absolute; right: 6px; bottom: 6px; gap: 3px; padding: 2px 7px 2px 8px; font-size: 12px; line-height: 1.25; }
.pillr svg { width: 11px; height: 11px; }
@media (max-width: 400px) { .fhead .actions .btn.wl { padding: 0 9px; gap: 4px; } .rate.lbpill { padding-right: 9px; } }

/* poster badge: the translucent dark pill over the poster (as before), with the green star */
.pillr { background: rgba(10, 12, 16, .78); border-color: transparent; color: #fff; }
.pillr svg { color: #00e054; }
/* the film sheet keeps one height, so opening a showing doesn't make it jump */
#film { height: min(820px, calc(100dvh - 48px)); }
@media (max-width: 560px) { #film { height: 80dvh; max-height: 80dvh; } }

/* editing seats: no labels above the boxes (the placeholders say Row and Seat(s)), so your row keeps its height */
.seatedit { align-items: center; }
.seatedit .seatinp { width: 56px; }
.seatedit .seatinp.wide { width: 80px; }
.prow2.me { min-height: 39px; }
/* the note sits right-aligned under the Going button */
.visnote { margin: -6px 0 0; text-align: right; }

/* the arrow after "Search" only when the header's buttons still fit on one line */
.fhead .ftext { container-type: inline-size; }
.rate.lbpill .sa { font-style: normal; display: none; }
@container (min-width: 240px) { .rate.lbpill .sa { display: inline; } }

/* Coming up at the top of the Films tab: no title, no line above the first row */
.cu .curows li:first-child { border-top: 0; }
.cu { margin-bottom: 14px; }

/* Coming-up rows inside a feed post: no box of their own */
.cuin { border: 0; border-radius: 0; background: none; margin: 0; overflow: visible; }
.cuin .curows a { padding-inline: 0; }
.cuin .curows li:first-child a { padding-top: 4px; }
.cuin .curows a:hover { background: none; }
.cuin .curows li:last-child a { padding-bottom: 4px; }
#comingUp:not(:empty) { padding-top: 12px; }

/* the status sits beside the arrow, centred on the row (not on the time line) */
.cu .curows a { grid-template-columns: 44px minmax(0, 1fr) auto 16px; }
.cu .curows a .cstat { align-self: center; justify-self: end; max-width: 96px; }
.cu .curows a .cstat .cfn { white-space: normal; text-align: right; line-height: 1.2; }
.cu .curows a:has(.cstat.you) .cstat { white-space: nowrap; }
.cuin .curows a { grid-template-columns: 44px minmax(0, 1fr) 16px; }
#comingUp .cu { margin-bottom: 0; }   /* 12px above the card, 12px below it (the controls add their own 12px of padding) */

/* Coming up rows as one grid: the film title runs under the status (they sit on different lines), so it only shortens at the row's edge */
.cu .curows a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 16px; grid-template-rows: auto auto auto; column-gap: 12px; align-items: start; }
.cu .ctext { display: contents; }
.cu .cposter { grid-column: 1; grid-row: 1 / 4; }
.cu .cdt { grid-column: 2; grid-row: 1; }
.cu .cline { grid-column: 2; grid-row: 2; }
.cu .csub { grid-column: 2 / -2; grid-row: 3; display: block; }
.cu .curows a .cstat { grid-column: 3; grid-row: 1 / 4; align-self: center; justify-self: end; max-width: 150px; white-space: nowrap; }
.cu .curows a .cstat .cfn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cu .cgo { grid-column: 4; grid-row: 1 / 4; align-self: center; }
.cuin .curows a { grid-template-columns: 44px minmax(0, 1fr) 16px; }
.cuin .cgo { grid-column: 3; }

/* "What's new" post: the same post box as the others, with a short list */
.pico.k-update { background: var(--chip-on); color: var(--chip-on-ink); }
.uplist { margin: 0; padding: 0 0 4px 44px; list-style: disc; color: var(--ink); font-size: 14px; line-height: 1.45; }
.uplist li { margin: 0 0 4px; padding-left: 2px; }
.uplist li::marker { color: var(--muted); }

/* the line between new posts (above) and posts you have already seen (below) */
.newmark { display: flex; align-items: center; gap: 10px; margin: 18px 0 14px; }
.newmark::before, .newmark::after { content: ""; flex: 1; height: 1px; background: var(--edge); }
.newmark span { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font: 600 13px var(--body); }
.newmark svg { color: var(--soon); }

/* On a film's own page: the showings you and your friends are going to, as rows without the poster or the film's name */
.cufilm { margin: 0 16px 14px; }
@media (min-width: 601px) { .cufilm { margin-inline: 22px; } }
.cufilm .curows a { grid-template-columns: minmax(0, 1fr) auto 16px; grid-template-rows: auto auto; }
.cufilm .cdt { grid-column: 1; grid-row: 1; }
.cufilm .cline { grid-column: 1; grid-row: 2; }
.cufilm .curows a .cstat { grid-column: 2; grid-row: 1 / 3; }
.cufilm .cgo { grid-column: 3; grid-row: 1 / 3; }
/* the time line has empty space under its letters, so the bottom padding is smaller: the card looks even at the top and the bottom */
.cufilm .curows a { padding: 12px 14px 6px; }
.cufilm .curows a .cstat, .cufilm .cgo { margin-top: -6px; }  /* the card's padding is lopsided on purpose (see above): keep the status and arrow on the card's middle */
/* Control heights: not one size, but two related ones. A bar's main controls are --pill-h tall (Filters, search, Date, the
   All films / Watchlist / Friends switch, the add-a-friend button, the Feed's kind chips), so the Films and Feed bars come
   out the same height; the filters-in-use chips beside them are a step smaller (--chip-h). */
.listswitch { height: var(--pill-h); }
.listswitch button { padding-block: 0; }
.addfriend { width: var(--pill-h); height: var(--pill-h); }
.feedfilter .chip { display: inline-flex; align-items: center; height: var(--pill-h); padding-block: 0; }
.achip { height: var(--chip-h); padding-block: 0; }
/* Posts side by side when there's room (from 640px). sizeFeedCols (app.js) sets the poster columns (--pcol, the size a
   full-width post gives them, so every poster matches) and each post's width: a whole row or half of it. Posts
   in a row are the same height. */
@media (min-width: 640px) {
  .posts { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
  .posts > .post { margin: 0; flex: none; width: 100%; min-width: 0; }
  .posts > .post .grid { grid-template-columns: repeat(auto-fill, var(--pcol, minmax(150px, 1fr))); }
  .posts > .newmark { flex: 1 1 100%; margin: 6px 0 2px; }
}
