/* i42 — a Construct Surface (staging.construct.codes/i42), styled with Structured Liquidity:
   neobrutalist structure (square corners, 2px edges, hard offset shadows, grid-paper field) on the
   locked i42 palette. SL tokens are mirrored below (packages/structured-liquidity, 10-tokens-base.css);
   this Surface is plain static HTML, so it carries the token values instead of importing the bundle.
   v2: one canvas. The card and the film panel share the page; the panel opens out of its grid box,
   to the right of the card on wide screens and below it on phones. */
:root {
  /* ---- Structured Liquidity tokens (dark mode) ---- */
  --radius: 0px;          /* SL: no rounded edges anywhere */
  --border-w: 2px;
  --hard-x: 5px;
  --hard-y: 5px;
  --hard-shadow: #000000;
  --edge: 0 0 0;
  --grid-line: rgba(246, 242, 248, 0.05);
  --rule: rgba(163, 136, 238, .2);
  /* ---- locked i42 palette ---- */
  --bg: #0E0A18;
  --white: #F4F2FA;
  --lav: #A388EE;
  --dim: #8276A0;
  --card: #241642;
  --deep: #674EA7;
  --gray: #605E6A;
  --film: #9FC3E9;
  --title: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Space Mono", "SFMono-Regular", ui-monospace, Menlo, monospace; /* SL's mono */
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--lav);
  --ease: cubic-bezier(.22,.8,.24,1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); color: var(--white); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  font-family: var(--title); color: var(--white);
  /* SL field: flat surface plus a measured technical grid (the canvas) */
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
main { outline: none; }
a { color: inherit; }
b, i { font-style: normal; font-weight: inherit; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: calc(var(--sat) + 8px); z-index: 60; transform: translateY(-200%); background: var(--white); color: var(--bg); padding: 10px 14px; font: 700 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; text-decoration: none; }
.skip:focus { transform: none; outline: none; box-shadow: var(--focus); }
:focus-visible { outline: none; box-shadow: var(--focus); }
.mono-label { font: 700 11px/1.2 var(--mono); letter-spacing: .18em; text-transform: uppercase; margin: 0; }
.noscript { padding: 24px; font-family: var(--mono); }

/* ---------- CANVAS ---------- */
.canvas { min-height: 100vh; min-height: 100dvh; }
.stage {
  display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-items: start;
  padding: 0 calc(var(--sar) + 20px) 0 calc(var(--sal) + 20px);
}
.card-col {
  width: 100%; min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--sat) + 20px) 0 calc(var(--sab) + 20px);
}
/* wide screens: the card slides left and stays put; the panel sits to its right on the same canvas */
@media (min-width: 1024px) {
  .canvas[data-open="true"] .stage {
    grid-template-columns: minmax(300px, 440px) minmax(0, 860px);
    justify-content: center; column-gap: clamp(32px, 4vw, 64px);
  }
  .canvas[data-open="true"] .card-col { position: sticky; top: 0; height: 100vh; height: 100dvh; min-height: 0; }
}

/* ---------- the card ---------- */
.scene {
  /* CR80, vertical: 54 × 85.6 */
  --h-avail: calc(100dvh - var(--sat) - var(--sab) - 40px - var(--hard-y));
  position: relative;
  width: min(100%, 440px, calc(var(--h-avail) * 54 / 85.6));
  aspect-ratio: 54 / 85.6;
  perspective: 1600px;
  container-type: inline-size;
}
@supports not (height: 100dvh) { .scene { --h-avail: calc(100vh - 40px - var(--hard-y)); } }
/* v2.18: the card keeps one size open or closed (the open column is 440 wide), so opening only pans it */
.card {
  position: relative; z-index: 1; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .9s var(--ease);
  cursor: pointer;
}
.card[data-side="back"] { transform: rotateY(180deg); }
.face {
  position: absolute; inset: 0;
  overflow: hidden;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  padding: 8cqw 8cqw 7.5cqw;
  display: flex; flex-direction: column;
}
.front {
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(163,136,238,.16), transparent 60%),
    var(--card);
  box-shadow: inset 0 0 0 var(--border-w) var(--deep);
}
.back {
  transform: rotateY(180deg);
  background: var(--bg);
  box-shadow: inset 0 0 0 var(--border-w) var(--deep);
  cursor: pointer;
}
.back:focus-visible { box-shadow: inset 0 0 0 3px var(--lav); }
/* SL hard offset shadow under the card; it sits on .scene so it never flips with the card */
.scene::before {
  content: ""; position: absolute; inset: 0; transform: translate(var(--hard-x), var(--hard-y));
  background: var(--hard-shadow); pointer-events: none;
}
.mark { display: block; width: 30cqw; height: auto; overflow: visible; }
.mark-sm { width: 14cqw; }

.club-title {
  margin: auto 0 0; padding-top: 6cqw;
  font: 600 11.2cqw/0.98 var(--title); letter-spacing: -0.035em;
  color: var(--white);
}
.club-title .ln { display: block; white-space: nowrap; }
.club-title b { color: var(--lav); }
/* the & is the title's own glyph: same face, weight and size, only gray */
.club-title .amp { color: var(--gray); }
.pill {
  align-self: flex-start; margin: 6cqw 0 0;
  border: 1.5px solid var(--lav); color: var(--lav);
  padding: 1.6cqw 3.4cqw 1.5cqw;
  font: 700 2.9cqw/1 var(--mono); letter-spacing: .2em; text-transform: uppercase;
}
.fields { display: flex; gap: 10cqw; margin: 9cqw 0 0.5cqw; }
.fields div { margin: 0; }
.fields dt { font: 700 2.7cqw/1.2 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--lav); }
.fields dd { margin: 1.6cqw 0 0; font: 600 6.4cqw/1 var(--title); letter-spacing: -0.02em; }
/* v2.24.0: i42.film moves to the bottom right, on the fields' baseline (the front's top is the full lockup) */
.domain { position: absolute; right: 8cqw; bottom: 8cqw; margin: 0; text-align: right; font: 400 3cqw/1 var(--mono); letter-spacing: .08em; color: var(--white); }

.flip-hit {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: transparent; border: 0; padding: 0; margin: 0; cursor: pointer; color: inherit;
}
.flip-hit:focus-visible { box-shadow: inset 0 0 0 3px var(--lav); }

/* back */
.back { padding: 7cqw 7cqw 5.5cqw; }
.back-head { display: flex; align-items: center; justify-content: space-between; gap: 4cqw; }
.back-head .mono-label { color: var(--lav); font-size: 2.8cqw; }
.back-head .count { color: var(--dim); margin-left: .6em; }
.grid {
  list-style: none; margin: 6cqw 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(7, 1fr);
  gap: 2.4cqw; flex: 1 1 auto; min-height: 0; cursor: default;
}
.grid li { position: relative; min-width: 0; min-height: 0; }
.box {
  position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: flex-start;
  padding: 1.4cqw 1.7cqw;
  border: 1.5px solid var(--deep);
  font: 400 2.8cqw/1 var(--mono); letter-spacing: .04em; color: var(--dim);
  text-decoration: none;
}
a.box { border-color: rgb(var(--edge)); background: var(--box, var(--film)); color: var(--bg); font-weight: 700; box-shadow: 2px 2px 0 0 var(--hard-shadow); transition: transform .12s cubic-bezier(.2,.8,.2,1), box-shadow .12s, filter .2s ease; cursor: pointer; }
a.box::before { content: ""; position: absolute; inset: -4px; } /* 44px+ tap target on phones; invisible */
a.box:hover { filter: brightness(1.06); }
a.box:active { transform: translate(2px, 2px); box-shadow: 0 0 0 0 var(--hard-shadow); }
a.box:focus-visible { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--white); }
a.box[aria-expanded="true"] { outline: 2px solid var(--white); outline-offset: 2px; }
.back-foot { margin-top: 4.5cqw; text-align: center; cursor: default; }
.back-foot p { margin: 0; font: 400 2.2cqw/1.75 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.back-foot p:first-child { color: var(--white); font-size: 2.5cqw; letter-spacing: .16em; }
.back-foot a { color: var(--white); text-decoration: underline; text-decoration-color: var(--deep); text-decoration-thickness: 1.5px; text-underline-offset: .25em; cursor: pointer; }
.back-foot p:first-child a { text-decoration-color: var(--lav); }
.back-foot a:hover { text-decoration-color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  .card { transform: none !important; transition: none; }
  .face { transform: none; }
  .back { opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
  .card[data-side="back"] .back { opacity: 1; visibility: visible; transition: opacity .35s ease; }
  .front { transition: opacity .35s ease; }
  .card[data-side="back"] .front { opacity: 0; }
  a.box, a.box:active { transition: none; transform: none; }
}

/* ---------- FILM PANEL ---------- */
.film-panel {
  --accent: var(--film);
  width: min(100%, 640px); margin: 0 auto;
  padding: 0 0 calc(var(--sab) + 56px);
  outline: none; container-type: inline-size;
}
@media (min-width: 1024px) {
  .canvas[data-open="true"] .film-panel { width: 100%; max-width: 860px; padding-top: calc(var(--sat) + 28px); }
}
.film-panel > * { transition: opacity .28s ease; }

.panel-bar {
  position: sticky; top: 0; z-index: 4;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(var(--sat) + 10px) 0 10px;
  background: var(--bg); border-bottom: 1px solid var(--rule);
}
.panel-bar .where { display: inline-flex; align-items: center; gap: 12px; min-width: 0; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; }
.panel-bar .mark { width: 46px; flex: none; }
.panel-bar .lockup { display: block; width: 54px; height: auto; flex: none; overflow: visible; }
/* v2.23: the "i42 FILM" lockup: the locked mark, then FILM on a solid deep-purple filmstrip block (#674EA7: white
   text on it is 6.6:1, against 2.6:1 on LAV), square, spanning the mark from its left stem to the end of its
   extrusion (0.428 -> 14.023 of 14.323). .lkp-sp adds 2px square sprocket holes on whole pixels, top and bottom. */
.lkp { display: flex; flex-direction: column; }
.lkp .lkp-m { display: block; width: 100%; height: auto; overflow: visible; }
.lkp-f { position: relative; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; margin: 3px 0 0 2.92%; width: 95.03%; height: 13px; padding: 1px 4px 0; background: #674EA7; border-radius: 0; color: #FFFFFF; font: 700 10px/1 var(--mono); letter-spacing: 0; text-transform: uppercase; }
.lkp-f span { display: block; }
.panel-bar .lkp-f { margin-left: 2px; width: 51px; } /* whole pixels at 54px, so the holes stay crisp at 1x */
.gt-lk .lkp-f { margin-left: 2px; width: 61px; }
.lkp-sp .lkp-f { height: 19px; padding: 1px 4px 0; }
.lkp-sp .lkp-f::before, .lkp-sp .lkp-f::after { content: ""; position: absolute; left: 2px; right: 2px; height: 2px; background: repeating-linear-gradient(90deg, var(--bg) 0 2px, transparent 2px 4px); }
.lkp-sp .lkp-f::before { top: 2px; }
.lkp-sp .lkp-f::after { bottom: 2px; }
/* v2.24.0: the card front carries the full lockup, scaled to the card (cqw) instead of the top bar's whole pixels */
.card-lk { align-self: flex-start; width: 30cqw; }
.card-lk .lkp-m { width: 100%; }
.card-lk .lkp-f { margin: 1.7cqw 0 0 2.92%; width: 95.03%; height: 10.4cqw; padding: .3cqw 2.4cqw 0; font-size: 5.4cqw; }
.card-lk .lkp-f::before, .card-lk .lkp-f::after { left: 1.1cqw; right: 1.1cqw; height: 1.1cqw; background: repeating-linear-gradient(90deg, var(--card) 0 1.1cqw, transparent 1.1cqw 2.2cqw); }
.card-lk .lkp-f::before { top: 1.1cqw; }
.card-lk .lkp-f::after { bottom: 1.1cqw; }
.btn {
  flex: none; min-width: 44px; min-height: 44px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--card); color: var(--white);
  border: var(--border-w) solid rgb(var(--edge));
  box-shadow: 4px 4px 0 0 var(--hard-shadow);
  font: 700 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; cursor: pointer;
  transition: transform .12s cubic-bezier(.2,.8,.2,1), box-shadow .12s;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 0 var(--hard-shadow); }
.btn:focus-visible { box-shadow: 4px 4px 0 0 var(--hard-shadow), var(--focus); }

/* hero: the poster frames the panel; title + chips sit on it, bottom left */
.hero {
  position: relative; margin: 18px 0 0; overflow: hidden;
  border: var(--border-w) solid var(--accent); background: var(--card);
  box-shadow: 6px 6px 0 0 var(--hard-shadow);
}
.hero img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
/* narrow panels: a dark band under the poster carries the chips, so the title block clears the poster's own type */
@container (max-width: 599px) {
  .hero { background: var(--bg); }
  .hero .hero-meta { position: static; padding: 16px 16px 18px; background: var(--bg); border-top: var(--border-w) solid var(--accent); }
  .chips li { font-size: 11px; padding: 5px 7px; }
}
.hero-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(80px, 22cqw, 200px) clamp(18px, 4cqw, 32px) clamp(18px, 4cqw, 30px);
  background: linear-gradient(to top, rgba(14,10,24,.97) 0%, rgba(14,10,24,.9) 42%, rgba(14,10,24,.55) 72%, rgba(14,10,24,0) 100%);
  text-align: left;
}
.kicker { display: inline-flex; align-items: center; gap: .6em; margin: 0; font: 700 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--white); }
.kicker::before { content: ""; width: 9px; height: 9px; background: var(--lav); } /* SL eyebrow square */
.film-title { margin: 10px 0 0; font: 600 clamp(34px, 8.4cqw, 64px)/0.98 var(--title); letter-spacing: -0.035em; color: var(--accent); outline: none; } /* film colour: the title only */
.chips { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  border: 1.5px solid rgba(163,136,238,.6); padding: 6px 9px; background: rgba(14,10,24,.72);
  font: 400 12px/1.3 var(--mono); letter-spacing: .02em; color: var(--white);
}
.chips .k { color: var(--lav); }
/* v2.19.1: metadata grouped like the rating rubric: a plain facts line, then STORY / CHARACTER / CRAFT rows.
   Labels as the ratings headers (Space Mono uppercase, small, lavender, Lucide book-open / drama / clapperboard). */
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 14px 0 0; font: 400 12px/1.35 var(--mono); letter-spacing: .02em; color: var(--white); }
.facts + .facts { margin-top: 4px; }
.facts > i { font-style: normal; color: var(--dim); }
.facts .k { color: var(--lav); }
.cgroups { display: grid; gap: 12px; margin: 16px 0 0; }
.cg { display: grid; gap: 7px; min-width: 0; }
.cg-k { display: inline-flex; align-items: center; gap: 7px; margin: 0; font: 700 11px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--lav); }
.cg-k .rt-pi { width: 14px; height: 14px; }
.cg .chips { margin: 0; min-width: 0; }
.cg .chips li { max-width: 100%; overflow-wrap: anywhere; }
@container (min-width: 600px) {
  .cg { grid-template-columns: 128px minmax(0, 1fr); align-items: start; gap: 12px; }
  .cg-k { padding-top: 7px; }
}
@container (max-width: 599px) { .facts { font-size: 11px; } }

.panel {
  margin-top: 22px; background: var(--card); padding: 22px 20px 22px;
  border: var(--border-w) solid rgb(var(--edge));
  box-shadow: var(--hard-x) var(--hard-y) 0 0 var(--hard-shadow);
}
.hero + .panel { margin-top: 30px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h3 { display: inline-flex; align-items: center; gap: .6em; font: 700 13px/1.2 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--lav); margin: 0; }
/* v2.15: each header leads with its own Lucide icon (app.js HEAD_ICONS), in place of the small square */
.panel-head { flex-wrap: wrap; row-gap: 8px; } /* a long header keeps its words on one line; the subtitle drops below */
.panel-head h3 > span { white-space: nowrap; }
.panel-head h3 .h-ico { flex: none; width: 1.05em; height: 1.05em; display: block; color: var(--lav); stroke-width: 2.2; }
.panel-head .sub { font: 400 11px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--white); opacity: .9; text-align: right; }
.panel p { margin: 0; font: 400 17px/1.5 var(--title); }
.qa { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.qa li { counter-increment: q; display: grid; grid-template-columns: 34px 1fr; gap: 6px; padding: 14px 0; border-top: 1px solid var(--rule); font: 500 17px/1.45 var(--title); }
.qa li:first-child { border-top: 0; padding-top: 2px; }
.qa li::before { content: counter(q, decimal-leading-zero); font: 700 12px/1.9 var(--mono); color: var(--white); }
.qa-source { margin-top: 10px !important; font: 400 11px/1.5 var(--mono) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.links { list-style: none; margin: 0; padding: 0; }
.links li + li { border-top: 1px solid var(--rule); }
.links a {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  min-height: 60px; padding: 12px 2px; text-decoration: none;
}
.links .src { display: block; font: 700 11px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--lav); }
.links .ttl { display: block; margin-top: 4px; font: 500 16px/1.35 var(--title); }
/* v2.16 WATCH: a table, one row per service; RENT and BUY columns of "price · format"; the whole row is the link */
/* v2.17 WATCH: one column per service (logo header = the link), RENT and BUY rows; price over format, dim dash when
   not offered; a subscription service is one cell over both rows. Phones get tables of three services each. */
.wt { width: 100%; border-collapse: collapse; table-layout: fixed; }
.wt .wt-corner { width: 64px; padding: 0; border-left: 0; }
.wt thead th { padding: 0 2px 10px; vertical-align: bottom; text-align: center; font-weight: 400; }
.wt-a { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; min-height: 40px; padding: 6px 2px; color: var(--white); text-decoration: none; }
.wt-a:hover .wt-logo { background: var(--lav); }
.wt-a:focus-visible { outline: 2px solid var(--white); outline-offset: 0; }
.wt-logo { display: block; width: 100%; max-width: 88px; height: 22px; background: var(--white); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: center; mask-position: center; transition: background .15s ease; }
.wt-name { font: 600 13px/1.2 var(--title); text-align: center; }
.wt-sub { font: 400 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.wt tbody tr { border-top: 1px solid var(--rule); }
.wt tbody th[scope="row"] { padding: 12px 8px 12px 0; text-align: left; vertical-align: middle; font: 700 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--lav); }
.wt td { padding: 12px 2px; text-align: center; vertical-align: middle; border-left: 1px solid var(--rule); white-space: nowrap; }
.wt td b { display: block; font: 700 15px/1.1 var(--mono); color: var(--white); }
.wt-f { display: block; margin-top: 5px; font: 400 9px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.wt-no { font: 400 15px/1 var(--mono); color: var(--dim); }
.wt-inc b { color: var(--lav) !important; font-size: 13px !important; letter-spacing: .04em; text-transform: uppercase; }
.wt-inc .wt-f { white-space: normal; line-height: 1.3; }
.wt-narrow { display: none; }
@media (max-width: 520px) {
  .wt-wide { display: none; }
  .wt-narrow { display: block; }
  .wt-part + .wt-part { margin-top: 20px; }
  .wt .wt-corner { width: 52px; }
  .wt-logo { max-width: 76px; height: 20px; }
  .wt td b { font-size: 14px; }
  .wt tbody th[scope="row"] { font-size: 10px; letter-spacing: .14em; }
}
.qa-source a { color: var(--lav); }
.links svg { width: 18px; height: 18px; color: var(--lav); }
.links a:hover .ttl { text-decoration: underline; text-underline-offset: 3px; }
.subhead { margin: 22px 0 10px; font: 700 11px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--white); }
.spec { font: 400 12px/1.5 var(--mono) !important; letter-spacing: .06em; color: var(--lav); text-transform: uppercase; }

/* ---------- THE MAKING OF ---------- */
.tape-sheet { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 16px 0 0; padding: 16px; background: #E9E6EF; border: var(--border-w) solid #000; }
@container (min-width: 600px) { .tape-sheet { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; } }
.tape-sheet figure { margin: 0; display: grid; gap: 8px; }
.tape-sheet svg { display: block; width: 100%; height: auto; }
.tape-sheet figcaption { font: 700 10px/1.2 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: #2A2440; }
.tape-sheet figcaption span { color: #6B6680; font-weight: 400; margin-left: .5em; }

.assembly { margin-top: 4px; border: 1.5px solid var(--rule); background: var(--bg); }
.assembly > svg { display: block; width: 100%; height: auto; }
.assembly-controls .btn svg { width: 16px; height: 16px; }
.assembly-controls { display: flex; align-items: center; gap: 14px; padding: 12px; border-top: 1px solid var(--rule); }
.assembly-controls .btn { min-width: 96px; }
.assembly-controls output { flex: none; min-width: 3.2em; text-align: right; font: 700 12px/1 var(--mono); letter-spacing: .1em; color: var(--accent); }
.scrub { flex: 1 1 auto; min-width: 0; -webkit-appearance: none; appearance: none; height: 44px; background: transparent; cursor: pointer; }
.scrub::-webkit-slider-runnable-track { height: 6px; background: var(--deep); border: 1.5px solid #000; }
.scrub::-moz-range-track { height: 6px; background: var(--deep); border: 1.5px solid #000; }
.scrub::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9.5px; background: var(--accent); border: 2px solid #000; box-shadow: 2px 2px 0 0 #000; }
.scrub::-moz-range-thumb { width: 18px; height: 18px; background: var(--accent); border: 2px solid #000; box-shadow: 2px 2px 0 0 #000; }
.scrub:focus-visible { box-shadow: var(--focus); }

/* building instructions: one LEGO-manual step per screen */
.lego-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; margin: 22px 0 10px; }
.lego-head .subhead { margin: 0; }
.lego-pdf { text-decoration: none; }
.lego { border: 1.5px solid var(--rule); background: var(--bg); }
.lego-view { display: block; cursor: pointer; touch-action: pan-y; -webkit-user-select: none; user-select: none; outline: none; background: #E9E6EF; border-bottom: 2px solid #000; }
.lego-view:focus-visible { box-shadow: inset 0 0 0 3px var(--lav); }
.lego-page svg { display: block; width: 100%; height: auto; }
.lego-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; }
.lego-controls .btn { min-width: 96px; }
.lego-controls .btn:disabled { opacity: .35; cursor: default; box-shadow: none; transform: none; }
.lego-count { margin: 0; font: 700 12px/1 var(--mono) !important; letter-spacing: .1em; color: var(--accent); text-align: center; white-space: nowrap; }
.lego-count .k { color: var(--white); margin-right: .5em; text-transform: uppercase; letter-spacing: .16em; }
.lego-dots { list-style: none; margin: 0; padding: 0 12px 12px; display: grid; grid-template-columns: repeat(var(--n, 16), minmax(0, 1fr)); gap: 3px; }
.lego-dots li { height: 6px; background: var(--deep); opacity: .4; }
.lego-dots li.done { opacity: .85; }
.lego-dots li.on { background: var(--accent); opacity: 1; }
/* phones: the step counter drops its word so Prev, the count and Next fit one row */
@container (max-width: 480px) {
  .lego-controls { gap: 8px; padding: 10px; }
  .lego-controls .btn { min-width: 0; padding: 0 12px; letter-spacing: .12em; }
  .lego-count .k { display: none; }
}

.missing { text-align: center; padding: 14vh 0 0; }
.missing p { font: 400 13px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--white); }
@media (min-width: 700px) { .chips li { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .film-panel > * { transition: none; } .btn, .btn:active { transition: none; transform: none; } }

/* SL guard: square corners everywhere, whatever a later rule says */
*, *::before, *::after { border-radius: 0 !important; }

/* Special Features: video grid (YouTube thumbnails, hotlinked) */
.video-grid { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 720px) { .video-grid { grid-template-columns: 1fr; } }
.video-grid a { display: flex; flex-direction: column; gap: 6px; color: var(--white); text-decoration: none; }
.vg-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border: 1px solid rgba(163,136,238,.18); }
.vg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.video-grid a:hover .vg-thumb img, .video-grid a:focus-visible .vg-thumb img { transform: scale(1.04); }
.vg-play { position: absolute; left: 10px; bottom: 10px; width: 34px; height: 34px; background: var(--box, var(--lav)); clip-path: polygon(30% 22%, 30% 78%, 78% 50%); background: var(--white); }
.vg-len { position: absolute; right: 8px; bottom: 8px; font: 700 11px/1 var(--mono); padding: 4px 6px; background: rgba(14,10,24,.85); color: var(--white); }
.video-grid .src { font: 700 11px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lav); }
.video-grid .ttl { font-size: 15px; line-height: 1.3; }

/* ---------- MEMBERS' RATINGS (film panel; staging) ---------- */
.rt[hidden] { display: none; }
.rt .rt-lede { font: 400 17px/1.5 var(--title); }
.rt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; }
.rt-cta { background: var(--lav); color: var(--bg); }
.rt-cta[disabled] { background: var(--card); color: var(--dim); cursor: default; }
.rt-note { margin: 10px 0 0 !important; font: 400 11px/1.5 var(--mono) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.rt-actions .rt-note { margin: 0 !important; }
.rt-note a, .rt-link { color: var(--lav); }
.rt-link { background: none; border: 0; padding: 6px 0; min-height: 32px; font: 700 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.rt-link:focus-visible, .rt-scale button:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.rt-form { display: grid; gap: 14px; }
.rt-part { border: 0; margin: 0; padding: 14px 0 0; min-width: 0; }
.rt-k { font: 700 12px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--lav); }
.rt-help { font: 500 14px/1.3 var(--title); color: var(--dim); min-width: 0; }
/* v2.12: one layout on phone and desktop. Header on one line with the three components as a subtitle;
   each component is icon + name + dim description, then four equal buttons, icon above word, tinted
   charcoal (Hate) to purple (Love); the pick is the lavender fill. Averages are numbers only. */
.rt { --t1: #1C1A22; --t2: #2A2140; --t3: #3D2C6B; --t4: #5A3FA0; }
/* desktop mirrors the phone: the card's content keeps the phone's column width, left-aligned in the panel */
.rt > * { max-width: 440px; }
.rt-head { flex-direction: column; align-items: flex-start; gap: 8px; }
.rt-head h3 { white-space: nowrap; }
.rt-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 !important; font: 400 11px/1.2 var(--mono) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--white); }
.rt-sub span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.rt-sub i { font-style: normal; color: var(--dim); }
.rt-sub .rt-pi { width: 14px; height: 14px; color: var(--lav); }
.rt-pi { flex: none; width: 18px; height: 18px; display: block; color: var(--lav); }
.rt-pl { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.rt-part legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; width: 100%; padding: 0; margin-bottom: 10px; }
.rt-scale { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.rt-scale button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  min-width: 0; height: 64px; padding: 0 4px; border: 1.5px solid rgba(163,136,238,.22); border-radius: 0;
  background: var(--t1); color: var(--white); font: 700 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; cursor: pointer;
}
.rt-scale button[data-v="2"], .rt-chip[data-v="2"] { background: var(--t2); }
.rt-scale button[data-v="3"], .rt-chip[data-v="3"] { background: var(--t3); }
.rt-scale button[data-v="4"], .rt-chip[data-v="4"] { background: var(--t4); }
.rt-scale button .rt-ico { width: 20px; height: 20px; }
.rt-scale button:hover { border-color: var(--lav); }
.rt-scale button.on, .rt-scale button.on:hover { background: var(--lav); border-color: var(--white); color: var(--bg); box-shadow: inset 0 0 0 1.5px var(--bg); }
.rt-chip { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--t1); color: var(--white); border: 1.5px solid rgba(163,136,238,.22); vertical-align: middle; }
.rt-chip .rt-ico { width: 18px; height: 18px; }
.rt-ico { flex: none; width: 18px; height: 18px; display: block; }
.rt-n { white-space: nowrap; }
.rt-overall { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); }
.rt-ovv { font: 700 24px/1 var(--mono); color: var(--white); white-space: nowrap; }
.rt-problem { margin-top: 12px !important; font: 400 13px/1.4 var(--mono) !important; color: var(--white); border-left: 3px solid var(--lav); padding-left: 10px; }
.rt-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.rt-table th, .rt-table td { padding: 12px 0; border-top: 1px solid var(--rule); text-align: right; font: 700 16px/1.2 var(--mono); color: var(--white); }
.rt-table thead th { border-top: 0; padding-top: 8px; font: 400 11px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.rt-table th[scope="row"] { text-align: left; font: 700 12px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--lav); }
.rt-table th[scope="row"] .rt-help { display: block; margin-top: 5px; font: 500 13px/1.3 var(--title); letter-spacing: 0; text-transform: none; }
.rt-table td { width: 1%; padding-left: 24px; white-space: nowrap; vertical-align: middle; }
.rt-table thead th { text-align: right; }
.rt-table td:nth-child(2) { text-align: center; }
.rt-table thead th:nth-child(2) { text-align: center; }
.rt-table .rt-total th, .rt-table .rt-total td { border-top: 2px solid var(--lav); }
.rt-table .rt-total td { font-size: 22px; }
.btn-ico { padding: 0; width: 44px; }
.btn-ico svg { width: 20px; height: 20px; }
.rt-actions .btn svg, .rt-auth svg { width: 16px; height: 16px; }
@media (max-width: 420px) { .rt-scale { gap: 4px; } .rt-scale button { font-size: 10.5px; letter-spacing: .04em; } .rt-sheet { padding: 12px; } .rt-table td { padding-left: 14px; } }
.rt-sheet { border: var(--border-w) solid var(--lav); background: var(--bg); padding: 16px; box-shadow: var(--hard-x) var(--hard-y) 0 0 var(--hard-shadow); }
.rt-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rt-frame { margin-top: 14px; background: var(--bg); }
.rt-frame iframe { display: block; width: 100%; height: 540px; border: 0; border-radius: 0; background: transparent; }
.rt-status:empty { display: none; }

/* v2.10: review scores in Synopsis (TMDB, Letterboxd) */
.score-grid { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: rgba(163,136,238,.18); border: 1px solid rgba(163,136,238,.18); }
.score-grid li { background: var(--card); min-width: 0; }
.score-grid a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 16px; color: var(--white); text-decoration: none; }
.score-grid a:hover, .score-grid a:focus-visible { background: rgba(163,136,238,.12); }
.sc-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sc-top svg { width: 16px; height: 16px; color: var(--lav); margin-left: auto; flex: none; }
.sc-logo { width: 22px; height: 22px; flex: none; background: var(--white); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: center; mask-position: center; }
.sc-src { font: 700 12px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lav); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-val { font: 700 34px/1 var(--mono); letter-spacing: -.02em; color: var(--white); }
.sc-val i { font-style: normal; font-weight: 400; font-size: 16px; color: var(--dim); margin-left: 2px; letter-spacing: 0; }
.sc-meta { font: 400 12px/1.4 var(--mono); letter-spacing: .04em; color: var(--dim); }
@media (max-width: 420px) { .score-grid a { padding: 14px 12px; } .sc-val { font-size: 28px; } .sc-meta { font-size: 11px; } }

/* v2.10: member sign-in lives in the panel bar, beside Close */
.bar-r { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.rt-bar { display: inline-flex; align-items: center; gap: 10px; }
.rt-bar:empty { display: none; }
.btn.rt-auth { background: var(--lav); color: var(--bg); border-radius: 0; }
.rt-me { display: inline-flex; align-items: baseline; gap: 8px; font: 400 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--white); white-space: nowrap; }
.rt-me b { font-weight: 700; max-width: 16ch; overflow: hidden; text-overflow: ellipsis; }
.rt-top { margin-top: 14px; }
.rt-flag { margin: 0; padding: 10px 12px; border-left: 3px solid var(--lav); background: var(--card); font: 400 12px/1.5 var(--mono); letter-spacing: .04em; color: var(--white); }
@media (max-width: 520px) { .rt-me b { display: none; } .bar-r { gap: 8px; } .bar-r .btn { padding: 0 10px; letter-spacing: .12em; } }
.rt-lede + .rt-form { margin-top: 10px; }
@media (max-width: 420px) { .sc-src { font-size: 11px; letter-spacing: .06em; } .sc-top { gap: 8px; } .sc-logo { width: 20px; height: 20px; } }

/* ---------- v2.13: SHORTLIST (staging) — the club's most-wanted films, ranked by upvotes ----------
   The button sits under the grid on the card back; the list opens in the film panel's place, in the
   phone's column on desktop too. Calm: rank, title, one dim line, one upvote. */
.sl-open { width: 100%; margin-top: 4cqw; min-height: max(40px, 9cqw); padding: 0 3cqw; gap: 2.4cqw; font-size: max(10px, 2.6cqw); letter-spacing: .2em; cursor: pointer; }
.sl-open svg { width: max(14px, 3.8cqw); height: max(14px, 3.8cqw); color: var(--lav); }
.sl-open[aria-expanded="true"] { outline: 2px solid var(--white); outline-offset: 2px; }
.sl-open + .back-foot { margin-top: 3.5cqw; }
@media (min-width: 1024px) {
  .canvas[data-open="true"] .film-panel.is-sl { max-width: 560px; margin-left: 0; }
}
.film-panel.is-sl { width: min(100%, 560px); }
.sl-head { flex-direction: column; align-items: flex-start; gap: 8px; }
.sl-head h3 { white-space: nowrap; outline: none; }
.sl-sub { margin: 0 !important; font: 400 11px/1.3 var(--mono) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--white); }
.sl-hint { margin: 0 0 14px !important; }
.sl-add { position: relative; margin: 4px 0 8px; }
.sl-field { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 12px; background: var(--bg); border: var(--border-w) solid rgba(163,136,238,.45); }
.sl-field:focus-within { border-color: var(--lav); }
.sl-si { flex: none; width: 18px; height: 18px; color: var(--lav); }
.sl-field input { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0; background: transparent; border: 0; outline: none; color: var(--white); font: 500 16px/1 var(--title); -webkit-appearance: none; appearance: none; }
.sl-field input::placeholder { color: var(--dim); opacity: 1; }
.sl-field input::-webkit-search-cancel-button { display: none; }
.sl-opts { list-style: none; margin: 0; padding: 0; position: absolute; z-index: 3; left: 0; right: 0; top: calc(100% - 2px); background: var(--bg); border: var(--border-w) solid var(--lav); box-shadow: var(--hard-x) var(--hard-y) 0 0 var(--hard-shadow); max-height: min(60vh, 380px); overflow-y: auto; }
.sl-opts li + li { border-top: 1px solid var(--rule); }
.sl-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 10px 12px; background: transparent; border: 0; color: var(--white); text-align: left; cursor: pointer; }
.sl-opt:hover, .sl-opt.is-active { background: rgba(163,136,238,.14); }
.sl-opt:focus-visible { outline: 2px solid var(--white); outline-offset: -2px; box-shadow: none; }
.sl-opt[aria-disabled="true"] { cursor: default; }
.sl-opt[aria-disabled="true"] b { color: var(--dim); }
.sl-ot { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sl-ot b { font: 600 16px/1.25 var(--title); overflow-wrap: anywhere; }
.sl-ot span { font: 400 12px/1.3 var(--mono); letter-spacing: .02em; color: var(--dim); overflow-wrap: anywhere; }
.sl-tag { flex: none; font: 700 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--lav); }
.sl-tag.is-off { color: var(--dim); }
.sl-opt-note { padding: 14px 12px; font: 400 12px/1.4 var(--mono); letter-spacing: .04em; color: var(--dim); }
#sl-msg { margin: 10px 0 4px !important; }
.sl-list { list-style: none; margin: 8px 0 0; padding: 0; }
.sl-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--rule); transition: background-color .6s ease; }
.sl-row:first-child { border-top: 0; }
.sl-row.sl-hit { background: rgba(163,136,238,.14); box-shadow: -8px 0 0 rgba(163,136,238,.14), 8px 0 0 rgba(163,136,238,.14); }
.sl-rank { align-self: start; padding-top: 2px; font: 700 16px/1.2 var(--mono); color: var(--white); }
.sl-film { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sl-t { font: 600 17px/1.25 var(--title); color: var(--white); overflow-wrap: anywhere; }
.sl-d { font: 500 14px/1.3 var(--title); color: var(--dim); overflow-wrap: anywhere; } /* v2.23: "Ridley Scott · 1982" */
/* v2.17.2: genre / runtime / country as square tag chips, one line, no fill, never wrapping */
.sl-m { display: flex; flex-wrap: nowrap; gap: 5px; min-width: 0; max-width: 100%; overflow: hidden; margin: 3px 0 2px; }
.sl-m .chip { flex: none; padding: 3px 5px 2px; border: 1px solid rgba(130,118,160,.6); border-radius: 0; background: none; font: 400 10px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.sl-m .chip:first-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sl-m .chip[hidden] { display: none; }
@media (max-width: 520px) { .sl-m .chip { letter-spacing: .06em; } }
/* v2.17.3: the vote in one fixed-width column, 62px (v2.23: the submitter moved to the title line) */
.sl-side { display: flex; flex-direction: column; align-items: stretch; gap: 6px; width: 62px; min-width: 0; }
/* v2.23: line 1 is the title, then the submitter as a square 26px avatar chip + their profile name. The chip
   stands in for "submitted by" (Structured Liquidity: no rounding, 1px border matching the vote box). Profile
   picture when there is one, else the monogram underneath. The name truncates, never wraps mid-word. */
.sl-l1 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.sl-l1 .sl-t { flex: 0 1 auto; min-width: 0; }
.sl-by { display: inline-flex; align-items: center; gap: 7px; flex: 0 1 auto; min-width: 0; max-width: 100%; min-height: 26px; padding: 0; margin: 0; border: 0; border-radius: 0; background: none; color: var(--white); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sl-av { position: relative; flex: none; display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 26px; height: 26px; border: 1px solid rgba(130,118,160,.6); border-radius: 0; background: var(--bg); overflow: hidden; transition: border-color 180ms cubic-bezier(.2,.7,.2,1); }
.sl-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; display: block; }
.sl-bn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 12px/1.2 var(--mono); letter-spacing: .02em; color: var(--dim); transition: color 180ms cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) { .sl-by:hover .sl-av { border-color: var(--lav); } .sl-by:hover .sl-bn { color: var(--white); } }
.sl-by[aria-expanded="true"] .sl-av { border-color: var(--lav); }
.sl-by[aria-expanded="true"] .sl-bn { color: var(--white); }
.sl-by:focus-visible { outline: 1px solid var(--lav); outline-offset: 2px; box-shadow: none; }
/* v2.23: "Submitted by <name>" drops down in place, Parlour's neighbourhood-guide pattern (.kpi in
   app/components/residence/residence.module.css): the card hangs from the row's bottom edge, flush with the film
   column, sized to its words and never wider than the row. Square, 1px rule, a 2px inset accent line on top (no
   blur shadow). The clip opens downward (420ms ease-liquid) while the card settles from a slight scale (520ms
   spring), opacity in 140ms. On the last row it opens upward instead, so it never hangs off the list. */
.sl-row { position: relative; }
.sl-bx {
  --bx-spring: cubic-bezier(0.34, 1.36, 0.64, 1); --bx-liquid: cubic-bezier(0.22, 1, 0.36, 1);
  position: absolute; z-index: 5; top: calc(100% - 1px); left: 46px; right: auto;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px;
  width: max-content; max-width: calc(100% - 46px); box-sizing: border-box; padding: 8px 10px;
  background: var(--bg); border: 1px solid rgba(130,118,160,.6); border-radius: 0; box-shadow: inset 0 2px 0 var(--lav);
  font: 400 12px/1.5 var(--mono); letter-spacing: .02em; color: var(--white);
  opacity: 0; visibility: hidden; pointer-events: none;
  clip-path: inset(0 0 100% 0); transform: translateY(-6px) scaleY(0.9); transform-origin: top;
  transition: clip-path 420ms var(--bx-liquid), transform 520ms var(--bx-spring), opacity 140ms linear, visibility 0s linear 520ms;
}
.sl-bx b { flex: none; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--lav); }
.sl-bx span { min-width: 0; overflow-wrap: anywhere; }
.sl-row:last-child:not(:first-child) .sl-bx { top: auto; bottom: calc(100% - 1px); clip-path: inset(100% 0 0 0); transform: translateY(6px) scaleY(0.9); transform-origin: bottom; box-shadow: inset 0 -2px 0 var(--lav); }
@media (hover: hover) { .sl-row:has(.sl-by:hover) .sl-bx { opacity: 1; visibility: visible; clip-path: inset(0); transform: none; transition-delay: 0s; } }
.sl-row.is-by .sl-bx, .sl-row:last-child:not(:first-child).is-by .sl-bx { opacity: 1; visibility: visible; clip-path: inset(0); transform: none; transition-delay: 0s; }
@media (hover: hover) { .sl-row:last-child:not(:first-child):has(.sl-by:hover) .sl-bx { clip-path: inset(0); transform: none; } }
@media (prefers-reduced-motion: reduce) { .sl-bx, .sl-row:last-child:not(:first-child) .sl-bx { transition: opacity 120ms linear, visibility 0s linear 120ms; transform: none; clip-path: none; } }
.pf-name { display: flex; align-items: center; gap: 10px; }
.pf-nm { min-width: 0; }
.pf-av { position: relative; flex: none; display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 26px; height: 26px; border: 1px solid rgba(130,118,160,.6); border-radius: 0; background: var(--bg); overflow: hidden; }
.pf-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; display: block; }
.sl-by-m { font: 700 10px/1 var(--mono); letter-spacing: .02em; text-transform: uppercase; color: var(--white); opacity: .8; }
/* v2.18.5: a thin square 1px box defines the vote as a button: DIM at ~60% when not voted, LAV when voted */
.sl-vote { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 58px; padding: 4px; border-radius: 0; background: var(--bg); color: var(--white); border: 1px solid rgba(130,118,160,.6); font: 700 13px/1 var(--mono); cursor: pointer; }
.sl-vote { --tk-cut: var(--bg); }
.sl-vote .sl-up { width: 24px; height: 24px; display: block; color: var(--lav); overflow: visible; }
.sl-up .sl-up-f { display: none; }
.sl-vote.on .sl-up .sl-up-o { display: none; }
.sl-vote.on .sl-up .sl-up-f { display: inline; }
.sl-vote:hover:not(:disabled) { border-color: var(--lav); }
.sl-vote.on { border-color: var(--lav); color: var(--lav); }
.sl-vote:disabled { cursor: default; color: var(--dim); border-color: rgba(130,118,160,.6); }
.sl-vote:disabled .sl-up { color: var(--dim); opacity: .7; }
.sl-vote[aria-busy="true"] { opacity: .6; }
.sl-vote:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; box-shadow: none; }
.sl-empty { padding: 18px 0 6px; font: 400 12px/1.5 var(--mono); letter-spacing: .06em; color: var(--dim); }
@media (prefers-reduced-motion: reduce) { .sl-row { transition: none; } }
#sl-title:focus { box-shadow: none; }
.sl-field input:focus, .sl-field input:focus-visible { box-shadow: none; outline: none; }

/* ---------- v2.14: grid tiles carry the film's title and genre (small, bottom of the tile) ----------
   The number stays top-left; title (up to 2 lines) and genre (1 line) sit at the bottom and never overflow.
   --box-ink is ink or white, whichever reads better on the tile colour (app.js tileInk). */
a.box { flex-direction: column; justify-content: space-between; gap: .4cqw; color: var(--box-ink, var(--bg)); overflow: hidden; }
.bx-n { flex: none; }
.bx-f { display: flex; flex-direction: column; gap: .35cqw; min-width: 0; align-self: stretch; margin: 0 -.8cqw -.2cqw; }
.bx-t { font: 700 1.68cqw/1.1 var(--title); letter-spacing: -.01em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: break-word; }
.bx-g { font: 400 1.36cqw/1.25 var(--mono); letter-spacing: 0; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- v2.15: PROFILE (staging) — one compact button in the bar, and the member's own panel ----------
   The button is as tall as Close: the circle-user icon + the short name on desktop, the icon alone on phones.
   The panel opens in the shortlist's column; Sign out is a quiet text link at the bottom. */
.btn.pf-open { gap: 10px; padding: 0 14px 0 12px; color: var(--white); }
.btn.pf-open svg { width: 18px; height: 18px; color: var(--lav); }
.pf-who { max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) { .pf-who { display: none; } .bar-r .btn.pf-open { width: 44px; padding: 0; } }
@media (min-width: 1024px) {
  .canvas[data-open="true"] .film-panel.is-pf { max-width: 560px; margin-left: 0; }
}
.film-panel.is-pf { width: min(100%, 560px); }
.pf-head { flex-direction: column; align-items: flex-start; gap: 8px; }
.pf-head h3 { white-space: nowrap; outline: none; }
#pf-title:focus { box-shadow: none; }
.pf .rt-sub { margin: 0 !important; }
.pf-name { margin: 2px 0 0 !important; font: 600 30px/1.05 var(--title) !important; letter-spacing: -.025em; color: var(--white); overflow-wrap: anywhere; }
.pf-welcome { margin: 0 0 12px !important; }
.pf-list { list-style: none; margin: 4px 0 0; padding: 0; }
.pf-sl { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--rule); }
.pf-list > li:first-child { border-top: 0; }
.pf-n { align-self: start; padding-top: 2px; font: 700 15px/1.2 var(--mono); color: var(--white); }
.pf-film { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pf-sl .pf-film { gap: 4px; }
.pf-t { display: inline-flex; align-items: flex-start; gap: 10px; min-width: 0; color: var(--white); text-decoration: none; font: 600 17px/1.25 var(--title); }
.pf-t span { min-width: 0; overflow-wrap: anywhere; }
.pf-t:hover span, .pf-t:focus-visible span { text-decoration: underline; text-underline-offset: 3px; }
.pf-sw { flex: none; width: 12px; height: 12px; background: var(--film); box-shadow: inset 0 0 0 1px rgba(14,10,24,.35); }
.pf-votes { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 40px; font: 700 13px/1 var(--mono); color: var(--white); }
.pf-votes { --tk-cut: var(--card); }
.pf-votes .sl-up { width: 18px; height: 18px; display: block; color: var(--dim); overflow: visible; }
.pf-votes .sl-up .sl-up-f { display: none; }
.pf-votes.on { color: var(--lav); }
.pf-votes.on .sl-up { color: var(--lav); }
.pf-votes.on .sl-up .sl-up-o { display: none; }
.pf-votes.on .sl-up .sl-up-f { display: inline; }
.pf .subhead:first-of-type { margin-top: 4px; }
.pf-empty { margin: 2px 0 0 !important; font: 400 12px/1.5 var(--mono) !important; letter-spacing: .06em; color: var(--dim); }
.pf-out { margin: 26px 0 0 !important; text-align: center; }
.pf-in { margin: 14px 0 0 !important; }
.pf-out .rt-link { font: 400 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.pf-out .rt-link:hover, .pf-out .rt-link:focus-visible { color: var(--white); }
@media (max-width: 420px) { .pf-name { font-size: 26px !important; } }

/* v2.17 Profile: MEMBER STATUS badges (one per rung), RATINGS as a table, I42 RATING */
.pf { --t1: #1C1A22; --t2: #2A2140; --t3: #3D2C6B; --t4: #5A3FA0; }
.pf-st { margin: 20px 0 0; }
.pf-st-k { margin: 0 0 10px; font: 400 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.pf-st-v { margin: 0 !important; font: 700 15px/1 var(--mono) !important; letter-spacing: .08em; color: var(--lav); }
.pf-badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-width: 460px; }
.pf-b { aspect-ratio: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 4px 2px; text-align: center; background: var(--bg); border: 1.5px solid rgba(130,118,160,.5); color: var(--dim); }
.pf-b-i { flex: none; width: 24px; height: 24px; display: block; }
.pf-b-t { font: 700 11px/1.05 var(--mono); letter-spacing: .04em; white-space: nowrap; }
.pf-b-n { font: 400 9px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.pf-b.is-locked { opacity: .5; }
.pf-b.is-earned { border-color: var(--lav); color: var(--white); }
.pf-b.is-earned .pf-b-i { color: var(--lav); }
.pf-b.is-current { background: var(--lav); border-color: var(--lav); color: var(--bg); }
.pf-next { margin: 10px 0 0 !important; font: 400 10px/1.4 var(--mono) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
@media (max-width: 420px) {
  .pf-badges { gap: 6px; }
  .pf-b { gap: 4px; }
  .pf-b-i { width: 20px; height: 20px; }
  .pf-b-t { font-size: 8.5px; letter-spacing: 0; white-space: nowrap; }
  .pf-b-n { font-size: 8px; letter-spacing: .02em; }
}
.pf-rt { width: 100%; border-collapse: collapse; margin-top: 2px; }
.pf-rt th, .pf-rt td { padding: 12px 0 12px 12px; border-top: 1px solid var(--rule); vertical-align: middle; text-align: left; }
.pf-rt thead th { border-top: 0; padding-top: 2px; padding-bottom: 10px; vertical-align: bottom; font: 400 9.5px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.pf-rt .pf-rt-n { width: 28px; padding-left: 0; font: 700 13px/1.2 var(--mono); color: var(--white); }
.pf-rt thead .pf-rt-n { font: 400 9.5px/1.2 var(--mono); color: var(--dim); }
.pf-rt tbody th { font-weight: 400; }
.pf-rt .pf-t { font: 600 15px/1.25 var(--title); gap: 9px; }
.pf-rt .pf-t .pf-sw { margin-top: .28em; width: 10px; height: 10px; }
.pf-rt .pf-rt-p { width: 1%; text-align: center; }
.pf-rt thead .pf-rt-p { line-height: 1; }
.pf-rt thead .pf-rt-p .rt-pi { width: 15px; height: 15px; margin: 0 auto 6px; }
.pf-rt-w { display: block; }
.pf-rt .rt-chip { width: 28px; height: 28px; border-width: 1px; }
.pf-rt .rt-chip .rt-ico { width: 15px; height: 15px; }
.pf-rt .pf-rt-s { width: 1%; text-align: right; white-space: nowrap; font: 700 18px/1 var(--mono); color: var(--white); }
.pf-rt .pf-rt-c { color: var(--lav); }
.pf-rt thead .pf-rt-s { font: 400 9.5px/1.2 var(--mono); color: var(--dim); }
.pf-rt thead .pf-rt-n, .pf-rt thead .pf-rt-f { vertical-align: bottom; }
/* v2.18.5: two header rows: icons on top (parts; star = yours, i42 mark = club), labels below on one baseline,
   RATING spanning both score columns */
.pf-rt thead td { border-top: 0; }
.pf-rt .pf-rt-hi > * { padding-top: 2px; padding-bottom: 5px; vertical-align: bottom; }
.pf-rt .pf-rt-hl > th { padding-top: 0; padding-bottom: 10px; vertical-align: bottom; }
.pf-rt thead .pf-rt-p .rt-pi { margin: 0 auto; }
.pf-rt thead .pf-rt-s .rt-pi, .pf-rt thead .pf-rt-s .rt-mk { margin: 0 0 0 auto; }
.pf-rt thead .pf-rt-span { text-align: center; }
/* every header label (N°, FILM, the parts, RATING) on one baseline: same line box, same bottom padding */
.pf-rt thead th.pf-rt-n, .pf-rt thead th.pf-rt-f, .pf-rt thead .pf-rt-hl > th { line-height: 1; padding-bottom: 10px; }
.pf-rt thead .rt-star { width: 15px; height: 15px; }
.pf-rt thead .rt-mk, .rt-table thead .rt-mk { width: 17px; height: 11.5px; }
.rt-star { color: var(--lav); }
.rt-mk { display: block; width: 18px; height: 12.2px; flex: none; }
@media (max-width: 520px) {
  .pf-rt th, .pf-rt td { padding-left: 8px; }
  .pf-rt .pf-rt-n { width: 22px; padding-left: 0; font-size: 12px; }
  .pf-rt thead .pf-rt-p, .pf-rt thead .pf-rt-s, .pf-rt thead th.pf-rt-n, .pf-rt thead th.pf-rt-f { font-size: 8px; letter-spacing: .04em; }
  .pf-rt .rt-chip { width: 24px; height: 24px; }
  .pf-rt .rt-chip .rt-ico { width: 13px; height: 13px; }
  .pf-rt .pf-rt-s { font-size: 15px; }
  .pf-rt .pf-t { font-size: 14px; gap: 7px; }
}
.rt-table thead th { white-space: nowrap; }
/* v2.18.5: film panel scores: star over yours, i42 mark over the club's, one RATING label across both */
.rt-table thead .rt-hi th { padding-top: 6px; padding-bottom: 4px; vertical-align: bottom; }
.rt-table thead .rt-hi th:first-child { padding-bottom: 8px; }
.rt-table thead .rt-hi .rt-pi { width: 15px; height: 15px; }
.rt-table thead .rt-hi th:nth-child(2) .rt-pi { margin: 0 auto; }
.rt-table thead .rt-hi th:nth-child(3) svg { margin: 0 0 0 auto; }
.rt-table thead .rt-hl th { padding-top: 0; padding-bottom: 8px; padding-left: 24px; text-align: center; }
@media (max-width: 420px) { .rt-table thead .rt-hl th { padding-left: 14px; } }
/* v2.18.6: the RATING group breathes. Each score column (star = yours, i42 mark = club) is as wide as a part column,
   its number centred under its own icon; Profile sets a 1px rule before the group. FILM gives up the room (titles
   wrap, never ellipsis). The mark is the flat glyph in lavender at the star's optical size. */
.pf-rt .pf-rt-p { width: 62px; padding-left: 5px; padding-right: 5px; text-align: center; }
.pf-rt .pf-rt-s { width: 62px; padding-left: 0; padding-right: 0; text-align: center; }
.pf-rt .pf-rt-s:not(.pf-rt-c) { padding-left: 14px; border-left: 1px solid var(--rule); }
.pf-rt thead .pf-rt-s .rt-pi, .pf-rt thead .pf-rt-s .rt-mk { margin: 0 auto; }
.pf-rt thead .pf-rt-span { text-align: center; }
.pf-rt th[scope="row"] { overflow-wrap: break-word; }
.pf-rt thead .rt-mk, .rt-table thead .rt-mk { width: 14px; height: 8.65px; margin-bottom: 2px; color: var(--lav); }
.rt-table td { width: 64px; padding-left: 0; text-align: center; }
.rt-table td:nth-child(2) { padding-left: 20px; }
.rt-table thead .rt-hi th:nth-child(2), .rt-table thead .rt-hi th:nth-child(3) { width: 64px; text-align: center; }
.rt-table thead .rt-hi th:nth-child(2) { padding-left: 20px; }
.rt-table thead .rt-hi th:nth-child(3) { padding-left: 0; }
.rt-table thead .rt-hi th:nth-child(3) svg { margin: 0 auto; }
.rt-table thead .rt-hl th { padding-left: 20px; }
@media (max-width: 520px) {
  /* phones: part labels at 7px so CHARACTER fits a 38 px column; the score columns match it; FILM keeps ~70 px */
  .pf-rt .pf-rt-p { width: 38px; padding-left: 0; padding-right: 0; }
  .pf-rt .pf-rt-s { width: 38px; }
  .pf-rt .pf-rt-s:not(.pf-rt-c) { width: 42px; padding-left: 4px; }
  .pf-rt .pf-t { font-size: 13px; }
  .pf-rt thead .pf-rt-p, .pf-rt thead .pf-rt-s { font-size: 7px; letter-spacing: 0; }
  .pf-rt .pf-rt-n { width: 16px; }
  .pf-rt th[scope="row"] { padding-left: 6px; }
  .pf-rt .pf-t { gap: 6px; }
  .pf-rt .pf-t .pf-sw { width: 8px; height: 8px; }
}
@media (max-width: 420px) {
  .rt-table td { width: 52px; }
  .rt-table td:nth-child(2), .rt-table thead .rt-hi th:nth-child(2), .rt-table thead .rt-hl th { padding-left: 12px; }
  .rt-table thead .rt-hi th:nth-child(2), .rt-table thead .rt-hi th:nth-child(3) { width: 52px; }
}

/* ---------- v2.18.0: phone grid at app-icon size, and the panel as a page on phones ----------
   Phones: four tiles a row, square, ~69 px at 390 (iOS home-screen icon size), title + genre legible; the grid
   scrolls inside the card back so the header, the Shortlist button and the footer stay put. Desktop is unchanged.
   Below 1024 the panel is a fixed page over the card, pushed in from the right (app.js present / closeFilm);
   the page under it does not scroll while it is open. */
@media (max-width: 599.98px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: max-content; align-content: start;
    gap: 8px; margin: 5cqw -5px 0; padding: 5px 5px 18px;
    overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 18px), transparent);
  }
  .grid::-webkit-scrollbar { display: none; }
  .grid li { aspect-ratio: 1; min-height: auto; }
  .box { padding: 6px 6px 5px 7px; font-size: 11px; }
  a.box { gap: 2px; }
  .bx-f { gap: 2px; margin: 0 -2px -1px 0; }
  .bx-t { font-size: 11px; line-height: 1.08; }
  .bx-g { font-size: 8.5px; letter-spacing: .02em; }
  .sl-open { margin-top: 3cqw; }
}
@media (max-width: 1023.98px) {
  .film-panel, .film-panel.is-sl, .film-panel.is-pf {
    position: fixed; inset: 0; z-index: 40; width: auto; max-width: none; margin: 0;
    padding: 0 max(calc(var(--sar) + 20px), calc((100% - 640px) / 2)) calc(var(--sab) + 56px) max(calc(var(--sal) + 20px), calc((100% - 640px) / 2));
    overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    background:
      linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 40px 40px,
      linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 40px 40px,
      var(--bg);
    box-shadow: calc(var(--hard-x) * -1) 0 0 0 var(--hard-shadow);
  }
  html.i42-paged, html.i42-paged body { overflow: hidden; }
}

/* ---------- v2.18.1: VHS sleeves on the shelf ----------
   Every tile is a portrait sleeve, 1 : 1.55 (a real VHS sleeve, 103 x 160 mm), standing in rows like a video-store
   shelf: 4 a row on phones, 6 on wider screens. At that height 42 tiles no longer fit the card, so the grid scrolls
   inside the card back at every width (header, Shortlist button and footer stay put; the card keeps its CR80 size).
   Filled sleeves: number at the top, title (up to 3 lines) and genre low, a thin darker spine band on the left edge.
   Empty sleeves: number only, with a hairline DP spine rule. Flat colour only, square corners. */
.grid {
  grid-template-rows: none; grid-auto-rows: max-content; align-content: start;
  margin: 5cqw -5px 0; padding: 5px 5px 4cqw;
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 4cqw), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 4cqw), transparent);
}
.grid::-webkit-scrollbar { display: none; }
.grid li { aspect-ratio: 1 / 1.55; min-height: auto; }
.box { padding: 1.6cqw .9cqw 1.5cqw 2.1cqw; }
a.box::after, span.box::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; pointer-events: none; }
a.box::after { width: .9cqw; background: rgba(14, 10, 24, .22); }
span.box::after { left: 1.1cqw; width: 0; border-left: 1px solid rgba(103, 78, 167, .38); }
.bx-f { gap: .6cqw; margin: 0 -.5cqw 0 0; }
.bx-t { font-size: 1.92cqw; line-height: 1.1; letter-spacing: -.02em; -webkit-line-clamp: 3; line-clamp: 3; overflow-wrap: normal; hyphens: none; }
.bx-g { font-size: 1.55cqw; }
@media (max-width: 599.98px) {
  .grid { margin: 5cqw -5px 0; padding: 5px 5px 18px; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 18px), transparent); }
  .grid li { aspect-ratio: 1 / 1.55; }
  .box { padding: 7px 3px 6px 8px; font-size: 11px; }
  a.box::after { width: 3px; }
  span.box::after { left: 4px; }
  .bx-f { gap: 3px; margin: 0 -1px 0 0; }
  .bx-t { font-size: 11.5px; line-height: 1.1; letter-spacing: -.02em; }
  .bx-g { font-size: 8.5px; letter-spacing: .02em; }
}

/* ---------- v2.18.2: label at the top of the sleeve, number at the foot ----------
   Filled sleeves read like a shop label: title at the top (same start line on every sleeve, whatever its length),
   genre directly under it, the film number in the bottom-right corner. Empty sleeves carry their number in the same
   corner. Nothing on a tile truncates: no line clamp on the title, no ellipsis on the genre (the genre is sized so the
   longest one, DOCUMENTARY, fits on one line: 8 px on a 390 phone, 1.5cqw = 6.6 px at 1440).
   Spine band, 1 : 1.55 aspect, shelf scrolling and motion unchanged. */
a.box { justify-content: flex-start; }
.bx-f { gap: .45cqw; margin: 0 -.7cqw 0 0; }
.bx-t { display: block; -webkit-line-clamp: none; line-clamp: none; overflow: visible; }
.bx-g { font-size: 1.5cqw; line-height: 1.2; letter-spacing: -.04em; overflow: visible; text-overflow: clip; }
@media (max-width: 599.98px) {
  .bx-f { gap: 2px; margin: 0 -1px 0 0; }
  .bx-g { font-size: 8px; letter-spacing: 0; }
}

/* ---------- v2.18.4: catalog mark at the top, genre label at the foot ----------
   Filled sleeves: a small catalog mark "N°01" (Space Mono, uppercase, the sleeve's ink at reduced opacity) sits at the top,
   on the title's left edge just right of the spine band; the title follows directly under it and stays the hero. The genre
   is a plain label (no border, box or chip at any size) in the sleeve's ink, bottom-left on the title's left edge, the same
   place on every sleeve and both sizes; DOCUMENTARY fits the 54 px six-across sleeve at 1440 without an ellipsis. The title
   may run down towards the genre and keeps at least 4 px clear of it (bottom padding reserves the label + gap).
   Empty sleeves carry "N°03" etc. in the same top-left spot and style (no title, no genre) with the faint DP spine line.
   The bottom-right number is gone. Flat colour, radius 0. */
a.box { justify-content: flex-start; gap: 1cqw; padding: 1.6cqw .9cqw calc(1.2cqw + 1.42cqw + 4px) 2.1cqw; }
.bx-n, span.box { font: 400 1.5cqw/1 var(--mono); letter-spacing: .02em; text-transform: uppercase; }
.bx-n { position: static; flex: none; opacity: .66; }
span.box { align-items: flex-start; justify-content: flex-start; padding: 1.6cqw .9cqw 0 2.1cqw; color: var(--dim); }
.bx-f { gap: 0; margin: 0 -.5cqw 0 0; }
.bx-g {
  position: absolute; left: 2.1cqw; right: auto; bottom: 1.2cqw;
  font: 400 1.42cqw/1 var(--mono); letter-spacing: -.05em; text-transform: uppercase; white-space: nowrap;
  overflow: visible; text-overflow: clip; padding: 0; border: 0; border-radius: 0;
}
@media (max-width: 599.98px) {
  a.box { gap: 5px; padding: 7px 3px calc(6px + 8px + 4px) 8px; }
  .bx-n, span.box { font-size: 8px; letter-spacing: .02em; }
  span.box { padding: 7px 3px 0 8px; }
  .bx-f { gap: 0; margin: 0 -1px 0 0; }
  .bx-g { left: 8px; bottom: 6px; font-size: 8px; letter-spacing: -.02em; padding: 0; border: 0; }
}

/* v2.20.1: signed-out / non-member read-only club ratings: one I42 RATING column, wide enough for its label,
   the i42 mark and the number centred over each other (last in the file so the phone rules don't narrow it) */
.rt-table.rt-club td:nth-child(2), .rt-table.rt-club thead .rt-hi th:nth-child(2), .rt-table.rt-club thead .rt-hl th { width: 96px; padding-left: 16px; padding-right: 0; text-align: center; }
.rt-table.rt-club thead .rt-hi th:nth-child(2) svg { display: block; margin: 0 auto; }

/* v2.21.1: member-only controls drawn in place, locked (greyed + a small lock), with a square tooltip.
   The submitter chip tooltip (above) now sits to the left of the chip, inside its own row, like the locks. */
.lk-w { position: relative; display: inline-flex; vertical-align: middle; }
.lk { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lk-i { flex: none; width: 12px; height: 12px; display: block; color: var(--dim); overflow: visible; }
.lk-tip { position: absolute; z-index: 6; padding: 5px 7px 4px; border: 1px solid rgba(130,118,160,.6); border-radius: 0; background: var(--bg); font: 400 10px/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--white); white-space: nowrap; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .12s ease; cursor: pointer; }
.lk-side .lk-tip { right: calc(100% + 6px); top: 50%; transform: translateY(-50%); }
.lk-up .lk-tip { left: 0; bottom: calc(100% + 6px); }
.lk-in .lk-tip { right: 34px; top: 50%; transform: translateY(-50%); }
@media (hover: hover) { .lk-w:hover .lk-tip { opacity: 1; visibility: visible; } }
.lk:focus-visible + .lk-tip, .lk-w.is-tip .lk-tip { opacity: 1; visibility: visible; pointer-events: auto; }
.lk:focus-visible { outline: 1px solid var(--lav); outline-offset: 2px; box-shadow: none; }
/* ratings: the "yours" column as locked square boxes */
.rt-table td.rt-lk { text-align: center; }
.lk-cell { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 28px; height: 28px; padding: 0; margin: 0; border: 1px solid rgba(130,118,160,.6); border-radius: 0; background: transparent; color: var(--dim); }
.rt-dim { color: var(--dim) !important; opacity: .7; }
th.rt-dim .rt-star { color: var(--dim); }
.btn.lk-btn { background: var(--card); color: var(--dim); border-color: rgba(130,118,160,.6); box-shadow: none; border-radius: 0; }
.btn.lk-btn:active { transform: none; box-shadow: none; }
.btn.lk-btn .lk-i { width: 13px; height: 13px; }
/* Shortlist: the ticket and the add box, locked */
.sl-side > .lk-w { display: flex; width: 100%; }
.sl-vote.lk { position: relative; cursor: pointer; color: var(--dim); border-color: rgba(130,118,160,.6); }
.sl-vote.lk .sl-up { color: var(--dim); opacity: .7; }
.sl-vote.lk:hover { border-color: rgba(130,118,160,.6); }
.sl-vote .lk-i { position: absolute; top: 4px; right: 4px; width: 10px; height: 10px; }
.sl-add > .lk-w { display: flex; width: 100%; }
.sl-field.lk { width: 100%; color: var(--dim); border-color: rgba(130,118,160,.45); text-align: left; font: 500 16px/1 var(--title); }
.sl-field.lk .sl-si { color: var(--dim); }
.lk-ph { flex: 1 1 auto; min-width: 0; color: var(--dim); }
.rt-locked + .rt-actions { margin-top: 34px; } /* room above Rate this film for its tooltip, clear of the Overall row */

/* ---- v2.21.2 ---- */
/* Shortlist: the rank number shares the title's first baseline (the film block no longer centres in the row) */
.sl-rank { align-self: first baseline; padding-top: 0; }
.sl-film { align-self: first baseline; }
.sl-side { align-self: start; }
/* film ratings: each score sits on its label's line (STORY / CHARACTER / CRAFT), not centred on label + help */
.rt-table tbody tr:not(.rt-total) th, .rt-table tbody tr:not(.rt-total) td { vertical-align: top; }
.rt-table tbody tr:not(.rt-total) td { line-height: 18px; padding-top: 10px; } /* 16px score on the 12px label baseline */
.rt-table tbody tr:not(.rt-total) td .lk-w, .rt-table tbody tr:not(.rt-total) td .rt-chip { margin-top: -5px; margin-bottom: -5px; }
.rt-table tbody tr:not(.rt-total) td .rt-chip { margin-top: -9px; margin-bottom: -9px; }
/* ---- v2.21.3: the sign-up card, a panel on the same canvas (nothing dims or covers the page) ----
   Wide: the third column right of the panel; the stage pans left (inline transform from app.js) so it's in view,
   sticky at the top so it shows whatever the panel's scroll. Phones: a page that pushes the panel off to the left. */
.canvas { overflow-x: clip; }
.gate-panel { outline: none; color: var(--white); }
.gt-bar .bar-r { margin-left: auto; }
.gt-card { position: relative; margin-top: 18px; padding: 22px 20px 20px; background: var(--card); border: 1px solid rgba(163,136,238,.55); border-radius: 0; box-shadow: var(--hard-x) var(--hard-y) 0 0 var(--hard-shadow); }
.gt-lk { display: block; color: var(--white); }
.gt-lk .lockup { display: block; width: 64px; height: auto; overflow: visible; }
.gt-lk .lkp-f { font-size: 11px; }
.gt-k { margin: 18px 0 0; display: flex; align-items: center; gap: 8px; font: 700 11px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--lav); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gt-k::before { content: ""; flex: none; width: 9px; height: 9px; background: var(--lav); }
.gt-h { margin: 10px 0 0; font: 700 28px/1.08 var(--title); letter-spacing: -.02em; color: var(--white); overflow-wrap: anywhere; }
.gt-h:focus { box-shadow: none; outline: none; }
.gt-d { margin: 10px 0 0; font: 500 15px/1.4 var(--title); color: var(--white); }
.gt-list { list-style: none; margin: 16px 0 0; padding: 0; }
.gt-list li { display: grid; grid-template-columns: 20px 92px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--rule); }
.gt-list li:last-child { border-bottom: 1px solid var(--rule); }
.jn-i { width: 20px; height: 20px; display: block; color: var(--lav); }
.gt-list b { font: 700 11px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--lav); }
.gt-list span { font: 400 13px/1.35 var(--title); color: var(--dim); }
.gt-flow { margin-top: 20px; }
.gt-go { width: 100%; }
.gt-in { margin: 12px 0 0; font: 400 13px/1.4 var(--title); color: var(--dim); text-align: center; }
.gt-in .rt-link { margin-left: 4px; }
.gt-flow .rt-sheet { box-shadow: none; border-width: 1px; }
.gt-flow .rt-frame iframe { height: 520px; }
@media (min-width: 1024px) {
  .canvas[data-gate="true"] .stage { will-change: transform; }
  .gate-panel { position: sticky; top: 0; align-self: start; width: 420px; max-height: 100vh; max-height: 100dvh; overflow-y: auto; padding: calc(var(--sat) + 28px) 6px calc(var(--sab) + 28px) 0; }
  .gate-panel .panel-bar { position: static; }
}
@media (max-width: 1023.98px) {
  .gate-panel {
    position: fixed; inset: 0; z-index: 45; width: auto; margin: 0;
    padding: 0 max(calc(var(--sar) + 20px), calc((100% - 640px) / 2)) calc(var(--sab) + 40px) max(calc(var(--sal) + 20px), calc((100% - 640px) / 2));
    overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y;
    background:
      linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 40px 40px,
      linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 40px 40px,
      var(--bg);
    box-shadow: calc(var(--hard-x) * -1) 0 0 0 var(--hard-shadow);
  }
}
@media (max-width: 420px) { .gt-h { font-size: 25px; } .gt-card { padding: 20px 16px 18px; } .gt-list li { grid-template-columns: 20px 84px minmax(0, 1fr); gap: 10px; } }
/* signed out, the member controls are real: the "yours" cells (dashes), the vote ticket, the Add a film field */
.rt-gc { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 28px; height: 28px; padding: 0; margin: 0; border: 1px solid rgba(130,118,160,.6); border-radius: 0; background: transparent; color: var(--white); font: 700 16px/1 var(--mono); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rt-gc:hover { border-color: var(--lav); }
.rt-gc:focus-visible { outline: 1px solid var(--lav); outline-offset: 2px; box-shadow: none; }
.rt-table tbody tr:not(.rt-total) td .rt-gc { margin-top: -5px; margin-bottom: -5px; }
.sl-field-btn { width: 100%; cursor: text; text-align: left; color: var(--dim); font: 500 16px/1 var(--title); -webkit-tap-highlight-color: transparent; }
.sl-field-btn:hover, .sl-field-btn:focus-visible { border-color: var(--lav); box-shadow: none; outline: none; }
.rt-table tbody tr.rt-total th, .rt-table tbody tr.rt-total td { vertical-align: baseline; } /* OVERALL and its score on one baseline */
