/* ==========================================================================
   CINEXIS — Components
   ========================================================================== */

/* ---- App shell ---------------------------------------------------------- */

.app {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: var(--surface);
  overflow-x: hidden;
}

.screen {
  position: relative;
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + var(--safe-b) + var(--s-4));
  animation: fade var(--base) var(--ease) both;
}
.screen--flush { padding-bottom: 0; }

/* Top bar */
.appbar {
  position: sticky; top: 0; z-index: var(--z-nav);
  display: flex; align-items: center; gap: var(--s-3);
  height: 56px;
  padding-inline: var(--s-4);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--hairline);
}
.appbar__title {
  font-family: var(--font-head); font-size: var(--t-lg); font-weight: 600;
  letter-spacing: var(--tr-head);
}
.appbar--transparent {
  background: linear-gradient(180deg, rgba(0,0,0,.72), transparent);
  backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0;
  position: fixed; inset-inline: 0; top: 0;
}

/* Icon button — always ≥44px hit area */
.iconbtn {
  display: grid; place-items: center;
  width: var(--tap); height: var(--tap);
  margin: -10px;                       /* keeps optical spacing tight */
  border-radius: var(--r-pill);
  color: var(--ink-2);
  transition: color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.iconbtn:hover { color: var(--ink); background: rgba(255,255,255,.07); }
.iconbtn--flush { margin: 0; }
.iconbtn--solid { background: rgba(0,0,0,.5); color: var(--ink); backdrop-filter: blur(8px); }

/* Bottom tab bar */
.tabbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: var(--z-nav);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: var(--s-2) var(--s-2) var(--safe-b);
  background: color-mix(in srgb, var(--surface-2) 92%, transparent);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-top: 1px solid var(--hairline);
}
.tabbar::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 1px;
  background: var(--prism); opacity: .3;
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-height: var(--tap);
  padding: var(--s-2) var(--s-1) var(--s-1);
  color: var(--ink-3);
  font-size: var(--t-2xs); font-weight: 600;
  border-radius: var(--r-sm);
  transition: color var(--fast) var(--ease);
}
.tab:hover { color: var(--ink-2); }
.tab[aria-current="page"] { color: var(--ink); }
.tab[aria-current="page"] .ico { filter: drop-shadow(0 0 8px rgba(193,63,224,.7)); }
.tab__dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--prism); opacity: 0; transition: opacity var(--fast);
}
.tab[aria-current="page"] .tab__dot { opacity: 1; }

/* Centre action tab — the Shorts FAB from the client mockup */
.tab--fab { position: relative; }
.tab--fab .tab__fab {
  display: grid; place-items: center;
  width: 46px; height: 34px; border-radius: var(--r-pill);
  background: var(--prism); color: #fff;
  box-shadow: var(--glow-magenta);
}

/* ---- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--tap); padding: 0 var(--s-5);
  border-radius: var(--r-sm);
  font-family: var(--font-head); font-size: var(--t-sm); font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease),
              border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease),
              opacity var(--fast) var(--ease);
}
.btn:disabled { opacity: .42; cursor: not-allowed; }
.btn .ico { width: 18px; height: 18px; }

.btn--prism {
  background: var(--prism); color: #fff;
  box-shadow: 0 4px 18px rgba(124,58,237,.32);
}
.btn--prism:hover:not(:disabled) { box-shadow: 0 6px 26px rgba(193,63,224,.5); }

.btn--solid { background: var(--ink); color: var(--ink-on-accent); }
.btn--solid:hover:not(:disabled) { background: #fff; }

.btn--ghost {
  background: rgba(255,255,255,.07); color: var(--ink);
  border: 1px solid var(--hairline-strong);
}
.btn--ghost:hover:not(:disabled) { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.26); }

.btn--gold { background: var(--gold); color: #2A1B00; }
.btn--gold:hover:not(:disabled) { background: #FFD152; box-shadow: 0 4px 20px rgba(251,191,36,.36); }

.btn--danger { background: var(--rose); color: #2A0710; }
.btn--quiet { color: var(--ink-2); padding-inline: var(--s-3); }
.btn--quiet:hover { color: var(--ink); background: rgba(255,255,255,.06); }

.btn--block { display: flex; width: 100%; }
.btn--sm { min-height: 36px; padding-inline: var(--s-4); font-size: var(--t-xs); }
.btn--lg { min-height: 52px; font-size: var(--t-md); }

/* ---- Chips / segmented -------------------------------------------------- */

.chips {
  display: flex; gap: var(--s-2);
  overflow-x: auto;
  padding-inline: var(--s-4);
  scrollbar-width: none;
  /* fade the right edge so a cut-off chip reads as "scrollable", not "broken" */
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 34px), transparent 100%);
          mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 34px), transparent 100%);
}
.chips::after { content: ""; flex: none; width: var(--s-5); }
.chips::-webkit-scrollbar { display: none; }
/* a row that fits entirely needs no fade */
.chips--fit { -webkit-mask-image: none; mask-image: none; }

.chip {
  flex: none;
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 36px; padding: 0 var(--s-4);
  border-radius: var(--r-pill);
  background: var(--surface-3); color: var(--ink-2);
  border: 1px solid transparent;
  font-size: var(--t-xs); font-weight: 600;
  transition: all var(--fast) var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--hairline-strong); }
.chip[aria-pressed="true"], .chip.is-on {
  background: var(--prism); color: #fff; border-color: transparent;
  box-shadow: 0 2px 14px rgba(124,58,237,.4);
}

.seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  gap: 2px; padding: 3px;
  background: var(--surface-3); border-radius: var(--r-sm);
}
.seg__b {
  min-height: 36px; border-radius: 7px;
  font-size: var(--t-xs); font-weight: 600; color: var(--ink-3);
  transition: all var(--fast) var(--ease);
}
.seg__b:hover { color: var(--ink-2); }
.seg__b[aria-selected="true"] { background: var(--surface-4); color: var(--ink); box-shadow: var(--sh-1); }

/* Underline tabs */
.utabs { display: flex; gap: var(--s-5); border-bottom: 1px solid var(--hairline); padding-inline: var(--s-4); }
.utab {
  position: relative; min-height: var(--tap); padding-bottom: var(--s-2);
  font-family: var(--font-head); font-size: var(--t-sm); font-weight: 600; color: var(--ink-3);
  transition: color var(--fast) var(--ease);
}
.utab:hover { color: var(--ink-2); }
.utab[aria-selected="true"] { color: var(--ink); }
.utab[aria-selected="true"]::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px;
  background: var(--prism); border-radius: 2px;
}

/* ---- Surfaces ----------------------------------------------------------- */

.card {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  overflow: hidden;
}
.card--pad { padding: var(--s-4); }
.card--lift { box-shadow: var(--sh-2); }
.card--glow { box-shadow: var(--glow-prism); border-color: rgba(193,63,224,.32); }

.panel {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: var(--s-4);
}

.divider { height: 1px; background: var(--hairline); border: 0; margin: 0; }

.section { padding-block: var(--s-4); }
.section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--s-3); padding-inline: var(--s-4); margin-bottom: var(--s-3);
}
.section__title { font-family: var(--font-head); font-size: var(--t-md); font-weight: 600; }
.section__more { font-size: var(--t-xs); font-weight: 600; color: var(--ink-3); }
.section__more:hover { color: var(--cyan); }

/* ---- Badges ------------------------------------------------------------- */

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px var(--s-2); border-radius: var(--r-xs);
  font-family: var(--font-head); font-size: var(--t-2xs); font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap;
}
.badge .ico { width: 13px; height: 13px; }
.badge--prism { background: var(--prism); color: #fff; }
.badge--gold  { background: rgba(251,191,36,.16); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(251,191,36,.34); }
.badge--mint  { background: rgba(52,211,153,.14); color: var(--mint); box-shadow: inset 0 0 0 1px rgba(52,211,153,.3); }
.badge--amber { background: rgba(245,158,11,.14); color: var(--amber); box-shadow: inset 0 0 0 1px rgba(245,158,11,.3); }
.badge--rose  { background: rgba(251,113,133,.14); color: var(--rose); box-shadow: inset 0 0 0 1px rgba(251,113,133,.3); }
.badge--sky   { background: rgba(56,189,248,.14); color: var(--sky); box-shadow: inset 0 0 0 1px rgba(56,189,248,.3); }
.badge--mute  { background: rgba(255,255,255,.08); color: var(--ink-2); }

.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

/* ---- Procedural key art ------------------------------------------------
   No licensed film stills exist for this prototype, so posters are generated:
   a layered gradient mesh keyed off --h (hue) with grain and a title lockup.
   Reads as art direction rather than as a missing asset.                    */

.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--r-sm);
  overflow: hidden;
  background:
    /* vignette, closest to the viewer */
    radial-gradient(130% 82% at 50% 40%, transparent 26%, rgba(0,0,0,.55) 72%, rgba(0,0,0,.9) 100%),
    /* the subject: a dark mass rising out of the lower third */
    radial-gradient(64% 46% at 50% 92%, #04030A 40%, transparent 78%),
    /* horizon glow behind it */
    linear-gradient(0deg, transparent 8%, hsl(calc(var(--h,280) + 14) 90% 46% / .38) 26%, transparent 52%),
    /* key light sweeping in from off-frame, upper left */
    radial-gradient(150% 110% at -18% -14%, hsl(var(--h,280) 95% 60% / .9), transparent 52%),
    /* cooler counter light from off-frame, right */
    radial-gradient(130% 96% at 124% 18%, hsl(calc(var(--h,280) + var(--h2,60)) 96% 54% / .72), transparent 54%),
    linear-gradient(168deg, #191331 0%, #06040D 62%, #030208 100%);
  isolation: isolate;
}
.poster::before {                       /* grain */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background-image: var(--grain);
  opacity: .09; mix-blend-mode: overlay;
}
.poster::after {                        /* bottom scrim for the title */
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 62%; z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.86));
}
.poster--wide { aspect-ratio: 16 / 9; }
.poster--hero { aspect-ratio: 3 / 4; }
.poster--tall { aspect-ratio: 9 / 16; }

.poster__t {
  position: absolute; z-index: 2; inset-inline: 0; bottom: 0;
  padding: var(--s-3);
  font-family: var(--font-brand);
  font-size: 10px; line-height: 1.3; letter-spacing: .04em;
  text-transform: uppercase; color: #fff;
  text-shadow: 0 1px 10px rgba(0,0,0,.8);
  /* Michroma is very wide — wrap hard rather than spill past the frame. */
  overflow-wrap: anywhere; word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.poster__badge { position: absolute; z-index: 2; top: var(--s-2); left: var(--s-2); }
.poster__pin   { position: absolute; z-index: 2; top: var(--s-2); right: var(--s-2); }

/* Faint diagonal light-streak — the prism catching the key art */
.poster__streak {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(102deg, transparent 32%, rgba(255,255,255,.14) 47%, transparent 58%);
  mix-blend-mode: screen;
}

/* ---- Rails -------------------------------------------------------------- */

.rail {
  display: flex; gap: var(--s-3);
  overflow-x: auto; padding-inline: var(--s-4);
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: none; scroll-snap-align: start; }

.tile {
  width: 124px;
  display: flex; flex-direction: column; gap: 0;
  text-align: left;
}
.tile--lg { width: 148px; }
.tile--wide { width: 244px; }

/* The artwork sits in its own frame so hover can scale it without moving
   the caption — layout must never shift under the pointer. */
.tile__art {
  display: block;
  position: relative; overflow: hidden;
  border-radius: var(--r-sm);
  box-shadow: var(--sh-1);
  transition: transform var(--base) var(--ease), box-shadow var(--base) var(--ease);
}
.tile:hover .tile__art { transform: translateY(-2px) scale(1.015); box-shadow: var(--sh-2), var(--glow-prism); }
.tile:focus-visible .tile__art { outline: 2px solid var(--cyan); outline-offset: 2px; }

.tile__cap {
  display: -webkit-box;
  margin-top: 9px;
  font-size: var(--t-xs); font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tile__sub {
  display: block;
  margin-top: 2px;
  font-size: var(--t-2xs); color: var(--ink-3); line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--s-3); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s-2); }

/* Poster grid — cards stretch to the column and rows align on the caption. */
.pgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5) var(--s-3);
  align-items: start;
}
.pgrid .tile { width: 100%; }

/* ---- Forms -------------------------------------------------------------- */

.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
  font-size: var(--t-xs); font-weight: 600; color: var(--ink-2);
}
.field__hint { font-size: var(--t-2xs); color: var(--ink-3); }
.field__err  { font-size: var(--t-2xs); color: var(--rose); }

.input, .textarea, .select {
  width: 100%; min-height: var(--tap);
  padding: var(--s-3);
  background: var(--surface-3);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  color: var(--ink); font-size: var(--t-sm);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: rgba(41,182,246,.7);
  box-shadow: 0 0 0 3px rgba(41,182,246,.16);
}
.textarea { min-height: 96px; resize: vertical; line-height: var(--lh-body); }
.select { appearance: none; padding-right: var(--s-8); cursor: pointer; }
.field--sel { position: relative; }
.field--sel .ico { position: absolute; right: var(--s-3); bottom: 12px; pointer-events: none; color: var(--ink-3); }

.check { display: flex; align-items: flex-start; gap: var(--s-3); min-height: var(--tap); cursor: pointer; }
.check input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.check__box {
  flex: none; width: 20px; height: 20px; margin-top: 2px;
  border-radius: 6px; border: 1.5px solid var(--hairline-strong);
  display: grid; place-items: center;
  transition: all var(--fast) var(--ease);
}
.check__box .ico { width: 14px; height: 14px; opacity: 0; stroke-width: 2.6; color: #fff; }
.check input:checked + .check__box { background: var(--prism); border-color: transparent; }
.check input:checked + .check__box .ico { opacity: 1; }
.check input:focus-visible + .check__box { outline: 2px solid var(--cyan); outline-offset: 2px; }

.switch {
  position: relative; flex: none;
  width: 46px; height: 28px; border-radius: var(--r-pill);
  background: var(--surface-4); cursor: pointer;
  transition: background var(--fast) var(--ease);
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink-2);
  transition: transform var(--base) var(--ease), background var(--fast);
}
.switch[aria-checked="true"] { background: var(--prism); }
.switch[aria-checked="true"]::after { transform: translateX(18px); background: #fff; }

/* File drop zone */
.drop {
  display: grid; place-items: center; gap: var(--s-2);
  padding: var(--s-7) var(--s-4);
  border: 1.5px dashed var(--hairline-strong);
  border-radius: var(--r-md);
  background: var(--surface-3);
  text-align: center; cursor: pointer;
  transition: all var(--fast) var(--ease);
}
.drop:hover { border-color: rgba(193,63,224,.6); background: rgba(193,63,224,.06); }
.drop .ico { color: var(--ink-3); }

/* ---- Lists -------------------------------------------------------------- */

.list { display: flex; flex-direction: column; }
.item {
  display: flex; align-items: center; gap: var(--s-3);
  width: 100%; min-height: 56px;
  padding: var(--s-3) var(--s-4);
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  transition: background var(--fast) var(--ease);
}
.item:hover { background: rgba(255,255,255,.04); }
.item:last-child { border-bottom: 0; }
.item__t { font-size: var(--t-sm); font-weight: 600; }
.item__s { font-size: var(--t-xs); color: var(--ink-3); }
.item__ico {
  display: grid; place-items: center; flex: none;
  width: 38px; height: 38px; border-radius: var(--r-sm);
  background: var(--surface-3); color: var(--ink-2);
}

.avatar {
  display: grid; place-items: center; flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--prism); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: var(--t-sm);
}
.avatar--lg { width: 76px; height: 76px; font-size: var(--t-2xl); border-radius: var(--r-md); }
.avatar--sm { width: 28px; height: 28px; font-size: var(--t-2xs); }

/* ---- Stats & meters ----------------------------------------------------- */

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat__v { font-family: var(--font-head); font-size: var(--t-xl); font-weight: 700; font-variant-numeric: tabular-nums; }
.stat__k { font-size: var(--t-2xs); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.stat__d { font-size: var(--t-2xs); font-weight: 600; }
.stat__d--up { color: var(--mint); }
.stat__d--dn { color: var(--rose); }

.meter { height: 6px; border-radius: var(--r-pill); background: var(--surface-4); overflow: hidden; }
.meter__f { height: 100%; border-radius: inherit; background: var(--prism); transition: width var(--slow) var(--ease); }
.meter__f--mint { background: linear-gradient(90deg, #34D399, #10B981); }
.meter__f--gold { background: linear-gradient(90deg, #FBBF24, #F59E0B); }
.meter__f--rose { background: linear-gradient(90deg, #FB7185, #E11D48); }

/* ---- Sheets & modals ---------------------------------------------------- */

.scrim {
  position: fixed; inset: 0; z-index: var(--z-sheet);
  background: var(--scrim); backdrop-filter: blur(3px);
  animation: fade var(--base) var(--ease) both;
}

.sheet {
  position: fixed; inset-inline: 0; bottom: 0; z-index: calc(var(--z-sheet) + 1);
  max-height: 84vh; overflow-y: auto;
  padding: var(--s-3) var(--s-4) calc(var(--safe-b) + var(--s-4));
  background: var(--surface-2);
  border-top: 1px solid var(--hairline-strong);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: var(--sh-3);
  animation: sheet-up var(--slow) var(--ease) both;
}
.sheet::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 1px;
  background: var(--prism); opacity: .5;
}
.sheet__grab {
  width: 38px; height: 4px; border-radius: 2px;
  background: var(--hairline-strong); margin: 0 auto var(--s-4);
}
@keyframes sheet-up { from { transform: translateY(100%) } to { transform: none } }

.modal {
  position: fixed; z-index: var(--z-modal);
  inset: auto var(--s-4) auto var(--s-4); top: 50%;
  transform: translateY(-50%);
  padding: var(--s-5);
  background: var(--surface-2);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-md);
  box-shadow: var(--sh-3);
  animation: rise var(--base) var(--ease) both;
}

.toast {
  position: fixed; z-index: var(--z-toast);
  inset-inline: var(--s-4); bottom: calc(var(--nav-h) + var(--safe-b) + var(--s-3));
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--surface-4);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-3);
  font-size: var(--t-sm);
  animation: rise var(--base) var(--ease) both;
}
.toast--ok  { border-color: rgba(52,211,153,.4); }
.toast--err { border-color: rgba(251,113,133,.4); }

/* ---- Empty / skeleton --------------------------------------------------- */

.empty {
  display: grid; place-items: center; gap: var(--s-3);
  padding: var(--s-10) var(--s-5); text-align: center;
}
.empty .ico { width: 40px; height: 40px; color: var(--ink-3); }

@keyframes shimmer { to { background-position-x: -200% } }
.skel {
  background: linear-gradient(90deg, var(--surface-3) 40%, var(--surface-4) 50%, var(--surface-3) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  border-radius: var(--r-xs);
}

/* ---- Notes -------------------------------------------------------------- */

/* Prototype disclosure — used where demo data stands in for live data */
.note {
  display: flex; gap: var(--s-2); align-items: flex-start;
  padding: var(--s-3);
  background: rgba(56,189,248,.07);
  border: 1px solid rgba(56,189,248,.22);
  border-radius: var(--r-sm);
  font-size: var(--t-2xs); color: var(--ink-2); line-height: 1.5;
}
.note .ico { width: 15px; height: 15px; color: var(--sky); flex: none; margin-top: 1px; }
.note--warn { background: rgba(245,158,11,.07); border-color: rgba(245,158,11,.24); }
.note--warn .ico { color: var(--amber); }

/* Requirement tag — links a screen back to the contract clause it satisfies */
.req {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 7px; border-radius: var(--r-xs);
  background: rgba(124,58,237,.16);
  color: #C9A8FF;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .02em;
}

/* ---- Photographic key art ----------------------------------------------
   Where a title has a photo, it replaces the procedural gradient and the
   brand tint sits over it so the whole catalogue still reads as one system. */

/* No background override: the procedural gradient stays underneath the photo,
   so a slow or failed image shows branded key art rather than a black box. */
.poster__img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* the source art is graded down at build time; lift it back a little */
  filter: brightness(1.14) saturate(1.06);
}
.poster__tint {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(126% 84% at 50% 38%, transparent 28%, rgba(0,0,0,.5) 74%, rgba(0,0,0,.88) 100%),
    linear-gradient(152deg,
      hsl(var(--h, 280) 85% 46% / .30) 0%,
      transparent 46%,
      hsl(calc(var(--h, 280) + var(--h2, 60)) 88% 48% / .26) 100%);
}
