/* ==========================================================================
   暗场放映厅 · the drama module's cinema design layer (2026-11-25).
   Loaded after app.css, public_landing.css and public_workspace.css: it only overrides, by scope, and removes
   nothing from those sheets. Scopes: the theatre `.app[data-shell="theatre"] .public-drama`, the home band
   `.pub-home #public-drama` (drama_cinema_home.css) and the screening room `.dinner-cinema` (drama_cinema_home.css).
   Rules of the layer: one navy family and one warm accent (no purple); no decorative gradients (the only gradients
   are legibility scrims under text on pictures); no glow shadows, no blur, no positional bounce; nothing external.
   Design specification: engine/development/evidence/2026-11-25-drama-visual-redesign/d1-opus/DESIGN.md
   ========================================================================== */

/* ---------------------------------------------------------------- tokens (module-scoped; :root is untouched) */
.app[data-shell="theatre"], .public-drama, #public-drama, .dinner-cinema {
  /* the dark room: one navy family, pressed down from the site's ink #192849 */
  --cine-950: #070b16;
  --cine-900: #0b1120;
  --cine-850: #0f1729;
  --cine-800: #141d33;
  --cine-700: #1c2742;
  --cine-line: rgba(214, 224, 245, .14);
  --cine-line-strong: rgba(214, 224, 245, .28);
  --cine-fill: rgba(238, 242, 251, .07);
  --cine-fill-2: rgba(238, 242, 251, .13);
  --cine-text: #eef2fb;
  --cine-text-2: #b9c3d9;
  --cine-text-3: #8d99b3;
  /* one warm accent, the tungsten in the stills: "current" and "next step" only */
  --cine-warm: #e9b872;
  --cine-warm-hover: #f2c98d;
  --cine-warm-ink: #2a1c08;
  --cine-warm-soft: rgba(233, 184, 114, .14);
  /* the two leads */
  --cine-a: #f0c2a8;
  --cine-b: #a9c0f2;
  --cine-focus: #eef2fb;
  /* the lit page: the main site's paper and navy */
  --paper: #f6f3ec;
  --paper-2: #fffdf8;
  --paper-3: #eee8db;
  --paper-line: #e1d9c9;
  --paper-line-strong: #c8bea9;
  --paper-ink: #192849;
  --paper-ink-2: #43536e;
  --paper-ink-3: #5a6781;
  --paper-primary: #284998;
  --paper-primary-hover: #1e397c;
  --paper-select: rgba(40, 73, 152, .07);
  --paper-focus: #5477c0;
  --paper-warm-bg: #f0e0bf;
  --paper-warm-ink: #5c3f0e;
  --paper-hold: #5f6f94;
  --paper-a: #8f4422;          /* 林夏 on paper */
  --paper-b: #2b4a93;          /* 陈默 on paper */
  /* type: the site's own stacks */
  --serif: ui-serif, Georgia, "Noto Serif SC", "Noto Serif JP", "Songti SC", "Source Han Serif SC", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "PingFang SC", "Microsoft YaHei", sans-serif;
  --fs-display: clamp(30px, 3.05vw, 44px);
  --fs-feature: clamp(26px, 2.3vw, 34px);
  --fs-title: clamp(20px, 1.6vw, 24px);
  --fs-line: clamp(18px, 1.5vw, 23px);
  --fs-card-title: clamp(20px, 1.55vw, 24px);
  --fs-h3: 19px;
  --fs-body: 15px;
  --fs-small: 13px;
  --fs-label: 11.5px;
  --track-label: .14em;
  /* space (4px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  /* shape */
  --r-screen: 4px;
  --r-poster: 4px;
  --r-card: 16px;
  --r-control: 10px;
  --r-pill: 999px;
  /* elevation: the dark room is flat; only lifted sheets cast a plain dark shadow */
  --lift-paper: 0 34px 80px -44px rgba(0, 0, 0, .85);
  --lift-pop: 0 22px 56px -24px rgba(0, 0, 0, .8);
  /* motion: slow, steady, sparse */
  --t-quick: 160ms;
  --t-base: 240ms;
  --t-slow: 420ms;
  --t-house: 800ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-inout: cubic-bezier(.45, 0, .2, 1);
}
/* type by language: each script reaches its own faces first, so a Simplified Chinese word never mixes in Japanese glyphs (or
   Traditional Chinese reads in Japanese forms); English keeps the stacks above. The :is() carries the id's weight, so these win
   over the shared stacks in all four scopes. */
:is(.app[data-shell="theatre"], .public-drama, #public-drama, .dinner-cinema):lang(zh-CN) {
  --serif: ui-serif, Georgia, "Noto Serif SC", "Songti SC", "Source Han Serif SC", "SimSun", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", "Hiragino Sans GB", sans-serif;
}
:is(.app[data-shell="theatre"], .public-drama, #public-drama, .dinner-cinema):lang(zh-TW) {
  --serif: ui-serif, Georgia, "Noto Serif TC", "Songti TC", "Source Han Serif TC", "PMingLiU", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Source Han Sans TC", sans-serif;
}
:is(.app[data-shell="theatre"], .public-drama, #public-drama, .dinner-cinema):lang(ja) {
  --serif: ui-serif, Georgia, "Hiragino Mincho ProN", "Noto Serif JP", "Yu Mincho", "Source Han Serif JP", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
}

/* ---------------------------------------------------------------- theatre */
/* The theatre at /?view=drama (seat T, 2026-11-25). While watching, the interface steps back to four places: the title slate
   (title and room controls / episode reel and story actions), the screen, the subtitle in its lower third and one transport row.
   When it is the viewer's turn (question, reflection, co-writing, receipt, ending) the house lights come up: the picture holds on
   the left and the main site's paper card lights on the right. Any sheet opened beside the picture on a wide screen (script,
   subtext lens, controls card, story shelf, parallel branches) takes that same right-hand column, so no overlay ever covers the
   two leads; at tablet width and below the sheets rise from the bottom over a dimmed house.
   Every rule is scoped to `.app[data-shell="theatre"] .public-drama` (the internal demo shares class names and stays untouched);
   legacy rules in app.css / public_workspace.css are overridden by scope, never removed. Motion: opacity and colour only. */

/* ---- the house and its shell (page, top bar tint, the column the theatre sits in) */
body:has(.app[data-shell="theatre"]) { background: #070b16; }
.app[data-shell="theatre"] {
  background: var(--cine-950); color: var(--cine-text);
  transition: background-color var(--t-house) var(--ease-inout);
}
/* the viewer's turn: the room lifts one step while the paper card is lit */
.app[data-shell="theatre"]:has(.public-drama:is([data-beat="question"], [data-beat="reflection"], [data-beat="cowrite"], [data-beat="receipt"], [data-beat="end"])) {
  background: var(--cine-850);
}
.app[data-shell="theatre"] .public-bar {
  background: rgba(7, 11, 22, .88); border-bottom-color: var(--cine-line); box-shadow: none; color: var(--cine-text-2);
}
.app[data-shell="theatre"] .public-bar nav button { color: var(--cine-text-2); }
.app[data-shell="theatre"] .public-bar nav button:hover { background: var(--cine-fill); color: var(--cine-text); }
.app[data-shell="theatre"] .public-bar .public-bar-inner > nav > button.btn.is-active[aria-current="page"] {
  background: var(--cine-fill-2); color: var(--cine-text); box-shadow: inset 0 0 0 1px var(--cine-line-strong);
}
.app[data-shell="theatre"] .public-bar :focus-visible { outline-color: var(--cine-focus); }
.app[data-shell="theatre"] .public-bar .public-lang { background: transparent; color: var(--cine-text); border-color: var(--cine-line-strong); }
.app[data-shell="theatre"] .public-round { background: var(--cine-fill); color: var(--cine-text-2); box-shadow: inset 0 0 0 1px var(--cine-line); }
.app[data-shell="theatre"] > .public-work { width: 100%; max-width: none; margin: 0; padding: 0; }

/* ---- the theatre column: one width for slate, screen, transport and the split viewer's turn, so beats never jump.
   Wide screens size it by the viewport height (the transport always sits in the first screen), narrow ones by the width. */
.app[data-shell="theatre"] .public-drama {
  --gutter: 40px;
  --chrome: 288px;   /* everything in the first screen that is not the picture, the first line of the episode's situation under the transport included */
  --split-gap: clamp(28px, 3vw, 44px);
  position: relative; box-sizing: border-box;
  width: min(1200px, calc(100% - 2 * var(--gutter)), max(720px, calc((100svh - var(--chrome)) * 16 / 9)));
  margin: 0 auto; padding: 18px 0 28px; border-radius: 0; background: none; color: var(--cine-text); font-family: var(--sans);
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); column-gap: var(--split-gap); row-gap: 0;
  align-items: start; flex: none;
}
.app[data-shell="theatre"] .public-drama > .public-drama-head { grid-column: 1 / -1; grid-row: 1; }
.app[data-shell="theatre"] .public-drama > .drama-theatre { grid-column: 1 / -1; grid-row: 2; }
.app[data-shell="theatre"] .public-drama > .drama-notice { grid-column: 1 / -1; grid-row: 2; }
.app[data-shell="theatre"] .public-drama > :is(.drama-shelf, .drama-branches) { grid-column: 2; grid-row: 2; }
.app[data-shell="theatre"] .public-drama > .drama-foot { grid-column: 1 / -1; grid-row: 3; }
.app[data-shell="theatre"] .public-drama ::selection { background: rgba(169, 192, 242, .3); }

/* ---- atoms: quiet buttons on the dark, one warm primary, the focus ring (white on the dark, blue on paper) */
.app[data-shell="theatre"] .public-drama .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 1px solid transparent; border-radius: var(--r-pill); background: transparent; color: var(--cine-text); box-shadow: none;
  font: 600 14px/1.2 var(--sans); letter-spacing: 0; white-space: nowrap; cursor: pointer; transform: none; animation: none;
  transition: background-color var(--t-quick) var(--ease), color var(--t-quick) var(--ease), border-color var(--t-quick) var(--ease),
    opacity var(--t-quick) var(--ease);
}
.app[data-shell="theatre"] .public-drama .btn:is(:hover, :active) { transform: none; }
.app[data-shell="theatre"] .public-drama .btn-line { border-color: var(--cine-line-strong); background: transparent; color: var(--cine-text); }
.app[data-shell="theatre"] .public-drama .btn-line:hover:not(:disabled) { border-color: var(--cine-text-3); background: var(--cine-fill); color: var(--cine-text); box-shadow: none; }
.app[data-shell="theatre"] .public-drama .btn-quiet { color: var(--cine-text-2); }
.app[data-shell="theatre"] .public-drama .btn-quiet:hover:not(:disabled) { background: var(--cine-fill); color: var(--cine-text); }
.app[data-shell="theatre"] .public-drama .btn-primary {
  min-height: 44px; padding: 0 22px; border-color: transparent; background: var(--cine-warm); color: var(--cine-warm-ink); font-size: 15px;
  box-shadow: none;
}
.app[data-shell="theatre"] .public-drama .btn-primary:hover:not(:disabled) { background: var(--cine-warm-hover); color: var(--cine-warm-ink); }
.app[data-shell="theatre"] .public-drama .btn:disabled,
.app[data-shell="theatre"] .public-drama .btn:disabled:hover { opacity: .42; cursor: not-allowed; transform: none; }
.app[data-shell="theatre"] .public-drama .btn :is(.icon) { width: 16px; height: 16px; }
.app[data-shell="theatre"] .public-drama :focus-visible { outline: 2px solid var(--cine-focus); outline-offset: 3px; }
.app[data-shell="theatre"] .public-drama :is(.drama-tok, .drama-clause) { animation: none; }

/* ---- the title slate: title | room controls, then episode reel | story actions */
.app[data-shell="theatre"] .public-drama .public-drama-head {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title tools" "reel story";
  align-items: center; column-gap: 24px; row-gap: 6px; margin: 0; padding: 0 0 14px; min-width: 0;
}
.app[data-shell="theatre"] .public-drama .drama-heading { grid-area: title; display: block; justify-items: normal; min-width: 0; margin: 0; }
.app[data-shell="theatre"] .public-drama .drama-heading .dinner-format { display: none; }
.app[data-shell="theatre"] .public-drama .drama-heading h1 {
  margin: 0; min-width: 0; font: 600 var(--fs-title)/1.3 var(--serif); letter-spacing: -.005em; color: var(--cine-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* wide screens: a long title takes a second line, balanced, before anything is cut (two lines of it stand no taller than the room
   controls beside them plus a little, so the screen below barely moves) */
@media (min-width: 901px) {
  .app[data-shell="theatre"] .public-drama .drama-heading h1 {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.2; white-space: normal; text-wrap: balance;
  }
  /* the slate answers to its own width: when it runs narrow, the workbench key keeps its arrow only (its name floats on hover and
     focus, as on the other icon keys), leaving the title the room. Chinese names are short, so they stay written out longer. */
  .app[data-shell="theatre"] .public-drama .public-drama-head { container: drama-slate / inline-size; }
  @container drama-slate (max-width: 1099px) {
    .app[data-shell="theatre"] .public-drama:not(:lang(zh)) .public-drama-tools .public-drama-control.cine-bench { width: 36px; padding: 0; justify-content: center; }
    .app[data-shell="theatre"] .public-drama:not(:lang(zh)) .public-drama-tools .public-drama-control.cine-bench .cine-bench-label {
      position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
    }
  }
  @container drama-slate (max-width: 1039px) {
    .app[data-shell="theatre"] .public-drama:lang(zh) .public-drama-tools .public-drama-control.cine-bench { width: 36px; padding: 0; justify-content: center; }
    .app[data-shell="theatre"] .public-drama:lang(zh) .public-drama-tools .public-drama-control.cine-bench .cine-bench-label {
      position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
    }
  }
  /* English and Japanese menus in the site's top bar take two lines below about 1200px wide: the theatre then keeps that much more
     of the window for the chrome above the screen, so the transport still ends inside the first screen */
  @media (max-width: 1199px) {
    .app[data-shell="theatre"] .public-drama:is(:lang(en), :lang(ja)) { --chrome: 344px; }
  }
}
/* the icon-only keys of the slate name themselves on hover and on keyboard focus, in the same small floating caption the episode
   reel uses (their own visually hidden names, so nothing is said twice to a screen reader); a switch that is on carries a dot.
   Touch screens without hover keep to the names in their accessible labels, as the reel does. */
@media (min-width: 901px) {
  .app[data-shell="theatre"] .public-drama .public-drama-tools :is(.drama-sound .public-drama-control, .drama-still-toggle, .drama-keys-toggle):focus-visible :is(.drama-sound-label, .drama-still-label, .cine-tool-label),
  .app[data-shell="theatre"] .public-drama:is(:lang(en), :lang(ja)) .public-drama-tools .cine-leave:focus-visible .cine-tool-label {
    z-index: 12; top: calc(100% + 6px); left: 50%; translate: -50% 0; width: max-content; max-width: 16em; height: auto; margin: 0;
    padding: 6px 9px; overflow: visible; clip: auto; border: 1px solid var(--cine-line-strong); border-radius: 7px; background: var(--cine-800);
    box-shadow: var(--lift-pop); color: var(--cine-text); font: 500 12px/1.45 var(--sans); letter-spacing: .02em; white-space: nowrap; pointer-events: none;
  }
  .app[data-shell="theatre"] .public-drama .public-drama-tools .public-drama-control[aria-pressed="true"]::after {
    content: ""; position: absolute; left: 50%; bottom: 1px; translate: -50% 0; width: 4px; height: 4px; border-radius: 50%;
    background: var(--cine-text-2); pointer-events: none;
  }
  @container drama-slate (max-width: 1099px) {
    .app[data-shell="theatre"] .public-drama:not(:lang(zh)) .public-drama-tools .cine-bench:focus-visible .cine-bench-label {
      z-index: 12; top: calc(100% + 6px); left: 50%; translate: -50% 0; width: max-content; max-width: 16em; height: auto; margin: 0;
      padding: 6px 9px; overflow: visible; clip: auto; border: 1px solid var(--cine-line-strong); border-radius: 7px; background: var(--cine-800);
      box-shadow: var(--lift-pop); color: var(--cine-text); font: 500 12px/1.45 var(--sans); letter-spacing: .02em; white-space: nowrap; pointer-events: none;
    }
  }
  @container drama-slate (max-width: 1039px) {
    .app[data-shell="theatre"] .public-drama:lang(zh) .public-drama-tools .cine-bench:focus-visible .cine-bench-label {
      z-index: 12; top: calc(100% + 6px); left: 50%; translate: -50% 0; width: max-content; max-width: 16em; height: auto; margin: 0;
      padding: 6px 9px; overflow: visible; clip: auto; border: 1px solid var(--cine-line-strong); border-radius: 7px; background: var(--cine-800);
      box-shadow: var(--lift-pop); color: var(--cine-text); font: 500 12px/1.45 var(--sans); letter-spacing: .02em; white-space: nowrap; pointer-events: none;
    }
  }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .app[data-shell="theatre"] .public-drama .public-drama-tools .public-drama-control.cine-leave:focus-visible .cine-tool-label {
    z-index: 12; top: calc(100% + 6px); left: 50%; translate: -50% 0; width: max-content; max-width: 16em; height: auto; margin: 0;
    padding: 6px 9px; overflow: visible; clip: auto; border: 1px solid var(--cine-line-strong); border-radius: 7px; background: var(--cine-800);
    box-shadow: var(--lift-pop); color: var(--cine-text); font: 500 12px/1.45 var(--sans); letter-spacing: .02em; white-space: nowrap; pointer-events: none;
  }
}
@media (min-width: 901px) and (hover: hover) {
  .app[data-shell="theatre"] .public-drama .public-drama-tools :is(.drama-sound .public-drama-control, .drama-still-toggle, .drama-keys-toggle):hover :is(.drama-sound-label, .drama-still-label, .cine-tool-label),
  .app[data-shell="theatre"] .public-drama:is(:lang(en), :lang(ja)) .public-drama-tools .cine-leave:hover .cine-tool-label {
    z-index: 12; top: calc(100% + 6px); left: 50%; translate: -50% 0; width: max-content; max-width: 16em; height: auto; margin: 0;
    padding: 6px 9px; overflow: visible; clip: auto; border: 1px solid var(--cine-line-strong); border-radius: 7px; background: var(--cine-800);
    box-shadow: var(--lift-pop); color: var(--cine-text); font: 500 12px/1.45 var(--sans); letter-spacing: .02em; white-space: nowrap; pointer-events: none;
  }
  @container drama-slate (max-width: 1099px) {
    .app[data-shell="theatre"] .public-drama:not(:lang(zh)) .public-drama-tools .cine-bench:hover .cine-bench-label {
      z-index: 12; top: calc(100% + 6px); left: 50%; translate: -50% 0; width: max-content; max-width: 16em; height: auto; margin: 0;
      padding: 6px 9px; overflow: visible; clip: auto; border: 1px solid var(--cine-line-strong); border-radius: 7px; background: var(--cine-800);
      box-shadow: var(--lift-pop); color: var(--cine-text); font: 500 12px/1.45 var(--sans); letter-spacing: .02em; white-space: nowrap; pointer-events: none;
    }
  }
  @container drama-slate (max-width: 1039px) {
    .app[data-shell="theatre"] .public-drama:lang(zh) .public-drama-tools .cine-bench:hover .cine-bench-label {
      z-index: 12; top: calc(100% + 6px); left: 50%; translate: -50% 0; width: max-content; max-width: 16em; height: auto; margin: 0;
      padding: 6px 9px; overflow: visible; clip: auto; border: 1px solid var(--cine-line-strong); border-radius: 7px; background: var(--cine-800);
      box-shadow: var(--lift-pop); color: var(--cine-text); font: 500 12px/1.45 var(--sans); letter-spacing: .02em; white-space: nowrap; pointer-events: none;
    }
  }
}
@media (min-width: 901px) and (max-width: 1100px) and (hover: hover) {
  .app[data-shell="theatre"] .public-drama .public-drama-tools .public-drama-control.cine-leave:hover .cine-tool-label {
    z-index: 12; top: calc(100% + 6px); left: 50%; translate: -50% 0; width: max-content; max-width: 16em; height: auto; margin: 0;
    padding: 6px 9px; overflow: visible; clip: auto; border: 1px solid var(--cine-line-strong); border-radius: 7px; background: var(--cine-800);
    box-shadow: var(--lift-pop); color: var(--cine-text); font: 500 12px/1.45 var(--sans); letter-spacing: .02em; white-space: nowrap; pointer-events: none;
  }
}
.app[data-shell="theatre"] .public-drama .public-drama-tools {
  grid-area: tools; display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; min-width: 0; margin: 0; padding: 0;
  overflow: visible; -webkit-mask-image: none; mask-image: none; contain: none;
}
.app[data-shell="theatre"] .public-drama .public-drama-tools > * { flex: none; }
/* the room's icon controls: 36px round, no frame until hovered; a switch that is on gets a soft fill, one that is off dims */
.app[data-shell="theatre"] .public-drama .public-drama-tools .public-drama-control {
  position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; min-height: 0; max-width: none; margin: 0; padding: 0;
  border: 1px solid transparent; border-radius: 50%; background: transparent; color: var(--cine-text-2); box-shadow: none;
  font: 500 13px/1 var(--sans); letter-spacing: 0; cursor: pointer; animation: none;
  transition: background-color var(--t-quick) var(--ease), color var(--t-quick) var(--ease), border-color var(--t-quick) var(--ease);
}
.app[data-shell="theatre"] .public-drama .public-drama-tools .public-drama-control:hover:not(:disabled) {
  color: var(--cine-text); border-color: var(--cine-line-strong); background: var(--cine-fill);
}
.app[data-shell="theatre"] .public-drama .public-drama-tools .public-drama-control:is([aria-pressed="true"], [aria-expanded="true"]) {
  color: var(--cine-text); background: var(--cine-fill-2); border-color: transparent; box-shadow: none;
}
.app[data-shell="theatre"] .public-drama .public-drama-tools .public-drama-control[aria-pressed="false"] { color: var(--cine-text-3); }
.app[data-shell="theatre"] .public-drama .public-drama-tools .public-drama-control:disabled { opacity: .4; cursor: not-allowed; }
.app[data-shell="theatre"] .public-drama .public-drama-tools .icon { width: 16px; height: 16px; }
/* names stay for screen readers and the narrow sheet; the wide slate shows the icons */
.app[data-shell="theatre"] .public-drama .public-drama-tools :is(.drama-sound-label, .drama-still-label, .cine-tool-label) {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* the sound trio reads as one segmented control: master, then ambience and voices */
.app[data-shell="theatre"] .public-drama .drama-sound {
  display: inline-flex; align-items: center; gap: 0; height: 36px; padding: 0; border-radius: 0; background: none; box-shadow: none;
}
.app[data-shell="theatre"] .public-drama .drama-sound .public-drama-control { width: 30px; height: 30px; border: 0; }
.app[data-shell="theatre"] .public-drama .drama-sound .public-drama-control.drama-soundscape { width: 34px; }
.app[data-shell="theatre"] .public-drama .drama-sound-fine {
  display: inline-flex; align-items: center; gap: 2px; margin-inline-start: 4px; padding: 0 0 0 4px; border: 0;
  border-inline-start: 1px solid var(--cine-line);
}
.app[data-shell="theatre"] .public-drama .drama-keys-glyph { font: 600 15px/1 var(--sans); }
.app[data-shell="theatre"] .public-drama .cine-tools-sep { width: 1px; height: 20px; margin-inline: 6px; background: var(--cine-line); }
/* the scene picker: a quiet text select with a small caret, not a box */
.app[data-shell="theatre"] .public-drama .public-drama-tools select {
  -webkit-appearance: none; appearance: none; width: auto; height: 36px; max-width: 11em; margin: 0; padding: 0 28px 0 12px;
  text-overflow: ellipsis; overflow: hidden; white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--r-pill); color: var(--cine-text-2); font: 500 13px/1 var(--sans); cursor: pointer;
  background-color: transparent; color-scheme: dark;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 15px) 16px, calc(100% - 11px) 16px; background-size: 4px 4px, 4px 4px; background-repeat: no-repeat;
}
.app[data-shell="theatre"] .public-drama .public-drama-tools select:hover { color: var(--cine-text); background-color: var(--cine-fill); }
.app[data-shell="theatre"] .public-drama .public-drama-tools select option { background: var(--cine-850); color: var(--cine-text); }
.app[data-shell="theatre"] .public-drama .public-drama-tools .public-drama-control.cine-bench {
  display: inline-flex; width: auto; gap: 7px; padding: 0 14px 0 12px; border-radius: var(--r-pill); border-color: var(--cine-line-strong);
  color: var(--cine-text); font: 600 13px/1 var(--sans);
}
.app[data-shell="theatre"] .public-drama .public-drama-tools .public-drama-control.cine-leave {
  display: inline-flex; width: auto; gap: 6px; padding: 0 12px; border-radius: var(--r-pill); font: 500 13px/1 var(--sans);
}
.app[data-shell="theatre"] .public-drama .public-drama-tools .public-drama-control.cine-leave .cine-tool-label {
  position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto;
}
/* English and Japanese labels run long: there the "leave" key keeps only its icon (its name stays for readers and in its tooltip) */
@media (min-width: 901px) {
  .app[data-shell="theatre"] .public-drama:is(:lang(en), :lang(ja)) .public-drama-tools .public-drama-control.cine-leave { width: 36px; padding: 0; }
  .app[data-shell="theatre"] .public-drama:is(:lang(en), :lang(ja)) .public-drama-tools .public-drama-control.cine-leave .cine-tool-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}
/* the "more" sheet's small title shows only when the room controls are folded into it */
.app[data-shell="theatre"] .public-drama .cine-sheet-k { display: none; }
/* the "more" key exists for narrow screens only */
.app[data-shell="theatre"] .public-drama .public-drama-control.drama-more-toggle { display: none; }
.app[data-shell="theatre"] .public-drama .cine-more-glyph {
  display: block; width: 4px; height: 4px; border-radius: 50%; background: currentColor;
  box-shadow: -7px 0 0 currentColor, 7px 0 0 currentColor;
}
/* story actions on the reel's row: change story, start over, parallel branches */
.app[data-shell="theatre"] .public-drama .drama-reel {
  grid-area: story; justify-self: end; display: flex; flex-wrap: nowrap; align-items: center; gap: 2px; margin: 0;
}
.app[data-shell="theatre"] .public-drama .drama-reel .drama-reel-btn {
  position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 30px; margin: 0; padding: 0 10px;
  border: 0; border-radius: var(--r-pill); background: none; box-shadow: none; color: var(--cine-text-2);
  font: 500 13px/1.2 var(--sans); letter-spacing: 0; white-space: nowrap; cursor: pointer; transform: none;
  transition: background-color var(--t-quick) var(--ease), color var(--t-quick) var(--ease);
}
.app[data-shell="theatre"] .public-drama .drama-reel .drama-reel-btn:hover:not(:disabled) { color: var(--cine-text); background: var(--cine-fill); box-shadow: none; }
.app[data-shell="theatre"] .public-drama .drama-reel .drama-reel-btn[aria-expanded="true"] { color: var(--cine-text); background: var(--cine-fill-2); box-shadow: none; }
.app[data-shell="theatre"] .public-drama .drama-reel .drama-reel-btn + .drama-reel-btn { margin-inline-start: 9px; }
.app[data-shell="theatre"] .public-drama .drama-reel .drama-reel-btn + .drama-reel-btn::before {
  content: ""; position: absolute; inset-inline-start: -6px; top: 9px; bottom: 9px; width: 1px; background: var(--cine-line);
}
/* start over, armed: the second tap is the next step, so it turns warm */
.app[data-shell="theatre"] .public-drama .drama-reel .drama-reel-btn.drama-restart.is-armed,
.app[data-shell="theatre"] .public-drama .drama-reel .drama-reel-btn.drama-restart.is-armed:hover:not(:disabled) {
  color: var(--cine-warm); background: var(--cine-warm-soft); box-shadow: none;
}
.app[data-shell="theatre"] .public-drama .drama-reel .drama-reel-btn:disabled { opacity: .55; cursor: wait; }

/* ---- the episode reel (胶片轴): seven places on one hairline. The current episode is written in full in warm; the others are
   ticks: a tall bright tick for an episode that opens (watched, or unlocked ahead), a short dim one for a locked episode.
   Hovering or focusing a tick floats its full name and whether it opens yet. Hit areas are 26 by 32. */
.app[data-shell="theatre"] .public-drama .drama-chapters {
  grid-area: reel; justify-self: start; position: relative; display: flex; flex-wrap: nowrap; align-items: center; gap: 0;
  min-width: 0; min-height: 32px; max-width: 100%; margin: 0; padding: 0; overflow: visible; contain: none;
}
.app[data-shell="theatre"] .public-drama .drama-chapters::before {
  content: ""; position: absolute; inset-inline: 0; top: 50%; height: 1px; background: var(--cine-line); pointer-events: none;
}
.app[data-shell="theatre"] .public-drama .drama-chapter-item { position: relative; display: flex; flex: none; min-width: 0; }
.app[data-shell="theatre"] .public-drama .drama-chapter {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0; min-height: 32px; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--cine-text-3); font: 500 12.5px/1 var(--sans);
  letter-spacing: .04em; white-space: nowrap; transform: none; transition: color var(--t-quick) var(--ease), opacity var(--t-quick) var(--ease);
}
.app[data-shell="theatre"] .public-drama .drama-chapter::before { margin: 0; box-shadow: none; opacity: 1; }
.app[data-shell="theatre"] .public-drama .drama-chapter.is-current {
  padding-inline: 0 16px; color: var(--cine-warm); font-weight: 600; background: var(--cine-950);
  transition: background-color var(--t-house) var(--ease-inout);
}
.app[data-shell="theatre"]:has(.public-drama:is([data-beat="question"], [data-beat="reflection"], [data-beat="cowrite"], [data-beat="receipt"], [data-beat="end"])) .public-drama .drama-chapter.is-current {
  background: var(--cine-850);
}
.app[data-shell="theatre"] .public-drama .drama-chapter.is-current::before {
  content: ""; flex: none; width: 7px; height: 7px; margin-inline-end: 9px; border-radius: 50%; background: var(--cine-warm);
}
.app[data-shell="theatre"] .public-drama .drama-chapter.is-current .drama-chapter-stage { margin-inline-start: .35em; }
.app[data-shell="theatre"] .public-drama:lang(en) .drama-chapter.is-current .drama-chapter-pre { margin-inline-end: .3em; }
.app[data-shell="theatre"] .public-drama .drama-chapter:not(.is-current) { width: 26px; }
.app[data-shell="theatre"] .public-drama .drama-chapter:not(.is-current) > span {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.app[data-shell="theatre"] .public-drama .drama-chapter:not(.is-current)::before {
  content: ""; flex: none; width: 2px; height: 14px; border-radius: 1px; background: currentColor;
  transition: height var(--t-quick) var(--ease), background-color var(--t-quick) var(--ease);
}
.app[data-shell="theatre"] .public-drama .drama-chapter:is(.is-open, .is-past) { color: var(--cine-text-2); cursor: pointer; }
.app[data-shell="theatre"] .public-drama .drama-chapter:is(.is-open, .is-past):hover,
.app[data-shell="theatre"] .public-drama .drama-chapter:is(.is-open, .is-past):focus-visible { color: var(--cine-text); background: none; box-shadow: none; }
.app[data-shell="theatre"] .public-drama .drama-chapter:is(.is-open, .is-past):hover::before { height: 18px; }
.app[data-shell="theatre"] .public-drama .drama-chapter.is-locked { color: var(--cine-text-3); opacity: .55; cursor: default; background: none; box-shadow: none; }
.app[data-shell="theatre"] .public-drama .drama-chapter.is-locked::before { height: 6px; }
.app[data-shell="theatre"] .public-drama .drama-chapter-lock { display: none; }
.app[data-shell="theatre"] .public-drama .drama-chapter:focus-visible { outline-offset: 0; border-radius: 4px; }
/* the tick's caption (and the echo of an episode already walked) floats under the reel */
.app[data-shell="theatre"] .public-drama :is(.drama-chapter-tip, .drama-chapter-echo) {
  position: absolute; z-index: 12; top: calc(100% + 6px); inset-inline-start: 50%; translate: -50% 0; transform: none;
  display: grid; gap: 3px; width: max-content; max-width: 17em; margin: 0; padding: 8px 11px; border-radius: 8px;
  background: var(--cine-800); border: 1px solid var(--cine-line-strong); box-shadow: var(--lift-pop); backdrop-filter: none;
  color: var(--cine-text); font: 500 12px/1.45 var(--sans); letter-spacing: .02em; text-align: start; white-space: normal;
  opacity: 0; visibility: hidden; pointer-events: none; animation: none;
  transition: opacity var(--t-quick) var(--ease), visibility 0s linear var(--t-quick);
}
.app[data-shell="theatre"] .public-drama :is(.drama-chapter-tip-k, .drama-chapter-echo-k) { font-weight: 600; color: var(--cine-text); }
.app[data-shell="theatre"] .public-drama .drama-chapter-tip small,
.app[data-shell="theatre"] .public-drama .drama-chapter-echo-go { color: var(--cine-text-3); font-size: 11.5px; }
.app[data-shell="theatre"] .public-drama .drama-chapter-echo-line { color: var(--cine-text-2); }
.app[data-shell="theatre"] .public-drama .drama-chapter-item:is(:hover, :focus-within) :is(.drama-chapter-tip, .drama-chapter-echo) {
  opacity: 1; visibility: visible; transition: opacity var(--t-quick) var(--ease), visibility 0s;
}
.app[data-shell="theatre"] .public-drama .drama-chapter-item:first-child :is(.drama-chapter-tip, .drama-chapter-echo) { inset-inline-start: 0; translate: 0 0; }
/* touch screens without hover tap a tick to open it at once: no caption floats there (the names stay in the ticks' accessible names) */
@media (hover: none) {
  .app[data-shell="theatre"] .public-drama :is(.drama-chapter-tip, .drama-chapter-echo) { display: none; }
}

/* ---- one quiet status line (picking up where the visitor left off, a story on its way in, a story that did not load):
   a small plate in the picture's top right corner, so the screen never moves */
.app[data-shell="theatre"] .public-drama > .drama-notice {
  position: relative; z-index: 6; align-self: start; justify-self: end; display: flex; align-items: center; gap: 8px;
  width: auto; max-width: min(28em, 60%); margin: 16px 18px 0 0; padding: 6px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--cine-line-strong); background: rgba(7, 11, 22, .78); box-shadow: none;
  color: var(--cine-text); font: 500 12.5px/1.45 var(--sans); animation: cine-fade var(--t-base) var(--ease) both;
}
.app[data-shell="theatre"] .public-drama > .drama-notice:empty { display: none; }
.app[data-shell="theatre"] .public-drama > .drama-notice::before {
  content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--cine-text-2); box-shadow: none; animation: none;
}
.app[data-shell="theatre"] .public-drama > .drama-notice.is-busy::before { background: var(--cine-warm); }
.app[data-shell="theatre"] .public-drama > .drama-notice.is-error { color: var(--cine-text); border-color: rgba(240, 194, 168, .5); background: rgba(7, 11, 22, .86); }
.app[data-shell="theatre"] .public-drama > .drama-notice.is-error::before { background: var(--cine-a); }
.app[data-shell="theatre"] .public-drama.is-still-only > .drama-notice { margin-top: 60px; }

/* ---- the theatre grid while watching: the screen full width, the transport under it, the lens notes under that */
.app[data-shell="theatre"] .public-drama .drama-theatre {
  position: relative; display: grid; min-width: 0; min-height: 0; margin: 0;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); grid-template-rows: none; column-gap: var(--split-gap); row-gap: 14px;
  grid-template-areas: "screen screen" "transport transport" "synopsis synopsis" "lens lens"; align-items: start;
}
.app[data-shell="theatre"] .public-drama :is(.drama-dock, .drama-dialogue, .drama-question) { display: contents; }

/* ---- the screen: a whole 16:9 picture, square-cornered like a real screen */
.app[data-shell="theatre"] .public-drama .drama-stage {
  grid-area: screen; position: relative; z-index: 0; isolation: isolate; overflow: hidden; min-width: 0; min-height: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "pic";
  border-radius: var(--r-screen); background: #000; box-shadow: none; cursor: pointer;
}
.app[data-shell="theatre"] .public-drama .drama-backdrop {
  grid-area: pic; position: relative; inset: auto; z-index: 0; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--r-screen); background: #000;
}
.app[data-shell="theatre"] .public-drama .drama-backdrop-img { transform: none; }
.app[data-shell="theatre"] .public-drama .drama-live-cinema::before,
.app[data-shell="theatre"] .public-drama .drama-live-cinema::after { content: none; }
.app[data-shell="theatre"] .public-drama .drama-act-poster {
  transition: opacity var(--t-slow) var(--ease), object-position 900ms cubic-bezier(.33, .08, .22, 1), filter var(--t-house) var(--ease-inout);
}
/* the only gradient: a functional scrim under the lower-third subtitle */
.app[data-shell="theatre"] .public-drama .drama-vignette {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(to top, rgba(7, 11, 22, .88) 0%, rgba(7, 11, 22, .6) 18%, rgba(7, 11, 22, .22) 36%, rgba(7, 11, 22, 0) 52%);
  transition: opacity var(--t-slow) var(--ease);
}
/* a second functional scrim, in the picture's top left corner, keeps the scene credit legible over bright stills (the cafe's blinds,
   the rainy windscreen). It stays on every beat that shows the credit on the picture, the opening intertitle included. */
.app[data-shell="theatre"] .public-drama .drama-backdrop::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(ellipse 52% 30% at 0 0, rgba(7, 11, 22, .86) 0%, rgba(7, 11, 22, .6) 46%, rgba(7, 11, 22, 0) 100%);
  transition: opacity var(--t-slow) var(--ease);
}
/* the small words on the picture (names, moods, stage directions, the echo, the credit) carry a tight dark halo of their own,
   so they read over the brightest frame without a plate behind them */
.app[data-shell="theatre"] .public-drama {
  --cine-halo: 0 0 1px rgba(7, 11, 22, .95), 0 1px 2px rgba(7, 11, 22, .9), 0 0 4px rgba(7, 11, 22, .82), 0 0 12px rgba(7, 11, 22, .62);
  /* the two leads' colours, a step lighter, for their names in the subtitle (same hues, so the speakers still read apart) */
  --cine-a-lit: #f7d5c3;
  --cine-b-lit: #c0d1f7;
}
/* painted weather and light pools stay in the page for the illustrated stage; over live action they step out */
.app[data-shell="theatre"] .public-drama .drama-stage :is(.drama-weather, .drama-lightpool, .drama-ambience, .drama-haze) { display: none; }
/* the cut-out portraits: on the live-action stage they stay laid out but invisible and never catch a click (a tap on the picture
   turns the line); the illustrated stage keeps them standing at the picture's foot */
.app[data-shell="theatre"] .public-drama .drama-cast {
  grid-area: pic; position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr); align-items: end; height: 100%; min-height: 0; pointer-events: none;
}
.app[data-shell="theatre"] .public-drama .drama-cast .drama-char {
  grid-row: 1; align-self: end; justify-self: center; width: 60%; height: 74%; margin: 0; padding: 0; transform: none;
  background: none; box-shadow: none; backdrop-filter: none; animation: none;
}
.app[data-shell="theatre"] .public-drama .drama-cast .drama-char.is-a { grid-column: 1; }
.app[data-shell="theatre"] .public-drama .drama-cast .drama-char.is-b { grid-column: 2; }
.app[data-shell="theatre"] .public-drama .drama-cast :is(.drama-char, .drama-char-img) { animation: none; }
.app[data-shell="theatre"] .public-drama .drama-cast .drama-char::after { content: none; }
.app[data-shell="theatre"] .public-drama .drama-cast .drama-nameplate { display: none; }
.app[data-shell="theatre"] .public-drama .drama-stage:is(.is-live-cinema, .is-cinema-still) .drama-cast { opacity: 0; visibility: hidden; transition: none; }
/* the scene credit, and the episode's opening intertitle over its first line (the narration) */
.app[data-shell="theatre"] .public-drama .drama-topline {
  grid-area: pic; align-self: start; justify-self: start; position: relative; z-index: 5; display: grid; grid-template-columns: minmax(0, 1fr);
  justify-items: start; gap: 6px; min-width: 0; max-width: min(34em, 62%); margin: 0; padding: 22px 28px 40px; pointer-events: none;
}
.app[data-shell="theatre"] .public-drama .drama-scene-tag {
  grid-column: 1; grid-row: auto; justify-self: start; max-width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none;
  font: 500 var(--fs-label)/1.5 var(--sans); letter-spacing: var(--track-label); color: var(--cine-text-2);
  text-shadow: var(--cine-halo);
}
.app[data-shell="theatre"] .public-drama .drama-scene-k { font-weight: 600; color: var(--cine-text); }
.app[data-shell="theatre"] .public-drama .drama-scene-tag-amb { display: inline; }
.app[data-shell="theatre"] .public-drama .drama-hook {
  grid-column: 1; grid-row: auto; display: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none;
  max-width: 34em; cursor: default;
}
.app[data-shell="theatre"] .public-drama .drama-hook-title {
  font: 600 clamp(19px, 1.6vw, 24px)/1.35 var(--serif); color: var(--cine-text); text-shadow: var(--cine-halo); text-wrap: balance;
}
.app[data-shell="theatre"] .public-drama .drama-hook-text {
  display: block; font: 400 clamp(15px, 1.12vw, 17px)/1.75 var(--serif); color: var(--cine-text-2); text-wrap: pretty;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
}
/* the opening intertitle is the credit and the episode's title only; a soft diagonal shade under it, as far as the title reaches */
.app[data-shell="theatre"] .public-drama .drama-stage.is-opening::before {
  content: ""; grid-area: pic; z-index: 3; pointer-events: none;
  background: linear-gradient(to bottom right, rgba(7, 11, 22, .74) 0%, rgba(7, 11, 22, .38) 26%, rgba(7, 11, 22, 0) 46%);
}
.app[data-shell="theatre"] .public-drama .drama-stage.is-opening .drama-hook { display: grid; gap: 8px; }
/* the episode's situation while it plays: a quiet description under the player, the same on every line of the episode */
.app[data-shell="theatre"] .public-drama .drama-synopsis {
  grid-area: synopsis; justify-self: start; max-width: min(100%, 54em); margin: -4px 0 0; padding: 0;
  color: var(--cine-text-2); font: 400 15.5px/1.75 var(--serif); letter-spacing: .01em; text-wrap: pretty;
}
.app[data-shell="theatre"] .public-drama .drama-synopsis[hidden] { display: none; }
/* Latin lines keep a shorter measure; the wider one lets most Chinese situations sit on a single line under the transport */
.app[data-shell="theatre"] .public-drama:lang(en) .drama-synopsis { max-width: min(100%, 46em); }
/* last episode's carry-over: a small fold at the end of the credit line, opening to a short dark card */
.app[data-shell="theatre"] .public-drama .drama-carry {
  grid-column: 1; grid-row: auto; justify-self: start; position: relative; margin: 2px 0 0; pointer-events: auto; max-width: 100%;
}
.app[data-shell="theatre"] .public-drama .drama-carry > summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px 0 11px; border-radius: var(--r-pill);
  border: 1px solid var(--cine-line-strong); background: rgba(7, 11, 22, .6); box-shadow: none; backdrop-filter: none;
  color: var(--cine-text); font: 600 12px/1 var(--sans); letter-spacing: .06em; cursor: pointer; list-style: none;
}
.app[data-shell="theatre"] .public-drama .drama-carry > summary::-webkit-details-marker { display: none; }
.app[data-shell="theatre"] .public-drama .drama-carry > summary::after {
  content: ""; width: 5px; height: 5px; margin-inline-start: 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  rotate: 45deg; translate: 0 -2px; opacity: .75;
}
.app[data-shell="theatre"] .public-drama .drama-carry[open] > summary::after { rotate: 225deg; translate: 0 1px; }
.app[data-shell="theatre"] .public-drama .drama-carry > summary:hover { background: rgba(20, 29, 51, .92); }
.app[data-shell="theatre"] .public-drama .drama-carry-list {
  position: absolute; z-index: 8; top: calc(100% + 6px); left: 0; display: grid; gap: 6px; width: 19em; max-width: none; margin: 0; padding: 12px 14px; list-style: none; border-radius: 10px;
  border: 1px solid var(--cine-line-strong); background: var(--cine-800); box-shadow: var(--lift-pop); backdrop-filter: none;
}
.app[data-shell="theatre"] .public-drama .drama-carry-list li {
  position: relative; display: block; padding-inline-start: 14px; color: var(--cine-text); font: 400 13.5px/1.6 var(--sans);
}
.app[data-shell="theatre"] .public-drama .drama-carry-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--cine-text-3);
}
/* the still-picture tag in the picture's top right corner, only while that switch is on */
.app[data-shell="theatre"] .public-drama .cine-still-tag {
  grid-area: pic; align-self: start; justify-self: end; position: relative; z-index: 5; display: none; align-items: center; gap: 6px;
  margin: 18px 20px; padding: 5px 10px 5px 8px; border: 1px solid var(--cine-line-strong); border-radius: var(--r-pill);
  background: rgba(7, 11, 22, .6); color: var(--cine-text); font: 600 11.5px/1 var(--sans); letter-spacing: .08em; pointer-events: none;
}
.app[data-shell="theatre"] .public-drama .cine-still-tag .icon { width: 14px; height: 14px; }
.app[data-shell="theatre"] .public-drama.is-still-only .cine-still-tag { display: inline-flex; }

/* ---- the subtitle plate: lower third of the picture, no box, no arrow, no quotes. Lin Xia on the left, Chen Mo on the right,
   told apart by side and by the colour of the name. Chinese and Japanese lines break between clauses, never inside a word. */
.app[data-shell="theatre"] .public-drama .drama-turn {
  min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none;
  color: var(--cine-text); font: 400 16px/1.5 var(--sans); text-align: start; animation: none; transform: none;
}
.app[data-shell="theatre"] .public-drama .drama-turn::before,
.app[data-shell="theatre"] .public-drama .drama-turn::after { content: none; }
.app[data-shell="theatre"] .public-drama .drama-turn.is-active {
  grid-area: screen; align-self: end; justify-self: start; position: relative; z-index: 3; display: grid; gap: 8px;
  width: min(36em, 74%); margin: 0 0 clamp(20px, 3.4%, 34px) clamp(24px, 5.2%, 64px); cursor: pointer; animation: none;
}
/* a new line fades in once (420ms, opacity only); a repaint of the same line stays still */
.app[data-shell="theatre"] .public-drama .drama-turn.is-active.is-fresh { animation: cine-fade var(--t-slow) var(--ease) both; }
.app[data-shell="theatre"] .public-drama .drama-turn.is-active.is-b {
  justify-self: end; text-align: end; justify-items: end; margin-inline: 0 clamp(24px, 5.2%, 64px);
}
.app[data-shell="theatre"] .public-drama .drama-turn-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0; font: 600 12px/1.3 var(--sans); letter-spacing: .12em;
  text-shadow: var(--cine-halo);
}
/* over the picture the subtitle keeps no plate: only a feathered shade right behind its words, deepest under them and gone by its
   edges, so a bright frame (blinds, a windscreen in the rain) never washes a name or a mood out */
.app[data-shell="theatre"] .public-drama .drama-turn:is(.is-active, .is-echo)::before {
  content: ""; position: absolute; inset: -40px -56px -22px; z-index: -1; width: auto; height: auto; margin: 0; border: 0; border-radius: 0;
  pointer-events: none; background: radial-gradient(closest-side, rgba(7, 11, 22, .62), rgba(7, 11, 22, .5) 64%, rgba(7, 11, 22, 0));
}
.app[data-shell="theatre"] .public-drama .drama-turn.is-b .drama-turn-head { justify-content: flex-end; }
.app[data-shell="theatre"] .public-drama .drama-badge {
  display: inline; flex: none; padding: 0; border-radius: 0; background: none; box-shadow: none; color: var(--cine-a);
  font: 600 12px/1.3 var(--sans); letter-spacing: .12em; animation: none; opacity: 1;
}
.app[data-shell="theatre"] .public-drama .drama-badge.is-b { color: var(--cine-b); background: none; }
.app[data-shell="theatre"] .public-drama .drama-turn .drama-badge { color: var(--cine-a-lit); }
.app[data-shell="theatre"] .public-drama .drama-turn .drama-badge.is-b { color: var(--cine-b-lit); }
.app[data-shell="theatre"] .public-drama .drama-turn-mood { color: var(--cine-text); font: 500 12px/1.3 var(--sans); letter-spacing: .06em; }
.app[data-shell="theatre"] .public-drama :is(.drama-say, .drama-ask-prompt) {
  min-height: 0; margin: 0; color: var(--cine-text); font: 400 var(--fs-line)/1.62 var(--serif); letter-spacing: .01em; text-wrap: pretty;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}
.app[data-shell="theatre"] .public-drama .drama-turn.is-active .drama-say:not(.is-typing):not(:empty)::after { content: none; }
.app[data-shell="theatre"] .public-drama :is(.drama-say, .drama-ask-prompt) .drama-clause { animation: none; opacity: 1; }
.app[data-shell="theatre"] .public-drama:is(:lang(zh), :lang(ja)) :is(.drama-say, .drama-ask-prompt) .drama-clause { display: inline-block; }
.app[data-shell="theatre"] .public-drama .drama-tok.is-pop { color: inherit; }
.app[data-shell="theatre"] .public-drama :is(.drama-say, .drama-ask-prompt, .drama-live-say, .drama-rehearse-say).is-speech.is-typing .drama-tok.is-pop::after {
  animation: none; background: var(--cine-text-3); box-shadow: none; opacity: .7;
}
.app[data-shell="theatre"] .public-drama :is(.drama-direction, .drama-gaze) {
  margin: 0; padding: 0; border: 0; background: none; box-shadow: none; color: var(--cine-text-2); font: 400 13px/1.6 var(--sans);
  font-style: normal; letter-spacing: .02em; text-shadow: var(--cine-halo); animation: none;
}
.app[data-shell="theatre"] .public-drama :is(.drama-direction, .drama-gaze)::before { content: none; }
/* the stage direction is plain small text under the line (the old striped clapper-board slate steps out) */
.app[data-shell="theatre"] .public-drama .drama-stage ~ .drama-dock :is(.drama-turn, .drama-live, .drama-rehearse-half) .drama-direction {
  display: block; width: auto; max-width: none; margin: 0; padding: 0; border-radius: 0; background: none; box-shadow: none;
  color: var(--cine-text-2); font: 400 13px/1.6 var(--sans); letter-spacing: .02em; animation: none; clip-path: none;
}
.app[data-shell="theatre"] .public-drama .drama-stage ~ .drama-dock :is(.drama-turn, .drama-live, .drama-rehearse-half) .drama-direction::before { content: none; }
.app[data-shell="theatre"] .public-drama .drama-stage ~ .drama-dock :is(.drama-respond, .drama-panel) :is(.drama-live, .drama-rehearse-half) .drama-direction {
  color: var(--paper-ink-2); text-shadow: none;
}
.app[data-shell="theatre"] .public-drama .drama-ask-quote { display: none; }
.app[data-shell="theatre"] .public-drama .drama-turn.drama-ask { cursor: default; box-shadow: none; }
/* the other lead's last line, quieter (smaller, one line, the second text tone; never see-through, so a bright frame cannot wash
   it out), on their own side (wide screens only); a tap plays it again */
.app[data-shell="theatre"] .public-drama .drama-turn.is-echo {
  grid-area: screen; align-self: end; justify-self: end; position: relative; z-index: 3; display: grid; gap: 4px; width: min(20em, 30%);
  margin: 0 clamp(24px, 5.2%, 64px) clamp(26px, 3.8%, 38px) 0; opacity: 1; text-align: end; cursor: pointer;
  transition: opacity var(--t-quick) var(--ease);
}
.app[data-shell="theatre"] .public-drama .drama-turn.is-echo.is-a { justify-self: start; text-align: start; margin-inline: clamp(24px, 5.2%, 64px) 0; }
.app[data-shell="theatre"] .public-drama .drama-turn.is-echo:is(:hover, :focus-visible) { opacity: 1; background: none; color: var(--cine-text); }
.app[data-shell="theatre"] .public-drama .drama-turn.is-echo:is(:hover, :focus-visible) .drama-turn-text { color: var(--cine-text); }
.app[data-shell="theatre"] .public-drama .drama-turn.is-echo .drama-turn-head { display: flex; font-size: 11px; }
.app[data-shell="theatre"] .public-drama .drama-turn.is-echo.is-b .drama-turn-head { justify-content: flex-end; }
.app[data-shell="theatre"] .public-drama .drama-turn.is-echo .drama-turn-mood { display: none; }
.app[data-shell="theatre"] .public-drama .drama-turn.is-echo .drama-badge { opacity: 1; }
.app[data-shell="theatre"] .public-drama .drama-turn.is-echo .drama-turn-text {
  display: -webkit-box; margin: 0; overflow: hidden; -webkit-line-clamp: 1; -webkit-box-orient: vertical; white-space: normal;
  color: var(--cine-text-2); font: 400 13.5px/1.55 var(--serif); text-shadow: var(--cine-halo);
}
.app[data-shell="theatre"] .public-drama .drama-turn.is-quiet { display: none; }
/* the live-action stage's old turn boxes carried an inner padding on wide screens; the subtitle plate has none */
@media (min-width: 901px) {
  .app[data-shell="theatre"] .public-drama .drama-stage ~ .drama-dock .drama-turn:is(.is-active, .is-echo) { padding: 0; }
}

/* ---- the transport: quiet tools on the left, the beat rail in the middle, one warm "next" on the right.
   The bar answers to its own width (it is a size container): the tools' names fold into their icons when the bar is too narrow
   for names, rail and "next" together, whatever the window. The rail never shrinks; it sits centred in the room between the tools
   and "next" by its own margins. Should a row ever be too short for all three, the bar wraps instead of letting them overlap. */
.app[data-shell="theatre"] .public-drama .drama-controls {
  grid-area: transport; position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; row-gap: 4px;
  min-width: 0; min-height: 48px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none;
  container: drama-transport / inline-size;
}
.app[data-shell="theatre"] .public-drama .drama-controls-side { display: flex; flex: none; flex-wrap: nowrap; align-items: center; gap: 2px; }
.app[data-shell="theatre"] .public-drama .drama-controls-side .btn {
  position: relative; width: auto; min-height: 38px; padding: 0 11px; gap: 7px; color: var(--cine-text-2); font-size: 13px; font-weight: 500;
  border-color: transparent; background: none; box-shadow: none;
}
.app[data-shell="theatre"] .public-drama .drama-controls-side .btn:hover:not(:disabled) { color: var(--cine-text); background: var(--cine-fill); }
.app[data-shell="theatre"] .public-drama .drama-controls-side .btn:is([aria-pressed="true"], [aria-expanded="true"]) {
  color: var(--cine-text); background: var(--cine-fill-2); border-color: transparent; box-shadow: none;
}
.app[data-shell="theatre"] .public-drama .drama-controls-side .drama-hud-label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
.app[data-shell="theatre"] .public-drama .drama-keyhint { display: none; }
.app[data-shell="theatre"] .public-drama .drama-controls > .btn-primary { flex: none; gap: 10px; margin-inline-start: 0; }
/* names fold into icons by the bar's own width. The widths are the ones the bar needs for every tool's name, the longest rail of the
   season (eleven lines and the question) and "next" at its longest ("respond to this episode"), with room to spare: Chinese folds
   under 964px, Japanese under 1060px, English under 1200px (its names are the longest, so it keeps the icons up to the widest bar) */
@container drama-transport (max-width: 963px) {
  .app[data-shell="theatre"] .public-drama .drama-controls-side .btn { width: 40px; padding: 0; }
  .app[data-shell="theatre"] .public-drama .drama-controls-side .drama-hud-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}
@container drama-transport (max-width: 1059px) {
  .app[data-shell="theatre"] .public-drama:lang(ja) .drama-controls-side .btn { width: 40px; padding: 0; }
  .app[data-shell="theatre"] .public-drama:lang(ja) .drama-controls-side .drama-hud-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}
@container drama-transport (max-width: 1199px) {
  .app[data-shell="theatre"] .public-drama:lang(en) .drama-controls-side .btn { width: 40px; padding: 0; }
  .app[data-shell="theatre"] .public-drama:lang(en) .drama-controls-side .drama-hud-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}
/* a bar too narrow even for the icons, the whole rail and "next" in one row (a sheet open beside the picture): the rail takes a
   row of its own above them */
@container drama-transport (max-width: 719px) {
  .app[data-shell="theatre"] .public-drama .drama-controls > .drama-beat-rail { order: -1; flex: 1 0 100%; margin: 0; justify-content: flex-start; }
  .app[data-shell="theatre"] .public-drama .drama-controls > .btn-primary { margin-inline-start: auto; }
}
/* the beat rail: one dot per line in the speaker's colour, faint ahead and brighter once heard; the line on stage stretches into a
   warm bar; the question is a small diamond. Each dot is a 20 by 32 target with its caption on hover or focus. */
.app[data-shell="theatre"] .public-drama .drama-beat-rail {
  position: relative; display: flex; flex: none; align-items: center; justify-content: center; gap: 0; min-width: max-content; max-width: none;
  height: 32px; margin: 0; padding: 0; border-radius: 0; background: none; box-shadow: none;
}
.app[data-shell="theatre"] .public-drama .drama-controls > .drama-beat-rail { margin-inline: auto; }
.app[data-shell="theatre"] .public-drama .drama-beat-rail::before,
.app[data-shell="theatre"] .public-drama .drama-beat-rail::after { content: none; }
.app[data-shell="theatre"] .public-drama .drama-beat-dot {
  position: relative; display: grid; place-items: center; flex: none; width: 20px; min-width: 0; height: 32px; margin: 0; padding: 0;
  border: 0; border-radius: 4px; background: none; color: var(--cine-text-3); filter: none; cursor: pointer;
  transition: width var(--t-base) var(--ease);
}
.app[data-shell="theatre"] .public-drama .drama-beat-dot::before {
  content: ""; position: static; width: 6px; height: 6px; border-radius: 3px; transform: none; clip-path: none; box-shadow: none;
  background: currentColor; opacity: .38;
  transition: width var(--t-base) var(--ease), opacity var(--t-base) var(--ease), background-color var(--t-base) var(--ease);
}
.app[data-shell="theatre"] .public-drama .drama-beat-dot.is-a { color: var(--cine-a); }
.app[data-shell="theatre"] .public-drama .drama-beat-dot.is-b { color: var(--cine-b); }
.app[data-shell="theatre"] .public-drama .drama-beat-dot.is-past::before { opacity: .85; }
.app[data-shell="theatre"] .public-drama .drama-beat-dot.is-current { width: 32px; cursor: default; }
.app[data-shell="theatre"] .public-drama .drama-beat-dot.is-current::before { width: 20px; background: var(--cine-warm); opacity: 1; box-shadow: none; }
.app[data-shell="theatre"] .public-drama .drama-beat-dot.is-question { color: var(--cine-text-2); }
.app[data-shell="theatre"] .public-drama .drama-beat-dot.is-question::before {
  width: 7px; height: 7px; border-radius: 1px; background: transparent; border: 1.5px solid currentColor; opacity: .8; rotate: 45deg;
}
.app[data-shell="theatre"] .public-drama .drama-beat-dot.is-question.is-current::before {
  width: 8px; height: 8px; background: var(--cine-warm); border-color: var(--cine-warm); opacity: 1;
}
.app[data-shell="theatre"] .public-drama .drama-beat-dot:not(.is-current):is(:hover, :focus-visible)::before { opacity: 1; transform: none; }
.app[data-shell="theatre"] .public-drama .drama-beat-dot:focus-visible { outline: 2px solid var(--cine-focus); outline-offset: 0; }
.app[data-shell="theatre"] .public-drama .drama-beat-tip {
  position: absolute; z-index: 9; bottom: calc(100% + 2px); left: 50%; right: auto; display: block; width: max-content; max-width: 18em;
  padding: 6px 9px; border-radius: 7px; transform: none; translate: -50% 0; background: var(--cine-800); border: 1px solid var(--cine-line-strong);
  box-shadow: var(--lift-pop); color: var(--cine-text); font: 500 12px/1.45 var(--sans); letter-spacing: .02em; text-align: start;
  white-space: normal; opacity: 0; visibility: hidden; pointer-events: none; animation: none;
  transition: opacity var(--t-quick) var(--ease), visibility 0s linear var(--t-quick);
}
.app[data-shell="theatre"] .public-drama .drama-beat-dot:is(:hover, :focus-visible) .drama-beat-tip {
  opacity: 1; visibility: visible; transition: opacity var(--t-quick) var(--ease), visibility 0s;
}
.app[data-shell="theatre"] .public-drama .drama-beat-rail:has(.drama-beat-dot:hover) .drama-beat-dot:not(:hover) .drama-beat-tip { opacity: 0; visibility: hidden; }
.app[data-shell="theatre"] .public-drama .drama-beat-dot.is-start .drama-beat-tip { left: 0; translate: 0 0; }
.app[data-shell="theatre"] .public-drama .drama-beat-dot.is-end .drama-beat-tip { left: auto; right: 0; translate: 0 0; }
/* a rail set flush left (the question beat; the phone transport) floats every caption from the rail's own left edge */
.app[data-shell="theatre"] .public-drama[data-beat="question"] .drama-question > .drama-beat-rail .drama-beat-dot { position: static; }
.app[data-shell="theatre"] .public-drama[data-beat="question"] .drama-question > .drama-beat-rail .drama-beat-tip { left: 0; right: auto; translate: 0 0; }

/* ---- the subtext lens while watching: a director's note under the transport, three columns with the leads' colour lines */
.app[data-shell="theatre"] .public-drama .drama-dialogue > .drama-subtext {
  grid-area: lens; justify-self: stretch; width: auto; min-width: 0; margin: 0;
}
.app[data-shell="theatre"] .public-drama .drama-subtext { display: none; grid-template-rows: none; opacity: 1; visibility: visible; transition: none; }
.app[data-shell="theatre"] .public-drama .drama-subtext.is-open { display: block; animation: cine-fade var(--t-slow) var(--ease) both; }
.app[data-shell="theatre"] .public-drama .drama-subtext-card {
  min-height: 0; overflow: visible; padding: 18px 0 0; border: 0; border-top: 1px solid var(--cine-line); border-radius: 0;
  background: none; box-shadow: none; backdrop-filter: none; color: var(--cine-text);
}
.app[data-shell="theatre"] .public-drama .drama-subtext-k {
  display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 0; color: var(--cine-text-2);
  font: 600 var(--fs-label)/1.4 var(--sans); letter-spacing: var(--track-label);
}
.app[data-shell="theatre"] .public-drama .drama-subtext-rows {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 32px; margin: 0; padding: 0;
}
.app[data-shell="theatre"] .public-drama .drama-subtext-row {
  display: grid; align-content: start; gap: 8px; min-width: 0; padding: 0 0 0 14px; border: 0; border-inline-start: 2px solid var(--cine-line-strong);
}
.app[data-shell="theatre"] .public-drama .drama-subtext-row.is-a { border-inline-start-color: var(--cine-a); }
.app[data-shell="theatre"] .public-drama .drama-subtext-row.is-b { border-inline-start-color: var(--cine-b); }
.app[data-shell="theatre"] .public-drama .drama-subtext-row dt { color: var(--cine-text-3); font: 600 12px/1.4 var(--sans); letter-spacing: .08em; }
.app[data-shell="theatre"] .public-drama .drama-subtext-row.is-a dt { color: var(--cine-a); }
.app[data-shell="theatre"] .public-drama .drama-subtext-row.is-b dt { color: var(--cine-b); }
.app[data-shell="theatre"] .public-drama .drama-subtext-row dd { margin: 0; color: var(--cine-text); font: 400 16px/1.75 var(--serif); text-wrap: pretty; }

/* ---- sheets beside the picture (script, lens, controls card, shelf, branches) share one dark surface */
.app[data-shell="theatre"] .public-drama :is(.drama-script, .drama-keys-pop, .drama-shelf, .drama-branches) {
  border: 1px solid var(--cine-line-strong); border-radius: 12px; background: var(--cine-900); color: var(--cine-text);
  box-shadow: var(--lift-pop); backdrop-filter: none; animation: cine-fade var(--t-base) var(--ease) both;
}
.app[data-shell="theatre"] .public-drama :is(.drama-keys-pop, .drama-shelf, .drama-branches)[hidden] { display: none; }
.app[data-shell="theatre"] .public-drama :is(.drama-script-head b, .drama-keys-k, .drama-branches-k) {
  display: flex; align-items: center; gap: 8px; margin: 0; color: var(--cine-text-2); font: 600 var(--fs-label)/1.4 var(--sans);
  letter-spacing: var(--track-label);
}
/* the script sheet: the whole episode, the line now playing marked by a warm edge; any line is one tap away */
.app[data-shell="theatre"] .public-drama .drama-script {
  grid-area: side; position: relative; inset: auto; z-index: 4; display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0;
  height: 0; min-height: 100%; margin: 0; padding: 0; overflow: hidden;
}
.app[data-shell="theatre"] .public-drama .drama-script-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 12px 20px; border-bottom: 1px solid var(--cine-line);
}
.app[data-shell="theatre"] .public-drama .drama-script-head .btn { min-height: 32px; padding: 0 12px; font-size: 13px; }
.app[data-shell="theatre"] .public-drama .drama-script ul {
  display: block; margin: 0; padding: 6px 0 14px; list-style: none; overflow: auto; min-height: 0; overscroll-behavior: contain;
}
.app[data-shell="theatre"] .public-drama .drama-script-line { display: block; max-width: none; margin: 0; color: inherit; font-size: inherit; }
.app[data-shell="theatre"] .public-drama .drama-script-line.is-b { margin: 0; flex-direction: column; text-align: start; }
.app[data-shell="theatre"] .public-drama .drama-script-line > .drama-script-jump {
  display: grid; gap: 4px; width: 100%; margin: 0; padding: 10px 20px; border: 0; border-inline-start: 2px solid transparent;
  border-radius: 0; background: none; box-shadow: none; color: var(--cine-text-2); text-align: start; cursor: pointer;
}
.app[data-shell="theatre"] .public-drama .drama-script-line.is-b > .drama-script-jump { flex-direction: column; }
.app[data-shell="theatre"] .public-drama .drama-script-line > .drama-script-jump:hover { background: var(--cine-fill); color: var(--cine-text); }
.app[data-shell="theatre"] .public-drama .drama-script-line.is-now > .drama-script-jump {
  border-inline-start-color: var(--cine-warm); background: var(--cine-fill); color: var(--cine-text); box-shadow: none;
}
.app[data-shell="theatre"] .public-drama .drama-script-line .drama-badge { font: 600 11px/1.3 var(--sans); letter-spacing: .12em; }
.app[data-shell="theatre"] .public-drama .drama-script-text { font: 400 15px/1.65 var(--serif); }
.app[data-shell="theatre"] .public-drama .drama-script-line.is-now .drama-script-text { font-weight: 400; }
/* the controls card (问号键) */
.app[data-shell="theatre"] .public-drama .drama-keys-pop {
  grid-area: side; position: relative; inset: auto; z-index: 6; align-self: start; width: auto; min-width: 0; margin: 0; padding: 16px 18px 18px;
}
.app[data-shell="theatre"] .public-drama .drama-keys-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.app[data-shell="theatre"] .public-drama .drama-keys-close {
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--cine-line); border-radius: 50%;
  background: none; box-shadow: none; color: var(--cine-text-2); cursor: pointer;
}
.app[data-shell="theatre"] .public-drama .drama-keys-close:hover { color: var(--cine-text); background: var(--cine-fill); }
.app[data-shell="theatre"] .public-drama .drama-keys-list { display: grid; gap: 0; margin: 0; }
.app[data-shell="theatre"] .public-drama .drama-keys-row {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--cine-line);
}
.app[data-shell="theatre"] .public-drama .drama-keys-row dt { display: flex; gap: 4px; }
.app[data-shell="theatre"] .public-drama .drama-keys-row dd { margin: 0; color: var(--cine-text-2); font-size: var(--fs-small); line-height: 1.5; }
.app[data-shell="theatre"] .public-drama kbd {
  display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 6px; border: 1px solid var(--cine-line-strong);
  border-bottom-width: 2px; border-radius: 6px; background: none; box-shadow: none; color: var(--cine-text); font: 600 11.5px/1 var(--sans);
}
.app[data-shell="theatre"] .public-drama .drama-keys-tips { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; border: 0; }
.app[data-shell="theatre"] .public-drama .drama-keys-tips li {
  display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; color: var(--cine-text-3); font-size: 12.5px; line-height: 1.6;
}
.app[data-shell="theatre"] .public-drama .drama-keys-tips .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--cine-text-3); }
/* the story shelf (换一部短剧): underlined theme tabs, then the eight posters; the one on stage has a warm frame */
.app[data-shell="theatre"] .public-drama > .drama-shelf {
  position: relative; z-index: 7; align-self: stretch; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 0; min-width: 0;
  height: 0; min-height: 100%; margin: 0; padding: 16px 18px 18px; overflow: hidden;
}
.app[data-shell="theatre"] .public-drama .drama-shelf-top {
  display: grid; gap: 10px; margin: 0 0 14px; padding: 0; border-bottom: 1px solid var(--cine-line);
}
.app[data-shell="theatre"] .public-drama .drama-shelf-filters { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.app[data-shell="theatre"] .public-drama .drama-shelf-filter {
  position: relative; min-height: 0; margin: 0; padding: 4px 0 10px; border: 0; border-radius: 0; background: none; box-shadow: none;
  color: var(--cine-text-3); font: 500 14px/1.3 var(--sans); letter-spacing: 0; white-space: nowrap; cursor: pointer;
  transition: color var(--t-quick) var(--ease);
}
.app[data-shell="theatre"] .public-drama .drama-shelf-filter:hover { color: var(--cine-text); background: none; }
.app[data-shell="theatre"] .public-drama .drama-shelf-filter::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: transparent; transition: background-color var(--t-base) var(--ease);
}
.app[data-shell="theatre"] .public-drama .drama-shelf-filter[aria-pressed="true"] { color: var(--cine-text); background: none; box-shadow: none; font-weight: 500; }
.app[data-shell="theatre"] .public-drama .drama-shelf-filter[aria-pressed="true"]::after { background: var(--cine-text); }
.app[data-shell="theatre"] .public-drama .drama-shelf-note { margin: 0 0 12px; max-width: 40em; color: var(--cine-text-3); font-size: 12px; line-height: 1.55; }
.app[data-shell="theatre"] .public-drama .drama-shelf-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row; grid-auto-columns: auto; gap: 14px 12px; min-height: 0; overflow: auto; padding: 4px 4px 2px;
  margin: -4px -4px 0; overscroll-behavior: contain; align-content: start;
}
.app[data-shell="theatre"] .public-drama .drama-shelf-card {
  display: grid; align-content: start; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none;
  box-shadow: none; color: var(--cine-text); text-align: start; cursor: pointer; transform: none;
}
.app[data-shell="theatre"] .public-drama .drama-shelf-card:hover:not(:disabled) { transform: none; background: none; box-shadow: none; }
.app[data-shell="theatre"] .public-drama .drama-shelf-card[hidden] { display: none; }
.app[data-shell="theatre"] .public-drama .drama-shelf-thumb {
  position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; border-radius: var(--r-poster); background: var(--cine-800);
}
.app[data-shell="theatre"] .public-drama .drama-shelf-thumb img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; transform: none;
  transition: filter var(--t-base) var(--ease);
}
.app[data-shell="theatre"] .public-drama .drama-shelf-card:hover:not(:disabled) .drama-shelf-thumb img { transform: none; filter: brightness(1.1); }
.app[data-shell="theatre"] .public-drama .drama-shelf-card[data-story="cold_war"] .drama-shelf-thumb img { object-position: 20% 50%; }
.app[data-shell="theatre"] .public-drama .drama-shelf-card[data-story="meeting_cut"] .drama-shelf-thumb img { object-position: 21% 50%; }
.app[data-shell="theatre"] .public-drama .drama-shelf-card[data-story="dinner_unsaid"] .drama-shelf-thumb img { object-position: 18% 50%; }
.app[data-shell="theatre"] .public-drama .drama-shelf-card[data-story="cold_dinner"] .drama-shelf-thumb img { object-position: 47% 50%; }
.app[data-shell="theatre"] .public-drama .drama-shelf-card[data-story="late_reply"] .drama-shelf-thumb img { object-position: 87% 50%; }
.app[data-shell="theatre"] .public-drama .drama-shelf-card[data-story="parent_call"] .drama-shelf-thumb img { object-position: 23% 50%; }
.app[data-shell="theatre"] .public-drama .drama-shelf-card[data-story="silent_ride"] .drama-shelf-thumb img { object-position: 16% 50%; }
.app[data-shell="theatre"] .public-drama .drama-shelf-card[data-story="midnight_draft"] .drama-shelf-thumb img { object-position: 28% 50%; }
.app[data-shell="theatre"] .public-drama .drama-shelf-theme { display: none; }
.app[data-shell="theatre"] .public-drama .drama-shelf-title { padding: 0; color: var(--cine-text); font: 600 14.5px/1.4 var(--serif); text-wrap: balance; }
.app[data-shell="theatre"] .public-drama .drama-shelf-state { padding: 0; color: var(--cine-text-3); font: 500 12px/1.4 var(--sans); }
.app[data-shell="theatre"] .public-drama .drama-shelf-card.is-current { cursor: default; background: none; box-shadow: none; }
.app[data-shell="theatre"] .public-drama .drama-shelf-card.is-current .drama-shelf-thumb { outline: 2px solid var(--cine-warm); outline-offset: 3px; }
.app[data-shell="theatre"] .public-drama .drama-shelf-card.is-current .drama-shelf-state { color: var(--cine-warm); font-weight: 600; }
.app[data-shell="theatre"] .public-drama .drama-shelf-card:disabled { opacity: 1; }
.app[data-shell="theatre"] .public-drama .drama-shelf-card:focus-visible { outline: none; }
.app[data-shell="theatre"] .public-drama .drama-shelf-card:focus-visible .drama-shelf-thumb { outline: 2px solid var(--cine-focus); outline-offset: 3px; }
/* parallel branches (平行支线对照): last episode's directions stacked, the one on stage tagged warm */
.app[data-shell="theatre"] .public-drama > .drama-branches {
  position: relative; z-index: 7; align-self: stretch; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 0; min-width: 0;
  height: 0; min-height: 100%; margin: 0; padding: 16px 18px 0; overflow: hidden;
}
.app[data-shell="theatre"] .public-drama .drama-branches-head { display: grid; gap: 6px; margin: 0 0 4px; padding: 0 0 12px; border-bottom: 1px solid var(--cine-line); }
.app[data-shell="theatre"] .public-drama .drama-branches-note { margin: 0; color: var(--cine-text-3); font-size: 12px; line-height: 1.55; }
.app[data-shell="theatre"] .public-drama .drama-branches-grid {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; padding-bottom: 6px;
}
.app[data-shell="theatre"] .public-drama .drama-branch {
  display: grid; align-content: start; gap: 6px; min-width: 0; margin: 0; padding: 14px 0; border: 0; border-bottom: 1px solid var(--cine-line);
  border-radius: 0; background: none; box-shadow: none;
}
.app[data-shell="theatre"] .public-drama .drama-branch:last-child { border-bottom: 0; }
.app[data-shell="theatre"] .public-drama .drama-branch.is-current { background: none; box-shadow: none; }
.app[data-shell="theatre"] .public-drama .drama-branch-tag {
  justify-self: start; margin: 0; padding: 0; border-radius: 0; background: none; color: var(--cine-text-3);
  font: 600 var(--fs-label)/1.4 var(--sans); letter-spacing: var(--track-label);
}
.app[data-shell="theatre"] .public-drama .drama-branch.is-current .drama-branch-tag { color: var(--cine-warm); background: none; }
.app[data-shell="theatre"] .public-drama .drama-branch-title { margin: 0; color: var(--cine-text); font: 600 17px/1.45 var(--serif); }
.app[data-shell="theatre"] .public-drama .drama-branch-toward { margin: 0; color: var(--cine-text-2); font-size: 13px; line-height: 1.6; }
.app[data-shell="theatre"] .public-drama .drama-branch-lines { display: grid; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; border: 0; }
.app[data-shell="theatre"] .public-drama .drama-branch-line {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 10px; color: var(--cine-text); font: 400 14.5px/1.65 var(--serif);
}
.app[data-shell="theatre"] .public-drama .drama-branch-line .drama-badge { font: 600 11px/1.3 var(--sans); letter-spacing: .12em; }
.app[data-shell="theatre"] .public-drama .drama-branch-go { justify-self: start; min-height: 36px; margin-top: 6px; padding: 0 14px; font-size: 13.5px; }

/* ---- wide screens, while watching: any sheet beside the picture splits the house. The picture keeps the left column with its
   subtitle under it and the transport under that; the sheet takes the right column at the picture's full height. */
@media (min-width: 901px) {
  .app[data-shell="theatre"] .public-drama[data-beat="dialogue"]:is(:has(> .drama-shelf:not([hidden])), :has(> .drama-branches:not([hidden])), :has(.drama-script), :has(.drama-subtext.is-open), :has(.drama-keys-pop:not([hidden]))) .drama-theatre {
    grid-template-areas: "screen side" "subtitle side" "transport side";
  }
  .app[data-shell="theatre"] .public-drama[data-beat="dialogue"]:is(:has(> .drama-shelf:not([hidden])), :has(> .drama-branches:not([hidden])), :has(.drama-script), :has(.drama-subtext.is-open), :has(.drama-keys-pop:not([hidden]))) .drama-turn.is-active {
    grid-area: subtitle; align-self: start; justify-self: stretch; width: auto; margin: 4px 0 0; text-align: start; justify-items: start;
  }
  .app[data-shell="theatre"] .public-drama[data-beat="dialogue"]:is(:has(> .drama-shelf:not([hidden])), :has(> .drama-branches:not([hidden])), :has(.drama-script), :has(.drama-subtext.is-open), :has(.drama-keys-pop:not([hidden]))) .drama-turn.is-active .drama-turn-head {
    justify-content: flex-start;
  }
  .app[data-shell="theatre"] .public-drama[data-beat="dialogue"]:is(:has(> .drama-shelf:not([hidden])), :has(> .drama-branches:not([hidden])), :has(.drama-script), :has(.drama-subtext.is-open), :has(.drama-keys-pop:not([hidden]))) :is(.drama-turn.is-echo, .drama-vignette, .drama-synopsis) {
    display: none;
  }
  .app[data-shell="theatre"] .public-drama[data-beat="dialogue"]:is(:has(> .drama-shelf:not([hidden])), :has(> .drama-branches:not([hidden])), :has(.drama-script), :has(.drama-subtext.is-open), :has(.drama-keys-pop:not([hidden]))) .drama-turn.is-active::before {
    content: none;
  }
  .app[data-shell="theatre"] .public-drama[data-beat="dialogue"]:is(:has(> .drama-shelf:not([hidden])), :has(> .drama-branches:not([hidden])), :has(.drama-script), :has(.drama-subtext.is-open), :has(.drama-keys-pop:not([hidden]))) :is(.drama-say, .drama-direction) {
    text-shadow: none;
  }
  .app[data-shell="theatre"] .public-drama[data-beat="dialogue"]:is(:has(> .drama-shelf:not([hidden])), :has(> .drama-branches:not([hidden])), :has(.drama-script), :has(.drama-subtext.is-open), :has(.drama-keys-pop:not([hidden]))) .drama-controls-side .btn {
    width: 40px; padding: 0;
  }
  /* the narrow left column takes the transport in two rows: the beat rail on top, the tools and the warm "next" under it */
  .app[data-shell="theatre"] .public-drama[data-beat="dialogue"]:is(:has(> .drama-shelf:not([hidden])), :has(> .drama-branches:not([hidden])), :has(.drama-script), :has(.drama-subtext.is-open), :has(.drama-keys-pop:not([hidden]))) .drama-controls {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "rail rail" "side next"; gap: 2px 10px;
  }
  .app[data-shell="theatre"] .public-drama[data-beat="dialogue"]:is(:has(> .drama-shelf:not([hidden])), :has(> .drama-branches:not([hidden])), :has(.drama-script), :has(.drama-subtext.is-open), :has(.drama-keys-pop:not([hidden]))) .drama-controls > .drama-beat-rail { grid-area: rail; justify-content: flex-start; margin-inline-start: -7px; }
  .app[data-shell="theatre"] .public-drama[data-beat="dialogue"]:is(:has(> .drama-shelf:not([hidden])), :has(> .drama-branches:not([hidden])), :has(.drama-script), :has(.drama-subtext.is-open), :has(.drama-keys-pop:not([hidden]))) .drama-controls-side { grid-area: side; }
  .app[data-shell="theatre"] .public-drama[data-beat="dialogue"]:is(:has(> .drama-shelf:not([hidden])), :has(> .drama-branches:not([hidden])), :has(.drama-script), :has(.drama-subtext.is-open), :has(.drama-keys-pop:not([hidden]))) .drama-controls > .btn-primary { grid-area: next; margin: 0; }
  .app[data-shell="theatre"] .public-drama[data-beat="dialogue"]:is(:has(> .drama-shelf:not([hidden])), :has(> .drama-branches:not([hidden])), :has(.drama-script), :has(.drama-subtext.is-open), :has(.drama-keys-pop:not([hidden]))) .drama-controls-side .drama-hud-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  /* the lens notes become a column of three in the right-hand sheet */
  .app[data-shell="theatre"] .public-drama[data-beat="dialogue"] .drama-dialogue > .drama-subtext.is-open {
    grid-area: side; position: relative; z-index: 4; align-self: stretch; height: 0; min-height: 100%; overflow: auto;
    border: 1px solid var(--cine-line-strong); border-radius: 12px; background: var(--cine-900); box-shadow: var(--lift-pop);
    overscroll-behavior: contain;
  }
  .app[data-shell="theatre"] .public-drama[data-beat="dialogue"] .drama-dialogue > .drama-subtext.is-open .drama-subtext-card { padding: 16px 20px 20px; border: 0; }
  .app[data-shell="theatre"] .public-drama[data-beat="dialogue"] .drama-dialogue > .drama-subtext.is-open .drama-subtext-rows { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .app[data-shell="theatre"] .public-drama[data-beat="dialogue"] .drama-dialogue > .drama-subtext.is-open .drama-subtext-row dd { font-size: 15.5px; }
  /* the shelf in a column: four posters a row (cut a little shorter), two rows */
  .app[data-shell="theatre"] .public-drama > .drama-shelf .drama-shelf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .app[data-shell="theatre"] .public-drama > .drama-shelf .drama-shelf-thumb { aspect-ratio: 3 / 4; }
  /* a split house keeps the picture clear: the opening intertitle waits for the full screen */
  .app[data-shell="theatre"] .public-drama[data-beat="dialogue"]:is(:has(> .drama-shelf:not([hidden])), :has(> .drama-branches:not([hidden])), :has(.drama-script), :has(.drama-subtext.is-open), :has(.drama-keys-pop:not([hidden]))) .drama-stage.is-opening .drama-hook,
  .app[data-shell="theatre"] .public-drama[data-beat="dialogue"]:is(:has(> .drama-shelf:not([hidden])), :has(> .drama-branches:not([hidden])), :has(.drama-script), :has(.drama-subtext.is-open), :has(.drama-keys-pop:not([hidden]))) .drama-stage.is-opening::before,
  .app[data-shell="theatre"] .public-drama[data-beat="dialogue"]:is(:has(> .drama-shelf:not([hidden])), :has(> .drama-branches:not([hidden])), :has(.drama-script), :has(.drama-subtext.is-open), :has(.drama-keys-pop:not([hidden]))) .drama-carry {
    display: none;
  }
}

/* ==========================================================================
   The viewer's turn: house lights up. The picture holds on the left (the asker turning to you stays at full light; under the
   reflection, the co-writing, the receipt and the ending it holds, dimmed, with the scene and the episode under it); the main
   site's paper card lights on the right, its action row pinned to the bottom of the view.
   ========================================================================== */
.app[data-shell="theatre"] .public-drama:is([data-beat="question"], [data-beat="reflection"], [data-beat="cowrite"], [data-beat="receipt"], [data-beat="end"]) .drama-theatre {
  grid-template-areas: "screen card" "rail card" "subtitle card" "aside card" ". card";
  grid-template-rows: auto auto auto auto minmax(0, 1fr); row-gap: 0;
}
.app[data-shell="theatre"] .public-drama:is([data-beat="question"], [data-beat="reflection"], [data-beat="cowrite"], [data-beat="receipt"], [data-beat="end"]) .drama-vignette { opacity: 0; }
.app[data-shell="theatre"] .public-drama:is([data-beat="reflection"], [data-beat="cowrite"], [data-beat="receipt"], [data-beat="end"]) .drama-backdrop::after { opacity: 0; }
.app[data-shell="theatre"] .public-drama[data-beat="question"] .drama-turn.is-active {
  grid-area: subtitle; align-self: start; justify-self: stretch; width: auto; margin: 6px 0 0; text-align: start; justify-items: start;
}
.app[data-shell="theatre"] .public-drama[data-beat="question"] .drama-turn.is-active .drama-turn-head { justify-content: flex-start; }
.app[data-shell="theatre"] .public-drama[data-beat="question"] .drama-turn.is-active::before { content: none; }
.app[data-shell="theatre"] .public-drama[data-beat="question"] .drama-ask-prompt { font-size: clamp(19px, 1.45vw, 22px); text-shadow: none; }
.app[data-shell="theatre"] .public-drama[data-beat="question"] .drama-gaze { text-shadow: none; color: var(--cine-text-2); }
.app[data-shell="theatre"] .public-drama[data-beat="question"] .drama-question > .drama-beat-rail {
  grid-area: rail; justify-self: start; justify-content: flex-start; width: auto; max-width: 100%; margin: 12px 0 0 -7px;
}
/* panel beats: the held picture sticks beside the card, dimmed, with its caption (scene, episode, situation) under it */
.app[data-shell="theatre"] .public-drama:is([data-beat="reflection"], [data-beat="cowrite"], [data-beat="receipt"], [data-beat="end"]) .drama-stage {
  grid-column: 1; grid-row: 1 / -1; align-self: start; position: sticky; top: 20px;
  grid-template-areas: "pic" "credit"; grid-template-rows: auto auto; overflow: visible; background: none; cursor: default;
}
.app[data-shell="theatre"] .public-drama:is([data-beat="reflection"], [data-beat="cowrite"], [data-beat="receipt"], [data-beat="end"]) .drama-live-cinema {
  filter: brightness(.62) saturate(.85); transition: opacity var(--t-slow) var(--ease), visibility 0s, filter var(--t-house) var(--ease-inout);
}
.app[data-shell="theatre"] .public-drama .drama-stage.is-live-cinema.is-cinema-still .drama-live-cinema { transform: none; }
.app[data-shell="theatre"] .public-drama .drama-stage.is-live-cinema.is-cinema-still .drama-act-poster { filter: none; }
.app[data-shell="theatre"] .public-drama:is([data-beat="reflection"], [data-beat="cowrite"], [data-beat="receipt"], [data-beat="end"]) .drama-topline {
  grid-area: credit; max-width: 36em; padding: 18px 2px 0; gap: 10px; pointer-events: auto;
}
.app[data-shell="theatre"] .public-drama:is([data-beat="reflection"], [data-beat="cowrite"], [data-beat="receipt"], [data-beat="end"]) :is(.drama-scene-tag, .drama-hook-title, .drama-hook-text) {
  text-shadow: none;
}
.app[data-shell="theatre"] .public-drama:is([data-beat="reflection"], [data-beat="cowrite"], [data-beat="receipt"], [data-beat="end"]) .drama-scene-tag { color: var(--cine-text-3); }
.app[data-shell="theatre"] .public-drama:is([data-beat="reflection"], [data-beat="cowrite"], [data-beat="receipt"], [data-beat="end"]) .drama-scene-k { color: var(--cine-text-2); }
.app[data-shell="theatre"] .public-drama:is([data-beat="reflection"], [data-beat="cowrite"], [data-beat="receipt"], [data-beat="end"]) .drama-hook { display: grid; gap: 8px; }
.app[data-shell="theatre"] .public-drama:is([data-beat="reflection"], [data-beat="cowrite"], [data-beat="receipt"], [data-beat="end"]) .drama-hook-text {
  color: var(--cine-text-3); font-size: 15px;
}
.app[data-shell="theatre"] .public-drama:is([data-beat="reflection"], [data-beat="cowrite"], [data-beat="receipt"], [data-beat="end"]) .cine-still-tag { display: none; }
/* the help card on the viewer's turn sits over the card column's top */
.app[data-shell="theatre"] .public-drama:is([data-beat="question"], [data-beat="reflection"], [data-beat="cowrite"], [data-beat="receipt"], [data-beat="end"]) .drama-keys-pop {
  grid-area: card; z-index: 8;
}
.app[data-shell="theatre"] .public-drama:is([data-beat="question"], [data-beat="reflection"], [data-beat="cowrite"], [data-beat="receipt"], [data-beat="end"]) > :is(.drama-shelf, .drama-branches) {
  align-self: start; height: auto; min-height: 0; max-height: calc(100svh - 120px);
}

/* ---- the paper card: the main site's page, lit for the viewer's turn */
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) {
  --ink: var(--paper-ink); --ink-2: var(--paper-ink-2); --muted: var(--paper-ink-3); --faint: var(--paper-ink-3);
  --line: var(--paper-line); --line-2: var(--paper-line-strong); --wash: rgba(25, 40, 73, .04); --raised: var(--paper-2); --sunken: var(--paper-2);
  --accent: var(--paper-primary); --accent-soft: var(--paper-select); --card: var(--paper-2); --card-hover: #fff; --card-edge: var(--paper-line);
  --panel-bg: var(--paper); --panel-edge: var(--paper-line); --lamp: var(--paper-primary); --lamp-soft: var(--paper-select); --card-bg: var(--paper);
  grid-area: card; position: relative; align-self: start; justify-self: stretch; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px;
  align-content: start; width: auto; min-width: 0; margin: 0; padding: clamp(22px, 2.3vw, 34px) clamp(22px, 2.3vw, 34px) 0;
  border: 0; border-radius: var(--r-card); background: var(--paper); color: var(--paper-ink); box-shadow: var(--lift-paper);
  backdrop-filter: none; font-family: var(--sans); text-align: start; pointer-events: auto; animation: none;
}
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel).is-fresh { animation: cine-fade var(--t-slow) var(--ease) both; }
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel)::before { content: none; }
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) :focus-visible { outline: 3px solid var(--paper-focus); outline-offset: 2px; }
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) > * { min-width: 0; margin-block: 0; }
.app[data-shell="theatre"] .public-drama .drama-respond-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; }
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) .drama-kicker {
  display: block; margin: 0; color: var(--paper-ink-3); font: 600 var(--fs-label)/1.4 var(--sans); letter-spacing: var(--track-label); text-transform: uppercase;
}
.app[data-shell="theatre"] .public-drama .drama-panel h2 { margin: 0; color: var(--paper-ink); font: 600 var(--fs-card-title)/1.3 var(--serif); letter-spacing: -.005em; }
.app[data-shell="theatre"] .public-drama .drama-panel h3 { margin: 0; color: var(--paper-ink-2); font: 600 16px/1.5 var(--serif); }
.app[data-shell="theatre"] .public-drama :is(.drama-respond-lead, .drama-panel > p) { margin: 0; color: var(--paper-ink-2); font: 400 var(--fs-body)/1.7 var(--sans); }
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) .drama-hint {
  display: block; margin: 0; color: var(--paper-ink-2); font-size: var(--fs-small); line-height: 1.6;
}
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) .drama-sub-title {
  display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--paper-ink); font: 600 13px/1.4 var(--sans); letter-spacing: .04em;
}
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) .icon { width: 16px; height: 16px; }
/* buttons on paper: the main site's navy pill for the step forward, white outlined pills, and underlined text for stepping back */
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) .btn { color: var(--paper-ink); }
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) .btn-line {
  border-color: var(--paper-line-strong); background: var(--paper-2); color: var(--paper-ink); box-shadow: none;
}
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) .btn-line:hover:not(:disabled) {
  border-color: var(--paper-ink-3); background: #fff; color: var(--paper-ink);
}
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) .btn-primary {
  border-color: transparent; background: var(--paper-primary); color: #fff; box-shadow: none;
}
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) .btn-primary:hover:not(:disabled) { background: var(--paper-primary-hover); color: #fff; }
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) .btn-primary:disabled { opacity: .5; }
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) .btn-quiet {
  padding-inline: 12px; background: none; color: var(--paper-primary); text-decoration: underline; text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) .btn-quiet:hover:not(:disabled) { background: none; color: var(--paper-primary-hover); }
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) .btn-quiet.drama-lens-toggle {
  min-height: 40px; padding: 0 16px; gap: 8px; border: 1px solid var(--paper-line-strong); border-radius: var(--r-pill); background: var(--paper-2);
  color: var(--paper-ink); font-size: 13.5px; font-weight: 600; text-decoration: none; box-shadow: none;
}
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) .btn-quiet.drama-lens-toggle:hover { border-color: var(--paper-ink-3); background: #fff; color: var(--paper-ink); }
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) .btn[aria-pressed="true"] {
  background: var(--paper-select); border-color: var(--paper-primary); color: var(--paper-primary); box-shadow: none;
}
/* the action row stays in view at the bottom of the card */
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) > .drama-actions:not(.drama-confirms) {
  position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px;
  margin: 0 calc(-1 * clamp(22px, 2.3vw, 34px)); padding: 14px clamp(22px, 2.3vw, 34px); background: var(--paper); box-shadow: 0 -1px 0 var(--paper-line);
}
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) > .drama-actions:not(.drama-confirms):last-child {
  border-radius: 0 0 var(--r-card) var(--r-card);
}
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) > .drama-actions .btn-primary { margin-inline-start: auto; }
/* stepping back (先跳过, 再改一下) reads as underlined text, the step forward stays the one filled pill */
.app[data-shell="theatre"] .public-drama .drama-respond > .drama-actions > .btn-line:first-child,
.app[data-shell="theatre"] .public-drama[data-beat="receipt"] .drama-panel > .drama-actions > .btn-line:first-child {
  padding-inline: 12px; border-color: transparent; background: none; color: var(--paper-primary); text-decoration: underline;
  text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.app[data-shell="theatre"] .public-drama .drama-respond > .drama-actions > .btn-line:first-child:hover:not(:disabled),
.app[data-shell="theatre"] .public-drama[data-beat="receipt"] .drama-panel > .drama-actions > .btn-line:first-child:hover:not(:disabled) {
  border-color: transparent; background: none; color: var(--paper-primary-hover);
}
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) .drama-notes-note {
  order: 5; flex-basis: 100%; margin: 0; color: var(--paper-ink-2); font-size: 12.5px;
}
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) .drama-notes-note:empty { display: none; }
/* the presets (心声卡) and the plot cards become a single-choice list: hairlines between rows, a round mark, the picked row whiter
   with a navy edge */
.app[data-shell="theatre"] .public-drama :is(.drama-presets, .drama-plots) {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; border-block: 1px solid var(--paper-line);
}
.app[data-shell="theatre"] .public-drama :is(.drama-preset, .drama-choice) {
  position: relative; display: grid; gap: 3px; min-height: 0; margin: 0; padding: 13px 16px 13px 46px; border: 0; border-radius: 0;
  background: none; box-shadow: none; color: var(--paper-ink); text-align: start; cursor: pointer; animation: none; transform: none;
  transition: background-color var(--t-quick) var(--ease), box-shadow var(--t-quick) var(--ease);
}
.app[data-shell="theatre"] .public-drama :is(.drama-preset, .drama-choice) + :is(.drama-preset, .drama-choice) { border-top: 1px solid var(--paper-line); }
.app[data-shell="theatre"] .public-drama :is(.drama-preset, .drama-choice)::before {
  content: ""; position: absolute; inset-inline-start: 16px; top: 16px; width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%;
  border: 1.5px solid var(--paper-primary); background: transparent; opacity: .55;
}
.app[data-shell="theatre"] .public-drama :is(.drama-preset, .drama-choice):hover { background: rgba(25, 40, 73, .035); box-shadow: none; }
.app[data-shell="theatre"] .public-drama :is(.drama-preset.is-picked, .drama-choice[aria-pressed="true"]) {
  background: var(--paper-2); box-shadow: inset 3px 0 0 var(--paper-primary);
}
.app[data-shell="theatre"] .public-drama :is(.drama-preset.is-picked, .drama-choice[aria-pressed="true"])::before {
  opacity: 1; background: var(--paper-primary); box-shadow: inset 0 0 0 3px var(--paper-2);
}
.app[data-shell="theatre"] .public-drama :is(.drama-preset-kicker, .drama-choice-kicker) {
  justify-self: start; padding: 0; border-radius: 0; background: none; color: var(--paper-ink-3); font: 600 11px/1.4 var(--sans); letter-spacing: .12em;
}
.app[data-shell="theatre"] .public-drama .drama-preset.is-fictional { background: none; }
.app[data-shell="theatre"] .public-drama .drama-preset.is-fictional.is-picked { background: var(--paper-2); box-shadow: inset 3px 0 0 var(--paper-primary); }
.app[data-shell="theatre"] .public-drama .drama-preset.is-fictional .drama-preset-kicker { background: none; color: var(--paper-ink-3); }
.app[data-shell="theatre"] .public-drama :is(.drama-preset-label, .drama-choice-title) { color: var(--paper-ink); font: 600 16.5px/1.45 var(--serif); }
.app[data-shell="theatre"] .public-drama :is(.drama-preset-text, .drama-choice-text) { color: var(--paper-ink-2); font: 400 14px/1.65 var(--sans); }
/* the visitor's own words: a white field and the device dictation key beside it */
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) .drama-own {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: none; box-shadow: none;
}
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) .drama-own:focus-within { box-shadow: none; }
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) :is(textarea, .drama-input) {
  display: block; width: 100%; min-height: 76px; margin: 0; padding: 12px 14px; border: 1px solid var(--paper-line-strong); border-radius: var(--r-control);
  background: var(--paper-2); color: var(--paper-ink); font: 400 15px/1.65 var(--sans); resize: vertical; box-shadow: none;
}
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) :is(textarea, .drama-input)::placeholder { color: var(--paper-ink-3); }
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) :is(textarea, .drama-input):focus-visible { outline: 3px solid var(--paper-focus); outline-offset: 2px; }
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) .drama-dictate.is-listening {
  border-color: var(--paper-primary); background: var(--paper-select); color: var(--paper-primary);
}
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) .drama-dictate.is-listening::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--paper-primary);
}
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) .drama-own + .drama-hint:empty { display: none; }
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) .drama-own + .drama-hint { margin-top: -10px; }
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) label {
  display: grid; gap: 8px; margin: 0; color: var(--paper-ink); font: 600 13.5px/1.5 var(--sans);
}
/* hear the character answer: an outlined pill and the small honesty note beside it */
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) .drama-live-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) .btn-line.drama-live-ask { border-color: var(--paper-line-strong); background: var(--paper-2); color: var(--paper-ink); }
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) .drama-live-promise { color: var(--paper-ink-3); font-size: 12.5px; line-height: 1.5; }
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) .drama-live-slot { margin: 0; }
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) .drama-live-slot:empty { display: none; }
/* the live reply: a white card with the replier's colour on its edge */
.app[data-shell="theatre"] .public-drama .drama-live {
  position: relative; display: grid; gap: 8px; margin: 0; padding: 16px 18px; border: 0; border-inline-start: 3px solid var(--paper-b);
  border-radius: 12px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--paper-line); color: var(--paper-ink); animation: cine-fade var(--t-slow) var(--ease) both;
}
.app[data-shell="theatre"] .public-drama .drama-live::before { content: none; }
.app[data-shell="theatre"] .public-drama :is(.drama-live, .drama-rehearse-reply, .drama-subtext) { scroll-margin: 24px 0 104px; }
.app[data-shell="theatre"] .public-drama .drama-live.is-a { border-inline-start-color: var(--paper-a); }
.app[data-shell="theatre"] .public-drama .drama-live-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) .drama-badge { color: var(--paper-b); font: 600 11.5px/1.3 var(--sans); letter-spacing: .12em; }
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) .drama-badge.is-a { color: var(--paper-a); }
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) .drama-turn-mood { color: var(--paper-ink-3); }
.app[data-shell="theatre"] .public-drama .drama-live-tag {
  margin-inline-start: auto; padding: 0; border-radius: 0; background: none; box-shadow: none; color: var(--paper-ink-3);
  font: 600 11px/1.4 var(--sans); letter-spacing: .1em;
}
.app[data-shell="theatre"] .public-drama .drama-live-say { margin: 0; color: var(--paper-ink); font: 400 17px/1.7 var(--serif); }
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) .drama-direction { color: var(--paper-ink-2); text-shadow: none; font-size: 13px; }
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) .drama-live-note { margin: 0; color: var(--paper-ink-3); font-size: 12.5px; line-height: 1.6; }
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) p.drama-live-note { padding: 10px 14px; border-radius: 10px; background: var(--paper-3); color: var(--paper-ink-2); }
/* waiting for the reply: a calm line with three slow dots */
.app[data-shell="theatre"] .public-drama :is(.drama-live, .drama-rehearse-reply).is-pending {
  grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 14px 18px; border-inline-start-color: var(--paper-line-strong);
  background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--paper-line);
}
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) .drama-live-k {
  display: flex; align-items: center; gap: 8px; margin: 0; color: var(--paper-ink-2); font: 500 13.5px/1.5 var(--sans);
}
.app[data-shell="theatre"] .public-drama .drama-live-dots { display: inline-flex; gap: 5px; }
.app[data-shell="theatre"] .public-drama .drama-live-dots i {
  display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--paper-ink-3); animation: cine-wait 1.8s ease-in-out infinite;
}
.app[data-shell="theatre"] .public-drama .drama-live-dots i:nth-child(2) { animation-delay: .3s; }
.app[data-shell="theatre"] .public-drama .drama-live-dots i:nth-child(3) { animation-delay: .6s; }
/* the safety pause (先停一下): calm slate blue, never warm, never red, never blinking, never dismissed by itself */
.app[data-shell="theatre"] .public-drama :is(.drama-live, .drama-rehearse-reply).is-hold {
  display: grid; gap: 8px; padding: 16px 18px 18px; border: 0; border-inline-start: 3px solid var(--paper-hold); border-radius: 12px;
  background: #e9edf5; box-shadow: none; color: var(--paper-ink);
}
.app[data-shell="theatre"] .public-drama :is(.drama-live, .drama-rehearse-reply).is-hold .drama-live-k {
  color: var(--paper-ink); font: 600 17px/1.4 var(--serif);
}
.app[data-shell="theatre"] .public-drama :is(.drama-live, .drama-rehearse-reply).is-hold .drama-live-k .icon { color: var(--paper-hold); }
.app[data-shell="theatre"] .public-drama :is(.drama-live, .drama-rehearse-reply).is-hold :is(.drama-live-say, .drama-rehearse-say) {
  color: var(--paper-ink); font: 400 15px/1.75 var(--serif);
}
/* the subtext lens inside the card (question beat) */
.app[data-shell="theatre"] .public-drama .drama-respond .drama-subtext.is-open { margin: 0; }
.app[data-shell="theatre"] .public-drama .drama-respond .drama-subtext-card { padding: 16px 18px; border: 0; border-radius: 12px; background: var(--paper-3); }
.app[data-shell="theatre"] .public-drama .drama-respond .drama-subtext-k { color: var(--paper-ink-3); }
.app[data-shell="theatre"] .public-drama .drama-respond .drama-subtext-rows { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.app[data-shell="theatre"] .public-drama .drama-respond .drama-subtext-row { border-inline-start-color: var(--paper-line-strong); }
.app[data-shell="theatre"] .public-drama .drama-respond .drama-subtext-row.is-a { border-inline-start-color: var(--paper-a); }
.app[data-shell="theatre"] .public-drama .drama-respond .drama-subtext-row.is-b { border-inline-start-color: var(--paper-b); }
.app[data-shell="theatre"] .public-drama .drama-respond .drama-subtext-row dt { color: var(--paper-ink-3); }
.app[data-shell="theatre"] .public-drama .drama-respond .drama-subtext-row.is-a dt { color: var(--paper-a); }
.app[data-shell="theatre"] .public-drama .drama-respond .drama-subtext-row.is-b dt { color: var(--paper-b); }
.app[data-shell="theatre"] .public-drama .drama-respond .drama-subtext-row dd { color: var(--paper-ink); font-size: 15px; }
/* rehearse a line first: a folded row at the card's foot; open, the three ways of saying it are single-choice rows */
.app[data-shell="theatre"] .public-drama .drama-rehearse {
  margin: 0; padding: 4px 0 20px; border: 0; border-top: 1px solid var(--paper-line); border-radius: 0; background: none; box-shadow: none;
}
.app[data-shell="theatre"] .public-drama .drama-rehearse > summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 44px; padding: 0; border-radius: 0; box-shadow: none;
  color: var(--paper-ink); font: 600 14px/1.4 var(--sans); cursor: pointer; list-style: none;
}
.app[data-shell="theatre"] .public-drama .drama-rehearse > summary:hover { background: none; color: var(--paper-primary); }
.app[data-shell="theatre"] .public-drama .drama-rehearse > summary::-webkit-details-marker { display: none; }
.app[data-shell="theatre"] .public-drama .drama-rehearse > summary::after {
  content: ""; width: 7px; height: 7px; margin-inline-start: auto; border: 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: none; rotate: 45deg; translate: 0 -2px; opacity: .7; transition: none;
}
.app[data-shell="theatre"] .public-drama .drama-rehearse[open] > summary::after { rotate: 225deg; translate: 0 2px; }
.app[data-shell="theatre"] .public-drama .drama-rehearse[open] > summary { box-shadow: none; }
.app[data-shell="theatre"] .public-drama .drama-rehearse > summary .icon { color: var(--paper-ink-2); }
.app[data-shell="theatre"] .public-drama .drama-rehearse-tag {
  padding: 0; border-radius: 0; background: none; color: var(--paper-ink-3); font: 500 12px/1.4 var(--sans); letter-spacing: .02em;
}
.app[data-shell="theatre"] .public-drama .drama-rehearse-box { display: grid; gap: 14px; padding: 6px 0 0; animation: none; }
.app[data-shell="theatre"] .public-drama .drama-rehearse-lead { margin: 0; color: var(--paper-ink-2); font-size: 13.5px; line-height: 1.65; }
.app[data-shell="theatre"] .public-drama .drama-rehearse-chips {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; border-block: 1px solid var(--paper-line);
}
.app[data-shell="theatre"] .public-drama .drama-rehearse-chips-k {
  display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 0; color: var(--paper-ink-3);
  font: 600 var(--fs-label)/1.4 var(--sans); letter-spacing: var(--track-label);
}
.app[data-shell="theatre"] .public-drama .drama-rehearse-chip {
  position: relative; display: grid; gap: 2px; min-width: 0; margin: 0; padding: 12px 14px 12px 42px; border: 0; border-top: 1px solid var(--paper-line);
  border-radius: 0; background: none; box-shadow: none; color: var(--paper-ink); text-align: start; cursor: pointer; transform: none;
}
.app[data-shell="theatre"] .public-drama .drama-rehearse-chip::before {
  content: ""; position: absolute; inset-inline-start: 14px; top: 15px; width: 14px; height: 14px; box-sizing: border-box; border-radius: 50%;
  border: 1.5px solid var(--paper-primary); opacity: .55;
}
.app[data-shell="theatre"] .public-drama .drama-rehearse-chip:hover:not(:disabled) { background: rgba(25, 40, 73, .035); box-shadow: none; transform: none; }
.app[data-shell="theatre"] .public-drama .drama-rehearse-chip.is-picked { background: var(--paper-2); box-shadow: inset 3px 0 0 var(--paper-primary); }
.app[data-shell="theatre"] .public-drama .drama-rehearse-chip.is-picked::before { opacity: 1; background: var(--paper-primary); box-shadow: inset 0 0 0 3px var(--paper-2); }
.app[data-shell="theatre"] .public-drama .drama-rehearse-chip-tone {
  justify-self: start; padding: 0; border-radius: 0; background: none; color: var(--paper-ink-3); font: 600 11px/1.4 var(--sans); letter-spacing: .1em;
}
.app[data-shell="theatre"] .public-drama .drama-rehearse-chip-k { color: var(--paper-ink); font: 600 14.5px/1.45 var(--sans); }
.app[data-shell="theatre"] .public-drama .drama-rehearse-chip-say { color: var(--paper-ink-2); font: 400 14px/1.6 var(--serif); }
.app[data-shell="theatre"] .public-drama .drama-rehearse-own { display: block; padding: 0; }
.app[data-shell="theatre"] .public-drama .drama-rehearse-input { min-height: 3.2em; padding: 12px 14px; }
.app[data-shell="theatre"] .public-drama .drama-rehearse-slot { margin: 0; }
.app[data-shell="theatre"] .public-drama .drama-rehearse-slot:empty { display: none; }
.app[data-shell="theatre"] .public-drama .drama-rehearse-reply {
  display: grid; gap: 0; overflow: hidden; margin: 0; border: 0; border-radius: 12px; background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--paper-line); color: var(--paper-ink); animation: cine-fade var(--t-slow) var(--ease) both;
}
.app[data-shell="theatre"] .public-drama .drama-rehearse-half { display: grid; gap: 6px; padding: 14px 16px; background: none; box-shadow: none; }
.app[data-shell="theatre"] .public-drama .drama-rehearse-half.is-reaction { background: none; }
.app[data-shell="theatre"] .public-drama .drama-rehearse-reply.is-a .drama-rehearse-half.is-reaction { box-shadow: inset 3px 0 0 var(--paper-a); }
.app[data-shell="theatre"] .public-drama .drama-rehearse-reply.is-b .drama-rehearse-half.is-reaction { box-shadow: inset 3px 0 0 var(--paper-b); }
.app[data-shell="theatre"] .public-drama .drama-rehearse-half.is-mirror { background: var(--paper-3); box-shadow: none; }
.app[data-shell="theatre"] .public-drama .drama-rehearse-k {
  display: flex; align-items: center; gap: 8px; margin: 0; color: var(--paper-ink-3); font: 600 var(--fs-label)/1.4 var(--sans); letter-spacing: var(--track-label);
}
.app[data-shell="theatre"] .public-drama .drama-rehearse-half.is-mirror .drama-rehearse-k { color: var(--paper-ink-3); }
.app[data-shell="theatre"] .public-drama .drama-rehearse-say { margin: 0; color: var(--paper-ink); font: 400 17px/1.7 var(--serif); }
.app[data-shell="theatre"] .public-drama .drama-rehearse-mirror { margin: 0; color: var(--paper-ink); font: 400 15.5px/1.75 var(--serif); }
.app[data-shell="theatre"] .public-drama .drama-rehearse-reply > .drama-live-note { margin: 0; padding: 10px 16px 12px; background: none; border-top: 1px solid var(--paper-line); }
/* reflection: the visitor's words quoted with a navy edge, the practice note, the four-state confirmation as a segmented control */
.app[data-shell="theatre"] .public-drama .drama-echo {
  margin: 0; padding: 4px 0 4px 16px; border: 0; border-inline-start: 3px solid var(--paper-primary); border-radius: 0; background: none;
  color: var(--paper-ink); font: 400 16px/1.7 var(--serif);
}
.app[data-shell="theatre"] .public-drama .drama-memo {
  position: relative; display: grid; gap: 8px; margin: 0; padding: 16px 18px; border-radius: 12px; transform: none;
  background: var(--paper-3); box-shadow: none;
}
.app[data-shell="theatre"] .public-drama .drama-memo::before { content: none; }
.app[data-shell="theatre"] .public-drama .drama-memo-k {
  display: flex; align-items: center; gap: 8px; margin: 0; color: var(--paper-ink-3); font: 600 var(--fs-label)/1.4 var(--sans); letter-spacing: var(--track-label);
}
.app[data-shell="theatre"] .public-drama .drama-memo-lead { margin: 0; color: var(--paper-ink-2); font-size: 13.5px; line-height: 1.6; }
.app[data-shell="theatre"] .public-drama .drama-memo ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.app[data-shell="theatre"] .public-drama .drama-memo li {
  position: relative; padding-inline-start: 18px; color: var(--paper-ink); font: 400 15px/1.65 var(--serif);
}
.app[data-shell="theatre"] .public-drama .drama-memo li::before {
  content: ""; position: absolute; inset-inline-start: 3px; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--paper-ink-3); box-shadow: none;
}
.app[data-shell="theatre"] .public-drama .drama-actions.drama-confirms {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; overflow: hidden;
  border: 1px solid var(--paper-line-strong); border-radius: var(--r-control); background: var(--paper-2);
}
.app[data-shell="theatre"] .public-drama .drama-confirms .drama-confirm-tag {
  min-width: 0; min-height: 46px; margin: 0; padding: 6px 8px; border: 0; border-radius: 0; background: var(--paper-2); color: var(--paper-ink);
  font-size: 14px; white-space: normal; text-align: center; line-height: 1.3; box-shadow: none; transform: none;
}
.app[data-shell="theatre"] .public-drama .drama-confirms .drama-confirm-tag::before { content: none; }
.app[data-shell="theatre"] .public-drama .drama-confirms .drama-confirm-tag + .drama-confirm-tag { border-inline-start: 1px solid var(--paper-line-strong); }
.app[data-shell="theatre"] .public-drama .drama-confirms .drama-confirm-tag:hover:not(:disabled) { background: #fff; border-color: var(--paper-line-strong); }
.app[data-shell="theatre"] .public-drama .drama-confirms .drama-confirm-tag[aria-pressed="true"],
.app[data-shell="theatre"] .public-drama .drama-confirms .drama-confirm-tag[aria-pressed="true"]:hover {
  background: var(--paper-ink); color: #fff; border-color: var(--paper-line-strong);
}
.app[data-shell="theatre"] .public-drama .drama-confirms .drama-confirm-tag:active { transform: none; }
/* the four states keep their words whole: balanced lines everywhere, and Japanese (whose names run longest) two by two */
.app[data-shell="theatre"] .public-drama .drama-confirms .drama-confirm-tag { text-wrap: balance; }
.app[data-shell="theatre"] .public-drama:lang(ja) .drama-confirms .drama-confirm-tag { word-break: auto-phrase; }
.app[data-shell="theatre"] .public-drama:lang(ja) .drama-actions.drama-confirms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.app[data-shell="theatre"] .public-drama:lang(ja) .drama-confirms .drama-confirm-tag:nth-child(3) { border-inline-start: 0; }
.app[data-shell="theatre"] .public-drama:lang(ja) .drama-confirms .drama-confirm-tag:nth-child(n+3) { border-top: 1px solid var(--paper-line-strong); }
.app[data-shell="theatre"] .public-drama .drama-confirms .drama-confirm-tag:focus-visible { outline-offset: -3px; }
/* co-writing: the ending hook, the plot cards, the nine postcards (3 by 3, picked with a navy frame, never tilted), the quick selects */
.app[data-shell="theatre"] .public-drama .drama-panel > .drama-cw-hook {
  margin: 0; padding: 2px 0 2px 16px; border: 0; border-inline-start: 3px solid var(--paper-primary); border-radius: 0; background: none;
  color: var(--paper-ink); font: 400 17px/1.75 var(--serif); box-shadow: none;
}
.app[data-shell="theatre"] .public-drama .drama-step { margin: 0; min-width: 0; }
.app[data-shell="theatre"] .public-drama .drama-plots .drama-choice { min-height: 0; }
.app[data-shell="theatre"] .public-drama .drama-postcards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row; gap: 14px 12px; margin: 0; padding: 0; overflow: visible;
}
.app[data-shell="theatre"] .public-drama .drama-postcards .drama-scene-card {
  display: grid; align-content: start; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none;
  box-shadow: none; color: var(--paper-ink); text-align: start; cursor: pointer; transform: none; transition: none;
}
.app[data-shell="theatre"] .public-drama .drama-postcards .drama-scene-card:is(:hover, .is-picked, :nth-child(odd), :nth-child(even)) {
  transform: none; background: none; box-shadow: none;
}
.app[data-shell="theatre"] .public-drama .drama-postcards .drama-scene-thumb {
  position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; background: var(--paper-3);
}
.app[data-shell="theatre"] .public-drama .drama-postcards .drama-scene-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transform: none; }
.app[data-shell="theatre"] .public-drama .drama-postcards .drama-scene-card:hover .drama-scene-thumb img { filter: brightness(1.05); }
.app[data-shell="theatre"] .public-drama .drama-postcards .drama-scene-card[aria-pressed="true"] .drama-scene-thumb { outline: 2px solid var(--paper-primary); outline-offset: 2px; }
.app[data-shell="theatre"] .public-drama .drama-postcards .drama-scene-card:focus-visible { outline: none; }
.app[data-shell="theatre"] .public-drama .drama-postcards .drama-scene-card:focus-visible .drama-scene-thumb { outline: 3px solid var(--paper-focus); outline-offset: 2px; }
.app[data-shell="theatre"] .public-drama .drama-scene-name {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 0; color: var(--paper-ink); font: 600 13px/1.35 var(--sans);
}
.app[data-shell="theatre"] .public-drama .drama-scene-card[aria-pressed="true"] .drama-scene-name { color: var(--paper-primary); }
.app[data-shell="theatre"] .public-drama .drama-scene-amb { padding: 0; color: var(--paper-ink-2); font-size: 12px; line-height: 1.45; }
.app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) .drama-tag.is-warm {
  padding: 1px 7px; border-radius: var(--r-pill); background: var(--paper-warm-bg); color: var(--paper-warm-ink); box-shadow: none;
  font: 600 11px/1.5 var(--sans);
}
.app[data-shell="theatre"] .public-drama .drama-quick {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--paper-line);
  border-radius: 0; background: none; box-shadow: none;
}
.app[data-shell="theatre"] .public-drama .drama-quick-k { color: var(--paper-ink-3); font: 600 var(--fs-label)/1.4 var(--sans); letter-spacing: var(--track-label); }
.app[data-shell="theatre"] .public-drama .drama-quick select {
  flex: 1 1 12rem; width: auto; min-width: 0; height: 40px; margin: 0; padding: 0 12px; border: 1px solid var(--paper-line-strong);
  border-radius: var(--r-control); background-color: var(--paper-2); color: var(--paper-ink); font: 500 14px/1 var(--sans); box-shadow: none;
}
/* receipt: what the visitor's words changed, the next episode's first line as a small note */
.app[data-shell="theatre"] .public-drama .drama-panel > .drama-receipt-title { margin: 0; color: var(--paper-ink-2); font: 600 15px/1.5 var(--serif); }
.app[data-shell="theatre"] .public-drama .drama-storyboard { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 0; }
.app[data-shell="theatre"] .public-drama .drama-storyboard-frame { display: none; }
.app[data-shell="theatre"] .public-drama .drama-storyboard-body { display: grid; gap: 12px; min-width: 0; }
.app[data-shell="theatre"] .public-drama .drama-impact {
  margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--paper-ink);
}
.app[data-shell="theatre"] .public-drama .drama-impact ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.app[data-shell="theatre"] .public-drama .drama-impact li {
  position: relative; display: block; padding-inline-start: 18px; color: var(--paper-ink); font: 400 15px/1.7 var(--sans);
}
.app[data-shell="theatre"] .public-drama .drama-impact li::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--paper-ink-3);
}
.app[data-shell="theatre"] .public-drama .drama-storyboard-line {
  display: grid; gap: 6px; margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--paper-3);
}
.app[data-shell="theatre"] .public-drama .drama-storyboard-line .drama-badge { margin: 0; }
.app[data-shell="theatre"] .public-drama .drama-receipt-hook {
  margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--paper-ink); font: 400 16px/1.75 var(--serif);
}
/* the ending: the next round's prologue as a short script, then the way back home or on to the workbench */
.app[data-shell="theatre"] .public-drama .drama-prologue {
  display: grid; gap: 0; margin: 0; padding: 4px 0; border-block: 1px solid var(--paper-line);
}
.app[data-shell="theatre"] .public-drama .drama-prologue-line {
  display: grid; grid-template-columns: 4.6em minmax(0, 1fr); align-items: baseline; gap: 12px; margin: 0; padding: 10px 0;
  color: var(--paper-ink); font: 400 16px/1.7 var(--serif);
}
.app[data-shell="theatre"] .public-drama .drama-prologue-line + .drama-prologue-line { border-top: 1px solid var(--paper-line); }
.app[data-shell="theatre"] .public-drama[data-beat="end"] .drama-panel > .drama-actions > .btn:first-child {
  padding-inline: 12px; border-color: transparent; background: none; color: var(--paper-primary); text-decoration: underline; text-underline-offset: 4px;
}
.app[data-shell="theatre"] .public-drama .drama-foot {
  margin: 22px 0 0; padding: 0; color: var(--cine-text-3); font: 400 12px/1.6 var(--sans); text-align: center;
}

@keyframes cine-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cine-wait { 0%, 100% { opacity: .25; } 50% { opacity: .9; } }

/* ---- breakpoints */
/* ≤1100: the "leave" key keeps only its icon (the transport's tools fold by the bar's own width, see the transport above) */
@media (max-width: 1100px) {
  .app[data-shell="theatre"] .public-drama { --gutter: 28px; }
  .app[data-shell="theatre"] .public-drama .public-drama-tools .public-drama-control.cine-leave { width: 36px; padding: 0; }
  .app[data-shell="theatre"] .public-drama .public-drama-tools .public-drama-control.cine-leave .cine-tool-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}

/* ≤900: one column. The room controls fold into the "more" sheet; every sheet rises from the bottom over a dimmed house; the
   viewer's card follows the picture; the other lead's last line steps out */
@media (max-width: 900px) {
  .app[data-shell="theatre"] .public-drama {
    --gutter: 24px; width: calc(100% - 2 * var(--gutter)); grid-template-columns: minmax(0, 1fr); column-gap: 0;
  }
  .app[data-shell="theatre"] .public-drama > :is(.drama-shelf, .drama-branches) { grid-column: 1; }
  .app[data-shell="theatre"] .public-drama .public-drama-head {
    grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title more" "reel story";
  }
  .app[data-shell="theatre"] .public-drama .public-drama-control.drama-more-toggle {
    grid-area: more; justify-self: end; display: inline-grid; place-items: center; width: 40px; height: 40px; min-height: 0; margin: 0; padding: 0;
    border: 1px solid var(--cine-line-strong); border-radius: 50%; background: transparent; color: var(--cine-text); box-shadow: none; cursor: pointer;
  }
  .app[data-shell="theatre"] .public-drama .public-drama-control.drama-more-toggle:hover { background: var(--cine-fill); }
  .app[data-shell="theatre"] .public-drama .public-drama-control.drama-more-toggle[aria-expanded="true"] { background: var(--cine-fill-2); }
  /* every sheet is a bottom sheet: solid, rounded at the top, over a dimmed house that folds it away when tapped */
  .app[data-shell="theatre"] .public-drama[data-beat] :is(.public-drama-tools, .drama-script, .drama-keys-pop),
  .app[data-shell="theatre"] .public-drama[data-beat] > :is(.drama-shelf, .drama-branches) {
    position: fixed; inset: auto 0 0 0; z-index: 45; width: auto; max-width: 600px; height: auto; min-height: 0; max-height: 84svh;
    margin: 0 auto; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--cine-line-strong); border-bottom: 0;
    border-radius: 18px 18px 0 0; background: var(--cine-850); color: var(--cine-text); box-shadow: var(--lift-pop);
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
  .app[data-shell="theatre"] .public-drama.is-more-open::after,
  .app[data-shell="theatre"] .public-drama:has(.drama-script, .drama-keys-pop:not([hidden]), > .drama-shelf:not([hidden]), > .drama-branches:not([hidden]), .drama-carry[open])::after {
    content: ""; position: fixed; inset: 0; z-index: 35; background: rgba(3, 6, 12, .6); animation: cine-fade var(--t-base) var(--ease) both;
  }
  /* the "more" sheet: one control per row with its name written out; a switch that is on gets a small dot at the row's end */
  .app[data-shell="theatre"] .public-drama .public-drama-tools {
    display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 12px calc(16px + env(safe-area-inset-bottom));
  }
  .app[data-shell="theatre"] .public-drama.is-more-open .public-drama-tools { display: flex; animation: cine-fade var(--t-base) var(--ease) both; }
  .app[data-shell="theatre"] .public-drama .public-drama-tools .public-drama-control,
  .app[data-shell="theatre"] .public-drama .public-drama-tools .public-drama-control.cine-bench,
  .app[data-shell="theatre"] .public-drama .public-drama-tools .public-drama-control.cine-leave,
  .app[data-shell="theatre"] .public-drama .drama-sound .public-drama-control,
  .app[data-shell="theatre"] .public-drama .drama-sound .public-drama-control.drama-soundscape {
    display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; height: 46px; padding: 0 12px;
    border: 0; border-radius: 10px; color: var(--cine-text); font: 500 14.5px/1.3 var(--sans); text-align: start;
  }
  .app[data-shell="theatre"] .public-drama .public-drama-tools .public-drama-control[aria-pressed="false"] { color: var(--cine-text-2); }
  .app[data-shell="theatre"] .public-drama .public-drama-tools .public-drama-control[aria-pressed="true"] { background: none; color: var(--cine-text); }
  .app[data-shell="theatre"] .public-drama .public-drama-tools .public-drama-control[aria-pressed="true"]::after {
    content: ""; margin-inline-start: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--cine-text-2);
  }
  .app[data-shell="theatre"] .public-drama .public-drama-tools :is(.drama-sound-label, .drama-still-label, .cine-tool-label),
  .app[data-shell="theatre"] .public-drama .public-drama-tools .public-drama-control.cine-leave .cine-tool-label {
    position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; color: inherit; font: inherit;
  }
  .app[data-shell="theatre"] .public-drama .public-drama-tools .drama-keys-glyph { display: inline-grid; place-items: center; width: 16px; }
  .app[data-shell="theatre"] .public-drama .drama-sound { flex-direction: column; align-items: stretch; height: auto; gap: 2px; }
  .app[data-shell="theatre"] .public-drama .drama-sound-fine {
    flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 0 0 0 28px; border: 0;
  }
  .app[data-shell="theatre"] .public-drama .cine-tools-sep { width: auto; height: 1px; margin: 6px 4px; }
  .app[data-shell="theatre"] .public-drama .public-drama-tools .cine-sheet-k {
    display: block; margin: 0; padding: 6px 12px 10px; color: var(--cine-text-3); font: 600 var(--fs-label)/1.4 var(--sans);
    letter-spacing: var(--track-label);
  }
  .app[data-shell="theatre"] .public-drama .public-drama-tools select {
    width: 100%; max-width: none; height: 46px; padding: 0 36px 0 12px; border: 1px solid var(--cine-line); border-radius: 10px;
    color: var(--cine-text); font-size: 14.5px; background-position: calc(100% - 19px) 21px, calc(100% - 15px) 21px;
  }
  .app[data-shell="theatre"] .public-drama .drama-sound-label { white-space: normal; }
  /* one column for every beat */
  .app[data-shell="theatre"] .public-drama .drama-theatre,
  .app[data-shell="theatre"] .public-drama:is([data-beat="question"], [data-beat="reflection"], [data-beat="cowrite"], [data-beat="receipt"], [data-beat="end"]) .drama-theatre {
    grid-template-columns: minmax(0, 1fr); column-gap: 0; grid-template-rows: none; row-gap: 14px;
    grid-template-areas: "screen" "transport" "synopsis" "lens";
  }
  .app[data-shell="theatre"] .public-drama:is([data-beat="question"], [data-beat="reflection"], [data-beat="cowrite"], [data-beat="receipt"], [data-beat="end"]) .drama-theatre {
    grid-template-areas: "screen" "rail" "subtitle" "card"; row-gap: 0;
  }
  .app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) { margin-top: 18px; }
  .app[data-shell="theatre"] .public-drama:is([data-beat="reflection"], [data-beat="cowrite"], [data-beat="receipt"], [data-beat="end"]) .drama-stage {
    grid-area: screen; position: relative; top: 0;
  }
  .app[data-shell="theatre"] .public-drama .drama-turn.is-echo { display: none; }
  .app[data-shell="theatre"] .public-drama .drama-subtext-rows { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  /* sheets at the bottom: the script, the controls card, the shelf (three posters a row) and the branches */
  .app[data-shell="theatre"] .public-drama .drama-script { display: grid; grid-template-rows: auto minmax(0, 1fr); padding-bottom: 0; }
  .app[data-shell="theatre"] .public-drama .drama-script ul { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .app[data-shell="theatre"] .public-drama .drama-keys-pop { padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); }
  .app[data-shell="theatre"] .public-drama > .drama-shelf { display: block; padding: 14px 16px calc(22px + env(safe-area-inset-bottom)); }
  .app[data-shell="theatre"] .public-drama > .drama-shelf[hidden], .app[data-shell="theatre"] .public-drama > .drama-branches[hidden] { display: none; }
  .app[data-shell="theatre"] .public-drama .drama-shelf-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 18px; }
  .app[data-shell="theatre"] .public-drama .drama-shelf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
  .app[data-shell="theatre"] .public-drama > .drama-branches { display: block; padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); }
  .app[data-shell="theatre"] .public-drama .drama-branches-grid { overflow: visible; }
  .app[data-shell="theatre"] .public-drama > .drama-notice { max-width: min(26em, 70%); }
  /* the carry-over, opened, rises as a bottom sheet above the dimmed house (the picture with its fold stays lit) */
  .app[data-shell="theatre"] .public-drama .drama-stage:has(.drama-carry[open]) { z-index: 40; }
  .app[data-shell="theatre"] .public-drama .drama-carry[open] > .drama-carry-list {
    position: fixed; inset: auto 0 0 0; z-index: 2; width: auto; max-width: 600px; max-height: 70svh; margin: 0 auto; overflow: auto;
    padding: 20px 22px calc(22px + env(safe-area-inset-bottom)); border-bottom: 0; border-radius: 18px 18px 0 0; background: var(--cine-850);
    animation: cine-fade var(--t-base) var(--ease) both;
  }
  .app[data-shell="theatre"] .public-drama .drama-carry-list li { font-size: 14.5px; }
}

/* ≤767: phones and small tablets, in three fixed bands. One, the picture, edge to edge (a 16:9 frame on small tablets, the 4:3
   two-shot on phones), carrying nothing but the scene's credit and, over an episode's first line, its title. Two, the words, right
   under the picture, so the speaker's name starts at the same height on every line, the first included. Three, the transport,
   pinned to the foot of the screen; while it is pinned the page keeps the same height free at its foot, so nothing can ever sit
   hidden under it. The episode's situation reads after the words. The camera keeps still, so both faces stay whole. */
@media (max-width: 767px) {
  .app[data-shell="theatre"] .public-drama {
    --gutter: 0px; --transport-h: calc(106px + env(safe-area-inset-bottom)); width: 100%; padding: 10px 0 0;
  }
  .app[data-shell="theatre"] .public-drama[data-beat="dialogue"] { padding-bottom: var(--transport-h); }
  html:has(.app[data-shell="theatre"] .public-drama[data-beat="dialogue"]) { scroll-padding-bottom: calc(106px + env(safe-area-inset-bottom)); }
  .app[data-shell="theatre"] .public-drama .public-drama-head {
    grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title more" "reel story"; column-gap: 12px; row-gap: 2px; padding: 0 16px 10px;
  }
  .app[data-shell="theatre"] .public-drama .drama-heading h1 {
    font-size: 19px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  }
  .app[data-shell="theatre"] .public-drama .drama-reel .drama-reel-btn { min-height: 44px; padding: 0 6px; font-size: 12.5px; }
  .app[data-shell="theatre"] .public-drama .drama-reel .drama-reel-btn + .drama-reel-btn::before { top: 15px; bottom: 15px; }
  .app[data-shell="theatre"] .public-drama .drama-reel .drama-reel-btn .icon { display: none; }
  .app[data-shell="theatre"] .public-drama .drama-reel .drama-reel-btn + .drama-reel-btn { margin-inline-start: 7px; }
  .app[data-shell="theatre"] .public-drama .drama-chapters { overflow: visible; }
  .app[data-shell="theatre"] .public-drama .drama-chapter:not(.is-current) { width: 24px; }
  .app[data-shell="theatre"] .public-drama:lang(en) .public-drama-head,
  .app[data-shell="theatre"] .public-drama .public-drama-head:has(.drama-reel-btn + .drama-reel-btn) {
    grid-template-areas: "title more" "reel reel" "story story";
  }
  .app[data-shell="theatre"] .public-drama:lang(en) .drama-reel,
  .app[data-shell="theatre"] .public-drama .public-drama-head:has(.drama-reel-btn + .drama-reel-btn) .drama-reel {
    justify-self: start; margin-inline-start: -6px;
  }
  .app[data-shell="theatre"] .public-drama .drama-chapter.is-current { padding-inline-end: 10px; font-size: 12px; }
  .app[data-shell="theatre"] .public-drama :is(.drama-chapter-tip, .drama-chapter-echo) { display: none; }
  .app[data-shell="theatre"] .public-drama .public-drama-tools,
  .app[data-shell="theatre"] .public-drama :is(.drama-script, .drama-keys-pop),
  .app[data-shell="theatre"] .public-drama > :is(.drama-shelf, .drama-branches) { max-width: none; border-inline: 0; }
  .app[data-shell="theatre"] .public-drama > .drama-notice {
    grid-row: 2; justify-self: start; max-width: calc(100% - 32px); margin: 0 16px 10px; font-size: 12px;
  }
  .app[data-shell="theatre"] .public-drama > .drama-theatre { grid-row: 3; }
  .app[data-shell="theatre"] .public-drama > .drama-foot { grid-row: 4; }
  /* band one: the picture */
  .app[data-shell="theatre"] .public-drama .drama-theatre { row-gap: 0; grid-template-areas: "screen" "subtitle" "synopsis" "lens"; }
  .app[data-shell="theatre"] .public-drama .drama-stage { border-radius: 0; grid-template-areas: "pic" "credit"; grid-template-rows: auto auto; overflow: visible; }
  .app[data-shell="theatre"] .public-drama .drama-backdrop { aspect-ratio: 16 / 9; border-radius: 0; }
  .app[data-shell="theatre"] .public-drama .drama-vignette { opacity: 0; }
  .app[data-shell="theatre"] .public-drama.drama .drama-stage.is-live-cinema[data-cam] .drama-live-cinema,
  .app[data-shell="theatre"] .public-drama.drama .drama-stage .drama-live-cinema { transform: none; }
  .app[data-shell="theatre"] .public-drama .drama-topline { max-width: none; padding: 12px 16px 14px; }
  .app[data-shell="theatre"] .public-drama .drama-scene-tag-amb { display: inline; }
  .app[data-shell="theatre"] .public-drama .drama-hook-title { font-size: 16px; }
  .app[data-shell="theatre"] .public-drama .drama-hook-text { font-size: 15px; line-height: 1.7; }
  .app[data-shell="theatre"] .public-drama .cine-still-tag { margin: 12px; }
  /* band two: the words, flush left on solid ground right under the picture */
  .app[data-shell="theatre"] .public-drama .drama-turn.is-active,
  .app[data-shell="theatre"] .public-drama .drama-turn.is-active.is-b {
    grid-area: subtitle; align-self: start; justify-self: stretch; align-content: start; width: auto; min-height: 0; margin: 0;
    padding: 14px 16px 12px; text-align: start; justify-items: start;
  }
  .app[data-shell="theatre"] .public-drama .drama-turn.is-active::before { content: none; }
  .app[data-shell="theatre"] .public-drama .drama-turn.is-active.is-b .drama-turn-head { justify-content: flex-start; }
  .app[data-shell="theatre"] .public-drama :is(.drama-say, .drama-ask-prompt) { font-size: 18px; line-height: 1.66; text-shadow: none; }
  .app[data-shell="theatre"] .public-drama :is(.drama-direction, .drama-gaze) { text-shadow: none; }
  /* a narrow column packs Chinese and Japanese lines full (a clause kept whole there leaves half-empty lines and can push the end
     of a long line under the transport); Japanese still breaks between phrases where the browser can tell them */
  .app[data-shell="theatre"] .public-drama:is(:lang(zh), :lang(ja)) :is(.drama-say, .drama-ask-prompt) .drama-clause { display: inline; }
  .app[data-shell="theatre"] .public-drama:lang(ja) :is(.drama-say, .drama-ask-prompt) { word-break: auto-phrase; }
  /* after the words, the episode's situation */
  .app[data-shell="theatre"] .public-drama .drama-synopsis { margin: 2px 16px 18px; padding: 12px 0 0; border-top: 1px solid var(--cine-line); font-size: 15px; }
  /* band three: the transport, pinned to the foot of the screen: the rail on top (each mark a 24 by 44 target), the five icon
     tools and the warm "next" under it. Its height never changes from line to line, so "next" stays under the same thumb. */
  .app[data-shell="theatre"] .public-drama .drama-controls {
    position: fixed; inset: auto 0 0 0; z-index: 20; display: grid; grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "rail rail" "side next"; align-content: start; gap: 0 8px; box-sizing: border-box; height: var(--transport-h);
    min-height: 0; margin: 0; padding: 3px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--cine-950); border-top: 1px solid var(--cine-line);
  }
  .app[data-shell="theatre"] .public-drama .drama-controls > .drama-beat-rail {
    grid-area: rail; order: 0; flex: none; justify-content: flex-start; height: 44px; margin: 0;
  }
  .app[data-shell="theatre"] .public-drama .drama-beat-dot { width: 24px; height: 44px; }
  .app[data-shell="theatre"] .public-drama .drama-beat-dot.is-current { width: 34px; }
  .app[data-shell="theatre"] .public-drama .drama-controls > .drama-beat-rail .drama-beat-dot { position: static; }
  .app[data-shell="theatre"] .public-drama .drama-controls > .drama-beat-rail .drama-beat-tip { left: 0; right: auto; translate: 0 0; }
  .app[data-shell="theatre"] .public-drama .drama-controls-side { grid-area: side; align-self: center; gap: 0; }
  .app[data-shell="theatre"] .public-drama .drama-controls-side .btn { width: 40px; min-height: 44px; height: 44px; padding: 0; }
  .app[data-shell="theatre"] .public-drama .drama-controls > .btn-primary {
    grid-area: next; justify-self: end; align-self: center; width: min(100%, 320px); height: 48px; min-height: 48px; max-width: none; margin: 0;
    padding: 0 12px; white-space: normal; line-height: 1.2; text-align: center; overflow: hidden;
  }
  .app[data-shell="theatre"] .public-drama .drama-controls > .btn-primary .icon { display: none; }
  .app[data-shell="theatre"] .public-drama .drama-dialogue > .drama-subtext { padding: 0 16px 18px; }
  .app[data-shell="theatre"] .public-drama .drama-dialogue > .drama-subtext .drama-subtext-card { padding-top: 16px; }
  .app[data-shell="theatre"] .public-drama .drama-shelf-grid { gap: 14px 10px; }
  .app[data-shell="theatre"] .public-drama .drama-foot { padding: 0 16px 20px; }
  /* the viewer's turn on a phone: the picture, the asker's words, the rail, then the card rising with its actions pinned */
  .app[data-shell="theatre"] .public-drama:is([data-beat="question"], [data-beat="reflection"], [data-beat="cowrite"], [data-beat="receipt"], [data-beat="end"]) .drama-theatre {
    grid-template-areas: "screen" "subtitle" "rail" "card";
  }
  .app[data-shell="theatre"] .public-drama[data-beat="question"] .drama-turn.is-active { min-height: 0; padding: 16px 16px 6px; margin: 0; }
  .app[data-shell="theatre"] .public-drama[data-beat="question"] .drama-question > .drama-beat-rail { margin: 0; padding: 0 9px 14px; }
  .app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) {
    margin-top: 4px; padding: 22px 18px 0; border-radius: 18px 18px 0 0; box-shadow: none;
  }
  .app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) > .drama-actions:not(.drama-confirms) {
    margin-inline: -18px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  }
  .app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) > .drama-actions:not(.drama-confirms):last-child { border-radius: 0; }
  .app[data-shell="theatre"] .public-drama :is(.drama-respond, .drama-panel) .drama-actions .btn-primary { flex: 1 1 auto; min-height: 48px; }
  .app[data-shell="theatre"] .public-drama .drama-actions.drama-confirms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app[data-shell="theatre"] .public-drama .drama-confirms .drama-confirm-tag:nth-child(3) { border-inline-start: 0; }
  .app[data-shell="theatre"] .public-drama .drama-confirms .drama-confirm-tag:nth-child(n+3) { border-top: 1px solid var(--paper-line-strong); }
  .app[data-shell="theatre"] .public-drama .drama-postcards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; }
  .app[data-shell="theatre"] .public-drama .drama-scene-amb { display: none; }
  .app[data-shell="theatre"] .public-drama:is([data-beat="reflection"], [data-beat="cowrite"], [data-beat="receipt"], [data-beat="end"]) .drama-hook { display: none; }
  .app[data-shell="theatre"] .public-drama:is([data-beat="reflection"], [data-beat="cowrite"], [data-beat="receipt"], [data-beat="end"]) .drama-topline { padding: 12px 16px 14px; }
  .app[data-shell="theatre"] .public-drama .drama-own { grid-template-columns: minmax(0, 1fr); }
  .app[data-shell="theatre"] .public-drama .drama-own .drama-dictate { justify-self: start; }
}

/* ≤640: phones. The picture is the 4:3 two-shot: the crop centres the pair scene by scene, so both faces stay whole in all nine. */
@media (max-width: 640px) {
  .app[data-shell="theatre"] .public-drama .drama-backdrop { aspect-ratio: 4 / 3; }
  .app[data-shell="theatre"] .public-drama :is(.drama-act-poster, .drama-act-video, .drama-backdrop-img, .drama-backdrop-video) { object-position: var(--pair-x, 50%) 50%; }
  .app[data-shell="theatre"] .public-drama .drama-theatre[data-scene="tavern"] { --pair-x: 46%; }
  .app[data-shell="theatre"] .public-drama .drama-theatre[data-scene="pantry"] { --pair-x: 80%; }
  .app[data-shell="theatre"] .public-drama .drama-theatre[data-scene="living"] { --pair-x: 48%; }
  .app[data-shell="theatre"] .public-drama .drama-theatre[data-scene="park"] { --pair-x: 64%; }
  .app[data-shell="theatre"] .public-drama .drama-theatre[data-scene="office"] { --pair-x: 56%; }
  .app[data-shell="theatre"] .public-drama .drama-theatre[data-scene="study"] { --pair-x: 84%; }
  .app[data-shell="theatre"] .public-drama .drama-theatre[data-scene="cafe"] { --pair-x: 68%; }
  .app[data-shell="theatre"] .public-drama .drama-theatre[data-scene="rooftop"] { --pair-x: 60%; }
  .app[data-shell="theatre"] .public-drama .drama-theatre[data-scene="car"] { --pair-x: 50%; }
}

/* reduced motion: nothing in the theatre animates or fades (the site's own switch does the same through .motion-off). The fades
   are listed again at their own weight, so this block wins over them. */
@media (prefers-reduced-motion: reduce) {
  .app[data-shell="theatre"], .app[data-shell="theatre"] .public-drama *, .app[data-shell="theatre"] .public-drama *::before,
  .app[data-shell="theatre"] .public-drama *::after, .app[data-shell="theatre"] .public-drama.drama::after { animation: none; transition: none; }
  .app[data-shell="theatre"] .public-drama :is(.drama-turn.is-active.is-fresh, .drama-respond.is-fresh, .drama-panel.is-fresh, .drama-live,
    .drama-rehearse-reply, .drama-live-dots i, .drama-subtext.is-open, .drama-script, .drama-keys-pop, .drama-carry-list),
  .app[data-shell="theatre"] .public-drama[data-beat] :is(.public-drama-tools, .drama-script, .drama-keys-pop),
  .app[data-shell="theatre"] .public-drama[data-beat] > :is(.drama-shelf, .drama-branches, .drama-notice) { animation: none; transition: none; }
}
.motion-off .app[data-shell="theatre"] .public-drama *, .motion-off .app[data-shell="theatre"] .public-drama *::before,
.motion-off .app[data-shell="theatre"] .public-drama *::after { animation: none; transition: none; }
.motion-off .app[data-shell="theatre"] .public-drama :is(.drama-turn.is-active.is-fresh, .drama-respond.is-fresh, .drama-panel.is-fresh, .drama-live,
  .drama-rehearse-reply, .drama-live-dots i, .drama-subtext.is-open, .drama-script, .drama-keys-pop, .drama-carry-list),
.motion-off .app[data-shell="theatre"] .public-drama[data-beat] :is(.public-drama-tools, .drama-script, .drama-keys-pop),
.motion-off .app[data-shell="theatre"] .public-drama[data-beat] > :is(.drama-shelf, .drama-branches, .drama-notice) { animation: none; transition: none; }
