.memory-cinema[hidden] { display: none; }
.memory-cinema { max-width: 1480px; }
.memory-cinema .section-heading h2 { font-size: clamp(2.2rem, 4.6vw, 4.5rem); }
.cinema-wall-link { flex-shrink: 0; padding: .65rem 0; color: var(--accent); border: 0; border-bottom: 1px solid currentColor; background: transparent; font: inherit; cursor: pointer; }
.cinema-frame { overflow: hidden; border: 1px solid rgba(241,225,191,.35); border-radius: 1rem; background: #10232b; box-shadow: 0 2rem 5rem #0005; }
.cinema-scope { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.3rem; padding: 1rem 1.4rem; border-bottom: 1px solid #e7dcc02b; }
.cinema-scope-tabs { display: flex; gap: .25rem; padding: .25rem; border: 1px solid #e7dcc03a; border-radius: 999px; background: #08181e; }
.cinema-scope-tabs button { min-height: 38px; padding: .45rem .9rem; border: 0; border-radius: 999px; color: #d9ddda; background: transparent; font: inherit; font-size: .72rem; cursor: pointer; }
.cinema-scope-tabs button[aria-pressed="true"] { color: #12242a; background: #f0e4c9; }
.cinema-scope-tabs button:disabled { opacity: .45; cursor: not-allowed; }
.cinema-shuffle { min-height: 38px; padding: .45rem .8rem; border: 1px solid #e7dcc057; border-radius: 999px; color: #e6ddca; background: transparent; font: inherit; font-size: .72rem; cursor: pointer; }
.cinema-shuffle[aria-pressed="true"] { color: #11252a; border-color: #dcebb1; background: #dcebb1; }
.cinema-select { display: flex; align-items: center; gap: .55rem; color: #d3dcd6; font-size: .72rem; }
.cinema-select[hidden] { display: none; }
.cinema-select select { min-width: 170px; max-width: min(40vw, 310px); padding: .6rem .7rem; border: 1px solid #e7dcc057; border-radius: .4rem; color: #fff7e8; background: #16343b; font: inherit; }
.cinema-scope-note { margin-left: auto; color: #9eb4b4; font-size: .68rem; }
.cinema-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(255px, 22%); min-height: 0; }
.cinema-screen { position: relative; height: clamp(360px, 42vw, 590px); overflow: hidden; border-right: 1px solid #e7dcc026; background: #172a2e; isolation: isolate; }
.cinema-slide { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; opacity: 0; transition: opacity 1s ease-in-out; }
.cinema-slide::before { position: absolute; inset: -25px; background-image: var(--photo-background); background-size: cover; background-position: center; filter: blur(26px) brightness(.55) saturate(.8); content: ""; }
.cinema-slide img { position: relative; display: block; width: auto; height: auto; max-width: calc(100% - 3rem); max-height: calc(100% - 3rem); object-fit: contain; box-shadow: 0 1rem 3rem #0006; }
.cinema-slide.is-current { opacity: 1; }
.cinema-stamp { position: absolute; top: 1.1rem; left: 1.3rem; z-index: 2; color: #fff5df; font-size: .6rem; letter-spacing: .22em; text-shadow: 0 1px 7px #000a; }
.cinema-chapter { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; color: #f7eddb; background: rgba(9,27,33,.9); opacity: 0; pointer-events: none; transition: opacity .28s ease; }
.cinema-chapter.is-visible { opacity: 1; }
.cinema-chapter span { color: #dcccab; font-size: .68rem; letter-spacing: .2em; }
.cinema-chapter strong { font-family: var(--display); font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 400; }
.cinema-chapter small { font-size: .8rem; letter-spacing: .15em; }
.cinema-story { display: flex; min-width: 0; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.7rem); color: #f5eedf; background: radial-gradient(circle at 100% 100%, #315052, transparent 50%), #122a31; }
.cinema-story .eyebrow { color: #ddcfad; font-size: .62rem; }
.cinema-story-context { min-height: 2.6em; margin: .8rem 0 0; color: #a9bdba; font-size: .73rem; line-height: 1.45; }
.cinema-story-copy { margin: auto 0 1.5rem; }
#cinema-date { margin: 0; color: #d5c6a6; font-size: .68rem; line-height: 1.5; }
.cinema-story h3 { margin: .7rem 0 1rem; font-family: var(--display); font-size: clamp(2.8rem, 4.3vw, 4.6rem); font-weight: 400; line-height: 1.15; }
#cinema-caption { margin: 0; color: #e4e4dc; font-size: .82rem; line-height: 1.8; overflow-wrap: anywhere; }
.cinema-story-mark { align-self: flex-end; color: #d3bc8e; font-size: 2.2rem; line-height: 1; }
.cinema-player { padding: 1.15rem 1.4rem 1.25rem; border-top: 1px solid #e7dcc02b; background: #0c1d24; }
.cinema-controls { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.cinema-counter .eyebrow { color: #c1bdad; font-size: .6rem; letter-spacing: .13em; }
#cinema-count { margin: .25rem 0 0; color: #f4ead8; font-size: .78rem; font-variant-numeric: tabular-nums; }
.cinema-buttons { display: flex; gap: .45rem; }
.cinema-buttons button, .photo-wall-toolbar button { min-height: 42px; padding: .6rem 1rem; border: 1px solid #d9ccb655; border-radius: 99px; background: transparent; color: #f4ead8; font: inherit; font-size: .75rem; cursor: pointer; }
.cinema-buttons button:hover, .cinema-thumb:hover { border-color: #f0e4c9; }
.cinema-buttons #cinema-play { min-width: 104px; color: #182223; background: #ede0c4; }
.cinema-progress { display: block; width: 100%; height: 3px; margin: 1rem 0; appearance: none; border: 0; border-radius: 99px; background: #e7dcc02b; }
.cinema-progress::-webkit-progress-bar { border-radius: 99px; background: #e7dcc02b; }
.cinema-progress::-webkit-progress-value { border-radius: 99px; background: #d8c28f; }
.cinema-progress::-moz-progress-bar { border-radius: 99px; background: #d8c28f; }
.cinema-filmstrip { display: flex; gap: .55rem; overflow-x: auto; padding: .25rem 0 .65rem; scrollbar-color: #a8956c #162b31; scrollbar-width: thin; }
.cinema-thumb { position: relative; flex: 0 0 86px; height: 64px; padding: 3px; border: 1px solid #e7dcc04f; border-radius: .2rem; background: #102a30; cursor: pointer; }
.cinema-thumb[aria-current="true"] { border-color: #f1dfa9; box-shadow: 0 0 0 2px #f1dfa960; }
.cinema-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cinema-status { margin: 0; padding: 0 1.4rem 1rem; color: #d8ccba; font-size: .75rem; }
.cinema-status:empty { display: none; }
.stats-dialog--photos { width: min(1440px, calc(100% - 2rem)); background: radial-gradient(ellipse at top left, #2b3b38, transparent 55%), #0d1c24; }
.stats-dialog--photos #stats-dialog-title { font-size: clamp(2.5rem, 5vw, 4.5rem); }
.photo-wall-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 1rem 0 1.5rem; border-bottom: 1px solid #e6d8b82b; }
.photo-wall-toolbar label { font-size: .75rem; color: #e3dbcc; }
.photo-wall-toolbar select { max-width: 180px; margin-left: .5rem; padding: .6rem; color: #f5ecd9; background: #142c30; border: 1px solid #e6d8b844; border-radius: .4rem; font: inherit; }
.photo-wall-count { color: #b3bdb7; font-size: .75rem; margin-right: auto; }
.stats-dialog--photos .photo-archive-grid { display: block; columns: 3; column-gap: 1.4rem; padding: .6rem; }
.stats-dialog--photos .photo-archive-card { display: inline-block; width: 100%; break-inside: avoid; margin: 0 0 1.5rem; padding: .55rem .55rem 0; border: none; border-radius: 2px; background: #eee6d5; color: #283732; box-shadow: 0 .5rem 1rem #0004; transform: rotate(-.7deg); transition: transform .25s, box-shadow .25s; }
.stats-dialog--photos .photo-archive-card:nth-child(3n) { transform: rotate(.7deg); }
.stats-dialog--photos .photo-archive-card:hover, .stats-dialog--photos .photo-archive-card:focus-within { transform: translateY(-4px); box-shadow: 0 1rem 2rem #0006; }
.stats-dialog--photos .photo-archive-card[hidden] { display: none; }
.stats-dialog--photos .photo-archive-card button { aspect-ratio: auto; min-height: 120px; }
.stats-dialog--photos .photo-archive-card img { display: block; height: auto; min-height: 120px; max-height: 560px; object-fit: cover; }
.stats-dialog--photos .photo-archive-card figcaption { padding: .85rem .45rem 1rem; }
.stats-dialog--photos .photo-archive-card figcaption strong { font-size: 1.35rem; }
.stats-dialog--photos .photo-archive-card figcaption span { color: #54615a; }
.stats-dialog--photos .photo-archive-card figcaption small { color: #657168; white-space: normal; }
@media (max-width: 850px) {
  .cinema-stage { grid-template-columns: 1fr; }
  .cinema-screen { height: clamp(280px, 68vw, 500px); border-right: 0; }
  .cinema-story { min-height: 190px; gap: .7rem; padding: 1.4rem; }
  .cinema-story-copy { margin: .5rem 0; }
  .cinema-story-mark { display: none; }
  .cinema-story-context { min-height: 0; margin: 0; }
  .stats-dialog--photos .photo-archive-grid { columns: 2; column-gap: 1rem; }
}
@media (max-width: 540px) {
  .cinema-scope { padding: .85rem; }
  .cinema-scope-tabs { width: 100%; }
  .cinema-scope-tabs button { flex: 1; padding: .4rem .35rem; }
  .cinema-scope-note { width: 100%; margin: 0; }
  .cinema-select { width: 100%; }
  .cinema-select select { flex: 1; max-width: none; min-width: 0; }
  .cinema-screen { height: 68vw; min-height: 255px; }
  .cinema-slide img { max-width: calc(100% - 1.2rem); max-height: calc(100% - 1.2rem); }
  .cinema-story { min-height: 160px; }
  .cinema-story h3 { font-size: 2.4rem; margin: .3rem 0 .5rem; }
  .cinema-player { padding: 1rem .85rem; }
  .cinema-controls { flex-wrap: wrap; }
  .cinema-buttons { width: 100%; }
  .cinema-buttons button { flex: 1; padding: .55rem .3rem; }
  .cinema-thumb { flex-basis: 74px; height: 58px; }
  .stats-dialog--photos .photo-archive-grid { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .cinema-slide, .cinema-chapter { transition: none; }
  .stats-dialog--photos .photo-archive-card { transition: none; }
}
