/* ==========================================================================
   开拍 · 设计系统
   风格：true-black-flat（seed 1332270507）
   移动：亮度分层，不用边框和投影；颜色只上数据；主操作靠反白（白底黑字）。
   ========================================================================== */

:root {
  --ground: #000000;
  --surface: #111111;
  --raised: #2a2a2a;
  --border: #1a1a1a;
  --rule: #161616;
  --control: #444444;

  --text: #ffffff;
  --muted: #b4b4b4;
  --faint: #949494;

  --accent: #f2b33d;
  --positive: #3fc07a;
  --negative: #e5484d;
  --warning: #e5a93b;

  --pill-positive-bg: #222a10;
  --pill-positive-ink: #3fc07a;
  --pill-negative-bg: #2c1a20;
  --pill-negative-ink: #e5566f;
  --pill-warning-bg: #2b2414;
  --pill-warning-ink: #e5a93b;
  --pill-neutral-bg: #222222;
  --pill-neutral-ink: #ffffff;

  --radius-card: 20px;
  --radius-inner: 12px;
  --radius-control: 999px;

  --sidebar-width: 210px;
  --topbar-height: 64px;
  --gap: 14px;
  --pad: 22px;
  --control-height: 36px;

  --fs-title: 20px;
  --fs-section: 16px;
  --fs-kpi: 24px;
  --fs-body: 14px;
  --fs-small: 13px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, video { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.num, .tabular { font-variant-numeric: tabular-nums; }

/* ---------- 外壳：创作端（有侧栏） ---------- */

.shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
  background: var(--ground);
}

.sidebar {
  border-right: 1px solid var(--rule);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
}

.brand svg { flex: none; }

.brand-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-group { display: flex; flex-direction: column; gap: 2px; }

.nav-label {
  font-size: var(--fs-small);
  color: var(--faint);
  padding: 0 10px 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: var(--fs-body);
  transition: color .12s, background .12s;
}

.nav-item:hover { color: var(--text); background: #0d0d0d; }
.nav-item.active { color: var(--text); }
.nav-item .count {
  font-size: 11px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.sidebar-foot { margin-top: auto; padding: 0 10px; }
.sidebar-foot .who { font-size: var(--fs-small); color: var(--faint); }
.sidebar-foot .credits {
  font-size: var(--fs-section);
  font-weight: 500;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

/* ---------- 顶栏 ---------- */

.main { display: flex; flex-direction: column; min-width: 0; }

.topbar {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--rule);
  background: var(--ground);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-right { display: flex; align-items: center; gap: 10px; }

.topbar-title {
  font-size: var(--fs-section);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.canvas {
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

/* ---------- 标题区 ---------- */

.title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--gap);
}

h1.page-title {
  font-size: var(--fs-title);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

.page-sub {
  font-size: var(--fs-body);
  color: var(--muted);
  margin: 6px 0 0;
}

/* ---------- KPI 条：一个容器，1px 分隔 ---------- */

.kpi-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.kpi {
  padding: 18px var(--pad);
  position: relative;
}

.kpi + .kpi::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: var(--raised);
}

.kpi .k-label {
  font-size: var(--fs-small);
  color: var(--muted);
}

.kpi .k-value {
  font-size: var(--fs-kpi);
  font-weight: 400;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.kpi .k-note {
  font-size: var(--fs-small);
  color: var(--faint);
  margin-top: 2px;
}

.kpi .k-value.accent { color: var(--accent); }

/* ---------- 面板 ---------- */

.panel {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: var(--pad);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  margin-bottom: 14px;
}

.panel-title {
  font-size: var(--fs-section);
  font-weight: 600;
  margin: 0;
}

.panel-note { font-size: var(--fs-small); color: var(--faint); }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: var(--control-height);
  padding: 0 16px;
  border-radius: var(--radius-control);
  border: 1px solid var(--control);
  background: transparent;
  color: var(--text);
  font-size: var(--fs-body);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s, border-color .12s, opacity .12s;
}

.btn:hover { border-color: #5c5c5c; background: #141414; }
.btn:active { background: #1b1b1b; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[disabled]:hover { background: transparent; border-color: var(--control); }

.btn.primary {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

.btn.primary:hover { background: #e6e6e6; border-color: #e6e6e6; }
.btn.primary:active { background: #d4d4d4; }

.btn.small { height: 30px; padding: 0 12px; font-size: var(--fs-small); }
.btn.block { width: 100%; }

.btn.text {
  border: none;
  background: transparent;
  padding: 0;
  height: auto;
  color: var(--muted);
  font-weight: 400;
}
.btn.text:hover { color: var(--text); background: transparent; }

/* ---------- 表单 ---------- */

.field { display: flex; flex-direction: column; gap: 8px; }

.field label {
  font-size: var(--fs-body);
  font-weight: 500;
}

.field .help { font-size: var(--fs-small); color: var(--faint); line-height: 1.6; }

.field input,
.field select,
.field textarea {
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-inner);
  border: 1px solid var(--control);
  background: #0a0a0a;
  color: var(--text);
  font-size: var(--fs-body);
  outline: none;
  transition: border-color .12s;
}

.field textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.6; }

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--text); }

.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }

.form-grid { display: grid; gap: 18px; }
.form-row { display: flex; gap: 12px; align-items: center; }

/* ---------- 状态药丸 ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  flex: none;
}

.pill.neutral { background: var(--pill-neutral-bg); color: var(--pill-neutral-ink); }
.pill.positive { background: var(--pill-positive-bg); color: var(--pill-positive-ink); }
.pill.warning { background: var(--pill-warning-bg); color: var(--pill-warning-ink); }
.pill.negative { background: var(--pill-negative-bg); color: var(--pill-negative-ink); }

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--faint);
  flex: none;
}
.dot.generated { background: var(--accent); }
.dot.failed { background: var(--negative); }
.dot.pending { background: var(--raised); }

/* ---------- 列表行 ---------- */

.rows { display: flex; flex-direction: column; }

.row {
  display: grid;
  align-items: center;
  gap: var(--gap);
  min-height: 64px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  transition: background .12s;
}

.row:last-child { border-bottom: none; }
.row:hover { background: #0b0b0b; }
.row .grow { min-width: 0; }
.row .name { font-size: var(--fs-body); font-weight: 500; }
.row .meta { font-size: var(--fs-small); color: var(--faint); margin-top: 3px; }
.row .num { text-align: right; font-size: var(--fs-body); }

.rows-head {
  display: grid;
  gap: var(--gap);
  padding: 0 0 10px;
  font-size: var(--fs-small);
  color: var(--faint);
  border-bottom: 1px solid var(--rule);
}

.rows-head .num { text-align: right; }

/* ---------- 剧集封面（平涂色块 + 排版，不是渐变） ---------- */

.cover {
  position: relative;
  border-radius: var(--radius-inner);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  flex: none;
}

.cover .cover-title {
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.cover .cover-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  color: #fff;
  background: rgba(0,0,0,.45);
  padding: 3px 7px;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}

/* ---------- 观众端外壳（无侧栏） ---------- */

/* ---------- 首页主视觉：左边这部剧，右边选集 ---------- */

.hero-split {
  max-width: 1240px;
  margin: 0 auto;
  padding: 46px 32px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 48px;
  align-items: start;
}

.hero-split .tags {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.hero-split h1 {
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}

.hero-split p {
  margin: 0 0 22px;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.hs-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.hs-head h2 {
  margin: 0;
  font-size: var(--fs-section);
  font-weight: 600;
}

.hs-note { font-size: var(--fs-small); color: var(--faint); }

.hs-eps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.hs-foot {
  margin: 14px 0 0;
  font-size: var(--fs-small);
  color: var(--faint);
  line-height: 1.75;
}

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 26px; padding: 26px 16px 28px; }
  .hs-eps { grid-template-columns: repeat(4, 1fr); gap: 8px; }
}

/* ---------- 生产链路 ---------- */

.chain-list {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
}

.chain-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}

.chain-row .k {
  font-size: var(--fs-small);
  color: var(--faint);
}

.chain-row .v {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
}

.chain-row video {
  width: 240px;
  border-radius: 10px;
  display: block;
  background: #0a0a0a;
}

.chain-note {
  margin-top: 10px;
  font-size: var(--fs-small);
  color: var(--faint);
  line-height: 1.7;
  max-width: 52ch;
}

@media (max-width: 900px) {
  .chain-list { padding: 0 16px; }
  .chain-row { grid-template-columns: 1fr; gap: 8px; padding: 16px 0; }
  .chain-row video { width: 100%; max-width: 320px; }
}

/* ---------- 剧集横排：大图流 ---------- */

.row-section { padding: 8px 0 40px; }

.row-head {
  max-width: 1240px;
  margin: 0 auto 16px;
  padding: 0 32px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.row-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.row-note { font-size: var(--fs-small); color: var(--faint); }

.row-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 32px 10px;
  max-width: 1240px;
  margin: 0 auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.row-scroll::-webkit-scrollbar { height: 6px; }
.row-scroll::-webkit-scrollbar-track { background: transparent; }
.row-scroll::-webkit-scrollbar-thumb { background: #242424; border-radius: 3px; }

.poster-card {
  flex: 0 0 232px;
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background: #101010;
  transition: transform .18s ease;
}

.poster-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 按剧集染色：同一段素材，四部剧四种调子 */
.poster-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tint, transparent);
  mix-blend-mode: multiply;
}

.poster-card:hover { transform: translateY(-4px); }

.poster-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background: rgba(0, 0, 0, .58);
}

.poster-card .b {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  font-size: 11px;
  color: #ffffff;
  background: rgba(0, 0, 0, .55);
  padding: 3px 8px;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}

.poster-card .t {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* ---------- 三步说明 ---------- */

.step-row {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.step {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 22px;
}

.step-no {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

.step-t { font-size: var(--fs-section); font-weight: 600; margin-bottom: 6px; }

.step-d { font-size: var(--fs-small); color: var(--muted); line-height: 1.75; }

@media (max-width: 900px) {
  .row-head { padding: 0 16px; }
  .row-scroll { padding: 0 16px 10px; }
  .poster-card { flex: 0 0 180px; padding: 12px; border-radius: 12px; }
  .poster-card .t { font-size: 14px; }
  .step-row { grid-template-columns: 1fr; padding: 0 16px; }
}

.site { min-height: 100vh; background: var(--ground); }

.site-bar {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--rule);
  background: var(--ground);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-bar .links { display: flex; gap: 20px; align-items: center; }
.site-bar .links a { font-size: var(--fs-body); color: var(--muted); }
.site-bar .links a:hover { color: var(--text); }
.site-bar .links a.active { color: var(--text); }

.site-canvas {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 32px 72px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ---------- 剧集网格 ---------- */

.drama-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

/* 收在面板里的推荐位：桌面四列，手机两列（不能靠内联样式，会压过媒体查询） */
.drama-grid.compact { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .drama-grid.compact { grid-template-columns: repeat(2, 1fr); }
}

.drama-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background .12s;
}

.drama-card:hover { background: #171717; }

.drama-card .cover { border-radius: 0; aspect-ratio: 3 / 4; }

.drama-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }

.drama-card h3 {
  margin: 0;
  font-size: var(--fs-section);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.drama-card .synopsis {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.drama-card .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  font-size: var(--fs-small);
  color: var(--faint);
}

/* ---------- 剧集详情 ---------- */

.hero {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 26px;
  align-items: start;
}

.hero .cover { width: 260px; }

.hero-info { display: flex; flex-direction: column; gap: 14px; }

.hero-info h1 {
  margin: 0;
  font-size: var(--fs-title);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero-info .synopsis {
  margin: 0;
  font-size: var(--fs-body);
  color: var(--muted);
  line-height: 1.7;
  max-width: 60ch;
}

.fact-row { display: flex; gap: 22px; flex-wrap: wrap; }

.fact { display: flex; flex-direction: column; gap: 2px; }
.fact .k { font-size: var(--fs-small); color: var(--faint); }
.fact .v { font-size: var(--fs-body); font-variant-numeric: tabular-nums; }

/* ---------- 选集 ---------- */

.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}

.ep-cell {
  aspect-ratio: 1;
  border-radius: var(--radius-inner);
  background: #141414;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: background .12s;
  position: relative;
}

.ep-cell:hover { background: #1e1e1e; }
.ep-cell .no { font-size: var(--fs-section); font-weight: 500; font-variant-numeric: tabular-nums; }
.ep-cell .tag { font-size: 11px; color: var(--faint); }
.ep-cell.free .tag { color: var(--positive); }
.ep-cell.locked .no { color: var(--faint); }
.ep-cell.locked .tag { color: var(--warning); }

/* 待出片：还没做出来的集，不可点 */
.ep-cell.pending {
  background: #0d0d0d;
  cursor: default;
}

.ep-cell.pending .no { color: #3a3a3a; }
.ep-cell.pending .tag { color: #4a4a4a; }
.ep-cell.pending:hover { background: #0d0d0d; }

/* ---------- 播放页 ---------- */

.watch {
  min-height: 100vh;
  background: var(--ground);
  display: flex;
  flex-direction: column;
}

.watch-bar {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 12px;
}

.watch-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 22px;
  padding: 0 20px 20px;
  align-items: start;
}

.watch-side { display: flex; flex-direction: column; gap: 14px; }

.watch-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.player {
  position: relative;
  height: calc(100vh - 132px);
  max-width: min(100%, 560px);
  aspect-ratio: 9 / 16;
  background: #0a0a0a;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.player video { width: 100%; height: 100%; object-fit: contain; background: #0a0a0a; }

.paywall {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .93);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 28px;
  text-align: center;
}

.paywall h2 { font-size: var(--fs-section); margin: 0; font-weight: 600; }
.paywall p { font-size: var(--fs-small); color: var(--muted); margin: 0; line-height: 1.7; }

.paywall .price {
  font-size: 30px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  margin: 10px 0 2px;
}

.paywall .price small { font-size: var(--fs-small); color: var(--muted); margin-left: 4px; }
.paywall .btn { margin-top: 16px; min-width: 190px; }

.watch-foot {
  padding: 0 20px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- 我的 ---------- */

.profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--raised);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-section);
  font-weight: 600;
  flex: none;
}

.profile-row .who .name { font-size: var(--fs-section); font-weight: 600; }
.profile-row .who .phone { font-size: var(--fs-small); color: var(--faint); margin-top: 2px; font-variant-numeric: tabular-nums; }

/* ---------- 创作端工作台 ---------- */

.workbench {
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: 12px;
  padding: 8px 8px 8px 8px;
  min-height: calc(100vh - 44px);
}

.wb-bar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 12px;
}

.wb-bar .left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wb-bar .name { font-size: var(--fs-section); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.shot-list {
  align-self: start;
  max-height: calc(100vh - 60px);
  background: var(--surface);
  border-radius: var(--radius-inner);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.shot-list .list-head {
  font-size: var(--fs-small);
  color: var(--faint);
  padding: 2px 6px 8px;
}

.shot-list .list-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.shot-list .list-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: var(--fs-small);
  color: var(--muted);
  line-height: 1.7;
}

/* 集切换：一个项目可以连载多集，镜头列表按集过滤 */
.ep-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 2px 10px;
}

.shot-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .12s;
}

.shot-item:hover { background: #191919; }
.shot-item.selected { background: var(--raised); }

.shot-item .no {
  font-size: var(--fs-small);
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  width: 18px;
  flex: none;
}

.shot-item .desc {
  font-size: var(--fs-small);
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shot-item.selected .desc { color: var(--text); }

.canvas-panel {
  background: var(--surface);
  border-radius: var(--radius-inner);
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.wb-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.shot-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.shot-head h2 { margin: 0; font-size: var(--fs-section); font-weight: 600; }

.shot-desc {
  margin: 0;
  font-size: var(--fs-section);
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.kv { display: flex; flex-direction: column; gap: 0; }

.kv-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  font-size: var(--fs-body);
}

.kv-row:last-child { border-bottom: none; }
.kv-row .k { color: var(--muted); font-size: var(--fs-small); }
.kv-row .v { font-variant-numeric: tabular-nums; text-align: right; }

.preview-box {
  background: #0a0a0a;
  border-radius: var(--radius-inner);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preview-box video { width: 100%; height: 100%; object-fit: contain; }

.preview-box .empty {
  font-size: var(--fs-small);
  color: var(--faint);
  text-align: center;
  padding: 20px;
  line-height: 1.7;
}

/* ---------- 空状态 / 提示 ---------- */

.empty-block {
  border: 1px dashed var(--control);
  border-radius: var(--radius-inner);
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: 1.7;
}

.empty-block .title { color: var(--text); font-weight: 500; margin-bottom: 6px; }

/* 加载态：用等高的扁平灰条占位，数据落地时布局不跳动 */
.skeleton-line {
  height: 14px;
  border-radius: 6px;
  background: #161616;
}

.notice {
  background: var(--pill-warning-bg);
  color: var(--pill-warning-ink);
  border-radius: var(--radius-inner);
  padding: 12px 14px;
  font-size: var(--fs-small);
  line-height: 1.7;
}

/* ---------- 提示条 ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%) translateY(8px);
  background: var(--raised);
  color: var(--text);
  padding: 10px 18px;
  border-radius: var(--radius-control);
  font-size: var(--fs-body);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s, transform .16s;
  max-width: 80vw;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 弹窗 ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

.modal {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal h3 { margin: 0; font-size: var(--fs-section); font-weight: 600; }
.modal p { margin: 0; font-size: var(--fs-small); color: var(--muted); line-height: 1.7; }
.modal .error { color: var(--negative); font-size: var(--fs-small); min-height: 16px; margin: 0; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; }

/* ---------- 手机 ---------- */

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }

  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--ground);
    border-top: 1px solid var(--rule);
    z-index: 30;
  }

  .mobile-nav a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-small);
    color: var(--muted);
  }

  .mobile-nav a.active { color: var(--text); }

  .canvas { padding: 16px 16px 76px; gap: 20px; }
  .site-bar { padding: 0 16px; }
  .site-canvas { padding: 20px 16px 76px; gap: 22px; }

  .drama-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; }
  .hero .cover { width: 140px; }
  .episode-grid { grid-template-columns: repeat(4, 1fr); }

  .kpi-strip {
    grid-auto-flow: row;
    grid-template-columns: 1fr 1fr;
  }

  .kpi + .kpi::before { display: none; }
  .kpi { border-bottom: 1px solid var(--raised); }
  .kpi:nth-child(odd) { border-right: 1px solid var(--raised); }

  .workbench { grid-template-columns: 1fr; padding: 8px 8px 76px; }
  .shot-list { max-height: 220px; }

  .player { height: auto; width: 100%; max-width: 100%; aspect-ratio: 9 / 16; }
  .watch-stage { padding: 0 12px 12px; }

  h1.page-title { font-size: 18px; }
}

/* 手机端才显示的导航，桌面隐藏 */
.mobile-nav { display: none; }

/* 手机端隐藏贴边的次要列，避免文字顶到屏幕边缘 */
@media (max-width: 900px) {
  .enter-hint { display: none; }
}

/* 项目进度：数据色的唯一落点 */
.bar {
  height: 8px;
  border-radius: 4px;
  background: var(--raised);
  overflow: hidden;
  margin-top: 8px;
}

.bar > span {
  display: block;
  height: 100%;
  min-width: 6px;
  background: var(--accent);
}

/* ==========================================================================
   Netflix 语言覆盖层
   上一版是「安静的后台界面」：小字、纯黑、几乎无色、大量留白。
   这一版按长视频站的做法重做：大字标题、红色强调、大幅海报、行式布局。
   覆盖层放在最后，靠层叠生效，不动上面的组件结构。
   ========================================================================== */

:root {
  --ground: #0B0B0F;
  --surface: #17171E;
  --raised: #24242E;
  --border: #24242E;
  --rule: #1E1E26;
  --control: #5A5A66;

  --text: #FFFFFF;
  --muted: #B5B5BC;
  --faint: #8C8C96;

  --accent: #E50914;
  --positive: #46D369;

  --radius-card: 6px;
  --radius-inner: 6px;
  --radius-control: 4px;

  --fs-title: 32px;
  --fs-section: 20px;
  --fs-kpi: 28px;
  --fs-body: 15px;
  --fs-small: 13px;

  --pad: 24px;
  --gap: 14px;
}

body { background: #0B0B0F; }

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.site-bar {
  height: 68px;
  padding: 0 40px;
  border-bottom: 1px solid var(--rule);
}

.site-bar .links { gap: 22px; }
.site-bar .links a { font-size: 14px; color: var(--muted); }
.site-bar .links a:hover,
.site-bar .links a.active { color: #fff; }

/* ---------- 通栏主视觉 ---------- */

.billboard {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #000;
}

.billboard > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.billboard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 15, .58);
}

.billboard .inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 0 40px 56px;
}

.billboard .kicker {
  color: #FF4A50;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
}

.billboard h1 {
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 18px;
  max-width: 16ch;
}

.billboard p {
  font-size: 16px;
  line-height: 1.7;
  color: #E3E3E6;
  max-width: 56ch;
  margin: 0 0 26px;
}

.billboard .tags { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }

/* ---------- 按钮：Netflix 形态 ---------- */

.btn {
  height: 44px;
  padding: 0 24px;
  border: none;
  border-radius: var(--radius-control);
  background: rgba(109, 109, 110, .26);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.btn:hover { background: rgba(109, 109, 110, .44); }
.btn:active { background: rgba(109, 109, 110, .55); }

.btn.primary {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #0B0B0F;
}

.btn.primary:hover { background: #E6E6E6; }

.btn.small { height: 32px; padding: 0 14px; font-size: 13px; }
.btn.text { background: transparent; height: auto; padding: 0; color: var(--muted); }
.btn.text:hover { color: #fff; background: transparent; }

.pill {
  height: 24px;
  padding: 0 9px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
}

.pill.positive { background: rgba(70, 211, 105, .16); color: var(--positive); }
.pill.warning { background: rgba(229, 9, 20, .16); color: #FF6B72; }
.pill.neutral { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- 选集条：海报下方一整行 ---------- */

.ep-strip {
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 40px 0;
}

.ep-strip .head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.ep-strip .head h2 { font-size: 21px; font-weight: 700; margin: 0; }

.ep-strip .row-note { color: #FF4A50; font-weight: 600; }

.ep-strip .tiles {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ep-strip .ep-cell {
  width: 78px;
  height: 78px;
  border-radius: 5px;
  background: #1B1B22;
}

.ep-strip .ep-cell:hover { background: #2A2A33; }
.ep-strip .ep-cell .no { font-size: 20px; font-weight: 700; }
.ep-strip .ep-cell .tag { font-size: 11px; }

.ep-foot {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--faint);
  line-height: 1.7;
  max-width: 60ch;
}

/* ---------- 行：大标题 + 大海报 ---------- */

.row-section { padding: 34px 0 30px; }

.row-head {
  max-width: 1280px;
  padding: 0 40px;
  margin: 0 auto 16px;
}

.row-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; }
.row-note { font-size: 13px; }

.row-scroll {
  max-width: 1280px;
  padding: 4px 40px 14px;
}

.poster-card {
  flex: 0 0 262px;
  border-radius: 5px;
  padding: 18px;
  transition: transform .2s ease;
}

.poster-card:hover { transform: scale(1.045); }
.poster-card .t { font-size: 18px; font-weight: 700; }
.poster-card::after { height: 52%; background: rgba(11, 11, 15, .62); }

/* ---------- 链路 ---------- */

.chain-list { max-width: 1280px; padding: 0 40px; }
.chain-row { grid-template-columns: 170px 1fr; padding: 22px 0; }
.chain-row .v { font-size: 16px; line-height: 1.85; }
.chain-row video { width: 280px; border-radius: 6px; }

@media (max-width: 900px) {
  .site-bar { padding: 0 16px; }
  .billboard { min-height: 420px; }
  .billboard .inner { padding: 0 16px 34px; }
  .billboard h1 { font-size: 34px; }
  .ep-strip { padding: 22px 16px 0; }
  .ep-strip .ep-cell { width: 60px; height: 60px; }
  .row-head { padding: 0 16px; }
  .row-scroll { padding: 4px 16px 14px; }
  .poster-card { flex: 0 0 196px; padding: 14px; }
  .chain-list { padding: 0 16px; }
  .chain-row { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- 其余页面同步新语言 ---------- */

.site-canvas {
  max-width: 1280px;
  padding: 42px 40px 80px;
  gap: 34px;
}

h1.page-title {
  font-size: 34px;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.page-sub { font-size: 15px; color: var(--muted); }

.panel,
.kpi-strip,
.canvas-panel {
  border-radius: 6px;
  background: var(--surface);
}

.panel-title { font-size: 21px; font-weight: 700; }

.cover { border-radius: 6px; }

.hero { grid-template-columns: 240px 1fr; gap: 32px; }
.hero .cover { width: 240px; }
.hero-info h1 { font-size: 40px; letter-spacing: -0.03em; font-weight: 800; }
.hero-info .synopsis { font-size: 15px; line-height: 1.8; }
.fact .v { font-size: 15px; }

.episode-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.ep-cell { border-radius: 5px; background: #1B1B22; }
.ep-cell .no { font-size: 20px; font-weight: 700; }
.ep-cell:hover { background: #2A2A33; }

.kpi { padding: 22px 24px; }
.kpi .k-value { font-size: 30px; font-weight: 700; }

.watch-bar { height: 64px; }
.paywall .price { font-size: 40px; font-weight: 800; }

.profile-row .who .name { font-size: 20px; }

.sidebar { width: 220px; }
.nav-item { height: 38px; border-radius: 4px; }
.nav-item.active { color: #fff; font-weight: 600; }
.sidebar-foot .credits { font-size: 22px; font-weight: 700; }

.row {
  min-height: 68px;
  padding: 14px 0;
}

@media (max-width: 900px) {
  .site-canvas { padding: 24px 16px 72px; gap: 22px; }
  h1.page-title { font-size: 28px; }
  .hero { grid-template-columns: 1fr; }
  .hero .cover { width: 140px; }
  .hero-info h1 { font-size: 30px; }
  .episode-grid { grid-template-columns: repeat(4, 1fr); }
  .kpi .k-value { font-size: 24px; }
}

/* ==========================================================================
   参考站语言（fastmovieai.com 实测参数）
   黑底 #000 / 白字 / zinc 灰 #a1a1aa / Inter / 按钮 47px 胶囊 / 卡片 20px 圆角
   没有彩色强调，主操作靠反白；章节标题居中，下面一行小灰字。
   ========================================================================== */

:root {
  --ground: #000000;
  --surface: #111111;
  --raised: #1a1a1a;
  --border: #262626;
  --rule: #1f1f1f;
  --control: #3f3f46;

  --text: #ffffff;
  --muted: #a1a1aa;
  --faint: #8a8a93;

  --accent: #ffffff;
  --positive: #4ade80;

  --radius-card: 20px;
  --radius-inner: 12px;
  --radius-control: 9999px;

  --fs-title: 34px;
  --fs-section: 22px;
  --fs-kpi: 28px;
  --fs-body: 15px;
  --fs-small: 13px;
}

body { background: #000; }

.brand-name { color: #fff; font-weight: 700; font-size: 19px; }

.site-bar {
  height: 64px;
  padding: 0 24px;
  border-bottom: 1px solid var(--rule);
  background: #000;
}

.site-bar .links { gap: 26px; }
.site-bar .links a { font-size: 14px; color: var(--muted); }
.site-bar .links a:hover,
.site-bar .links a.active { color: #fff; }

/* 胶囊按钮 */
.btn {
  height: 44px;
  padding: 0 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: transparent;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}

.btn:hover { background: #171717; border-color: #3f3f46; }

.btn.primary {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
  font-weight: 600;
}

.btn.primary:hover { background: #e4e4e7; border-color: #e4e4e7; }

.btn.small { height: 34px; padding: 0 16px; font-size: 13px; }

.pill {
  height: 26px;
  padding: 0 11px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
}

.pill.neutral { background: #171717; color: #d4d4d8; border: 1px solid var(--border); }
.pill.positive { background: rgba(74, 222, 128, .12); color: var(--positive); }
.pill.warning { background: rgba(250, 204, 21, .12); color: #facc15; }

/* ---------- 居中首屏 ---------- */

.landing { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.hero-center { text-align: center; padding: 92px 0 40px; }

.hero-center .kicker {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 12px;
}

.hero-center h1 {
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0;
}

.hero-center .sub {
  margin: 18px auto 0;
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

.badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 26px 0 30px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.proof {
  margin-top: 26px;
  font-size: 13px;
  color: var(--faint);
}

/* ---------- 章节标题（居中） ---------- */

.sec-head { text-align: center; padding: 72px 0 32px; }

.sec-head h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}

.sec-head p { margin: 0; font-size: 15px; color: var(--muted); }

.sec-head .sec-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  color: #fff;
  border-bottom: 1px solid #3f3f46;
  padding-bottom: 2px;
}

/* ---------- 功能卡 ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  background: #0d0d0d;
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 28px;
}

.feature h3 { margin: 0 0 10px; font-size: 17px; font-weight: 600; }
.feature p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--muted); }

/* ---------- 作品广场 ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery .poster-card {
  flex: none;
  width: 100%;
  border-radius: var(--radius-card);
}

/* ---------- 价格卡 ---------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.price-card {
  background: #0d0d0d;
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-card h3 { margin: 0; font-size: 17px; font-weight: 600; }
.price-card .amount { font-size: 38px; font-weight: 700; letter-spacing: -0.03em; }
.price-card .amount small { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.price-card ul { margin: 6px 0 18px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.price-card li { font-size: 14px; color: var(--muted); line-height: 1.6; }
.price-card .btn { margin-top: auto; width: 100%; }

/* ---------- 页脚 ---------- */

.footer {
  border-top: 1px solid var(--rule);
  margin-top: 80px;
  padding: 40px 24px 56px;
  text-align: center;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.9;
}

@media (max-width: 900px) {
  .hero-center { padding: 56px 0 28px; }
  .feature-grid, .price-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .sec-head { padding: 48px 0 24px; }
  .site-bar { padding: 0 16px; }
  .landing { padding: 0 16px; }
}

/* ==========================================================================
   内容页（详情 / 播放 / 我的 / 创作）沿用参考站语言
   居中大标题 + 一行灰副标题 + 胶囊按钮 + 20px 圆角卡片
   ========================================================================== */

.page-hero {
  text-align: center;
  padding: 66px 24px 18px;
  max-width: 1100px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 14px;
}

.page-hero .sub {
  margin: 0 auto;
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

.page-hero .badges { margin: 22px 0 0; }
.page-hero .hero-actions { margin-top: 26px; }

.badge {
  font-size: 13px;
  color: #d4d4d8;
  background: #0d0d0d;
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 9999px;
}

.narrow { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.panel-20 {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
}

/* 选集网格放大 */
.narrow .episode-grid,
.ep-grid-wrap .episode-grid {
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 12px;
}

.narrow .ep-cell,
.ep-grid-wrap .ep-cell {
  border-radius: 12px;
  background: #141414;
  border: 1px solid var(--rule);
}

.narrow .ep-cell:hover,
.ep-grid-wrap .ep-cell:hover { background: #1c1c1c; border-color: #3f3f46; }
.narrow .ep-cell .no,
.ep-grid-wrap .ep-cell .no { font-size: 22px; font-weight: 700; }
.narrow .ep-cell .tag,
.ep-grid-wrap .ep-cell .tag { font-size: 12px; }

/* 播放页 */
.watch-page { min-height: 100vh; display: flex; flex-direction: column; }

.player-card {
  background: #0d0d0d;
  border: 1px solid var(--rule);
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  max-width: 440px;
  margin: 28px auto 0;
}

.player-card video { width: 100%; display: block; background: #000; }

.watch-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 26px 24px 8px;
}

/* 我的 / 创作：数字卡 */
.stat-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: #0d0d0d;
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 26px;
  text-align: center;
}

.stat-card .v { font-size: 38px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-card .k { margin-top: 6px; font-size: 13px; color: var(--muted); }

/* 片库 / 项目列表 */
.list-20 {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.list-20 .row {
  padding: 16px 24px;
  border-bottom: 1px solid var(--rule);
  min-height: 66px;
}

.list-20 .row:last-child { border-bottom: none; }
.list-20 .row:hover { background: var(--raised); }

@media (max-width: 900px) {
  .page-hero { padding: 40px 16px 14px; }
  .page-hero h1 { font-size: 30px; }
  .narrow { padding: 0 16px; }
  .panel-20 { padding: 20px; }
  .stat-3, .stat-4 { grid-template-columns: 1fr 1fr; }
  .player-card { max-width: 100%; margin-top: 16px; border-radius: 16px; }
  .list-20 .row { padding: 14px 16px; }
}

/* 通用小标题与说明 */
.kicker { font-size: 15px; color: var(--muted); margin-bottom: 12px; }
.ep-note { text-align: center; font-size: 13px; color: var(--faint); line-height: 1.8; margin: 20px auto 0; max-width: 60ch; }

/* ---------- 首屏背景视频 ---------- */

.hero-center {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 104px 24px 84px;
  background: #000;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* 压暗，保证文字可读；不用渐变 */
.hero-center::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .66);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 900px) {
  .hero-center { padding: 56px 16px 44px; min-height: 460px; }
}

/* ---------- 工作台 ---------- */

.wb-head {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 24px 4px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.wb-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.workbench {
  max-width: 1280px;
  margin: 0 auto;
  grid-template-columns: 260px 1fr;
  gap: 14px;
  padding: 18px 24px 60px;
  min-height: auto;
}

.shot-list,
.canvas-panel {
  border-radius: 20px;
  background: #0d0d0d;
  border: 1px solid var(--rule);
}

.canvas-panel { padding: 24px; }

.shot-list { padding: 14px; }
.shot-item { border-radius: 8px; padding: 10px 9px; }
.shot-item.selected { background: #1c1c1c; }

.preview-box { border-radius: 12px; }

@media (max-width: 900px) {
  .wb-head { padding: 16px 16px 0; }
  .workbench { grid-template-columns: 1fr; padding: 14px 16px 70px; }
}

/* 播放页：桌面左右分栏，播放器不再孤零零居中留白 */
.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 38px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 24px 0;
  align-items: start;
}

.watch-side .page-hero { text-align: left; padding: 0 0 18px; max-width: none; }
.watch-side .page-hero h1 { font-size: clamp(26px, 2.6vw, 38px); }
.watch-side .watch-actions { justify-content: flex-start; padding: 0 0 26px; }
.watch-side .feature-grid { grid-template-columns: 1fr; gap: 12px; }
.watch-side .feature { padding: 20px; }

@media (max-width: 900px) {
  .watch-layout { grid-template-columns: 1fr; gap: 18px; padding: 16px; }
  .watch-side .page-hero { text-align: center; }
  .watch-side .watch-actions { justify-content: center; }
}

/* 链路块收进落地页容器 */
.landing .chain-list { max-width: none; padding: 0; }
.landing .chain-row { grid-template-columns: 190px 1fr; gap: 30px; padding: 24px 0; }
.landing .chain-row:first-child { border-top: 1px solid var(--rule); }
.landing .chain-row .k { font-size: 14px; color: var(--muted); }
.landing .chain-row .v { font-size: 16px; line-height: 1.9; }
.landing .chain-row video { width: 300px; border-radius: 12px; border: 1px solid var(--rule); }

@media (max-width: 900px) {
  .landing .chain-row { grid-template-columns: 1fr; gap: 8px; padding: 18px 0; }
  .landing .chain-row video { width: 100%; max-width: 320px; }
}

/* 章节列表 */
.chapter-row {
  border-top: 1px solid var(--rule);
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cr-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cr-no { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.cr-title { font-size: 15px; font-weight: 600; }
.cr-beat { font-size: 13px; color: var(--muted); line-height: 1.7; }

.cr-summary {
  font-size: 12px;
  color: var(--faint);
  line-height: 1.7;
  background: #0a0a0a;
  border-radius: 8px;
  padding: 10px 12px;
}

.cr-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* 帮助文字里常有长接口路径，手机宽度下必须允许断词，否则会顶出屏幕 */
.field .help {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* flex 子项的 min-width 默认是 auto，长 token 会把容器顶宽；显式归零才允许断行 */
.field > * {
  min-width: 0;
  max-width: 100%;
}

/* 网格子项同样是 min-width:auto，宽内容（长下拉项、长 URL）会把整列顶宽 */
.form-grid > *,
.form-row > * {
  min-width: 0;
}

.field select {
  max-width: 100%;
}

/* ==========================================================================
   封面：卡片、详情 hero。没有封面时用标题兜底，不要所有剧共用一张占位图
   ========================================================================== */

.poster-card .cover-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(255, 255, 255, .8);
  background: linear-gradient(150deg, #1c1c22, #0a0a0c 72%);
}

.page-hero .hero-poster {
  display: block;
  width: min(300px, 62vw);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
  margin: 0 auto 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

/* 创作端：剧场封面预览与换封面 */
.cover-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.cover-row .cover-thumb {
  width: 92px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  background: #101010;
  flex: 0 0 auto;
}

.cover-row .cover-meta { min-width: 0; }
.cover-row .cover-k { font-size: 13px; color: var(--muted); }
