/* The interview occupies one fixed viewing area. Meta handles play, sound and captions. */
.eo-story-cinema {
  --cinema-ink: #293726;
  --cinema-soft: #52604a;
  --cinema-paper: #fafaf2;
  --cinema-stage: #1e291e;
  --cinema-rule: #c4cbb8;
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(900px, calc(100vw - 48px));
  height: min(776px, calc(100vh - 56px));
  height: min(776px, calc(100dvh - 56px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 13px;
  overflow: hidden;
  overscroll-behavior: contain;
  color: var(--cinema-ink);
  background: var(--cinema-paper);
  box-shadow: 0 22px 100px #0c120f66;
  font-family: var(--eo-face);
}
html[data-eo-theme="blue"] .eo-story-cinema {
  --cinema-ink: #192f49;
  --cinema-soft: #465d75;
  --cinema-paper: #f3f7fc;
  --cinema-stage: #172a40;
  --cinema-rule: #bbcbdc;
}
.eo-story-cinema:not([open]), .eo-story-cinema [hidden] { display: none !important; }
.eo-story-cinema[open] { display: grid; grid-template-columns: minmax(0,1.22fr) minmax(0,1fr); }
.eo-story-cinema::backdrop { background: rgb(15 22 18 / 82%); }
html:has(.eo-story-cinema[open]) { overflow: hidden; }
.eo-cinema-close {
  position: absolute; z-index: 3; top: 16px; right: 16px;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border-radius: 50%; border: 1px solid var(--cinema-rule); background: var(--cinema-paper);
  color: var(--cinema-ink); font-size: 18px;
}
.eo-cinema-close:is(:hover,:focus-visible) { color: var(--cinema-paper); background: var(--cinema-ink); }
.eo-story-cinema :is(button,a):focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.eo-cinema-projection { position: relative; min-height: 0; overflow: hidden; background: var(--cinema-stage); }
.eo-cinema-film, .eo-cinema-wait { position: absolute; inset: 0; }
.eo-cinema-film iframe {
  display: block; position: absolute; top: 50%; left: 50%; border: 0;
  min-width: 0; min-height: 0; max-width: none; max-height: none; margin: 0;
}
.eo-cinema-wait { display: grid; align-content: end; padding: clamp(18px,3vw,36px); background: var(--cinema-stage); color: #fff; }
.eo-cinema-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 37%; }
.eo-cinema-wait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,#111c19ee,transparent 60%); }
.eo-cinema-wait > div { position: relative; z-index: 1; }
.eo-cinema-wait p { max-width: 29ch; margin: 0; color: #fff; font: 540 15px/1.5 var(--eo-face); }
.eo-cinema-retry {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 8px;
  padding: 0; border: 0; color: #fff; background: transparent; font: 650 14px var(--eo-face);
}
.eo-cinema-notes { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 60px clamp(22px,4vw,54px); }
.eo-cinema-label {
  display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--cinema-soft);
  font: 700 11px/1.3 var(--eo-face); letter-spacing: .15em; text-transform: uppercase;
}
.eo-cinema-label::before { content: ""; width: 25px; height: 2px; background: #b97842; }
.eo-cinema-notes h3 {
  margin: 0; color: var(--cinema-ink); font: 480 var(--cinema-title-size, clamp(42px,4.2vw,64px))/.96 var(--eo-display) !important;
  letter-spacing: -.052em; overflow-wrap: break-word; text-wrap: balance;
}
.eo-cinema-outcome { display: flex; gap: 8px; align-items: center; margin: 20px 0 0; color: var(--cinema-soft); font: 600 14px/1.4 var(--eo-face); }
.eo-cinema-outcome .eo-flag { width: 24px; height: 16px; border-radius: 2px; }
.eo-cinema-summary { margin: 24px 0 0; padding-top: 19px; border-top: 1px solid var(--cinema-rule); color: var(--cinema-ink); font: 460 16px/1.55 var(--eo-face); }
.eo-cinema-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 26px; }
.eo-cinema-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--cinema-ink); font: 650 14px/1.3 var(--eo-face); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.eo-cinema-source i { font-size: 11px; }
.eo-cinema-links .eo-cinema-source { color: var(--cinema-paper); padding: 0 13px; border-radius: 5px; background: var(--cinema-ink); }
.eo-cinema-source:focus-visible { outline-color: var(--cinema-ink) !important; }
.eo-cinema-links a:is(:hover,:focus-visible) { text-decoration: underline; }
@media (max-width: 660px) and (orientation: portrait) {
  .eo-story-cinema { width: min(100vw,480px); height: 100vh; height: 100dvh; border-radius: 0; }
  .eo-story-cinema[open] { grid-template: minmax(0,1fr) auto / 1fr; }
  .eo-cinema-close { top: max(10px,env(safe-area-inset-top)); right: max(10px,env(safe-area-inset-right)); box-shadow: 0 2px 12px #0003; }
  .eo-cinema-projection { margin-top: max(58px,calc(52px + env(safe-area-inset-top))); }
  .eo-cinema-notes { padding: 12px 20px max(10px,env(safe-area-inset-bottom)); }
  .eo-cinema-label { position: absolute; top: max(26px,calc(20px + env(safe-area-inset-top))); left: 20px; margin: 0; }
  .eo-cinema-notes h3 { --cinema-title-size: clamp(27px,7.7vw,36px); }
  .eo-cinema-outcome { margin-top: 6px; font-size: 13px; }
  .eo-cinema-summary { display: none; }
  .eo-cinema-links { margin-top: 5px; gap: 0 16px; }
}
@media (max-height: 540px) and (orientation: landscape) {
  .eo-story-cinema { width: min(760px,100vw); height: 100vh; height: 100dvh; border-radius: 0; }
  .eo-cinema-notes { padding: 40px 22px 8px; }
  .eo-cinema-notes h3 { --cinema-title-size: clamp(26px,4.5vw,45px); }
  .eo-cinema-label { margin-bottom: 8px; }
  .eo-cinema-outcome, .eo-cinema-links { margin-top: 8px; }
  .eo-cinema-summary { display: none; }
  .eo-cinema-close { top: 5px; right: 6px; }
}
@media (prefers-reduced-motion: no-preference) {
  .eo-story-cinema[open] { animation: eo-film-open .32s cubic-bezier(.22,.68,.25,1) both; }
  .eo-cinema-close { transition: background-color .18s,color .18s; }
  @keyframes eo-film-open { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
}
