.theater-page { min-height: 100vh; }
.theater {
  padding-block: clamp(2.1rem, 4.7vw, 4.75rem);
  background: radial-gradient(ellipse at 10% 14%, #2b193552, transparent 55%);
}
.theater-heading { margin-bottom: clamp(1.4rem, 3vw, 2.35rem); }
.theater-heading h1 {
  font-size: clamp(2.45rem, 7vw, 6.55rem);
  line-height: .98;
  margin-block: 0 .55rem;
  text-wrap: unset;
}
.theater-heading p { color: var(--muted); line-height: 1.6; margin: 0; }
.theater-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(225px, 1fr);
  align-items: start;
  gap: clamp(.8rem, 2.5vw, 1.45rem);
}
.screening, .lineup {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
#screening { scroll-margin-top: 1rem; }
#project-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #0e0a13;
  object-fit: contain;
}
.film-info { padding: clamp(1rem, 2.6vw, 1.7rem); }
.film-info h2 { font-size: clamp(2rem, 5vw, 4.15rem); margin-block: .28rem .5rem; letter-spacing: -.052em; text-wrap: unset; }
.film-info > p:not(.eyebrow), .dialog-inner > p, .tech-notes dd {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}
.film-info > p:not(.eyebrow) { margin: 0 0 .95rem; }
.film-actions, .cut-options { display: flex; gap: .55rem; flex-wrap: wrap; }
.film-actions button { background: transparent; cursor: pointer; }
.cut-options { align-items: center; margin-top: 1.1rem; }
.cut-options button {
  min-height: 44px;
  padding: .42rem .7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 650;
  font-size: .9rem;
}
.cut-options button[aria-pressed="true"] { color: var(--ink); background: #3a2943; border-color: var(--accent); }
#video-error { margin-top: .75rem; }
#video-error a { text-underline-offset: .2em; }

.lineup h2 {
  font-size: 1.4rem;
  padding: .95rem .95rem .85rem;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.film-list {
  display: grid;
  list-style: none;
  gap: .3rem;
  margin: 0;
  padding: .45rem;
  max-height: 639px;
  overflow: auto;
}
.film-list button {
  width: 100%;
  min-height: 60px;
  display: grid;
  grid-template-columns: clamp(58px, 7vw, 82px) minmax(0, 1fr);
  align-items: center;
  text-align: left;
  gap: .6rem;
  padding: .35rem;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
}
.film-list button[aria-pressed="true"] { border-color: #a66c65; background: #3a2943; }
.film-list button:hover { border-color: var(--accent); }
.film-list button:focus-visible { outline-offset: -2px; }
.film-list img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; background: #140f1e; }
.film-list strong, .film-list small { display: block; overflow-wrap: anywhere; }
.film-list strong { font-size: .94rem; line-height: 1.2; }
.film-list small { font-size: .81rem; color: var(--muted); margin-top: .18rem; }

.project-dialog {
  width: min(92vw, 660px);
  max-height: 88vh;
  overflow: auto;
  padding: 0;
  color: var(--ink);
  background: #23192d;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.project-dialog::backdrop { background: #0b070ed9; }
.dialog-inner { padding: clamp(1rem, 4vw, 2rem); }
.dialog-top { display: flex; justify-content: space-between; gap: .75rem; align-items: flex-start; }
.dialog-top h2 { font-size: clamp(1.95rem, 6vw, 3.25rem); text-wrap: unset; }
.dialog-top button { background: transparent; min-height: 44px; padding-inline: .75rem; }
.dialog-inner > p { margin-block: 1.15rem 1rem; }
.tech-notes { margin: 0 0 1.2rem; }
.tech-notes > div { padding: .7rem 0; border-top: 1px solid var(--line); }
.tech-notes dt { color: var(--accent); font-weight: 700; }
.tech-notes dd { margin: .2rem 0 0; }
.theater-page .footer-inner { min-height: 74px; }

@media (max-width: 820px) { .theater-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 820px) and (min-width: 540px) { .film-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 539px) {
  .film-list { max-height: none; }
  .theater-page .footer-inner p { order: 0; flex-basis: auto; }
}
