@font-face { font-family: "Shoulders"; src: url(../fonts/big-shoulders-display-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Shoulders"; src: url(../fonts/big-shoulders-display-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(../fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(../fonts/ibm-plex-mono-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Instrument"; src: url(../fonts/instrument-serif-latin-400-italic.woff2) format("woff2"); font-style: italic; font-display: swap; }
/* Noto Serif SC subset: only the glyphs of the landing headline (把任何故事，拍成电影), so it renders identically everywhere */
@font-face { font-family: "Kaiji Title"; src: url(../fonts/noto-serif-sc-hero-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Kaiji Title"; src: url(../fonts/noto-serif-sc-hero-bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #0b0a09; --char: #13110f; --char2: #1a1714; --line: rgba(255, 232, 200, .09); --line2: rgba(255, 232, 200, .18);
  --paper: #f1e7d6; --dim: #8d8478; --faint: #5a534b;
  --tung: #ff8a2b; --tung-soft: rgba(255, 138, 43, .14); --rec: #ff3b30; --ok: #c8e86a;
  --serif-zh: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans-zh: "PingFang SC", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --display: "Shoulders", "Arial Narrow", var(--sans-zh);
  --mono: "Plex Mono", ui-monospace, Menlo, monospace;
  --italic: "Instrument", Georgia, serif;
}
* { box-sizing: border-box; }

/* scrollbars: a thin film-edge rail; the thumb glows tungsten while in use */
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: rgba(255, 138, 43, .3) transparent; }
  .rail, .tl-track { scrollbar-width: none; }
}
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: repeating-linear-gradient(180deg, transparent 0 10px, rgba(255, 232, 200, .035) 10px 14px); }
::-webkit-scrollbar-thumb { background: rgba(255, 138, 43, .45); border-radius: 0; border-left: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 138, 43, .75); box-shadow: 0 0 10px rgba(255, 138, 43, .5); }
::-webkit-scrollbar-thumb:active { background-color: var(--tung); }
::-webkit-scrollbar-corner { background: transparent; }
.rail::-webkit-scrollbar, .tl-track::-webkit-scrollbar { display: none; }
#script::-webkit-scrollbar-track { background: transparent; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--paper); font-family: var(--sans-zh); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
em { font-family: var(--italic); font-style: italic; font-weight: 400; }

.grain { position: fixed; inset: -50%; pointer-events: none; z-index: 50; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-4%)} 60%{transform:translate(-4%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }
.vignette { position: fixed; inset: 0; pointer-events: none; z-index: 49; background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%); }
.flash { position: fixed; inset: 0; z-index: 100; background: #fff6e8; opacity: 0; pointer-events: none; }
.flash.go { animation: flash .7s ease-out; }
@keyframes flash { 0%{opacity:0} 8%{opacity:.95} 100%{opacity:0} }

.tc { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; color: var(--paper); font-variant-numeric: tabular-nums; }
.rec { font-family: var(--display); font-weight: 800; letter-spacing: .12em; font-size: 15px; display: inline-flex; align-items: center; gap: 7px; color: var(--rec); }
.rec i { width: 10px; height: 10px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 12px var(--rec); animation: blink 1s steps(2) infinite; }
.rec.standby { color: var(--dim); } .rec.standby i { background: var(--faint); box-shadow: none; animation: none; }
@keyframes blink { 50% { opacity: .15; } }

/* ---------- landing ---------- */
#landing { min-height: 100vh; padding: 28px 44px 40px; position: relative; }
#landing > :not(.hero-reel) { position: relative; z-index: 1; }

/* hero reel: generated clips crossfade behind the headline */
.hero-reel { position: absolute; inset: 0 0 auto 0; height: min(100vh, 1000px); min-height: 640px; overflow: hidden; z-index: 0;
  background: #000 center/cover; }
.hero-reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s ease;
  filter: saturate(.92) contrast(1.04); transform: scale(1.04); }
.hero-reel video.on { opacity: 1; animation: reel-drift 6s linear both; }
@keyframes reel-drift { from { transform: scale(1.06); } to { transform: scale(1.0); } }
.hero-reel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background:
    linear-gradient(90deg, rgba(11,10,9,.9) 0%, rgba(11,10,9,.62) 30%, rgba(11,10,9,.12) 62%, rgba(11,10,9,.25) 100%),
    linear-gradient(180deg, rgba(11,10,9,.7) 0%, transparent 16%, transparent 46%, rgba(11,10,9,.82) 74%, var(--ink) 96%); }
.hero-tag { position: absolute !important; z-index: 2 !important; right: 44px; top: calc(max(min(100vh, 1000px), 640px) * .62);
  display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .12em; color: rgba(241,231,214,.5);
  text-shadow: 0 1px 8px rgba(0,0,0,.6); transition: opacity .5s ease; pointer-events: none; }
.hero-tag i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.hero-tag.swap { opacity: 0; }
.hero h1, .hero .sub, .hero .kicker { text-shadow: 0 2px 30px rgba(0,0,0,.55); }
@media (max-width: 900px) {
  .hero-reel { height: 78vh; min-height: 520px; }
  .hero-reel::after { background: linear-gradient(180deg, rgba(11,10,9,.55) 0%, rgba(11,10,9,.35) 30%, rgba(11,10,9,.8) 70%, var(--ink) 98%); }
  .hero-tag { right: 16px; top: 108px; font-size: 11px; }
}
.topbar { display: flex; justify-content: space-between; align-items: center; }
.mark { display: flex; align-items: baseline; gap: 12px; }
.mark-k { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: .28em; }
.mark-zh { font-family: var(--serif-zh); font-weight: 900; font-size: 18px; color: var(--tung); }
.hud-right { display: flex; align-items: center; gap: 22px; }
.sound-toggle { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; background: none; border: 1px solid var(--line2); border-radius: 50%;
  color: var(--dim); transition: color .2s, border-color .2s, box-shadow .3s; }
.sound-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sound-toggle .spk { fill: currentColor; stroke: none; }
.sound-toggle .wave { opacity: 0; transition: opacity .25s; }
.sound-toggle:hover { color: var(--paper); border-color: rgba(255,232,200,.35); }
.sound-toggle.on { color: var(--tung); border-color: rgba(255,138,43,.55); box-shadow: 0 0 14px rgba(255,138,43,.18); }
.sound-toggle.on .wave { opacity: 1; animation: sound-wave 1.6s ease-in-out infinite; }
.sound-toggle.on .w2 { animation-delay: .25s; }
.sound-toggle.on .mute { display: none; }
@keyframes sound-wave { 50% { opacity: .35; } }
.engine { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.engine b { color: var(--ok); font-weight: 600; }

.hero { position: relative; margin: 2vh auto 0; max-width: 1180px; padding: 30px 56px 32px; }
.frame-corners i { position: absolute; width: 34px; height: 34px; border-color: var(--line2); border-style: solid; }
.frame-corners i:nth-child(1) { top: 0; left: 0; border-width: 2px 0 0 2px; }
.frame-corners i:nth-child(2) { top: 0; right: 0; border-width: 2px 2px 0 0; }
.frame-corners i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.frame-corners i:nth-child(4) { bottom: 0; right: 0; border-width: 0 2px 2px 0; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--dim); margin: 0 0 22px; }
.kicker em { letter-spacing: 0; font-size: 16px; color: var(--paper); }
.hero h1 { font-family: "Kaiji Title", var(--serif-zh); font-weight: 400; font-size: clamp(36px, 5vw, 74px); line-height: 1.22; margin: 0; letter-spacing: .06em; color: #ece2d2; }
.hero h1 .p { color: rgba(236,226,210,.45); }
.hero h1 span { font-weight: 700; color: var(--tung); }
.hero .sub { color: #c9bfb0; font-size: 17px; line-height: 1.8; margin: 26px 0 0; max-width: 560px; }
.hero > * { animation: rise .9s cubic-bezier(.2,.8,.2,1) both; }
.hero h1 { animation-delay: .08s; } .hero .sub { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }

.desk { max-width: 880px; margin: 20px auto 0; animation: rise 1s .3s both; }
.desk .error { margin-top: 12px; }
.script-card { position: relative; background: linear-gradient(180deg, var(--char2), var(--char)); border: 1px solid var(--line); border-radius: 4px; display: flex; flex-direction: column; min-height: 340px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35); transition: border-color .2s; }
.script-card:focus-within { border-color: var(--line2); }
.script-head, .script-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: .08em; }
.script-head { border-bottom: 1px solid var(--line); }
.script-foot { border-top: 1px solid var(--line); }
.samples button { background: none; border: 1px solid var(--line2); border-radius: 99px; padding: 3px 10px; margin-left: 6px; color: #d8cdbd; font-size: 12px; }
.samples button:hover { border-color: var(--tung); color: var(--tung); }
#script { flex: 1; resize: none; background: transparent; border: 0; outline: 0; color: var(--paper); padding: 18px 22px; font-family: var(--serif-zh); font-size: 16px; line-height: 2;
  background-image: repeating-linear-gradient(transparent 0 31px, rgba(255,232,200,.045) 31px 32px); background-attachment: local; }
#script::placeholder { color: var(--faint); }
.script-foot { gap: 16px; padding: 10px 12px 10px 18px; }
.script-estimate { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; margin-left: auto; white-space: nowrap; flex-shrink: 0; }
.script-estimate small { color: var(--tung); font-size: 11px; letter-spacing: .04em; }
.import { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; flex-shrink: 0; cursor: pointer; color: #d8cdbd; font-family: var(--sans-zh); font-size: 13px; letter-spacing: .04em; transition: color .2s; }
.import small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--faint); }
.import i { width: 12px; height: 15px; border: 1.5px solid currentColor; border-radius: 1px; position: relative;
  clip-path: polygon(0 0, 62% 0, 100% 30%, 100% 100%, 0 100%); }
.import i::after { content: ""; position: absolute; right: -1.5px; top: -1.5px; width: 6px; height: 6px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.import:hover { color: var(--tung); }
.script-card.loading .import { pointer-events: none; opacity: .5; }
.script-card.loading #script { opacity: .35; cursor: progress; }
.drop-veil { position: absolute; inset: 0; z-index: 2; display: none; place-content: center; text-align: center; gap: 8px; pointer-events: none; border-radius: 4px;
  background: rgba(20,14,9,.86); outline: 2px dashed var(--tung); outline-offset: -10px; }
.drop-veil b { font-family: var(--serif-zh); font-weight: 900; font-size: 24px; letter-spacing: .08em; color: var(--paper); }
.drop-veil small { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--tung); }
.script-card.dropping .drop-veil { display: grid; }

.action { margin-top: 6px; display: flex; align-items: center; gap: 20px; padding: 18px 24px; background: var(--tung); color: #1a0c02; border: 0; border-radius: 4px; text-align: left; position: relative; overflow: hidden; transition: transform .15s, box-shadow .2s;
  box-shadow: 0 10px 40px rgba(255,138,43,.25); }
.action:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 60px rgba(255,138,43,.4); }
.action:disabled { background: #3a3129; color: #7d7064; box-shadow: none; cursor: not-allowed; }
.action-text b { display: block; font-family: var(--serif-zh); font-weight: 900; font-size: 34px; line-height: 1; letter-spacing: .1em; }
.action-text small { font-family: var(--display); font-weight: 800; letter-spacing: .5em; font-size: 13px; }
.clap { position: relative; width: 62px; height: 52px; flex: none; }
.clap-body { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; background: #16110c; border-radius: 3px; }
.clap-stick { position: absolute; left: 0; right: 0; top: 8px; height: 10px; transform-origin: 3px 100%; transform: rotate(-24deg); transition: transform .12s ease-in;
  background: repeating-linear-gradient(-45deg, #16110c 0 8px, #f1e7d6 8px 16px); border-radius: 2px; }
.action.snap .clap-stick { transform: rotate(0deg); }
/* compact 开机 inside the script card */
.script-foot .action { margin: 0; gap: 14px; padding: 10px 20px 10px 16px; border-radius: 3px; white-space: nowrap; flex-shrink: 0; }
.script-foot .action-text b { font-size: 24px; }
.script-foot .action-text small { font-size: 10px; }
.script-foot .clap { width: 40px; height: 34px; }
.script-foot .clap-body { height: 22px; border-radius: 2px; }
.script-foot .clap-stick { top: 5px; height: 7px; transform-origin: 2px 100%; background: repeating-linear-gradient(-45deg, #16110c 0 5px, #f1e7d6 5px 10px); border-radius: 1px; }
.error { color: #ff8a80; font-size: 13px; margin: 0; }
.landing-foot { max-width: 1180px; margin: 36px auto 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.demo-link { color: var(--tung); text-decoration: none; font-size: 15px; border-bottom: 1px solid rgba(255,138,43,.4); padding-bottom: 2px; }
.demo-link em { color: var(--dim); }
#recent { display: flex; gap: 10px; flex-wrap: wrap; }
#recent a { font-size: 12px; color: var(--dim); text-decoration: none; border: 1px solid var(--line); padding: 4px 9px; border-radius: 3px; }
#recent a:hover { color: var(--paper); border-color: var(--line2); }

/* ---------- studio ---------- */
#studio { height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; }
.slate { display: flex; justify-content: space-between; align-items: center; padding: 14px 26px 10px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #100e0c, var(--ink)); }
.slate-board { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.slate-row { display: flex; gap: 10px; align-items: baseline; font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: .14em; }
.slate-row b { color: var(--paper); font-weight: 600; margin-right: 12px; letter-spacing: .04em; }
.slate h2 { margin: 0; font-family: var(--serif-zh); font-weight: 900; font-size: 30px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.caret { display: inline-block; width: 3px; height: .9em; background: var(--tung); vertical-align: -2px; margin-left: 4px; animation: blink 1s steps(2) infinite; }
.slate-right { display: flex; align-items: center; gap: 18px; flex: none; }
.phase { font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .18em; color: var(--tung); border: 1px solid rgba(255,138,43,.45); padding: 5px 12px; border-radius: 2px; }

.rail { display: flex; padding: 0 26px; border-bottom: 1px solid var(--line); overflow-x: auto; background:
  repeating-linear-gradient(90deg, transparent 0 18px, rgba(255,232,200,.05) 18px 26px) top / 100% 5px no-repeat,
  repeating-linear-gradient(90deg, transparent 0 18px, rgba(255,232,200,.05) 18px 26px) bottom / 100% 5px no-repeat; }
.rail button { flex: 1; min-width: 108px; background: none; border: 0; border-right: 1px solid var(--line); padding: 13px 12px 11px; text-align: left; color: var(--faint); position: relative; }
.rail button:last-child { border-right: 0; }
.rail button .n { font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .1em; display: block; }
.rail button .t { font-size: 14px; font-weight: 600; }
.rail button.done { color: var(--dim); } .rail button.done .n::after { content: " ✓"; color: var(--ok); }
.rail button.live { color: var(--paper); } .rail button.live .n { color: var(--tung); }
.rail button.live::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--tung); box-shadow: 0 0 14px var(--tung); animation: scan 2.2s ease-in-out infinite; transform-origin: left; }
.rail button.viewing { background: rgba(255,232,200,.04); }
@keyframes scan { 0% { transform: scaleX(.05); } 60% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: .3; } }

.floor { display: grid; grid-template-columns: 290px 1fr 300px; min-height: 0; }
.col { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; padding: 14px 0 0; }
.col-log { border-right: 0; border-left: 1px solid var(--line); }
.col h3, .stage-head h3 { margin: 0; padding: 0 18px 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: #d8cdbd; }
.col h3 small, .stage-head h3 small { font-family: var(--mono); font-weight: 400; color: var(--faint); margin-left: 6px; letter-spacing: .14em; font-size: 10px; }
.manuscript-copy { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 3px; margin: -3px 0 -3px 6px; vertical-align: middle; border: 1px solid transparent; border-radius: 2px; background: transparent; color: var(--faint); }
.manuscript-copy svg { width: 14px; height: 14px; }
.manuscript-copy:hover, .manuscript-copy:focus-visible { color: var(--tung); border-color: var(--line2); background: var(--tung-soft); }
.manuscript-copy:focus-visible { outline: 1px solid var(--tung); outline-offset: 2px; }
.manuscript-copy:disabled { opacity: .35; cursor: default; }
.manuscript-copy .copy-check { display: none; }
.manuscript-copy[data-state="copied"] { color: var(--tung); }
.manuscript-copy[data-state="copied"] .copy-outline { display: none; }
.manuscript-copy[data-state="copied"] .copy-check { display: block; }
.manuscript-copy-feedback { position: absolute; z-index: 2; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: 5px 8px; border: 1px solid var(--line2); border-radius: 2px; background: var(--char); color: var(--paper); white-space: nowrap; font: 11px var(--sans-zh); letter-spacing: 0; pointer-events: none; }
.manuscript-copy-feedback:empty { display: none; }
.manuscript { flex: 1; overflow-y: auto; padding: 4px 18px 30px; font-family: var(--serif-zh); font-size: 14px; line-height: 2; color: #a89e91; white-space: pre-wrap; }
.manuscript mark { background: none; color: var(--paper); box-shadow: inset 0 -2px 0 rgba(255,138,43,.55); border-radius: 1px; transition: box-shadow .6s; }
.manuscript mark.fresh { box-shadow: inset 0 -1.2em 0 rgba(255,138,43,.45); }

.stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 14px 0 0; position: relative; }
.stage-head { display: flex; justify-content: space-between; align-items: center; padding-right: 18px; }
.stage-head h3 { padding-bottom: 10px; }
#follow { background: var(--tung-soft); border: 1px solid var(--tung); color: #ffd1a8; padding: 4px 10px; font-size: 12px; border-radius: 2px; }
.stage-body { flex: 1; overflow-y: auto; padding: 4px 22px 28px; position: relative; }
.stage-body > .panel { animation: panel-in .55s cubic-bezier(.2,.8,.2,1); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px) scale(.995); filter: blur(4px); } }

/* 定妆 rail: three tiers with their own headers — actors (large portraits), locations and props (wide) */
.cast-rail { display: flex; flex-direction: column; gap: 14px; padding: 2px 18px 16px; max-height: 58vh; overflow-y: auto; scrollbar-width: thin; }
.rail-empty { margin: 0; color: var(--faint); font-size: 12px; }
.rail-tier h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 7px; font-weight: 400; }
.rail-tier h4 b { font: 700 12px var(--serif-zh); color: var(--paper); letter-spacing: .08em; }
.rail-tier h4 small { font: 9.5px var(--mono); letter-spacing: .14em; color: var(--faint); }
.rail-tier h4 i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line2), transparent); }
.rail-tier h4 em { font: normal 10px var(--mono); color: var(--dim); }
.rail-tier.t-character h4 b { color: var(--tung); }
.rail-grid { display: grid; gap: 8px 6px; }
.t-character .rail-grid { grid-template-columns: repeat(3, 1fr); }
.t-scene .rail-grid, .t-prop .rail-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
.cast-rail .mini { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; cursor: zoom-in; }
.cast-rail .mini.ready { animation: develop 1.6s ease-out both; }
.cast-rail .mini .ph { position: relative; display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 2px; background: var(--char2);
  transition: border-color .2s, box-shadow .2s; }
.cast-rail .k-character .ph { aspect-ratio: 3/4; }
.cast-rail .k-scene .ph, .cast-rail .k-prop .ph { aspect-ratio: 16/9; }
.cast-rail .mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }
/* Character portraits come from the local image cropper; ambiguous/legacy sheets stay whole. */
.cast-rail .k-character.sheet img { object-fit: contain; object-position: center; }
.cast-rail .k-prop img { object-fit: contain; object-position: center; }
.cast-rail .mini span { font-size: 11px; line-height: 1.3; color: #cfc3b2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cast-rail .k-character span { font-family: var(--serif-zh); font-weight: 700; font-size: 12px; color: var(--paper); }
.cast-rail .k-prop span { font-size: 10px; color: var(--dim); }
.cast-rail .mini:hover .ph { border-color: var(--tung); box-shadow: 0 0 0 1px var(--tung), 0 0 18px rgba(255,138,43,.25); }
.cast-rail .mini:hover span { color: var(--paper); }
.cast-rail .mini.more .ph::after { content: ""; position: absolute; inset: 0; background: rgba(11,10,9,.72); }
.cast-rail .mini .more-n { position: absolute; left: 0; right: 0; top: 0; z-index: 1; display: grid; place-items: center; font: 600 15px var(--mono); color: var(--paper);
  pointer-events: none; }
.cast-rail .k-character .more-n { aspect-ratio: 3/4; }
.cast-rail .k-scene .more-n { aspect-ratio: 16/9; }
.cast-rail .k-prop .more-n { aspect-ratio: 16/9; font-size: 12px; }
.cast-rail .mini.more span { color: var(--dim); }
.wall .card .photo:has(img) { cursor: zoom-in; }

/* cast photo lightbox */
.lightbox { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-columns: 64px minmax(0, auto) 64px; justify-content: center; align-items: center; gap: 18px;
  background: rgba(8,7,6,.86); backdrop-filter: blur(6px); animation: lb-in .25s ease-out; }
.lightbox[hidden] { display: none; }
.lb-open { overflow: hidden; }
.lb-print { margin: 0; background: #e9dfcd; color: #1b1612; padding: 12px 12px 16px; border-radius: 2px; box-shadow: 0 30px 80px rgba(0,0,0,.6);
  display: grid; grid-template-columns: auto minmax(220px, 300px); gap: 18px; max-width: min(1100px, calc(100vw - 180px)); animation: lb-print .4s cubic-bezier(.2,1.2,.4,1); }
.lb-photo { position: relative; height: min(76vh, 820px); max-width: calc(100vw - 520px); background: #1a1714; overflow: hidden; }
.lb-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-photo .slate-tag { position: absolute; left: 8px; top: 8px; font-family: var(--display); font-weight: 800; font-size: 12px; letter-spacing: .14em; background: #1b1612; color: #e9dfcd; padding: 3px 8px; }
.lb-print figcaption { display: flex; flex-direction: column; min-height: 0; padding-top: 4px; }
.lb-print h4 { margin: 0 0 4px; font-family: var(--serif-zh); font-weight: 900; font-size: 26px; line-height: 1.2; }
.lb-print .meta { margin: 0 0 12px; font-size: 12px; color: #6b5f52; }
.lb-print .desc { margin: 0; font-size: 13px; line-height: 1.75; color: #3b322a; overflow-y: auto; flex: 1; white-space: pre-wrap; }
.lb-count { margin-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: #6b5f52; }
.lb-nav, .lb-close { background: rgba(233,223,205,.06); border: 1px solid var(--line2); color: var(--paper); border-radius: 2px; transition: border-color .2s, color .2s; }
.lb-nav { width: 56px; height: 88px; font-size: 34px; line-height: 1; }
.lb-nav:hover, .lb-close:hover { border-color: var(--tung); color: var(--tung); }
.lb-nav[hidden] { visibility: hidden; display: block !important; }
.lb-close { position: absolute; top: 18px; right: 22px; width: 42px; height: 42px; font-size: 24px; }
@keyframes lb-in { from { opacity: 0; } }
@keyframes lb-print { from { opacity: 0; transform: translateY(16px) rotate(-.6deg) scale(.97); } }
@media (max-width: 900px) {
  .lightbox { grid-template-columns: 1fr; padding: 60px 12px 12px; }
  .lb-nav { display: none !important; }
  .lb-print { grid-template-columns: 1fr; max-width: 100%; max-height: calc(100vh - 80px); overflow-y: auto; }
  .lb-photo { height: auto; max-width: none; max-height: 60vh; }
}
.log { list-style: none; margin: 0; padding: 0 18px 20px; overflow-y: auto; flex: 1; font-family: var(--mono); font-size: 11.5px; line-height: 1.55; color: var(--dim); }
.log li { padding: 6px 0; border-bottom: 1px dashed var(--line); animation: logline .5s ease-out; }
.log li b { color: var(--tung); font-weight: 400; margin-right: 8px; }
.log li.note { color: #ffd1a8; }
@keyframes logline { from { opacity: 0; transform: translateX(8px); } }

/* live typewriter */
.live { margin-top: 18px; border: 1px solid var(--line); background: var(--char); border-radius: 3px; }
.live-head { display: flex; justify-content: space-between; padding: 8px 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: .14em; }
.live-head .rec { font-size: 12px; }
.live-body { padding: 12px 18px 16px; max-height: 320px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; /* keep the newest lines in view; older ones scroll off the top */
  mask-image: linear-gradient(transparent, #000 35%); -webkit-mask-image: linear-gradient(transparent, #000 35%); }
/* rendered draft: typeset like a director's working notes */
.live .md { font-size: 13px; line-height: 1.75; color: #c9bfb0; overflow-wrap: anywhere; }
.live .md > :first-child { margin-top: 0; }
.live .md > :last-child { margin-bottom: 0; }
.live .md > :last-child::after { content: "▍"; color: var(--tung); animation: blink .8s steps(2) infinite; margin-left: 2px; }
.live .md > :is(ul, ol, table, pre, hr):last-child::after { content: none; }
.live .md > :is(ul, ol):last-child > li:last-child::after { content: "▍"; color: var(--tung); animation: blink .8s steps(2) infinite; margin-left: 2px; }
.live .md p { margin: 0 0 .7em; }
.live .md :is(h1, h2, h3, h4, h5, h6) { font-family: var(--serif-zh); font-weight: 900; color: var(--paper); line-height: 1.35; margin: 1.1em 0 .45em; }
.live .md h1 { font-size: 19px; } .live .md h2 { font-size: 17px; }
.live .md h3 { font-size: 15px; color: #ffd1a8; } .live .md :is(h4, h5, h6) { font-size: 13.5px; }
.live .md h2::before { content: ""; display: inline-block; width: 3px; height: .9em; background: var(--tung); margin-right: 8px; vertical-align: -1px; }
.live .md strong { color: var(--paper); font-weight: 700; }
.live .md em { font-family: inherit; font-style: italic; color: #e2d6c4; }
.live .md :is(ul, ol) { margin: 0 0 .8em; padding-left: 1.4em; }
.live .md li { margin: .15em 0; }
.live .md li::marker { color: var(--tung); }
.live .md blockquote { margin: 0 0 .8em; padding: 2px 0 2px 12px; border-left: 2px solid var(--line2); color: #a89e91; }
.live .md hr { border: 0; border-top: 1px dashed var(--line2); margin: 1em 0; }
.live .md code { font-family: var(--mono); font-size: 12px; background: rgba(255,232,200,.06); padding: 1px 5px; border-radius: 2px; color: #ffd1a8; }
.live .md pre { margin: 0 0 .8em; padding: 10px 12px; background: #0f0d0b; border: 1px solid var(--line); overflow-x: auto; }
.live .md pre code { background: none; padding: 0; color: #bfb4a5; }
.live .md table { border-collapse: collapse; margin: 0 0 .9em; font-size: 12px; width: 100%; }
.live .md :is(th, td) { border: 1px solid var(--line2); padding: 4px 8px; text-align: left; vertical-align: top; }
.live .md th { background: rgba(255,232,200,.05); color: var(--paper); font-weight: 700; }
.live .md .ref { display: inline-block; font-size: 11.5px; line-height: 1.5; padding: 0 6px; margin: 0 1px; border: 1px solid rgba(255,138,43,.45);
  border-radius: 2px; color: #ffd1a8; background: var(--tung-soft); white-space: nowrap; }

/* panels */
.shot-budget { margin: 0 0 16px; padding: 11px 14px; border: 1px solid var(--line2); border-left: 2px solid var(--tung); border-radius: 3px; background: rgba(255,138,43,.035); }
.shot-budget > div { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.shot-budget b { color: var(--tung); font: 600 16px var(--mono); }
.shot-budget strong { font: 11px var(--mono); color: var(--dim); }
.shot-budget p { margin: 6px 0 0; color: var(--dim); font-size: 11px; }
.shot-budget.blocked { border-color: rgba(255,138,128,.5); background: rgba(255,138,128,.05); }
.shot-budget.blocked b, .shot-budget.blocked strong, .shot-budget.blocked p { color: #ffb3ad; }
.panel-intro { font-family: var(--italic); font-style: italic; color: var(--dim); font-size: 19px; margin: 6px 0 16px; }
.notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.note-card { background: var(--char); border: 1px solid var(--line); border-left: 3px solid var(--tung); padding: 13px 15px; border-radius: 2px; animation: card-in .6s cubic-bezier(.2,.8,.2,1) both; }
.note-card h4 { margin: 0 0 8px; font-family: var(--serif-zh); font-weight: 900; font-size: 16px; }
.note-card p { margin: 4px 0 0; font-size: 13px; line-height: 1.65; color: #b3a99b; }
.note-card.l1 { grid-column: 1 / -1; border-left-color: var(--paper); background: transparent; }
.note-card.l1 h4 { font-size: 22px; }
@keyframes card-in { from { opacity: 0; transform: translateY(14px) rotate(-.4deg); } }

.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px; }
.card { background: #e9dfcd; color: #1b1612; padding: 8px 8px 12px; border-radius: 2px; box-shadow: 0 14px 30px rgba(0,0,0,.45); transform: rotate(var(--tilt, 0deg)); animation: pin .7s cubic-bezier(.2,1.4,.4,1) both; position: relative; }
.card .photo { aspect-ratio: 3/4; background: #1a1714; position: relative; overflow: hidden; }
.card.k-scene .photo, .card.k-infographic .photo { aspect-ratio: 16/10; }
.card.k-prop .photo { aspect-ratio: 1; }
.card .photo img { width: 100%; height: 100%; object-fit: cover; display: block; animation: develop 2.4s ease-out both; }
.card.k-character .photo img { object-fit: contain; }
.card .photo .silver { position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.0) 0 14px, rgba(255,255,255,.05) 14px 28px), radial-gradient(circle at 50% 40%, #2b2621, #12100e); }
.card.developing .photo .silver { animation: shimmer 1.4s linear infinite; }
.card .photo .slate-tag { position: absolute; left: 6px; top: 6px; font-family: var(--display); font-weight: 800; font-size: 11px; letter-spacing: .14em; background: #1b1612; color: #e9dfcd; padding: 2px 6px; }
.card .photo .state { position: absolute; inset: auto 0 0 0; padding: 18px 8px 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: #e9dfcd; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.card .stamp { position: absolute; right: 8px; top: 30%; transform: rotate(-12deg); border: 2px solid var(--rec); color: var(--rec); font-family: var(--serif-zh); font-weight: 900; font-size: 15px; padding: 1px 8px; opacity: .85; mix-blend-mode: multiply; animation: stamp .5s cubic-bezier(.2,1.6,.4,1) both; }
.card h5 { margin: 9px 2px 2px; font-family: var(--serif-zh); font-weight: 900; font-size: 17px; }
.card .meta { margin: 0 2px; font-size: 11px; color: #6b5f52; }
.card .desc { margin: 6px 2px 0; font-size: 11.5px; line-height: 1.55; color: #3b322a; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .variant { display: inline-block; margin: 6px 2px 0; font-size: 10.5px; color: #8a3a0a; border: 1px solid #c77a3d; padding: 0 5px; border-radius: 2px; }
.card .cast-looks { display: flex; gap: 5px; overflow-x: auto; max-width: 100%; margin: 8px 1px 0; padding: 2px 1px 5px; scrollbar-width: thin; }
.card .cast-look { display: flex; align-items: center; gap: 5px; flex: 0 0 auto; max-width: 100%; padding: 5px 7px; border: 1px solid #b9a992; border-radius: 2px;
  background: transparent; color: #6b5f52; font: 11px var(--sans-zh); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.card .cast-look span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .cast-look i { flex: none; width: 5px; height: 5px; border-radius: 50%; background: #aa8955; }
.card .cast-look.ready i { background: #4f7542; }
.card .cast-look.failed i { background: #b24435; }
.card .cast-look:hover, .card .cast-look[aria-pressed="true"] { border-color: #9c592b; color: #713c15; background: #e1cdb0; }
.card .cast-look:focus-visible { outline: 2px solid #8a3a0a; outline-offset: 1px; }
.card .cast-look-count { margin: 1px 2px 0; color: #7e6a54; font: 10px var(--sans-zh); }
.wall-group { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--dim); margin: 22px 0 12px; grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.wall-group::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@keyframes pin { from { opacity: 0; transform: translateY(-30px) rotate(calc(var(--tilt, 0deg) * 4)) scale(1.06); } }
@keyframes develop { 0% { filter: sepia(1) brightness(.2) blur(10px) contrast(.6); } 55% { filter: sepia(.6) brightness(.8) blur(2px); } 100% { filter: none; } }
@keyframes shimmer { to { background-position: 80px 0, 0 0; } }
@keyframes stamp { from { opacity: 0; transform: rotate(-12deg) scale(2.2); } }

.sections { position: relative; }
.sec-bar { display: flex; height: 92px; gap: 0; margin: 8px 0 8px; }
.sec + .sec { border-left-width: 0; }
.sec { background: var(--char2); border: 1px solid var(--line2); border-top: 3px solid var(--tung); padding: 8px 10px; overflow: hidden; min-width: 40px; animation: drop .6s cubic-bezier(.2,1.3,.4,1) both; transition: width .5s ease; }
.sec b { font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .1em; color: var(--tung); }
.sec span { display: block; font-size: 13px; font-weight: 700; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sec small { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.ruler { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: var(--faint); border-top: 1px solid var(--line2); padding-top: 4px; }
.sec-list { margin-top: 18px; display: grid; gap: 8px; }
.sec-list div { display: grid; grid-template-columns: 70px 1fr 64px; gap: 12px; font-size: 13px; color: #b3a99b; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.sec-list b { color: var(--paper); font-family: var(--serif-zh); }
@keyframes drop { from { opacity: 0; transform: translateY(-40px); } }

.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.frame { background: var(--char); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; animation: card-in .5s ease-out both; }
.frame .shot { aspect-ratio: var(--ar, 16/9); position: relative; overflow: hidden; background: #0f0d0b center/cover; }
.frame .shot .bg { position: absolute; inset: 0; background: center/cover; transform: scale(var(--zoom, 1)); transform-origin: var(--ox, 50%) var(--oy, 50%); filter: saturate(.85); }
.frame .shot .who { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 4px; }
.frame .shot .who i { width: 26px; height: 34px; background: center/cover; border: 1.5px solid #e9dfcd; border-radius: 1px; box-shadow: 0 2px 6px #000; }
.frame .shot .no { position: absolute; left: 6px; top: 6px; font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .08em; text-shadow: 0 1px 4px #000; }
.frame .shot .dur { position: absolute; right: 6px; top: 6px; font-family: var(--mono); font-size: 10.5px; background: rgba(0,0,0,.6); padding: 1px 5px; }
.frame .shot .sub { position: absolute; left: 8%; right: 8%; bottom: 8px; text-align: center; font-size: 12px; color: #fff; text-shadow: 0 1px 3px #000, 0 0 8px #000; }
.frame .shot .guides { position: absolute; inset: 0; background:
  linear-gradient(90deg, transparent 33.2%, rgba(255,255,255,.12) 33.3%, transparent 33.5%, transparent 66.5%, rgba(255,255,255,.12) 66.6%, transparent 66.8%),
  linear-gradient(transparent 33.2%, rgba(255,255,255,.12) 33.3%, transparent 33.5%, transparent 66.5%, rgba(255,255,255,.12) 66.6%, transparent 66.8%); }
.frame .cap { padding: 8px 10px 10px; font-size: 12px; line-height: 1.55; color: #b3a99b; }
.frame .cap .tags { margin-bottom: 5px; display: flex; gap: 4px; flex-wrap: wrap; }
.tag { font-family: var(--display); font-weight: 800; font-size: 11px; letter-spacing: .1em; padding: 1px 6px; border: 1px solid var(--line2); color: #e2d6c4; border-radius: 1px; }
.tag.size { background: var(--tung); color: #1a0c02; border-color: var(--tung); }
.frame .cap p { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.board-section { grid-column: 1 / -1; font-family: var(--serif-zh); font-weight: 900; font-size: 16px; margin: 14px 0 0; display: flex; gap: 10px; align-items: baseline; }
.board-section b { font-family: var(--display); color: var(--tung); letter-spacing: .1em; font-size: 13px; }

.monitor-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 18px; }
.monitor { background: #000; border: 1px solid var(--line2); position: relative; aspect-ratio: var(--ar, 16/9); max-height: 52vh; overflow: hidden; margin: 0 auto; width: 100%; }
.monitor .bg { position: absolute; inset: -6%; background: center/cover; animation: kb var(--d, 4s) ease-in-out infinite alternate; }
.monitor .hudline { position: absolute; left: 12px; right: 12px; top: 10px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; text-shadow: 0 1px 3px #000; }
.monitor .safe { position: absolute; inset: 7%; border: 1px dashed rgba(255,255,255,.18); }
.monitor .cross { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px; background: linear-gradient(#fff,#fff) center/1px 100% no-repeat, linear-gradient(#fff,#fff) center/100% 1px no-repeat; opacity: .35; }
.monitor { container-type: inline-size; }
.monitor .bigsub { position: absolute; left: 8%; right: 8%; bottom: 8.5%; display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-align: center; pointer-events: none; }
.monitor .bigsub:empty { display: none; }
.monitor .bigsub .who { font-family: var(--mono); font-size: clamp(10px, 1.7cqi, 12px); letter-spacing: .06em; color: var(--tung);
  text-shadow: 0 1px 3px #000; }
.monitor .bigsub .who b { font-weight: 700; }
.monitor .bigsub .who b + em { margin-left: 6px; }
.monitor .bigsub .who em { font-style: normal; color: #d8cdbd; padding: 0 4px; border: 1px solid rgba(255,232,200,.3); border-radius: 2px; }
.monitor .bigsub .line { max-width: 100%; padding: 2px 9px; font-size: clamp(11px, 2.3cqi, 15px); line-height: 1.5; color: #fff;
  background: rgba(10,8,6,.62); border-radius: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.monitor .bigsub.v-inner .line, .monitor .bigsub.v-narrator .line { font-style: italic; color: #e9dfcf; }
.shotlist { display: flex; flex-direction: column; gap: 6px; max-height: 52vh; overflow-y: auto; }
.sl { display: grid; grid-template-columns: 54px 1fr; gap: 10px; padding: 8px; border: 1px solid var(--line); background: var(--char); font-size: 12px; color: #b3a99b; animation: card-in .4s both; }
.sl.cur { border-color: var(--tung); background: var(--tung-soft); color: var(--paper); }
.sl svg { width: 54px; height: 54px; }
.sl b { color: var(--paper); font-weight: 700; display: block; margin-bottom: 3px; }
.cam-move { transform-origin: 27px 27px; }
.mv-PUSH .cam-move { animation: push 2.4s ease-in-out infinite alternate; }
.mv-PULL .cam-move { animation: push 2.4s ease-in-out infinite alternate-reverse; }
.mv-ORBIT .cam-move { animation: orbit 4s linear infinite; }
.mv-PAN .cam-move { animation: pan 2.6s ease-in-out infinite alternate; }
.mv-TILT .cam-move, .mv-CRANE .cam-move { animation: tilt 2.6s ease-in-out infinite alternate; }
.mv-TRACK .cam-move { animation: track 2.6s ease-in-out infinite alternate; }
.mv-HANDHELD .cam-move { animation: shake .4s steps(3) infinite; }
.mv-DRIFT .cam-move { animation: track 6s ease-in-out infinite alternate; }
@keyframes push { from { transform: translateY(0); } to { transform: translateY(-9px); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes pan { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
@keyframes tilt { from { transform: scaleY(1); } to { transform: scaleY(.7); } }
@keyframes track { from { transform: translateX(-6px); } to { transform: translateX(6px); } }
@keyframes shake { 33% { transform: translate(1px,-1px); } 66% { transform: translate(-1px,1px); } }
@keyframes kb { from { transform: scale(1) translate(0,0); } to { transform: scale(var(--kz, 1.12)) translate(var(--kx, 0), var(--ky, 0)); } }

.bank { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cam { background: #000; border: 1px solid var(--line2); position: relative; overflow: hidden; }
.cam .view { aspect-ratio: var(--ar, 16/9); position: relative; overflow: hidden; background: #070605; }
.cam .view .bg { position: absolute; inset: -6%; background: center/cover; animation: kb var(--d, 4s) ease-in-out infinite alternate; filter: saturate(.6) brightness(.75); }
.cam.rolling .view .bg { filter: saturate(.9) brightness(.9); }
/* Reference stills (often portrait) are shown whole — contain — over a blurred fill of themselves, so a
   standing actor keeps their head; the Ken Burns zoom centres high, where faces usually are. */
.monitor .bg, .cam .view .bg, .frame .shot .bg { background: none; }
.monitor .bg::before, .cam .view .bg::before, .frame .shot .bg::before { content: ""; position: absolute; inset: 0;
  background: var(--img, none) center / cover; filter: blur(18px) brightness(.5) saturate(.8); }
.monitor .bg::after, .cam .view .bg::after, .frame .shot .bg::after { content: ""; position: absolute; inset: 6%;
  background: var(--img, none) center / contain no-repeat; }
.frame .shot .bg::after { inset: 0; }
.monitor .bg, .cam .view .bg { transform-origin: 50% 32%; }
.cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: develop 1.8s ease-out both; }
.cam .over { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 8px 10px; font-family: var(--mono); font-size: 11px; text-shadow: 0 1px 3px #000; pointer-events: none; }
.cam .over .top { display: flex; justify-content: space-between; align-items: center; }
.cam .over .name { font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .14em; }
.cam .status { align-self: flex-start; padding: 2px 7px; font-family: var(--display); font-weight: 800; letter-spacing: .14em; font-size: 12px; background: rgba(0,0,0,.6); border: 1px solid var(--line2); }
.cam.queued .status { color: var(--dim); }
.cam-retry { display: grid; gap: 8px; padding: 10px; border-top: 1px solid var(--line2); }
.cam-retry span { color: var(--dim); font-size: 12px; overflow-wrap: anywhere; }
.cam-retry button {
  appearance: none; justify-self: start; display: inline-flex; align-items: center; gap: 7px;
  min-height: 36px; padding: 7px 12px; border: 1px solid rgba(255, 138, 43, .32); border-radius: 4px;
  background: #21170f; color: #ffc18b; font-size: 12px; font-weight: 500; line-height: 20px;
}
.cam-retry button::before { content: "↻"; font-size: 17px; line-height: 1; }
.cam-retry button:hover:not(:disabled) { background: #332113; border-color: var(--tung); color: #ffe0c5; }
.cam-retry button:active:not(:disabled) { background: #422a17; }
.cam-retry button:focus-visible { outline: 2px solid var(--tung); outline-offset: 3px; }
.cam-retry button:disabled { opacity: .5; cursor: not-allowed; }
.cam-retry button[aria-busy="true"] { cursor: progress; }
.cam.rolling .status, .cam.developing .status { color: var(--rec); border-color: rgba(255,59,48,.5); }
.cam.prepping .status { color: var(--tung); border-color: rgba(255,138,43,.45); }
.cam.done .status { color: var(--ok); border-color: rgba(200,232,106,.5); }
.cam.failed .status { color: #ff8a80; }
.cam .bar { height: 3px; background: rgba(255,255,255,.08); }
.cam .bar i { display: block; height: 100%; background: var(--rec); width: 0; transition: width 1s linear; }
.cam.done .bar i { background: var(--ok); width: 100% !important; }
.cam .foot { display: flex; justify-content: space-between; padding: 6px 10px; font-size: 12px; color: #b3a99b; background: var(--char); }
.cam.done { box-shadow: 0 0 0 1px rgba(200,232,106,.35); }
.cam .can { position: absolute; right: 10px; bottom: 34px; transform: rotate(-8deg); font-family: var(--display); font-weight: 800; letter-spacing: .14em; color: var(--ok); border: 2px solid var(--ok); padding: 1px 7px; font-size: 13px; animation: stamp .5s cubic-bezier(.2,1.6,.4,1) both; }

.theater { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 10px; }
.screen { position: relative; width: 100%; max-width: 1100px; aspect-ratio: var(--ar, 16/9); max-height: 62vh; background: #000; box-shadow: 0 0 120px rgba(255,200,140,.12), 0 0 0 1px var(--line2); overflow: hidden; }
.screen video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.leader { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle, #3a332b, #0b0a09); font-family: var(--display); font-weight: 800; font-size: 26vh; color: #e9dfcd; z-index: 2; }
.leader::before { content: ""; position: absolute; width: 44vh; height: 44vh; border-radius: 50%; border: 3px solid rgba(233,223,205,.6); }
.leader::after { content: ""; position: absolute; width: 44vh; height: 44vh; border-radius: 50%; background: conic-gradient(rgba(233,223,205,.25) var(--sweep, 0deg), transparent 0); }
.leader span { position: relative; z-index: 1; }
.premiere-title { font-family: var(--serif-zh); font-weight: 900; font-size: 40px; margin: 0; text-align: center; }
.premiere-title small { display: block; font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .3em; color: var(--dim); margin-bottom: 8px; }

/* post-production upscale: gold 升级画质 after the title, 高清 / 原版 switch, the post lab over the screen */
.hd-slot { display: inline-flex; align-items: center; gap: 8px; margin-left: 14px; vertical-align: middle; }
.hd-slot:empty { display: none; }
.seedance-slot { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-left: 8px; vertical-align: middle; font-family: var(--sans-zh); font-weight: 400; max-width: 100%; }
.seedance-slot .hd-up:disabled { opacity: .5; cursor: default; transform: none; }
.sd-error { font-size: 11px; color: var(--red); max-width: 360px; line-height: 1.6; text-align: left; }
.sd-download { font-size: 11px; letter-spacing: .04em; color: var(--gold); white-space: nowrap; }
.sd-busy { font-size: 11px; }
.theater [hidden] { display: none !important; }
.sd-invite .enroll-name-field input { letter-spacing: .08em; }
.ad[data-mode="seedance"] .ad-choices[data-kind="line"] { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); align-items: stretch; }
.ad[data-mode="seedance"] .ad-opt.line { min-width: 0; min-height: 78px; width: 100%; display: flex; flex-direction: column; justify-content: flex-start; padding: 12px; }
.ad[data-mode="seedance"] .ad-opt.line b { white-space: normal; align-items: center; font-size: 14px; }
.ad[data-mode="seedance"] .ad-opt.line kbd { display: inline-block; flex: 0 0 20px; text-align: center; padding-inline: 0; }
.ad[data-mode="seedance"] .ad-opt.line small { white-space: normal; margin-left: 28px; line-height: 1.5; }
.ad[data-mode="seedance"] .ad-opt.sel { transform: none; }
.ad[data-mode="seedance"] .ad-choices:has(.sd-invite) { display: block; }
.ad[data-mode="seedance"] .ad-choices:has(.sd-invite) + .ad-keys { display: none; }
@media (max-width: 760px) { .ad[data-mode="seedance"] .ad-choices[data-kind="line"] { grid-auto-flow: row; grid-template-columns: 1fr; }.ad[data-mode="seedance"] .ad-opt.line { min-height: 64px; }.ad[data-mode="seedance"] .ad-name { top: 14px; left: 18px; }.ad[data-mode="seedance"] .ad-box { padding-top: 54px; } }
.sd-work { width: 100%; padding: 18px 22px; border: 1px solid rgba(232,195,106,.24); border-radius: 5px; background: linear-gradient(110deg,rgba(232,195,106,.06),rgba(232,195,106,.015)); text-align: left; }
.sd-work-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.sd-work-head small { display: block; font: 9px var(--mono); letter-spacing: .18em; color: #a89268; margin-bottom: 5px; }
.sd-work-title { font: 500 15px var(--sans-zh); color: var(--paper); }
.sd-work-count { font: 11px var(--mono); color: #e8c36a; white-space: nowrap; }
.sd-track { height: 3px; overflow: hidden; background: rgba(232,195,106,.12); border-radius: 3px; margin-top: 15px; }
.sd-track i { display: block; height: 100%; background: linear-gradient(90deg,#ab8342,#e8c36a); transition: width .65s ease; }
.sd-work.is-waiting .sd-track i { width: 18% !important; animation: sd-wait 2.4s ease-in-out infinite; }
@keyframes sd-wait { from { transform: translateX(-110%); } to { transform: translateX(660%); } }
.sd-work-note { font-size: 11px; color: var(--dim); line-height: 1.6; margin: 9px 0 0; }
.sd-previews { display: flex; align-items: center; gap: 9px; margin-top: 14px; }
.sd-preview-list { display: flex; flex: 1; min-width: 0; gap: 9px; overflow-x: auto; padding: 2px; scrollbar-width: thin; scrollbar-color: #75603b transparent; }
.sd-preview { position: relative; flex: 0 0 108px; height: 67px; padding: 0; overflow: hidden; border: 1px solid rgba(232,195,106,.2); border-radius: 3px; background: #201b16; color: #eee0cb; cursor: pointer; }
.sd-preview img { width: 100%; height: 100%; object-fit: cover; opacity: .78; transition: opacity .2s; }
.sd-preview span { position: absolute; left: 0; right: 0; bottom: 0; text-align: left; padding: 11px 7px 5px; font-size: 10px; background: linear-gradient(transparent,rgba(0,0,0,.8)); }
.sd-preview small { float: right; color: #caba9e; font: 9px var(--mono); }
.sd-preview:hover img, .sd-preview.on img { opacity: 1; }
.sd-preview.on { border-color: #e8c36a; box-shadow: 0 0 0 1px rgba(232,195,106,.35); }
.sd-page { flex: 0 0 20px; height: 44px; padding: 0; background: none; border: 0; color: #e8c36a; font-size: 27px; cursor: pointer; }
.sd-page:disabled { opacity: .2; cursor: default; }
@media (prefers-reduced-motion: reduce) { .sd-track i { transition: none; }.sd-work.is-waiting .sd-track i { animation: none; transform: none; } }
@media (max-width: 640px) { .sd-work { padding: 14px 12px; }.sd-work-title { font-size: 13px; }.sd-work-head { gap: 8px; }.sd-work-count { font-size: 10px; }.sd-preview { flex-basis: 104px; } }
@media (max-width: 640px) { .seedance-slot { display: flex; margin: 8px 0 0; } .sd-error { max-width: 100%; text-align: center; } }
/* quiet by default: a thin gold outline; it only fills with gold on hover */
.hd-up { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 4px; border: 1px solid rgba(232,195,106,.55); border-radius: 30px; cursor: pointer;
  font-family: var(--sans-zh); font-weight: 600; font-size: 12px; letter-spacing: .08em; color: #e8c36a; background: rgba(232,195,106,.06);
  transition: color .2s, background .2s, border-color .2s; }
.hd-up i { font-style: normal; font-size: 10px; }
.hd-up:hover { color: #2a1a02; border-color: #e8c36a; background: linear-gradient(135deg, #f6d77e, #c8902c); }
.hd-err { font-family: var(--sans-zh); font-weight: 400; font-size: 12px; color: var(--dim); }
.hd-busy { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .08em; color: #e8c36a; }
.hd-busy i { width: 7px; height: 7px; border-radius: 50%; background: #e8c36a; box-shadow: 0 0 10px #e8c36a; animation: blink 1s steps(2) infinite; }
.hd-toggle { display: inline-flex; padding: 2px; border: 1px solid rgba(232,195,106,.45); border-radius: 30px; }
.hd-toggle button { padding: 4px 12px; border: 0; border-radius: 30px; background: none; font: 600 12px var(--sans-zh); letter-spacing: .06em; color: var(--dim); cursor: pointer; }
.hd-toggle button.on { background: linear-gradient(135deg, #f6d77e, #c8902c); color: #2a1a02; }
.post-lab { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; overflow: hidden; }
.pl-soft { position: absolute; inset: 0; backdrop-filter: blur(3px) saturate(.75) brightness(.7); animation: pl-wipe 4.5s cubic-bezier(.6,0,.4,1) infinite;
  -webkit-mask-image: linear-gradient(90deg, transparent var(--wipe, 0%), #000 calc(var(--wipe, 0%) + 4%)); mask-image: linear-gradient(90deg, transparent var(--wipe, 0%), #000 calc(var(--wipe, 0%) + 4%)); }
@property --wipe { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@keyframes pl-wipe { from { --wipe: -4%; } to { --wipe: 100%; } }
.pl-beam { position: absolute; top: 0; bottom: 0; width: 2px; left: -2px; background: #f6d77e; box-shadow: 0 0 18px 4px rgba(246,215,126,.55);
  animation: pl-beam 4.5s cubic-bezier(.6,0,.4,1) infinite; }
@keyframes pl-beam { from { left: -4%; } to { left: 100%; } }
.pl-grid { position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background: linear-gradient(rgba(246,215,126,.5) 1px, transparent 1px) 0 0 / 100% 12.5%, linear-gradient(90deg, rgba(246,215,126,.5) 1px, transparent 1px) 0 0 / 6.25% 100%; }
.pl-card { position: relative; width: min(420px, 86%); padding: 20px 24px 18px; background: rgba(12,10,8,.78); border: 1px solid rgba(232,195,106,.4); border-radius: 4px;
  backdrop-filter: blur(6px); text-align: left; }
.pl-card small { display: block; font-family: var(--display); font-weight: 800; font-size: 11px; letter-spacing: .3em; color: #e8c36a; }
.pl-card b { display: block; margin: 6px 0 12px; font-family: var(--serif-zh); font-weight: 900; font-size: 22px; }
.pl-card ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.pl-card li { padding: 3px 9px; border: 1px solid var(--line2); border-radius: 2px; font-size: 12px; color: var(--dim); animation: pl-step 5s linear infinite; }
.pl-card li:nth-child(2) { animation-delay: 1s; } .pl-card li:nth-child(3) { animation-delay: 2s; } .pl-card li:nth-child(4) { animation-delay: 3s; } .pl-card li:nth-child(5) { animation-delay: 4s; }
@keyframes pl-step { 0%, 18% { color: #2a1a02; background: #e8c36a; border-color: #e8c36a; } 22%, 100% { color: var(--dim); background: none; } }
.pl-bar { height: 3px; background: rgba(255,232,200,.12); overflow: hidden; }
.pl-bar i { display: block; height: 100%; width: 4%; background: linear-gradient(90deg, #c8902c, #f6d77e); transition: width .8s ease; }
.pl-note { display: block; margin-top: 9px; font-family: var(--mono); font-size: 11.5px; color: var(--dim); letter-spacing: .04em; }
.hd-reveal::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255,236,180,.55) 50%, transparent 70%) -100% 0 / 60% 100% no-repeat; animation: hd-sweep 1.4s ease-out both; }
@keyframes hd-sweep { to { background-position: 220% 0; } }
@media (max-width: 640px) { .hd-slot { display: flex; justify-content: center; margin: 10px 0 0; } }
/* film strip under the premiere screen */
.filmstrip { --fs-min-frame: 88px; --fs-gap: 3px; --fs-nav: 32px; --fs-nav-gap: 8px;
  width: 100%; min-width: 0; max-width: 1100px; }
.premiere-mode .filmstrip { max-width: min(1500px, 92vw); }
.filmstrip:empty { display: none; }
.fs-head { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--dim); }
.fs-edit { font-family: var(--sans-zh); letter-spacing: .06em; font-size: 12px; color: #d8cdbd; text-decoration: none; border-bottom: 1px solid var(--line2); }
.fs-edit:hover { color: var(--tung); border-color: var(--tung); }
.fs-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--fs-nav-gap); min-width: 0; }
.fs-body.paged { grid-template-columns: var(--fs-nav) minmax(0, 1fr) var(--fs-nav); }
.fs-track { position: relative; display: grid; grid-template-columns: repeat(var(--fs-columns), minmax(0, 1fr)); gap: var(--fs-gap); min-width: 0; height: 54px; padding: 5px 0; background:
  repeating-linear-gradient(90deg, transparent 0 6px, rgba(255,232,200,.14) 6px 10px) top / 100% 3px no-repeat,
  repeating-linear-gradient(90deg, transparent 0 6px, rgba(255,232,200,.14) 6px 10px) bottom / 100% 3px no-repeat; }
.fs-frame { position: relative; min-width: 0; padding: 0; border: 0; border-radius: 2px; background: #1a1612 center/cover; cursor: pointer;
  filter: saturate(.6) brightness(.6); transition: filter .2s, box-shadow .2s; }
.fs-frame span { position: absolute; left: 5px; right: 5px; bottom: 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 600 10px var(--mono); color: #fff; text-shadow: 0 1px 3px #000; }
.fs-frame:hover { filter: none; }
.fs-frame.on { filter: none; box-shadow: 0 0 0 2px var(--tung), 0 0 18px rgba(255,138,43,.35); }
.fs-head-line { position: absolute; top: 0; bottom: 0; width: 2px; left: 0; background: var(--tung); box-shadow: 0 0 8px var(--tung); pointer-events: none; transition: left .25s linear; }
.fs-nav { padding: 0; border: 1px solid var(--line2); border-radius: 2px; background: var(--char2); color: var(--paper); font: 26px/1 var(--mono); }
.fs-nav:hover:not(:disabled) { color: var(--tung); border-color: var(--tung); background: var(--tung-soft); }
.fs-nav:disabled { opacity: .25; cursor: default; }
.fs-browse { display: flex; align-items: center; justify-content: space-between; min-height: 24px; gap: 12px; margin-top: 4px; font: 11px var(--mono); color: var(--dim); }
.fs-range { font-variant-numeric: tabular-nums; }
.fs-current { padding: 2px 0; border: 0; border-bottom: 1px solid var(--line2); background: none; color: var(--tung); font-size: 11px; }
.fs-nav:focus-visible, .fs-track:focus-visible, .fs-frame:focus-visible, .fs-current:focus-visible { outline: 1px solid var(--tung); outline-offset: 2px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.cta a, .cta button { text-decoration: none; background: var(--char); border: 1px solid var(--line2); color: var(--paper); padding: 9px 16px; font-size: 14px; border-radius: 3px; }
.cta .primary { background: var(--tung); color: #1a0c02; border-color: var(--tung); font-weight: 700; }
.cta button:disabled { opacity: .6; cursor: wait; }
.canvas-status { margin: 0; text-align: center; font-size: 13px; color: var(--dim); }
.canvas-status.error { color: #ffb3ad; }
.canvas-status a { color: var(--tung); text-underline-offset: 3px; }
.wait { padding: 60px 0; text-align: center; color: var(--dim); font-family: var(--italic); font-style: italic; font-size: 22px; }
.wait b { display: block; font-family: var(--display); font-style: normal; font-weight: 800; letter-spacing: .3em; font-size: 14px; color: var(--tung); margin-bottom: 10px; }
.errbox { border: 1px solid rgba(255,59,48,.5); background: rgba(255,59,48,.08); padding: 12px 14px; color: #ffb3ad; font-size: 13px; margin-bottom: 14px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.errbox button { background: var(--rec); border: 0; color: #fff; padding: 5px 12px; border-radius: 2px; }

.timeline { --tl-min-clip: 88px; --tl-gap: 6px; --tl-nav: 32px; --tl-nav-gap: 8px;
  min-width: 0; border-top: 1px solid var(--line); padding: 10px 26px 12px; display: flex; flex-direction: column; gap: 6px; background: #0e0c0b; }
.tl-head { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: .12em; }
.tl-tools { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-left: auto; }
.tl-range { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-tools button { border: 0; border-bottom: 1px solid var(--line2); padding: 2px 0; background: none; color: var(--tung); font-size: 11px; }
.tl-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--tl-nav-gap); min-width: 0; }
.tl-body.paged { grid-template-columns: var(--tl-nav) minmax(0, 1fr) var(--tl-nav); }
.tl-track { display: grid; grid-template-columns: repeat(var(--tl-columns), minmax(0, 1fr)); gap: var(--tl-gap); min-width: 0; height: 46px; }
.tl-nav { padding: 0; border: 1px solid var(--line2); border-radius: 2px; background: var(--char2); color: var(--paper); font: 26px/1 var(--mono); transition: color .2s, border-color .2s, background .2s; }
.tl-nav:hover:not(:disabled) { color: var(--tung); border-color: var(--tung); background: var(--tung-soft); }
.tl-nav:disabled { opacity: .25; cursor: default; }
.tl-nav:focus-visible, .tl-track:focus-visible, .tl-tools button:focus-visible { outline: 1px solid var(--tung); outline-offset: 2px; }
.tl-clip { position: relative; min-width: 0; background: var(--char2) center/cover; border: 1px solid var(--line); overflow: hidden; }
.tl-clip::after { content: ""; position: absolute; inset: 0; background: rgba(11,10,9,.62); transition: background .6s; }
.tl-clip.done::after { background: transparent; }
.tl-clip.active { border-color: var(--rec); }
.tl-clip span { position: absolute; left: 4px; top: 3px; z-index: 1; font-family: var(--display); font-weight: 800; font-size: 11px; letter-spacing: .08em; text-shadow: 0 1px 3px #000; }
.tl-clip.done span { color: var(--ok); }
.tl-empty { flex: 1; border: 1px dashed var(--line2); display: grid; place-items: center; font-family: var(--italic); font-style: italic; color: var(--faint); }
@media (max-width: 640px) { .timeline { padding-left: 12px; padding-right: 12px; } }

/* premiere: side columns, rail and timeline fold away; the screen takes the room */
#studio { transition: grid-template-rows .9s cubic-bezier(.6,0,.2,1); }
.floor { transition: grid-template-columns .9s cubic-bezier(.6,0,.2,1); }
.col, .rail, .timeline, .stage-head { transition: opacity .5s ease, padding .9s; }
.premiere-mode .floor { grid-template-columns: 0 1fr 0; }
.premiere-mode .col { opacity: 0; overflow: hidden; pointer-events: none; border: 0; }
.premiere-mode .rail, .premiere-mode .timeline { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; border: 0; pointer-events: none; }
.rail, .timeline { max-height: 200px; transition: opacity .5s ease, max-height .9s cubic-bezier(.6,0,.2,1), padding .9s; }
.premiere-mode .stage-head { opacity: 0; height: 0; overflow: hidden; }
.premiere-mode .slate { border-bottom-color: transparent; }
.premiere-mode #s-title { display: none; }  /* the premiere screen already shows the title, centred */
.premiere-mode .stage-body { padding-top: 2vh; }
.premiere-mode .screen { max-width: min(1500px, 92vw); max-height: calc(100vh - 300px); box-shadow: 0 0 200px rgba(255,200,140,.16), 0 0 0 1px var(--line2); }
.premiere-mode .theater { gap: 22px; }
.screen { transition: max-width .9s cubic-bezier(.6,0,.2,1), max-height .9s cubic-bezier(.6,0,.2,1); }
body:has(.premiere-mode) .vignette { background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.8) 100%); }

/* ---------- premiere: the share call-to-action ---------- */
.cta .share-cta { display: inline-flex; align-items: center; padding: 9px 22px; position: relative; overflow: hidden;
  box-shadow: 0 0 0 1px var(--tung), 0 10px 40px rgba(255,138,43,.35); animation: share-breathe 2.8s ease-in-out infinite; }
.cta .share-cta span { font-family: var(--serif-zh); font-weight: 900; font-size: 17px; letter-spacing: .12em; }
.cta .share-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%);
  transform: translateX(-120%); animation: share-sheen 3.6s ease-in-out 1.2s infinite; }
@keyframes share-breathe { 50% { box-shadow: 0 0 0 1px var(--tung), 0 12px 60px rgba(255,138,43,.6); } }
@keyframes share-sheen { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* ---------- share sheet: projection booth + call sheet ---------- */
.share-sheet { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 3vh 3vw;
  background: radial-gradient(ellipse at 30% 45%, rgba(255,138,43,.16), transparent 55%), rgba(6,5,4,.9); backdrop-filter: blur(8px);
  animation: lb-in .3s ease-out; }
.share-sheet.out { animation: sh-out .26s ease-in forwards; }
@keyframes sh-out { to { opacity: 0; } }
.sh-room { display: grid; grid-template-columns: auto minmax(360px, 460px); gap: 44px; align-items: center; max-height: 94vh; }
.sh-poster { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; animation: sh-poster .8s cubic-bezier(.2,1,.3,1) both; }
@keyframes sh-poster { from { opacity: 0; transform: translateY(24px) rotate(-2deg) scale(.96); } }
.sh-print { position: relative; height: min(84vh, 900px); aspect-ratio: 9 / 16; background: #15120f; box-shadow: 0 40px 120px rgba(0,0,0,.7), 0 0 0 1px rgba(255,232,200,.08), 0 0 140px rgba(255,160,90,.12);
  transform: rotate(-1.2deg); transition: transform .5s cubic-bezier(.2,1,.3,1); overflow: hidden; }
.sh-print:hover { transform: rotate(0) scale(1.01); }
.sh-print img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .5s, opacity .5s; }
.sh-print img:not([src]) { opacity: 0; }
.sh-print.busy img { filter: sepia(.6) brightness(.55) blur(2px); }
.sh-print.busy::after { content: "显影中…"; position: absolute; inset: auto 0 46% 0; text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: .3em; color: #ffd1a8; }
.sh-print::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.08), transparent 35%); }
.sh-poster figcaption { font-family: var(--mono); font-size: 10.5px; letter-spacing: .24em; color: var(--faint); }

.sh-panel { position: relative; max-height: 94vh; overflow-y: auto; padding: 4px 6px 4px 2px; animation: sh-panel .7s .12s cubic-bezier(.2,1,.3,1) both; }
@keyframes sh-panel { from { opacity: 0; transform: translateX(18px); } }
.sh-close { position: fixed; top: 18px; right: 22px; width: 42px; height: 42px; font-size: 24px; background: rgba(233,223,205,.06); border: 1px solid var(--line2); color: var(--paper); border-radius: 2px; z-index: 2; }
.sh-close:hover { border-color: var(--tung); color: var(--tung); }
.sh-head { margin-bottom: 22px; }
.sh-wrap { margin: 0 0 6px; font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .42em; color: var(--tung); }
.sh-head h2 { margin: 0; font-family: var(--serif-zh); font-weight: 900; font-size: 44px; line-height: 1.1; letter-spacing: .04em; }
.celebrate .sh-head h2 { font-size: 72px; letter-spacing: .12em; animation: sh-wrap 1s cubic-bezier(.2,1.6,.4,1) .25s both; text-shadow: 0 0 60px rgba(255,138,43,.45); }
@keyframes sh-wrap { from { opacity: 0; transform: scale(1.6) rotate(-4deg); filter: blur(8px); } }
.sh-sub { margin: 12px 0 0; color: #c9bfb0; font-size: 15px; line-height: 1.8; }

.sh-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; border-top: 1px solid var(--line); padding-top: 18px; }
.sh-steps > li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.sh-n { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--tung); letter-spacing: .06em; line-height: 1.2; }
.sh-steps label { display: block; font-size: 14px; font-weight: 700; color: var(--paper); margin-bottom: 8px; }
.sh-steps label small { font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: .2em; color: var(--faint); margin-left: 6px; }
#sh-author { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line2); color: var(--paper); font-family: var(--serif-zh); font-weight: 900;
  font-size: 26px; padding: 4px 0 8px; outline: none; letter-spacing: .08em; transition: border-color .2s; }
#sh-author:focus { border-bottom-color: var(--tung); }
#sh-author::placeholder { color: var(--faint); font-weight: 400; font-size: 18px; letter-spacing: .04em; }
.sh-frames { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sh-frames button { aspect-ratio: 4 / 5; border: 1px solid var(--line2); background: var(--char2) center/cover; border-radius: 2px; opacity: .55; transition: opacity .2s, box-shadow .2s, transform .2s; }
.sh-frames button:hover { opacity: .9; transform: translateY(-2px); }
.sh-frames button.on { opacity: 1; border-color: var(--tung); box-shadow: 0 0 0 1px var(--tung), 0 6px 24px rgba(255,138,43,.3); }
.sh-quote { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--char); border: 1px solid var(--line); border-left: 3px solid var(--tung); }
.sh-quote q { flex: 1; font-family: var(--serif-zh); font-size: 15px; line-height: 1.6; color: #e2d6c4; quotes: "「" "」"; }
.sh-next { flex: none; background: none; border: 1px solid var(--line2); color: #d8cdbd; font-size: 12px; padding: 4px 10px; border-radius: 99px; }
.sh-next:hover { border-color: var(--tung); color: var(--tung); }
.sh-debut { display: flex !important; align-items: flex-start; gap: 10px; margin: 12px 0 0 !important; font-weight: 500 !important; font-size: 13px !important; color: #d8cdbd !important; cursor: pointer; }
.sh-debut input { accent-color: var(--tung); width: 16px; height: 16px; margin: 2px 0 0; }
.sh-debut small { display: block; font-family: inherit !important; letter-spacing: 0 !important; margin: 2px 0 0 !important; color: var(--faint); }

/* poster style picker: each option is a tiny drawing of its poster */
.sh-styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.sh-styles button { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left;
  padding: 8px 10px; background: var(--char); border: 1px solid var(--line2); border-radius: 3px; transition: border-color .2s, background .2s, transform .15s; }
.sh-styles button:hover { border-color: rgba(255,138,43,.6); transform: translateY(-1px); }
.sh-styles button.on { border-color: var(--tung); background: var(--tung-soft); box-shadow: inset 0 0 0 1px var(--tung); }
.sh-styles b { font-size: 13.5px; color: var(--paper); align-self: end; }
.sh-styles small { font-family: var(--display); font-weight: 600; font-size: 10px; letter-spacing: .26em; color: var(--faint); align-self: start; }
.sh-styles button.on small { color: #ffb078; }
.sw { grid-row: 1 / 3; width: 30px; height: 52px; border-radius: 2px; position: relative; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.sw::before, .sw::after { content: ""; position: absolute; }
.sw-film { background:
    repeating-linear-gradient(180deg, rgba(233,223,205,.4) 0 3px, transparent 3px 6px) 1px 0 / 2px 100% no-repeat,
    repeating-linear-gradient(180deg, rgba(233,223,205,.4) 0 3px, transparent 3px 6px) calc(100% - 1px) 0 / 2px 100% no-repeat,
    linear-gradient(180deg, #7a5a3c 0%, #3a2a1e 52%, #0b0a09 70%); }
.sw-film::before { left: 7px; right: 7px; top: 33px; height: 3px; background: #f1e7d6; }
.sw-film::after { left: 4px; right: 4px; bottom: 3px; height: 8px; background: #1d1a17; border-top: 1px dashed rgba(241,231,214,.5); }
/* 纸本: masthead rule, framed photo (mat + keyline), centred title lines, footer rule, tiny red seal */
.sw-paper { background:
    linear-gradient(rgba(28,24,20,.45), rgba(28,24,20,.45)) 4px 4px / calc(100% - 8px) 1px no-repeat, #f3ede2; }
.sw-paper::before { left: 5px; right: 5px; top: 8px; height: 21px;
  background: linear-gradient(180deg, #b9c6cf 0%, #8a9aa4 45%, #6d5a48 46%, #3b3028 100%);
  box-shadow: 0 0 0 1.5px #f3ede2, 0 0 0 2px rgba(28,24,20,.7); }
.sw-paper::after { left: 4px; right: 4px; top: 34px; bottom: 3px; background:
    linear-gradient(#1c1814, #1c1814) 50% 0 / 16px 2.5px no-repeat,
    linear-gradient(rgba(28,24,20,.5), rgba(28,24,20,.5)) 50% 5px / 10px 1.2px no-repeat,
    linear-gradient(rgba(28,24,20,.35), rgba(28,24,20,.35)) 0 10px / 100% 1px no-repeat,
    linear-gradient(#b22a1e, #b22a1e) 100% 100% / 4px 4px no-repeat; }
.sw-full { background: linear-gradient(180deg, #9a7a5a 0%, #5a4434 40%, #0a0a0c 80%); }
.sw-full::before { left: 4px; top: 30px; width: 18px; height: 4px; background: #fff; box-shadow: 0 6px 0 -1px rgba(255,255,255,.6); }
.sw-full::after { left: 3px; right: 3px; bottom: 3px; height: 7px; border-radius: 2px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); }

.sh-public { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; margin: 22px 0 0; padding: 12px 14px;
  border: 1px solid var(--line2); border-radius: 3px; cursor: pointer; transition: border-color .2s, background .2s; }
.sh-public:has(input:checked) { border-color: rgba(255,138,43,.6); background: var(--tung-soft); }
.sh-public input { position: absolute; opacity: 0; pointer-events: none; }
.sh-switch { width: 34px; height: 20px; border-radius: 99px; background: #3a332c; position: relative; margin-top: 1px; transition: background .2s; }
.sh-switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #d8cdbd; transition: transform .25s cubic-bezier(.2,1.4,.4,1); }
.sh-public input:checked + .sh-switch { background: var(--tung); }
.sh-public input:checked + .sh-switch::after { transform: translateX(14px); background: #fff; }
.sh-public input:focus-visible + .sh-switch { outline: 2px solid var(--tung); outline-offset: 2px; }
.sh-public b { display: block; font-size: 14px; color: var(--paper); }
.sh-public small { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.6; color: var(--dim); }

.sh-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 18px; }
.sh-btn { text-decoration: none; background: var(--char); border: 1px solid var(--line2); color: var(--paper); padding: 11px 16px; font-size: 14px; border-radius: 3px; transition: border-color .2s, transform .15s; }
.sh-btn:hover { border-color: rgba(255,138,43,.7); transform: translateY(-1px); }
.sh-btn.primary { background: var(--tung); color: #1a0c02; border-color: var(--tung); font-weight: 800; padding: 11px 22px; box-shadow: 0 10px 34px rgba(255,138,43,.35); }
.sh-actions .sh-btn { padding: 11px 10px; font-size: 13px; }
.sh-actions .sh-btn.primary { padding-inline: 14px; }
.sh-btn.sh-canvas { color: #ffd1a8; border-color: rgba(255,138,43,.5); background: rgba(255,138,43,.07); }
.sh-btn.sh-canvas:disabled { opacity: .6; cursor: wait; transform: none; }
.sh-canvas-status { margin: -6px 0 18px; text-align: left; line-height: 1.65; }
.sh-caption { border: 1px dashed var(--line2); padding: 12px 14px; border-radius: 2px; }
.sh-tones { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.sh-tones span { margin-left: auto; font-size: 11px; color: var(--faint); }
.sh-tones button { background: none; border: 1px solid var(--line2); color: var(--dim); font-size: 12px; padding: 3px 11px; border-radius: 99px; }
.sh-tones button.on { border-color: var(--tung); color: #ffd1a8; background: var(--tung-soft); }
.sh-text { margin: 0 0 10px; white-space: pre-wrap; font-size: 13px; line-height: 1.75; color: #c9bfb0; word-break: break-all; }
.sh-copy { background: none; border: 0; color: var(--tung); font-size: 13px; padding: 0; }
.sh-copy:hover { text-decoration: underline; }
.sh-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); margin: 0; padding: 10px 18px; background: var(--paper); color: #1b1612; font-size: 13px; font-weight: 600;
  border-radius: 2px; opacity: 0; pointer-events: none; box-shadow: 0 14px 40px rgba(0,0,0,.5); }
.sh-toast.on { animation: toast 2.4s ease forwards; }
@keyframes toast { 10%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 0); } }
@media (min-width: 901px) and (max-height: 900px) {
  .sh-head { margin-bottom: 14px; }
  .sh-steps { gap: 12px; padding-top: 12px; }
  .sh-debut { margin-top: 8px !important; }
  .sh-styles { margin-top: 10px; }
  .sh-public { margin-top: 14px; }
  .sh-actions { margin-top: 12px; }
  .sh-actions .sh-btn { padding-block: 9px; }
}
@media (max-width: 900px) {
  .share-sheet { padding: 0; place-items: start stretch; overflow-y: auto; }
  .sh-room { grid-template-columns: 1fr; gap: 18px; max-height: none; padding: 64px 18px 40px; }
  .sh-print { height: 58vh; transform: none; }
  .sh-panel { max-height: none; overflow: visible; }
  .celebrate .sh-head h2 { font-size: 54px; }
  .sh-actions .sh-btn { flex: 1 1 auto; text-align: center; }
}

/* ---------- watch page: the friends' screening room ---------- */
.watch-page { min-height: 100%; height: auto; background: transparent; }
.w-backdrop { position: fixed; inset: -40px; background: center/cover; filter: blur(48px) saturate(1.2) brightness(.35); opacity: .7; z-index: -1; }
.w-top { display: flex; justify-content: space-between; align-items: center; padding: 22px 36px; }
.w-top .mark { text-decoration: none; color: var(--paper); }
.w-premiere { font-family: var(--display); font-weight: 600; letter-spacing: .3em; font-size: 13px; color: var(--tung); }
.w-premiere b { color: var(--paper); font-family: var(--mono); font-weight: 400; letter-spacing: .08em; }
.w-hall { max-width: 1280px; margin: 2vh auto 0; padding: 0 36px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 48px; align-items: center; }
.w-screen { position: relative; background: #000; box-shadow: 0 0 0 1px var(--line2), 0 40px 120px rgba(0,0,0,.7), 0 0 160px rgba(255,190,130,.12); animation: rise 1s both; }
.w-screen video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
/* The ratio lives on the video: on the grid item itself the row is sized before the ratio applies. */
.w-screen.w-ar-169 { width: 100%; }
.w-screen.w-ar-169 video { height: auto; aspect-ratio: 16 / 9; }
.w-screen.w-ar-916 { justify-self: center; height: 82vh; aspect-ratio: 9 / 16; }
.w-play { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle, rgba(0,0,0,.15), rgba(0,0,0,.55)); border: 0; cursor: pointer; }
.w-play[hidden] { display: none; }
.w-ticket { position: relative; display: grid; gap: 2px; justify-items: center; padding: 16px 34px 14px; background: var(--paper); color: #1b1612; border-radius: 3px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6); transition: transform .25s cubic-bezier(.2,1.4,.4,1);
  -webkit-mask: radial-gradient(circle 9px at 0 50%, transparent 8px, #000 9px) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, transparent 8px, #000 9px) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 9px at 0 50%, transparent 8px, #000 9px) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, transparent 8px, #000 9px) right / 51% 100% no-repeat; }
.w-play:hover .w-ticket { transform: scale(1.06) rotate(-1.5deg); }
.w-ticket > span { white-space: nowrap; }
.w-admit { font-family: var(--display); font-weight: 800; letter-spacing: .3em; font-size: 12px; color: #b4561a; }
.w-enter { font-family: var(--serif-zh); font-weight: 900; font-size: 24px; letter-spacing: .1em; }
.w-len { font-family: var(--mono); font-size: 11px; color: #6b5f52; letter-spacing: .1em; }
.w-card { animation: rise 1s .15s both; }
.w-badge { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--display); font-weight: 600; font-size: 11.5px; letter-spacing: .3em; color: rgba(241,231,214,.5); }
.w-badge i { flex: 0 0 24px; height: 1px; background: rgba(255,138,43,.45); }
.w-title { margin: 0; font-family: var(--serif-zh); font-weight: 900; font-size: clamp(34px, 4.4vw, 64px); line-height: 1.12; letter-spacing: .02em; text-wrap: balance; }
.w-from { margin: 22px 0 2px; font-family: var(--italic); font-style: italic; font-size: 22px; color: #ffb078; }
.w-author { margin: 0; font-family: var(--serif-zh); font-weight: 900; font-size: 34px; letter-spacing: .12em; }
.w-author span { box-shadow: inset 0 -.32em 0 rgba(255,138,43,.35); }
.w-quote { margin: 22px 0 0; padding: 0 0 0 16px; border-left: 2px solid var(--tung); font-family: var(--serif-zh); font-size: 17px; line-height: 1.8; color: #d6ccbd; }
.w-billing { display: grid; grid-template-columns: repeat(3, auto); gap: 10px 22px; margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--line); justify-content: start; }
.w-billing div { min-width: 0; }
.w-billing dt { font-size: 11px; color: var(--faint); letter-spacing: .3em; }
.w-billing dd { margin: 2px 0 0; font-size: 13.5px; font-weight: 700; color: #e2d6c4; overflow-wrap: anywhere; }
.w-cta { margin: 9vh 0 0; padding: 7vh 36px 9vh; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(255,138,43,.06)); transition: background .8s; }
.w-cta.lit { background: linear-gradient(180deg, rgba(255,138,43,.05), rgba(255,138,43,.16)); }
.w-cta-in { max-width: 760px; margin: 0 auto; text-align: center; display: grid; justify-items: center; }
.w-cta h2 { margin: 0; font-family: var(--serif-zh); font-weight: 900; font-size: clamp(30px, 4vw, 52px); line-height: 1.2; }
.w-cta p:not(.kicker) { margin: 18px 0 30px; color: #c9bfb0; line-height: 1.9; font-size: 16px; }
.w-action { text-decoration: none; }
.w-top-r { display: flex; align-items: center; gap: 18px; }
.w-more { margin-top: 22px; color: var(--dim); font-size: 14px; text-decoration: none; border-bottom: 1px solid var(--line2); padding-bottom: 2px; }
.w-more:hover { color: var(--tung); border-color: var(--tung); }
@media (max-width: 900px) {
  .w-top { padding: 16px 18px; } .w-premiere { font-size: 10px; letter-spacing: .2em; }
  .w-hall { grid-template-columns: 1fr; gap: 26px; padding: 0 16px; }
  .w-screen.w-ar-916 { height: min(76vh, calc((100vw - 32px) * 16 / 9)); }
  .w-billing { grid-template-columns: repeat(2, auto); }
}

/* ---------- landing: the doorway into 片海 ---------- */
.vault-link { text-decoration: none; color: var(--paper); font-family: var(--serif-zh); font-weight: 900; font-size: 15px; letter-spacing: .12em;
  padding: 6px 12px; border: 1px solid rgba(255,138,43,.5); border-radius: 2px; transition: background .2s, border-color .2s; }
.vault-link em { font-family: var(--display); font-style: normal; font-weight: 600; font-size: 11px; letter-spacing: .28em; color: var(--tung); margin-left: 4px; }
.vault-link:hover { background: var(--tung-soft); border-color: var(--tung); }
.vault-teaser { position: relative; max-width: 1180px; margin: clamp(96px, 15vh, 168px) auto 0; padding-top: 34px; animation: rise 1s .45s both; }
/* a faint hairline marks the start of the second section */
.vault-teaser::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,232,200,.14) 20%, rgba(255,232,200,.14) 80%, transparent); }
.vt-head { display: flex; justify-content: space-between; align-items: baseline; text-decoration: none; color: var(--paper); margin-bottom: 12px; }
.vt-head span { font-family: var(--serif-zh); font-weight: 900; font-size: 18px; letter-spacing: .06em; }
.vt-head span em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--dim); font-weight: 400; }
.vt-head b { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .22em; color: var(--tung); }
.vt-head:hover b { text-decoration: underline; }
.vt-strip { display: grid; grid-template-columns: repeat(8, 1fr) 72px; gap: 10px; }
.vt-strip a { position: relative; aspect-ratio: 2 / 3; border-radius: 3px; background: var(--char2) center/cover; overflow: hidden; text-decoration: none;
  box-shadow: 0 0 0 1px var(--line); transition: transform .3s cubic-bezier(.2,1.2,.4,1), box-shadow .3s; animation: rise .8s calc(.5s + var(--i, 0) * 60ms) both; }
.vt-strip a::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.vt-strip a b { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 1; color: #fff; font-family: var(--serif-zh); font-size: 12.5px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vt-strip a:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 0 0 1px var(--tung), 0 14px 30px rgba(0,0,0,.5); }
.vt-strip .vt-more { display: grid; place-items: center; align-content: center; gap: 6px; background: var(--char); color: var(--tung); font-size: 13px; font-weight: 700; }
.vt-strip .vt-more::after { display: none; }
@media (max-width: 900px) { .vt-strip { grid-template-columns: repeat(4, 1fr); } .vt-strip a:nth-child(n+5):not(.vt-more) { display: none; } .vt-strip .vt-more { aspect-ratio: auto; grid-column: 1 / -1; padding: 10px; } }

/* ---------- 片海 · THE VAULT ---------- */
#vault { min-height: 100vh; padding-bottom: 0; }
.v-nav { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; gap: 22px; padding: 18px 44px;
  background: linear-gradient(180deg, rgba(11,10,9,.85), transparent); transition: background .35s; }
.v-nav.solid { background: rgba(11,10,9,.94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.v-nav .mark { text-decoration: none; color: var(--paper); }
.v-brand { font-family: var(--serif-zh); font-weight: 900; font-size: 18px; letter-spacing: .14em; padding-left: 22px; border-left: 1px solid var(--line2); }
.v-brand em { font-family: var(--display); font-style: normal; font-weight: 600; font-size: 12px; letter-spacing: .3em; color: var(--tung); margin-left: 6px; }
.v-nav-r { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.v-dice { display: inline-flex; align-items: center; gap: 9px; background: rgba(233,223,205,.06); border: 1px solid var(--line2); color: var(--paper); padding: 8px 14px; border-radius: 99px; font-size: 13.5px; font-weight: 700; transition: border-color .2s, background .2s; }
.v-dice i { width: 16px; height: 16px; border-radius: 3px; border: 1.5px solid var(--tung); position: relative; transition: transform .5s cubic-bezier(.2,1.4,.4,1); }
.v-dice i::before, .v-dice i::after { content: ""; position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--tung); }
.v-dice i::before { left: 2px; top: 2px; box-shadow: 6px 6px 0 var(--tung); } .v-dice i::after { right: 2px; top: 2px; box-shadow: -6px 6px 0 var(--tung); }
.v-dice:hover { border-color: var(--tung); background: var(--tung-soft); } .v-dice:hover i { transform: rotate(180deg); }
.v-make { text-decoration: none; background: var(--tung); color: #1a0c02; font-weight: 800; font-size: 13.5px; padding: 9px 16px; border-radius: 99px; box-shadow: 0 6px 24px rgba(255,138,43,.3); }

.v-hero { position: relative; height: min(86vh, 860px); min-height: 560px; overflow: hidden; }
.v-hero-bg, .v-bg-layer { position: absolute; inset: 0; }
.v-bg-layer { opacity: 0; transition: opacity 1.2s ease; }
.v-bg-layer.on { opacity: 1; }
.v-bg-layer img, .v-bg-layer video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.v-bg-layer img { animation: v-drift 16s ease-out both; }
.v-bg-layer video { opacity: 0; transition: opacity 1.4s ease; } .v-bg-layer video.on { opacity: 1; }
@keyframes v-drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.v-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(11,10,9,.92) 0%, rgba(11,10,9,.6) 34%, transparent 64%), linear-gradient(0deg, var(--ink) 0%, rgba(11,10,9,.4) 26%, transparent 50%); }
.v-hero-in { position: absolute; z-index: 2; left: 44px; bottom: 15%; width: min(600px, 52vw); }
.v-hero-in.in > * { animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
.v-hero-in.in > :nth-child(2) { animation-delay: .06s; } .v-hero-in.in > :nth-child(3) { animation-delay: .12s; }
.v-hero-in.in > :nth-child(4) { animation-delay: .18s; } .v-hero-in.in > :nth-child(n+5) { animation-delay: .24s; }
.v-tag { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .3em; color: #ffd1a8; }
.v-tag i { width: 26px; height: 2px; background: var(--tung); }
.v-hero h1 { margin: 0; font-family: var(--serif-zh); font-weight: 900; font-size: clamp(38px, 5vw, 74px); line-height: 1.08; letter-spacing: .02em; text-shadow: 0 4px 40px rgba(0,0,0,.6); text-wrap: balance; }
.v-by { margin: 16px 0 0; font-size: 20px; } .v-by em { font-family: var(--italic); color: #ffb078; font-size: 20px; margin-right: 6px; }
.v-by b { font-family: var(--serif-zh); font-weight: 900; letter-spacing: .1em; }
.v-hero blockquote { margin: 16px 0 0; font-family: var(--serif-zh); font-size: 17px; line-height: 1.8; color: #ddd3c4; max-width: 520px; }
.v-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.v-meta span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: #d8cdbd; padding: 3px 9px; border: 1px solid rgba(241,231,214,.22); border-radius: 2px; background: rgba(11,10,9,.35); }
.v-cta { display: flex; gap: 12px; margin-top: 26px; }
.v-play { display: inline-flex; align-items: center; text-decoration: none; background: var(--paper); color: #14100c; font-weight: 800; font-size: 16px; padding: 12px 26px; border-radius: 3px; transition: transform .15s, box-shadow .2s; }
.v-play:hover { transform: translateY(-1px); box-shadow: 0 10px 40px rgba(255,220,180,.25); }
.v-next { background: rgba(233,223,205,.12); border: 1px solid rgba(233,223,205,.25); color: var(--paper); font-size: 15px; padding: 12px 20px; border-radius: 3px; }
.v-next:hover { background: rgba(233,223,205,.2); }
.v-hero-reel { position: absolute; z-index: 2; right: 44px; bottom: 15%; display: flex; gap: 8px; }
.v-hero-reel button { width: 54px; aspect-ratio: 2 / 3; border: 1px solid rgba(241,231,214,.25); border-radius: 2px; background: center/cover; opacity: .5; transition: opacity .3s, transform .3s, border-color .3s; }
.v-hero-reel button.on { opacity: 1; transform: translateY(-6px); border-color: var(--tung); box-shadow: 0 8px 24px rgba(0,0,0,.6); }
.v-empty { padding: 26vh 44px 10vh; text-align: center; display: grid; justify-items: center; gap: 12px; }
.v-empty h1 { margin: 0; font-family: var(--serif-zh); font-size: 46px; } .v-empty p { color: var(--dim); margin: 0 0 18px; }
.v-empty .action { text-decoration: none; }

.v-shelves { position: relative; z-index: 3; margin-top: -9vh; padding-bottom: 20px; }
.v-shelf { margin: 0 0 30px; }
.v-shelf header { display: flex; align-items: baseline; gap: 14px; padding: 0 44px; margin-bottom: 10px; }
.v-shelf h2 { margin: 0; font-family: var(--serif-zh); font-weight: 900; font-size: 21px; letter-spacing: .06em; }
.v-shelf h2 small { font-family: var(--display); font-weight: 600; font-size: 11px; letter-spacing: .26em; color: var(--faint); margin-left: 12px; }
.v-shelf header > span { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.v-row { position: relative; }
.v-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding: 26px 44px 34px; margin: -26px 0 -34px; scrollbar-width: none; }
.v-track::-webkit-scrollbar { display: none; }
.v-arrow { position: absolute; z-index: 5; top: 0; bottom: 0; width: 44px; border: 0; background: linear-gradient(90deg, rgba(11,10,9,.9), transparent); color: var(--paper); font-size: 38px; opacity: 0; transition: opacity .25s; }
.v-arrow.next { right: 0; background: linear-gradient(270deg, rgba(11,10,9,.9), transparent); }
.v-arrow.prev { left: 0; }
.v-row:hover .v-arrow { opacity: 1; }
.v-row.at-start .v-arrow.prev, .v-row.at-end .v-arrow.next { opacity: 0 !important; pointer-events: none; }

/* treasure cards: key art at rest; hovering reveals the author's words and a silent preview */
.vc { position: relative; flex: 0 0 190px; scroll-snap-align: start; text-decoration: none; color: var(--paper); border-radius: 4px; transform-origin: 50% 60%;
  transition: transform .45s cubic-bezier(.2,1,.3,1), box-shadow .45s; animation: rise .7s calc(var(--i, 0) * 40ms) both; }
.v-shelf.tall .vc, .vc.portrait { flex-basis: 190px; }
.vc-art { position: relative; aspect-ratio: 2 / 3; border-radius: 4px; overflow: hidden; background: var(--char2); box-shadow: 0 0 0 1px var(--line); }
.vc-art img, .vc-art video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,1,.3,1), opacity .6s; }
.vc-art video { opacity: 0; } .vc-art video.on { opacity: 1; }
.vc-art::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.88)); pointer-events: none; }
.vc-len { position: absolute; z-index: 2; left: 8px; top: 8px; font-family: var(--mono); font-size: 10.5px; padding: 1px 6px; background: rgba(0,0,0,.6); border-radius: 2px; }
.vc-debut { position: absolute; z-index: 2; right: 8px; top: 8px; font-family: var(--display); font-weight: 600; font-size: 9.5px; letter-spacing: .24em; padding: 2px 6px; color: #ffd1a8; border: 1px solid rgba(255,138,43,.55); border-radius: 2px; background: rgba(11,10,9,.5); }
.vc-cap { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; pointer-events: none; }
.vc-cap b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--serif-zh); font-weight: 900; font-size: 15px; line-height: 1.3; text-shadow: 0 2px 10px #000; }
.vc-cap small { display: block; margin-top: 4px; font-size: 11px; color: rgba(241,231,214,.7); }
.vc-more { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 46px 12px 12px; border-radius: 0 0 4px 4px;
  background: linear-gradient(180deg, transparent, rgba(16,14,12,.94) 34%); opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .3s, transform .45s cubic-bezier(.2,1,.3,1); }
.vc-more b { display: block; font-family: var(--serif-zh); font-weight: 900; font-size: 14px; line-height: 1.3; margin-bottom: 6px; }
.vc-more q { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--serif-zh); font-size: 12.5px; line-height: 1.7; color: #e2d6c4; quotes: "「" "」"; }
.vc-more p { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 0; }
.vc-more p span { font-size: 10.5px; color: var(--dim); border: 1px solid var(--line2); padding: 0 5px; border-radius: 2px; }
.vc-more em { display: block; margin-top: 10px; font-style: normal; font-weight: 800; font-size: 12.5px; color: var(--tung); }
.vc:hover .vc-art img { transform: scale(1.06); }
.vc.open { z-index: 10; transform: scale(1.14) translateY(-10px); }
.vc.open { box-shadow: 0 22px 44px rgba(0,0,0,.65); }
.vc.open .vc-art { box-shadow: 0 0 0 1px var(--tung); }
.vc-cap { transition: opacity .25s; }
.vc.open .vc-cap { opacity: 0; }
.vc.open .vc-more { opacity: 1; transform: none; pointer-events: auto; }
.v-shelf:first-child .vc:first-child.open, .v-track > .vc:first-child.open { transform-origin: 0 60%; }
.v-track > .vc:last-child.open { transform-origin: 100% 60%; }

/* 淘片台 */
.v-dig { margin: 34px 44px 0; padding: 34px 36px 40px; border: 1px solid var(--line); border-radius: 6px;
  background: radial-gradient(ellipse at 0% 0%, rgba(255,138,43,.08), transparent 50%), var(--char); }
.v-dig header { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 6px 26px; }
.v-dig .kicker { grid-column: 1 / -1; margin: 0; }
.v-dig h2 { margin: 0; font-family: var(--serif-zh); font-weight: 900; font-size: 40px; letter-spacing: .1em; }
.v-search { justify-self: end; width: min(440px, 100%); display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line2); padding: 6px 2px; transition: border-color .2s; }
.v-search:focus-within { border-bottom-color: var(--tung); }
.v-search i { width: 14px; height: 14px; border: 2px solid var(--dim); border-radius: 50%; position: relative; flex: none; }
.v-search i::after { content: ""; position: absolute; width: 2px; height: 7px; background: var(--dim); right: -5px; bottom: -6px; transform: rotate(-45deg); }
.v-search input { flex: 1; background: none; border: 0; outline: 0; color: var(--paper); font: inherit; font-size: 16px; }
.v-search input::placeholder { color: var(--faint); }
.v-search input::-webkit-search-cancel-button { -webkit-appearance: none; width: 14px; height: 14px; cursor: pointer; opacity: .6;
  background: linear-gradient(45deg, transparent 45%, var(--dim) 45% 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, var(--dim) 45% 55%, transparent 55%); }
.v-filters { display: grid; gap: 10px; margin: 26px 0 18px; }
.v-filters > div { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.v-filters span { width: 44px; font-size: 12px; color: var(--faint); letter-spacing: .2em; }
.v-filters button { background: transparent; border: 1px solid var(--line2); color: #d8cdbd; font-size: 13px; padding: 5px 13px; border-radius: 99px; transition: all .2s; }
.v-filters button:hover { border-color: rgba(255,138,43,.6); color: var(--paper); }
.v-filters button.on { background: var(--tung); border-color: var(--tung); color: #1a0c02; font-weight: 700; }
.v-found { display: flex; align-items: baseline; gap: 14px; border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 20px; }
.v-found b { font-family: var(--serif-zh); font-size: 16px; } .v-found em { font-style: normal; font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--tung); margin: 0 3px; }
.v-clear { background: none; border: 0; color: var(--dim); font-size: 12.5px; text-decoration: underline; }
.v-load { display: block; margin: 28px auto; padding: 12px 24px; border: 1px solid var(--dim); text-decoration: none; }
.hb-new.hb-more { display: block !important; width: 100%; margin: 18px 0 0; background: transparent !important; color: var(--dim) !important; border: 1px solid var(--dim); }
.hb-new.hb-more[hidden], .v-load[hidden] { display: none !important; }
.v-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 46px 14px; padding-bottom: 60px; }
.v-grid .vc { flex: none; }
.v-none { grid-column: 1 / -1; text-align: center; color: var(--dim); padding: 40px 0; line-height: 2; }
.v-none b { display: block; font-family: var(--serif-zh); font-size: 20px; color: var(--paper); } .v-none a { color: var(--tung); }
.v-foot { text-align: center; padding: 12vh 24px 14vh; display: grid; justify-items: center; gap: 30px; }
.v-foot h2 { margin: 0; font-family: var(--serif-zh); font-weight: 900; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.3; }
.v-foot .action { text-decoration: none; }

/* 随便淘一部: the slot reel */
.v-slot { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(6,5,4,.92); backdrop-filter: blur(8px); animation: lb-in .25s; }
.v-slot-in { width: min(1100px, 94vw); text-align: center; position: relative; }
.v-slot-k { font-family: var(--display); font-weight: 800; letter-spacing: .4em; font-size: 13px; color: var(--tung); margin: 0 0 22px; }
.v-slot-win { position: relative; overflow: hidden; padding: 22px 0; border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2);
  -webkit-mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  background: repeating-linear-gradient(90deg, rgba(233,223,205,.12) 0 10px, transparent 10px 22px) 0 6px / 100% 6px no-repeat,
              repeating-linear-gradient(90deg, rgba(233,223,205,.12) 0 10px, transparent 10px 22px) 0 calc(100% - 6px) / 100% 6px no-repeat; }
.v-slot-mark { position: absolute; z-index: 2; left: 50%; top: 0; bottom: 0; width: 196px; transform: translateX(-50%); border: 2px solid var(--tung); border-radius: 6px; box-shadow: 0 0 40px rgba(255,138,43,.4), inset 0 0 30px rgba(255,138,43,.15); pointer-events: none; }
.v-slot-strip { display: flex; gap: 14px; transition: transform 3.2s cubic-bezier(.12,.72,.08,1); will-change: transform; }
.v-slot-frame { flex: 0 0 180px; aspect-ratio: 2 / 3; border-radius: 4px; background: var(--char2) center/cover; position: relative; overflow: hidden; filter: saturate(.7) brightness(.7); transition: filter .5s, transform .5s; }
.v-slot-frame b { position: absolute; left: 8px; right: 8px; bottom: 8px; font-family: var(--serif-zh); font-size: 13px; color: #fff; text-shadow: 0 2px 8px #000; text-align: left; }
.v-slot-frame.hit { filter: none; transform: scale(1.06); }
.v-slot-result { min-height: 190px; padding-top: 26px; opacity: 0; transform: translateY(10px); transition: opacity .5s .1s, transform .6s .1s cubic-bezier(.2,1,.3,1); }
.v-slot.done .v-slot-result { opacity: 1; transform: none; }
.v-slot-got { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: .3em; color: var(--tung); font-size: 14px; }
.v-slot-result h3 { margin: 8px 0 0; font-family: var(--serif-zh); font-weight: 900; font-size: 34px; }
.v-slot-by { margin: 8px 0 0; color: var(--dim); font-size: 14px; }
.v-slot-result blockquote { margin: 12px auto 0; max-width: 560px; font-family: var(--serif-zh); color: #ddd3c4; font-size: 16px; line-height: 1.8; }
.v-slot-result div { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.v-again { background: rgba(233,223,205,.1); border: 1px solid var(--line2); color: var(--paper); padding: 12px 20px; border-radius: 3px; font-size: 15px; }
.v-again:hover { border-color: var(--tung); color: var(--tung); }
.v-slot-x { position: fixed; top: 18px; right: 22px; width: 42px; height: 42px; font-size: 24px; background: rgba(233,223,205,.06); border: 1px solid var(--line2); color: var(--paper); border-radius: 2px; }
@media (max-width: 900px) {
  .v-nav { padding: 12px 16px; gap: 12px; } .v-brand { display: none; } .v-make { display: none; }
  .v-hero { height: 78vh; min-height: 520px; } .v-hero-in { left: 18px; right: 18px; width: auto; bottom: 12%; }
  .v-hero::after { background: linear-gradient(0deg, var(--ink) 4%, rgba(11,10,9,.65) 45%, rgba(11,10,9,.2) 75%); }
  .v-hero-reel { display: none; } .v-by, .v-by em { font-size: 16px; }
  .v-shelf header { padding: 0 16px; } .v-track { padding-left: 16px; padding-right: 16px; } .vc { flex-basis: 138px; } .v-arrow { display: none; }
  .v-dig { margin: 24px 12px 0; padding: 22px 16px 30px; } .v-dig header { grid-template-columns: 1fr; } .v-search { justify-self: stretch; }
  .v-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px 10px; }
  .v-slot-frame { flex-basis: 140px; } .v-slot-mark { width: 152px; }
}

/* ---------- assistant director dialog (RPG style) ---------- */
.ad { position: fixed; inset: 0; z-index: 48; }
.ad-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,10,9,.42) 0%, rgba(11,10,9,.7) 45%, rgba(11,10,9,.92) 100%);
  backdrop-filter: blur(6px) saturate(.8); animation: ad-fade .4s ease both; }
@keyframes ad-fade { from { opacity: 0; } }
.ad-stage { position: absolute; left: 50%; bottom: 4vh; width: min(1120px, 94vw); transform: translateX(-50%); display: flex; align-items: flex-end; }
.ad-actor { position: relative; flex: none; width: 330px; aspect-ratio: 1; margin-right: -64px; z-index: 1; pointer-events: none;
  background: center/cover no-repeat;
  -webkit-mask-image: radial-gradient(ellipse 50% 56% at 50% 46%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 56% at 50% 46%, #000 62%, transparent 100%);
  animation: ad-enter .7s cubic-bezier(.2,.9,.25,1.05) .05s both; }
@keyframes ad-enter { from { opacity: 0; transform: translateY(60px) scale(.94); } }
.ad-actor video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; }
.ad-actor video.on { opacity: 1; }
.ad-box { position: relative; flex: 1; min-width: 0; min-height: 230px; padding: 32px 36px 18px 88px; border-radius: 6px;
  background: linear-gradient(180deg, rgba(30,26,22,.96), rgba(17,15,13,.98)); border: 1px solid var(--line2);
  box-shadow: 0 40px 100px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,232,200,.06); animation: rise .6s cubic-bezier(.2,.8,.2,1) .12s both; }
.ad-box::before, .ad-box::after { content: ""; position: absolute; width: 18px; height: 18px; border: solid var(--tung); opacity: .7; }
.ad-box::before { left: 8px; top: 8px; border-width: 1.5px 0 0 1.5px; }
.ad-box::after { right: 8px; bottom: 8px; border-width: 0 1.5px 1.5px 0; }
.ad-name { position: absolute; top: -15px; left: 80px; display: flex; align-items: baseline; gap: 10px; padding: 5px 16px 6px; background: var(--tung); color: #1a0c02; border-radius: 2px;
  box-shadow: 0 6px 20px rgba(255,138,43,.3); }
.ad-name b { font-family: var(--serif-zh); font-weight: 900; font-size: 17px; letter-spacing: .12em; }
.ad-name span { font-family: var(--display); font-weight: 800; font-size: 10.5px; letter-spacing: .22em; opacity: .75; }
.ad-skip { position: absolute; top: 12px; right: 16px; background: none; border: 0; padding: 4px 6px; color: #f0dcb4; font-size: 13px; font-weight: 600; letter-spacing: .06em; transition: color .2s; }  /* 都听你的: readable, not dimmed (user 2026-11-25) */
.ad-skip i { font-style: normal; color: var(--tung); }
.ad-skip:hover { color: #fff; }
.ad-line { margin: 4px 0 18px; min-height: 3.4em; font-family: var(--serif-zh); font-size: 21px; line-height: 1.7; color: var(--paper); letter-spacing: .02em; }
.ad-line i { display: inline-block; width: .5em; height: 1.05em; margin-left: 3px; vertical-align: -.15em; background: var(--tung); animation: blink .8s steps(2) infinite; }
.ad-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.ad-choices[data-kind="look"] { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ad-choices[data-kind="aspect"] { display: grid; grid-template-columns: repeat(3, minmax(0, 180px)); }
.ad-opt { position: relative; text-align: left; padding: 10px 12px 11px; border-radius: 4px; background: rgba(255,232,200,.035); border: 1px solid var(--line2); color: #e2d6c4;
  transition: transform .16s ease, border-color .16s, background .16s, box-shadow .2s; animation: rise .4s cubic-bezier(.2,.8,.2,1) both; }
.ad-opt:nth-child(2) { animation-delay: .04s; } .ad-opt:nth-child(3) { animation-delay: .08s; } .ad-opt:nth-child(4) { animation-delay: .12s; }
.ad-opt:nth-child(5) { animation-delay: .16s; } .ad-opt:nth-child(6) { animation-delay: .2s; }
.ad-opt:focus { outline: none; }
.ad-opt.sel { border-color: var(--tung); background: var(--tung-soft); color: var(--paper); transform: translateY(-3px); box-shadow: 0 12px 34px rgba(255,138,43,.18); }
.ad-opt.picked { animation: ad-pick .26s ease both; }
@keyframes ad-pick { 40% { transform: translateY(-3px) scale(.96); background: rgba(255,138,43,.35); } }
.ad-opt b { display: flex; align-items: center; gap: 8px; font-family: var(--serif-zh); font-weight: 700; font-size: 15px; letter-spacing: .04em; white-space: nowrap; }
.ad-opt small { display: block; margin-top: 3px; font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-opt kbd, .ad-keys kbd { font-family: var(--mono); font-size: 10.5px; line-height: 1; padding: 2px 5px; border-radius: 2px; border: 1px solid var(--line2); color: var(--dim); }
.ad-opt.sel kbd { border-color: rgba(255,138,43,.6); color: var(--tung); }
.ad-rec { position: absolute; z-index: 2; top: -9px; right: 8px; font-family: var(--sans-zh); font-style: normal; font-size: 11px; letter-spacing: .1em; padding: 1px 7px 2px;
  background: var(--tung); color: #1a0c02; border-radius: 2px; }
.ad-thumb { position: relative; display: block; aspect-ratio: 16 / 9; margin-bottom: 9px; overflow: hidden; border-radius: 2px; background: #000; }
.ad-thumb img, .ad-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ad-thumb img { filter: saturate(.7) brightness(.8); transition: filter .2s; }
.ad-thumb video { opacity: 0; transition: opacity .25s; }
.ad-thumb kbd { position: absolute; left: 5px; top: 5px; z-index: 1; background: rgba(11,10,9,.7); }
.ad-opt.look b { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 14px; letter-spacing: 0; }
.ad-choices:empty + .ad-keys { visibility: hidden; }
.ad-opt.sel .ad-thumb img { filter: none; }
.ad-opt.sel .ad-thumb video { opacity: 1; }
.ad-opt.aspect { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 14px; }
.ad-opt.aspect b { justify-content: center; }
.ad-frame { display: block; margin: 0 0 12px; border: 2px solid currentColor; border-radius: 3px; color: var(--faint); transition: color .2s, box-shadow .2s; }
.ad-frame.f169 { width: 96px; height: 54px; margin-top: 3px; margin-bottom: 15px; } .ad-frame.f916 { width: 34px; height: 60px; } .ad-frame.f11 { width: 60px; height: 60px; }
.ad-opt.sel .ad-frame { color: var(--tung); box-shadow: 0 0 22px rgba(255,138,43,.25), inset 0 0 18px rgba(255,138,43,.12); }
.ad-opt.line { min-width: 150px; padding: 12px 18px 13px; }
.ad-keys { display: flex; gap: 18px; margin-top: 16px; font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: .06em; }
@media (hover: none) { .ad-keys { display: none; } .ad-opt kbd { display: none; } }
.ad-opt.line.primary b { color: var(--paper); }
.ad-opt.line.primary.sel { background: rgba(255,138,43,.22); }

/* ---------- casting review: the still takes centre stage above the dialog ---------- */
.ad-spot { position: absolute; z-index: 1; left: 50%; top: 3vh; bottom: calc(4vh + 250px); width: min(1120px, 94vw); transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center; pointer-events: none; }
.ad-spot > * { pointer-events: auto; }
.cs-solo { position: relative; height: 100%; width: 100%; display: flex; align-items: center; justify-content: center; gap: 22px; }
.cs-print { margin: 0; height: 100%; max-height: 640px; display: flex; flex-direction: column; padding: 12px 12px 14px; background: #efe6d6; color: #1b1612;
  border-radius: 2px; box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 2px 0 rgba(255,255,255,.4) inset; transform: rotate(-1.2deg);
  animation: cs-drop .6s cubic-bezier(.2,.9,.25,1.1) both; }
@keyframes cs-drop { from { opacity: 0; transform: translateY(-36px) rotate(-5deg) scale(.96); } }
.cs-photo { position: relative; flex: 1; min-height: 0; aspect-ratio: 3 / 4; overflow: hidden; background: #15110d; }
/* The frame takes the still's own proportions once known (inline aspect-ratio); until then, and for anything
   outside 9:16–16:9, the whole image is shown over a blurred fill of itself — never cropped. */
.cs-photo::before { content: ""; position: absolute; inset: -24px; background: var(--img, none) center / cover; filter: blur(18px) brightness(.5) saturate(.8); }
.cs-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: filter .8s ease, opacity .5s; animation: cs-develop 1.4s ease both; }
.cs-photo .cs-dev, .cs-photo .cs-mine { z-index: 1; }
@keyframes cs-develop { from { filter: brightness(1.8) saturate(0) blur(3px); opacity: .3; } }
.cs-dev { position: absolute; inset: 0; display: none; place-items: center; font-family: var(--serif-zh); font-size: 15px; letter-spacing: .3em; color: #e9dfcd;
  background: linear-gradient(110deg, transparent 30%, rgba(255,232,200,.12) 50%, transparent 70%) 0 0 / 250% 100%; animation: cs-shimmer 1.6s linear infinite; }
@keyframes cs-shimmer { to { background-position: -250% 0; } }
.developing .cs-dev { display: grid; }
.developing .cs-photo img { filter: blur(8px) brightness(.45) saturate(.5); animation: none; }
.cs-print figcaption { display: grid; gap: 3px; padding: 10px 4px 0; max-width: 36ch; }
.cs-print figcaption small { font-family: var(--display); font-weight: 800; font-size: 11px; letter-spacing: .26em; color: #b4561a; }
.cs-print figcaption b { font-family: var(--serif-zh); font-weight: 900; font-size: 24px; line-height: 1.2; }
.cs-print figcaption span { font-size: 12.5px; line-height: 1.55; color: #5b5047; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cs-takes { display: flex; flex-direction: column; gap: 8px; max-height: 100%; overflow-y: auto; padding: 4px; }
.cs-takes button { position: relative; width: 58px; aspect-ratio: 3 / 4; padding: 0; border: 2px solid transparent; border-radius: 2px; background: #111 center/cover;
  opacity: .55; transition: opacity .2s, border-color .2s, transform .2s; }
.cs-takes button:hover { opacity: .9; transform: translateX(-2px); }
.cs-takes button.on { opacity: 1; border-color: var(--tung); box-shadow: 0 0 16px rgba(255,138,43,.35); }
.cs-takes i { position: absolute; left: 3px; bottom: 2px; font: 600 10px var(--mono); font-style: normal; color: #fff; text-shadow: 0 1px 3px #000; }
.cs-roll { position: absolute; top: 0; right: 0; display: flex; gap: 6px; max-width: min(60vw, 560px); padding: 4px; overflow-x: auto; }
.cs-roll button { flex: none; width: 26px; height: 34px; padding: 0; border: 0; border-radius: 2px; background: #2a241e center/cover; opacity: .4; outline: 1px solid var(--line2); transition: opacity .2s, outline-color .2s, transform .2s; }
.cs-roll button.ok { opacity: .9; outline-color: rgba(200,232,106,.7); }
.cs-roll button:hover, .cs-roll button:focus-visible { opacity: 1; outline: 2px solid var(--paper); }
.cs-roll button.now { opacity: 1; outline: 2px solid var(--tung); transform: translateY(-3px); }
.cs-sheet { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 12px; animation: rise .5s ease both; }
.cs-sheet header { display: flex; align-items: baseline; justify-content: center; gap: 14px; }
.cs-sheet header b { font-family: var(--serif-zh); font-weight: 900; font-size: 20px; letter-spacing: .1em; }
.cs-sheet header small { font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: .06em; }
.cs-grid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 330px)); justify-content: center;
  gap: 16px; align-content: center; padding: 4px; }
.cs-tile { margin: 0; padding: 8px 8px 10px; background: #efe6d6; color: #1b1612; border-radius: 2px; box-shadow: 0 18px 40px rgba(0,0,0,.45); animation: cs-drop .5s ease both; }
.cs-tile:nth-child(2n) { transform: rotate(.6deg); } .cs-tile:nth-child(3n) { transform: rotate(-.7deg); }
.cs-tile { align-self: start; }
.cs-tile .cs-photo { flex: none; aspect-ratio: 16 / 9; max-height: 46vh; }
.cs-tile.prop .cs-photo { aspect-ratio: 1; }
/* Single actor: the photo's own proportions set the print's width; the caption wraps to that width. */
.cs-print { max-width: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; }
.cs-print .cs-photo { height: 100%; width: auto; max-width: 100%; }
.cs-print figcaption { width: 0; min-width: 100%; justify-self: stretch; }
.cs-tile figcaption { display: flex; align-items: baseline; gap: 8px; padding: 8px 2px 6px; }
.cs-tile figcaption small { font-family: var(--display); font-weight: 800; font-size: 10px; letter-spacing: .22em; color: #b4561a; }
.cs-tile figcaption b { font-family: var(--serif-zh); font-weight: 900; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-mine { position: absolute; right: 6px; top: 6px; font: normal 11px var(--sans-zh); padding: 1px 7px; background: rgba(11,10,9,.72); color: #ffd1a8; border-radius: 2px; }
.cs-acts { display: flex; gap: 6px; }
.cs-acts button { flex: 1; padding: 6px 0; font-size: 12.5px; border: 1px solid rgba(27,22,18,.25); background: transparent; color: #1b1612; border-radius: 2px; transition: .15s; }
.cs-acts button:hover:not(:disabled) { background: #1b1612; color: #efe6d6; }
.cs-acts button:disabled { opacity: .4; cursor: progress; }
.cs-tile.failed .cs-acts [data-act="reroll"]:not(:disabled),
.ad-opt.cs-retry:not(:disabled) { background: #ffd48c; color: #36200b; border-color: #a75c18; box-shadow: 0 0 0 2px #dc8c39; font-weight: 700; }
.ad-opt.cs-retry small { color: #62401e; }
.cs-actor-sheet { position: relative; }
.cs-actor-sheet header { flex-wrap: wrap; gap: 5px 14px; flex: none; padding: 0 90px 4px; }
.cs-actor-sheet header b span { font-family: var(--sans-zh); font-weight: 400; font-size: 14px; color: #cbb9a3; }
.cs-actor-sheet .cs-grid { width: 100%; max-width: calc(var(--outfit-cols) * 230px + 80px); margin: 0 auto;
  grid-template-columns: repeat(var(--outfit-cols), minmax(0, 1fr)); align-content: start; gap: 12px; padding: 8px 5px 16px; }
.cs-outfit { min-width: 0; align-self: start; }
.cs-outfit .cs-photo { aspect-ratio: 3 / 4; }
.cs-outfit figcaption { display: grid; gap: 4px; padding: 9px 2px 8px; }
.cs-outfit figcaption b { font-size: 13px; }
.cs-outfit .cs-mine { font-size: 10px; padding: 2px 6px; }
.cs-outfit .cs-acts button { min-height: 32px; font-size: 11.5px; }
.cs-outfit .cs-takes { flex-direction: row; overflow-x: auto; overflow-y: hidden; max-width: 100%; padding: 8px 1px 1px; gap: 5px; }
.cs-outfit .cs-takes button { width: 30px; flex: none; }
.cs-takes button:disabled { cursor: progress; }
.failed .cs-dev { display: grid; background: rgba(25, 15, 10, .75); font-size: 12px; letter-spacing: .08em; animation: none; }
.ad-opt.line:disabled { opacity: .55; cursor: progress; border-color: var(--line2); background: rgba(255,232,200,.035); box-shadow: none; transform: none; }
.cs-resume { position: fixed; z-index: 40; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border: 1px solid var(--tung);
  border-radius: 40px; background: rgba(20,15,10,.94); color: var(--paper); text-align: left; box-shadow: 0 16px 50px rgba(0,0,0,.5), 0 0 0 0 rgba(255,138,43,.5);
  animation: cs-pulse 2.2s ease-out infinite; }
@keyframes cs-pulse { 70% { box-shadow: 0 16px 50px rgba(0,0,0,.5), 0 0 0 14px rgba(255,138,43,0); } }
.cs-resume i { width: 46px; height: 46px; border-radius: 50%; background: #2a241e center 22% / 150% no-repeat; }
.cs-resume b { display: block; font-family: var(--serif-zh); font-weight: 900; font-size: 15px; letter-spacing: .06em; }
.cs-resume small { font-size: 11.5px; color: var(--dim); }
.cs-resume em { font-style: normal; color: var(--tung); font-size: 22px; margin-left: 4px; }
/* ---------- casting room: full screen for the stills, the assistant director becomes a slim talkback bar ---------- */
.ad.with-spot .ad-scrim { background: radial-gradient(ellipse 75% 65% at 50% 42%, rgba(38,30,23,.93), rgba(9,8,7,.985) 78%); backdrop-filter: blur(12px) saturate(.7); }
.ad.with-spot .ad-spot { left: 0; right: 0; top: 0; bottom: 92px; width: auto; transform: none; padding: 64px 48px 22px; }
.ad.with-spot .ad-spot::before { content: "选角定妆 · CASTING ROOM"; position: absolute; left: 48px; top: 24px; font-family: var(--display); font-weight: 800;
  font-size: 12px; letter-spacing: .32em; color: var(--tung); pointer-events: none; }
.ad.with-spot .cs-roll { top: -46px; }
.ad.with-spot .cs-print { max-height: none; }
.ad.with-spot .cs-actor-sheet .cs-grid { max-width: calc(var(--outfit-cols) * 320px + 80px); gap: 20px; align-content: center; }
.ad.with-spot .cs-tile .cs-photo { max-height: calc(100vh - 360px); }
.ad.with-spot .cs-sheet:not(.cs-actor-sheet) .cs-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 380px)); gap: 22px; }
.ad.with-spot .ad-stage { left: 0; right: 0; bottom: 0; width: auto; height: 92px; transform: none; flex-direction: row; align-items: center; padding: 0 28px 0 22px;
  background: linear-gradient(180deg, rgba(16,13,11,.82), rgba(11,10,9,.97)); border-top: 1px solid var(--line2); animation: rise .5s ease both; }
.ad.with-spot .ad-actor { width: 64px; height: 64px; margin: 0 16px 0 0; border-radius: 50%; overflow: hidden; background-size: 170%; background-position: 50% 16%;
  -webkit-mask-image: none; mask-image: none; box-shadow: 0 0 0 2px var(--tung), 0 0 22px rgba(255,138,43,.25); animation: none; }
.ad.with-spot .ad-actor video { transform: scale(1.7); transform-origin: 50% 16%; }
.ad.with-spot .ad-box { display: flex; align-items: center; gap: 18px; height: 100%; min-height: 0; padding: 0; background: none; border: 0; box-shadow: none; animation: none; }
.ad.with-spot .ad-box::before, .ad.with-spot .ad-box::after { display: none; }
.ad.with-spot .ad-name { position: static; order: 0; flex: none; padding: 0; background: none; box-shadow: none; color: var(--tung); }
.ad.with-spot .ad-name b { font-size: 15px; } .ad.with-spot .ad-name span { display: none; }
.ad.with-spot .ad-line { order: 1; flex: 1; min-width: 0; min-height: 0; max-height: 3em; overflow: hidden; margin: 0; font-size: 17px; line-height: 1.5; }
.ad.with-spot .ad-choices { order: 2; flex: none; flex-wrap: nowrap; gap: 10px; }
.ad.with-spot .ad-opt.line { min-width: 0; padding: 9px 16px 10px; }
.ad.with-spot .ad-opt.line.sel { transform: none; }
.ad.with-spot .ad-opt.line.primary { background: var(--tung); border-color: var(--tung); color: #1a0c02; }
.ad.with-spot .ad-opt.line.primary b { color: #1a0c02; } .ad.with-spot .ad-opt.line.primary small { color: rgba(26,12,2,.7); }
.ad.with-spot .ad-opt.line.primary kbd { color: #1a0c02; border-color: rgba(26,12,2,.35); }
.ad.with-spot .ad-opt.line.primary:disabled { background: rgba(255,138,43,.25); color: var(--paper); }
.ad.with-spot .ad-skip { position: static; order: 3; flex: none; padding: 8px 14px; border: 1px solid rgba(233,201,138,.55); border-radius: 30px; }
.ad.with-spot .ad-keys { display: none; }
/* locations / props as gear-slot tabs */
.cs-tabs { display: inline-flex; gap: 6px; padding: 4px; border: 1px solid var(--line2); border-radius: 6px; background: rgba(255,232,200,.03); }
.cs-tab { position: relative; display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 0 8px; min-width: 130px; padding: 8px 16px 9px;
  border: 1px solid transparent; border-radius: 4px; background: none; color: var(--dim); text-align: left; cursor: pointer; transition: .18s; }
.cs-tab b { font-family: var(--serif-zh); font-weight: 900; font-size: 18px; letter-spacing: .12em; }
.cs-tab small { grid-column: 1; font-family: var(--display); font-weight: 800; font-size: 9.5px; letter-spacing: .26em; }
.cs-tab em { grid-row: 1 / 3; grid-column: 2; align-self: center; justify-self: end; font: normal 700 13px var(--mono); padding: 2px 8px; border-radius: 20px;
  border: 1px solid var(--line2); }
.cs-tab i { position: absolute; top: -9px; right: -8px; padding: 1px 7px 2px; border-radius: 10px; font: normal 600 10px var(--sans-zh); white-space: nowrap;
  color: #2a1a02; background: #e8c36a; box-shadow: 0 0 12px rgba(232,195,106,.5); }
.cs-tab:hover { color: var(--paper); }
.cs-tab.on { color: var(--paper); border-color: var(--tung); background: linear-gradient(180deg, rgba(255,138,43,.22), rgba(255,138,43,.08));
  box-shadow: inset 0 -2px 0 var(--tung), 0 0 24px rgba(255,138,43,.15); }
.cs-tab.on em { border-color: var(--tung); color: var(--tung); }
.cs-sheet header { flex-direction: column; align-items: center; gap: 10px; }
.cs-lens-hint svg { width: 13px; height: 13px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 2; }
/* magnifier on every still, and the zoom view */
.cs-lens { position: absolute; z-index: 2; left: 8px; bottom: 8px; width: 34px; height: 34px; display: grid; place-items: center; padding: 0;
  border: 1px solid rgba(255,232,200,.35); border-radius: 50%; background: rgba(11,10,9,.62); color: #f1e7d6; cursor: zoom-in;
  opacity: .8; transition: opacity .2s, transform .2s, background .2s; backdrop-filter: blur(4px); }
.cs-lens svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cs-photo:hover .cs-lens, .cs-lens:focus-visible { opacity: 1; }
.cs-lens:hover { transform: scale(1.08); background: var(--tung); color: #1a0c02; border-color: var(--tung); }
.developing .cs-lens { display: none; }
.cs-photo img { cursor: default; }
.cs-zoom { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 4vh 4vw; background: rgba(6,5,4,.94);
  backdrop-filter: blur(8px); cursor: zoom-out; animation: ad-fade .25s ease both; }
.cs-zoom figure { margin: 0; display: grid; gap: 12px; justify-items: center; max-height: 100%; }
.cs-zoom img { max-width: 92vw; max-height: 84vh; object-fit: contain; box-shadow: 0 30px 90px rgba(0,0,0,.7); animation: cs-drop .35s ease both; }
.cs-zoom figcaption { font-family: var(--serif-zh); font-weight: 900; font-size: 18px; letter-spacing: .1em; color: var(--paper); }
.cs-zoom-x { position: absolute; top: 18px; right: 24px; width: 40px; height: 40px; border: 1px solid var(--line2); border-radius: 50%; background: none;
  color: var(--paper); font-size: 22px; cursor: pointer; }
@media (max-width: 980px) {
  .ad-choices[data-kind="look"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ad.with-spot .ad-spot { bottom: 178px; padding: 46px 12px 10px; }
  .ad.with-spot .ad-spot::before { left: 14px; top: 16px; font-size: 10.5px; }
  .ad.with-spot .cs-roll { display: none; }
  .ad.with-spot .ad-stage { height: auto; align-items: flex-start; padding: 12px 12px 14px; }
  .ad.with-spot .ad-actor { width: 46px; height: 46px; margin-right: 10px; }
  .ad.with-spot .ad-box { flex-wrap: wrap; gap: 8px 10px; max-height: none; overflow: visible; border-radius: 0; }
  .ad.with-spot .ad-line { flex: 1 1 calc(100% - 120px); font-size: 14.5px; max-height: 4.5em; }
  .ad.with-spot .ad-skip { padding: 5px 10px; font-size: 12px; }
  .ad.with-spot .ad-choices { flex: 1 1 100%; flex-wrap: wrap; }
  .ad.with-spot .ad-opt.line { flex: 1 1 30%; padding: 8px 10px; }
  .ad.with-spot .ad-opt.line b { white-space: normal; font-size: 14px; } .ad.with-spot .ad-opt.line small { display: none; }
  .ad.with-spot .cs-tile .cs-photo { max-height: 34vh; }
  /* narrow screens: width drives the photo, height is capped (a tall still gets soft side fill instead) */
  .ad.with-spot .cs-print { height: auto; max-height: calc(100% - 62px); width: 100%; }
  .ad.with-spot .cs-print .cs-photo { height: auto; width: 100%; max-height: calc(100vh - 360px); }
}
/* overflowing grids scroll from the top instead of clipping it */
.ad.with-spot .cs-grid, .ad.with-spot .cs-actor-sheet .cs-grid { align-content: safe center; }
@media (max-width: 760px) {
  .ad-stage { left: 0; bottom: 0; width: 100%; transform: none; flex-direction: column; align-items: stretch; }
  .ad-actor { width: 170px; margin: 0 0 -46px 4px; }
  .ad-box { min-height: 0; max-height: 72vh; overflow-y: auto; padding: 30px 16px 18px; border-radius: 14px 14px 0 0; border-bottom: 0; }
  .ad-name { left: 150px; top: -15px; padding: 4px 12px 5px; } .ad-name span { display: none; }
  .ad-skip { top: 10px; right: 10px; }
  .ad-line { font-size: 17px; min-height: 0; margin-top: 8px; }
  .ad-choices[data-kind="aspect"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ad-opt.line { min-width: 0; flex: 1 1 40%; }
  .ad-opt small { white-space: normal; }
  .ad-spot { top: 1.5vh; bottom: 47vh; width: 94vw; }
  .cs-solo { flex-direction: column; gap: 10px; }
  .cs-print { height: calc(100% - 62px); flex: none; padding: 8px 8px 10px; }
  .cs-sheet header small { display: none; }
  .cs-print figcaption b { font-size: 18px; } .cs-print figcaption span { display: none; }
  .cs-takes { flex-direction: row; max-width: 100%; overflow-x: auto; }
  .cs-takes button { width: 40px; }
  .cs-roll { display: none; }
  .cs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cs-actor-sheet header { padding: 0 0 2px; }
  .cs-actor-sheet header b { font-size: 18px; }
  .cs-actor-sheet .cs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px 3px 12px; gap: 10px; }
  .cs-actor-sheet .cs-takes button { width: 28px; }
  .cs-resume { left: 12px; right: 12px; bottom: 12px; }
}

@media (max-width: 1100px) {
  .floor { grid-template-columns: minmax(0, 1fr); overflow-y: auto; }
  .col-script { display: none; }
  .col-log { border-left: 0; border-top: 1px solid var(--line); max-height: 40vh; }
  #studio { height: auto; min-height: 100vh; }
  .monitor-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .script-foot { flex-wrap: wrap; } .import small { display: none; }
  .script-foot .action { margin-left: auto; }
}
@media (max-width: 640px) {
  #landing { padding: 18px 16px 30px; } .hero { padding: 28px 18px; } .hud-right .engine, .hud-right .rec { display: none; }
  .hud-right { gap: 12px; } .mark, .vault-link { white-space: nowrap; }
  .slate { flex-direction: column; align-items: flex-start; gap: 8px; } .slate h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- edit room (?edit=<pid>) ---------- */
#editroom { min-height: 100vh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 16px; padding: 18px 28px 22px; }
.er-top { display: flex; align-items: center; gap: 20px; }
.er-back { color: var(--dim); text-decoration: none; font-size: 13px; } .er-back:hover { color: var(--tung); }
.er-title { flex: 1; display: grid; gap: 2px; }
.er-title small { font-family: var(--display); font-weight: 800; font-size: 11px; letter-spacing: .3em; color: var(--tung); }
.er-title b { font-family: var(--serif-zh); font-weight: 900; font-size: 22px; }
.er-right { display: flex; align-items: center; gap: 12px; }
.er-budget { font-family: var(--mono); font-size: 12px; color: #e8c36a; }
.er-help { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line2); background: none; color: var(--dim); font-weight: 700; }
.er-help:hover { color: var(--tung); border-color: var(--tung); }
.er-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; min-height: 0; }
.er-monitor { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.er-screen { position: relative; flex: 1; min-height: 260px; max-height: 56vh; background: #000; box-shadow: 0 0 0 1px var(--line2), 0 0 80px rgba(255,200,140,.08); }
.er-screen video { width: 100%; height: 100%; object-fit: contain; display: block; }
.er-tc { position: absolute; left: 10px; top: 8px; font: 12px var(--mono); color: var(--paper); text-shadow: 0 1px 4px #000; }
.er-transport { display: flex; gap: 8px; }
.er-transport button, .er-moves button, .er-bin button { padding: 7px 14px; border: 1px solid var(--line2); border-radius: 3px; background: var(--char); color: var(--paper); font-size: 13px; }
.er-transport button:hover, .er-moves button:hover:not(:disabled), .er-bin button:hover { border-color: var(--tung); color: var(--tung); }
.er-inspector { display: flex; flex-direction: column; gap: 14px; padding: 16px; border: 1px solid var(--line2); border-radius: 4px; background: linear-gradient(180deg, var(--char2), var(--char)); overflow-y: auto; }
.er-insp-head { display: grid; gap: 2px; }
.er-insp-head small { font-family: var(--display); font-weight: 800; font-size: 11px; letter-spacing: .26em; color: var(--tung); }
.er-insp-head b { font-family: var(--serif-zh); font-weight: 900; font-size: 22px; }
.er-insp-head span { font-size: 12px; color: var(--dim); }
.er-block { display: grid; gap: 8px; padding: 8px; margin: 0 -8px; border-radius: 4px; }
.er-block label { font-size: 13px; color: var(--paper); } .er-block label small { color: var(--dim); margin-left: 6px; }
.er-range { position: relative; height: 26px; }
.er-range input { position: absolute; inset: 0; width: 100%; margin: 0; pointer-events: none; appearance: none; background: none; }
.er-range input::-webkit-slider-runnable-track { height: 4px; background: rgba(255,232,200,.14); border-radius: 2px; }
.er-range input::-webkit-slider-thumb { appearance: none; pointer-events: auto; width: 14px; height: 22px; margin-top: -9px; border-radius: 2px; background: var(--tung); cursor: ew-resize; box-shadow: 0 0 8px rgba(255,138,43,.5); }
.er-range input::-moz-range-thumb { pointer-events: auto; width: 14px; height: 22px; border: 0; border-radius: 2px; background: var(--tung); cursor: ew-resize; }
.er-trim-vals { display: flex; justify-content: space-between; font: 11.5px var(--mono); color: var(--dim); }
.er-len { color: var(--tung); }
.er-take-row { display: flex; gap: 8px; flex-wrap: wrap; }
.er-take-row button { position: relative; width: 72px; aspect-ratio: 16 / 9; padding: 0; border: 2px solid transparent; border-radius: 3px; background: #111 center/cover; opacity: .6; }
.er-take-row button.on { opacity: 1; border-color: var(--tung); box-shadow: 0 0 14px rgba(255,138,43,.35); }
.er-take-row i { position: absolute; left: 4px; top: 2px; font: normal 600 11px var(--mono); color: #fff; text-shadow: 0 1px 3px #000; }
.er-take-row small { position: absolute; right: 4px; bottom: 2px; font-size: 10px; color: #fff; text-shadow: 0 1px 3px #000; }
.er-reshoot { padding: 9px 12px; border: 1px solid rgba(232,195,106,.55); border-radius: 3px; background: rgba(232,195,106,.07); color: #e8c36a; font-size: 13px; }
.er-reshoot:hover:not(:disabled) { background: linear-gradient(135deg, #f6d77e, #c8902c); color: #2a1a02; }
.er-reshoot:disabled { opacity: .6; cursor: progress; }
.er-err { color: #ff8a80; font-size: 12px; }
.er-moves { display: flex; gap: 8px; flex-wrap: wrap; } .er-moves button:disabled { opacity: .35; }
.er-del { margin-left: auto; color: #ff8a80 !important; }
.er-timeline { display: grid; gap: 8px; padding: 12px 14px 14px; border: 1px solid var(--line2); border-radius: 4px; background: rgba(255,232,200,.02); }
.er-tl-head { display: flex; justify-content: space-between; align-items: center; font: 11px var(--mono); letter-spacing: .14em; color: var(--dim); }
.er-tl-actions { display: flex; align-items: center; gap: 14px; }
.er-state { font-family: var(--sans-zh); letter-spacing: .04em; font-size: 12px; color: #e8c36a; }
.er-compose { padding: 9px 18px; border: 0; border-radius: 3px; background: var(--tung); color: #1a0c02; font-weight: 700; font-size: 14px; letter-spacing: .06em; }
.er-compose:disabled { background: #3a3129; color: #7d7064; cursor: default; }
.er-track { display: flex; gap: 4px; height: 96px; }
.er-clip { position: relative; min-width: 70px; border-radius: 3px; overflow: hidden; background: #1a1612; cursor: grab; outline: 1px solid var(--line2); transition: outline-color .15s, transform .15s; }
.er-clip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.7); }
.er-clip b, .er-clip small { position: absolute; left: 7px; color: #fff; text-shadow: 0 1px 3px #000; }
.er-clip b { top: 5px; font: 800 15px var(--display); letter-spacing: .1em; } .er-clip small { bottom: 5px; font: 11px var(--mono); }
.er-clip.sel { outline: 2px solid var(--tung); box-shadow: 0 0 22px rgba(255,138,43,.3); } .er-clip.sel img { filter: none; }
.er-clip.dragging { opacity: .35; }
.er-clip.drop-before { box-shadow: inset 4px 0 0 #e8c36a; } .er-clip.drop-after { box-shadow: inset -4px 0 0 #e8c36a; }
.er-x { position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(11,10,9,.7); color: #fff; font-size: 14px; opacity: 0; }
.er-clip:hover .er-x, .er-clip.sel .er-x { opacity: 1; } .er-x:hover { background: #c0392b; }
.er-busy { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 12px; color: #e8c36a; background: rgba(11,10,9,.55); animation: blink 1.4s steps(2) infinite; }
.er-bin { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--dim); } .er-bin:empty { display: none; }
.er-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 55; padding: 10px 18px; border: 1px solid var(--tung); border-radius: 30px; background: rgba(20,15,10,.95); font-size: 13px; animation: rise .3s ease both; }
.er-empty { display: grid; place-items: center; gap: 12px; padding: 20vh 0; color: var(--dim); } .er-empty a { color: var(--tung); }
.er-focus { position: relative; z-index: 49; outline: 2px solid var(--tung); outline-offset: 4px; box-shadow: 0 0 0 9999px rgba(8,7,6,.0), 0 0 40px rgba(255,138,43,.35); border-radius: 4px; }
/* tour / confirmation dialog on top of a working page: bar at the top, light scrim */
.ad.tour .ad-scrim { background: rgba(8,7,6,.62); backdrop-filter: none; }
.ad.tour .ad-stage { top: 0; bottom: auto; border-top: 0; border-bottom: 1px solid var(--line2); }
.ad.tour .ad-spot { display: none; }
@media (max-width: 900px) {
  #editroom { padding: 14px 12px; } .er-main { grid-template-columns: 1fr; } .er-screen { max-height: 40vh; }
  .er-track { overflow-x: auto; } .er-clip { min-width: 90px; }
}

/* ---------- 我的制片厂 (?hub) ---------- */
#hub { min-height: 100vh; padding: 20px 28px 40px; }
.hb-top { display: flex; align-items: center; gap: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.hb-top .mark { text-decoration: none; color: var(--paper); }
.hb-id { flex: 1; display: grid; gap: 2px; }
.hb-id small, .hb-fund small { font-family: var(--display); font-weight: 800; font-size: 11px; letter-spacing: .28em; color: var(--tung); }
.hb-id b { font-family: var(--serif-zh); font-weight: 900; font-size: 24px; }
.hb-id em { font-style: normal; justify-self: start; padding: 1px 9px; border: 1px solid rgba(232,195,106,.5); border-radius: 20px; font-size: 12px; color: #e8c36a; }
.hb-fund { display: grid; justify-items: end; gap: 2px; }
.hb-fund b { font: 700 28px var(--mono); color: #e8c36a; } .hb-fund i { font-style: normal; font-size: 18px; margin-right: 2px; }
.hb-body { display: grid; grid-template-columns: 200px minmax(0, 1fr) 260px; gap: 26px; margin-top: 22px; align-items: start; }
.hb-nav { position: sticky; top: 20px; display: grid; gap: 4px; }
.hb-nav a, .hb-nav .soon { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 4px; color: var(--paper); text-decoration: none; font-size: 14px; }
.hb-nav a:hover { background: var(--tung-soft); }
.hb-nav em { font-style: normal; font: 12px var(--mono); color: var(--dim); }
.hb-nav .soon { color: var(--faint); cursor: default; } .hb-nav .soon small { font-size: 11px; }
.hb-camera { width: 100%; margin: 0 0 12px; padding: 2px 0 12px; border-bottom: 1px solid var(--line); }
.hb-camera-label { display: block; margin: 0 0 8px 12px; font: 10px var(--mono); letter-spacing: .08em; color: var(--dim); }
.hb-model { display: grid; gap: 5px; width: 100%; padding: 12px; text-align: left; border: 1px solid var(--line2); border-radius: 4px;
  background: rgba(255,232,200,.025); color: var(--paper); cursor: pointer; transition: border-color .2s, background .2s; }
.hb-model > span { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hb-model b { font: 700 13px var(--mono); } .hb-model small { color: var(--dim); font-size: 11px; }
.hb-model-switch { position: relative; width: 28px; height: 16px; flex: none; border: 1px solid var(--line2); border-radius: 12px; background: var(--char); transition: background .2s; }
.hb-model-switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--dim); transition: transform .2s, background .2s; }
.hb-model:hover, .hb-model:focus-visible { border-color: var(--tung); outline: none; }
.hb-model.on { border-color: rgba(255,138,43,.65); background: var(--tung-soft); } .hb-model.on small { color: var(--tung); }
.hb-model.on .hb-model-switch { border-color: var(--tung); background: var(--tung); } .hb-model.on .hb-model-switch::after { transform: translateX(12px); background: var(--ink); }
.hb-model:disabled { opacity: .65; cursor: wait; }
#hb-model-note { margin: 7px 12px 0; font-size: 11px; line-height: 1.6; color: var(--dim); } #hb-model-note.error { color: #ff8a80; }
.hb-new { display: grid !important; gap: 2px; margin-bottom: 10px; padding: 16px !important; background: var(--tung) !important; color: #1a0c02 !important; border-radius: 4px; }
.hb-new b { font-family: var(--serif-zh); font-weight: 900; font-size: 22px; letter-spacing: .1em; } .hb-new small { font: 800 10px var(--display); letter-spacing: .3em; }
.hb-main { display: grid; gap: 26px; min-width: 0; }
.hb-main h2 { margin: 0 0 12px; font-family: var(--serif-zh); font-weight: 900; font-size: 20px; } .hb-main h2 small, .hb-chart h3 small { margin-left: 8px; font: 800 10px var(--display); letter-spacing: .26em; color: var(--dim); }
.hb-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.7fr); gap: 12px; }
.hb-kpis > div { padding: 14px 16px; border: 1px solid var(--line2); border-radius: 4px; background: linear-gradient(180deg, var(--char2), var(--char)); display: grid; gap: 2px; }
.hb-kpis small { font-size: 12px; color: var(--dim); } .hb-kpis b { font: 700 28px var(--mono); color: var(--paper); } .hb-kpis span { font-size: 11px; color: var(--faint); }
/* grid items default to min-width:auto, so the chart's intrinsic 280px could push past its card */
.hb-kpis > div { min-width: 0; overflow: hidden; grid-template-columns: minmax(0, 1fr); }
.hb-spark { display: block; width: 100%; height: 64px; overflow: visible; }
.hb-days { gap: 2px; } .hb-days span { min-width: 0; overflow: hidden; } .hb-spark .line { fill: none; stroke: var(--tung); stroke-width: 2; vector-effect: non-scaling-stroke; }
.hb-spark .area { fill: rgba(255,138,43,.12); } .hb-spark circle { fill: var(--tung); }
.hb-days { display: flex; justify-content: space-between; font: 10px var(--mono); color: var(--faint); }
.hb-best { display: flex; gap: 18px; align-items: center; padding: 14px; border: 1px solid rgba(232,195,106,.45); border-radius: 4px; background: rgba(232,195,106,.05); }
.hb-best a { width: 180px; aspect-ratio: 16 / 9; flex: none; border-radius: 3px; background: #1a1612 center/cover; }
.hb-best small { font: 800 11px var(--display); letter-spacing: .26em; color: #e8c36a; } .hb-best b { display: block; margin: 4px 0; font-family: var(--serif-zh); font-weight: 900; font-size: 22px; }
.hb-best span { font-size: 13px; color: var(--dim); }
.hb-film { display: grid; grid-template-columns: 120px minmax(0, 1fr) 52px 64px 92px 104px; gap: 14px; align-items: center; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.hb-film.best { background: rgba(232,195,106,.04); }
.hb-thumb { aspect-ratio: 16 / 9; border-radius: 3px; background: #1a1612 center/cover; display: grid; place-items: center; text-decoration: none; }
.hb-thumb i { font-style: normal; font-size: 12px; color: #e8c36a; }
.hb-film-main b { display: block; font-family: var(--serif-zh); font-weight: 900; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-film-main small { font-size: 12px; color: var(--dim); } .hb-film-main em { font-style: normal; margin-left: 6px; padding: 0 6px; border: 1px solid var(--line2); border-radius: 2px; font-size: 11px; }
.hb-film-main .tag-pub { border-color: rgba(255,138,43,.5); color: var(--tung); }
.hb-film-main .tag-model { color: var(--tung); }
.hb-film-num { display: grid; } .hb-film-num b { font: 700 18px var(--mono); } .hb-film-num small { font-size: 11px; color: var(--dim); }
.hb-film-bar { display: grid; gap: 4px; } .hb-film-bar::before { content: ""; } .hb-film-bar i { display: block; height: 4px; border-radius: 2px; background: var(--tung); max-width: 100%; }
.hb-film-bar { background: none; } .hb-film-bar small { font-size: 11px; color: var(--dim); }
.hb-film-go { display: flex; gap: 6px; } .hb-film-go a { padding: 6px 12px; border: 1px solid var(--line2); border-radius: 3px; color: var(--paper); text-decoration: none; font-size: 13px; white-space: nowrap; }
.hb-film-go a:hover { border-color: var(--tung); color: var(--tung); }
.hb-empty { display: grid; justify-items: start; gap: 12px; padding: 30px; border: 1px dashed var(--line2); border-radius: 4px; color: var(--dim); }
.hb-chart-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hb-chart { padding: 14px; border: 1px solid var(--line2); border-radius: 4px; background: rgba(255,232,200,.02); }
.hb-chart h3 { margin: 0 0 10px; font-family: var(--serif-zh); font-weight: 900; font-size: 16px; }
.hb-chart ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.hb-chart li { display: grid; grid-template-columns: 20px 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.hb-chart li.mine { outline: 1px solid rgba(232,195,106,.5); border-radius: 3px; background: rgba(232,195,106,.06); }
.hb-chart .rk { font: 800 16px var(--display); color: var(--tung); text-align: center; }
.hb-chart .th { aspect-ratio: 16 / 9; border-radius: 2px; background: #1a1612 center/cover; }
.hb-chart .nm { min-width: 0; text-decoration: none; color: var(--paper); } .hb-chart .nm b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-chart .nm small, .hb-chart .vl small { font-size: 11px; color: var(--dim); } .hb-chart .vl { font: 700 14px var(--mono); text-align: right; } .hb-chart .vl small { display: block; }
.hb-none { color: var(--faint); font-size: 13px; }
.hb-crew { position: sticky; top: 20px; display: grid; gap: 0; border: 1px solid var(--line2); border-radius: 6px; overflow: hidden; background: var(--char); }
.hb-ad { aspect-ratio: 1; background: center/cover; }
.hb-say { padding: 14px 16px 16px; } .hb-say b { font-family: var(--serif-zh); font-weight: 900; color: var(--tung); } .hb-say small { margin-left: 6px; font-size: 11px; color: var(--dim); }
.hb-say p { margin: 8px 0 0; font-family: var(--serif-zh); font-size: 15px; line-height: 1.7; }
@media (max-width: 1100px) {
  .hb-body { grid-template-columns: 1fr; } .hb-nav, .hb-crew { position: static; } .hb-nav { display: flex; flex-wrap: wrap; }
  .hb-crew { grid-template-columns: 100px 1fr; } .hb-kpis { grid-template-columns: repeat(2, 1fr); } .hb-trend { grid-column: 1 / -1; }
  .hb-chart-grid { grid-template-columns: 1fr; } .hb-film { grid-template-columns: 100px 1fr; } .hb-film-num, .hb-film-bar { display: none; }
}
@media (max-width: 640px) {
  .hb-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 12px; }
  .hb-id { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
  .hb-name { flex-wrap: wrap; }
}

/* back to the director's desk (hub) from anywhere in the studio */
.desk-link { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 10px; border: 1px solid var(--tung); border-radius: 30px;
  color: var(--paper); text-decoration: none; background: rgba(255,138,43,.08); transition: background .2s, color .2s; }
.desk-link[hidden] { display: none; }
.desk-link svg { width: 18px; height: 18px; fill: none; stroke: var(--tung); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.desk-link span { display: grid; line-height: 1.1; } .desk-link b { font-family: var(--serif-zh); font-weight: 900; font-size: 14px; letter-spacing: .1em; }
.desk-link small { font: 800 8.5px var(--display); letter-spacing: .22em; color: var(--dim); }
.desk-link:hover { background: var(--tung); color: #1a0c02; } .desk-link:hover svg { stroke: #1a0c02; } .desk-link:hover small { color: rgba(26,12,2,.7); }
.cta .desk-cta { border-color: var(--tung); color: var(--tung); } .cta .desk-cta[hidden] { display: none; }
.cta .desk-cta:hover { background: var(--tung); color: #1a0c02; }
@media (max-width: 640px) { .desk-link small { display: none; } .desk-link { padding: 4px 10px 4px 8px; } }
.hb-xp { width: 260px; height: 5px; margin-top: 6px; border-radius: 3px; background: rgba(255,232,200,.12); overflow: hidden; }
.hb-xp i { display: block; height: 100%; background: linear-gradient(90deg, #c8902c, #f6d77e); }
.hb-xp-note { font-family: var(--sans-zh) !important; font-weight: 400 !important; letter-spacing: .02em !important; color: var(--dim) !important; }
.hb-today { font: 12px var(--mono); color: #c8e86a; }

/* ---------- event box: promotion ceremony, level up, achievement ---------- */
.cel { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(5,4,3,.92); animation: ad-fade .35s ease both; }
.cel.out { opacity: 0; transition: opacity .4s ease; }
.cel-reel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; opacity: 0; transition: opacity .8s ease, filter 1s ease; }
.cel-promo.open .cel-reel { opacity: 1; }
.cel-promo.finale .cel-reel { filter: brightness(.35) blur(2px) saturate(.8); }
.cel-curtain { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2;
  background: linear-gradient(90deg, #4a0d0d 0 49.8%, #2a0606 50%, #4a0d0d 50.2%);
  background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.28) 0 3%, rgba(255,255,255,.05) 3% 6%), linear-gradient(90deg, #5a1010, #3a0808 50%, #5a1010);
  transition: clip-path 1.1s cubic-bezier(.7,0,.2,1), opacity .4s ease 1s; clip-path: inset(0 0 0 0); }
.cel-promo.open .cel-curtain { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%, 100% 100%, 100% 100%, 100% 0, 100% 0); opacity: 0; pointer-events: none; }
.cel-notice { display: grid; justify-items: center; gap: 10px; padding: 34px 44px; border: 1px solid rgba(246,215,126,.6); border-radius: 6px;
  background: rgba(20,8,4,.72); box-shadow: 0 30px 90px rgba(0,0,0,.6), inset 0 0 0 4px rgba(246,215,126,.12); text-align: center; animation: rise .6s ease both; }
.cel-notice small, .cel-card small, .cel-panel small { font: 800 11px var(--display); letter-spacing: .32em; color: #f6d77e; }
.cel-notice b { font-family: var(--serif-zh); font-weight: 900; font-size: 28px; color: #fff3d6; }
.cel-notice span { font: 15px var(--mono); color: #e8c36a; }
.cel-open, .cel-ok { margin-top: 8px; padding: 12px 28px; border: 0; border-radius: 40px; font-family: var(--serif-zh); font-weight: 900; font-size: 17px;
  letter-spacing: .12em; color: #2a1a02; background: linear-gradient(135deg, #fbe7a1, #e2b24c 50%, #c8902c); box-shadow: 0 10px 34px rgba(232,180,70,.45); cursor: pointer; }
.cel-open:hover, .cel-ok:hover { transform: translateY(-1px); }
.cel-skip { position: absolute; z-index: 3; right: 24px; top: 20px; padding: 6px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 30px;
  background: rgba(0,0,0,.4); color: #f1e7d6; font-size: 13px; cursor: pointer; }
.cel-card { position: relative; z-index: 3; display: grid; justify-items: center; gap: 8px; padding: 40px 56px 34px; text-align: center; animation: cel-pop .8s cubic-bezier(.2,1.3,.3,1) both; }
@keyframes cel-pop { from { opacity: 0; transform: scale(.7); } }
.cel-rays { position: absolute; z-index: -1; left: 50%; top: 45%; width: 900px; height: 900px; margin: -450px 0 0 -450px; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(246,215,126,.16) 0 6deg, transparent 6deg 18deg);
  -webkit-mask-image: radial-gradient(circle, #000 10%, transparent 62%); mask-image: radial-gradient(circle, #000 10%, transparent 62%); animation: cel-spin 24s linear infinite; }
@keyframes cel-spin { to { transform: rotate(360deg); } }
.cel-lv { font: 700 22px var(--mono); color: #e8c36a; } .cel-lv b { font-size: 64px; color: #fff3d6; text-shadow: 0 0 30px rgba(246,215,126,.6); }
.cel-card h2 { margin: 0; font-family: var(--serif-zh); font-weight: 900; font-size: 56px; letter-spacing: .16em;
  background: linear-gradient(180deg, #fff3d6, #f6d77e 55%, #c8902c); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 20px rgba(232,180,70,.35)); }
.cel-card p, .cel-panel p { margin: 0; font-size: 14px; color: #d8cdbd; }
.cel-bar { width: 320px; max-width: 70vw; height: 6px; border-radius: 3px; background: rgba(255,232,200,.14); overflow: hidden; }
.cel-bar i { display: block; height: 100%; width: var(--p); background: linear-gradient(90deg, #c8902c, #f6d77e); animation: cel-fill 1.4s cubic-bezier(.2,.8,.2,1) .3s both; }
@keyframes cel-fill { from { width: 0; } }
.cel-acts { display: flex; gap: 14px; align-items: center; margin-top: 10px; } .cel-acts a { color: #e8c36a; font-size: 14px; }
.cel-confetti { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.cel-confetti i { position: absolute; top: -20px; width: 8px; height: 14px; border-radius: 2px; background: var(--c); animation: cel-fall linear both; }
@keyframes cel-fall { to { transform: translateY(110vh) rotate(var(--r)); } }
.cel-panel { position: relative; z-index: 3; display: grid; justify-items: center; gap: 12px; width: min(420px, 90vw); padding: 30px 30px 26px; border: 1px solid rgba(246,215,126,.45);
  border-radius: 8px; background: linear-gradient(180deg, #221a12, #120e0a); box-shadow: 0 30px 90px rgba(0,0,0,.6); text-align: center; animation: cel-pop .6s cubic-bezier(.2,1.3,.3,1) both; }
.cel-panel .cel-lv { display: flex; align-items: baseline; gap: 6px; } .cel-panel .old { font-size: 16px; color: var(--dim); } .cel-panel .arrow { color: var(--dim); margin-right: 6px; }
.cel-panel .cel-lv b { font-size: 52px; }
.cel-xp { font: 12px var(--mono) !important; color: var(--dim) !important; }
.cel-say { display: flex; gap: 12px; align-items: center; text-align: left; } .cel-say i { width: 54px; height: 54px; flex: none; border-radius: 50%; background: center 18% / 160%; box-shadow: 0 0 0 2px var(--tung); }
.cel-say b { margin-right: 6px; color: var(--tung); font-family: var(--serif-zh); }
.cel-medal { width: 110px; height: 110px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3d6, #e2b24c 45%, #8a5a14);
  box-shadow: 0 0 0 6px rgba(246,215,126,.25), 0 12px 40px rgba(232,180,70,.45); animation: cel-flip 1.2s cubic-bezier(.2,.9,.3,1) both; }
@keyframes cel-flip { from { transform: rotateY(540deg) scale(.6); } }
.cel-medal svg { width: 54px; height: 54px; fill: #fff7e0; stroke: #8a5a14; stroke-width: .8; }
.cel-panel h2 { margin: 0; font-family: var(--serif-zh); font-weight: 900; font-size: 28px; color: #fff3d6; }
.cel-reward { display: flex; gap: 8px; } .cel-reward span { padding: 3px 10px; border-radius: 20px; border: 1px solid rgba(246,215,126,.5); font: 12px var(--mono); color: #f6d77e; }
@media (max-width: 640px) { .cel-card h2 { font-size: 40px; } .cel-lv b { font-size: 48px; } .cel-notice { padding: 26px 22px; } .cel-notice b { font-size: 22px; } }

/* 导演台 · call sheet, trophy wall, ledger */
.hb-call { position: relative; padding: 18px 22px 14px; color: #1b1612; background: #efe6d6; border-radius: 3px; box-shadow: 0 18px 40px rgba(0,0,0,.4);
  background-image: repeating-linear-gradient(0deg, transparent 0 27px, rgba(27,22,18,.06) 27px 28px); }
.hb-call header { display: flex; justify-content: space-between; align-items: end; padding-bottom: 8px; border-bottom: 2px solid #1b1612; }
.hb-call header small { display: block; font: 800 11px var(--display); letter-spacing: .3em; color: #b4561a; }
.hb-call header b { font: 700 20px var(--mono); } .hb-streak { font-size: 13px; } .hb-streak b { font: 700 18px var(--mono); color: #b4561a; }
.hb-call ol { margin: 6px 0 4px; padding: 0; list-style: none; }
.hb-call li { position: relative; display: grid; grid-template-columns: 34px 1fr auto auto; gap: 14px; align-items: center; padding: 10px 2px; border-bottom: 1px dashed rgba(27,22,18,.25); }
.hb-call .no { font: 800 16px var(--display); color: #b4561a; } .hb-call .task { font-family: var(--serif-zh); font-weight: 700; font-size: 15px; }
.hb-call .prog { font: 13px var(--mono); } .hb-call .pay { font-size: 12px; color: #5b5047; }
.hb-call li.done .task { text-decoration: line-through; text-decoration-color: rgba(180,86,26,.6); color: #5b5047; }
.hb-call .stamp { position: absolute; right: 120px; top: 50%; padding: 2px 10px; border: 2px solid #c0392b; border-radius: 4px; color: #c0392b; font: normal 900 14px var(--serif-zh);
  letter-spacing: .2em; transform: translateY(-50%) rotate(-8deg); opacity: .85; }
.hb-call-note { display: block; margin-top: 6px; font-size: 11px; color: #5b5047; }
.hb-trophy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.hb-trophy { display: grid; justify-items: center; gap: 4px; padding: 14px 10px 12px; border: 1px solid var(--line2); border-radius: 4px; text-align: center; opacity: .5; filter: grayscale(1); }
.hb-trophy.on { opacity: 1; filter: none; border-color: rgba(232,195,106,.5); background: rgba(232,195,106,.05); }
.hb-trophy i { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3d6, #e2b24c 45%, #8a5a14); }
.hb-trophy:not(.on) i { background: radial-gradient(circle at 35% 30%, #777, #444 60%, #2a2a2a); }
.hb-trophy svg { width: 26px; height: 26px; fill: #fff7e0; } .hb-trophy b { font-family: var(--serif-zh); font-weight: 900; font-size: 15px; }
.hb-trophy small { font-size: 11px; color: var(--dim); } .hb-trophy span { font: 11px var(--mono); color: #e8c36a; }
.hb-week { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.hb-week > div { padding: 12px 14px; border: 1px solid var(--line2); border-radius: 4px; min-width: 0; } .hb-week small { display: block; font-size: 12px; color: var(--dim); }
.hb-week b { font: 700 20px var(--mono); } .hb-week .in { color: #c8e86a; } .hb-week .out { color: #ff8a80; }
.hb-week .top { font: 700 14px var(--sans-zh); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-flow { margin: 0; padding: 0 0 0 8px; list-style: none; border-left: 2px solid var(--line2); max-height: 380px; overflow-y: auto; }
.hb-flow li { display: grid; grid-template-columns: 110px 14px 1fr auto; gap: 10px; align-items: center; padding: 7px 4px; font-size: 13px; }
.hb-flow time { font: 11px var(--mono); color: var(--dim); } .hb-flow i { width: 10px; height: 10px; margin-left: -15px; border-radius: 50%; background: var(--line2); }
.hb-flow .income i { background: #c8e86a; } .hb-flow .expense i { background: #ff8a80; }
.hb-flow b { font: 700 13px var(--mono); } .hb-flow .income b { color: #c8e86a; } .hb-flow .expense b { color: #ff8a80; }
@media (max-width: 760px) { .hb-call li { grid-template-columns: 28px 1fr; } .hb-call .prog, .hb-call .pay { grid-column: 2; } .hb-call .stamp { right: 8px; }
  .hb-week { grid-template-columns: repeat(2, 1fr); } .hb-flow li { grid-template-columns: 1fr auto; } .hb-flow time, .hb-flow i { display: none; } }
.cel-card .cel-film { font-size: 44px; letter-spacing: .08em; }
.cel-card .cel-line { max-width: 520px; font-family: var(--serif-zh); font-size: 18px; line-height: 1.7; color: #fff3d6; }
@media (max-width: 640px) { .cel-card .cel-film { font-size: 32px; } .cel-card .cel-line { font-size: 16px; } }
.cel-card .cel-medal { width: 96px; height: 96px; }
.cel-card .cel-reward { margin-top: 4px; }
/* choice events (自荐演员) */
.cel-face { width: 120px; height: 120px; border-radius: 50%; background: center 18% / 150%; box-shadow: 0 0 0 3px #f6d77e, 0 12px 40px rgba(232,180,70,.4); }
.cel-choices { display: grid; gap: 10px; width: min(420px, 86vw); margin-top: 10px; }
.cel-choices button { display: grid; gap: 2px; padding: 11px 16px; border: 1px solid rgba(246,215,126,.45); border-radius: 6px; background: rgba(20,14,8,.75);
  color: #fff3d6; text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.cel-choices button:first-child { border-color: #f6d77e; background: rgba(246,215,126,.14); }
.cel-choices button:hover:not(:disabled) { background: rgba(246,215,126,.24); border-color: #f6d77e; }
.cel-choices button:disabled { opacity: .5; cursor: progress; }
.cel-choices b { font-family: var(--serif-zh); font-weight: 900; font-size: 16px; }
.cel-choices small { font: 12px var(--sans-zh) !important; letter-spacing: .02em !important; color: #d8cdbd !important; }
.cel-reply { max-width: 460px; margin: 6px 0 0; font-family: var(--serif-zh); font-size: 17px; line-height: 1.7; color: #fff3d6; }
/* letter, strike */
.cel-letter { display: block; max-width: 520px; padding: 22px 26px; text-align: left; color: #3a2a1a; background: #f3e9d2;
  background-image: repeating-linear-gradient(0deg, transparent 0 29px, rgba(58,42,26,.09) 29px 30px); border-radius: 3px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5); transform: rotate(-1deg); font-size: 16px; line-height: 30px; animation: cel-pop .7s ease both; }
.cel-letter i { display: block; margin-bottom: 6px; font-style: normal; font-size: 13px; color: #8a6a44; }
.cel-letter b { display: block; margin-top: 10px; text-align: right; font: 600 12px var(--mono); color: #b4561a; }
.cel-frame { width: 150px; aspect-ratio: 3 / 4; padding: 10px; border-radius: 4px; background: linear-gradient(135deg, #f6d77e, #a8741f);
  box-shadow: inset 0 0 0 3px #7a5414, 0 14px 40px rgba(0,0,0,.5); animation: cel-shake .5s ease-in-out infinite; }
.cel-frame i { display: block; width: 100%; height: 100%; background: #1a1612 center top / cover; box-shadow: inset 0 0 0 2px rgba(0,0,0,.4); }
@keyframes cel-shake { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(-2px); } }
.cel-bubble { position: relative; max-width: 420px; margin: 8px 0 0; padding: 12px 18px; border-radius: 14px; background: #fff3d6; color: #2a1a02;
  font-family: var(--serif-zh); font-weight: 900; font-size: 17px; }
.cel-card .cel-bubble { color: #2a1a02; }
/* 导演台 header: name and Lv · title on one line */
.hb-name { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hb-name em { justify-self: auto; }
.hb-logout { padding: 2px 10px; border: 1px solid var(--line2); border-radius: 20px; background: transparent; color: var(--dim); font-size: 12px; cursor: pointer; transition: border-color .2s, color .2s; }
.hb-logout:hover, .hb-logout:focus-visible { border-color: var(--tung); color: var(--paper); outline: none; }
.hb-logout:disabled { opacity: .6; cursor: wait; }
/* 导演台 · 全站榜单 as tabs, one roomy board at a time */
.hb-tabs { display: flex; gap: 6px; margin-bottom: 14px; border-bottom: 1px solid var(--line2); }
.hb-tabs button { display: flex; align-items: baseline; gap: 8px; padding: 10px 16px 11px; border: 0; border-bottom: 2px solid transparent;
  background: none; color: var(--dim); cursor: pointer; margin-bottom: -1px; }
.hb-tabs b { font-family: var(--serif-zh); font-weight: 900; font-size: 16px; } .hb-tabs small { font: 800 9.5px var(--display); letter-spacing: .24em; }
.hb-tabs em { font: normal 11px var(--mono); padding: 1px 7px; border-radius: 20px; border: 1px solid var(--line2); }
.hb-tabs button:hover { color: var(--paper); }
.hb-tabs button.on { color: var(--paper); border-bottom-color: var(--tung); } .hb-tabs button.on em { border-color: var(--tung); color: var(--tung); }
.hb-cards { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.hb-cards a { display: grid; gap: 4px; color: var(--paper); text-decoration: none; }
.hb-cards .th { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; background: #1a1612 center/cover; box-shadow: 0 0 0 1px var(--line2);
  transition: transform .2s, box-shadow .2s; }
.hb-cards a:hover .th { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--tung), 0 10px 30px rgba(0,0,0,.5); }
.hb-cards .rk { position: absolute; left: 8px; top: 6px; font: normal 900 26px var(--display); color: #fff; text-shadow: 0 2px 8px #000; }
.hb-cards li:nth-child(-n+3) .rk { color: #f6d77e; }
.hb-cards .me { position: absolute; right: 6px; top: 6px; padding: 1px 7px; border-radius: 2px; background: rgba(232,195,106,.9); color: #2a1a02;
  font-style: normal; font-size: 11px; font-weight: 700; }
.hb-cards li.mine .th { box-shadow: 0 0 0 2px rgba(232,195,106,.8); }
.hb-cards b { margin-top: 4px; font-family: var(--serif-zh); font-weight: 900; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-cards small { font-size: 12px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-cards .vl { font: 700 14px var(--mono); color: #e8c36a; } .hb-cards .vl small { margin-left: 4px; font: 11px var(--sans-zh); }
@media (max-width: 640px) { .hb-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; } .hb-tabs button { padding: 8px 10px; } .hb-tabs small { display: none; } }
/* 导演台 · 拍新片: the shared script box at full column width */
.hb-shoot.desk { max-width: none; margin: 0; animation: none; }
.hb-shoot .script-card { min-height: 260px; }
.hb-new, .hb-new:hover { text-decoration: none; }

/* ---------- 剧本研读: story line, highlights on the original, characters; notes folded away ---------- */
.rd { display: grid; gap: 16px; }
.rd-status { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--dim); }
.rd-status b { color: var(--paper); font-weight: 600; }
.rd-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--tung); box-shadow: 0 0 0 0 rgba(255,138,43,.6); animation: rd-pulse 1.6s ease-out infinite; }
@keyframes rd-pulse { 70% { box-shadow: 0 0 0 10px rgba(255,138,43,0); } }
.rd-line { position: relative; display: flex; gap: 0; margin: 0; padding: 18px 0 4px; list-style: none; overflow-x: auto; }
.rd-line::before { content: ""; position: absolute; left: 12px; right: 12px; top: 25px; height: 1px; background: linear-gradient(90deg, var(--tung), rgba(255,138,43,.2)); }
.rd-line li { position: relative; flex: 1 0 110px; display: grid; justify-items: center; gap: 6px; padding: 0 6px; text-align: center; cursor: pointer;
  animation: rise .6s cubic-bezier(.2,.8,.2,1) both; }
.rd-line i { position: relative; z-index: 1; width: 13px; height: 13px; border-radius: 50%; background: var(--ink, #0b0a09); border: 2px solid var(--tung); transition: transform .2s, background .2s; }
.rd-line li.last i { width: 17px; height: 17px; background: var(--tung); box-shadow: 0 0 18px rgba(255,138,43,.6); }
.rd-line b { font: 800 11px var(--display); letter-spacing: .2em; color: var(--tung); }
.rd-line span { font-family: var(--serif-zh); font-size: 13px; line-height: 1.5; color: #d8cdbd; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rd-line li:hover i, .rd-line li.on i { transform: scale(1.35); background: var(--tung); }
.rd-line li.on span { color: var(--paper); }
.rd-detail { min-height: 44px; padding: 10px 14px; border-left: 2px solid var(--tung); background: rgba(255,138,43,.05); }
.rd-detail b { font-family: var(--serif-zh); font-size: 15px; } .rd-detail p { margin: 4px 0 0; font-size: 13px; line-height: 1.7; color: #d8cdbd; }
.rd-detail small { font-size: 12px; color: var(--faint); }
.rd-body { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 16px; }
.rd-text, .rd-people { padding: 14px 18px; border: 1px solid var(--line2); border-radius: 4px; background: rgba(255,232,200,.02); }
.rd-text > small, .rd-people > small { display: block; margin-bottom: 8px; font: 800 10px var(--display); letter-spacing: .26em; color: var(--dim); }
.rd-text > div { max-height: 340px; overflow-y: auto; font-family: var(--serif-zh); font-size: 15px; line-height: 2; color: rgba(233,223,205,.55); white-space: pre-wrap; }
.rd-text mark { position: relative; padding: 1px 2px; color: var(--paper); cursor: pointer; border-radius: 2px;
  background: linear-gradient(transparent 55%, rgba(255,138,43,.38) 55%); animation: rd-mark 1.2s ease both; }
@keyframes rd-mark { from { background-size: 0 100%; } to { background-size: 100% 100%; } }
.rd-text mark { background-repeat: no-repeat; background-size: 100% 100%; }
.rd-text mark sup { margin-right: 2px; font: 700 9px var(--mono); color: var(--tung); }
.rd-text mark.on { background: linear-gradient(transparent 20%, rgba(255,138,43,.5) 20%); }
.rd-text mark.rd-hit { animation: rd-flash 1.2s ease; } @keyframes rd-flash { 30% { box-shadow: 0 0 0 4px rgba(255,138,43,.5); } }
.rd-people { display: flex; flex-direction: column; gap: 8px; max-height: 390px; overflow-y: auto; }
.rd-person { padding: 8px 10px; border: 1px solid var(--line2); border-radius: 4px; animation: rise .5s ease both; }
.rd-person b { display: block; font-family: var(--serif-zh); font-size: 15px; } .rd-person span { display: block; font-size: 11.5px; color: var(--tung); }
.rd-person em { display: block; margin-top: 3px; font-style: normal; font-size: 12px; line-height: 1.5; color: var(--dim);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rd-notes summary { cursor: pointer; font-size: 13px; color: var(--dim); } .rd-notes summary:hover { color: var(--tung); }
.rd-notes[open] summary { margin-bottom: 12px; }
@media (max-width: 900px) { .rd-body { grid-template-columns: 1fr; } }
/* screening / premiere title: the eyebrow sits on the same line as the film title, smaller */
.premiere-title { display: flex; justify-content: center; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.premiere-title small { display: inline; margin: 0; font-size: 10.5px; letter-spacing: .24em; }
@media (max-width: 640px) { .premiere-title { display: block; } .premiere-title small { display: block; margin-bottom: 6px; } }
/* phones: the premiere's three-column grid (0 1fr 0) must not override the single-column floor */
@media (max-width: 900px) { .premiere-mode .floor { grid-template-columns: 1fr; } }
/* script box as a screenplay page: no ruled lines; a warm margin rule on the left, the page number in the header */
#script { padding: 20px 26px 18px 58px;
  background: linear-gradient(90deg, transparent 39px, rgba(255,138,43,.32) 39px 40px, transparent 40px) no-repeat; }
.script-page { margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line2); font: normal 400 10.5px var(--mono);
  letter-spacing: .18em; color: var(--faint); transition: color .3s; }
.script-card:focus-within .script-page { color: var(--tung); }
@media (max-width: 640px) {
  #script { padding: 18px 16px 16px 36px; background: linear-gradient(90deg, transparent 21px, rgba(255,138,43,.32) 21px 22px, transparent 22px) no-repeat; }
  .script-page { display: none; }
}

/* ---------- 文章研读 (knowledge): question, argument chain, fact / inference / metaphor, conclusion ---------- */
.kn-q, .kn-end { padding: 16px 20px; border-radius: 4px; animation: rise .6s ease both; }
.kn-q { border: 1px solid var(--line2); border-left: 3px solid var(--tung); background: rgba(255,138,43,.05); }
.kn-q small, .kn-end small, .kn-layer small { display: block; margin-bottom: 6px; font: 800 10px var(--display); letter-spacing: .26em; color: var(--tung); }
.kn-q b { font-family: var(--serif-zh); font-weight: 900; font-size: 20px; line-height: 1.6; }
.kn-q p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.8; color: #d8cdbd; } .kn-q em { margin-right: 8px; font-style: normal; color: var(--tung); }
.kn-body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; }
.kn-chain { position: relative; margin: 0; padding: 4px 0 4px 26px; list-style: none; }
.kn-chain::before { content: ""; position: absolute; left: 8px; top: 12px; bottom: 12px; width: 1px; background: linear-gradient(180deg, var(--tung), rgba(255,138,43,.15)); }
.kn-chain li { position: relative; padding: 7px 10px; border-radius: 4px; cursor: pointer; animation: rise .5s cubic-bezier(.2,.8,.2,1) both; transition: background .2s; }
.kn-chain li:hover, .kn-chain li.on { background: rgba(255,138,43,.06); }
.kn-chain i { position: absolute; left: -23px; top: 13px; width: 11px; height: 11px; border-radius: 50%; background: #0b0a09; border: 2px solid var(--tung); }
.kn-chain li.on i, .kn-chain li:last-child i { background: var(--tung); box-shadow: 0 0 12px rgba(255,138,43,.6); }
.kn-chain b { margin-right: 10px; font: 800 11px var(--display); letter-spacing: .2em; color: var(--tung); }
.kn-chain span { font-family: var(--serif-zh); font-size: 15px; color: #e9dfcd; }
.kn-chain p { margin: 6px 0 2px; font-size: 13px; line-height: 1.8; color: #d8cdbd; }
.kn-layers { display: flex; flex-direction: column; gap: 10px; }
.kn-layer { padding: 10px 12px; border: 1px solid var(--line2); border-radius: 4px; animation: rise .5s ease both; }
.kn-layer p { margin: 0 0 4px; font-size: 12.5px; line-height: 1.6; color: #d8cdbd; }
.kn-layer.fact { border-left: 3px solid #8fc7a1; } .kn-layer.fact small { color: #8fc7a1; }
.kn-layer.inference { border-left: 3px solid #e8c36a; } .kn-layer.inference small { color: #e8c36a; }
.kn-layer.metaphor { border-left: 3px solid #b9a3e3; } .kn-layer.metaphor small { color: #b9a3e3; }
.kn-end { border: 1px solid rgba(232,195,106,.5); background: linear-gradient(135deg, rgba(232,195,106,.12), rgba(232,195,106,.02)); }
.kn-end small { color: #e8c36a; } .kn-end b { font-family: var(--serif-zh); font-size: 16px; line-height: 1.7; }
@media (max-width: 900px) { .kn-body { grid-template-columns: 1fr; } }

/* 实拍 header: status counts that filter the camera bank */
.shoot-head { margin-bottom: 14px; }
.shoot-head p { margin: 8px 0 0; font-size: 12px; color: var(--dim); }
.sf { display: flex; flex-wrap: wrap; gap: 8px; }
.sf button { display: inline-flex; align-items: baseline; gap: 7px; padding: 7px 14px; border: 1px solid var(--line2); border-radius: 99px;
  background: rgba(255,232,200,.02); color: #d8cdbd; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.sf button b { font: 700 16px var(--mono); color: var(--paper); } .sf button span { font-size: 13px; }
.sf button:hover:not(:disabled) { border-color: var(--tung); }
.sf button:disabled { opacity: .35; cursor: default; }
.sf button.on { border-color: var(--tung); background: rgba(255,138,43,.12); color: var(--paper); }
.sf .sf-prepping b { color: var(--tung); } .sf .sf-rolling b { color: #ff6b5a; } .sf .sf-done b { color: #9fd86b; } .sf .sf-queued b { color: #e8c36a; } .sf .sf-failed b { color: #ff8a80; }
.sf .sf-rolling:not(:disabled)::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff3b30; align-self: center; animation: rd-pulse 1.4s ease-out infinite; }
/* 分场: paged section bar */
.sec-nav { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 8px; font: 12px var(--mono); color: var(--dim); }
.sec-nav button { width: 30px; height: 30px; border: 1px solid var(--line2); border-radius: 50%; background: var(--char); color: var(--paper);
  font-size: 18px; line-height: 1; cursor: pointer; transition: border-color .2s, color .2s; }
.sec-nav button:hover:not(:disabled) { border-color: var(--tung); color: var(--tung); }
.sec-nav button:disabled { opacity: .3; cursor: default; }
.sec-bar .sec { min-width: 0; overflow: hidden; }
.sec-bar .sec span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* cast rail: one card per actor; extra outfits fan out behind it like a stack of prints */
.cast-rail .mini.stack .ph { overflow: hidden; box-shadow: 3px -3px 0 -1px var(--char2), 3px -3px 0 0 var(--line2); }
.cast-rail .mini.stack { padding-top: 3px; }
.cast-rail .mini em { position: absolute; right: 3px; top: 6px; z-index: 1; padding: 1px 4px; border-radius: 2px; background: rgba(11,10,9,.8); color: var(--tung);
  font: normal 600 9px var(--sans-zh); }
/* lightbox: the photo frame follows the still's real aspect ratio (wide stills used to run under the caption) */
.lb-photo { --ar: 16/10; height: auto; aspect-ratio: var(--ar); width: min(calc(100vw - 560px), calc(min(76vh, 820px) * (var(--ar)))); max-width: none; }
.lb-photo img { object-fit: contain; }
@media (max-width: 900px) { .lb-photo { width: 100%; max-height: 60vh; } }
.lb-print { max-width: calc(100vw - 180px); }

/* watch page: likes / favorites / comments */
.w-react { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.w-react button, .w-react a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--line2); border-radius: 99px;
  background: rgba(255,232,200,.03); color: #d8cdbd; font-size: 13px; text-decoration: none; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.w-react i { font-style: normal; font-size: 15px; } .w-react b { font: 700 14px var(--mono); color: var(--paper); }
.w-react button:hover, .w-react a:hover { border-color: var(--tung); }
.w-like[aria-pressed="true"] { border-color: #ff5a6e; background: rgba(255,90,110,.12); } .w-like[aria-pressed="true"] i { color: #ff5a6e; animation: w-pop .4s ease; }
.w-fav[aria-pressed="true"] { border-color: #e8c36a; background: rgba(232,195,106,.12); } .w-fav[aria-pressed="true"] i { color: #e8c36a; animation: w-pop .4s ease; }
@keyframes w-pop { 40% { transform: scale(1.45); } }
.w-comments { max-width: 860px; margin: 40px auto 0; padding: 0 24px; }
.w-comments h2 { font-family: var(--serif-zh); font-weight: 900; font-size: 20px; } .w-comments h2 small { margin-left: 8px; font: 800 10px var(--display); letter-spacing: .26em; color: var(--dim); }
.w-compose textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 4px; background: var(--char); color: var(--paper);
  font: 15px/1.7 var(--serif-zh); resize: vertical; }
.w-compose div { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.w-compose small { color: var(--dim); font-size: 12px; }
.w-compose button { padding: 8px 20px; border: 0; border-radius: 3px; background: var(--tung); color: #1a0c02; font-weight: 700; cursor: pointer; }
.w-compose button:disabled { opacity: .5; cursor: progress; }
.w-join { color: #d8cdbd; font-size: 14px; } .w-join a, .w-join button { background: none; border: none; padding: 0; font: inherit; color: var(--tung); text-decoration: underline; cursor: pointer; }
.w-list { margin: 18px 0 0; padding: 0; list-style: none; }
.w-list li { position: relative; padding: 14px 0; border-bottom: 1px solid var(--line); }
.w-list li b { font-size: 14px; } .w-list li em { margin-left: 6px; padding: 0 6px; border-radius: 2px; background: var(--tung); color: #1a0c02; font: normal 700 11px var(--sans-zh); }
.w-list time { margin-left: 10px; font: 11px var(--mono); color: var(--faint); }
.w-list p { margin: 6px 0 0; font: 15px/1.75 var(--serif-zh); color: #e9dfcd; white-space: pre-wrap; word-break: break-word; }
.w-list button { position: absolute; right: 0; top: 14px; border: 0; background: none; color: var(--faint); font-size: 12px; cursor: pointer; } .w-list button:hover { color: #ff8a80; }
.w-list .w-none { color: var(--dim); font-size: 14px; }
.hb-social { display: block; margin-top: 3px; font: 11.5px var(--mono); color: var(--dim); }
/* 研读: round two's asset roster (stills are shot after the coarse storyboard is final) */
.rd-roster { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.rd-roster small { font: 11px var(--mono); letter-spacing: .14em; color: var(--dim); }
.rd-roster ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.rd-roster li { padding: 8px 10px; border: 1px solid var(--line); border-radius: 3px; background: rgba(255,232,200,.02); }
.rd-roster b { font-size: 13px; } .rd-roster span { margin-left: 6px; font-size: 11px; color: var(--tung); }
.rd-roster em { display: block; margin-top: 3px; font-style: normal; font-size: 12px; color: #b7ab9c; line-height: 1.5; }
/* 精修分镜 progress: film strip of clips, the one being written, time left */
.fp { min-width: 0; margin: 4px 0 18px; padding: 14px 16px 12px; border: 1px solid var(--line2); border-radius: 4px;
  background: linear-gradient(180deg, rgba(255,138,43,.06), rgba(255,232,200,.015)); }
.fp-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; font-size: 13.5px; color: #d8cdbd; }
.fp-top > span:nth-child(2) { flex: 1; min-width: 0; }
.fp-top b { color: var(--paper); font-weight: 700; } .fp-top .fp-warn { color: #ff8a80; }
.fp-top em { margin-left: auto; font: normal 12px var(--mono); color: var(--tung); white-space: nowrap; }
.fp-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tung); box-shadow: 0 0 0 0 rgba(255,138,43,.6); animation: fp-ping 1.6s ease-out infinite; flex: none; }
.fp-dot.ok { background: #9fd86b; animation: none; }
@keyframes fp-ping { 70% { box-shadow: 0 0 0 9px rgba(255,138,43,0); } 100% { box-shadow: 0 0 0 0 rgba(255,138,43,0); } }
.fp-bar { position: relative; height: 4px; margin: 12px 0 12px; border-radius: 2px; background: rgba(255,232,200,.07); overflow: hidden; }
.fp-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 2px; background: linear-gradient(90deg, #c4561a, var(--tung) 70%, #ffd29a); transition: width .8s ease; }
.fp-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-100%); animation: fp-sheen 2.2s ease-in-out infinite; }
@keyframes fp-sheen { to { transform: translateX(100%); } }
.fp-lane { min-width: 0; overflow: hidden; }
.fp-strip { position: relative; list-style: none; margin: 0; padding: 9px 16px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  overscroll-behavior-x: contain; mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
  background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(255,232,200,.12) 9px 13px) top / 100% 3px no-repeat,
              repeating-linear-gradient(90deg, transparent 0 9px, rgba(255,232,200,.12) 9px 13px) bottom / 100% 3px no-repeat; }
.fp-strip::-webkit-scrollbar { display: none; }
.fp-strip:focus-visible { outline: 1px solid var(--tung); outline-offset: -3px; }
.fp-strip li { flex: 0 0 72px; width: 72px; height: 46px; box-sizing: border-box; padding: 0; margin: 0; border-radius: 3px; border: 1px solid var(--line); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; background: rgba(255,232,200,.02); color: var(--faint);
  transition: background-color .35s ease, border-color .35s ease, color .35s ease, box-shadow .35s ease, opacity .35s ease; }
.fp-strip li b { font: 700 12px var(--mono); } .fp-strip li small { font: 10px var(--mono); }
.fp-strip li.fp-idle { opacity: .6; }
.fp-strip li.fp-done { background: rgba(255,138,43,.12); border-color: rgba(255,138,43,.32); color: var(--paper); opacity: .8; animation: fp-packed .36s ease-out; }
.fp-strip li.fp-done small { color: var(--tung); }
.fp-strip li.fp-run { position: relative; overflow: hidden; border-color: var(--tung); color: var(--paper); box-shadow: 0 0 14px rgba(255,138,43,.25); animation: fp-arrive .32s ease-out; }
.fp-strip li.fp-run::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,138,43,.35), transparent);
  animation: fp-scan 1.4s linear infinite; }
@keyframes fp-scan { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes fp-arrive { from { transform: translateY(3px); } to { transform: translateY(0); } }
@keyframes fp-packed { 45% { transform: translateY(-2px); } }
.fp-strip li.fp-fail { border-color: #ff8a80; color: #ff8a80; }
.fp-retry { border: 0; border-radius: 2px; padding: 2px 10px; background: rgba(255,138,128,.14); color: #ffb3ad; font: inherit; }
.fp-retry:hover, .fp-retry:focus-visible { outline: 1px solid #ff8a80; background: rgba(255,138,128,.25); }
.fp-retry:disabled, .errbox button:disabled { opacity: .5; cursor: progress; }
.fp-now { margin: 10px 0 0; font-size: 12.5px; color: #b7ab9c; } .fp-now b { font: 700 13px var(--mono); color: var(--paper); }
.fp-pen { display: inline-block; width: 2px; height: 12px; margin-right: 8px; vertical-align: -1px; background: var(--tung); animation: fp-blink 1s steps(1) infinite; }
@keyframes fp-blink { 50% { opacity: 0; } }
@media (max-width: 640px) {
  .fp { padding: 12px; }
  .fp-top em { flex-basis: 100%; margin-left: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .fp *, .fp *::before, .fp *::after { animation: none !important; transition: none !important; }
}
/* studio: back to the director's desk, top-left (replaces the top-right 导演台 pill and the premiere CTA) */
.slate .slate-board { margin-right: auto; }
.desk-back { display: inline-flex; align-items: center; gap: 6px; margin-right: 18px; padding: 6px 14px 6px 10px; flex: none; align-self: center;
  border: 1px solid rgba(255,138,43,.55); border-radius: 30px; color: var(--paper); text-decoration: none; font-size: 13px; transition: all .2s; }
.desk-back[hidden] { display: none; }
.desk-back i { font-style: normal; color: var(--tung); transition: transform .2s; } .desk-back b { font-family: var(--serif-zh); font-weight: 900; letter-spacing: .06em; }
.desk-back:hover { border-color: var(--tung); color: var(--paper); } .desk-back:hover i { transform: translateX(-3px); }
@media (max-width: 640px) { .desk-back b { display: none; } .desk-back { padding: 5px 9px; margin-right: 10px; } }
/* above the vignette (z 49, darkest in the corners) and the film grain, so the label stays readable */
.desk-back { position: relative; z-index: 51; background: rgba(20,16,12,.85); color: #fff3e2; border-color: var(--tung);
  box-shadow: 0 2px 14px rgba(0,0,0,.5); }
.desk-back b { color: #fff3e2; }
.desk-back:hover { background: var(--tung); color: #1a0c02; } .desk-back:hover b, .desk-back:hover i { color: #1a0c02; }
/* screening room: 进剪辑室 on the player's top-right corner, opens the clip on screen */
.screen { position: relative; }
.screen-edit { position: absolute; top: 12px; right: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px;
  border-radius: 30px; background: rgba(12,10,8,.72); border: 1px solid rgba(255,232,200,.25); color: #fff3e2; font-size: 13px; text-decoration: none;
  backdrop-filter: blur(6px); opacity: .55; transition: opacity .25s, border-color .2s, background .2s; }
.screen:hover .screen-edit, .screen-edit:focus-visible { opacity: 1; }
.screen-edit:hover { background: var(--tung); border-color: var(--tung); color: #1a0c02; }
.screen-edit svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
/* edit room monitor, built around the selected clip: full-take scrub bar with trim handles + clip transport */
.er-tc { display: none; }
.er-scrub { margin-top: 10px; padding: 6px 0; cursor: pointer; touch-action: none; }
.er-scrub-bar { --in: 0%; --out: 100%; --head: 0%; position: relative; height: 34px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, rgba(255,232,200,.05) 0 2px, transparent 2px 6px), rgba(255,232,200,.04); border: 1px solid var(--line); }
.er-keep { position: absolute; top: 0; bottom: 0; left: var(--in); right: calc(100% - var(--out)); background: rgba(255,138,43,.22);
  border-top: 2px solid var(--tung); border-bottom: 2px solid var(--tung); }
.er-head { position: absolute; top: -5px; bottom: -5px; left: var(--head); width: 2px; margin-left: -1px; background: #fff3e2; box-shadow: 0 0 6px rgba(255,243,226,.7); pointer-events: none; }
.er-h { position: absolute; top: -3px; bottom: -3px; width: 12px; background: var(--tung); border-radius: 2px; cursor: ew-resize; z-index: 1; }
.er-h[data-h="in"] { left: var(--in); margin-left: -6px; } .er-h[data-h="out"] { left: var(--out); margin-left: -6px; }
.er-h::after { content: ""; position: absolute; left: 50%; top: 50%; width: 2px; height: 12px; margin: -6px 0 0 -1px; background: rgba(26,12,2,.55); border-radius: 1px; }
.er-transport { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.er-transport > button:not(.er-chip) { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line2); background: var(--char); color: var(--paper); font-size: 14px; cursor: pointer; }
.er-transport > button.er-play { width: 46px; height: 46px; font-size: 16px; background: var(--tung); border-color: var(--tung); color: #1a0c02; }
.er-transport > button:not(.er-chip):hover { border-color: var(--tung); }
.er-clock { margin-left: 6px; font: 13px var(--mono); color: #d8cdbd; }
.er-tx-sp { flex: 1; }
.er-chip { padding: 6px 11px; border: 1px solid var(--line2); border-radius: 30px; background: transparent; color: #d8cdbd; font-size: 12.5px; cursor: pointer; }
.er-chip:hover { border-color: var(--tung); color: var(--paper); }
.er-chip[aria-pressed="true"] { border-color: var(--tung); background: rgba(255,138,43,.15); color: var(--paper); }
.er-chip kbd { margin-left: 3px; padding: 0 4px; border: 1px solid var(--line2); border-radius: 3px; font: 10px var(--mono); color: var(--dim); }
.er-trim .er-chip { margin-top: 8px; }
.er-transport > button:not(.er-chip) { padding: 0; display: inline-grid; place-items: center; font-size: 15px; line-height: 1; }
.er-transport .er-chip { padding: 6px 12px; border-radius: 30px; background: transparent; color: #d8cdbd; font-size: 12.5px; }
.er-transport .er-chip:hover { border-color: var(--tung); color: var(--paper); }
.er-transport .er-chip[aria-pressed="true"] { border-color: var(--tung); background: rgba(255,138,43,.15); color: var(--paper); }
.er-transport > button svg { width: 16px; height: 16px; fill: currentColor; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

/* V4 uses the same slate, warm paper and amber ink as the original studio. */
.brand-version{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.version-switch{display:inline-flex;border:1px solid var(--line);padding:3px;gap:2px;border-radius:3px;background:rgba(12,10,8,.45)}
.version-switch button{font:11px var(--mono);letter-spacing:.06em;color:var(--dim);border:0;background:transparent;padding:7px 10px;cursor:pointer;border-radius:2px;white-space:nowrap}
.version-switch button[aria-pressed=true]{background:var(--tung);color:#17110c}
.version-switch button:focus-visible{outline:2px solid var(--tung);outline-offset:3px}
.v4-plan{display:grid;gap:25px}.v4-plan h4,.v4-registry h4{font:14px var(--sans-zh);color:var(--paper);margin:0 0 14px}
.v4-plan h4 small{font:10px var(--mono);color:var(--dim);margin-left:8px}
.v4-spine{display:grid;gap:1px;background:var(--line);border:1px solid var(--line)}
.v4-claim{padding:20px;background:var(--ink)}.v4-claim>small{font:10px var(--mono);color:var(--tung);letter-spacing:.08em}
.v4-claim p{font:17px/1.9 var(--serif-zh);margin:10px 0 0}
.v4-plan section>article{display:flex;gap:16px;border-top:1px solid var(--line);padding:14px 0}
.v4-plan section>article>b{flex:0 0 42px;font:12px var(--mono);color:var(--tung);padding-top:5px}
.v4-plan article p{margin:0 0 5px;line-height:1.8}.v4-plan article small{color:var(--dim);line-height:1.8}
.v4-scenes{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:15px}
.v4-scenes article{background:#e7dcc7;color:#30271f;padding:20px;border-top:3px solid #a05b31}
.v4-scenes header>small{font:11px var(--mono);color:#89634b}.v4-scenes h5{font:20px/1.5 var(--serif-zh);margin:8px 0 16px}
.v4-scenes dl{margin:0}.v4-scenes dl>div{display:grid;grid-template-columns:30px 1fr;gap:10px;margin-top:10px;font-size:12px;line-height:1.8}
.v4-scenes dt{color:#94745b}.v4-scenes dd{margin:0}
.v4-plan details,.v4-registry{border:1px solid var(--line);padding:15px;margin-bottom:20px}
.v4-plan summary,.v4-registry summary{cursor:pointer;font-size:12px;color:var(--dim)}
.v4-registry section{margin-top:20px}.v4-registry article{padding:12px 0;border-top:1px solid var(--line)}
.v4-registry article b{font-size:14px}.v4-registry article small{display:block;margin-top:5px;color:var(--dim)}
.v4-registry article p{font-size:12px;line-height:1.8;color:var(--dim);margin-bottom:0}
@media(max-width:650px){.brand-version{gap:9px}.version-switch button{padding:6px 8px}.v4-claim{padding:14px}}
@media(max-width:640px){
  .topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 8px}
  .topbar .brand-version,.hb-top .brand-version{display:contents}
  .topbar .mark,.hb-top .mark{grid-column:1;grid-row:1}
  .topbar .hud-right,.hb-top .hb-fund{grid-column:2;grid-row:1}
  .topbar .version-switch,.hb-top .version-switch{grid-column:1 / -1;grid-row:2;justify-self:start}
  .hb-top .hb-id{grid-row:3}
}
@media(max-width:360px){.topbar .director-entry-budget{display:none}}
.source-draft-text { white-space: pre-wrap; line-height: 1.9; max-height: 28rem; overflow-y: auto; padding-top: 16px; }

/* continuity: clips that borrow an earlier clip's picture, and the partition summary on 精修分镜 */
.cam .borrow { padding: 0 10px 8px; font: 11px var(--mono); color: var(--tung); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-plan { margin: 6px 0 0; font: 11px var(--mono); color: var(--dim); }

/* ---------------- writers' room (Gemini adaptation / review / script doctor / camera) ---------------- */
.writers-room { position: relative; margin: 6px 0 22px; padding: 18px 18px 8px; border: 1px solid var(--line2); border-radius: 14px;
  background: radial-gradient(120% 80% at 0% 0%, rgba(255, 138, 43, .10), transparent 55%),
              repeating-linear-gradient(0deg, rgba(255, 232, 200, .018) 0 1px, transparent 1px 28px), var(--char); overflow: hidden; }
.writers-room::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E"); }
.wr-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.wr-head span { font: 600 22px/1 var(--serif-zh); letter-spacing: .18em; color: var(--paper); }
.wr-head small { font: 10px var(--mono); letter-spacing: .3em; color: var(--tung); }
.wr-rail { --stations: 5; list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(var(--stations), minmax(0, 1fr)); position: relative; }
.wr-rail::before { content: ""; position: absolute; left: calc(50% / var(--stations)); right: calc(50% / var(--stations)); top: 17px; height: 1px; background: var(--line2); }
.wr-rail::after { content: ""; position: absolute; left: calc(50% / var(--stations)); top: 17px; height: 1px; width: calc(100% / var(--stations) * var(--done)); max-width: calc(100% - 100% / var(--stations));
  background: linear-gradient(90deg, var(--tung), #ffd27a); box-shadow: 0 0 10px var(--tung); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.wr-node { position: relative; display: grid; justify-items: center; gap: 3px; text-align: center; z-index: 1; }
.wr-node i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font: italic 15px var(--italic);
  color: var(--dim); background: var(--ink); border: 1px solid var(--line2); transition: .4s; }
.wr-node b { font: 600 13px var(--sans-zh); color: var(--paper); letter-spacing: .08em; }
.wr-node small { font: 9px var(--mono); letter-spacing: .2em; color: var(--faint); }
.wr-node span { font: 10px var(--mono); color: var(--dim); }
.wr-node.done i, .wr-node.skipped i { color: var(--ink); background: var(--tung); border-color: var(--tung); }
.wr-node.failed i { border-color: var(--rec); color: var(--rec); }
.wr-node.on i { color: var(--tung); border-color: var(--tung); box-shadow: 0 0 0 6px var(--tung-soft), 0 0 22px rgba(255, 138, 43, .45);
  animation: wr-breathe 2.4s ease-in-out infinite; }
.wr-node.on span { color: var(--tung); }
@keyframes wr-breathe { 50% { box-shadow: 0 0 0 11px rgba(255, 138, 43, .05), 0 0 30px rgba(255, 138, 43, .6); } }
.wr-card { position: relative; margin: 0 0 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: rgba(11, 10, 9, .55);
  animation: wr-in .6s cubic-bezier(.2, .8, .2, 1) both; }
.wr-card.writing { border-color: rgba(255, 138, 43, .45); }
.wr-card > header { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-bottom: 10px; }
.wr-card > header i { font: italic 30px/1 var(--italic); color: var(--tung); opacity: .85; }
.wr-card h4 { margin: 0; font: 600 15px var(--sans-zh); color: var(--paper); letter-spacing: .06em; }
.wr-card h4 small { font: 9px var(--mono); letter-spacing: .25em; color: var(--faint); margin-left: 6px; }
.wr-card > header p { margin: 2px 0 0; font-size: 12px; color: var(--dim); }
.wr-card > header em { font: 11px var(--mono); color: var(--dim); font-style: normal; }
@keyframes wr-in { from { opacity: 0; transform: translateY(8px); } }
.wr-paper { position: relative; border-radius: 6px; background: linear-gradient(180deg, #f6eddc, #ece0c8); color: #2a221a;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(0, 0, 0, .06); overflow: hidden; }
.wr-paper::before { content: ""; position: absolute; left: 34px; top: 0; bottom: 0; width: 1px; background: rgba(200, 60, 40, .28); }
.wr-meta { display: flex; align-items: center; gap: 8px; padding: 8px 12px 6px 46px; font: 10px var(--mono); letter-spacing: .12em; color: #8a6d4c;
  border-bottom: 1px dashed rgba(0, 0, 0, .12); }
.wr-meta em { margin-left: auto; font-style: normal; }
.wr-thinking { padding: 12px 16px 16px 46px; font: 13px/1.85 var(--serif-zh); }
.wr-thinking small { display: block; margin-bottom: 5px; color: #8a6d4c; font: 10px var(--mono); letter-spacing: .12em; }
.wr-thinking p { margin: 0; overflow-wrap: anywhere; }
.wr-thinking p + p { margin-top: 8px; }
.wr-thinking p:not(:last-child) { opacity: .6; font-size: 12px; }
.wr-scene > .wr-thinking { padding: 10px 12px; background: rgba(213,167,106,.06); border-left: 1px solid var(--gold); }
.wr-ink { width: 7px; height: 7px; border-radius: 50%; background: var(--rec); animation: wr-blink 1s steps(2) infinite; }
.wr-paper pre { margin: 0; padding: 12px 16px 16px 46px; max-height: 240px; overflow: hidden; white-space: pre-wrap; word-break: break-word;
  font: 13px/1.85 var(--serif-zh); display: flex; flex-direction: column; justify-content: flex-end;
  -webkit-mask-image: linear-gradient(transparent, #000 34%); mask-image: linear-gradient(transparent, #000 34%); }
.wr-caret { display: inline-block; width: 7px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: currentColor; animation: wr-blink .9s steps(2) infinite; }
@keyframes wr-blink { 50% { opacity: 0; } }
.wr-note { margin: 0; font-size: 13px; color: var(--dim); }
.wr-res h5 { margin: 0 0 6px; font: 600 20px var(--serif-zh); color: var(--paper); letter-spacing: .06em; }
.wr-res p { margin: 0 0 10px; font-size: 13px; line-height: 1.75; color: #d8cdbd; }
.wr-res blockquote { margin: 0 0 10px; padding: 8px 12px; border-left: 2px solid var(--tung); font: 12.5px/1.8 var(--serif-zh); color: var(--dim);
  white-space: pre-wrap; max-height: 120px; overflow: hidden; }
.wr-flags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.wr-flags li { font-size: 11.5px; padding: 3px 9px; border-radius: 99px; border: 1px solid rgba(255, 59, 48, .35); color: #ffb3ad; }
.wr-stat { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; margin-bottom: 8px; }
.wr-stat b { font: 600 22px var(--display); color: var(--paper); }
.wr-stat b.warn { color: #ffb3ad; }
.wr-stat span { font-size: 11.5px; color: var(--dim); margin-right: 12px; }
.wr-redpen { margin: 0; padding-left: 0; list-style: none; counter-reset: rp; display: grid; gap: 6px; }
.wr-redpen li { counter-increment: rp; position: relative; padding-left: 30px; font-size: 12.5px; line-height: 1.65; color: #d8cdbd; }
.wr-redpen li::before { content: counter(rp, decimal-leading-zero); position: absolute; left: 0; top: 1px; font: italic 13px var(--italic); color: #ff6b5a; }
.wr-redpen li + li { padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); }
.wr-redpen li + li::before { top: 13px; }
.wr-review-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 6px; }
.wr-review-head b { color: var(--paper); font-weight: 600; }
.wr-review-head small { color: var(--dim); font-size: 11px; }
.wr-review-fields { margin: 0; display: grid; gap: 5px; }
.wr-review-fields > div { display: grid; grid-template-columns: 2.5em minmax(0, 1fr); gap: 8px; }
.wr-review-fields dt { color: var(--dim); font-size: 11px; padding-top: 1px; }
.wr-review-fields dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.wr-doctor { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; }
.wr-dial { width: 92px; height: 92px; border-radius: 50%; display: grid; place-content: center; text-align: center; position: relative;
  background: conic-gradient(var(--tung) calc(var(--v) * 1%), rgba(255, 232, 200, .08) 0); }
.wr-dial::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--ink); }
.wr-dial > * { position: relative; }
.wr-dial b { font: 600 30px/1 var(--display); color: var(--paper); }
.wr-dial small { font: 10px var(--mono); color: var(--dim); }
.wr-dial span { font-size: 10px; color: var(--faint); }
.wr-ops { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.wr-ops .op { display: inline-flex; gap: 5px; align-items: center; padding: 2px 8px 2px 3px; border-radius: 5px; font: 11px var(--mono); color: var(--paper);
  background: rgba(255, 232, 200, .05); border: 1px solid var(--line); cursor: help; }
.wr-ops .op b { font-size: 9px; padding: 1px 4px; border-radius: 3px; color: var(--ink); }
.wr-ops .insert b { background: var(--ok); } .wr-ops .delete b { background: #ff6b5a; } .wr-ops .replace b { background: var(--tung); }
.wr-scenes { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.wr-scene { padding: 9px 11px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 232, 200, .025); transition: border-color .4s; }
.wr-scene.writing { border-color: rgba(255, 138, 43, .5); background: linear-gradient(90deg, var(--tung-soft), transparent 70%); }
.wr-scene.done { border-color: rgba(200, 232, 106, .3); }
.wr-scene.failed { opacity: .6; }
.wr-scene header { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; }
.wr-scene header small { font: 10px var(--mono); color: var(--tung); }
.wr-scene header b { font-size: 12.5px; color: var(--paper); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wr-scene header em { grid-column: 1 / -1; font: 10.5px var(--mono); color: var(--dim); font-style: normal; }
.wr-mini { margin: 6px 0 0; max-height: 64px; overflow: hidden; white-space: pre-wrap; font: 11px/1.6 var(--serif-zh); color: #cbbfae;
  -webkit-mask-image: linear-gradient(transparent, #000 50%); mask-image: linear-gradient(transparent, #000 50%); }
.wr-scene details { margin-top: 6px; } .wr-scene summary { cursor: pointer; font-size: 11.5px; color: var(--tung); }
.wr-diff { margin-top: 8px; display: grid; gap: 3px; font-size: 12px; line-height: 1.6; }
.wr-diff small { font: 10px var(--mono); color: var(--dim); }
.wr-diff del { color: var(--faint); text-decoration-color: rgba(255, 107, 90, .7); }
.wr-diff ins { text-decoration: none; color: var(--paper); background: linear-gradient(transparent 62%, rgba(255, 138, 43, .28) 0); }
@media (max-width: 900px) { .wr-rail small { display: none; } .wr-doctor { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .wr-node.on i, .wr-ink, .wr-caret, .wr-card { animation: none; } }

/* edit room: shooting storyboard update status */
.er-sb-regen { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; font-size: 12.5px; color: var(--paper);
  background: rgba(255, 232, 200, .04); border: 1px solid var(--line); }
.er-sb-regen i { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.er-sb-regen.running { border-color: rgba(255, 138, 43, .45); background: linear-gradient(90deg, var(--tung-soft), transparent 70%); }
.er-sb-regen.running i { background: var(--tung); animation: wr-blink 1s steps(2) infinite; }
.er-sb-regen.done i { background: var(--ok); } .er-sb-regen.failed i { background: var(--rec); }
.wr-version { margin-left: 8px; padding: 1px 7px; border-radius: 99px; border: 1px solid rgba(255, 138, 43, .35); font: 10px var(--mono); letter-spacing: .04em; color: var(--tung); vertical-align: 1px; cursor: help; }

/* writers' room · V sound: BGM cue cards and SFX list */
.wr-sound h6 { margin: 12px 0 8px; font: 600 11px var(--sans-zh); letter-spacing: .08em; color: var(--dim); }
.wr-bgm { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.wr-bgm article { padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(200, 232, 106, .25);
  background: linear-gradient(135deg, rgba(200, 232, 106, .08), transparent 60%); }
.wr-bgm header { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.wr-bgm header b { font: 600 12px var(--mono); color: var(--ok); }
.wr-bgm .track { font: 600 13px var(--sans-zh); color: var(--paper); }
.wr-bgm header em { margin-left: auto; font: 10.5px var(--mono); color: var(--dim); font-style: normal; }
.wr-bgm .tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.wr-bgm .tags i { font-style: normal; font-size: 10.5px; padding: 1px 7px; border-radius: 99px; background: rgba(255, 232, 200, .06); color: #cbbfae; }
.wr-bgm p { margin: 0 0 4px; font-size: 12px; line-height: 1.6; color: #d8cdbd; }
.wr-bgm small { font: 10.5px var(--mono); color: var(--dim); }
.wr-sfx { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.wr-sfx li { display: grid; grid-template-columns: 72px auto 1fr; gap: 8px; align-items: baseline; font-size: 12.5px; line-height: 1.6; color: #d8cdbd; }
.wr-sfx li b { font: 11px var(--mono); color: var(--tung); }
.wr-sfx .layer { font-size: 10px; padding: 0 6px; border-radius: 4px; border: 1px solid var(--line2); color: var(--dim); white-space: nowrap; }
.wr-sfx .layer.editorial { border-color: rgba(255, 138, 43, .45); color: var(--tung); }
.wr-sfx .layer.mixed { border-color: rgba(200, 232, 106, .4); color: var(--ok); }

/* repeated audience moments: a compact toast instead of replaying the reel */
.cel-toast { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: min(380px, calc(100vw - 40px)); padding: 12px 34px 12px 14px;
  border: 1px solid rgba(246, 215, 126, .45); border-radius: 10px; background: rgba(19, 17, 15, .94); color: var(--paper);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .8); backdrop-filter: blur(8px); animation: cel-toast-in .35s ease-out; }
.cel-toast small { display: block; margin-bottom: 4px; font: 10px var(--mono); letter-spacing: .14em; color: #f6d77e; }
.cel-toast p { margin: 0; font-size: 13px; line-height: 1.65; }
.cel-toast .cel-letter i { display: block; font-style: normal; color: var(--dim); }
.cel-toast .cel-letter b { display: block; margin-top: 4px; color: #f6d77e; font-weight: 500; }
.cel-toast button { position: absolute; top: 6px; right: 8px; border: 0; background: none; color: var(--dim); font-size: 16px; cursor: pointer; }
.cel-toast.out { opacity: 0; transform: translateY(8px); transition: .35s; }
@keyframes cel-toast-in { from { opacity: 0; transform: translateY(12px); } }

/* 拍续集: hub button, episode tag and the sequel dialog */
.hb-film-go .hb-sequel { border: 1px solid rgba(255, 138, 43, .45); background: var(--tung-soft); color: var(--tung); border-radius: 4px; padding: 4px 10px; font: 600 12px var(--sans-zh); cursor: pointer; }
.hb-film-go .hb-sequel:hover { background: var(--tung); color: #0b0a09; }
.tag-ep { margin-left: 6px; padding: 0 6px; border-radius: 4px; font: 600 11px var(--mono); font-style: normal; color: var(--ok); border: 1px solid rgba(200, 232, 106, .35); }
.sq-dialog { width: min(720px, 94vw); max-height: 92vh; padding: 0; border: 1px solid var(--line2); border-radius: 14px; background: var(--char); color: var(--paper); }
.sq-dialog::backdrop { background: rgba(0, 0, 0, .65); backdrop-filter: blur(3px); }
.sq-dialog form { display: grid; gap: 12px; padding: 18px 20px; }
.sq-dialog header { position: relative; }
.sq-dialog header small { font: 10px var(--mono); letter-spacing: .25em; color: var(--tung); }
.sq-dialog h2 { margin: 4px 0 0; font: 600 20px var(--serif-zh); }
.sq-ep { margin-left: 8px; font: 600 13px var(--mono); color: var(--ok); }
.sq-x { position: absolute; top: 0; right: 0; border: 0; background: none; color: var(--dim); font-size: 22px; cursor: pointer; }
.sq-dialog label, .sq-dialog details { display: grid; gap: 6px; font-size: 13px; }
.sq-dialog label > span em, .sq-dialog summary em { font-style: normal; font-size: 11px; color: var(--dim); margin-left: 6px; }
.sq-dialog textarea, .sq-dialog input { width: 100%; box-sizing: border-box; padding: 10px; border-radius: 8px; border: 1px solid var(--line2); background: var(--ink); color: var(--paper); font: 13px/1.7 var(--sans-zh); resize: vertical; }
.sq-adaptation { min-width: 0; margin: 0; padding: 0; border: 0; }
.sq-adaptation legend { padding: 0; margin-bottom: 8px; font-size: 13px; }
.sq-adaptation legend em { margin-left: 6px; color: var(--dim); font-size: 11px; font-style: normal; }
.sq-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sq-dialog .sq-option { grid-template-columns: 16px minmax(0, 1fr); align-items: start; gap: 9px; padding: 12px; border: 1px solid var(--line2); border-radius: 8px; background: var(--ink); cursor: pointer; }
.sq-dialog .sq-option input { width: 16px; height: 16px; margin: 2px 0 0; padding: 0; accent-color: var(--tung); }
.sq-option span { display: grid; gap: 5px; }
.sq-option b { font-size: 13px; font-weight: 600; }
.sq-option small { color: var(--dim); font-size: 11px; line-height: 1.6; }
.sq-option:has(input:checked) { border-color: var(--tung); background: rgba(239, 155, 72, .08); }
.sq-option:has(input:focus-visible) { outline: 1px solid var(--tung); outline-offset: 2px; }
@media (max-width: 560px) { .sq-choices { grid-template-columns: 1fr; } }
.sq-dialog summary { cursor: pointer; font-weight: 600; }
.sq-dialog details small { font-size: 11px; color: var(--dim); }
.sq-assets ul { list-style: none; margin: 4px 0; padding: 0; max-height: 180px; overflow: auto; display: grid; gap: 4px; }
.sq-assets li { display: grid; grid-template-columns: 40px auto 1fr; gap: 8px; font-size: 12px; align-items: baseline; }
.sq-assets li i { font-style: normal; color: var(--tung); font-size: 11px; }
.sq-assets li small { color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sq-err { margin: 0; color: #ffb3ad; font-size: 12.5px; }
.sq-dialog footer { display: flex; justify-content: flex-end; gap: 8px; }
.sq-dialog footer button { padding: 8px 16px; border-radius: 6px; border: 1px solid var(--line2); background: none; color: var(--paper); cursor: pointer; font: 600 13px var(--sans-zh); }
.sq-dialog footer .sq-go { background: var(--tung); border-color: var(--tung); color: #0b0a09; }
.sq-dialog footer .sq-go:disabled { opacity: .5; cursor: not-allowed; }


/* casting card: Image Lab progress while a still develops */
.card .photo .dev-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(0, 0, 0, .25); }
.card .photo .dev-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--tung); transition: width .6s; }

/* premiere: optional subtitles toggle (top right of the screen, next to 进剪辑室) */
.screen-subs { position: absolute; top: 12px; right: 118px; z-index: 3; padding: 5px 11px; border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 6px; background: rgba(11, 10, 9, .55); color: #fff; font: 600 12px var(--sans-zh); cursor: pointer; opacity: .75; }
.screen-subs:hover, .screen-subs.on { opacity: 1; }
.screen-subs.on { background: var(--tung); color: #0b0a09; border-color: var(--tung); }
.screen-subs.loading::after { content: "…"; }
.screen video::cue { font-family: var(--sans-zh); font-size: .85em; background: rgba(0, 0, 0, .55); color: #fff; }

/* 原稿 fold: "<" in its header collapses the column (two-column floor); ">" before the stage title brings it back */
.col-script h3 { display: flex; align-items: center; }
.manuscript-fold { margin-left: auto; width: 22px; height: 22px; padding: 0; border: 1px solid transparent; border-radius: 2px;
  background: transparent; color: var(--faint); font: 600 13px var(--mono); cursor: pointer; }
.manuscript-fold:hover, .manuscript-fold:focus-visible { color: var(--tung); border-color: var(--line2); background: var(--tung-soft); }
.manuscript-unfold { margin: 0 6px 0 12px; width: 22px; height: 22px; padding: 0; border: 1px solid var(--line2); border-radius: 2px;
  background: transparent; color: var(--faint); font: 600 13px var(--mono); cursor: pointer; vertical-align: middle; }
.manuscript-unfold:hover, .manuscript-unfold:focus-visible { color: var(--tung); background: var(--tung-soft); }
.stage-head .manuscript-unfold + h3 { flex: 1; padding-left: 4px; }
@media (max-width: 900px) { .manuscript-unfold, .manuscript-fold { display: none; } }
#studio.script-folded .floor { grid-template-columns: 0 1fr 300px; }
#studio.script-folded .col-script { overflow: hidden; border-right: 0; padding: 0; }
#studio.script-folded.premiere-mode .floor { grid-template-columns: 0 1fr 0; }

/* series episode switcher next to the film title */
.ep-switch { display: inline-flex; gap: 4px; margin-left: 10px; vertical-align: middle; }
.ep-switch .tag-ep { margin-left: 0; text-decoration: none; cursor: pointer; }
.ep-switch a.tag-ep { color: var(--dim); border-color: var(--line2); }
.ep-switch a.tag-ep:hover { color: var(--paper); border-color: var(--paper); }
.ep-switch .tag-ep.on { cursor: default; }
/* 首映 / 剪辑 / 拍续集 stacked vertically, equal width */
.hb-film-go { flex-direction: column; align-items: stretch; gap: 4px; }
.hb-film-go a, .hb-film-go .hb-sequel { text-align: center; padding: 4px 12px; font-size: 12.5px; line-height: 1.5; }
/* 炫技运镜 switch under H3-Pika (same look as the model switch) */
.hb-wild, .hb-v5 { margin-top: 8px; }
#hb-wild-note, #hb-v5-note { margin: 7px 12px 0; font-size: 11px; line-height: 1.6; color: var(--dim); }
#hb-wild-note.error, #hb-v5-note.error { color: #ff8a80; }
/* 导演偏好 */
.hb-prefs { margin-top: 26px; } .hb-prefs h2 small { font-weight: 400; }
.hb-pref { display: flex; align-items: center; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hb-pref > b { width: 84px; font-size: 13px; color: var(--paper); }
.hb-seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 6px; overflow: hidden; }
.hb-seg button { padding: 6px 16px; border: 0; background: none; color: var(--dim); font: 13px var(--sans-zh); cursor: pointer; }
.hb-seg button + button { border-left: 1px solid var(--line2); }
.hb-seg button.on { background: var(--tung); color: #0b0a09; font-weight: 600; }
.hb-seg button:disabled { cursor: default; }
.hb-pref-note { margin: 8px 0 0; font-size: 12px; color: var(--dim); min-height: 18px; } .hb-pref-note.error { color: #ff8a80; }
/* 头脑风暴: under 进剪辑室; a 2×2 board of variants over the screen, the original take in the centre */
.screen-brain { top: 52px; border: 1px solid rgba(233,201,138,.45); color: #f3e2bd; cursor: pointer; font-family: inherit; font-size: 13px; line-height: normal; }  /* same size as 进剪辑室 */
.screen-brain:hover { border-color: #e9c98a; color: #fff; }
.bs { position: absolute; inset: 0; z-index: 6; display: grid; grid-template-rows: auto 1fr auto; gap: 14px; padding: 22px 26px 16px;
  background: radial-gradient(120% 90% at 50% 50%, rgba(14,12,10,.86), rgba(6,5,4,.95)); backdrop-filter: blur(6px); animation: bs-in .45s cubic-bezier(.2,.7,.2,1); }
@keyframes bs-in { from { opacity: 0; } }
.bs-head { display: flex; align-items: baseline; gap: 14px; }
.bs-head small { font: 10px var(--mono); letter-spacing: .32em; color: #e9c98a; }
.bs-head b { font: 600 15px var(--sans-zh); letter-spacing: .08em; color: #f5efe4; }
.bs-x { margin-left: auto; border: 0; background: none; color: rgba(255,255,255,.7); font-size: 24px; line-height: 1; cursor: pointer; }
.bs-x:hover { color: #fff; }
.bs-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; min-height: 0; }
.bs-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 16px 18px 14px; text-align: left;
  border: 1px solid rgba(255,255,255,.12); border-radius: 4px; background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  color: #efe7da; cursor: pointer; transition: border-color .25s, background .25s, transform .25s; overflow: hidden; }
.bs-card::before, .bs-card::after { content: ""; position: absolute; width: 10px; height: 10px; border: 0 solid rgba(233,201,138,.75); transition: all .3s; }
.bs-card::before { top: 7px; left: 7px; border-width: 1.2px 0 0 1.2px; } .bs-card::after { bottom: 7px; right: 7px; border-width: 0 1.2px 1.2px 0; }
.bs-card:hover:not(:disabled) { border-color: rgba(233,201,138,.55); background: linear-gradient(160deg, rgba(233,201,138,.12), rgba(255,255,255,.02)); }
.bs-card:hover:not(:disabled)::before, .bs-card:hover:not(:disabled)::after { width: 16px; height: 16px; }
.bs-card:disabled { cursor: default; opacity: .78; }
.bs-n { position: absolute; top: 12px; right: 16px; font: 11px var(--mono); letter-spacing: .2em; color: rgba(233,201,138,.7); }
.bs-card b { font: 600 17px var(--sans-zh); letter-spacing: .06em; color: #fff; }
.bs-card p { margin: 0; font-size: 12.5px; line-height: 1.6; color: rgba(239,231,218,.72); }
.bs-card em { font: normal 11.5px var(--sans-zh); letter-spacing: .06em; color: #e9c98a; display: flex; gap: 14px; }
.bs-card em span { cursor: pointer; border-bottom: 1px solid rgba(233,201,138,.4); } .bs-card em span.on { border: 0; color: #9be39b; cursor: default; }
.bs-card.armed { border-color: #e9c98a; box-shadow: inset 0 0 0 1px rgba(233,201,138,.4), 0 0 24px -8px rgba(233,201,138,.6); }
.bs-card[data-state="writing"] em, .bs-card[data-state="shooting"] em { animation: bs-pulse 1.6s ease-in-out infinite; }
@keyframes bs-pulse { 50% { opacity: .45; } }
.bs-card.loading b, .bs-card.loading p { height: 12px; border-radius: 2px; background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.14), rgba(255,255,255,.06));
  background-size: 200% 100%; animation: bs-shimmer 1.4s linear infinite; } .bs-card.loading b { width: 40%; height: 16px; } .bs-card.loading p { width: 80%; }
@keyframes bs-shimmer { to { background-position: -200% 0; } }
.bs-core { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; transform: translate(-50%, -50%); border-radius: 50%; z-index: 2;
  display: grid; place-items: center; align-content: center; gap: 2px; border: 1px solid rgba(233,201,138,.7); background: rgba(10,9,8,.92);
  color: #f3e2bd; cursor: pointer; box-shadow: 0 0 0 8px rgba(10,9,8,.85), 0 10px 30px -10px #000; transition: transform .25s, background .25s; }
.bs-core svg { width: 20px; height: 20px; fill: currentColor; margin-left: 3px; } .bs-core small { font: 10px var(--sans-zh); letter-spacing: .2em; }
.bs-core:hover { transform: translate(-50%, -50%) scale(1.06); background: #e9c98a; color: #0b0a09; }
.bs-status { margin: 0; min-height: 16px; text-align: center; font-size: 12px; color: rgba(239,231,218,.7); }
.bs-play { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: rgba(0,0,0,.92); }
.bs-play video { max-width: 92%; max-height: 86%; } .bs-play .bs-x { position: absolute; top: 14px; right: 18px; }
@media (max-width: 700px) { .bs-card p { display: none; } .bs-core { width: 58px; height: 58px; } }
/* keep text clear of the centre disc */
.bs-card[data-i="1"], .bs-card[data-i="3"] { padding-left: 60px; } .bs-card[data-i="2"] .bs-n { right: auto; left: 22px; }
/* a finished variant plays as a muted thumbnail behind its card; clicking the card opens the comparison */
.bs-card .bs-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: .55; transition: opacity .3s; pointer-events: none; }
.bs-card[data-state="done"] { cursor: zoom-in; }
.bs-card[data-state="done"]:hover .bs-thumb { opacity: .8; }
.bs-card[data-state="done"]::selection { background: none; }
.bs-card > :not(.bs-thumb):not(.bs-n) { position: relative; z-index: 1; } .bs-card .bs-n { z-index: 1; }
.bs-card[data-state="done"] > b, .bs-card[data-state="done"] > p, .bs-card[data-state="done"] > em { text-shadow: 0 1px 6px rgba(0,0,0,.85); }
.bs-card[data-state="done"]::after { z-index: 1; }
.bs-card[data-state="done"] { background: linear-gradient(0deg, rgba(0,0,0,.75), rgba(0,0,0,.1) 70%); }
/* 头脑风暴 compare: original ⟷ new side by side inside the board. Rows: header · videos (shrink to fit) · controls */
.bs-compare { position: absolute; inset: 0; z-index: 5; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; row-gap: 14px;
  padding: 18px 24px 16px; background: #060504; animation: bs-in .35s ease; overflow: hidden; }
.bs-cmp-head { display: flex; align-items: center; gap: 14px; min-height: 28px; }
.bs-cmp-head small { font: 10px var(--mono); letter-spacing: .3em; color: #e9c98a; white-space: nowrap; }
.bs-cmp-head b { font: 600 15px var(--sans-zh); color: #fff; letter-spacing: .06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-cmp-head .bs-x { margin-left: auto; }
.bs-cmp-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-height: 0; height: 100%; }
.bs-cmp-pair figure { margin: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 8px; cursor: pointer; justify-items: center; }
.bs-cmp-pair figcaption { justify-self: stretch; }
.bs-cmp-pair figcaption { font: 12px var(--sans-zh); letter-spacing: .1em; color: rgba(239,231,218,.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-cmp-pair figure.loud figcaption { color: #e9c98a; }
.bs-cmp-pair figure.loud figcaption::after { content: " · 🔊"; }
.bs-cmp-pair video { width: auto; height: auto; max-width: 100%; max-height: 100%; min-height: 0; justify-self: center; align-self: start; display: block; background: #000;
  border: 1px solid rgba(255,255,255,.12); border-radius: 3px; transition: border-color .25s; }
.bs-cmp-pair figure.loud video { border-color: rgba(233,201,138,.75); }
.bs-cmp-bar { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 36px; }
.bs-cmp-bar small { color: rgba(239,231,218,.55); font-size: 11.5px; }
.bs-cmp-play, .bs-cmp-adopt { padding: 7px 18px; border-radius: 99px; font: 600 12.5px var(--sans-zh); letter-spacing: .08em; cursor: pointer; white-space: nowrap; }
.bs-cmp-play { border: 1px solid rgba(255,255,255,.3); background: none; color: #fff; }
.bs-cmp-adopt { border: 1px solid #e9c98a; background: #e9c98a; color: #0b0a09; } .bs-cmp-adopt:hover { background: #f3dcaa; }
.bs-cmp-on { color: #9be39b; font-size: 12.5px; }
@media (max-width: 700px) { .bs-cmp-pair { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; } .bs-cmp-bar small { display: none; } }
/* 分镜卡片 (storyboard cards, 2026-11-24): silhouette framing + move glyph + dialogue lines; width follows duration */
.board:has(.frame.sc) { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.board .board-section { flex: 0 0 100%; }
.frame.sc { flex: 0 0 auto; max-width: 100%; display: flex; flex-direction: column; border-radius: 6px; background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.09); overflow: hidden; transition: border-color .2s, transform .2s; }
.frame.sc:hover { border-color: rgba(233,201,138,.45); transform: translateY(-2px); }
.sc-pic { position: relative; aspect-ratio: 16/9; margin: 8px 8px 0; border-radius: 3px; overflow: hidden;
  background: radial-gradient(130% 110% at 50% 20%, #2a2622, #121110 75%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.sc-pic svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sc-tag { position: absolute; left: 8px; top: 7px; font: 10px var(--mono); letter-spacing: .12em; color: rgba(255,255,255,.75); }
.sc-tag b { color: var(--tung); font-weight: 400; }
.sc-dur { position: absolute; right: 8px; top: 7px; font: 10px var(--mono); color: rgba(255,255,255,.6); }
.sc-body { padding: 10px 12px 11px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.sc-move { display: flex; align-items: center; gap: 6px; font: 10.5px var(--mono); letter-spacing: .12em; color: var(--tung); }
.sc-move svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.sc-line { font-size: 13px; line-height: 1.55; color: #fff; padding-left: 8px; border-left: 2px solid var(--tung); }
.sc-line i { font-style: normal; color: var(--dim); font-size: 11.5px; margin-right: 4px; }
.sc-act { margin: 0; font-size: 12px; line-height: 1.6; color: rgba(239,231,218,.62); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.frame.sc:hover .sc-act { -webkit-line-clamp: 8; }
.sc-time { height: 3px; background: rgba(255,255,255,.06); margin-top: auto; } .sc-time i { display: block; height: 100%; background: var(--tung); opacity: .6; }

/* film row: title · one meta line · one tag line (no wrapping chips) */
.hb-film-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.hb-film-main .hb-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.hb-tags em { margin-left: 0 !important; line-height: 18px; white-space: nowrap; }
.hb-film-main .tag-ep { border-color: rgba(155,227,155,.4); color: #9be39b; }

/* 字幕 toggle sits at the bottom-right of the screen, just above the player's control bar */
.screen-subs { top: auto; bottom: 58px; right: 14px; }

/* fixed action column so every row lines up and nothing spills under the assistant panel */
.hb-film-go { width: 104px; } .hb-film-go a, .hb-film-go .hb-sequel { width: 100%; box-sizing: border-box; }
.hb-film-go a small { display: block; font-size: 10.5px; color: var(--dim); margin-top: 1px; }
.hb-film-num, .hb-film-bar { min-width: 0; } .hb-film-bar small { white-space: nowrap; }

/* 改编剧本全文 */
.wr-full { margin-top: 10px; padding: 5px 14px; border: 1px solid rgba(233,201,138,.5); border-radius: 99px; background: none; color: #e9c98a; font: 12px var(--sans-zh); cursor: pointer; }
.wr-full:hover { background: rgba(233,201,138,.12); }
.script-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(0,0,0,.75); }
.sm-card { width: min(860px, 92vw); max-height: 86vh; display: flex; flex-direction: column; background: #15130f; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; }
.sm-card header { display: flex; align-items: center; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sm-card header b { font: 600 15px var(--sans-zh); color: #fff; } .sm-card header button { margin-left: auto; border: 0; background: none; color: #ccc; font-size: 22px; cursor: pointer; }
.sm-card pre { margin: 0; padding: 18px 22px; overflow: auto; white-space: pre-wrap; font: 14px/1.85 var(--sans-zh); color: #e8dfd2; }
/* 改片名 */
#s-title, .premiere-title { cursor: text; }
.title-edit { font: inherit; color: inherit; background: rgba(255,255,255,.06); border: 1px solid rgba(233,201,138,.6); border-radius: 4px; padding: 0 8px; width: min(100%, 16em); outline: none; }
/* 补充资产 (director-added assets) */
.aa-add { display: grid; place-items: center; align-content: center; gap: 8px; min-height: 260px; border: 1.5px dashed rgba(233,201,138,.5) !important;
  background: rgba(233,201,138,.05) !important; color: #e9c98a; font: 600 14px var(--sans-zh); cursor: pointer; box-shadow: none !important; transform: none !important; }
.aa-add:hover { background: rgba(233,201,138,.12) !important; border-color: #e9c98a !important; }
.aa-add i { font-style: normal; width: 40px; height: 40px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font-size: 22px; }
.aa-add span { font: 400 11.5px var(--sans-zh); color: #9b9183; }
.aa-card-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.aa-mine { padding: 1px 7px; border-radius: 2px; font-size: 10.5px; background: #e9c98a; color: #1a140c; }
.aa-uses { padding: 1px 7px; border-radius: 2px; font: 10.5px var(--mono); background: rgba(13,12,11,.75); color: #efe7da; }
.aa-uses.zero { background: #ff8a2b; color: #120c06; }
.aa-rec-btn { margin-left: auto; padding: 3px 10px; border-radius: 2px; border: 1px solid #2a241d; background: #2a241d; color: #e9c98a; font: 11.5px var(--sans-zh); cursor: pointer; }
.aa-veil { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; background: rgba(0,0,0,.66); }
.aa-sheet { width: min(640px, 94vw); max-height: 90vh; overflow: auto; background: #16130f; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 22px 26px; color: #efe7da; font-family: var(--sans-zh); }
.aa-sheet h2 { margin: 0 0 4px; font: 700 18px var(--serif-zh); letter-spacing: .1em; } .aa-sub { margin: 0 0 18px; font-size: 12px; color: #9b9183; }
.aa-row { margin-bottom: 16px; } .aa-row > label { display: block; font-size: 12px; color: #9b9183; margin-bottom: 7px; letter-spacing: .06em; }
.aa-seg { display: inline-flex; border: 1px solid rgba(255,255,255,.1); border-radius: 99px; padding: 3px; gap: 3px; }
.aa-seg button { padding: 6px 16px; border: 0; border-radius: 99px; background: none; color: #efe7da; font: 13px var(--sans-zh); cursor: pointer; }
.aa-seg button.on { background: #e9c98a; color: #17120b; }
.aa-sheet input, .aa-sheet textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 4px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: #fff; font: 14px var(--sans-zh); outline: none; }
.aa-sheet textarea { min-height: 80px; resize: vertical; line-height: 1.6; } .aa-sheet input:focus, .aa-sheet textarea:focus { border-color: #e9c98a; }
.aa-actors { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.aa-actors button { width: 78px; padding: 0; border: 1.5px solid transparent; border-radius: 4px; background: none; color: #efe7da; cursor: pointer; overflow: hidden; }
.aa-actors img, .aa-actors i { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; background: #2a2622; } .aa-actors span { display: block; padding: 4px 0; font-size: 11.5px; }
.aa-actors button.on { border-color: #e9c98a; }
.aa-hint { margin: 6px 0 0; font-size: 11.5px; color: #9b9183; }
.aa-dup { margin: -6px 0 14px; padding: 9px 12px; border-radius: 4px; border: 1px solid rgba(255,138,43,.45); background: rgba(255,138,43,.07); font-size: 12.5px; }
.aa-err { min-height: 16px; margin: 0 0 6px; color: #ff9a7a; font-size: 12.5px; }
.aa-acts { display: flex; justify-content: flex-end; gap: 10px; }
.aa-btn { padding: 9px 20px; border-radius: 99px; border: 1px solid rgba(255,255,255,.25); background: none; color: #fff; font: 600 13px var(--sans-zh); cursor: pointer; }
.aa-btn.gold { background: #e9c98a; border-color: #e9c98a; color: #17120b; } .aa-btn.ghost { border-color: transparent; color: #9b9183; } .aa-btn:disabled { opacity: .55; cursor: default; }
.aa-rec { border: 1px solid rgba(255,255,255,.09); border-radius: 6px; padding: 12px 14px; margin-bottom: 10px; display: grid; grid-template-columns: 22px 1fr; gap: 10px; cursor: pointer; }
.aa-rec input { width: auto; margin-top: 3px; accent-color: #e9c98a; }
.aa-rec b { display: block; font-size: 13px; margin-bottom: 7px; } .aa-rec b em { font-style: normal; font: 10.5px var(--mono); color: #ff8a2b; margin-right: 6px; }
.aa-rec del, .aa-rec ins { display: block; font-size: 12.5px; line-height: 1.6; padding: 6px 9px; border-radius: 3px; text-decoration: none; }
.aa-rec del { background: rgba(255,90,90,.07); color: rgba(239,231,218,.6); } .aa-rec ins { background: rgba(155,227,155,.08); color: #e9f5e3; margin-top: 4px; }
.aa-rec mark { background: rgba(233,201,138,.25); color: #fff; border-radius: 2px; padding: 0 2px; }
.aa-cost { margin: 14px 0 8px; padding: 10px 12px; border-radius: 4px; background: rgba(255,255,255,.04); font-size: 12.5px; } .aa-cost b { color: #e9c98a; }
.aa-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 96; padding: 10px 18px; border-radius: 99px; background: #241f19; border: 1px solid rgba(233,201,138,.5); color: #efe7da; font-size: 13px; }

/* 开拍后改定妆 */
.aa-card-foot.post button { padding: 3px 9px; border-radius: 2px; border: 1px solid #c9bfae; background: none; color: #3a3128; font: 11.5px var(--sans-zh); cursor: pointer; }
.aa-card-foot.post button:disabled { opacity: .45; cursor: default; }
.aa-card-foot.post [data-post-reshoot] { border-color: #2a241d; background: #2a241d; color: #e9c98a; }
.aa-takes { display: flex; gap: 4px; width: 100%; }
.aa-takes button { width: 26px; height: 26px; padding: 0 !important; border-radius: 2px; background: #ddd center/cover !important; border: 1.5px solid transparent !important; }
.aa-takes button.on { border-color: #ff8a2b !important; }
/* FINAL CUT progress: a running film strip with a glowing playhead */
.fc { --p: 3%; max-width: 760px; margin: 60px auto; padding: 26px 30px 22px; border: 1px solid rgba(255,255,255,.09); border-radius: 8px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(255,138,43,.10), rgba(255,255,255,.02) 60%); }
.fc-head small { display: block; font: 10px var(--mono); letter-spacing: .32em; color: var(--tung); }
.fc-head b { display: block; margin-top: 6px; font: 700 20px var(--serif-zh); letter-spacing: .1em; color: #f3ece1; }
.fc-strip { position: relative; height: 34px; margin: 22px 0 10px; border-radius: 3px; overflow: hidden; background: #0c0b0a;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.fc-perf { position: absolute; inset: 0; background:
  repeating-linear-gradient(90deg, transparent 0 10px, rgba(255,255,255,.14) 10px 16px) top/100% 5px no-repeat,
  repeating-linear-gradient(90deg, transparent 0 10px, rgba(255,255,255,.14) 10px 16px) bottom/100% 5px no-repeat;
  animation: fc-run 1.2s linear infinite; }
@keyframes fc-run { to { background-position: 26px 0, 26px 100%; } }
.fc-fill { position: absolute; left: 0; top: 7px; bottom: 7px; width: var(--p); transition: width .8s cubic-bezier(.2,.7,.2,1);
  background: linear-gradient(90deg, rgba(255,138,43,.25), rgba(255,138,43,.85) 85%, #ffd9a8);
  box-shadow: 0 0 18px rgba(255,138,43,.55); }
.fc-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent) 0 0/40% 100% no-repeat;
  animation: fc-shine 1.8s ease-in-out infinite; }
@keyframes fc-shine { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.fc-head-mark { position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; background: #fff; box-shadow: 0 0 12px #ffb066, 0 0 3px #fff;
  transition: left .8s cubic-bezier(.2,.7,.2,1); }
.fc-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: rgba(239,231,218,.72); }
.fc-pct { font: 600 14px var(--mono); color: #ffcf9a; }
.fc-steps { display: flex; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; counter-reset: fc; }
.fc-steps li { flex: 1; padding: 7px 0 0; border-top: 2px solid rgba(255,255,255,.1); font-size: 11.5px; color: rgba(239,231,218,.45); counter-increment: fc; }
.fc-steps li::before { content: "0" counter(fc) " "; font: 10px var(--mono); }
.fc-steps li.done { border-color: rgba(255,138,43,.55); color: rgba(239,231,218,.75); }
.fc-steps li.on { border-color: var(--tung); color: #fff; }
.fc-steps li.on::after { content: " …"; animation: bs-pulse 1.2s ease-in-out infinite; }
