/* CIN-01..03 Cinema replay: the real stage in a black letterbox, nothing of the room around it */
#cinema { position: fixed; inset: 0; z-index: 9000; background: #000; display: flex; align-items: center; justify-content: center; cursor: default; }
#cinema .cin-frame { position: relative; width: min(100vw, calc(100vh * 16 / 9)); height: min(100vh, calc(100vw * 9 / 16)); background: #000; overflow: hidden; }
#cinema .cin-frame > #stage { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important;
  min-height: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; cursor: pointer; }
/* only the film: background, people, props, effects, cards and the text box */
#cinema #stage > :not(#bg):not(#props-back):not(#cast):not(#props-front):not(#weather):not(#vfilter):not(#flash):not(#location):not(#reveal):not(#xcutin):not(#ultfx):not(#vignette):not(#dialogue):not(#theater):not(#titlecard):not(#scene-cut):not(#map):not(#results):not(#banner):not(#alerts):not(#cutin):not(#roundend):not(#vnc):not(#actcard):not(#rolling):not(#punchfx):not(#turnflag) { display: none !important; }
#cinema #stage > .hidden { display: none !important; }
#cinema #stage.cin-fight #map { inset: 0 !important; height: 100% !important; pointer-events: none; }
#cinema #stage.cin-fight #results { pointer-events: auto; }
#cinema #dl-log, #cinema #dl-fade, #cinema #dl-more { display: none !important; }
#cinema #cast .sprite { cursor: pointer; }
/* controls: a thin bar over the bottom letterbox, shown when the mouse moves */
#cinema .cin-ctl { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  justify-content: center; padding: 6px 10px; border-radius: 10px; background: rgba(8, 12, 18, .82); border: 1px solid rgba(255,255,255,.12);
  opacity: 0; transition: opacity .35s; z-index: 3; max-width: calc(100vw - 20px); }
#cinema.ctl-on .cin-ctl, #cinema .cin-ctl:hover, #cinema .cin-ctl:focus-within { opacity: 1; }
#cinema .cin-ctl select { width: auto; }
#cinema .cin-title { font: 600 13px var(--head); color: #e3f2fd; margin-right: 6px; max-width: 28vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#cinema .cin-pos { font: 12px var(--mono, monospace); color: #90a4ae; margin: 0 4px; }
#cinema .cin-log { position: absolute; right: 12px; top: 12px; bottom: 64px; width: min(380px, 40vw); overflow: auto; z-index: 4; padding: 10px 12px;
  background: rgba(8, 12, 18, .92); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; font-size: 13px; line-height: 1.5; }
#cinema .cin-log.hidden { display: none; }
#cinema .cin-log div { margin-bottom: 4px; }
#cinema .cin-end { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.72); }
#cinema .cin-end.hidden { display: none; }
#cinema .cin-end > div { text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
#cinema .cin-end small { color: #90a4ae; letter-spacing: .2em; text-transform: uppercase; }
#cinema .cin-end b { font: 600 28px var(--head); color: #fff; }
#cinema .cin-end span { color: #b0bec5; letter-spacing: .4em; }
body.cinema { overflow: hidden; }
/* Scene select (the Menu): rooms as sections */
#episodes .ep-room { margin-top: 14px; font: 600 12px var(--head); letter-spacing: .14em; color: var(--accent); text-transform: uppercase; }
.ep-cover .ep-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.55); color: #fff; font-size: 16px; opacity: 0; transition: opacity .2s; }
.ep-card:hover .ep-play { opacity: 1; }
