.bbd-films { margin-top: 2.25rem; }
.bbd-films .evolution-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.25rem, 5vw, 4rem); align-items: start; }
.bbd-films .era-sticky { position: sticky; top: 96px; min-width: 0; }
.bbd-films .era-screen { position: relative; aspect-ratio: 16/10; overflow: hidden; border-radius: 1rem; border: 1px solid #d4af3750; box-shadow: 0 0 36px #1d5b9a60; background: #08152f; }
.bbd-films .era-film { position: absolute; inset: 0; overflow: hidden; visibility: hidden; background: var(--poster) center/cover no-repeat, radial-gradient(ellipse at center, #254776, #071126); }
.bbd-films .era-film.is-active { visibility: visible; z-index: 1; }
.bbd-films video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); opacity: 0; transition: opacity .25s ease; }
.bbd-films video.is-playing { opacity: 1; }
.bbd-films .stage-pills { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; margin-top: .7rem; }
.bbd-films .stage-pills button, .bbd-films #motion-toggle { min-height: 44px; color: #cbd8eb; border: 1px solid #71aaff44; background: #111f39; border-radius: .6rem; }
.bbd-films .stage-pills button[aria-pressed="true"] { border-color: #d4af37; color: #f3e5ab; box-shadow: 0 0 16px #d4af3740; }
.bbd-films #motion-toggle { margin-top: .85rem; padding-inline: .75rem; }
.bbd-films button:focus-visible { outline: 2px solid #f3e5ab; outline-offset: 2px; }
.bbd-films .era-step { min-height: 43vh; display: grid; align-content: center; gap: .7rem; padding-block: 1rem; border-top: 1px solid #71aaff38; }
.bbd-films .kicker { color: #e7bf63; font-size: .72rem; text-transform: uppercase; letter-spacing: .15em; }
.bbd-films h3 { font: 600 clamp(1.25rem, 2.7vw, 2.3rem)/1.15 Sora, sans-serif; color: #f5f7ff; }
.bbd-films .era-step p:last-child { color: #adbfd9; }
@media (max-width: 760px) {
  .bbd-films .evolution-grid { grid-template-columns: 1fr; gap: .75rem; }
  .bbd-films .era-sticky { top: 72px; z-index: 2; background: #09152a; }
  .bbd-films .era-screen { aspect-ratio: 16/8; }
  .bbd-films .era-step { min-height: 37vh; }
}
@media (max-height: 480px) {
  .bbd-films .era-sticky { position: relative; top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bbd-films * { transition: none !important; }
}

/* The film runs beneath V1's existing grid, glow layers and hero content. */
.bbd-hero-film {
  overflow: hidden;
  background: #081126 url(/assets/era-7.webp?v=2) center / cover no-repeat;
}
.bbd-hero-film { position: absolute; inset: 0; pointer-events: none; }
.bbd-hero-film::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #060c1bec 0%, #071329b9 48%, #09142b45 100%),
    linear-gradient(0deg, #080e1f 0%, transparent 34%, #080e1f69 100%);
}
.bbd-hero-film video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transform: scale(1.05); opacity: 0; transition: opacity .3s ease;
}
.bbd-hero-film video.is-playing { opacity: 1; }
.bbd-films .era-step .kicker { color: #f1d483; }
@media (max-width: 760px) {
  .bbd-hero-film::after { background: linear-gradient(90deg, #060c1bdf, #07132996), linear-gradient(0deg, #080e1f, transparent 48%); }
}
@media (prefers-reduced-motion: reduce) {
  .bbd-hero-film video { transition: none; }
}

/* Keep the film pinned while its chapter text passes alongside it. */
.bbd-films .era-step { min-height: max(43vh, 18rem); }
@media (max-width: 760px) {
  .bbd-films .era-step { min-height: max(37vh, 14rem); }
}

/* The active caption, numbered button and film share one chapter state. */
.bbd-films .has-synced-captions .era-steps > .era-step { opacity: 0; }
.bbd-films .era-captions { display: grid; }
.bbd-films .era-captions .era-step {
  grid-area: 1 / 1;
  min-height: 0;
  visibility: hidden;
}
.bbd-films .era-captions .era-step.is-active { visibility: visible; }
@media (min-width: 761px) {
  .bbd-films .era-captions {
    position: absolute;
    inset: 0 auto auto calc(100% + clamp(1.25rem, 5vw, 4rem));
    width: calc(100% / 1.35);
    height: calc(100% - 6.55rem);
  }
}
@media (max-width: 760px) {
  .bbd-films .era-sticky { top: 72px; }
  .bbd-films .era-screen { aspect-ratio: auto; height: clamp(110px, 24svh, 220px); }
  .bbd-films .era-captions .era-step { padding-block: .55rem; gap: .28rem; }
  .bbd-films .era-captions h3 { font-size: clamp(1rem, 4.5vw, 1.35rem); }
  .bbd-films .era-captions p:last-child { font-size: .85rem; }
  .bbd-films .stage-pills button { min-height: 44px; min-width: 0; }
  .bbd-films .has-synced-captions .era-steps > .era-step { min-height: 32svh; }
}
@media (max-height: 480px) {
  .bbd-films .era-sticky { position: sticky; top: 72px; }
  .bbd-films .era-screen { max-height: 38svh; }
}
