/* 首页蓝脚鸟拉琴段（interlude.js）。全站样式见 score.css 与 editorial.css，这里只补这一段：
   沿用深色背景、苹方、.phase 胶囊标签、--type-section 标题字号和 .description 正文。 */

.interlude { position: relative; background: #040404; }
.interlude .sticky-container { --scroll-height: 190vh; position: relative; }

.motion .interlude .sticky-container { height: calc(var(--scroll-height) + 100svh); }
.motion .interlude .sticky-element {
  position: sticky; top: 0;
  height: 100svh; min-height: 620px;
  overflow: hidden;
  display: grid; place-items: center;
}

/* 舞台光：顶上一束冷光，脚下一圈蓝色地光，随进度慢慢亮起来（颜色取自 .scene-ring） */
.interlude-light {
  --p: 0;
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 26% 62% at 50% -6%, rgb(112 217 237 / calc(0.04 + 0.08 * var(--p))), transparent 72%),
    radial-gradient(ellipse 30% 13% at 50% 78%, rgb(40 93 152 / calc(0.16 + 0.22 * var(--p))), transparent 72%);
}

.interlude-stage {
  position: relative; z-index: 1;
  width: 100%; max-width: 1120px; margin: auto;
  padding: 112px 21px 28px;              /* 顶部让出固定导航（48px + 64px） */
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.interlude-copy .phase { margin-bottom: 18px; }
.interlude h2 {
  font-size: var(--type-section);
  font-weight: var(--weight-heading);
  line-height: 1.25;
  letter-spacing: var(--heading-spacing);
  text-wrap: balance;
}
.interlude h2 br { display: none; }       /* 桌面一行，手机两行；同 .collection h2 */

.interlude-bird {
  position: relative;
  width: 100%;
  height: min(54svh, 540px);
  margin-top: 18px;
}
.interlude-bird .video-scrub-container,
.interlude-bird .endframe-container { position: absolute; inset: 0; }
.interlude-bird picture { display: block; width: 100%; height: 100%; }
.interlude-bird picture img { width: 100%; height: 100%; object-fit: contain; }

.motion .interlude .startframe-container { position: absolute; inset: 0; }
.motion .interlude video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0;
}
.motion .interlude .video-scrub-container.loaded .startframe-container { display: none; }
.motion .interlude .video-scrub-container.loaded video { opacity: 1; }

/* 加载失败：换末帧静态图 */
.motion .interlude .endframe-container { visibility: hidden; }
.motion .interlude .video-scrub-container.loading-error { display: none; }
.motion .interlude .video-scrub-container.loading-error + .endframe-container { visibility: visible; }

/* 没有 .motion（含"减少动态效果"）：普通排版，只显示末帧图 */
body:not(.motion) .interlude .video-scrub-container { display: none; }
body:not(.motion) .interlude-stage { padding-top: 80px; padding-bottom: 80px; }
body:not(.motion) .interlude-light { --p: 1; }

.interlude-foot .description { margin-top: 14px; }

/* 节拍点：每拉到一端亮一颗，对应"每一弓都落在拍子上" */
.beats { display: flex; justify-content: center; gap: 14px; margin-top: 18px; }
.beats i {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ffffff26;
  transition: background-color .2s, box-shadow .2s, transform .2s;
}
.beats i.on {
  background: var(--blue);
  box-shadow: 0 0 12px #70d9ed88;
  transform: scale(1.25);
}

/* 入场：标题和说明随滚动淡入上移（--reveal 由 interlude.js 写入） */
.motion .interlude [data-reveal-kf] {
  --reveal: 0;
  opacity: var(--reveal);
  transform: translateY(calc((1 - var(--reveal)) * 28px));
}

@media (max-height: 760px) and (min-width: 761px) {
  .interlude-bird { height: 50svh; margin-top: 10px; }
  .interlude-foot .description { margin-top: 6px; }
  .beats { margin-top: 12px; }
}

@media (max-width: 760px) {
  .interlude-stage { padding: 88px 24px 24px; }    /* 手机导航：20px + 54px */
  .interlude h2 br { display: block; }
  .interlude-bird { height: min(44svh, 400px); margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .beats i { transition: none; }
}
