/* 《黑球》民间电影学院 —— 页面样式
   只作用于 .bba；颜色、间距、圆角优先取站点令牌；
   system-reading 的 !important 用更高特异性 + !important 局部压住。 */

main.bba {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.bba {
  --bba-max: 1200px;
  --bba-gutter: clamp(20px, 5vw, 64px);
  --bba-radius: var(--radius-2xl, 12px);
  background: var(--canvas, #fff);
  color: var(--primary, #1d1d1f);
  overflow: clip;
}

.bba .bba-wrap {
  width: 100%;
  max-width: var(--bba-max);
  margin-inline: auto;
  padding-inline: var(--bba-gutter);
}

.bba [id] { scroll-margin-top: 84px; }

/* appearance-logo.css 把所有 button 染成蓝色并强制透明背景；
   学院页的按钮要靠操作语义自己上色，这里统一回收。 */
.bba button {
  color: inherit !important;
  border-color: var(--edge, #d2d2d7) !important;
  background: transparent !important;
}

/* ---------- 首屏 ---------- */

.bba-hero {
  position: relative;
  min-height: clamp(600px, 88svh, 860px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
  background: #08090a;
  color: #fff;
}
.bba-hero-media { position: absolute; inset: 0; z-index: -2; }
.bba-hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  filter: saturate(.86) brightness(.8);
  transform: scale(1.04);
  animation: bba-drift 30s ease-in-out infinite alternate;
}
.bba-hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8,9,10,.62) 0%, rgba(8,9,10,.12) 34%, rgba(8,9,10,.5) 70%, rgba(8,9,10,.95) 100%),
    linear-gradient(90deg, rgba(8,9,10,.78) 0%, rgba(8,9,10,.22) 54%, rgba(8,9,10,.15) 100%);
}
.bba-hero-inner {
  padding-block: clamp(96px, 15vh, 180px) clamp(44px, 8vh, 88px);
}
.bba-hero-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding-top: calc(22px + env(safe-area-inset-top, 0px));
}
.bba-back {
  display: inline-block;
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255,255,255,.72) !important;
  text-decoration: none;
}
.bba-back:hover { color: #fff !important; }

.bba .bba-hero .bba-kicker { color: rgba(255,255,255,.72); }
.bba .bba-hero h1 {
  margin: 10px 0 22px;
  font-size: clamp(40px, 6.6vw, 92px) !important;
  line-height: .98 !important;
  font-weight: 600 !important;
  letter-spacing: -.05em !important;
  color: #fff !important;
}
.bba-hero .bba-lede {
  max-width: 34em;
  margin: 0 0 14px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.72;
  color: rgba(255,255,255,.86);
}
.bba-hero-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,.62);
}
.bba-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 26px; }
.bba-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.bba-btn-solid { background: #f6f3eb; }
.bba-btn-solid span { color: #141414; }
.bba-btn-solid:hover { background: #fff; }
.bba-btn-ghost { border-color: rgba(255,255,255,.42); color: #fff !important; }
.bba-btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.bba-meta {
  margin: 0;
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(255,255,255,.55);
}

/* 首屏文字逐级出现（无 JS） */
.bba-hero .bba-kicker,
.bba-hero h1,
.bba-hero .bba-lede,
.bba-hero-sub,
.bba-hero .bba-actions,
.bba-hero .bba-meta { animation: bba-rise .9s var(--ease-out, cubic-bezier(.16,1,.3,1)) both; }
.bba-hero h1 { animation-delay: .06s; }
.bba-hero .bba-lede { animation-delay: .12s; }
.bba-hero-sub { animation-delay: .18s; }
.bba-hero .bba-actions { animation-delay: .24s; }
.bba-hero .bba-meta { animation-delay: .3s; }

/* ---------- 通用 ---------- */

.bba-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--secondary, #6e6e73);
}
.bba-section { padding-block: clamp(56px, 7vw, 96px); }
.bba-head { max-width: 760px; margin-bottom: 32px; }
.bba .bba-head h2 {
  margin: 10px 0 14px;
  font-size: clamp(30px, 4.2vw, 48px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.03em !important;
  font-weight: 600 !important;
  color: var(--primary, #1d1d1f) !important;
}
.bba-head > p:last-child {
  margin: 0;
  max-width: 58ch;
  font-size: 16px;
  line-height: 1.72;
  color: var(--secondary, #6e6e73);
}
.bba-fine {
  margin: 16px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--secondary, #6e6e73);
}

/* 入场：默认可见，JS 才加 .bba-reveal */
.bba-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease-out, cubic-bezier(.16,1,.3,1)), transform .7s var(--ease-out, cubic-bezier(.16,1,.3,1));
}
.bba-reveal.is-in { opacity: 1; transform: none; }

/* ---------- 预告片 ---------- */

.bba-player {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #0b0c0e;
  color: #fff;
}
.bba-screen { position: relative; aspect-ratio: 16 / 9; background: #0b0c0e; overflow: hidden; cursor: pointer; }
.bba-video[hidden] { display: none; }
.bba-screen .bba-video {
  display: block; width: 100%; height: 100%;
  margin: 0 !important; border: 0 !important;
  object-fit: cover; background: #0b0c0e;
  transform: scale(1.06);
}
.bba-soundboard {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3.6vw, 28px);
  background: radial-gradient(ellipse at 50% 34%, #17191c 0%, #050506 62%);
  overflow: hidden;
  pointer-events: none;
}
.bba-soundboard[hidden] { display: none; }
.bba-soundboard-word {
  margin: 0;
  font-size: clamp(32px, 6.4vw, 84px);
  line-height: .88;
  font-weight: 600;
  letter-spacing: -.02em;
  text-align: center;
  color: rgba(255,255,255,.13);
}
.bba-eq {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: clamp(28px, 4.2vw, 44px);
}
.bba-eq i {
  display: block;
  width: 4px;
  height: 100%;
  background: rgba(255,255,255,.62);
  transform-origin: bottom;
  transform: scaleY(.4);
  animation: bba-eq 1.1s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.bba-player[data-playing="true"] .bba-eq i { animation-play-state: running; }
.bba-eq i:nth-child(2) { animation-delay: .12s; }
.bba-eq i:nth-child(3) { animation-delay: .28s; }
.bba-eq i:nth-child(4) { animation-delay: .06s; }
.bba-eq i:nth-child(5) { animation-delay: .34s; }
.bba-eq i:nth-child(6) { animation-delay: .2s; }
.bba-eq i:nth-child(7) { animation-delay: .42s; }
.bba-player-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 16px 0 0;
  background: transparent;
}
.bba-controls {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
}
.bba-transport {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 300px;
  min-width: 0;
}
.bba .bba-player .bba-transport-play,
.bba .bba-media .bba-transport-play {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0 !important;
  border-radius: 50%;
  background: #f6f3eb !important;
  color: #141414 !important;
  cursor: pointer;
}
.bba-transport-play svg { display: block; width: 14px; height: 14px; fill: currentColor; }
.bba-transport-play .bba-ico-pause { display: none; }
.bba-transport-play[data-playing="true"] .bba-ico-play { display: none; }
.bba-transport-play[data-playing="true"] .bba-ico-pause { display: block; }
.bba .bba-transport-play:focus-visible { outline: 2px solid #f6f3eb !important; outline-offset: 3px; }
.bba-time {
  flex: none;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  color: rgba(255,255,255,.72);
  white-space: nowrap;
}
.bba-seek {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 auto;
  min-width: 56px;
  height: 20px;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.bba-seek::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: rgba(255,255,255,.26); }
.bba-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px; margin-top: -4.5px;
  border: 0; border-radius: 50%; background: #f6f3eb;
}
.bba-seek::-moz-range-track { height: 3px; border-radius: 2px; background: rgba(255,255,255,.26); }
.bba-seek::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #f6f3eb; }
.bba .bba-seek:focus-visible { outline: 2px solid rgba(246,243,235,.8); outline-offset: 4px; }
.bba-modes { display: flex; flex-wrap: wrap; gap: 6px; }
.bba-modes button {
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,.82);
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
}
.bba-modes button:hover { border-color: rgba(255,255,255,.6); color: #fff; }
.bba .bba-modes button[aria-pressed="true"] { background: #f6f3eb !important; border-color: #f6f3eb !important; color: #141414 !important; }
.bba-player-note {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--secondary, #6e6e73);
}

/* ---------- 五场戏 ---------- */

.bba-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(210px, 23vw, 292px);
  gap: clamp(12px, 1.6vw, 20px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 14px;
  scrollbar-width: none;
}
.bba-rail::-webkit-scrollbar { display: none; }
.bba-card {
  display: block;
  padding: 0;
  border: 0 !important;
  background: none !important;
  color: var(--primary, #1d1d1f) !important;
  font: inherit;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
}
.bba-card-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: var(--wash, #f5f5f7);
  outline: 2px solid transparent;
  outline-offset: 3px;
  transition: outline-color .3s ease;
}
.bba-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease-out, cubic-bezier(.16,1,.3,1));
}
.bba-card:hover .bba-card-media img { transform: scale(1.035); }
.bba-card[aria-selected="true"] .bba-card-media { outline-color: var(--primary, #1d1d1f); }
.bba-card-title {
  display: block;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.bba-card-q {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--secondary, #6e6e73);
}
.bba-card:focus-visible { outline: none; }
.bba-card:focus-visible .bba-card-media { outline-color: var(--primary, #1d1d1f); }

.bba-card-snow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: linear-gradient(165deg, #0c1013 0%, #3c474f 56%, #e7ecef 100%);
  color: #fff;
}
.bba-card-snow b { font-size: 58px; line-height: 1; font-weight: 500; }
.bba-card-snow small { font-size: 10px; letter-spacing: .34em; color: rgba(255,255,255,.72); }

.bba-panels { margin-top: clamp(30px, 4vw, 52px); }
.bba-panel:focus { outline: none; }
.bba-js .bba-panel { display: none; }
.bba-js .bba-panel.is-active { display: block; animation: bba-fade .5s var(--ease-out, cubic-bezier(.16,1,.3,1)) both; }
.bba-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
}
.bba-figure { margin: 0; position: sticky; top: 92px; }
.bba-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: var(--wash, #f5f5f7);
}
.bba-figure figcaption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--secondary, #6e6e73);
}
.bba .bba-panel-body h3 {
  margin: 8px 0 14px;
  font-size: clamp(27px, 3.4vw, 40px) !important;
  line-height: 1.1 !important;
  letter-spacing: -.025em !important;
  font-weight: 600 !important;
  color: var(--primary, #1d1d1f) !important;
}
.bba-lead {
  margin: 0;
  font-size: clamp(15.5px, 1.3vw, 17px);
  line-height: 1.78;
}
.bba-relay-block { margin-top: 24px; }
.bba-label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--secondary, #6e6e73);
}
.bba-relay { margin: 0; padding: 0; list-style: none; }
.bba-relay li {
  display: grid;
  grid-template-columns: 9.6rem minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  font-size: 13.5px;
  line-height: 1.62;
}
.bba-relay b { font-weight: 600; color: var(--secondary, #6e6e73); }
.bba-relay span { min-width: 0; }

/* 实验台 */
.bba-lab {
  margin-top: 32px;
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: 12px;
  background: var(--wash, #f5f5f7);
}
.bba-lab-title { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.45; }
.bba-lab-desc {
  margin: 6px 0 16px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--secondary, #6e6e73);
}
.bba-lab-foot {
  margin: 14px 0 0;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--secondary, #6e6e73);
}

.bba-layer-toggles,
.bba-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bba-layer-toggles button,
.bba-toggles button {
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid var(--edge, #d2d2d7);
  border-radius: 999px;
  background: var(--canvas, #fff);
  color: var(--primary, #1d1d1f);
  font: inherit;
  font-size: 12.5px;
  line-height: 1.2;
  cursor: pointer;
}
.bba .bba-layer-toggles button[aria-pressed="true"],
.bba .bba-toggles button[aria-pressed="true"],
.bba .bba-cut .bba-modes button[aria-pressed="true"] {
  background-color: #1d1d1f !important;
  border-color: #1d1d1f !important;
  color: #ffffff !important;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .bba .bba-layer-toggles button[aria-pressed="true"],
  html:not([data-theme]) .bba .bba-toggles button[aria-pressed="true"],
  html:not([data-theme]) .bba .bba-cut .bba-modes button[aria-pressed="true"] {
    background-color: #f5f5f7 !important;
    border-color: #f5f5f7 !important;
    color: #1c1c1e !important;
  }
}
html[data-theme="night"] .bba .bba-layer-toggles button[aria-pressed="true"],
html[data-theme="night"] .bba .bba-toggles button[aria-pressed="true"],
html[data-theme="night"] .bba .bba-cut .bba-modes button[aria-pressed="true"] {
  background-color: #f5f5f7 !important;
  border-color: #f5f5f7 !important;
  color: #1c1c1e !important;
}
/* 选中态再加一道不依赖底色的标记：外框 + 勾 */
.bba .bba-layer-toggles button[aria-pressed="true"],
.bba .bba-toggles button[aria-pressed="true"],
.bba .bba-cut .bba-modes button[aria-pressed="true"] {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  font-weight: 600;
}
.bba .bba-layer-toggles button[aria-pressed="true"]::before,
.bba .bba-toggles button[aria-pressed="true"]::before,
.bba .bba-cut .bba-modes button[aria-pressed="true"]::before {
  content: "✓";
  margin-right: 5px;
  font-size: 11px;
}

/* 剪法实验 */
.bba-cut-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 4px 0 12px;
  overflow: hidden;
  border-radius: 12px;
  background: #0b0b0c;
}
.bba-cut-stage > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bba-crop {
  position: absolute;
  border: 1px solid rgba(255,255,255,.92);
  box-shadow: 0 0 0 2000px rgba(0,0,0,.56);
  transition: inset .45s var(--ease-out, cubic-bezier(.16,1,.3,1)), width .45s var(--ease-out, cubic-bezier(.16,1,.3,1)), height .45s var(--ease-out, cubic-bezier(.16,1,.3,1));
  pointer-events: none;
}
.bba-crop::after {
  content: attr(data-label);
  position: absolute;
  left: -1px;
  top: -22px;
  padding: 1px 6px;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: 10.5px;
  line-height: 1.6;
  letter-spacing: .08em;
  white-space: nowrap;
}
.bba-cut-stage[data-mode="a"] .bba-crop { left: 28%; top: 10%; width: 18%; height: 22%; }
.bba-cut-stage[data-mode="b"] .bba-crop { left: 26%; top: 34%; width: 38%; height: 50%; }
.bba-cut-stage[data-mode="c"] .bba-crop { left: 41%; top: 22%; width: 16%; height: 20%; }
.bba-cut-modes { margin: 12px 0; }
/* 剪法三键：必须压过两处外部规则才看得见边框——
   ① `.bba button{background:transparent!important}` 会把胶囊底色打空；
   ② 一致性脚本打的 `.apple-ctl{border-bottom:0!important}` 会吃掉底边。
   用 !important + 更高特异性把「四边 + 底色」收回来，并给可读的对比度。 */
.bba-cut .bba-modes button {
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid rgba(0, 0, 0, .34) !important;
  border-radius: 999px;
  background: var(--canvas, #fff) !important;
  color: var(--primary, #1d1d1f);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}
.bba-cut .bba-modes button:hover { border-color: rgba(0, 0, 0, .66) !important; }
html[data-theme="night"] .bba-cut .bba-modes button {
  border-color: rgba(255, 255, 255, .42) !important;
  background: rgba(255, 255, 255, .07) !important;
}
html[data-theme="night"] .bba-cut .bba-modes button:hover { border-color: rgba(255, 255, 255, .72) !important; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .bba-cut .bba-modes button {
    border-color: rgba(255, 255, 255, .42) !important;
    background: rgba(255, 255, 255, .07) !important;
  }
  html:not([data-theme]) .bba-cut .bba-modes button:hover { border-color: rgba(255, 255, 255, .72) !important; }
}

.bba-seq {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.bba-seq li {
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--canvas, #fff);
  font-size: 12px;
  line-height: 1.4;
}
.bba-readouts { display: grid; gap: 8px; }
.bba-readout {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: var(--secondary, #6e6e73);
}
.bba-readout-bar {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: var(--edge, #d2d2d7);
  overflow: hidden;
}
.bba-readout-bar b {
  display: block;
  height: 100%;
  width: calc(var(--v, 50) * 1%);
  background: var(--primary, #1d1d1f);
  border-radius: inherit;
  transition: width .4s var(--ease-out, cubic-bezier(.16,1,.3,1));
}

.bba-warn {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #b3264d;
}
.bba-warn[hidden] { display: none; }

/* 雪实验 */
/* 证据 */
.bba-evidence {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--edge, #d2d2d7);
}
.bba-evidence p {
  margin: 0;
  font-size: 13px;
  line-height: 1.72;
  color: var(--secondary, #6e6e73);
}
.bba-evidence b { color: var(--primary, #1d1d1f); font-weight: 600; }
.bba-source {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--secondary, #6e6e73);
}
.bba-source a,
.bba-dept a,
.bba-next a { color: inherit; text-underline-offset: .18em; }

/* ---------- 八个部门 ---------- */

.bba-dept-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(28px, 4vw, 60px);
}
.bba-dept { border-top: 0; border-bottom: 0; }
.bba summary { color: var(--primary, #1d1d1f) !important; }
.bba-dept summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  align-items: baseline;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
}
.bba-dept summary::-webkit-details-marker { display: none; }
.bba-dept-name { font-size: 16px; font-weight: 600; line-height: 1.45; }
.bba-dept-q {
  grid-column: 1;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--secondary, #6e6e73);
}
.bba-dept summary::after {
  content: "＋";
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-size: 18px;
  font-weight: 300;
  color: var(--secondary, #6e6e73);
  transition: transform .3s ease;
}
.bba-dept[open] summary::after { transform: rotate(45deg); }
.bba-dept-body { padding: 0 0 20px; }
.bba-dept-body p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--secondary, #6e6e73);
}
.bba-dept-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px !important;
  font-size: 12.5px;
}
.bba-dept-links a { color: var(--primary, #1d1d1f); }

/* ---------- 口径 ---------- */

.bba-key { background: transparent; }
.bba-key-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.bba .bba-key h2 {
  margin: 10px 0 16px;
  font-size: clamp(26px, 3.2vw, 38px) !important;
  line-height: 1.12 !important;
  letter-spacing: -.02em !important;
  font-weight: 600 !important;
}
.bba-key p {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--secondary, #6e6e73);
}
.bba-source-list { margin: 0; padding: 0; list-style: none; }
.bba-source-list li { padding: 7px 0; font-size: 13px; line-height: 1.6; }
.bba-source-list a { text-decoration: underline; text-underline-offset: .18em; }

/* ---------- 继续 ---------- */

.bba-next { padding-bottom: clamp(72px, 10vw, 140px); }
.bba .bba-next h2 {
  margin: 10px 0 22px;
  font-size: clamp(26px, 3.4vw, 40px) !important;
  line-height: 1.12 !important;
  letter-spacing: -.02em !important;
  font-weight: 600 !important;
}
.bba-next-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.bba-next-links a {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--edge, #d2d2d7);
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease;
}
.bba-next-links a:hover { border-color: var(--primary, #1d1d1f); }
.bba-next-links span { font-size: 11px; letter-spacing: .1em; color: var(--secondary, #6e6e73); }

/* ---------- 外观模式守门 ----------
   appearance-logo.css 在显式 day/night 下把 main 里的 p / figcaption
   强制刷成 --fm-ink；学院的层级（白字首屏、灰字说明）必须自己守。 */
.bba .bba-hero .bba-kicker { color: rgba(255, 255, 255, .72) !important; }
.bba .bba-hero .bba-lede { color: rgba(255, 255, 255, .86) !important; }
.bba .bba-hero .bba-hero-sub { color: rgba(255, 255, 255, .62) !important; }
.bba .bba-hero .bba-meta { color: rgba(255, 255, 255, .55) !important; }
.bba .bba-head > p:last-child,
.bba .bba-fine,
.bba .bba-source,
.bba .bba-lab-desc,
.bba .bba-lab-foot,
.bba .bba-evidence p,
.bba figure figcaption,
.bba .bba-key p,
.bba .bba-dept-body p { color: var(--secondary, #6e6e73) !important; }
.bba .bba-player-note { color: rgba(255, 255, 255, .66) !important; }

/* ---------- 动效 ---------- */

@keyframes bba-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.09) translate3d(-1.2%, -1%, 0); }
}
@keyframes bba-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes bba-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes bba-eq {
  from { transform: scaleY(.18); }
  to { transform: scaleY(1); }
}

/* ---------- 三端 ---------- */

@media (pointer: coarse) {
  .bba { padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
  .bba-hero { min-height: 92svh; }
  .bba-hero-inner { padding-bottom: 96px; }
  .bba-rail { grid-auto-columns: 76vw; padding-inline: 0; }
  .bba-figure { position: static; }
}

@media (max-width: 900px) {
  .bba-panel-grid,
  .bba-key-grid { grid-template-columns: minmax(0, 1fr); }
  .bba-figure { position: static; margin-bottom: 6px; }
  .bba-dept-grid { grid-template-columns: minmax(0, 1fr); }
  .bba-next-links { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .bba-hero { min-height: 100svh; }
  .bba .bba-hero h1 { font-size: clamp(38px, 11.4vw, 56px) !important; }
  .bba-hero .bba-lede { font-size: 15.5px; }
  .bba-section { padding-block: 60px; }
  .bba-actions { gap: 8px; }
  .bba-btn { flex: 1 1 auto; padding-inline: 16px; font-size: 14px; }
  .bba-relay li { grid-template-columns: minmax(0, 1fr); gap: 1px; padding: 8px 0; }
  .bba-relay b { font-size: 12.5px; }
  .bba-sliders { grid-template-columns: minmax(0, 1fr); }
  .bba-player-bar { padding: 16px 0 0; gap: 8px; }
  .bba-transport { gap: 10px; }
  .bba-soundboard-word { font-size: 40px; }
  .bba-next-links a { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .bba *,
  .bba *::before,
  .bba *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .bba-reveal { opacity: 1; transform: none; }
}

/* 整合页：旧材料区收在阅读宽度里 */
.bba .bba-wrap.bba-read { max-width: 52rem; }
/* 页底「上一期」与其它影片页对齐：它被包在 .bba-wrap（带 gutter）里，桌面比别页右移一个 gutter，这里抵消；
   手机端别页有 ~20px 内边距，抵消掉反而会顶到屏幕边，所以只在 641px 以上生效。 */
@media (min-width: 641px) {
  .bba .bba-read > .film-neighbors { margin-inline: calc(-1 * var(--bba-gutter)); }
  /* 黑球页 main.bba 没有 reader 的 padding-bottom，上一期离页脚只有 16px；
     其它影片页是 ~131px。这里补到同量级，免得它贴着页脚。 */
  .bba .bba-read > .film-neighbors { margin-block-end: 8rem; }
}

.bba-materials .bb { max-width: none; }
.bba-readmore {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--secondary, #6e6e73);
}
.bba-readmore a { color: var(--primary, #1d1d1f); text-underline-offset: .18em; }
.bba-media .fmc-video-section { margin-top: 0; }
.bba-lit .bb-gap { margin-top: 0; }

.bba-section-title {
  margin: 0 0 clamp(22px, 3vw, 34px);
  font-size: clamp(26px, 3.4vw, 38px) !important;
  line-height: 1.15 !important;
  letter-spacing: -.02em !important;
  font-weight: 600 !important;
  color: var(--primary, #1d1d1f) !important;
}

/* 影片页动线：六站，电影与现实并置 */
.bba-route { padding-block: clamp(26px, 4vw, 48px) 0; }
.bba-route .bb-acts { max-width: 52rem; margin-inline: auto; font-size: 15px; }
.bba-route .bb-acts a { color: inherit; text-underline-offset: .18em; }

/* 节奏：8 / 12 / 16 / 24 / 32；媒体块上下统一 24/32 */
.bba-station { padding-block: clamp(48px, 6vw, 80px); }
.bba-station-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
}
.bba-station-still { margin: 0 0 24px; }
.bba-station-still img {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 12px; background: var(--wash, #f5f5f7);
}
.bba-station-still.bba-station-title {
  margin: 8px 0 16px;
  font-size: clamp(26px, 3.2vw, 38px) !important;
  line-height: 1.12 !important; letter-spacing: -.02em !important;
  font-weight: 600 !important; color: var(--primary, #1d1d1f) !important;
}
.bba-real-title {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.4vw, 28px) !important;
  line-height: 1.2 !important; letter-spacing: -.01em !important;
  font-weight: 600 !important; color: var(--primary, #1d1d1f) !important;
}
.bba-real > p {
  margin: 0 0 20px; font-size: 14px; line-height: 1.8;
  color: var(--secondary, #6e6e73);
}
.bba-materials .bb { max-width: none; font-size: 14px; }
.bba-materials .bb-list { gap: 20px; }
#bba .bba-materials .bb-list h3,
#bba .bba-materials .bb-list h3 a {
  font-size: 15px !important; line-height: 1.6 !important;
  font-weight: 600 !important; letter-spacing: 0 !important;
}
.bba-materials .bb-loc { font-size: 12.5px; line-height: 1.7; }
.bba-materials .fmc-video-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 22px !important; }
.bba-podcasts { display: grid; gap: 14px; margin-top: 20px; }
.bba-podcasts .fmc-podcast-card { width: 100%; }
.bba-materials .bb-q { margin-top: 12px; }
.bba-materials .bb-ask { font-size: 14px !important; line-height: 1.6 !important; }
.bba-materials .bb-ans { font-size: 12.5px; }

@media (max-width: 900px) {
  .bba-station-grid { grid-template-columns: minmax(0, 1fr); }
}

.bba-era-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); }
.bba-era { display: grid; gap: 6px; padding-top: 4px; text-decoration: none; }
.bba-era span { font-size: clamp(34px, 4.4vw, 58px); line-height: 1; font-weight: 600; letter-spacing: -.04em; color: var(--primary, #1d1d1f); }
.bba-era b { font-size: 14px; line-height: 1.6; font-weight: 400; color: var(--secondary, #6e6e73); }
@media (max-width: 640px) { .bba-era-grid { grid-template-columns: minmax(0, 1fr); } }

#bba .bba-materials .bb-list > li { font-size: 14px; line-height: 1.68; }
#bba .bba-materials .bb-list > li > a { font-size: 14px !important; line-height: 1.68 !important; }

/* 配乐站：可听的片段 */
.bba-listen { margin-top: 24px; }
.bba-listen-caption {
  margin: 0 0 8px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--secondary, #6e6e73);
}
#bba .bba-audio-track { display: block; width: 100%; height: 44px; margin: 0; }

/* 播客卡恢复原卡片底色/圆角（旧规则只认 section#podcasts） */
#bba .bba-podcasts .fmc-podcast-card {
  background: #f1f1f4 !important; border: 0 !important; border-radius: 16px !important;
  box-shadow: none !important; padding: 16px !important; margin: 0 !important;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) #bba .bba-podcasts .fmc-podcast-card { background: #27272a !important; }
}
html[data-theme="night"] #bba .bba-podcasts .fmc-podcast-card { background: #27272a !important; }
#bba .bba-podcasts .fmc-podcast-card h3 {
  font-size: 17px !important; line-height: 1.45 !important; letter-spacing: 0 !important;
}
/* 视频卡：保留旧 film-curve 边框与标题尺寸，只收在阅读列里 */
.bba-materials .fmc-video-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 22px !important; }

/* 视频卡：恢复旧 film-curve 边框（旧规则只认 #fmc-public-videos，这里按阅读列还原） */
#bba .bba-materials .fmc-video-card:not([data-mini]) .fmc-video-stage {
  border-radius: 0 !important;
  clip-path: url(#fmc-film-curve);
  overflow: hidden;
}
#bba .bba-materials .fmc-video-thumb {
  width: 100% !important; height: 100% !important;
  object-fit: cover !important; border-radius: 0 !important;
}
#bba .bba-materials .fmc-video-stage .fmc-video-hit::after {
  content: attr(data-badge) !important; display: block !important;
  position: absolute !important; inset: auto auto 8px 8px !important;
  transform: none !important; width: auto !important; height: auto !important;
  border: 0 !important; border-radius: 16px !important;
  background: #151519c9 !important; color: #fff !important;
  padding: 4px 8px !important; font: 600 12px/1.1 system-ui !important;
}

/* 视频卡：与站内公开视频卡同一套外观（透明卡、封面 film-curve、标题在下） */
#bba .bba-materials .fmc-video-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  min-width: 0;
  color: inherit !important;
}
#bba .bba-materials .fmc-video-body { display: block !important; padding: 8px 0 0 !important; }
#bba .bba-materials .fmc-video-title {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  font: 600 1.03rem/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif !important;
  letter-spacing: 0 !important;
  color: inherit !important;
  text-align: start !important;
  white-space: normal !important;
}

/* 剧场站：影片片段 */
.bba-station-video { margin: 0 0 clamp(22px, 3vw, 34px); }
#bba .bba-station-video video {
  display: block;
  width: 100% !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 12px;
  background: #000;
}

#bba .bba-clip { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin: 10px 0 2px; border: 0 !important; border-radius: 12px; background: #000; }

/* 统一媒体块的上下节奏，图要顶满 */
.bba .bba-lab.bba-cut { background: none; padding: 0; margin: 24px 0 32px; }
.bba .bba-lab.bba-cut .bba-cut-stage { border-radius: 12px; }
.bba-materials .fmc-video-grid { margin: 24px 0 0; }
.bba-materials .bba-audio-track,
.bba-materials .bba-clip { margin: 12px 0 0; }

#bba .bba-film .bba-station-title { margin: 8px 0 16px !important; }
#bba .bba-real .bba-real-title { margin: 0 0 12px !important; }

/* 统一媒体条：视频与音轨共用同一套控件 */
.bba-media {
  position: relative;
  margin: 16px 0 0;
  border-radius: 12px;
  overflow: hidden;
  background: #0b0c0e;
}
.bba-media video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 0 !important;
  border: 0 !important;
  background: #0b0c0e;
}
.bba-media--audio { height: 64px; }
.bba-media--audio audio { display: none; }
.bba-media--audio .bba-controls {
  position: static;
  height: 64px;
  padding: 0 14px;
  background: transparent;
}
.bba-media .bba-time { color: rgba(255,255,255,.78); }

/* 单列时，左列（图/音轨）与右列标题之间留 40 */
@media (max-width: 900px) {
  .bba-station-grid { row-gap: 40px; }
}

#bba .bba-media--bili iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* 站内 B 站卡片：点击原地浮窗播放 */
.bba-lb {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.bba-lb-panel {
  width: min(720px, 100%);
  border-radius: 16px;
  overflow: hidden;
  background: #0b0c0e;
}
.bba-lb-stage { aspect-ratio: 16 / 9; background: #000; }
.bba-lb-stage iframe { display: block; width: 100%; height: 100%; border: 0; }
.bba-lb-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #0b0c0e;
  color: rgba(255, 255, 255, .86);
}
.bba-lb-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.bba-lb-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0 !important;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12) !important;
  color: #fff !important;
  cursor: pointer;
}
.bba-lb-close svg { width: 15px; height: 15px; }

/* 站内 B 站卡：照首页「相关」行：整卡圆角、标题压在图上、时长在左下 */
#bba .bba-materials .fmc-video-card {
  position: relative;
  display: block;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #111 !important;
  padding: 0 !important;
  border: 0 !important;
}
#bba .bba-materials .fmc-video-stage {
  clip-path: none !important;
  border-radius: 0 !important;
  overflow: hidden;
}
#bba .bba-materials .fmc-video-card::after {
  content: "";
  position: absolute; inset: 40% 0 0;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  pointer-events: none;
}
#bba .bba-materials .fmc-video-body {
  position: absolute;
  inset: 0;
  padding: 0;
  background: none;
  pointer-events: none;
}
#bba .bba-materials .fmc-video-title { pointer-events: auto; }
#bba .bba-materials .fmc-video-title {
  position: absolute;
  left: auto; right: 10px; bottom: 9px;
  max-width: 62%;
  z-index: 2;
  color: #fff !important;
  font: 500 12.5px/1.3 -apple-system, system-ui, sans-serif !important;
  text-align: right !important;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
  margin: 0 !important;
  padding: 0 !important;
}
#bba .bba-materials .fmc-video-stage .fmc-video-hit::after {
  content: attr(data-badge) !important;
  z-index: 2;
  inset: auto auto 9px 8px !important;
  border-radius: 6px !important;
  background: rgba(0,0,0,.62) !important;
  padding: 2px 7px !important;
  font: 600 11px/1.4 -apple-system, system-ui, sans-serif !important;
  letter-spacing: .02em !important;
}

/* 2026-12-04 · 材料区的书：正式书卡（封面 + 版本信息 + 下载），用于《内战之殇》
   结构：li.bba-book > img.bba-book-cover + div.bba-book-info（h3/著者/出版社/ISBN/定位/下载） */
#bba .bba-materials .bb-list li.bba-book {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 2px 0 6px;
}
#bba .bba-materials .bb-list li.bba-book .bba-book-cover {
  display: block;
  width: 96px;
  height: auto;
  border-radius: 4px;
  background: #1d1d1f;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}
#bba .bba-materials .bb-list li.bba-book .bba-book-info { min-width: 0; }
#bba .bba-materials .bb-list li.bba-book h3 {
  margin: 0 0 6px !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
}
#bba .bba-materials .bb-list li.bba-book .bba-book-by {
  margin: 0 0 2px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--secondary, #6e6e73) !important;
}
#bba .bba-materials .bb-list li.bba-book .bb-loc { margin: 0 0 2px !important; }
#bba .bba-materials .bb-list li.bba-book .bb-links { margin-top: 8px !important; }
@media (max-width: 420px) {
  #bba .bba-materials .bb-list li.bba-book { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
  #bba .bba-materials .bb-list li.bba-book .bba-book-cover { width: 84px; }
}

/* 2026-12-04 · 音乐卡
   专辑卡 li.bba-music--album：方图 + 名称/版本/厂牌 + 平台链接（曲目表已按用户要求去掉：不能站内播放，去平台听）。
   曲目卡 .bba-track：站内真有音源的曲目才做成卡（缩略封面 + 曲名/艺术家 + 站内播放器）。 */
#bba .bba-materials .bb-list li.bba-music {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 2px 0 8px;
}
#bba .bba-materials .bb-list li.bba-music .bba-music-art {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  background: #1d1d1f;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}
#bba .bba-materials .bb-list li.bba-music h3 {
  margin: 0 0 6px !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
}
.bba-music-by {
  margin: 0 0 2px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--secondary, #6e6e73) !important;
}

@media (max-width: 640px) {  }

.bba-listen.bba-track,
li.bba-track { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: start; }
.bba-track-art { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; display: block; }
.bba-track-title { margin: 0; font-size: 14.5px; line-height: 1.4; }
.bba-track-by { margin: 2px 0 8px; font-size: 12.5px; line-height: 1.5; color: var(--secondary, #6e6e73) !important; }
.bba-track .bba-media { margin-top: 2px; }

/* 没有封面的文献（剧本、访谈）用同款书卡排版，但收成单栏 */
#bba .bba-materials .bb-list li.bba-book.bba-book--plain {
  grid-template-columns: minmax(0, 1fr);
}

/* 2026-12-04 · 1932 站里的手稿扫描：按栏宽铺满、点击进残稿对照页 */
#bba .bba-real .bba-ms { margin: 18px 0 22px; }
#bba .bba-real .bba-ms a { display: block; }
#bba .bba-real .bba-ms img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  background: #1d1d1f;
}

/* 视频卡下的说明行（浅底、非播放器内的白字） */
/* 卡片下的说明行：左沿与卡片对齐、到卡片右沿才换行、离卡片一档间距（2026-12-04 用户定）。
   别让它吃网格的 row-gap——`fmc-video-grid--plain` 的 `gap:24px 20px` 是「卡与卡」的间距，
   叠上原来的 margin:10px 就变成 34px，说明书离卡片太远。 */
/* 必须写在 @layer systemReading 里：`--plain` 的 `gap:24px 20px !important` 在层内，
   层内 !important 压过层外的 !important（正是 2026-12-03 踩过的 @layer 坑）。 */
@layer systemReading {
  .bba-watch .fmc-video-grid.fmc-video-grid--plain { row-gap: 0 !important; }
}
.bba-video-caption {
  grid-column: 1;
  margin: var(--sp-3, 12px) 0 0;
  /* 站点给正文的 68ch（12.5px 下 551px）上限会先把说明截短，这里放开 → 跟卡片同宽、到右沿才换行 */
  max-width: 100%;
  /* 两端对齐：中文行末碰上「；」这类不能起行的收尾标点时，整组要一起下移，
     行 1 会空出约两个字（行首禁则，不是换行坏了）。justify 把这截余量摊进字距，
     左右沿就都与卡片齐平（与 press kit 正文 .fca-pk-sheet.is-text .pk-body p 同一做法）。 */
  text-align: justify;
  text-align-last: start;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--secondary, #6e6e73);
}
