/* V15 — the film is the first thing inside the floating project window. */
.film-section-bar { padding: 0 0 16px; }
.film-section-bar > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; }
.preview-credit { display: none; margin: 0; color: var(--paper); font-size: 14px; line-height: 1.5; }
.preview-credit > span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 2px; }
.project-section-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.project-section-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--ink-2); color: var(--paper); font-size: 14px; line-height: 1.4; }
.project-section-nav a:hover { border-color: var(--blue); background: var(--surface); }
.film-screening { padding: 0 0 24px; }
.screening-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.screening-heading h2 { font-size: 18px; font-weight: 400; line-height: 1.4; letter-spacing: -.01em; margin: 0; }
.screening-provider { color: var(--muted); font-size: 12px; flex-shrink: 0; }
.screening-player { position: relative; display: grid; width: 100%; min-width: 0; aspect-ratio: 16 / 9; min-height: 200px; background: #070e16; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; isolation: isolate; }
.screening-player > iframe, .screening-player > video, .screening-player > div { width: 100%; height: 100%; min-height: 200px; border: 0; display: block; }
.screening-player iframe { display: block; width: 100%; height: 100%; min-height: 200px; border: 0; }
.screening-poster { position: absolute; inset: 0; display: grid; place-items: center; color: white; background: #102235; }
.screening-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.screening-poster-artwork img { object-fit: contain; padding: 16px; }
.screening-play-affordance { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; border: 1px solid rgba(182, 214, 240, .65); border-radius: 12px; background: rgba(10, 24, 39, .92); font-size: 16px; line-height: 1.5; }
.screening-play-icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--blue); }
.screening-poster:hover .screening-play-affordance { background: #244763; border-color: var(--blue); }
.screening-poster:focus-visible { outline-offset: -5px; }
.screening-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 10px; }
.screening-controls { display: flex; align-items: center; flex-wrap: wrap; }
.screening-controls[hidden] { display: none; }
.screening-controls button { cursor: pointer; }
.screening-controls button:disabled { opacity: .65; cursor: default; }
.screening-status { margin: 0; flex: 1 1 180px; font-size: 13px; line-height: 1.5; }
.screening-fallback { display: inline-flex; align-items: center; min-height: 40px; color: var(--blue); font-size: 14px; line-height: 1.4; text-decoration: underline; text-underline-offset: 4px; }
.screening-external .screening-player { min-height: 124px; aspect-ratio: auto; }
.screening-external .screening-poster { background: linear-gradient(120deg, #18364f, #101a25); }
.film-page .film-resource-list { display: flex; flex-wrap: wrap; gap: 7px; }
.film-page .film-resource { display: inline-flex; align-items: center; min-height: 40px; padding: 9px 12px; border: 1px solid var(--edge); border-radius: 7px; background: var(--ink-2); gap: 0; }
.film-page .film-resource strong { color: var(--paper); font-size: 14px; font-weight: 400; line-height: 1.45; }
.film-page .film-resource:hover { background: var(--surface-hover); border-color: var(--blue); }
.film-page .film-resources h2 { margin: 0 0 10px; }
.film-page .film-resource > .sr-only { position: absolute; }
.film-page #project-story, .film-page #project-images, .film-page #project-watch { scroll-margin-top: 20px; }

/* The outer HUD already supplies the project title. Keep only its exact credit here. */
.project-preview-embedded .film-masthead { display: none; }
.project-preview-embedded .film-page { padding-top: 14px; padding-bottom: 24px; }
.project-preview-embedded .wrap { width: calc(100% - 36px); }
.project-preview-embedded .preview-credit { display: block; }
.project-preview-embedded .film-section-bar { padding-bottom: 14px; }
.project-preview-embedded .film-screening { padding-bottom: 18px; }
.project-preview-embedded .screening-heading h2 { font-size: 16px; }
.project-preview-embedded .film-narrative { padding: 24px 0; }
.project-preview-embedded .film-overview { gap: 28px; }
.project-preview-embedded .film-page .film-story h2 { font-size: 32px; margin: 9px 0 13px; }
.project-preview-embedded .film-page .film-story p { font-size: 17px; line-height: 1.65; }
.project-preview-embedded .film-page .film-facts { margin-top: 10px; margin-bottom: 0; }
.project-preview-embedded .film-page .film-facts > div { padding: 9px 0; }
.project-preview-embedded .film-page .film-resources { margin-top: 20px; }
.project-preview-embedded .film-gallery-section { padding-top: 26px; }
.project-preview-embedded .film-gallery { gap: 22px 16px; }
.project-preview-embedded .gallery-heading { margin-bottom: 16px; }
.project-preview-embedded .gallery-heading h2 { font-size: 32px; margin-top: 8px; }

@media (max-width: 760px) {
  .film-section-bar > .wrap { align-items: flex-start; flex-wrap: wrap; }
  .screening-heading { gap: 10px; }
  .screening-heading h2 { font-size: 16px; }
  .screening-status { flex-basis: 160px; }
  .project-preview-embedded .film-page { padding-top: 12px; }
  .project-preview-embedded .film-overview { grid-template-columns: 1fr; gap: 24px; }
  .project-preview-embedded .film-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .project-preview-embedded .wrap { width: calc(100% - 24px); }
  .project-preview-embedded .film-section-bar > .wrap { gap: 10px; }
  .preview-credit { font-size: 14px; }
  .preview-credit > span { display: inline; margin-right: 8px; }
  .project-section-nav { gap: 5px; }
  .project-section-nav a { padding: 8px 10px; }
  .screening-heading { flex-wrap: wrap; gap: 3px 12px; }
  .screening-heading h2 { flex: 1 1 220px; }
  .screening-provider { font-size: 12px; }
  .screening-bottom { gap: 5px 10px; }
  .screening-controls { gap: 6px; }
  .screening-status { flex-basis: 100%; order: 3; }
  .screening-fallback { margin-left: auto; }
  .screening-play-affordance { padding: 10px 14px 10px 10px; gap: 10px; }
  .project-preview-embedded .film-page .film-story p { font-size: 16px; }
  .project-preview-embedded .film-page .film-facts > div:first-child { grid-column: 1 / -1; }
  .project-preview-embedded .film-gallery { grid-template-columns: 1fr; }
}
@media print {
  .film-section-bar, .film-screening { display: none; }
  .film-page .film-resource { background: white; color: black; border-color: #bbb; }
  .film-page .film-resource strong { color: black; }
}
