/* Hallmark · v2.0.0 · built: existing ReelRank catalogue · genre: editorial · theme: paper and evergreen · shape: app screen · scope: app */
/* critique: The poster catalogue keeps full film names accessible while card excerpts stay within a two-line clamp. */
/* Hallmark · waive 49b · film titles are genuine names and visible cards clamp them to two lines · catalogue proper names stay intact */
:root {
  color-scheme: light dark;
  --paper: #f3f0e9;
  --ink: #22251f;
  --muted: #5f655c;
  --line: #dedbd2;
  --surface: #f8f6f1;
  --surface-soft: #ebe8df;
  --surface-hover: #e9e8dd;
  --control-ink: #575d54;
  --link-rule: #838a79;
  --filter-cream: #f5f3eb;
  --deep-evergreen: #243d31;
  --filter-active: var(--deep-evergreen);
  --filter-active-ink: var(--filter-cream);
  --filter-active-count: var(--filter-active-ink);
  --summary-surface: #e8ece3;
  --summary-rule: #d2d9cc;
  --summary-value: var(--deep-evergreen);
  --green: #b5d67a;
  --forest: var(--deep-evergreen);
  --orange: #e88760;
  --rust-ink: #984a33;
  --muted-copy: #62685e;
  --focus-terracotta: #bd6446;
  --control-border: #73786e;
  --terracotta-on-dark: #f0a07b;
  --hero-cream: #f6f3e9;
  --hero-secondary: #c6d7b0;
  --hero-copy: #d2d7cc;
  --hero-muted: #bbc5b7;
  --night-evergreen: #263d32;
  --night-muted: #a4aa9c;
  --night-filter-ink: #182219;
  --night-rule-strong: #424a40;
  --night-highlight: #c3d89c;
  --night-highlight-rule: #a3bd85;
  --night-copper: #d18b6d;
  --night-link: #d6e6c2;
  --night-link-rule: #8e9c80;
  --night-soft-highlight: #c4d8a2;
  --night-highlight-bright: #d2e69f;
  --night-lime: #c7e58f;
  --type-caption: 12px;
  --type-micro: 8px;
  --type-small: 13px;
  --type-body: 14px;
  --type-card-title: 15px;
  --type-control: 16px;
  --type-utility: 17px;
  --type-section-small: 18px;
  --type-section: 19px;
  --type-heading: 20px;
  --type-rank: 21px;
  --type-emphasis: 22px;
  --type-count: 23px;
  --type-display-small: 24px;
  --type-metric: 25px;
  --type-detail-score: 26px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
  --mono: 'DM Mono', monospace;
  --space-1: 4px;
  --back-filter-width: max(28px, calc(1rem + 2 * var(--space-1)));
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-section: 40px;
  --space-section-end: 40px;
  --control-min-height: 44px;
  --surface-border: 1px solid var(--control-border);
  /* Supplemental colors for artwork, shadows, and surface details. */
  --color-080d0a66: #080d0a66;
  --color-10140f66: #10140f66;
  --color-10140f88: #10140f88;
  --color-101b164d: #101b164d;
  --color-111611d9: #111611d9;
  --color-11171130: #11171130;
  --color-151915: #151915;
  --color-15191520: #15191520;
  --color-15191524: #15191524;
  --color-1519152e: #1519152e;
  --color-151915b8: #151915b8;
  --color-16181026: #16181026;
  --color-171a17: #171a17;
  --color-171c18ed: #171c18ed;
  --color-17231d: #17231d;
  --color-17231dc7: #17231dc7;
  --color-17231de8: #17231de8;
  --color-17231df2: #17231df2;
  --color-17251d: #17251d;
  --color-1b2b22: #1b2b22;
  --color-1d251f: #1d251f;
  --color-1e241f: #1e241f;
  --color-20251f: #20251f;
  --color-222922: #222922;
  --color-222a22: #222a22;
  --color-24251d0d: #24251d0d;
  --color-24251d12: #24251d12;
  --color-24251d17: #24251d17;
  --color-24251d1c: #24251d1c;
  --color-243d31ed: #243d31ed;
  --color-29352b: #29352b;
  --color-293a30: #293a30;
  --color-294b3a55: #294b3a55;
  --color-30372f: #30372f;
  --color-343c33: #343c33;
  --color-344137: #344137;
  --color-353c34: #353c34;
  --color-383c301c: #383c301c;
  --color-39453b: #39453b;
  --color-394a3b: #394a3b;
  --color-3c2d22: #3c2d22;
  --color-424940: #424940;
  --color-454c44: #454c44;
  --color-463326: #463326;
  --color-465044: #465044;
  --color-4e574b: #4e574b;
  --color-535943: #535943;
  --color-53624e: #53624e;
  --color-553821: #553821;
  --color-555: #555;
  --color-566251: #566251;
  --color-586755: #586755;
  --color-5b6251: #5b6251;
  --color-5c625b: #5c625b;
  --color-775344: #775344;
  --color-77887a: #77887a;
  --color-77a956: #77a956;
  --color-77a95621: #77a95621;
  --color-7a8374: #7a8374;
  --color-818778: #818778;
  --color-879182: #879182;
  --color-8b5038: #8b5038;
  --color-9bb977: #9bb977;
  --color-a0a798: #a0a798;
  --color-a3b78e: #a3b78e;
  --color-a4aa9d: #a4aa9d;
  --color-a4aa9e: #a4aa9e;
  --color-a8b294: #a8b294;
  --color-a9ad9f: #a9ad9f;
  --color-a9afa2: #a9afa2;
  --color-aab8a7: #aab8a7;
  --color-b2b8ac: #b2b8ac;
  --color-b5bbad: #b5bbad;
  --color-b5d67a16: #b5d67a16;
  --color-b5d67a77: #b5d67a77;
  --color-b7bdaf: #b7bdaf;
  --color-bbc0b7: #bbc0b7;
  --color-bc805d: #bc805d;
  --color-bec6b7: #bec6b7;
  --color-c0c5b9: #c0c5b9;
  --color-c1c7b9: #c1c7b9;
  --color-c1c8bb: #c1c8bb;
  --color-c3df93: #c3df93;
  --color-c6cec0: #c6cec0;
  --color-c8d5c1: #c8d5c1;
  --color-c9c9bc: #c9c9bc;
  --color-cfcdc2: #cfcdc2;
  --color-d0d6ca: #d0d6ca;
  --color-d2dfc6: #d2dfc6;
  --color-d4e6c72b: #d4e6c72b;
  --color-d4e6c74d: #d4e6c74d;
  --color-d4e6c755: #d4e6c755;
  --color-dce8d1: #dce8d1;
  --color-e0e2dc: #e0e2dc;
  --color-e0e3d4: #e0e3d4;
  --color-e0e3da: #e0e3da;
  --color-e2e8d9: #e2e8d9;
  --color-e7f0dd: #e7f0dd;
  --color-e8876014: #e8876014;
  --color-e8876030: #e8876030;
  --color-e8e4d5: #e8e4d5;
  --color-ecece2: #ecece2;
  --color-f0a07b99: #f0a07b99;
  --color-f0dfd1: #f0dfd1;
  --color-f0ead826: #f0ead826;
  --color-f0f3e9: #f0f3e9;
  --color-f1f0df: #f1f0df;
  --color-f1f0df55: #f1f0df55;
  --color-f4dfce: #f4dfce;
  --color-f4f1e8: #f4f1e8;
  --color-f5f1e9f2: #f5f1e9f2;
  --color-f7f1e72b: #f7f1e72b;
  --color-f7f1e766: #f7f1e766;
  --color-ffc19e: #ffc19e;
  --color-ffe0bf: #ffe0bf;
  --color-fff: #fdfbf7;
  --color-fffaf4: #fffaf4;
  --color-fffdf5: #fffdf5;
  --color-ffffff36: #ffffff36;
  --color-ffffff80: #ffffff80;
}

* { box-sizing: border-box; }
html { overflow-x: clip; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
html[data-modal-scroll-locked='true'] { overflow: hidden; overscroll-behavior: none; }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font-family: var(--sans); }
a { color: inherit; }
button, input { font: inherit; }
.page-shell { width: min(1320px, 100% - 72px); margin: 0 auto; padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px); }
.setup-state[hidden], #site-shell[hidden] { display: none; }
.setup-state { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 28px; background: radial-gradient(ellipse at 50% 0%, var(--color-e8876014) 0, transparent 55%), var(--paper); }
.setup-card { width: min(620px, 100%); padding: clamp(var(--space-5), 6vw, 56px); border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.setup-card > .wordmark { margin-bottom: var(--space-section-end); }
.setup-card .setup-context { margin: var(--space-3) 0 0; color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); }
.setup-card h1 { font-size: clamp(38px, 7vw, 60px); }
.setup-card #setup-copy { margin: 20px 0 0; color: var(--muted); font-size: var(--type-body); line-height: 1.7; }
.setup-public-note { margin: var(--space-5) 0 0; padding-top: var(--space-4); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--type-caption); line-height: 1.6; }
.setup-demo-link { min-height: 44px; display: inline-flex; align-items: center; margin-top: var(--space-5); color: var(--forest); font-family: var(--mono); font-size: var(--type-caption); text-decoration-color: var(--orange); text-underline-offset: 4px; }
.setup-demo-link[hidden] { display: none; }
.demo-banner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin: var(--space-3) 0 0; padding: var(--space-3) var(--space-4); border: 1px solid var(--color-bc805d); background: var(--color-f4dfce); color: var(--color-463326); font-size: var(--type-caption); line-height: 1.5; }
.demo-banner[hidden] { display: none; }
.demo-banner a { min-height: 44px; display: inline-flex; align-items: center; flex: 0 0 auto; color: var(--color-553821); font-family: var(--mono); font-size: var(--type-caption); text-underline-offset: 3px; }
.skip-link { position: fixed; z-index: 10; top: var(--space-2); left: var(--space-2); padding: var(--space-3) var(--space-4); transform: translateY(-160%); transition: none; background: var(--ink); color: var(--paper); font-size: var(--type-small); text-decoration: none; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--focus-terracotta); outline-offset: 3px; }
strong, b { font-weight: 600; }
.search-box:focus-within { outline: 3px solid var(--focus-terracotta); outline-offset: 3px; }
button:not(:disabled):active, summary:active, a:active { transform: scale(.97); }
button, summary, a, [role="button"] { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: transform 140ms cubic-bezier(.23, 1, .32, 1); }
button, a, summary, [role="button"] { touch-action: manipulation; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: .58; }
.film-detail-metadata-status button[aria-disabled='true'] { cursor: progress; opacity: .58; }
.hero :focus-visible { outline-color: var(--hero-secondary); }
.topbar { height: calc(68px + env(safe-area-inset-top, 0px)); min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; gap: var(--space-2); align-items: center; text-decoration: none; font-weight: 600; letter-spacing: -.055em; font-size: var(--type-rank); }
.wordmark-mark { width: 28px; height: 28px; display: grid; place-items: center; color: var(--forest); border: 1px solid var(--forest); border-radius: 50%; font-family: var(--serif); font-weight: 500; font-size: var(--type-section-small); }
.profile-link { min-width: 0; max-width: 55%; display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--control-min-height); padding-block: var(--space-2); color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); text-decoration: none; }
.profile-link #profile-username { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-link .profile-dot, .profile-link > span:last-child { flex: 0 0 auto; }
.profile-link > span:last-child { color: var(--forest); font-size: var(--type-body); }
.profile-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-77a956); box-shadow: 0 0 0 3px var(--color-77a95621); }
.hero { min-height: 176px; position: relative; display: flex; align-items: center; justify-content: space-between; gap: clamp(var(--space-4), 3vw, var(--space-6)); overflow: hidden; margin-top: var(--space-3); padding: 20px 7%; background: var(--forest); color: var(--hero-cream); box-shadow: inset 0 13px 0 var(--color-11171130), inset 0 -13px 0 var(--color-11171130); }
.hero::after { position: absolute; z-index: 0; inset: 0; background: radial-gradient(ellipse at 76% 48%, var(--color-e8876030) 0, var(--color-e8876014) 23%, transparent 57%), radial-gradient(ellipse at 10% 0%, var(--color-b5d67a16) 0, transparent 48%); content: ''; pointer-events: none; }
.hero::before { position: absolute; z-index: 1; inset: var(--space-4); border: 1px solid var(--color-d4e6c72b); content: ''; pointer-events: none; }
.hero-copy { min-width: 0; position: relative; z-index: 2; display: flex; flex: 1 1 0; flex-direction: column; align-items: flex-start; gap: var(--space-3); max-width: 840px; }
html[dir="rtl"] .hero-copy { text-align: right; }
.hero h1 { font-size: clamp(48px, 4.5vw, 64px); line-height: .98; letter-spacing: -.04em; }
.hero-tagline { margin: var(--space-1) 0 0; color: var(--hero-secondary); font-family: var(--mono); font-size: var(--type-caption); line-height: 1.4; }
.eyebrow { display: flex; align-items: center; gap: var(--space-3); margin: 0 0 var(--space-5); color: var(--hero-secondary); font-family: var(--mono); font-size: var(--type-caption); }
.eyebrow-line { width: 25px; height: 1px; background: var(--green); }
h1 { margin: 0; font-size: clamp(48px, 7vw, 78px); line-height: .99; letter-spacing: -.04em; font-weight: 500; text-wrap: balance; }
.hero-description { max-width: min(70ch, 100%); margin: 0; color: var(--hero-copy); font-size: var(--type-body); line-height: 1.45; }
.hero-story-link { display: inline-flex; align-items: center; min-height: 44px; margin: 0; color: var(--terracotta-on-dark); font-family: var(--mono); font-size: var(--type-caption); text-decoration-color: var(--color-f0a07b99); text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .hero-story-link:hover { color: var(--color-ffc19e); text-decoration-thickness: 2px; }
}
.hero-meta { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--hero-muted); font-family: var(--mono); font-size: var(--type-caption); vertical-align: middle; }
.edition-stale-notice { max-width: 570px; display: grid; gap: var(--space-1); margin: 0; padding: var(--space-3) var(--space-4); border: 1px solid var(--night-copper); background: var(--color-17251d); color: var(--hero-cream); font-size: var(--type-small); line-height: 1.55; }
.edition-stale-notice[hidden] { display: none; }
.edition-stale-label { color: var(--terracotta-on-dark); font-family: var(--mono); font-size: var(--type-caption); font-weight: 500; color: var(--control-ink); }
.snapshot-label { color: var(--night-highlight); font-size: var(--type-caption); }
.edition-colophon { width: fit-content; max-width: min(600px, 100%); display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-1) var(--space-2); margin: 0; padding: var(--space-2) var(--space-2) var(--space-1) 0; border-top: 1px solid var(--color-d4e6c72b); border-bottom: 1px solid var(--color-d4e6c72b); color: var(--hero-muted); line-height: 1.4; }
.edition-colophon[hidden] { display: none; }
.edition-colophon-heading { color: var(--terracotta-on-dark); font-family: var(--mono); font-size: var(--type-caption); }
.edition-colophon-item { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-1) var(--space-2); }
.edition-colophon-item strong { color: var(--night-highlight); font-family: var(--serif); font-size: var(--type-caption); font-weight: 500; }
.edition-colophon-item > span { color: var(--hero-muted); font-family: var(--mono); font-size: var(--type-caption); }
.edition-colophon-separator { color: var(--color-aab8a7); font-family: var(--mono); font-size: var(--type-caption); }
.meta-separator { color: var(--color-77887a); }
.hero-stamp { width: 176px; height: 176px; position: relative; z-index: 1; flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--color-d4e6c755); border-radius: 50%; text-align: center; transform: rotate(5deg); color: var(--color-c8d5c1); opacity: 1; }
.stamp-top, .stamp-bottom { font-family: var(--mono); font-size: var(--type-micro); }
.stamp-bottom { min-width: 0; max-width: calc(100% - 16px); margin-inline: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stamp-main { margin: var(--space-2) 0; color: var(--night-highlight); font-family: var(--serif); font-size: var(--type-display-small); line-height: 1.03; font-style: italic; }
.summary { min-height: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); padding: var(--space-2) 2.8%; border-bottom: 1px solid var(--summary-rule); background: var(--summary-surface); }
.summary-item { display: flex; align-items: baseline; gap: var(--space-2); white-space: nowrap; }
.summary-item strong { color: var(--summary-value); font-family: var(--serif); font-size: var(--type-metric); font-weight: 500; letter-spacing: -.04em; }
.summary-item span { color: var(--muted); font-size: var(--type-caption); }
.summary-divider { width: 1px; height: 27px; background: var(--summary-rule); }
.summary-note { margin: 0 0 0 auto; color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); }
.summary-note span { margin-left: var(--space-1); color: var(--forest); }
.watch-progress { min-width: 230px; flex: 1 1 250px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--space-1) var(--space-3); padding: 0; border: 0; background: transparent; }
.watch-progress-heading { display: flex; grid-column: 1 / -1; flex-wrap: wrap; justify-content: space-between; gap: var(--space-1) var(--space-3); color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); }
.watch-progress-heading > span { min-width: 0; overflow-wrap: anywhere; }
.watch-progress-heading > span:first-child { }
.watch-progress-heading strong { color: var(--ink); font-weight: 500; }
.watch-progress progress { width: 100%; height: 10px; grid-column: 1 / -1; overflow: hidden; border: 0; border-radius: 99px; background: var(--line); accent-color: var(--forest); }
.watch-progress progress::-webkit-progress-bar { border-radius: 99px; background: var(--line); }
.watch-progress progress::-webkit-progress-value { border-radius: 99px; background: var(--forest); }
.watch-progress progress::-moz-progress-bar { border-radius: 99px; background: var(--forest); }
.collection { --catalogue-edge-gutter: max(36px, calc((100vw - 1320px) / 2)); padding-block: var(--space-4) var(--space-section-end); padding-right: max(0px, calc(var(--back-filter-width) + 4px - var(--catalogue-edge-gutter))); }
/* Catalogue sections own their spacing; keep child sections in normal document flow. */
.catalogue-controls { display: grid; gap: var(--space-2); }
.collection-heading { display: grid; grid-template-columns: minmax(210px, .72fr) minmax(0, 1.28fr); align-items: end; gap: 20px; margin: 0; padding-bottom: var(--space-2); border-bottom: 1px solid var(--line); }
.collection-context { display: grid; gap: var(--space-2); margin: 0; }
.collection-scope { max-width: 72ch; margin: 0; color: var(--muted); font-size: var(--type-caption); line-height: 1.5; }
.catalogue-tools-panel > .preset-status { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2) var(--space-2); margin: 0 0 var(--space-2); color: var(--muted); font-size: var(--type-caption); line-height: 1.4; }
.catalogue-tools-panel > .preset-status:empty { display: none; }
.preset-undo { padding: 0px 0; border: 0; background: transparent; color: var(--forest); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 2px; }
.preset-undo:focus-visible { outline: 3px solid var(--focus-terracotta); outline-offset: 2px; }
.catalogue-tool-groups { display: grid; gap: var(--space-2); }
.catalogue-tool-group { min-width: 0; border-top: 1px solid var(--line); }
.catalogue-tool-group:first-child { border-top: 0; }
.catalogue-tool-group > summary { min-height: var(--control-min-height); display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-1) 0px; color: var(--ink); cursor: pointer; font-family: var(--serif); font-size: var(--type-section); font-style: italic; list-style: none; }
.catalogue-tool-group > summary::-webkit-details-marker { display: none; }
.catalogue-tool-group > summary::after { width: 7px; height: 7px; flex: 0 0 auto; transform: rotate(45deg); border-right: 1px solid var(--orange); border-bottom: 1px solid var(--orange); content: ''; transition: transform .16s ease; }
.catalogue-tool-group[open] > summary::after { transform: rotate(225deg); }
.catalogue-tool-group-panel { min-width: 0; display: grid; gap: var(--space-2); padding: var(--space-2) 0 var(--space-3); }
.catalogue-tool-group-panel label { color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); }
.catalogue-tool-group-panel input, .catalogue-tool-group-panel select { min-width: 0; min-height: var(--control-min-height); padding: var(--space-2) var(--space-2); border: 1px solid var(--control-border); background: var(--paper); color: var(--ink); font: inherit; }
.saved-view-save-row, .saved-view-select-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-2); }
.saved-view-actions, .saved-view-portability-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.saved-view-portability { margin-top: var(--space-1); padding-top: var(--space-2); border-top: 1px solid var(--line); }
.saved-view-portability > summary { width: fit-content; min-height: var(--control-min-height); display: flex; align-items: center; gap: var(--space-2); color: var(--muted); cursor: pointer; font-family: var(--mono); font-size: var(--type-caption); list-style: none; }
.saved-view-portability > summary::-webkit-details-marker { display: none; }
.saved-view-portability > summary::after { display: inline-block; color: var(--orange); content: '⌄'; font-size: var(--type-body); transition: transform .16s ease; }
.saved-view-portability[open] > summary::after { transform: rotate(180deg); }
.saved-view-portability-panel { display: grid; gap: var(--space-2); padding-top: var(--space-2); }
.local-settings-panel > p { margin: 0; color: var(--muted); font-size: var(--type-caption); }
.saved-view-portability-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.saved-view-portability-actions .print-programme-button { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.local-settings-panel > .print-programme-button { width: 100%; }
.film-detail-share-url { min-width: 0; min-height: var(--control-min-height); padding: var(--space-2) var(--space-2); border: 1px solid var(--control-border); background: var(--surface); color: var(--ink); font: inherit; }
.catalogue-actions { display: grid; gap: var(--space-2); margin-top: 20px; }
.programme-share { margin: 0; color: var(--ink); }
.programme-share > summary { width: fit-content; min-height: var(--control-min-height); display: list-item; padding: var(--space-2) 0; cursor: pointer; font-family: var(--mono); font-size: var(--type-caption); text-decoration: underline; text-underline-offset: 3px; }
.programme-share-panel { max-width: 640px; padding: var(--space-4); border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.programme-share-description { margin: 0; font-family: var(--serif); font-size: var(--type-heading); line-height: 1.4; overflow-wrap: anywhere; }
.programme-share-help, .programme-share-status { color: var(--muted); font-size: var(--type-caption); line-height: 1.5; }
.programme-share-panel label { display: block; margin-top: var(--space-3); font-family: var(--mono); font-size: var(--type-caption); }
.programme-share-panel input { display: block; width: 100%; min-width: 0; min-height: var(--control-min-height); margin: var(--space-2) 0 var(--space-3); padding: var(--space-2); border: 1px solid var(--control-border); background: var(--paper); color: var(--ink); font-size: var(--type-body); }
.programme-share-panel .print-programme-button { color: var(--ink); }
.programme-share-status:empty { display: none; }
.catalogue-results { margin-top: var(--space-2); }
.decade-retrospective { margin: 0 0 var(--space-5); padding: var(--space-3) var(--space-4) var(--space-3); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(90deg, var(--surface-soft), transparent 86%); }
.decade-retrospective-heading { display: flex; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-2); }
.decade-retrospective-heading .eyebrow { margin: 0; color: var(--rust-ink); font-size: var(--type-caption); }
.decade-retrospective-heading .eyebrow::before { margin-right: var(--space-2); color: var(--orange); content: '✳'; }
.decade-retrospective-heading h3 { margin: 0; color: var(--muted); font-family: var(--serif); font-size: var(--type-body); font-weight: 500; }
.decade-options { width: 100%; max-width: 380px; display: flex; gap: var(--space-2); overflow-x: auto; padding: 0px 0px var(--space-1); scrollbar-width: thin; }
.decade-options.is-expanded { max-width: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); overflow-x: hidden; }
.decade-scroll-hint { margin: 0px 0 0; color: var(--muted); font-size: var(--type-caption); }
.decade-option { min-width: 79px; min-height: var(--control-min-height); flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: var(--space-2) var(--space-2); border: 1px solid var(--line); border-radius: 2px; background: var(--surface); color: var(--control-ink); cursor: pointer; text-align: left; }
.decade-option[hidden] { display: none; }
.decade-option-all { min-width: 102px; }
@media (hover: hover) and (pointer: fine) {
  .decade-option:hover { border-color: var(--forest); }
}
.decade-option[aria-pressed='true'] { border-color: var(--forest); background: var(--filter-active); color: var(--filter-active-ink); }
.decade-option-label, .decade-option-count { flex: 0 0 auto; white-space: nowrap; }
.decade-option-label { font-family: var(--mono); font-size: var(--type-caption); }
.decade-option-count { color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); }
.decade-option[aria-pressed='true'] .decade-option-count { color: var(--filter-active-count); }
.country-index { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--line); }
.language-index[hidden] { display: none; }
.country-index.is-expanded { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2) var(--space-4); }
.country-index-heading { flex: 0 0 auto; margin: 0; color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); }
.country-index.is-expanded .country-index-heading { grid-column: 1; }
.country-index-search-control { grid-column: 1 / -1; }
.country-index-search-control[hidden] { display: none; }
.country-index-search-control input { width: 100%; min-height: var(--control-min-height); padding: 0 var(--space-2); border: 1px solid var(--control-border); border-radius: 2px; background: var(--surface); color: var(--ink); font-size: var(--type-caption); }
.country-index-options { min-width: 0; display: flex; gap: var(--space-2); overflow-x: auto; padding: 0px 0px var(--space-1); scrollbar-width: thin; }
.country-index-options.is-expanded { flex-wrap: wrap; align-content: flex-start; overflow-x: hidden; overflow-y: auto; max-height: 190px; }
.country-index.is-expanded .country-index-options, .country-index-empty { grid-column: 1 / -1; }
.country-index-empty { margin: 0; color: var(--muted); font-size: var(--type-caption); }
.country-index-empty[hidden] { display: none; }
.country-index-option { min-height: var(--control-min-height); flex: 0 0 auto; display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-2); border: 1px solid var(--line); background: var(--surface); color: var(--control-ink); cursor: pointer; font-size: var(--type-caption); }
.country-index-option[hidden] { display: none; }
.country-index-option span { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-index-option small { color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); }
@media (hover: hover) and (pointer: fine) {
  .country-index-option:hover { border-color: var(--forest); }
}
.country-index-option[aria-pressed='true'] { border-color: var(--forest); background: var(--filter-active); color: var(--filter-active-ink); }
.country-index-option[aria-pressed='true'] small { color: var(--filter-active-count); }
.country-index-toggle { min-height: var(--control-min-height); flex: 0 0 auto; padding: var(--space-1) var(--space-2); border: 1px solid var(--line); background: transparent; color: var(--forest); cursor: pointer; font-family: var(--mono); font-size: var(--type-caption); text-decoration: underline; text-underline-offset: 2px; }
.country-index-toggle[hidden] { display: none; }
.runtime-filter { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--line); }
.runtime-filter[hidden] { display: none; }
.runtime-filter-label { flex: 0 0 auto; color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); }
.runtime-options { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.runtime-option { min-height: var(--control-min-height); display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-2); border: 1px solid var(--line); background: var(--surface); color: var(--control-ink); cursor: pointer; font-size: var(--type-caption); }
.runtime-option-count { color: var(--muted); font-family: var(--mono); font-size: max(11px, 0.7rem); }
@media (hover: hover) and (pointer: fine) {
  .runtime-option:hover { border-color: var(--forest); }
}
.runtime-option[aria-pressed='true'] { border-color: var(--forest); background: var(--filter-active); color: var(--filter-active-ink); }
.runtime-option[aria-pressed='true'] .runtime-option-count { color: var(--filter-active-count); }
.runtime-filter-note { flex-basis: 100%; color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); }
.film-year-divider { min-width: 0; grid-column: 1 / -1; display: flex; align-items: baseline; gap: var(--space-2); margin: var(--space-1) 0 calc(-1 * var(--space-4)); color: var(--rust-ink); }
.film-year-divider span { color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); }
.film-year-divider span::before { margin-right: var(--space-2); color: var(--orange); content: '✳'; }
.ledger-year-divider th::before { margin-right: var(--space-2); color: var(--orange); content: '✳'; font-family: var(--sans); font-size: var(--type-caption); }
.film-year-divider strong { font-family: var(--serif); font-size: var(--type-control); font-style: italic; font-weight: 500; }
.film-year-divider::after { height: 1px; flex: 1 1 auto; background: var(--line); content: ''; }
.active-view-tools { min-width: 0; max-width: 100%; min-height: 34px; display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2) var(--space-3); margin: 0; }
.active-view-tools[hidden] { display: none; }
.active-genre-filters { min-width: 0; max-width: 100%; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.active-genre-filters[hidden] { display: none; }
.collection-display-bar { min-height: 38px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: var(--space-3); margin: 0; }
.director-filmography { min-width: 0; flex: 1 1 auto; display: grid; gap: var(--space-2); margin: 0; color: var(--muted); font-size: var(--type-caption); }
.director-filmography[hidden] { display: none; }
.director-filmography-disclosure { min-width: 0; border-top: 1px solid var(--line); }
.director-filmography-disclosure > summary { min-height: var(--control-min-height); display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-1) var(--space-3); padding: var(--space-1) 0; color: var(--ink); cursor: pointer; list-style: none; }
.director-filmography-disclosure > summary::-webkit-details-marker { display: none; }
.director-filmography-disclosure > summary::after { width: 8px; height: 8px; flex: 0 0 auto; margin-left: auto; border-right: 1.5px solid var(--rust-ink); border-bottom: 1.5px solid var(--rust-ink); content: ''; transform: rotate(45deg); }
.director-filmography-disclosure[open] > summary::after { transform: rotate(225deg); }
.director-filmography-summary-label { color: var(--forest); font-family: var(--serif); font-size: var(--type-control); font-weight: 500; }
.director-filmography-summary-count { min-width: 0; color: var(--muted); font-family: var(--mono); font-size: max(12px, 0.75rem); line-height: 1.45; }
.director-filmography-content { display: grid; gap: var(--space-3); padding: var(--space-2) 0 var(--space-3); border-top: 1px solid var(--line); }
.director-filmography-decades { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.director-filmography-decade-jump { min-height: var(--control-min-height); padding: 0 var(--space-2); border: 1px solid var(--control-border); background: var(--surface); color: var(--control-ink); cursor: pointer; font-family: var(--mono); font-size: var(--type-caption); touch-action: manipulation; }
.director-filmography-decade-jump:active { background: var(--surface-hover); }
.director-filmography-groups { min-width: 0; display: grid; gap: var(--space-4); }
.director-filmography-decade { min-width: 0; scroll-margin-top: var(--space-4); }
.director-filmography-decade > h4 { margin: 0 0 var(--space-2); color: var(--rust-ink); font-family: var(--serif); font-size: var(--type-section-small); font-weight: 500; }
.director-filmography-decade > h4:focus { outline: 2px solid var(--focus-terracotta); outline-offset: 3px; }
.director-filmography-year-group { min-width: 0; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: var(--space-2); padding: var(--space-1) 0; border-top: 1px solid var(--line); }
.director-filmography-year-group > h5 { margin: 0; padding-top: 10px; color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); font-weight: 400; }
.director-filmography-films { min-width: 0; display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.director-filmography-entry { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-1) var(--space-2); padding: 0 var(--space-1); }
.director-filmography-entry.is-filter-match { background: var(--surface-soft); }
.director-filmography-title { min-width: 0; min-height: var(--control-min-height); display: grid; justify-items: start; gap: 2px; padding: var(--space-1) 0; border: 0; background: transparent; color: var(--forest); cursor: pointer; font-family: var(--serif); font-size: var(--type-card-title); line-height: 1.35; text-align: left; text-decoration: underline; text-decoration-color: var(--link-rule); text-underline-offset: 3px; overflow-wrap: anywhere; touch-action: manipulation; }
.director-filmography-title-text { min-width: 0; max-width: 100%; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; overflow-wrap: anywhere; }
.director-filmography-disambiguator { min-width: 0; max-width: 100%; color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); line-height: 1.4; overflow-wrap: anywhere; text-decoration: none; }
.director-filmography-match { min-height: 26px; display: inline-flex; align-items: center; justify-content: center; padding: 0 var(--space-1); border: 1px solid var(--control-border); color: var(--control-ink); font-family: var(--mono); font-size: max(11px, 0.7rem); white-space: nowrap; }
.director-filmography-match[hidden] { display: none; }
.director-filmography-title:focus-visible, .director-filmography-decade-jump:focus-visible { outline: 2px solid var(--focus-terracotta); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .director-filmography-title:hover { color: var(--rust-ink); text-decoration-color: var(--orange); }
  .director-filmography-decade-jump:hover { border-color: var(--forest); background: var(--surface-hover); }
}
@media (max-width: 480px) {
  .director-filmography-year-group { grid-template-columns: 48px minmax(0, 1fr); gap: var(--space-1); }
  .director-filmography-entry { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .director-filmography-match { justify-self: start; margin-bottom: var(--space-1); }
}
.collection-display-actions { width: 100%; display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.collection-view-tools { width: 100%; display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2) var(--space-3); }
.matching-films-count { color: var(--ink); font-family: var(--serif); font-size: var(--type-utility); white-space: nowrap; }
.sort-control.toolbar-sort-control { width: 320px; display: flex; align-items: center; gap: var(--space-2); color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); }
.toolbar-sort-control select { width: 0; min-width: 0; min-height: 44px; flex: 1 1 0; }
.score-count-explainer { color: var(--muted); font-size: var(--type-caption); line-height: 1.4; }
.score-key { position: static; }
.score-key summary { min-height: 44px; display: flex; align-items: center; color: var(--muted); cursor: pointer; font-family: var(--mono); font-size: var(--type-caption); list-style: none; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.score-key summary::-webkit-details-marker { display: none; }
.score-key summary::after { margin-left: var(--space-1); color: var(--orange); content: '+'; }
.score-key[open] summary::after { content: '−'; }
.score-key-copy { width: min(290px, calc(100vw - 2rem)); max-width: calc(100vw - 2rem); max-height: calc(100vh - 2rem); position: fixed; z-index: 20; top: 0; left: 0; visibility: hidden; margin: 0; padding: var(--space-3) var(--space-3); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: var(--type-caption); line-height: 1.55; overflow: auto; overflow-wrap: anywhere; }
.score-key-copy.is-positioned { visibility: visible; }
.collection-view-control { height: var(--control-min-height); display: inline-flex; flex: 0 0 auto; align-items: center; gap: var(--space-1); padding: 0; border-radius: 3px; outline: 1px solid var(--line); outline-offset: -1px; background: var(--surface-soft); }
.collection-view-button { height: var(--control-min-height); padding: 0 var(--space-2); border: 0; background: transparent; color: var(--control-ink); cursor: pointer; font-family: var(--mono); font-size: var(--type-caption); }
.collection-view-button.is-active { background: var(--filter-active); color: var(--filter-active-ink); }
.collection-view-button:first-child.is-active { border-radius: 3px 0 0 3px; }
.collection-view-button:last-child.is-active { border-radius: 0 3px 3px 0; }
.collection-view-button:focus-visible { outline-offset: 1px; }
.print-programme-button { min-height: var(--control-min-height); padding: 0 var(--space-2); border: 1px solid var(--control-border); background: var(--surface); color: var(--control-ink); cursor: pointer; font-family: var(--mono); font-size: var(--type-caption); font-weight: 500; }
.saved-view-actions .print-programme-button, #print-programme-button { white-space: nowrap; }
.ranking-download { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.ranking-download[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) {
  .print-programme-button:hover { border-color: var(--forest); background: var(--surface-soft); }
}
.print-programme-control { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: var(--space-2); }
.print-programme-control label { color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); }
.print-format-select { width: min(100%, 280px); min-width: 0; min-height: var(--control-min-height); padding: 0 var(--space-1); border: 1px solid var(--control-border); background: var(--surface); color: var(--control-ink); font-family: var(--mono); font-size: var(--type-caption); }
.print-programme { display: none; }
.film-grid[hidden], .film-ledger-view[hidden] { display: none; }
.ledger-filter-shortcut { min-height: 52px; position: sticky; z-index: 4; top: 0; display: flex; align-items: center; justify-content: flex-end; margin-bottom: var(--space-2); background: var(--paper); }
.ledger-filter-shortcut[hidden] { display: none; }
.ledger-filter-shortcut .back-to-filters { position: static; box-shadow: 0 2px 8px var(--color-15191520); }
.film-ledger-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); background: var(--surface); scrollbar-width: auto; }
.film-ledger-scroll:focus-visible { outline: 3px solid var(--focus-terracotta); outline-offset: 3px; }
.film-ledger-scroll-hint { display: none; margin: 0 0 var(--space-2); color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); }
.film-ledger-table { --ledger-catalogue-width: clamp(7rem, 10vw, 9rem); width: 100%; min-width: 900px; border-collapse: collapse; table-layout: fixed; }
.film-ledger-table th, .film-ledger-table td { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line); text-align: start; vertical-align: middle; }
.film-ledger-table thead th { padding-block: var(--space-2); background: var(--surface-soft); color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); font-weight: 400; }
.film-ledger-table thead th:nth-child(1) { width: var(--ledger-catalogue-width); }
.film-ledger-table thead th:nth-child(2) { width: 31%; }
.film-ledger-table thead th:nth-child(3) { width: 19%; }
.film-ledger-table thead th:nth-child(4) { width: 19%; }
.film-ledger-table thead th:nth-child(5) { width: 23%; }
.film-ledger-table thead th:first-child { position: sticky; z-index: 3; inset-inline-start: 0; background: var(--surface-soft); }
.film-ledger-table tbody th:first-child { position: sticky; z-index: 3; inset-inline-start: 0; background: var(--surface); }
.film-ledger-table thead th:nth-child(2) { position: sticky; z-index: 2; inset-inline-start: var(--ledger-catalogue-width); background: var(--surface-soft); }
.film-ledger-table tbody td:nth-child(2) { position: sticky; z-index: 1; inset-inline-start: var(--ledger-catalogue-width); background: var(--surface); }
.film-ledger-table tbody tr:last-child > * { border-bottom: 0; }
html[data-input-modality='keyboard'] .film-ledger-table:focus-within thead th:first-child,
html[data-input-modality='keyboard'] .film-ledger-table:focus-within tbody th:first-child,
html[data-input-modality='keyboard'] .film-ledger-table:focus-within thead th:nth-child(2),
html[data-input-modality='keyboard'] .film-ledger-table:focus-within tbody td:nth-child(2) { position: static; inset-inline-start: auto; }
@media (hover: hover) and (pointer: fine) {
  .film-ledger-table tbody tr:hover { background: var(--surface-soft); }
}
.ledger-catalogue-number { color: var(--rust-ink); font-family: var(--mono); font-size: var(--type-caption); font-weight: 400; white-space: nowrap; }
.ledger-film-layout { min-width: 0; display: flex; align-items: center; gap: var(--space-3); }
.ledger-poster { width: 34px; flex: 0 0 34px; display: block; overflow: hidden; aspect-ratio: 2 / 3; border: 1px solid var(--line); background: var(--surface-soft); }
.ledger-poster img { width: 100%; height: 100%; display: block; object-fit: cover; }
.ledger-poster-fallback { width: 100%; height: 100%; display: grid; place-items: center; background: var(--surface-soft); color: var(--muted); }
.ledger-poster-fallback::before { content: '▧'; font-size: 16px; }
.ledger-film-copy { min-width: 0; }
.ledger-film-copy h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0px var(--space-2); margin: 0; font-weight: 500; }
.ledger-film-title { min-width: 0; max-width: 100%; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; overflow-wrap: anywhere; color: var(--ink); font-family: var(--serif); font-size: var(--type-body); line-height: 1.25; text-decoration-color: var(--color-818778); text-underline-offset: 2px; }
.ledger-film-year { min-width: 0; max-width: 100%; color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); overflow-wrap: anywhere; }
.ledger-director-cell { color: var(--control-ink); font-size: var(--type-caption); line-height: 1.5; }
.ledger-director-cell .director-filter { color: inherit; }
.ledger-production { display: flex; flex-wrap: wrap; gap: 0px var(--space-2); margin: 0; color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); line-height: 1.4; white-space: normal; }
.ledger-production .cinephile-country-group { max-width: 100%; }
.ledger-appearance-cell { min-width: 125px; }
.ledger-film-count { min-width: 0; max-width: 100%; min-height: var(--control-min-height); display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-1); padding: var(--space-1) 0; border: 0; background: transparent; color: var(--control-ink); cursor: pointer; font-family: var(--mono); text-align: left; }
.film-ledger-table :is(a, button, [tabindex]):focus { scroll-margin-block-start: 68px; }
.ledger-film-count:focus-visible { outline: 3px solid var(--rust-ink); outline-offset: 3px; }
.ledger-film-count:focus-visible span { color: var(--rust-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .ledger-film-count:hover span { color: var(--rust-ink); text-decoration: underline; text-underline-offset: 3px; }
}
.ledger-appearance-cell strong { color: var(--forest); font-family: var(--serif); font-size: var(--type-section); font-weight: 500; }
.film-ledger-table:has(.has-long-count) thead th:nth-child(1) { width: var(--ledger-catalogue-width); }
.film-ledger-table:has(.has-long-count) thead th:nth-child(2) { width: 29%; }
.film-ledger-table:has(.has-long-count) thead th:nth-child(3) { width: 18%; }
.film-ledger-table:has(.has-long-count) thead th:nth-child(4) { width: 18%; }
.film-ledger-table:has(.has-long-count) thead th:nth-child(5) { width: 27%; }
.ledger-film-count.has-long-count { max-width: 100%; flex-wrap: wrap; }
.ledger-film-count.has-long-count strong { flex-basis: 100%; font-size: clamp(12px, 1rem, var(--type-body)); white-space: nowrap; }
.ledger-appearance-cell span { margin-left: 0; color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); }
@media (max-width: 1100px) {
  .film-ledger-view.has-horizontal-overflow .film-ledger-scroll-hint { display: block; }
}
@media (max-width: 700px) {
  .film-ledger-table { --ledger-catalogue-width: clamp(4rem, 20vw, 5rem); min-width: 940px; }
  .film-ledger-table thead th:nth-child(1) { width: var(--ledger-catalogue-width); }
  .film-ledger-table thead th:first-child { overflow-wrap: anywhere; white-space: normal; }
  .film-ledger-table thead th:first-child,
  .film-ledger-table tbody th:first-child { position: static; }
  .film-ledger-table thead th:nth-child(2) { width: 160px; inset-inline-start: 0; }
  .film-ledger-table thead th:nth-child(3) { width: 220px; }
  .film-ledger-table thead th:nth-child(4) { width: 200px; }
  .film-ledger-table thead th:nth-child(5) { width: 254px; }
  .film-ledger-table:has(.has-long-count) thead th:nth-child(1) { width: var(--ledger-catalogue-width); }
  .film-ledger-table:has(.has-long-count) thead th:nth-child(2) { width: 160px; inset-inline-start: 0; }
  .film-ledger-table:has(.has-long-count) thead th:nth-child(3) { width: 220px; }
  .film-ledger-table:has(.has-long-count) thead th:nth-child(4) { width: 200px; }
  .film-ledger-table:has(.has-long-count) thead th:nth-child(5) { width: 254px; }
  .film-ledger-table thead th:nth-child(2) { position: sticky; z-index: 2; inset-inline-start: 0; background: var(--surface-soft); }
  .film-ledger-table tbody td:nth-child(2) { position: sticky; z-index: 1; inset-inline-start: 0; background: var(--surface); }
  .ledger-film-count { width: 100%; justify-content: flex-end; }
  .ledger-film-count .film-score-meter { flex-basis: 90px; width: 90px; }
}
.ledger-provenance-details { margin-top: var(--space-1); padding-top: 0px; border-top: 0; }
.ledger-provenance-details summary { min-height: 22px; font-size: var(--type-caption); white-space: nowrap; }
.ledger-provenance-details .list-links { margin-top: var(--space-1); }
.ledger-provenance-details .list-links a { display: block; }
.ledger-year-divider th { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line); background: var(--surface-soft); color: var(--rust-ink); font-family: var(--serif); font-size: var(--type-caption); font-style: italic; font-weight: 500; text-align: left; }
.active-genre-chip { min-height: var(--control-min-height); padding: var(--space-1) var(--space-2); border: 1px solid var(--forest); border-radius: 999px; background: var(--filter-active); color: var(--filter-active-ink); cursor: pointer; font-size: var(--type-caption); }
.active-source-list-chip { min-width: 0; max-width: min(320px, 100%); display: inline-flex; align-items: flex-start; gap: var(--space-1); border-radius: 8px; text-align: left; white-space: normal; }
.active-source-list-label { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; white-space: normal; }
.active-source-list-remove { flex: 0 0 auto; }
@media (hover: hover) and (pointer: fine) {
  .active-genre-chip:hover { filter: brightness(1.12); }
}
.section-eyebrow { margin: 0 0 var(--space-2); color: var(--color-5b6251); font-size: var(--type-caption); }
h2 { margin: 0; font-family: var(--serif); font-size: clamp(34px, 5vw, 47px); font-weight: 500; letter-spacing: -.04em; text-wrap: balance; }

.collection-tools { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(323px, 1.6fr) minmax(0, .65fr) minmax(0, .8fr); align-items: center; gap: var(--space-2); }
.sort-control { min-width: 0; display: block; }
.search-box { width: 100%; max-width: none; }
.filter-tabs { min-width: 0; }
.genre-filter-toggle { width: 100%; justify-content: space-between; }
.sort-control select { width: 100%; min-height: var(--control-min-height); padding: 0 28px 0 var(--space-2); border: 1px solid var(--control-border); border-radius: 2px; background: var(--surface); color: var(--ink); font-family: var(--mono); font-size: var(--type-caption); }
.sort-control select:focus-visible { outline: 3px solid var(--focus-terracotta); outline-offset: 3px; }
.sort-control.toolbar-sort-control select { width: 0; min-width: 0; min-height: 44px; flex: 1 1 0; }
.search-box { width: 100%; height: 44px; display: flex; align-items: center; gap: var(--space-2); padding: 0 var(--space-2); border: 1px solid var(--control-border); border-radius: 2px; background: var(--surface); scroll-margin-block-start: 12px; transition: border-color .18s ease, box-shadow .18s ease; }
.search-icon { color: var(--muted-copy); font-size: var(--type-section); line-height: 1; }
.search-box input { width: 100%; min-width: 0; min-height: 32px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: var(--type-body); }
.search-box input::placeholder { color: var(--muted-copy); opacity: 1; }
.search-box kbd { color: var(--muted-copy); font-family: var(--mono); font-size: var(--type-caption); }
.search-box input[type='search']::-webkit-search-cancel-button,
.search-box input[type='search']::-webkit-search-decoration { display: none; -webkit-appearance: none; }
.search-result-preview { display: none; }
.filter-tabs { width: 100%; height: auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: stretch; gap: 1px; padding: 0; border-radius: 3px; outline: 1px solid var(--control-border); outline-offset: -1px; background: var(--surface-soft); }
.filter-button { width: auto; height: auto; min-height: var(--control-min-height); min-width: max-content; flex: 1 1 max-content; padding: var(--space-1) var(--space-2); border: 0; border-radius: 2px; background: transparent; color: var(--control-ink); cursor: pointer; font-size: var(--type-caption); line-height: 1.2; overflow-wrap: normal; white-space: nowrap; }
.filter-button:first-child { border-radius: 3px 0 0 3px; }
.filter-button:last-child { border-radius: 0 3px 3px 0; }
.filter-button span { margin-left: var(--space-1); color: var(--muted-copy); font-family: var(--mono); font-size: var(--type-caption); }
.filter-button.is-active { background: var(--filter-active); color: var(--filter-active-ink); }
.filter-button.is-active span { color: var(--filter-active-count); }
@media (max-width: 760px) {
  .filter-tabs { display: flex; }
  .filter-button:first-child { grid-column: auto; }
  .filter-button { min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; overflow-wrap: normal; }
  .filter-button span { margin-left: 0; }
}
.catalog-filters { min-width: 0; }
.catalog-filters[open] { z-index: 8; }
.catalogue-tools-disclosure { min-width: 0; }
.catalogue-tools-disclosure[open] { z-index: 8; }
.catalogue-tools-disclosure > .catalog-filters-toggle { justify-content: space-between; }
#catalogue-tools > .catalog-filters-toggle .catalogue-tools-short-label { display: none; }
#catalog-filters > .catalog-filters-toggle .catalogue-tools-short-label { display: none; }
.catalogue-tools-intro { margin: 0 0 var(--space-3); color: var(--muted); font-size: var(--type-small); line-height: 1.5; }
.catalog-filters-toggle { min-height: var(--control-min-height); display: flex; align-items: center; justify-content: center; gap: var(--space-2); padding: 0 var(--space-3); border: 1px solid var(--control-border); border-radius: 2px; background: var(--surface); color: var(--control-ink); cursor: pointer; font-size: var(--type-caption); list-style: none; }
.catalog-filters-toggle::-webkit-details-marker { display: none; }
.catalog-filters-toggle::after { color: var(--orange); content: '⌄'; font-size: var(--type-body); transition: transform .16s ease; }
.catalog-filters[open] > .catalog-filters-toggle::after { transform: rotate(180deg); }
.catalogue-tools-disclosure[open] > .catalog-filters-toggle::after { transform: rotate(180deg); }
.catalog-filter-count { min-width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--filter-active); color: var(--filter-active-ink); font-family: var(--mono); font-size: var(--type-caption); }
.catalog-filter-count[hidden] { display: none; }
.catalog-filters-panel { width: min(860px, calc(100% - 72px)); max-height: min(70vh, 720px); position: absolute; z-index: 9; top: calc(100% + var(--space-2)); right: 0; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; align-items: start; gap: var(--space-3); overflow: auto; padding: var(--space-4); border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.filter-count-status { margin: 0; padding: var(--space-2); background: var(--surface-soft); color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); }
.metadata-filter-scope { margin: 0; padding: 0 0 var(--space-2); border-bottom: 1px solid var(--line); color: var(--muted); font-size: var(--type-small); line-height: 1.5; }
.catalogue-tools-panel { width: min(640px, calc(100% - 36px)); max-height: min(70vh, 640px); position: absolute; z-index: 9; top: calc(100% + var(--space-2)); right: 0; overflow: auto; padding: var(--space-4); border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.catalog-filter-quick-picks { display: grid; grid-template-columns: minmax(170px, .75fr) minmax(0, 1.25fr); align-items: start; gap: var(--space-4); }
.catalog-filters-panel .genre-filter { min-width: 0; padding: var(--space-2); border: 1px solid var(--line); background: var(--surface-soft); color: var(--ink); }
.catalog-filters-panel .genre-filter[hidden] { display: none; }
.catalog-filters-panel .genre-filter-toggle { min-height: 32px; padding: 0; border: 0; background: transparent; font-size: var(--type-caption); }
.catalog-filters-panel .genre-filter-menu { width: auto; max-width: none; position: static; margin-top: var(--space-2); padding: var(--space-2) 0 0; border: 0; border-top: 1px solid var(--line); background: transparent; box-shadow: none; }
.catalog-filters-panel .decade-retrospective { margin: 0; padding: 0; border: 0; background: none; }
.catalog-filters-panel .decade-retrospective-heading { margin: 0 0 var(--space-2); }
.catalog-filters-panel .decade-retrospective-heading h3 { color: var(--ink); font-family: var(--mono); font-size: var(--type-caption); font-style: normal; }
.catalog-filters-panel .decade-options { max-width: none; }
.catalog-filters-panel .decade-options .decade-option { flex-grow: 1; }
.more-filters { border-top: 1px solid var(--line); }
.more-filters > summary { min-height: var(--control-min-height); display: flex; align-items: center; justify-content: space-between; color: var(--ink); cursor: pointer; font-family: var(--mono); font-size: var(--type-caption); list-style: none; }
.more-filters > summary::-webkit-details-marker { display: none; }
.more-filters-note { max-width: 58ch; margin: 0 0 var(--space-3); color: var(--muted); font-size: var(--type-small); line-height: 1.5; }
.more-filters > summary::after { color: var(--orange); content: '⌄'; font-size: var(--type-body); transition: transform .16s ease; }
.more-filters[open] > summary::after { transform: rotate(180deg); }
.more-filter-groups { display: grid; grid-template-columns: minmax(0, 1fr); padding: var(--space-1) 0 0px; }
.more-filter-group { min-width: 0; border-top: 1px solid var(--line); }
.more-filter-group > summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); color: var(--ink); cursor: pointer; font-size: var(--type-small); font-weight: 500; list-style: none; }
.more-filter-group > summary::-webkit-details-marker { display: none; }
.more-filter-group > summary::after { color: var(--muted); content: '+'; font-family: var(--mono); font-size: var(--type-utility); font-weight: 400; }
.more-filter-group[open] > summary::after { content: '−'; }
.more-filter-content { display: grid; gap: var(--space-2); padding: 0 0 var(--space-4); }
.catalogue-data-status { margin: var(--space-2) 0 0; color: var(--rust-ink); font-family: var(--mono); font-size: var(--type-caption); line-height: 1.5; }
.catalogue-data-status:empty { display: none; }
.catalogue-data-status[data-state='complete'] { color: var(--muted); }
.retry-ranking-load { min-height: var(--control-min-height); margin-top: var(--space-2); padding: 0 var(--space-3); border: 1px solid var(--line); background: var(--surface); color: var(--control-ink); cursor: pointer; font-family: var(--mono); font-size: var(--type-caption); font-weight: 500; white-space: nowrap; }
.retry-ranking-load:focus-visible { border-color: var(--forest); background: var(--surface-soft); }
@media (hover: hover) and (pointer: fine) {
  .retry-ranking-load:hover { border-color: var(--forest); background: var(--surface-soft); }
}
.retry-ranking-load[hidden] { display: none; }
.facet-index-note { margin: calc(-1 * var(--space-1)) 0 var(--space-2); color: var(--muted); font-size: var(--type-caption); line-height: 1.45; }
.runtime-filter-group #runtime-filter { margin: 0; padding: 0; border: 0; }
.runtime-filter-group .runtime-filter-label { display: none; }
.catalog-filters-panel .decade-retrospective-heading .eyebrow { color: var(--muted); }
.catalog-filters-panel .country-index { align-items: flex-start; flex-direction: column; gap: var(--space-2); }
.catalog-filters-panel .language-index { margin-top: var(--space-3); }
.catalog-filters-panel .country-index-options { flex-wrap: wrap; overflow-x: visible; }
.catalog-filters-panel .country-index-options.is-expanded { max-height: 180px; overflow-y: auto; }
.catalogue-export-actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); }
.share-output-panel .programme-share-panel { max-width: 640px; }
.genre-filter { position: relative; flex: 0 0 auto; }
.genre-filter[open] { z-index: 6; }
.genre-filter-toggle { min-height: max(32px, var(--control-min-height)); display: flex; align-items: center; gap: var(--space-2); padding: 0 var(--space-3); border: 1px solid var(--line); border-radius: 2px; background: var(--surface); color: var(--control-ink); cursor: pointer; font-size: var(--type-caption); list-style: none; white-space: nowrap; }
.genre-filter-toggle::-webkit-details-marker { display: none; }
.genre-filter-toggle::after { display: inline-block; color: var(--orange); content: '⌄'; font-size: var(--type-body); transition: transform .16s ease; }
.genre-filter[open] .genre-filter-toggle::after { transform: rotate(180deg); }
.genre-filter-summary { max-width: 104px; overflow: hidden; color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); text-overflow: ellipsis; }
.genre-filter-menu { width: min(310px, 100%); max-height: min(70vh, 560px); position: absolute; z-index: 7; top: calc(100% + var(--space-2)); right: 0; overflow: auto; padding: var(--space-3); border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.source-list-menu { width: min(360px, 100%); }
.selected-genres-heading { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-2); color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); }
.genre-menu-actions { display: flex; align-items: center; gap: var(--space-3); }
.selected-genres { min-height: 25px; display: flex; flex-wrap: wrap; gap: var(--space-1); margin-bottom: var(--space-3); }
.selected-genres-empty { align-self: center; color: var(--muted); font-size: var(--type-caption); }
.selected-genre-chip { min-height: var(--control-min-height); padding: var(--space-1) var(--space-2); border: 1px solid var(--forest); border-radius: 999px; background: var(--filter-active); color: var(--filter-active-ink); cursor: pointer; font-size: var(--type-caption); }
.selected-source-list-chip { border-radius: 8px; }
@media (hover: hover) and (pointer: fine) {
  .selected-genre-chip:hover { filter: brightness(1.12); }
}
.clear-genres { min-height: var(--control-min-height); padding: 0px 0; border: 0; background: transparent; color: var(--forest); cursor: pointer; font-size: var(--type-caption); text-decoration: underline; text-underline-offset: 2px; text-transform: none; }
.clear-genres[hidden] { display: none; }
.close-genres { min-height: var(--control-min-height); padding: var(--space-1) 0; border: 0; background: transparent; color: var(--forest); cursor: pointer; font-family: var(--mono); font-size: var(--type-caption); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.genre-search-box { height: 34px; display: flex; align-items: center; margin-bottom: var(--space-2); padding: 0 var(--space-2); border: 1px solid var(--control-border); background: var(--surface); }
.genre-search-box:focus-within { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.genre-search-box input { width: 100%; min-width: 0; min-height: 32px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: var(--type-caption); }
.genre-search-box input::placeholder { color: var(--muted); opacity: 1; }
.genre-filter-help { margin: 0 0 var(--space-2); color: var(--muted); font-size: var(--type-caption); line-height: 1.45; }
.genre-options { max-height: min(240px, 40vh); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0px var(--space-2); overflow: auto; }
.genre-option { min-width: 0; display: grid; grid-template-columns: 15px minmax(0, 1fr) auto; align-items: center; gap: var(--space-2); padding: var(--space-1) 0px; color: var(--ink); cursor: pointer; font-size: var(--type-caption); }
.genre-option[hidden] { display: none; }
.facet-show-all { min-height: var(--control-min-height); margin-top: var(--space-1); padding: 0px 0; border: 0; background: transparent; color: var(--forest); cursor: pointer; font-family: var(--mono); font-size: var(--type-caption); text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.facet-show-all[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) {
  .facet-show-all:hover { color: var(--rust-ink); }
}
.genre-option input { width: 14px; height: 14px; margin: 0; accent-color: var(--forest); }
.genre-option span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#source-list-options .genre-option span { white-space: normal; overflow-wrap: anywhere; }
.genre-option small { color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); }
.genre-empty-state { margin: var(--space-2) 0 0; color: var(--muted); font-size: var(--type-caption); }
.genre-empty-state[hidden] { display: none; }
.film-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-section) var(--space-5); }
.programme-note { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; gap: var(--space-1) var(--space-3); margin: 0; padding: var(--space-2) var(--space-3); border-left: 2px solid var(--orange); background: var(--surface-soft); }
.programme-note[hidden] { display: none; }
.programme-note-kicker { color: var(--rust-ink); font-family: var(--mono); font-size: var(--type-caption); white-space: nowrap; }
.programme-note p { margin: 0; color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); line-height: 1.5; }
.top-billed { margin: 0px 0 var(--space-6); padding: 20px var(--space-5) var(--space-5); border: 1px solid var(--line); border-top: 2px solid var(--orange); background: linear-gradient(135deg, var(--surface-soft) 0%, transparent 72%); }
.top-billed[hidden] { display: none; }
.top-billed-heading { display: flex; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-4); }
.top-billed-heading .section-eyebrow { margin: 0; }
.top-billed-heading h2 { margin: 0; font-family: var(--serif); font-size: var(--type-emphasis); font-weight: 500; letter-spacing: -.04em; }
.top-billed-feature { margin-bottom: var(--space-5); }
.featured-film { min-height: 540px; position: relative; display: grid; grid-template-columns: 360px minmax(0, 1fr); align-items: center; gap: var(--space-6); overflow: hidden; padding: var(--space-5) var(--space-6); border: 1px solid var(--color-586755); background: var(--color-1b2b22); color: var(--color-f4f1e8); }
.featured-film::before { position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, var(--color-17231df2) 0%, var(--color-17231de8) 42%, var(--color-17231dc7) 100%); content: ''; pointer-events: none; }
.featured-film::after { position: absolute; z-index: 1; inset: var(--space-2); border: 1px solid var(--color-f0ead826); content: ''; pointer-events: none; }
.featured-film-backdrop { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; opacity: .52; }
.featured-film-poster { width: min(100%, 360px); position: relative; z-index: 2; display: block; overflow: hidden; aspect-ratio: 2 / 3; border: 1px solid var(--color-f7f1e766); background: var(--color-30372f); box-shadow: 0 8px 20px var(--color-080d0a66); }
.featured-film-poster > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.featured-film-copy { min-width: 0; position: relative; z-index: 2; }
.featured-film-label { margin: 0 0 var(--space-2); color: var(--color-d2dfc6); font-family: var(--mono); font-size: var(--type-caption); }
.featured-film-label::before { content: none; }
.featured-film-copy h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-2) var(--space-3); margin: 0; font-weight: 500; }
.featured-film-title { overflow-wrap: anywhere; color: var(--color-fffdf5); font-family: var(--serif); font-size: clamp(23px, 3.3vw, 38px); line-height: 1.08; letter-spacing: -.045em; text-decoration-color: var(--color-ffffff80); text-underline-offset: 3px; }
.featured-film-year { color: var(--color-d0d6ca); font-family: var(--mono); font-size: var(--type-caption); }
.featured-film-director { margin: var(--space-3) 0 0; color: var(--color-e0e3da); font-size: var(--type-body); line-height: 1.45; }
.featured-film-facts { margin: var(--space-2) 0 0; color: var(--color-c6cec0); font-family: var(--mono); font-size: var(--type-caption); line-height: 1.45; }
.featured-film-overview { max-width: 52ch; display: -webkit-box; overflow: hidden; margin: var(--space-2) 0 0; color: var(--hero-copy); font-size: var(--type-caption); line-height: 1.55; text-wrap: pretty; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.featured-film-genres { margin-top: var(--space-2); }
.featured-film-genres .genre-tag-more { display: inline-flex; flex: 0 0 auto; }
.featured-film-genres .genre-extra-tag { display: none; }
.featured-film-genres.is-expanded .genre-extra-tag { display: inline-flex; }
.featured-film-genres .genre-tag { border-color: var(--color-d4e6c74d); background: var(--color-101b164d); color: var(--color-dce8d1); }
.featured-film-genres .genre-tag[aria-pressed='true'] { border-color: var(--night-highlight-bright); background: var(--night-highlight-bright); color: var(--color-17231d); }
@media (hover: hover) and (pointer: fine) {
  .featured-film-genres .genre-tag:not([aria-pressed='true']):hover { border-color: var(--night-highlight-bright); }
}
.featured-film-count { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-4) 0 0; color: var(--color-e0e3da); font-family: var(--mono); font-size: var(--type-caption); }
.featured-film-count { width: fit-content; max-width: 100%; padding: var(--space-1) 0; border: 0; background: transparent; cursor: pointer; text-align: left; }
.featured-film-count:focus-visible { outline: 3px solid var(--color-c3df93); outline-offset: 3px; }
.featured-film-count strong { color: var(--night-highlight-bright); font-family: var(--serif); font-size: var(--type-display-small); font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
@media (min-width: 921px) {
  :root { --compact-poster-width: max(150px, min(28vw, calc(66.6667vh - 173.33px), 360px)); }
  .topbar { height: calc(56px + env(safe-area-inset-top, 0px)); }
  .hero { min-height: 0; margin-top: var(--space-2); padding-block: var(--space-5); }
  .hero h1 { font-size: clamp(54px, 4.7vw, 60px); }
  .hero-description { font-size: var(--type-caption); }
  .edition-colophon { max-width: 460px; }
  .summary { min-height: 48px; gap: var(--space-1) var(--space-3); padding-block: var(--space-1); }
  .summary-item strong { font-size: var(--type-emphasis); }
  .watch-progress progress { height: 6px; }
  .collection { padding-top: var(--space-2); }
  .catalogue-controls { gap: var(--space-2); }
  .collection-heading { gap: var(--space-4); padding-bottom: var(--space-2); }
  .catalogue-results { margin-top: var(--space-2); }
  .top-billed { margin-bottom: 20px; padding: var(--space-3) var(--space-4) var(--space-4); }
  .top-billed-heading { margin-bottom: var(--space-2); }
  .top-billed-feature { margin-bottom: var(--space-3); }
  .featured-film { min-height: 0; grid-template-columns: minmax(150px, var(--compact-poster-width)) minmax(0, 1fr); gap: var(--space-5); padding: var(--space-3) var(--space-4); }
  .featured-film-poster { width: 100%; }
  .featured-film-label { margin-bottom: var(--space-1); }
  .featured-film-director, .featured-film-overview { margin-top: var(--space-2); }
  .featured-film-overview { -webkit-line-clamp: 2; }
  .featured-film-genres { margin-top: var(--space-2); }
  .featured-film-count { margin-top: var(--space-2); }
}
.top-billed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-5); }
.top-billed-grid .film-card { width: min(100%, 28vw, 360px); justify-self: center; }
@media (min-width: 921px) {
  .top-billed-grid .film-card { width: min(100%, var(--compact-poster-width)); }
}
.top-billed-grid .film-title { font-size: var(--type-control); }
.top-billed-grid .director-credit { font-size: var(--type-caption); }
.top-billed-grid .cinephile-meta { font-size: var(--type-caption); }
.top-billed-grid .film-count { font-size: var(--type-caption); }
.top-billed-grid .film-count strong { font-size: var(--type-rank); }
.film-card { min-width: 0; }
.poster-link { display: block; position: relative; overflow: hidden; aspect-ratio: 2 / 3; border: 1px solid var(--color-383c301c); background: var(--line); box-shadow: 0 2px 6px var(--color-24251d12), 0 10px 22px var(--color-24251d0d); text-decoration: none; }
.poster-link::after { position: absolute; inset: 0; content: ''; border: 1px solid var(--color-f7f1e72b); pointer-events: none; }
.poster-image { width: 100%; height: 100%; display: block; object-fit: cover; }
@media (hover: hover) and (pointer: fine) {
  .poster-link:hover::after { border-color: var(--forest); }
}
.poster-fallback { width: 100%; height: 100%; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3); overflow: hidden; padding: var(--space-5) var(--space-4); background: var(--color-e8e4d5); color: var(--forest); text-align: center; }
.poster-fallback::before { position: absolute; inset: var(--space-2); border: 1px solid var(--color-294b3a55); content: ''; pointer-events: none; }
.poster-fallback::after { width: 44px; height: 1px; flex: 0 0 1px; order: -1; background: var(--rust-ink); content: ''; }
.poster-fallback-label, .poster-fallback-details { position: relative; color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); }
.poster-fallback-label { max-width: 100%; flex: 0 0 auto; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow-wrap: anywhere; }
.poster-fallback-title { max-width: 100%; flex: 0 0 auto; position: relative; display: -webkit-box; overflow: hidden; color: var(--forest); font-family: var(--serif); font-size: clamp(14px, 1.6vw, 21px); font-weight: 500; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow-wrap: anywhere; }
.poster-fallback-details { max-width: 100%; flex: 0 0 auto; display: -webkit-box; overflow: hidden; font-size: var(--type-caption); line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.rank-chip { max-width: calc(100% - var(--space-4)); position: absolute; z-index: 1; top: var(--space-2); left: var(--space-2); min-width: 30px; min-height: 34px; height: auto; display: grid; place-items: center; padding: var(--space-1) var(--space-2); border: 1px solid var(--rust-ink); border-radius: 2px; background: var(--color-f5f1e9f2); color: var(--rust-ink); font-family: var(--mono); font-size: var(--type-caption); overflow-wrap: anywhere; text-align: center; white-space: normal; box-shadow: 0 2px 8px var(--color-16181026); }
.watched-chip { max-width: calc(100% - var(--space-4)); position: absolute; z-index: 1; top: auto; right: var(--space-2); bottom: var(--space-2); box-sizing: border-box; padding: var(--space-2) var(--space-2); border: 1px solid var(--color-b5d67a77); background: var(--color-243d31ed); color: var(--color-e7f0dd); font-family: var(--mono); font-size: var(--type-caption); overflow-wrap: anywhere; text-align: center; white-space: normal; }
.film-info { position: relative; margin-top: 0; padding: var(--space-3) var(--space-2) var(--space-2); border: 1px solid var(--line); border-top: 0; background: var(--surface); }
.film-title-row { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2); margin: 0; font: inherit; }
.film-title { min-width: 0; min-height: 2.7em; flex: 1 1 12ch; display: -webkit-box; overflow: hidden; overflow-wrap: anywhere; color: var(--ink); font-family: var(--serif); font-size: var(--type-card-title); font-weight: 500; line-height: 1.32; text-decoration-color: var(--color-818778); text-underline-offset: 2px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.director-credit { margin: var(--space-1) 0 0; color: var(--forest); font-size: var(--type-caption); line-height: 1.4; overflow-wrap: anywhere; }
.director-filter { max-width: 100%; min-height: 32px; display: inline-flex; align-items: center; overflow: hidden; vertical-align: middle; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; text-overflow: ellipsis; white-space: nowrap; text-decoration: underline; text-decoration-color: var(--color-879182); text-underline-offset: 2px; }
.director-credit.is-expanded { display: block; overflow: visible; }
.director-more-button { min-height: 32px; margin-left: var(--space-1); padding: 0 var(--space-1); border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.ledger-director-cell .director-more-button { color: var(--forest); }
.director-filter[aria-pressed='true'] { color: var(--rust-ink); text-decoration-thickness: 2px; }
@media (hover: hover) and (pointer: fine) {
  .director-filter:hover { color: var(--rust-ink); text-decoration-thickness: 2px; }
}
.cinephile-meta { display: flex; align-items: baseline; gap: var(--space-1); margin: var(--space-2) 0 0; padding-top: var(--space-1); overflow: visible; border-top: 1px dotted var(--line); color: var(--muted-copy); font-family: var(--mono); font-size: var(--type-caption); line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.cinephile-country-group { min-width: 0; max-width: 100%; position: relative; display: inline-flex; align-items: baseline; gap: var(--space-1); }
.cinephile-country-group.has-more:not(.is-expanded) { padding-right: 28px; }
.cinephile-country-primary { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-filter-button { min-width: 0; max-width: 100%; min-height: 32px; display: inline-flex; flex: 0 1 auto; align-items: center; overflow: hidden; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; text-align: left; text-decoration: underline; text-decoration-color: var(--color-879182); text-underline-offset: 2px; }
.country-filter-button > span { min-width: 0; max-width: 100%; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cinephile-country-extra .country-filter-button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.country-filter-button:focus-visible, .country-filter-button[aria-pressed='true'] { color: var(--rust-ink); text-decoration-color: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .country-filter-button:hover { color: var(--rust-ink); text-decoration-color: currentColor; }
}
.featured-film-facts .country-filter-button:focus-visible, .featured-film-facts .country-filter-button[aria-pressed='true'] { color: var(--terracotta-on-dark); }
@media (hover: hover) and (pointer: fine) {
  .featured-film-facts .country-filter-button:hover { color: var(--terracotta-on-dark); }
}
.cinephile-country-extra { display: inline-block; white-space: normal; }
html.js .cinephile-country-extra { max-width: 0; overflow: hidden; opacity: 0; white-space: nowrap; }
.cinephile-country-group.is-expanded .cinephile-country-extra { max-width: 32rem; opacity: 1; white-space: normal; }
.country-more-button { min-width: 32px; min-height: 32px; flex: 0 0 auto; padding: 0 var(--space-1); border: 0; background: transparent; color: var(--forest); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 2px; transition: transform 120ms cubic-bezier(.23, 1, .32, 1); }
.cinephile-country-group.has-more:not(.is-expanded) .country-more-button { position: absolute; top: 50%; right: 0; translate: 0 -50%; }
html[data-input-modality='pointer'] button.country-more-button:not(:disabled):active { transform: scale(.97); }
html[data-input-modality='keyboard'] button.country-more-button:not(:disabled):active { transform: none; }
.cinephile-runtime { min-width: 0; flex: 0 1 auto; overflow-wrap: anywhere; white-space: normal; }
.cinephile-runtime::before { margin: 0 var(--space-1); content: '·'; }
.cinephile-meta.is-expanded { flex-wrap: wrap; overflow: visible; white-space: normal; }
.cinephile-meta.is-expanded .cinephile-country-group { flex-wrap: wrap; }
.featured-film-facts { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0; }
.featured-film-facts.is-expanded { overflow: visible; white-space: normal; }
.featured-film-facts .country-more-button { color: var(--night-highlight-bright); }
.film-year { min-width: 0; max-width: 100%; flex: 0 1 auto; padding-left: var(--space-2); border-left: 1px solid var(--line); color: var(--muted-copy); font-family: var(--mono); font-size: var(--type-caption); overflow-wrap: anywhere; }
.film-count { width: fit-content; max-width: 100%; min-height: 44px; display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-2) 0 0; padding: var(--space-1) 0; border: 0; background: transparent; color: var(--muted-copy); cursor: pointer; font-family: var(--mono); font-size: var(--type-caption); text-align: left; }
.film-count::before { width: 3px; height: 18px; align-self: center; background: var(--rust-ink); content: ''; }
.film-count strong { color: var(--forest); font-family: var(--serif); font-size: var(--type-count); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.film-info:has(.has-long-count), .featured-film-copy:has(.has-long-count), .film-detail-copy:has(.has-long-count) { container-type: inline-size; }
.film-count.has-long-count, .featured-film-count.has-long-count { width: 100%; }
.film-count.has-long-count { position: relative; padding-inline-start: var(--space-2); }
.film-count.has-long-count::before { position: absolute; inset-inline-start: 0; top: var(--space-1); }
.film-count.has-long-count strong, .featured-film-count.has-long-count strong { flex-basis: 100%; font-size: clamp(12px, 8cqi, var(--type-count)); white-space: nowrap; }
.film-count:focus-visible span { color: var(--rust-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .film-count:hover span { color: var(--rust-ink); text-decoration: underline; text-underline-offset: 3px; }
}
.film-count:focus-visible { outline-offset: 3px; }
.film-score-meter, .featured-score-meter { height: 3px; display: block; overflow: hidden; background: var(--surface-soft); }
.film-score-meter { flex: 0 0 calc(100% - 20px); margin-inline: var(--space-2); }
.film-score-meter > span, .featured-score-meter > span { width: var(--score-share); height: 100%; display: block; background: var(--rust-ink); }
.featured-score-meter { flex: 0 0 calc(100% - 14px); margin: 0px var(--space-2) 0; background: var(--color-ffffff36); }
.featured-score-meter > span { background: var(--night-highlight-bright); }
.genre-tags { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-2); }
.genre-tag { min-height: 32px; max-width: 100%; display: inline-flex; align-items: center; justify-content: center; padding: var(--space-1) var(--space-2); border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); color: var(--control-ink); cursor: pointer; font-size: var(--type-caption); line-height: 1.25; overflow-wrap: anywhere; }
.genre-tag-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.genre-tag[aria-pressed='true'] { border-color: var(--forest); background: var(--filter-active); color: var(--filter-active-ink); }
@media (hover: hover) and (pointer: fine) {
  .genre-tag:not([aria-pressed='true']):hover { border-color: var(--forest); }
}
.genre-tag-more { display: inline-flex; flex: 0 0 auto; }
.film-notes { margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px dotted var(--line); }
.film-notes-heading { margin: 0; color: var(--rust-ink); font-family: var(--mono); font-size: var(--type-caption); font-weight: 500; color: var(--control-ink); }
.film-notes-body { counter-reset: film-note; }
.film-note-section { margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px dotted var(--line); counter-increment: film-note; }
.film-note-section h4 { margin: 0; color: var(--rust-ink); font-family: var(--mono); font-size: var(--type-caption); font-weight: 500; line-height: 1.5; }
.film-note-section h4::before { margin-right: var(--space-2); color: var(--muted); content: counter(film-note, decimal-leading-zero) ' /'; }
.film-note-synopsis { margin: var(--space-1) 0 0; color: var(--muted); font-size: var(--type-caption); line-height: 1.55; overflow-wrap: anywhere; }
.film-note-list-links { margin-top: var(--space-1); }
.film-detail-trigger { min-height: var(--control-min-height); display: inline-flex; align-items: center; margin-top: var(--space-2); padding: 0px 0; border: 0; background: transparent; color: var(--forest); cursor: pointer; font-family: var(--mono); font-size: var(--type-caption); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
@media (max-width: 640px) {
  .ledger-film-copy .film-detail-trigger { width: fit-content; max-width: 100%; display: block; white-space: normal; overflow-wrap: anywhere; text-align: start; }
}
@media (hover: hover) and (pointer: fine) {
  .film-detail-trigger:hover { color: var(--rust-ink); }
}
.featured-film .film-detail-trigger { color: var(--terracotta-on-dark); }
@media (hover: hover) and (pointer: fine) {
  .featured-film .film-detail-trigger:hover { color: var(--color-ffc19e); }
}
.film-detail-dialog:not([open]) { display: none; }
.film-detail-dialog { width: min(820px, calc(100% - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))); max-width: none; max-height: min(90vh, 780px); display: grid; grid-template-rows: auto minmax(0, 1fr); padding: 0; overflow: hidden; overscroll-behavior: contain; border: 1px solid var(--line); border-top: 3px solid var(--poster-accent, var(--orange)); background: var(--surface); color: var(--ink); }
.film-detail-dialog::backdrop { background: var(--color-151915b8); }
.film-detail-dialog-header { z-index: 2; display: flex; justify-content: flex-end; padding: var(--space-2) var(--space-2) 0; background: var(--surface); }
.film-detail-close { width: 44px; height: 44px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; font-size: var(--type-count); line-height: 1; }
.film-detail-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.film-detail-navigation { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: var(--space-2) var(--space-2); margin: 0 56px var(--space-4) 0; padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); }
.film-detail-position { color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); text-align: center; }
.film-detail-step { min-width: 0; min-height: 48px; width: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: var(--space-1); padding: var(--space-2) var(--space-2); border: 1px solid var(--filter-active); border-radius: 2px; background: var(--filter-active); color: var(--filter-active-ink); cursor: pointer; text-align: start; transition: background-color .16s ease, border-color .16s ease, transform 120ms cubic-bezier(.23, 1, .32, 1); }
.film-detail-step:last-child { justify-self: end; }
.film-detail-step-label { font-family: var(--mono); font-size: var(--type-caption); font-weight: 500; color: inherit; }
.film-detail-step-title { max-width: 100%; display: -webkit-box; overflow: hidden; font-size: var(--type-caption); line-height: 1.2; overflow-wrap: anywhere; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.film-detail-keyboard-hint { grid-column: 1 / -1; justify-self: center; color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); }
.film-detail-keyboard-hint kbd { padding: 0px var(--space-1); border: 1px solid var(--line); background: var(--surface-soft); font: inherit; }
#film-detail-title { overflow-wrap: anywhere; }
#film-detail-title.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.film-detail-title-toggle { min-height: 44px; display: inline-flex; align-items: center; padding: 0 var(--space-1); border: 0; background: transparent; color: var(--forest); cursor: pointer; font-family: var(--mono); font-size: var(--type-caption); text-decoration: underline; text-decoration-color: var(--link-rule); text-underline-offset: 3px; }
.film-detail-title-toggle[hidden] { display: none; }
.film-detail-full-title { max-height: 8rem; overflow: auto; overscroll-behavior: contain; padding: var(--space-2); border: 1px solid var(--line); background: var(--surface-soft); color: var(--ink); font-family: var(--serif); font-size: var(--type-body); line-height: 1.5; overflow-wrap: anywhere; scroll-margin-block-start: 68px; }
.film-detail-full-title[hidden] { display: none; }
.film-detail-step:disabled { border-color: var(--line); background: var(--surface-soft); color: var(--muted); cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .film-detail-step:not(:disabled):hover { border-color: var(--rust-ink); background: var(--rust-ink); color: var(--filter-active-ink); }
}
.film-detail-layout { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr); grid-template-areas: 'poster copy' 'poster supporting'; align-items: start; gap: clamp(var(--space-4), 4vw, var(--space-6)); padding: clamp(20px, 4vw, var(--space-6)); }
.film-detail-poster-column { min-width: 0; grid-area: poster; display: grid; align-content: start; gap: var(--space-2); }
.film-detail-copy { grid-area: copy; }
.film-detail-supporting { min-width: 0; grid-area: supporting; }
.film-detail-poster { min-width: 0; overflow: hidden; border: 1px solid var(--line); background: var(--surface-soft); color: var(--muted); aspect-ratio: 2 / 3; font-family: var(--serif); font-size: var(--type-section-small); }
.film-detail-poster-trigger { display: block; width: 100%; padding: 0; cursor: zoom-in; }
@media (hover: hover) and (pointer: fine) {
  .film-detail-poster-trigger:hover { border-color: var(--rust-ink); }
}
.film-detail-gallery-button { min-height: var(--control-min-height); width: 100%; padding: var(--space-2) var(--space-2); border: 1px solid var(--forest); background: var(--filter-active); color: var(--filter-active-ink); cursor: pointer; font-family: var(--mono); font-size: var(--type-caption); font-weight: 500; letter-spacing: .03em; }
.film-detail-gallery-button[aria-disabled='true'] { cursor: progress; opacity: .65; }
@media (hover: hover) and (pointer: fine) {
  .film-detail-gallery-button:hover { border-color: var(--rust-ink); background: var(--rust-ink); color: var(--filter-active-ink); }
}
.film-detail-action-status { margin: 0; color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); line-height: 1.4; overflow-wrap: anywhere; }
.film-detail-action-status:empty { line-height: 0; }
.film-detail-links .film-detail-action-status:not(:empty) { flex: 1 0 100%; }
.film-detail-poster-fallback { gap: var(--space-2); padding: var(--space-3); font-size: var(--type-body); }
.film-detail-poster-retry { min-height: var(--control-min-height); max-width: 100%; padding: var(--space-2); border: 1px solid var(--forest); background: var(--surface); color: var(--ink); cursor: pointer; font-family: var(--mono); font-size: var(--type-caption); }
.film-detail-poster-retry[aria-disabled='true'] { cursor: progress; opacity: .65; }
.film-detail-poster-retry-status { color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); line-height: 1.4; }
.film-detail-poster-fallback .film-detail-poster-retry { position: relative; flex: 0 0 auto; }
.film-detail-poster-fallback .film-detail-poster-retry-status { position: relative; }
.film-detail-poster-retry-status:empty { display: none; }
.film-detail-poster img { width: 100%; height: 100%; display: block; object-fit: cover; }
.poster-viewer-dialog:not([open]) { display: none; }
.poster-viewer-dialog { width: min(860px, calc(100% - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))); max-width: none; max-height: min(96dvh, 1160px); position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); align-items: start; overflow: hidden; padding: var(--space-2) var(--space-4) var(--space-4); border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.poster-viewer-dialog::backdrop { background: var(--color-111611d9); }
.film-detail-dialog, .poster-viewer-dialog {
  opacity: 0;
  transform: scale(.96);
  transition: opacity 150ms cubic-bezier(.23, 1, .32, 1), transform 150ms cubic-bezier(.23, 1, .32, 1), display 150ms allow-discrete, overlay 150ms allow-discrete;
}
.film-detail-dialog[open], .poster-viewer-dialog[open] { opacity: 1; transform: scale(1); transition-duration: 250ms; }
.film-detail-dialog[open]::backdrop, .poster-viewer-dialog[open]::backdrop { opacity: 1; transition: opacity 250ms cubic-bezier(.23, 1, .32, 1); }
.film-detail-dialog::backdrop, .poster-viewer-dialog::backdrop { opacity: 0; transition: opacity 150ms cubic-bezier(.23, 1, .32, 1); }
@starting-style {
  .film-detail-dialog[open], .poster-viewer-dialog[open] { opacity: 0; transform: scale(.96); }
  .film-detail-dialog[open]::backdrop, .poster-viewer-dialog[open]::backdrop { opacity: 0; }
}
html[data-input-modality='keyboard'] .film-detail-dialog,
html[data-input-modality='keyboard'] .poster-viewer-dialog,
html[data-input-modality='keyboard'] .film-detail-dialog[open],
html[data-input-modality='keyboard'] .poster-viewer-dialog[open] {
  transform: none;
  transition-duration: 0ms;
}
html[data-input-modality='keyboard'] .film-detail-dialog::backdrop,
html[data-input-modality='keyboard'] .poster-viewer-dialog::backdrop,
html[data-input-modality='keyboard'] .film-detail-dialog[open]::backdrop,
html[data-input-modality='keyboard'] .poster-viewer-dialog[open]::backdrop {
  transition-duration: 0ms;
}
html[data-input-modality='keyboard'] .catalogue-tool-group > summary::after,
html[data-input-modality='keyboard'] .saved-view-portability > summary::after,
html[data-input-modality='keyboard'] .catalog-filters-toggle::after,
html[data-input-modality='keyboard'] .more-filters > summary::after,
html[data-input-modality='keyboard'] .genre-filter-toggle::after,
html[data-input-modality='keyboard'] .film-detail-share-indicator,
html[data-input-modality='keyboard'] .country-more-button,
html[data-input-modality='keyboard'] .decade-option { transition-duration: 0ms; }
html[data-input-modality='keyboard'] .film-detail-step { transition-duration: 0ms; }
html[data-input-modality='keyboard'] button:not(:disabled):active,
html[data-input-modality='keyboard'] summary:active,
html[data-input-modality='keyboard'] a:active { transform: none; outline: 1px solid currentColor; outline-offset: 1px; }
@starting-style {
  html[data-input-modality='keyboard'] .film-detail-dialog[open],
  html[data-input-modality='keyboard'] .poster-viewer-dialog[open] {
    opacity: 0;
    transform: none;
  }
}
.poster-viewer-header { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.poster-viewer-close { z-index: 1; width: 44px; height: 44px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; font-size: var(--type-count); line-height: 1; }
.poster-viewer-content { width: 100%; min-width: 0; min-height: 0; grid-template-columns: minmax(0, 1fr); grid-auto-rows: max-content; align-self: stretch; display: grid; justify-items: center; align-content: start; gap: var(--space-3); overflow-y: auto; overscroll-behavior: contain; }
.poster-viewer-figure { width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--space-2); max-width: 100%; margin: 0; }
.poster-viewer-stage { max-width: 100%; max-height: 82vh; display: grid; place-items: center; overflow: auto; background: var(--surface-soft); }
.poster-viewer-stage:focus-visible { outline-offset: -3px; }
.poster-viewer-stage.is-fit { width: min(100%, 500px, clamp(120px, calc(66.6667dvh - 226px), 500px)); max-height: min(82vh, max(180px, calc(100dvh - 340px))); aspect-ratio: 2 / 3; grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.poster-viewer-image { width: auto; max-width: 100%; max-height: 82vh; display: block; object-fit: contain; }
.poster-viewer-stage.is-fit .poster-viewer-image { max-height: 100%; }
.poster-viewer-image[hidden] { display: none; }
.poster-viewer-image.is-zoomed { max-width: none; max-height: none; }
.poster-viewer-caption { width: 100%; max-width: 100%; min-width: 0; color: var(--muted); font-family: var(--serif); font-size: var(--type-card-title); text-align: center; overflow-wrap: anywhere; }
.poster-viewer-status { max-width: min(680px, 100%); margin: 0; color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); text-align: center; }
.poster-viewer-status:empty, .poster-viewer-gallery[hidden] { display: none; }
.poster-viewer-dialog:has(.poster-viewer-stage.is-fit) #poster-viewer-feedback { min-height: 1.4em; display: block; line-height: 1.4; }
.poster-viewer-gallery { width: min(680px, 100%); min-block-size: max-content; display: flex; justify-content: flex-start; gap: var(--space-2); overflow-x: auto; padding: 0px 0px var(--space-2); scrollbar-width: thin; }
.poster-viewer-option { min-width: 82px; flex: 0 0 82px; display: grid; grid-template-rows: 108px auto; justify-items: center; gap: var(--space-1); padding: var(--space-1); border: 1px solid var(--line); background: var(--surface-soft); color: var(--control-ink); cursor: pointer; font-family: var(--mono); font-size: var(--type-caption); }
.poster-viewer-option img { width: 100%; height: 108px; display: block; background: var(--surface); object-fit: contain; }
.poster-viewer-option span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poster-viewer-option img[hidden], .poster-viewer-option .poster-viewer-thumbnail-fallback[hidden] { display: none; }
.poster-viewer-option .poster-viewer-thumbnail-fallback { width: 100%; height: 108px; display: grid; place-items: center; background: var(--surface); color: var(--muted); text-align: center; white-space: normal; overflow-wrap: anywhere; }
.poster-viewer-option[aria-pressed='true'] { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); }
.poster-viewer-option:focus-visible { outline-offset: -3px; }
.poster-viewer-zoom { min-height: var(--control-min-height); padding: var(--space-2) var(--space-2); border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-family: var(--mono); font-size: var(--type-caption); }
.poster-viewer-zoom[aria-pressed='true'] { border-color: var(--forest); background: var(--filter-active); color: var(--filter-active-ink); }
.poster-viewer-dialog.has-gallery .poster-viewer-stage.is-fit { width: min(100%, 500px, clamp(120px, calc(58dvh - 166px), 500px)); max-height: min(62dvh, max(180px, calc(100dvh - 520px))); }
@media (max-height: 500px) and (min-width: 540px) {
  .poster-viewer-dialog.has-gallery { width: min(900px, calc(100% - 24px)); max-height: 94dvh; }
  .poster-viewer-dialog.has-gallery .poster-viewer-content { grid-template-columns: minmax(0, 1fr) minmax(190px, 240px); grid-template-rows: minmax(0, 1fr) auto auto auto auto; grid-template-areas: 'figure gallery' 'figure feedback' 'figure poster-retry' 'figure gallery-retry' 'figure status'; justify-items: stretch; align-items: start; gap: var(--space-2); }
  .poster-viewer-dialog.has-gallery .poster-viewer-figure { grid-area: figure; align-self: start; }
  .poster-viewer-dialog.has-gallery .poster-viewer-stage.is-fit { width: min(100%, 300px, calc((100dvh - 150px) * 2 / 3)); max-height: calc(100dvh - 150px); }
  .poster-viewer-dialog.has-gallery .poster-viewer-stage:not(.is-fit) { max-height: calc(94dvh - 150px); }
  .poster-viewer-dialog.has-gallery .poster-viewer-gallery { grid-area: gallery; width: 100%; }
  .poster-viewer-dialog.has-gallery #poster-viewer-feedback { grid-area: feedback; }
  .poster-viewer-dialog.has-gallery #poster-viewer-retry { grid-area: poster-retry; }
  .poster-viewer-dialog.has-gallery #poster-viewer-gallery-retry { grid-area: gallery-retry; }
  .poster-viewer-dialog.has-gallery #poster-viewer-status { grid-area: status; }
}
.film-detail-copy { min-width: 0; container-type: inline-size; padding-top: var(--space-1); }
.film-detail-kicker { margin: 0 44px var(--space-2) 0; color: var(--rust-ink); font-family: var(--mono); font-size: var(--type-caption); }
.film-detail-copy h2 { margin: 0; font-family: var(--serif); font-size: clamp(28px, 4vw, 42px); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; overflow-wrap: anywhere; }
.film-detail-year { display: block; margin-top: var(--space-2); color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); overflow-wrap: anywhere; direction: ltr; unicode-bidi: isolate; }
.film-detail-year-source { color: var(--muted); }
.film-detail-original { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-1) var(--space-2); margin-top: var(--space-1); }
.film-detail-original-label { flex: 0 0 100%; color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); }
.film-detail-original-name { color: var(--ink); font-family: var(--serif), 'Yu Mincho', 'Noto Serif CJK JP', 'Noto Serif CJK SC', serif; font-size: var(--type-section-small); line-height: 1.3; overflow-wrap: anywhere; }
.film-detail-original-language { color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); }
.film-detail-director, .film-detail-facts { margin: var(--space-3) 0 0; color: var(--muted); font-size: var(--type-caption); line-height: 1.5; }
.film-detail-director { color: var(--ink); font-family: var(--serif); font-size: var(--type-control); line-height: 1.45; }
.film-detail-director .director-filter { color: var(--forest); font: inherit; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; text-underline-offset: 3px; }
.film-detail-facts .cinephile-country-group { flex-wrap: wrap; }
.film-detail-facts .cinephile-country-primary { overflow: visible; white-space: normal; overflow-wrap: anywhere; }
.film-detail-score { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-1); margin: var(--space-4) 0 0; color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); }
.film-detail-score strong { color: var(--rust-ink); font-family: var(--serif); font-size: var(--type-detail-score); font-weight: 500; }
.film-detail-score.has-long-count strong { flex-basis: 100%; font-size: clamp(12px, 8cqi, var(--type-detail-score)); white-space: nowrap; }
.film-detail-genres { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-2); }
.film-detail-genres .genre-tag-more { display: inline-flex; }
.film-detail-genres .genre-tag { min-height: 26px; font-size: var(--type-caption); }
.film-detail-genres .genre-tag-long { justify-content: flex-start; padding-inline: 0; border-color: transparent; border-radius: 0; background: transparent; text-align: start; line-height: 1.5; text-decoration: underline; text-underline-offset: 3px; }
.film-detail-genres .genre-tag-long[aria-pressed='true'] { color: var(--rust-ink); text-decoration-thickness: 2px; }
@media (hover: hover) and (pointer: fine) {
  .film-detail-genres .genre-tag-long:hover { color: var(--rust-ink); text-decoration-thickness: 2px; }
}
.film-detail-supporting .film-notes { margin-top: var(--space-4); }
.film-detail-supporting .film-notes-heading { font-size: var(--type-caption); }
.film-detail-supporting .film-note-synopsis { max-width: 68ch; color: var(--ink); font-family: var(--serif); font-size: var(--type-card-title); line-height: 1.75; }
.film-detail-supporting .film-note-section h4 { margin-top: var(--space-3); color: var(--muted); font-size: var(--type-caption); }
.film-detail-supporting .film-note-sources .film-note-section h4 { color: var(--muted); }
.film-note-sources:focus { outline: 3px solid var(--orange); outline-offset: 5px; }
.film-detail-supporting .film-note-sources .list-links a { color: var(--muted); font-size: var(--type-caption); }
.film-detail-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.film-detail-share { min-width: 0; flex: 1 1 100%; }
.film-detail-share summary { width: fit-content; min-height: 44px; display: flex; align-items: center; color: var(--forest); font-family: var(--mono); font-size: var(--type-caption); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.film-detail-share-indicator { display: inline-block; transform: rotate(-90deg); transition: transform 150ms ease-out; }
.film-detail-share[open] > summary .film-detail-share-indicator { transform: rotate(0); }
.film-detail-share summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.film-detail-share .film-detail-share-url { margin: var(--space-2) var(--space-2) 0 0; }
.film-detail-share .film-detail-action-status:not(:empty) { display: block; margin-block: var(--space-2); }
.film-detail-external-link { color: var(--forest); font-family: var(--mono); font-size: var(--type-caption); text-underline-offset: 3px; }
.original-film-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-1) var(--space-2); margin: var(--space-1) 0 0; color: var(--muted); font-size: var(--type-caption); line-height: 1.45; }
.original-film-facts dt { font-family: var(--mono); }
.original-film-facts dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.list-links { display: grid; gap: var(--space-1); margin: var(--space-2) 0 0; padding: 0; counter-reset: source-list; list-style: none; }
.list-links li { min-width: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; gap: var(--space-1); counter-increment: source-list; }
.list-links a { min-height: 24px; display: block; padding-block: var(--space-1); }
.list-links li::before { color: var(--rust-ink); content: '[' counter(source-list, decimal-leading-zero) ']'; font-family: var(--mono); font-size: var(--type-caption); }
.list-links li[hidden] { display: none; }
.list-links a { min-width: 0; max-width: 100%; color: var(--muted); font-size: var(--type-caption); line-height: 1.5; text-decoration-color: var(--link-rule); overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) {
  .list-links a:hover { color: var(--forest); }
}
.list-links-toggle { min-height: 44px; display: inline-flex; align-items: center; margin-top: var(--space-2); padding: 0; border: 0; background: transparent; color: var(--forest); cursor: pointer; font-size: var(--type-caption); text-align: left; text-decoration: underline; text-decoration-color: var(--link-rule); text-underline-offset: 2px; }
.tmdb-film-link { width: fit-content; display: block; margin-top: var(--space-2); color: var(--muted-copy); font-family: var(--mono); font-size: var(--type-caption); text-decoration-color: var(--link-rule); text-underline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .tmdb-film-link:hover { color: var(--forest); }
}
.status-message { display: none; padding: 36px 20px; border: 1px dashed var(--color-cfcdc2); color: var(--muted-copy); font-size: var(--type-small); text-align: center; }
.status-message.is-visible { display: block; }
.status-message-kicker { display: inline-block; margin-bottom: var(--space-2); padding: var(--space-1) var(--space-2); border: 1px solid var(--line); color: var(--rust-ink); font-family: var(--mono); font-size: var(--type-caption); }
.status-message > p { margin: 0; }
.clear-search-state { min-height: var(--control-min-height); display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); margin-left: 0; padding: var(--space-2) var(--space-3); border: 1px solid var(--filter-active); border-radius: 2px; background: var(--filter-active); color: var(--filter-active-ink); cursor: pointer; font-family: var(--mono); font-size: var(--type-caption); font-weight: 500; }
.clear-search-state > span { color: var(--orange); font-family: var(--sans); font-size: var(--type-control); font-weight: 500; line-height: 1; }
.clear-search-state[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) {
  .clear-search-state:hover { border-color: var(--orange); }
}
.load-more { display: block; margin: 36px auto 0; padding: var(--space-3) var(--space-4); border: 1px solid var(--color-c9c9bc); border-radius: 2px; background: transparent; color: var(--forest); cursor: pointer; font-family: var(--mono); font-size: var(--type-caption); transition: background .18s ease, border-color .18s ease, transform 140ms cubic-bezier(.23, 1, .32, 1); }
.load-more[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) {
  .load-more:hover { border-color: var(--forest); background: var(--surface-hover); }
}
.back-to-filters { min-width: 76px; min-height: 44px; position: fixed; z-index: 15; right: max(12px, calc((100vw - 1320px) / 2 + 8px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; justify-content: center; padding: 0 var(--space-3); border: 1px solid var(--forest); background: var(--paper); color: var(--control-ink); box-shadow: 0 4px 16px var(--color-15191520); cursor: pointer; font-family: var(--mono); font-size: var(--type-caption); writing-mode: horizontal-tb; text-orientation: mixed; white-space: nowrap; }
.back-to-filters[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) {
  .back-to-filters:hover { background: var(--surface-hover); }
}
.collection-footnote { margin: var(--space-section) 0 0; color: var(--muted-copy); font-family: var(--mono); font-size: var(--type-caption); }
.footer { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted-copy); font-size: var(--type-caption); }
.footer-wordmark { color: var(--ink); font-size: var(--type-control); }
.footer-wordmark .wordmark-mark { width: 22px; height: 22px; font-size: var(--type-body); }
.footer-repo-link, .footer > a:last-child { color: var(--forest); overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }
.footer > a:last-child { min-width: 0; max-width: 100%; }
.tmdb-credit { display: flex; align-items: center; justify-content: center; gap: var(--space-4); padding: 20px 0 var(--space-6); border-top: 1px solid var(--line); }
.tmdb-credit[hidden] { display: none; }
.tmdb-credit-wordmark { color: var(--forest); font-size: var(--type-control); font-weight: 600; text-decoration: none; }
.tmdb-credit-wordmark:focus-visible { outline: 3px solid var(--focus-terracotta); outline-offset: 3px; }
.tmdb-credit strong { display: block; margin-bottom: var(--space-1); color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); font-weight: 500; color: var(--control-ink); }
.tmdb-credit p { max-width: 390px; margin: 0; color: var(--muted-copy); font-size: var(--type-caption); line-height: 1.5; text-wrap: pretty; }
.sr-only { width: 1px; height: 1px; position: absolute; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@media (forced-colors: active) {
  .search-box, .filter-tabs, .sort-control select, .country-index-search-control input, .genre-filter-toggle, .genre-filter-menu, .genre-search-box, .genre-tag, .selected-genre-chip, .load-more, .clear-search-state, .back-to-filters, .poster-link, .featured-film, .film-detail-dialog, .film-detail-close, .film-detail-step, .film-detail-poster-trigger, .film-detail-gallery-button, .poster-viewer-dialog, .poster-viewer-close, .poster-viewer-option, .poster-viewer-zoom { border: 1px solid ButtonText; }
  .genre-option input { forced-color-adjust: auto; }
  .featured-film { background: Canvas; color: CanvasText; }
  .featured-film::before { display: none; }
  .featured-film::after { border-color: CanvasText; }
  .featured-film-label, .featured-film-year, .featured-film-director, .featured-film-facts, .featured-film-count { color: CanvasText; }
  .featured-film-title { color: LinkText; }
  .film-detail-trigger, .film-detail-external-link, .film-detail-title-toggle { color: LinkText; }
  .director-filmography-decade-jump { border: 1px solid ButtonText; }
  .director-filmography-summary-label, .director-filmography-title { color: LinkText; }
  .director-filmography-match { border-color: ButtonText; color: CanvasText; }
  .setup-card, .demo-banner { border: 1px solid ButtonText; }
  :focus-visible, .search-box:focus-within { outline-color: Highlight; }
  .genre-search-box:focus-within { border-color: Highlight; box-shadow: inset 0 0 0 1px Highlight; }
  a { text-decoration: underline; }
}

@media (prefers-reduced-motion: reduce) {
  .film-detail-dialog, .poster-viewer-dialog,
  .film-detail-dialog[open], .poster-viewer-dialog[open] { transform: none; transition: opacity 120ms cubic-bezier(.23, 1, .32, 1), display 120ms allow-discrete, overlay 120ms allow-discrete; transition-duration: 120ms; }
  .film-detail-dialog[open], .poster-viewer-dialog[open] { transform: none; }
  .film-detail-dialog::backdrop, .poster-viewer-dialog::backdrop,
  .film-detail-dialog[open]::backdrop, .poster-viewer-dialog[open]::backdrop { transition: opacity 120ms cubic-bezier(.23, 1, .32, 1); }
  .film-detail-step { transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
  .catalogue-tool-group > summary::after, .saved-view-portability > summary::after,
  .catalog-filters-toggle::after, .more-filters > summary::after,
  .genre-filter-toggle::after, .film-detail-share-indicator { transition: none; }
  button:not(:disabled):active, summary:active, a:active { transform: none; outline: 1px solid currentColor; outline-offset: 1px; }
  html[data-input-modality='pointer'] button.country-more-button:not(:disabled):active { transform: none; }
}

html[data-input-modality='pointer'] .search-box kbd { display: none; }
html[data-input-modality='pointer'] .film-detail-keyboard-hint { visibility: hidden; }

@container (max-width: 420px) {
  .film-detail-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto auto; gap: var(--space-2); margin-right: 0; }
  .film-detail-position { grid-column: 1 / -1; grid-row: 2; }
  .film-detail-step { min-width: 0; min-height: 56px; padding-inline: var(--space-1); font-size: var(--type-caption); }
  #film-detail-previous { grid-column: 1; grid-row: 1; }
  #film-detail-next { grid-column: 2; grid-row: 1; }
  .film-detail-keyboard-hint { grid-column: 1 / -1; grid-row: 3; }
}

@media (max-width: 700px) {
  .film-detail-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'copy' 'poster' 'supporting'; gap: var(--space-4); }
  .film-detail-poster-column { width: min(48vw, 190px); justify-self: center; }
  .film-detail-poster { width: 100%; justify-self: stretch; }
  .film-detail-copy { padding-top: 0; }
  .film-detail-kicker { padding-right: 52px; }
  #film-detail-title { padding-inline-end: 44px; }
}

@media (max-width: 480px) {
  .saved-view-portability-actions { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 1101px) and (max-width: 1340px) {
  .collection-heading { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
}
@media (max-width: 1100px) {
  .collection-heading { grid-template-columns: minmax(0, 1fr); }
  .collection-tools { width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .collection-tools > .search-box, .collection-tools > .filter-tabs { grid-column: span 2; }
  .collection-tools > .catalog-filters, .collection-tools > .catalogue-tools-disclosure { grid-column: 1 / -1; }
  .hero-stamp { display: none; }
}

@media (min-width: 921px) and (max-width: 1100px) {
  .catalog-filters-panel { width: 100%; max-height: none; position: static; margin-top: var(--space-2); overflow: visible; }
}

@media (min-width: 701px) and (max-width: 1024px) {
  .score-key-copy { right: 0; left: auto; }
}

@media (max-width: 920px) {
  .collection-heading { grid-template-columns: minmax(0, 1fr); }
  .collection-tools > .catalogue-tools-disclosure { grid-column: 1 / -1; }
  .film-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-filters-panel { width: 100%; min-width: 0; max-width: 100%; max-height: none; position: static; grid-template-columns: minmax(0, 1fr); margin-top: var(--space-2); overflow: visible; }
  .catalog-filters-panel .genre-filter-menu { max-height: none; overflow: visible; }
  .catalogue-tools-panel { width: 100%; max-height: none; position: static; margin-top: var(--space-2); padding: var(--space-2); }
  .catalog-filters-panel > * { min-width: 0; }
  .catalog-filter-quick-picks { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .top-billed { padding-inline: 0; }
  .top-billed-heading { padding-inline: var(--space-5); }
  .top-billed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-film { min-height: 0; grid-template-columns: minmax(230px, 30vw) minmax(0, 1fr); gap: 20px; padding: 20px; }
  .featured-film-poster { width: 100%; }
  .hero { padding-inline: 6%; }
  .edition-stale-notice { margin-left: 0; }
  .hero-stamp { width: 156px; height: 156px; }
}
@media (max-width: 700px) {
  .page-shell { width: min(100% - 36px, 560px); }
  .setup-state { padding: var(--space-4); }
  .setup-card > .wordmark { margin-bottom: var(--space-6); }
  .demo-banner { align-items: flex-start; flex-direction: column; gap: var(--space-2); }
  .topbar { height: calc(66px + env(safe-area-inset-top, 0px)); }
  .hero { min-height: 250px; margin-top: var(--space-4); padding: var(--space-4) var(--space-5); box-shadow: inset 0 9px 0 var(--color-11171130), inset 0 -9px 0 var(--color-11171130); }
  .hero::before { inset: var(--space-2); }
  .hero-stamp { display: none; }
  .hero-copy { max-width: 100%; }
  .hero h1 { font-size: clamp(36px, 9vw, 48px); line-height: 1.02; }
  .hero-description { max-width: 440px; padding-right: 0; font-size: var(--type-caption); }
  .edition-stale-notice { padding: var(--space-2) var(--space-3); font-size: var(--type-caption); }
  .hero-story-link { font-size: var(--type-caption); }
  .hero-meta { display: flex; flex-wrap: wrap; font-size: var(--type-caption); }
  .edition-colophon { max-width: 100%; gap: var(--space-1) var(--space-2); padding-right: var(--space-2); padding-left: 0; }
  .summary { min-height: 70px; gap: var(--space-2) var(--space-3); padding: var(--space-2) 0; }
  .summary-item { min-width: 0; display: flex; flex-direction: column; gap: 0px; white-space: normal; }
  .summary-item strong { font-size: var(--type-display-small); }
  .summary-item span { max-width: 100%; font-size: var(--type-caption); overflow-wrap: anywhere; white-space: normal; }
  .summary-divider { height: 25px; }
  .summary-note { display: none; }
  .watch-progress { min-width: 0; flex: 1 0 100%; }
  .collection { --catalogue-edge-gutter: max(18px, calc((100vw - 560px) / 2)); padding-block: var(--space-5) 36px; }
  h2 { font-size: clamp(28px, 8.2vw, 38px); }
  .catalogue-controls { gap: var(--space-3); }
  .collection-heading { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); margin: 0; }
  .collection-tools { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
  .collection-tools > .search-box { grid-column: 1 / -1; }
  .collection-tools > .filter-tabs { grid-column: 1 / -1; }
  .collection-tools > .catalog-filters { grid-column: 1 / -1; }
  .collection-tools > .catalogue-tools-disclosure { grid-column: 1 / -1; }
  .decade-retrospective { margin-bottom: 20px; padding-inline: var(--space-2); }
  .decade-retrospective-heading { flex-wrap: wrap; gap: var(--space-1) var(--space-2); }
  .decade-options { margin-inline: 0px; }
  .decade-option { min-height: var(--control-min-height); }
  .decade-option-label { font-size: var(--type-caption); }
  .decade-option-count { font-size: var(--type-caption); }
  .decade-options { max-width: 100%; }
  .decade-options.is-expanded { grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr)); }
  .country-index { align-items: flex-start; flex-direction: column; gap: var(--space-2); }
  .country-index.is-expanded { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2); }
  .country-index.is-expanded .country-index-heading { grid-column: 1; }
  .country-index-options { width: 100%; margin-inline: 0px; }
  .country-index-options.is-expanded { max-height: 220px; }
  .country-index-options.is-expanded { display: grid; grid-template-columns: minmax(0, 1fr); overflow-x: hidden; }
  .country-index-option { min-height: var(--control-min-height); align-items: center; font-size: var(--type-caption); }
  .country-index-options.is-expanded .country-index-option { width: 100%; min-width: 0; box-sizing: border-box; }
  .country-index-options.is-expanded .country-index-option span { max-width: none; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
  .runtime-option { min-height: var(--control-min-height); padding: var(--space-2) var(--space-3); font-size: var(--type-caption); }
  .country-index-search-control { grid-column: 1 / -1; width: 100%; }
  .country-index-empty { grid-column: 1 / -1; }
  .country-index-toggle { align-self: flex-start; }
  .catalogue-actions { gap: var(--space-2); margin-top: var(--space-4); }
  .collection-display-bar { align-items: stretch; margin: 0; }
  .collection-display-actions { align-items: flex-start; justify-content: flex-start; }
  .collection-view-tools { gap: var(--space-2); }
  .print-programme-control { width: 100%; }
  .print-programme-control > .print-programme-button { grid-column: 1 / -1; justify-self: start; }
  .print-format-select { width: 100%; min-width: 0; }
  .score-key { position: static; }
  .score-key-copy { right: 0; left: auto; }
  .collection-view-tools { align-items: stretch; }
  .matching-films-count { width: 100%; }
  .sort-control.toolbar-sort-control { width: 100%; }
  .genre-filter { width: 100%; }
  .genre-filter-menu { width: 100%; min-width: 0; max-width: 100%; }
  .genre-filter-toggle { justify-content: space-between; }
  .catalog-filters-panel { width: 100%; max-height: none; position: static; grid-template-columns: minmax(0, 1fr); margin-top: var(--space-2); padding: var(--space-2); overflow: visible; }
  .catalog-filter-quick-picks { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .catalog-filters-panel .decade-retrospective { grid-column: auto; }
  .more-filter-groups { gap: 0; }
  .catalogue-tools-panel { width: 100%; max-height: none; position: static; margin-top: var(--space-2); padding: var(--space-2); }
  .collection-context { gap: var(--space-2); margin: 0; }
  .programme-note { grid-template-columns: minmax(0, 1fr); align-items: start; gap: var(--space-1); padding: var(--space-2) var(--space-2); }
  .active-view-tools > .clear-search-state { flex: 0 0 100%; }
  .catalogue-tool-group-panel { width: 100%; }
  .saved-view-save-row, .saved-view-select-row { grid-template-columns: minmax(0, 1fr); }
  .saved-view-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .search-box { width: 100%; max-width: none; }
  .search-box input { font-size: var(--type-control); }
  .filter-button { padding-inline: var(--space-2); font-size: var(--type-caption); }
  .genre-extra-tag { display: none; }
  .genre-tags.is-expanded .genre-extra-tag,
  .film-detail-genres.is-expanded .genre-extra-tag { display: inline-flex; }
  .genre-tag-more { display: inline-flex; }
  .sort-control select { width: 100%; max-width: none; min-height: 44px; }
  .sort-control.toolbar-sort-control select { min-height: 44px; }
  .search-box { height: 44px; }
  .film-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 156px), 1fr)); gap: var(--space-5) var(--space-3); }
  .top-billed { padding: var(--space-2) 0 var(--space-4); }
  .top-billed-heading { padding-inline: var(--space-3); }
  .top-billed-grid { gap: var(--space-5) var(--space-3); }
  .top-billed-heading { align-items: baseline; justify-content: space-between; margin-bottom: var(--space-1); }
  .top-billed-heading .section-eyebrow { font-size: var(--type-caption); }
  .top-billed-heading h2 { font-size: var(--type-section); }
  .featured-film { grid-template-columns: minmax(0, min(44vw, 240px)) minmax(0, 1fr); gap: var(--space-4); padding: var(--space-4); }
  .featured-film-poster { width: 100%; }
  .featured-film-label { font-size: var(--type-caption); }
  .featured-film-title { font-size: clamp(20px, 5.8vw, 29px); }
  .featured-film-director { font-size: var(--type-caption); }
  .featured-film-facts, .featured-film-count { font-size: var(--type-caption); }
  .featured-film-overview { font-size: var(--type-caption); -webkit-line-clamp: 2; }
  .featured-film-genres { gap: var(--space-1); }
  .featured-film-genres .genre-tag { min-height: 32px; padding: var(--space-1) var(--space-2); font-size: var(--type-caption); }
  .film-info { padding: var(--space-2) var(--space-2) var(--space-2); }
  .film-title { font-size: var(--type-caption); }
  .director-credit { font-size: var(--type-caption); }
  .top-billed-grid .film-title { font-size: var(--type-body); }
  .top-billed-grid .director-credit { font-size: var(--type-caption); }
  .top-billed-grid .cinephile-meta, .top-billed-grid .film-count { font-size: var(--type-caption); }
  .top-billed-grid .film-count strong { font-size: var(--type-heading); }
  .top-billed-grid .film-card { width: min(100%, 44vw, 240px); }
  .back-to-filters { min-height: 44px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .footer { min-height: 75px; flex-wrap: wrap; padding: var(--space-4) 0; }
  .footer > span { display: none; }
}
@media (max-width: 430px) {
  .top-billed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); }
  .featured-film { grid-template-columns: minmax(0, 1fr); }
  .featured-film-poster { width: min(100%, 240px); }
  .featured-film { gap: var(--space-3); padding: var(--space-4); }
  .featured-film-facts .cinephile-country-primary { overflow: visible; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
}
@media (max-width: 480px) {
  .watched-chip { top: auto; bottom: var(--space-2); }
}
@media (max-width: 380px) {
  .hero { padding-inline: 20px; }
  .hero-description { max-width: none; }
  .collection-tools { gap: var(--space-2); }
  .filter-button { padding-inline: var(--space-1); font-size: var(--type-caption); }
  .featured-film { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); padding: var(--space-3) 0; }
  .featured-film-poster { width: 100%; }
  .featured-film-copy { min-width: 0; padding-inline: var(--space-3); }
  .featured-film::after { inset: var(--space-2); }
  .featured-film-label { margin-bottom: var(--space-2); font-size: var(--type-caption); }
}
@media (max-width: 380px) {
  /* Keep poster badges apart when ranked labels grow under other sorts. */
  .watched-chip { top: auto; bottom: var(--space-2); }
  .film-grid, .top-billed-grid { grid-template-columns: minmax(0, 1fr); }
  .top-billed-grid .film-card { width: 100%; justify-self: stretch; }
  .filter-tabs { height: auto; gap: 2px; padding: 2px; }
  .filter-button { height: auto; white-space: nowrap; line-height: 1.2; overflow-wrap: normal; }
  .collection-view-control { width: 100%; height: auto; min-height: var(--control-min-height); flex-wrap: wrap; }
  .collection-view-button { height: auto; min-height: var(--control-min-height); min-width: 0; flex: 1 1 8rem; padding: var(--space-1); white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: var(--color-151915);
    --ink: var(--color-ecece2);
    --muted: var(--night-muted);
    --line: var(--color-353c34);
    --surface: var(--color-1e241f);
    --control-border: var(--color-7a8374);
    --surface-soft: var(--color-222922);
    --control-ink: var(--color-c0c5b9);
    --filter-active: var(--green);
    --filter-active-ink: var(--night-filter-ink);
    --filter-active-count: var(--filter-active-ink);
    --summary-surface: var(--color-1d251f);
    --summary-rule: var(--color-344137);
    --summary-value: var(--night-highlight);
    --forest: var(--night-evergreen);
    --rust-ink: var(--terracotta-on-dark);
  }

  .profile-link { color: var(--color-c1c8bb); }
  .profile-link > span:last-child { color: var(--night-soft-highlight); }
  .film-detail-trigger, .film-detail-external-link, .film-detail-title-toggle { color: var(--night-link); }
  .director-filmography-summary-label, .director-filmography-title { color: var(--night-link); }
  .film-detail-director .director-filter { color: var(--night-highlight); }
  @media (hover: hover) and (pointer: fine) {
    .film-detail-director .director-filter:hover { color: var(--terracotta-on-dark); }
  }
  .sort-control select:focus-visible { outline-color: var(--night-highlight-rule); }
  @media (hover: hover) and (pointer: fine) {
    .film-detail-step:not(:disabled):hover { color: var(--night-filter-ink); }
  }
  .film-detail-genres { color: var(--night-highlight); }
  .setup-card { border-color: var(--night-rule-strong); background: var(--surface); color: var(--ink); }
  .setup-card .wordmark { color: var(--ink); }
  .setup-public-note { border-color: var(--line); color: var(--night-muted); }
  .setup-demo-link { color: var(--night-link); }
  .demo-banner { border-color: var(--color-bc805d); background: var(--color-3c2d22); color: var(--color-f0dfd1); }
  .demo-banner a { color: var(--color-ffe0bf); }
  :focus-visible { outline-color: var(--night-highlight-bright); }
  .search-box:focus-within { outline-color: var(--night-highlight-bright); }
  .summary-item span { color: var(--color-a9afa2); }
  .section-eyebrow { color: var(--color-a8b294); }
  .search-box { border-color: var(--control-border); background: var(--surface); }
  .search-icon, .search-box kbd { color: var(--color-a0a798); }
  .search-box input { color: var(--ink); }
  .search-box input::placeholder { color: var(--color-a0a798); opacity: 1; }
  .filter-tabs { outline-color: var(--night-rule-strong); background: var(--surface-soft); }
  .filter-button { color: var(--control-ink); }
  .filter-button span { color: var(--night-muted); }
  .clear-genres, .close-genres, .list-links-toggle, .country-more-button { color: var(--night-soft-highlight); }
  .list-links-toggle { text-decoration-color: var(--night-link-rule); }
  .genre-option input { accent-color: var(--green); }
  .top-billed { background: linear-gradient(135deg, var(--surface) 0%, transparent 72%); }
  .rank-chip { border-color: var(--night-copper); color: var(--terracotta-on-dark); }
  .watch-progress progress::-webkit-progress-value { background: var(--green); }
  .watch-progress progress::-moz-progress-bar { background: var(--green); }
  .film-count { color: var(--color-b5bbad); }
  .film-count strong { color: var(--night-lime); }
  .film-score-meter { background: var(--color-343c33); }
  .film-score-meter > span { background: var(--night-lime); }
  .status-message-kicker { border-color: var(--color-465044); color: var(--night-copper); }
  .director-credit, .cinephile-meta { color: var(--color-bec6b7); }
  .film-year { color: var(--color-a4aa9e); }
  .list-links a { color: var(--color-b7bdaf); text-decoration-color: var(--color-4e574b); }
  @media (hover: hover) and (pointer: fine) {
    .list-links a:hover, .tmdb-film-link:hover { color: var(--terracotta-on-dark); }
  }
  .list-links li::before { color: var(--night-copper); }
  .decade-retrospective-heading .eyebrow { color: var(--night-copper); }
  .decade-option { border-color: var(--night-rule-strong); background: var(--surface); color: var(--control-ink); }
  @media (hover: hover) and (pointer: fine) {
    .decade-option:not([aria-pressed='true']):hover { border-color: var(--night-highlight-rule); background: var(--surface-soft); color: var(--ink); }
  }
  .decade-option[aria-pressed='true'] { border-color: var(--night-highlight-rule); background: var(--deep-evergreen); color: var(--filter-cream); }
  .decade-option[aria-pressed='true'] .decade-option-count { color: var(--filter-cream); }
  .decade-option-count { color: var(--night-muted); }
  .poster-viewer-option[aria-pressed='true'] { border-color: var(--night-highlight-bright); box-shadow: inset 0 0 0 2px var(--night-highlight-bright); }
  .country-index-heading { color: var(--color-a8b294); }
  .country-index-search-control input { border-color: var(--control-border); background: var(--surface); color: var(--ink); }
  .retry-ranking-load { color: var(--night-link); }
  .country-index-empty { color: var(--night-muted); }
  .country-index-option { border-color: var(--night-rule-strong); background: var(--surface); color: var(--control-ink); }
  @media (hover: hover) and (pointer: fine) {
    .country-index-option:hover { border-color: var(--night-highlight-rule); }
  }
  .country-index-option[aria-pressed='true'] { border-color: var(--night-highlight-rule); background: var(--deep-evergreen); color: var(--filter-cream); }
  .country-index-option[aria-pressed='true'] small { color: var(--filter-cream); }
  .country-index-option small { color: var(--night-muted); }
  .country-index-toggle { border-color: var(--night-rule-strong); color: var(--night-soft-highlight); }
  .film-year-divider span { color: var(--color-a4aa9e); }
  .ledger-appearance-cell strong { color: var(--night-lime); }
  .rank-chip, .watched-chip { background: var(--color-171c18ed); }
  .watched-chip { border-color: var(--night-highlight-rule); color: var(--color-e2e8d9); }
  .poster-link { background: var(--color-30372f); }
  .poster-fallback { background: linear-gradient(145deg, var(--color-535943), var(--color-394a3b) 52%, var(--color-775344)); color: var(--color-f1f0df); }
  .poster-fallback::before { border-color: var(--color-f1f0df55); }
  .poster-fallback-title { color: var(--color-f1f0df); }
  .poster-fallback-label, .poster-fallback-details { color: var(--color-e0e3d4); }
  .status-message { border-color: var(--color-465044); color: var(--color-c1c7b9); }
  .clear-search-state { border-color: var(--night-highlight-rule); }
  @media (hover: hover) and (pointer: fine) {
    .clear-search-state:hover { border-color: var(--night-lime); background: var(--night-lime); filter: none; }
  }
  .load-more { border-color: var(--color-566251); color: var(--night-link); }
  @media (hover: hover) and (pointer: fine) {
    .load-more:hover { border-color: var(--color-9bb977); background: var(--color-222a22); }
  }
  .sort-control select { border-color: var(--control-border); background: var(--surface); color: var(--ink); }
  .facet-show-all { color: var(--night-link); }
  @media (hover: hover) and (pointer: fine) {
    .facet-show-all:hover { color: var(--night-link); }
  }
  .retry-ranking-load { color: var(--night-link); }
  @media (hover: hover) and (pointer: fine) {
    .film-detail-step:not(:disabled):hover, .film-detail-gallery-button:hover { color: var(--night-filter-ink); }
  }
  .print-programme-button { border-color: var(--color-53624e); background: var(--surface-soft); color: var(--night-link); }
  @media (hover: hover) and (pointer: fine) {
    .print-programme-button:hover { border-color: var(--night-highlight-rule); background: var(--color-29352b); color: var(--color-f0f3e9); }
  }
  .print-format-select { border-color: var(--night-rule-strong); background: var(--surface); color: var(--control-ink); }
  .back-to-filters { border-color: var(--color-a3b78e); background: var(--surface); color: var(--night-link); }
  @media (hover: hover) and (pointer: fine) {
    .back-to-filters:hover { background: var(--color-222a22); }
  }
  .collection-footnote { color: var(--color-a4aa9d); }
  .footer { color: var(--night-muted); }
  .footer-wordmark { color: var(--ink); }
  .footer-repo-link, .footer > a:last-child { color: var(--night-soft-highlight); }
  .tmdb-credit strong { color: var(--control-ink); }
  .tmdb-credit-wordmark { color: var(--night-link); }
  .tmdb-credit p { color: var(--color-b2b8ac); }
  .tmdb-film-link { color: var(--control-ink); text-decoration-color: var(--night-link-rule); }
}

.dev-data-switch[hidden] { display: none; }
.dev-data-switch {
  position: relative;
  z-index: 30;
  left: auto;
  bottom: auto;
  transform: none;
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin: 8px auto;
  padding: 6px;
  border: 1px solid #c9c9c4;
  border-radius: 10px;
  background: #e8e8e4;
  color: #30312e;
  box-shadow: 0 4px 18px #0002;
  font: 12px/1.2 system-ui, sans-serif;
}
.dev-data-options { min-width: 0; max-width: 100%; display: flex; gap: 2px; }
.dev-data-options button {
  min-height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
}
.dev-data-options button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 3px #0002; }
@media (max-width: 620px) {
  .dev-data-switch { max-width: 100%; gap: 4px; padding: 4px; }
  .dev-data-options { overflow-x: auto; }
  .dev-data-options button { padding-inline: 7px; }
}
@media (max-width: 420px) {
  .dev-data-switch { flex-direction: row; align-items: center; }
  .dev-data-switch > span { display: none; }
  .dev-data-options { min-width: 0; overflow-x: auto; }
  .dev-data-options button { flex: 0 0 auto; padding-inline: 5px; font-size: 11px; }
}
@media (max-width: 360px) {
  .dev-data-switch { width: 100%; flex-wrap: wrap; justify-content: center; }
  .dev-data-options { width: 100%; flex: 1 1 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .dev-data-options button { min-width: 0; flex: initial; padding-inline: 3px; white-space: normal; overflow-wrap: anywhere; text-align: center; }
}

@media print {
  @page { margin: 14mm 13mm; }
  body { margin: 0 !important; background: var(--color-fff) !important; color: var(--color-171a17) !important; }
  body > #setup-state, body > #site-shell { display: none !important; }
  body > #print-programme, body > #print-programme[hidden] { width: 100%; display: block !important; color: var(--color-171a17) !important; font-family: var(--serif); overflow-wrap: anywhere; }
  .print-film-details, .print-film-synopsis { min-width: 0; }
  .print-programme-header { margin-bottom: var(--space-4); padding-bottom: var(--space-3); border-bottom: 2px solid var(--color-293a30); }
  .print-programme-header h1 { margin: 0; color: var(--color-20251f); font-family: var(--serif); font-size: 27pt; font-weight: 500; letter-spacing: -.04em; line-height: 1.1; }
  .print-programme-edition { margin: var(--space-2) 0 0; color: var(--color-454c44); font-family: var(--mono); font-size: 8pt; }
  .print-programme-context { margin: var(--space-3) 0 0; color: var(--color-293a30); font-family: var(--mono); font-size: 9pt; }
  .print-programme-method { margin: var(--space-1) 0 0; color: var(--color-5c625b); font-family: var(--sans); font-size: 8pt; }
  #print-programme-films { counter-reset: print-chapter; }
  .print-year-chapter { margin: var(--space-4) 0 0; counter-increment: print-chapter; }
  .print-year-chapter > h2 { margin: 0 0 var(--space-1); padding-bottom: var(--space-1); border-bottom: 1px solid var(--color-bbc0b7); color: var(--color-8b5038); font-family: var(--serif); font-size: 13pt; font-style: normal; font-weight: 500; break-after: avoid; }
  .print-year-chapter > h2::before { margin-right: var(--space-2); color: var(--color-5c625b); content: 'REEL ' counter(print-chapter, decimal-leading-zero) ' /'; font-family: var(--mono); font-size: 7pt; font-style: normal; letter-spacing: .08em; }
  .print-year-films { margin: 0; padding: 0; list-style: none; }
  .print-film-entry { display: grid; grid-template-columns: 49px minmax(0, 1fr) minmax(118px, max-content); align-items: baseline; gap: var(--space-2); padding: var(--space-1) 0; border-bottom: 1px solid var(--color-e0e2dc); break-inside: avoid; }
  .print-film-number { color: var(--color-8b5038); font-family: var(--mono); font-size: 7pt; }
  .print-film-details h3 { display: inline; margin: 0; color: var(--color-171a17); font-family: var(--serif); font-size: 10pt; font-weight: 600; }
  .print-film-credits { display: inline; margin: 0 0 0 var(--space-1); color: var(--color-5c625b); font-family: var(--sans); font-size: 7pt; }
  .print-film-score { margin: 0; color: var(--color-39453b); font-family: var(--mono); font-size: 7pt; text-align: right; overflow-wrap: normal; }
  .print-film-score strong { color: var(--color-293a30); font-family: var(--serif); font-size: 12pt; }
  .print-programme-empty { padding: 20px 0; color: var(--color-555); font-family: var(--sans); font-size: 10pt; }
  .print-programme-footer { margin-top: var(--space-4); padding-top: var(--space-2); border-top: 1px solid var(--color-bbc0b7); color: var(--color-5c625b); font-family: var(--mono); font-size: 7pt; }
  .print-programme-reader .print-programme-header { min-height: 92pt; display: flex; flex-direction: column; justify-content: flex-end; margin-bottom: var(--space-5); padding-bottom: var(--space-4); border-bottom-width: 3px; }
  .print-programme-reader .print-programme-header h1 { font-size: 35pt; }
  .print-programme-reader .print-programme-edition { margin-top: var(--space-2); }
  .print-programme-reader .print-programme-context { margin-top: var(--space-4); }
  .print-programme-reader .print-year-chapter { margin-top: var(--space-5); }
  .print-programme-reader .print-year-chapter > h2 { margin-bottom: var(--space-2); padding-bottom: var(--space-1); font-size: 16pt; }
  .print-programme-reader .print-film-entry { align-items: start; gap: var(--space-1) var(--space-2); padding: var(--space-2) 0 var(--space-3); }
  .print-programme-reader .print-film-number { padding-top: var(--space-1); }
  .print-programme-reader .print-film-details h3 { display: block; font-size: 15pt; font-weight: 500; line-height: 1.2; }
  .print-programme-reader .print-film-credits { display: block; margin: var(--space-1) 0 0; font-size: 8pt; }
  .print-programme-reader .print-film-score { padding-top: var(--space-1); }
  .print-programme-reader .print-film-synopsis { grid-column: 2 / 4; max-width: 80ch; margin: var(--space-1) 0 0; color: var(--color-424940); font-family: var(--serif); font-size: 9pt; line-height: 1.45; }
}

/* Catalogue cues reuse the existing ledger and return-to-filters controls. */
.clear-query { flex: 0 0 auto; min-height: var(--control-min-height); padding: 0 var(--space-1); border: 0; background: transparent; color: var(--ink); font-size: var(--type-caption); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.clear-query[hidden], .empty-result-actions[hidden], .selection-end[hidden] { display: none; }
.empty-result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin-top: var(--space-4); }
.empty-result-actions .clear-search-state { margin: 0; }
.selection-end { margin: var(--space-6) 0 0; padding-top: var(--space-4); border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); text-align: center; }
.film-detail-poster-trigger { position: relative; }
.poster-enlarge-cue { position: absolute; bottom: var(--space-2); left: var(--space-2); right: var(--space-2); padding: var(--space-2); background: var(--surface); color: var(--ink); font-family: var(--mono); font-size: var(--type-caption); opacity: 0; }
.film-detail-poster-trigger:focus-visible .poster-enlarge-cue { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .film-detail-poster-trigger:hover .poster-enlarge-cue { opacity: 1; }
}
@media (hover: none) { .poster-enlarge-cue { opacity: 1; } }
@media print { .selection-end, .empty-result-actions, .clear-query { display: none; } }

@media print { .programme-share { display: none; } }
.poster-link { width: 100%; padding: 0; color: inherit; cursor: pointer; }
.featured-film-poster { padding: 0; color: inherit; cursor: pointer; }
.ledger-poster { padding: 0; color: inherit; cursor: pointer; }
.film-detail-share-url { width: min(100%, 480px); font-family: var(--mono); font-size: var(--type-caption); }
.film-detail-links { align-items: center; }
button.film-detail-external-link { min-height: 44px; display: inline-flex; align-items: center; padding: 0; border: 0; background: transparent; text-decoration: underline; cursor: pointer; }
/* Keep compact catalogue labels readable on small displays. */
.snapshot-label, .edition-colophon-heading, .edition-colophon-item > span,
.country-index-heading, .country-index-option small, .country-index-toggle,
.runtime-filter-label, .runtime-filter-note, .score-key summary,
.print-programme-control label, .print-format-select,
.film-ledger-table thead th, .ledger-catalogue-number, .ledger-film-year,
.director-filmography-summary-count,
.genre-filter-help, .genre-option small, .programme-note-kicker, .programme-note p {
  font-size: max(12px, 0.75rem);
}
@media (max-width: 640px) {
  .programme-share-panel input { font-size: var(--type-control); }
  .snapshot-label, .edition-colophon-heading, .edition-colophon-item > span,
  .country-index-heading, .country-index-option small, .country-index-toggle,
  .runtime-filter-label, .runtime-filter-note, .score-key summary,
  .print-programme-control label, .print-format-select,
  .film-ledger-table thead th, .ledger-catalogue-number, .ledger-film-year,
  .director-filmography-summary-count,
  .genre-filter-help, .genre-option small, .programme-note-kicker, .programme-note p {
    font-size: max(12px, 0.8rem);
  }
}
.film-card .director-credit { font-size: var(--type-caption); }
.film-card .cinephile-meta { font-size: var(--type-caption); }
.film-card .film-count { font-size: var(--type-caption); }
.film-card .genre-tag { font-size: var(--type-caption); }
.film-card .film-detail-trigger { font-size: var(--type-caption); }
@media (max-width: 640px) {
  .film-card .director-credit { font-size: var(--type-caption); }
  .film-card .cinephile-meta { font-size: var(--type-caption); }
  .film-card .film-count, .film-card .film-detail-trigger { font-size: var(--type-caption); }
  .film-card .genre-tag { font-size: var(--type-caption); }
  .film-card .film-year { font-size: var(--type-caption); }
}
/* Native film-detail anchors */
.poster-link, .featured-film-poster, .ledger-poster { text-decoration: none; }
@media (max-width: 640px) {
  .catalog-filters-panel > .genre-filter { width: 100%; min-width: 0; }
  .catalog-filters-panel .genre-filter-menu { min-width: 0; overflow-x: visible; }
  .selected-genres-heading, .genre-menu-actions { flex-wrap: wrap; }
  .genre-filter-toggle { min-height: var(--control-min-height); font-size: var(--type-small); }
  .genre-filter-summary { max-width: 120px; font-size: var(--type-caption); }
  .genre-filter-menu { display: flex; max-height: min(70vh, 560px); flex-direction: column; }
  .selected-genres-heading { font-size: var(--type-caption); }
  .selected-genres { max-height: none; overflow: visible; }
  .selected-genres-empty { font-size: var(--type-caption); }
  .selected-genre-chip { max-width: 100%; min-height: var(--control-min-height); padding: var(--space-2) var(--space-2); font-size: var(--type-caption); line-height: 1.25; text-align: left; overflow-wrap: anywhere; }
  .clear-genres, .close-genres { min-height: var(--control-min-height); font-size: var(--type-caption); }
  .genre-search-box { min-height: var(--control-min-height); flex: 0 0 auto; }
  .genre-search-box input { font-size: var(--type-control); }
  .genre-filter-help { font-size: var(--type-caption); }
  .genre-options { max-height: min(42vh, 360px); overscroll-behavior: auto; }
  #source-list-options { grid-template-columns: 1fr; }
  .genre-option { min-height: var(--control-min-height); grid-template-columns: 20px minmax(0, 1fr) auto; gap: var(--space-2); padding: var(--space-2) var(--space-1); font-size: var(--type-caption); line-height: 1.35; }
  .genre-option input { width: 18px; height: 18px; }
  .genre-option span { white-space: normal; overflow-wrap: anywhere; }
  .genre-option small { color: var(--control-ink); font-size: var(--type-caption); }
  .active-genre-chip { min-height: var(--control-min-height); padding: var(--space-2) var(--space-2); font-size: var(--type-caption); line-height: 1.25; }
  .active-source-list-chip { max-width: 100%; }
}
@media (max-width: 430px) {
  #genre-options { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .catalog-filters-toggle, .more-filters > summary, .genre-filter-toggle,
  .filter-button, .decade-option, .country-index-option, .country-index-toggle,
  .runtime-option, .catalogue-tool-group > summary, .saved-view-portability > summary,
  .catalogue-tool-group-panel input, .catalogue-tool-group-panel select,
  .country-index-search-control input {
    min-height: 44px;
  }
}

/* Keep textual controls readable without changing display links or icon buttons. */
.hero-story-link, .catalogue-tool-group > summary,
.programme-share > summary, .country-index-option, .country-index-toggle,
.runtime-option, .director-filmography-disclosure > summary, .director-filmography-title,
.director-filmography-decade-jump, .score-key summary,
.collection-view-button, .print-programme-button, .filter-button,
.catalog-filters-toggle, .genre-filter-toggle, .genre-tag,
.active-genre-chip, .selected-genre-chip, .clear-query,
.clear-search-state, .load-more, .back-to-filters, .list-links-toggle,
.film-detail-trigger, .film-detail-step-label, .film-detail-gallery-button,
.poster-viewer-option, .poster-viewer-zoom, .film-detail-external-link {
  font-size: max(12px, 0.75rem);
}
.filter-button span, .catalog-filter-count, .genre-option, .genre-option small,
.selected-genres-heading, .genre-filter-help, .search-box kbd {
  font-size: max(12px, 0.75rem);
}
.snapshot-label, .edition-colophon-heading, .edition-colophon-item > span,
.hero-meta, .summary-item span, .summary-note, .watch-progress-heading,
.watch-progress-scope, .collection-scope, .catalogue-tools-panel > .preset-status,
.catalogue-tools-intro, .more-filters-note, .score-count-explainer,
.catalogue-tool-group-panel label, .programme-share-help, .programme-share-status,
.programme-share-panel label, .country-index-heading, .country-index-option,
.country-index-option small, .country-index-toggle, .country-index-empty,
.runtime-filter-label, .runtime-option, .runtime-filter-note,
  .director-filmography-summary-count, .director-filmography-title,
  .director-filmography-decade-jump, .director-filmography-match,
.score-key-copy, .film-ledger-table thead th, .ledger-catalogue-number,
.ledger-film-year, .genre-filter-help, .genre-option small,
.film-card .director-credit, .film-card .cinephile-meta, .film-card .film-count,
.film-card .genre-tag, .film-card .film-detail-trigger, .film-card .film-year,
.film-detail-position, .film-detail-step-label, .film-detail-keyboard-hint,
.film-detail-gallery-button, .poster-viewer-status, .poster-viewer-option,
.poster-viewer-zoom, .film-detail-kicker, .film-detail-original-label,
.film-detail-original-language, .film-detail-score, .film-detail-copy .film-note-section h4,
.film-detail-copy .film-note-sources .list-links a, .film-detail-external-link,
.original-film-facts, .list-links a, .list-links-toggle, .tmdb-film-link,
.load-more, .back-to-filters, .collection-footnote, .selection-end,
.poster-enlarge-cue, .film-detail-share-url, .print-programme-control label,
.print-format-select, .programme-share > summary {
  font-size: max(12px, 0.75rem);
}
.hero-description, .edition-stale-notice, .summary-item span, .watch-progress-heading,
.watch-progress-scope, .collection-scope, .catalogue-tool-group-panel > p,
.programme-share-help, .programme-share-status, .decade-option-label,
.decade-option-count, .decade-scroll-hint, .country-index-option, .country-index-option small,
  .runtime-filter-note, .director-filmography, .director-filmography-summary-count,
.film-ledger-table tbody td, .film-card .director-credit,
.film-card .cinephile-meta, .film-card .film-count, .film-card .genre-tag,
.film-card .film-year, .featured-film-label, .featured-film-year,
.poster-fallback-label, .poster-fallback-details, .decade-retrospective-heading .eyebrow,
.featured-film-facts, .featured-film-count, .featured-film-overview,
.film-note-synopsis, .film-detail-score, .film-detail-step-title, .original-film-facts,
.film-detail-copy .list-links a, .tmdb-credit p, .collection-footnote,
.film-year-divider span, .rank-chip, .watched-chip, .top-billed-context {
  font-size: max(12px, 0.75rem);
}
.film-detail-year, .film-detail-original-label, .film-detail-original-language,
.film-detail-step { font-size: max(12px, 0.75rem); }

@media (pointer: coarse) {
  html:root input, html:root textarea, html:root select { font-size: 16px; }
  html:root .genre-tag, html:root .country-filter-button { min-height: 44px; }
  html:root .country-filter-button { min-width: 44px; justify-content: flex-start; }
  html:root .country-more-button { min-width: 44px; min-height: 44px; justify-content: center; }
  html:root .catalog-filters-panel .genre-filter-toggle { min-height: 44px; }
  html:root .genre-tag-more { min-width: 44px; min-height: 44px; }
  html:root .close-genres { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  html:root .cinephile-country-group.has-more:not(.is-expanded) { padding-right: 52px; }
}

.collection { scroll-margin-top: 20px; }
#collection-title { scroll-margin-top: 20px; }

@media (max-width: 700px) {
  #collection.has-search-query .collection-tools { display: flex; flex-wrap: wrap; align-items: stretch; }
  #collection.has-search-query .collection-tools > .search-box,
  #collection.has-search-query .collection-tools > .filter-tabs { flex: 0 0 100%; }
  #collection.has-search-query .search-result-preview { flex: 0 0 100%; display: flex; align-items: center; gap: var(--space-2); min-width: 0; padding: var(--space-1) var(--space-2); border-left: 3px solid var(--rust-ink); background: var(--surface-soft); }
  #collection.has-search-query .search-result-preview[hidden] { display: none; }
  .search-result-preview-label, .search-result-preview-count { flex: 0 0 auto; color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); }
  #collection.has-search-query .search-result-preview-film { min-width: 0; min-height: 36px; flex: 1 1 auto; overflow: hidden; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-family: var(--serif); font-size: var(--type-body); text-align: left; text-overflow: ellipsis; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
  #collection.has-search-query .collection-tools > .catalog-filters,
  #collection.has-search-query .collection-tools > .catalogue-tools-disclosure { flex: 1 1 calc(50% - var(--space-2)); }
  #collection.has-search-query .collection-tools > .catalog-filters[open],
  #collection.has-search-query .collection-tools > .catalogue-tools-disclosure[open] { flex-basis: 100%; }
  #collection.has-search-query .filter-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #collection.has-search-query .filter-button { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  #collection.has-search-query .filter-button:first-child { grid-column: auto; }
  #collection.has-search-query .filter-button { padding-inline: var(--space-1); }
  #collection.has-search-query .collection-context .collection-scope,
  #collection.has-search-query .programme-note { display: none; }
  #collection.has-search-query .score-count-explainer { display: none; }
}

@media (max-width: 360px) {
  #collection.has-search-query .search-result-preview { flex-wrap: wrap; }
  #collection.has-search-query .search-result-preview-film { flex: 1 0 100%; display: -webkit-box; overflow: hidden; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
}

@media (max-width: 430px) {
  .film-ledger-table thead th:nth-child(2),
  .film-ledger-table tbody td:nth-child(2) { position: static; inset-inline-start: auto; z-index: auto; }
}

@media (max-width: 360px) {
  .poster-viewer-dialog.has-gallery .poster-viewer-stage.is-fit { max-height: min(62dvh, max(150px, calc(100dvh - 560px))); }
  .ledger-film-count { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: end; }
  .ledger-film-count strong { white-space: nowrap; }
  .ledger-film-count > span { max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ledger-film-count .film-score-meter { flex-basis: 80px; width: 80px; margin-inline: 0; }
}

@supports (height: 100dvh) {
  .film-detail-dialog { max-height: min(90dvh, 780px); }
  .poster-viewer-dialog { max-height: min(96dvh, 1160px); }
  .poster-viewer-stage, .poster-viewer-image { max-height: 82dvh; }
  .poster-viewer-stage.is-fit { width: min(100%, 500px, calc(82dvh * 2 / 3)); }
}

:root[data-large-text='true'] .collection-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
:root[data-large-text='true'] .collection-tools > .search-box,
:root[data-large-text='true'] .collection-tools > .filter-tabs { grid-column: 1 / -1; }
:root[data-large-text='true'] .collection-tools > .catalog-filters,
:root[data-large-text='true'] .collection-tools > .catalogue-tools-disclosure { grid-column: 1 / -1; min-width: 0; }
:root[data-large-text='true'] .filter-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
:root[data-large-text='true'] .filter-button { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
html[dir='rtl'] .summary { direction: ltr; }
html[dir='rtl'] .genre-tag-more,
html[dir='rtl'] .country-more-button,
html[dir='rtl'] .director-more-button { direction: ltr; unicode-bidi: isolate; }
html[dir='rtl'] .ledger-director-cell .director-filter { unicode-bidi: isolate; }

@media (max-width: 700px) {
  :root[data-large-text='true'] #collection.has-search-query .collection-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  :root[data-large-text='true'] #collection.has-search-query .collection-tools > .search-box,
  :root[data-large-text='true'] #collection.has-search-query .collection-tools > .filter-tabs,
  :root[data-large-text='true'] #collection.has-search-query .collection-tools > .search-result-preview { grid-column: 1 / -1; }
  :root[data-large-text='true'] #collection.has-search-query .collection-tools > .catalog-filters,
  :root[data-large-text='true'] #collection.has-search-query .collection-tools > .catalogue-tools-disclosure { grid-column: 1 / -1; min-width: 0; }
:root[data-large-text='true'] #collection.has-search-query .catalogue-tools-disclosure > summary > span { min-width: 0; overflow-wrap: normal; }
}

@media (max-width: 700px) {
  .catalogue-tools-disclosure > summary > span { min-width: 0; overflow-wrap: normal; }
}

@media (max-width: 360px) {
  .collection-tools .catalog-filters-toggle { font-size: max(12px, 0.875em); min-height: var(--control-min-height); }
  .filter-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-button { min-width: 0; white-space: normal; overflow-wrap: normal; }
  .filter-button:not(:last-child) { width: 100%; }
  .filter-button:last-child { grid-column: 1 / -1; justify-self: center; width: calc((100% - var(--space-2)) / 2); }
  :root[data-large-text='true'] .filter-tabs,
  :root[data-large-text='true'] #collection.has-search-query .filter-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #collection.has-search-query .filter-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root[data-large-text='true'] .filter-button:not(:last-child),
  :root[data-large-text='true'] #collection.has-search-query .filter-button:not(:last-child) { width: 100%; }
  :root[data-large-text='true'] .filter-button:last-child,
  :root[data-large-text='true'] #collection.has-search-query .filter-button:last-child { grid-column: 1 / -1; justify-self: center; width: calc((100% - var(--space-2)) / 2); }
  #catalogue-tools > .catalog-filters-toggle .catalogue-tools-full-label { display: none; }
  #catalogue-tools > .catalog-filters-toggle .catalogue-tools-short-label { display: inline; }
  #catalog-filters > .catalog-filters-toggle .catalogue-tools-full-label { display: none; }
  #catalog-filters > .catalog-filters-toggle .catalogue-tools-short-label { display: inline; }
}

@media (prefers-color-scheme: dark) {
  .setup-demo-link, .wordmark-mark, .profile-link > span:last-child,
  .summary-note span, .country-index-toggle, .print-programme-button,
  .film-count strong, .film-detail-trigger, .film-detail-director .director-filter,
  .film-detail-external-link, .list-links-toggle, .load-more, .back-to-filters,
  .footer-repo-link, .footer > a:last-child {
    color: var(--night-highlight);
  }
  @media (hover: hover) and (pointer: fine) {
    .tmdb-film-link:hover { color: var(--night-highlight); }
  }
}
