.stage-gallery {
  padding: clamp(24px, 3vw, 44px);
  border-top: 1px solid #4c594c;
  background: #182019;
  scroll-margin-top: 90px;
}
.stage-gallery-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.stage-gallery-kicker { margin: 0 0 12px; color: var(--signal); font-size: 11px; letter-spacing: .08em; }
.stage-gallery h4 { margin: 0; font: 700 clamp(36px, 4.3vw, 64px)/.95 var(--display); text-transform: uppercase; }
.stage-gallery-heading > p { max-width: 310px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.stage-gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; }
.stage-film { min-width: 0; margin: 0; }
.stage-film-featured { grid-column: 1 / -1; }
.stage-player { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #090d0a; border: 1px solid #4c594c; isolation: isolate; }
.stage-player video { display: block; width: 100%; height: 100%; object-fit: contain; background: #090d0a; }
.stage-player video:focus-visible { outline: 3px solid var(--signal); outline-offset: -4px; }
.stage-play { position: absolute; inset: 0; width: 100%; border: 0; padding: 24px; color: var(--ink); cursor: pointer; display: flex; align-items: flex-end; justify-content: flex-start; background: linear-gradient(transparent 55%, #000b); }
.stage-play span { display: inline-flex; align-items: center; gap: 12px; padding: 13px 17px; border: 1px solid #8e9b88; background: #141b15ed; font: 500 12px var(--mono); transition: background .18s ease, border-color .18s ease; }
.stage-play svg { width: 14px; height: 14px; fill: currentColor; }
.stage-play:hover span { background: #364535; border-color: var(--ink); }
.stage-play:focus-visible { outline: 3px solid var(--signal); outline-offset: -5px; }
.stage-film figcaption { padding-top: 16px; }
.stage-film-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.stage-film h5 { margin: 0; font: 600 clamp(19px, 2vw, 26px)/1.2 var(--body); letter-spacing: -.035em; }
.stage-film-number { color: var(--signal); margin-right: 10px; font: 400 12px var(--mono); letter-spacing: 0; }
.stage-film-duration { color: var(--muted); font-size: 11px; white-space: nowrap; }
.stage-film figcaption p { max-width: 740px; margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.stage-film-featured figcaption { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stage-film-featured figcaption p { margin: 0; }
.stage-gallery-note { margin: 28px 0 0; padding-top: 16px; border-top: 1px solid #3e4b3d; color: var(--muted); font-size: 11px; line-height: 1.7; }
.stage-video-error { margin: 12px 0 0; font-size: 14px; }
.stage-video-error a { text-decoration: underline; text-underline-offset: 4px; }
.stage-video-error[hidden] { display: none; }
@media (max-width: 700px) {
  .stage-gallery-heading { display: block; }
  .stage-gallery-heading > p { max-width: none; margin-top: 16px; }
  .stage-gallery-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .stage-film-featured figcaption { display: block; }
  .stage-film-featured figcaption p { margin-top: 10px; }
  .stage-play { padding: 12px; }
  .stage-play span { padding: 12px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .stage-play span { transition: none; } }

/* Reviewed Lua excerpts. Native details remain usable without JavaScript. */
.stage-film-featured figcaption > .stage-code { grid-column: 1 / -1; }
.stage-code { min-width: 0; margin-top: 20px; border-top: 1px solid #4c594c; }
.stage-code > summary { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 12px 0; cursor: pointer; list-style: none; font-size: 14px; font-weight: 500; }
.stage-code > summary::-webkit-details-marker { display: none; }
.stage-code-label { flex-shrink: 0; color: var(--mint); font-size: 10px; letter-spacing: .035em; }
.stage-code-toggle { margin-left: auto; color: var(--signal); font-size: 22px; line-height: 1; }
.stage-code[open] > summary .stage-code-toggle { transform: rotate(45deg); }
.stage-code > summary:hover { color: var(--signal); }
.stage-code > summary:focus-visible, .stage-code pre:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
.stage-film figcaption .stage-code-explanation { max-width: 780px; margin: 0 0 18px; }
.stage-code-file { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid #3e4b3d; color: var(--muted); background: #1c251d; font-size: 10px; line-height: 1.7; }
.stage-code-file > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.stage-code-file > span:last-child { flex-shrink: 0; }
.stage-code-file strong { color: var(--ink); font-weight: 400; }
.stage-code pre { max-width: 100%; margin: 0; padding: 18px 0; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid #3e4b3d; border-top: 0; background: #101611; color: #e6e8df; tab-size: 4; font: 12px/1.85 var(--mono); }
.stage-code code { display: block; width: max-content; min-width: 100%; font: inherit; }
.stage-code-line { display: inline-flex; min-width: 100%; padding-right: 20px; }
.stage-code-number { display: inline-block; flex-shrink: 0; width: 48px; padding-right: 14px; color: #8c9a8c; text-align: right; user-select: none; }
.stage-code .lua-keyword { color: #e2b8ed; }
.stage-code .lua-string { color: #b8d1b6; }
.stage-code .lua-number { color: #ffb18d; }
.stage-code .lua-comment { color: #9ba799; }
.stage-film figcaption .stage-code-idea { margin: 12px 0 0; color: var(--mint); font-size: 10px; line-height: 1.8; }
@media (max-width: 700px) {
  .stage-code > summary { flex-wrap: wrap; gap: 6px 10px; }
  .stage-code-label { flex-basis: 100%; }
  .stage-code > summary > span:nth-child(2) { flex: 1; }
  .stage-code-file { padding: 10px; }
  .stage-code-number { width: 40px; padding-right: 10px; }
}
