/* Kino theme: PALAIS, the old picture palace (default theme).
   A 1930s picture palace minutes before the lights go down: oxblood velvet, brass rails,
   cream programme card. Cormorant Garamond for display, Jost for the interface, Antonio for spines.
   Contract: docs/design/themes-contract.md. Every rule is scoped to [data-kino-theme='palais'].
   Contrast (WCAG): fg #f2e4c9 on bg 15.4:1 · muted #b89b74 on bg 7.3:1, on surface 6.8:1 ·
   brass #c9a24a on bg 8.0:1 · accent-fg #1c080c on brass 7.9:1 (5.6:1 on the darkest gradient stop). */

/* ---------- Tokens ---------- */

[data-kino-theme='palais'] {
  /* Palette */
  --bg: #1c080c;            /* velvet */
  --surface: #2a0e14;       /* box seat */
  --fg: #f2e4c9;            /* cream programme card */
  --muted: #b89b74;         /* faded gilt */
  --line: #4d2228;          /* seam */
  --accent: #c9a24a;        /* brass */
  --accent-fg: #1c080c;
  --accent-2: #8e1b2a;      /* curtain red */

  /* Light and texture */
  --floor: rgba(0, 0, 0, .6);
  --amb-opacity: .46;
  --amb-blur: 140px;
  --grain-blend: soft-light;
  --grain-opacity: .45;
  --case-shadow: 0 34px 60px -26px rgba(0, 0, 0, .95), 0 0 0 1px rgba(201, 162, 74, .24);
  --title-shadow: 0 1px 0 rgba(0, 0, 0, .35), 0 0 28px rgba(201, 162, 74, .14);
  --floor-line: linear-gradient(90deg, transparent, #b58a3a 18%, #e7c873 34%, #fff1c4 50%, #e7c873 66%, #b58a3a 82%, transparent);
  --wall: none; /* the wall is drawn by body::before below */

  /* Type */
  --font-display: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --font-ui: 'Jost', 'Futura', system-ui, sans-serif;
  --font-spine: 'Antonio', 'Arial Narrow', sans-serif;

  /* Palais-only helpers */
  --brass-hi: #f1d891;
  --brass-lo: #9a7432;
  --brass-a35: rgba(201, 162, 74, .35);
  --brass-a60: rgba(201, 162, 74, .6);
  --brass-metal: linear-gradient(180deg, #ecd087 0%, #d3ae58 42%, #b88f3e 100%);
  --brass-rule: linear-gradient(90deg, transparent, var(--brass-a60) 12%, var(--brass-a60) 88%, transparent);
  --curtain: clamp(16px, 3vw, 120px);
  --bulb-gap: 14px;
  /* Deco ornament: rule, diamond, rule (30 x 7) */
  --orn-diamond: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='7' viewBox='0 0 30 7'%3E%3Cpath d='M0 3.5h10M20 3.5h10' stroke='%23c9a24a' stroke-width='1'/%3E%3Cpath d='M15 0l3.5 3.5L15 7l-3.5-3.5z' fill='%23c9a24a'/%3E%3C/svg%3E");
  /* Deco fan for the top bar centre (40 x 10) */
  --orn-fan: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='10' viewBox='0 0 40 10'%3E%3Cg fill='none' stroke='%23c9a24a' stroke-width='.9'%3E%3Cpath d='M20 9.5L12 1.5M20 9.5L16 .8M20 9.5V.5M20 9.5L24 .8M20 9.5L28 1.5'/%3E%3Cpath d='M9 9.5h22' /%3E%3C/g%3E%3Cpath d='M20 6.5l2 2-2 2-2-2z' fill='%23e7c873'/%3E%3C/svg%3E");
  /* Eyebrow lead: rule and diamond (26 x 9) */
  --orn-lead: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='9' viewBox='0 0 26 9'%3E%3Cpath d='M0 3.5h16M0 5.5h16' stroke='%23c9a24a' stroke-width='.8'/%3E%3Cpath d='M21.5 0l4.5 4.5-4.5 4.5L17 4.5z' fill='%23c9a24a'/%3E%3C/svg%3E");
  /* Deco corner brackets for cards */
  --deco-corners:
    linear-gradient(var(--brass-a60), var(--brass-a60)) left 6px top 6px / 10px 1px no-repeat,
    linear-gradient(var(--brass-a60), var(--brass-a60)) left 6px top 6px / 1px 10px no-repeat,
    linear-gradient(var(--brass-a60), var(--brass-a60)) right 6px top 6px / 10px 1px no-repeat,
    linear-gradient(var(--brass-a60), var(--brass-a60)) right 6px top 6px / 1px 10px no-repeat,
    linear-gradient(var(--brass-a60), var(--brass-a60)) left 6px bottom 6px / 10px 1px no-repeat,
    linear-gradient(var(--brass-a60), var(--brass-a60)) left 6px bottom 6px / 1px 10px no-repeat,
    linear-gradient(var(--brass-a60), var(--brass-a60)) right 6px bottom 6px / 10px 1px no-repeat,
    linear-gradient(var(--brass-a60), var(--brass-a60)) right 6px bottom 6px / 1px 10px no-repeat;
}

/* ---------- The house: curtains at the edges, footlight wash at the bottom ---------- */

/* One fixed layer: velvet pleats left and right, a warm footlight band along the bottom.
   The mask keeps it to the outer edges, so it never sits under page text. */
[data-kino-theme='palais'] body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    /* shading of the folds: darker at the top (valance) and the floor */
    linear-gradient(180deg, rgba(6, 1, 2, .55), transparent 22%, transparent 78%, rgba(6, 1, 2, .6)) left top / var(--curtain) 100% no-repeat,
    linear-gradient(180deg, rgba(6, 1, 2, .55), transparent 22%, transparent 78%, rgba(6, 1, 2, .6)) right top / var(--curtain) 100% no-repeat,
    /* pleats: shadow, cloth, crest, cloth, shadow, every 28px */
    repeating-linear-gradient(90deg, rgba(8, 1, 3, .75) 0, #5a0f1a 7px, #8e1b2a 12px, #a8394a 14px, #7a1622 18px, rgba(8, 1, 3, .75) 28px) left top / var(--curtain) 100% no-repeat,
    repeating-linear-gradient(270deg, rgba(8, 1, 3, .75) 0, #5a0f1a 7px, #8e1b2a 12px, #a8394a 14px, #7a1622 18px, rgba(8, 1, 3, .75) 28px) right top / var(--curtain) 100% no-repeat,
    /* footlights: a warm brass wash rising from the stage edge */
    radial-gradient(60% 100% at 50% 100%, rgba(231, 200, 115, .13), rgba(201, 162, 74, .05) 45%, transparent 75%) center bottom / 100% 160px no-repeat;
  -webkit-mask-image:
    linear-gradient(90deg, #000 0, #000 calc(var(--curtain) * .35), transparent var(--curtain), transparent calc(100% - var(--curtain)), #000 calc(100% - var(--curtain) * .35), #000 100%),
    linear-gradient(0deg, #000 0, transparent 160px);
  mask-image:
    linear-gradient(90deg, #000 0, #000 calc(var(--curtain) * .35), transparent var(--curtain), transparent calc(100% - var(--curtain)), #000 calc(100% - var(--curtain) * .35), #000 100%),
    linear-gradient(0deg, #000 0, transparent 160px);
}

/* Footlight: the ambient light rises from below, mixed 70/30 with brass so every poster stays warm. */
[data-kino-theme='palais'] .ambient {
  top: auto; bottom: -42vh;
  width: 112vw; height: 82vh;
  background-color: color-mix(in srgb, var(--amb) 70%, #c9a24a);
}

/* ---------- Type ---------- */

[data-kino-theme='palais'] body { font-weight: 400; letter-spacing: .005em; }
[data-kino-theme='palais'] .display { font-weight: 500; letter-spacing: -.01em; }
[data-kino-theme='palais'] .page-head h1,
[data-kino-theme='palais'] .profiles h1 { font-weight: 500; }
[data-kino-theme='palais'] .film-title { font-weight: 600; letter-spacing: -.015em; }
[data-kino-theme='palais'] .director-head h1 { font-weight: 500; font-style: italic; }

[data-kino-theme='palais'] .eyebrow {
  font-weight: 500; letter-spacing: .24em; color: var(--accent);
}
[data-kino-theme='palais'] .eyebrow::before {
  content: ''; display: inline-block; width: 26px; height: 9px; margin-right: 10px; vertical-align: 0;
  background: var(--orn-lead) center / 26px 9px no-repeat;
}

[data-kino-theme='palais'] .small { font-weight: 400; }
[data-kino-theme='palais'] .meta { font-weight: 500; letter-spacing: .16em; }
[data-kino-theme='palais'] .synopsis { font-weight: 500; font-size: 22px; line-height: 1.5; }
[data-kino-theme='palais'] .byline { font-weight: 500; }
[data-kino-theme='palais'] .director-head .bio { font-weight: 500; font-size: 21px; }

/* ---------- Top bar ---------- */

[data-kino-theme='palais'] .topbar {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 82%, transparent), color-mix(in srgb, var(--bg) 70%, transparent));
}
/* Double brass rule with a deco fan in the centre, straddling the bar's lower edge. */
[data-kino-theme='palais'] .topbar::after {
  content: ''; position: absolute; left: 40px; right: 40px; bottom: -5px; height: 10px; pointer-events: none;
  background:
    var(--orn-fan) center / 40px 10px no-repeat,
    linear-gradient(90deg, transparent, var(--brass-a60) 18%, var(--brass-a60) calc(50% - 28px), transparent calc(50% - 28px),
      transparent calc(50% + 28px), var(--brass-a60) calc(50% + 28px), var(--brass-a60) 82%, transparent) 0 4px / 100% 1px no-repeat,
    linear-gradient(90deg, transparent, var(--brass-a35) 24%, var(--brass-a35) calc(50% - 28px), transparent calc(50% - 28px),
      transparent calc(50% + 28px), var(--brass-a35) calc(50% + 28px), var(--brass-a35) 76%, transparent) 0 7px / 100% 1px no-repeat;
}

[data-kino-theme='palais'] .brand { gap: 12px; }
[data-kino-theme='palais'] .brand-mark { font-weight: 600; font-style: italic; font-size: 32px; letter-spacing: .005em; }
[data-kino-theme='palais'] .brand-sub { font-weight: 500; letter-spacing: .3em; color: var(--accent); }

[data-kino-theme='palais'] .mainnav a { font-weight: 500; letter-spacing: .2em; }
[data-kino-theme='palais'] .mainnav a[aria-current='page'] {
  box-shadow: none; color: var(--fg);
  background: var(--orn-diamond) center calc(100% - 6px) / 30px 7px no-repeat;
}

[data-kino-theme='palais'] .icon-btn {
  border-color: var(--brass-a35); font-weight: 500; letter-spacing: .16em;
}
[data-kino-theme='palais'] .icon-btn:hover { border-color: var(--accent); color: var(--accent); }
[data-kino-theme='palais'] .icon-btn:disabled { border-color: var(--line); color: inherit; }
[data-kino-theme='palais'] .avatar {
  font-weight: 600;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--brass-a60);
}

/* ---------- Headings and rules ---------- */

[data-kino-theme='palais'] .section-head h2,
[data-kino-theme='palais'] .row-head h2 { font-weight: 500; letter-spacing: -.005em; }

/* Double brass rule (1px, 2px gap, 1px) with a diamond at its head. */
[data-kino-theme='palais'] .section-head {
  position: relative; border-bottom: 0;
  background:
    linear-gradient(90deg, var(--brass-a60), rgba(201, 162, 74, .18) 70%, transparent) left 14px bottom 3px / calc(100% - 14px) 1px no-repeat,
    linear-gradient(90deg, var(--brass-a35), rgba(201, 162, 74, .1) 60%, transparent) left 14px bottom 0 / calc(100% - 14px) 1px no-repeat;
}
[data-kino-theme='palais'] .section-head::after {
  content: ''; position: absolute; left: 1px; bottom: -2px; width: 7px; height: 7px; pointer-events: none;
  background: var(--accent); transform: rotate(45deg);
}

[data-kino-theme='palais'] .page-head { position: relative; }
[data-kino-theme='palais'] .page-head::after {
  content: ''; position: absolute; left: 0; bottom: -12px; width: min(320px, 60%); height: 4px; pointer-events: none;
  background:
    linear-gradient(90deg, var(--accent), transparent) 0 0 / 100% 1px no-repeat,
    linear-gradient(90deg, var(--brass-a60), transparent 80%) 0 3px / 100% 1px no-repeat;
}

/* Home shelves: a short rule-and-diamond flourish under each row title. */
[data-kino-theme='palais'] .row-head h2 { position: relative; }
[data-kino-theme='palais'] .row-head h2::after {
  content: ''; position: absolute; left: 0; bottom: -8px; width: 72px; height: 7px; pointer-events: none;
  background: linear-gradient(90deg, var(--accent), var(--brass-a35)) 0 3px / 58px 1px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='7'%3E%3Cpath d='M4 0l3.5 3.5L4 7 .5 3.5z' fill='%23c9a24a'/%3E%3C/svg%3E") 62px 0 / 8px 7px no-repeat;
}

[data-kino-theme='palais'] .footer {
  border-top: 0;
  background:
    var(--orn-diamond) center 0 / 30px 7px no-repeat,
    linear-gradient(90deg, transparent, var(--brass-a35) 20%, var(--brass-a35) calc(50% - 22px), transparent calc(50% - 22px),
      transparent calc(50% + 22px), var(--brass-a35) calc(50% + 22px), var(--brass-a35) 80%, transparent) 0 3px / 100% 1px no-repeat;
  letter-spacing: .04em;
}

/* ---------- Home hero ---------- */

/* The great word, gilded like a proscenium inscription. Decorative only (aria-hidden). */
[data-kino-theme='palais'] .hero-word {
  font-weight: 500; font-style: italic; letter-spacing: -.03em;
  color: transparent; opacity: .82; text-shadow: none;
  background: linear-gradient(180deg, #f7e7bf 0%, #dcbb68 36%, #a67c35 68%, #5b3a17 100%);
  -webkit-background-clip: text; background-clip: text;
}

/* ---------- Shelf: brass rail, cases, caption ---------- */

[data-kino-theme='palais'] .shelf-floor {
  background: radial-gradient(50% 50% at 50% 42%, var(--floor), transparent 72%);
}
/* Warm reflection of the footlights on the stage boards, under the rail. */
[data-kino-theme='palais'] .shelf-floor::before {
  content: ''; position: absolute; left: 12%; right: 12%; top: 70%; height: 40%; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 30%, rgba(231, 200, 115, .16), transparent 75%);
}
/* The rail itself: a polished highlight over a shaded underside, set at the feet of the cases. */
[data-kino-theme='palais'] .shelf-floor::after {
  content: ''; position: absolute; left: 0; right: 0; top: 88%; height: 4px; transform: translateY(-50%); pointer-events: none;
  background:
    var(--floor-line) 0 0 / 100% 2px no-repeat,
    linear-gradient(90deg, transparent, rgba(92, 62, 22, .95) 22%, rgba(130, 92, 36, .95) 50%, rgba(92, 62, 22, .95) 78%, transparent) 0 2px / 100% 2px no-repeat;
  box-shadow: 0 6px 14px -6px rgba(231, 200, 115, .35);
}
[data-kino-theme='palais'] .shelf--arc .shelf-floor::after { top: 85%; left: 8%; right: 8%; }

/* Caption: Cormorant for the title, italic for the original title, Jost for the line below. */
[data-kino-theme='palais'] .cap-title { font-weight: 600; letter-spacing: -.005em; }
[data-kino-theme='palais'] .cap-orig {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 17px; letter-spacing: .01em; text-transform: none; color: var(--accent);
}
[data-kino-theme='palais'] .cap-meta { letter-spacing: .02em; }

/* Signature: marquee bulbs under the title in focus.
   ::after is the row of 9 bulbs; ::before is the bright halo that runs along them.
   The caption is rebuilt on every focus change, so the run replays each time.
   Resting state (and reduced motion): bulbs lit, no halo. Only opacity and transform animate. */
[data-kino-theme='palais'] .cap-item { position: relative; }
[data-kino-theme='palais'] .cap-item::after {
  content: ''; flex: none; width: calc(var(--bulb-gap) * 9); height: 8px; margin-top: 8px; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, #fff6d8 0 1.1px, #f0c35a 1.9px, rgba(201, 162, 74, .38) 3px, transparent 3.7px)
    0 0 / var(--bulb-gap) 8px repeat-x;
  opacity: .9;
  animation: palais-bulbs-warm 1.3s steps(9, jump-start) .25s both;
}
[data-kino-theme='palais'] .cap-item::before {
  content: ''; position: absolute; left: 50%; bottom: 0; pointer-events: none;
  width: var(--bulb-gap); height: 20px;
  margin-left: calc(var(--bulb-gap) * -4.5); margin-bottom: -1px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 246, 216, .95) 0 1.6px, rgba(240, 195, 90, .6) 3px, rgba(231, 200, 115, .18) 6px, transparent 9px);
  opacity: 0;
  animation: palais-bulbs-chase 1.3s linear .25s both;
}
[data-kino-theme='palais'] .cap-item[data-leaving]::before { display: none; }
[data-kino-theme='palais'] .shelf--straight { --bulb-gap: 11px; }

@keyframes palais-bulbs-warm {
  from { opacity: .16; }
  to { opacity: .9; }
}
@keyframes palais-bulbs-chase {
  0% { opacity: 0; transform: translateX(0); }
  3% { opacity: 1; transform: translateX(0); animation-timing-function: steps(8, jump-end); }
  88% { opacity: 1; transform: translateX(calc(var(--bulb-gap) * 8)); }
  100% { opacity: 0; transform: translateX(calc(var(--bulb-gap) * 8)); }
}

[data-kino-theme='palais'] .shelf-arrow { border-color: var(--brass-a35); }
[data-kino-theme='palais'] .shelf-arrow:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Covers, spines, badges ---------- */

[data-kino-theme='palais'] .cover-title { font-weight: 700; letter-spacing: .01em; }
[data-kino-theme='palais'] .cover-kicker { font-weight: 500; letter-spacing: .22em; }

/* Format badge as a small brass plate. */
[data-kino-theme='palais'] .cover-badge {
  font-weight: 700; letter-spacing: .08em;
  color: #1c080c; border-color: rgba(28, 8, 12, .55);
  background: var(--brass-metal);
  box-shadow: 0 .6cqw 1.6cqw rgba(0, 0, 0, .45);
}

[data-kino-theme='palais'] .spine-title { font-weight: 700; letter-spacing: .04em; }
[data-kino-theme='palais'] .spine-dir { font-weight: 500; letter-spacing: .12em; }
[data-kino-theme='palais'] .spine-badge { font-weight: 700; letter-spacing: .04em; }
/* Gold-foil double bands at the head and foot of every spine (inside the padding, clear of the text). */
[data-kino-theme='palais'] .spine::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--brass-lo), var(--brass-hi) 50%, var(--brass-lo)) 50% 5cqw / 66% 1.6cqw no-repeat,
    linear-gradient(90deg, var(--brass-lo), var(--brass-hi) 50%, var(--brass-lo)) 50% 8.4cqw / 66% .8cqw no-repeat,
    linear-gradient(90deg, var(--brass-lo), var(--brass-hi) 50%, var(--brass-lo)) 50% calc(100% - 8.4cqw) / 66% .8cqw no-repeat,
    linear-gradient(90deg, var(--brass-lo), var(--brass-hi) 50%, var(--brass-lo)) 50% calc(100% - 5cqw) / 66% 1.6cqw no-repeat;
  opacity: .85;
}

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

/* Deco frame: outer brass line, a gap, then an inner hairline. */
[data-kino-theme='palais'] .btn {
  border-radius: 1px; border-color: var(--brass-a60);
  font-weight: 500; letter-spacing: .2em;
  box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 4px var(--brass-a35);
}
[data-kino-theme='palais'] .btn:hover {
  filter: none; border-color: var(--accent);
  background-color: rgba(201, 162, 74, .1);
}
[data-kino-theme='palais'] .btn-primary {
  border-color: #e7c873; color: var(--accent-fg); font-weight: 600;
  background: var(--brass-metal);
  box-shadow: inset 0 0 0 3px #d4b05c, inset 0 0 0 4px rgba(28, 8, 12, .38),
    0 10px 26px -14px rgba(231, 200, 115, .55);
}
[data-kino-theme='palais'] .btn-primary:hover {
  background: linear-gradient(180deg, #f4dc9b 0%, #dcb864 42%, #c09744 100%);
}
[data-kino-theme='palais'] .btn:disabled { filter: none; }

[data-kino-theme='palais'] .back {
  border-radius: 1px; border-color: var(--brass-a35); font-weight: 500; letter-spacing: .18em;
}
[data-kino-theme='palais'] .back:hover { border-color: var(--accent); color: var(--accent); }

[data-kino-theme='palais'] .chips { border-color: var(--brass-a35); border-radius: 2px; }
[data-kino-theme='palais'] .chip { font-weight: 500; letter-spacing: .14em; }
[data-kino-theme='palais'] .chip + .chip { border-left-color: var(--brass-a35); }
[data-kino-theme='palais'] .chip[aria-pressed='true'] {
  background: var(--brass-metal); color: var(--accent-fg); font-weight: 600;
}

[data-kino-theme='palais'] .pill { border-color: var(--brass-a35); }
[data-kino-theme='palais'] .pill:hover { border-color: var(--accent); }

/* ---------- Cards and lists ---------- */

[data-kino-theme='palais'] .resume-card,
[data-kino-theme='palais'] .dir-card {
  border-radius: 3px;
  background: var(--deco-corners), linear-gradient(180deg, rgba(201, 162, 74, .06), transparent 45%),
    color-mix(in srgb, var(--surface) 72%, transparent);
}
[data-kino-theme='palais'] .resume-card:hover,
[data-kino-theme='palais'] .dir-card:hover { border-color: var(--brass-a60); }
[data-kino-theme='palais'] .resume-card h3,
[data-kino-theme='palais'] .dir-card h3,
[data-kino-theme='palais'] .grid-item h3 { font-weight: 600; }

[data-kino-theme='palais'] .progress { background: rgba(201, 162, 74, .16); }
[data-kino-theme='palais'] .progress span { background: linear-gradient(90deg, #a67c35, #e7c873); }

[data-kino-theme='palais'] .sec-item,
[data-kino-theme='palais'] .episode,
[data-kino-theme='palais'] .theme-card {
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(201, 162, 74, .05), transparent 50%), color-mix(in srgb, var(--surface) 62%, transparent);
}
[data-kino-theme='palais'] .episode:hover { border-color: var(--brass-a60); }
[data-kino-theme='palais'] .ep-num { font-style: italic; font-weight: 600; }
[data-kino-theme='palais'] .theme-card[aria-checked='true'] {
  border-color: var(--accent); box-shadow: 0 0 0 1px var(--bg), 0 0 0 2px var(--brass-a60);
}
[data-kino-theme='palais'] .theme-name { font-weight: 600; letter-spacing: .04em; }

[data-kino-theme='palais'] .tech { border-top-color: var(--brass-a35); }
[data-kino-theme='palais'] .tech dt { font-weight: 500; letter-spacing: .2em; }
[data-kino-theme='palais'] .missing-note { border-color: var(--brass-a35); border-radius: 2px; }

[data-kino-theme='palais'] .field input { border-radius: 2px; }

[data-kino-theme='palais'] .profile-btn:hover .profile-face,
[data-kino-theme='palais'] .profile-btn:focus-visible .profile-face {
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--accent), 0 0 0 7px var(--bg), 0 0 0 8px var(--brass-a35);
}
[data-kino-theme='palais'] .profile-name { font-weight: 500; letter-spacing: .2em; }

/* ---------- Small screens: lighter ornaments ---------- */

@media (max-width: 860px) {
  [data-kino-theme='palais'] { --curtain: 10px; --bulb-gap: 10px; }
  [data-kino-theme='palais'] .shelf--straight { --bulb-gap: 9px; }
  [data-kino-theme='palais'] body::before {
    background:
      repeating-linear-gradient(90deg, rgba(8, 1, 3, .75) 0, #6d1420 5px, #8e1b2a 8px, rgba(8, 1, 3, .75) 14px) left top / var(--curtain) 100% no-repeat,
      repeating-linear-gradient(270deg, rgba(8, 1, 3, .75) 0, #6d1420 5px, #8e1b2a 8px, rgba(8, 1, 3, .75) 14px) right top / var(--curtain) 100% no-repeat,
      radial-gradient(70% 100% at 50% 100%, rgba(231, 200, 115, .1), transparent 75%) center bottom / 100% 110px no-repeat;
    -webkit-mask-image: none; mask-image: none;
    opacity: .7;
  }
  [data-kino-theme='palais'] .topbar::after {
    left: 16px; right: 16px;
    background: linear-gradient(90deg, transparent, var(--brass-a35) 15%, var(--brass-a35) 85%, transparent) 0 4px / 100% 1px no-repeat;
  }
  [data-kino-theme='palais'] .eyebrow::before { width: 18px; margin-right: 8px; background-size: contain; }
  [data-kino-theme='palais'] .synopsis { font-size: 20px; }
  [data-kino-theme='palais'] .resume-card,
  [data-kino-theme='palais'] .dir-card {
    background: linear-gradient(180deg, rgba(201, 162, 74, .06), transparent 45%), color-mix(in srgb, var(--surface) 72%, transparent);
  }
}

/* Wide screens and TVs: deeper curtains, still outside the 1280px content column. */
@media (min-width: 1400px) {
  [data-kino-theme='palais'] { --curtain: clamp(56px, 4.6vw, 140px); }
}
