/* The cinema the film plays in. Dark, so nothing competes with the picture. */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: #07060f;
  color: #ece8f7;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100%;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #ffbe3d; color: #231405; padding: 10px 16px;
  border-radius: 0 0 10px 0; font-weight: 800; z-index: 50;
}
.skip-link:focus { left: 0; }

.cinema {
  max-width: 1000px;
  margin: 0 auto;
  padding: 18px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.marquee {
  margin: 4px 0 0;
  font-size: clamp(26px, 6vw, 44px);
  letter-spacing: .5px;
  text-align: center;
  color: #ffbe3d;
  text-shadow: 0 3px 0 rgba(0,0,0,.5);
}
.marquee span {
  display: block;
  font-size: .42em;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #b9b2d4;
  text-shadow: none;
  margin-top: 4px;
}

/* The picture itself, with a rim so it reads as a screen and not a hole. */
.frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 2px #2b2545, 0 18px 50px rgba(0,0,0,.65), 0 0 90px rgba(120,90,200,.18);
}
#screen {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  cursor: pointer;
}

/* Filling the screen. The frame becomes the whole window, and the picture
   is centred in it with bars rather than stretched out of shape. */
.frame:fullscreen {
  border-radius: 0;
  display: grid;
  place-items: center;
  box-shadow: none;
}
.frame:fullscreen #screen { width: auto; height: auto; max-width: 100vw; max-height: 100vh; }

.bigplay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  border: 0; cursor: pointer;
  background: rgba(6,4,14,.3);
  transition: opacity .18s ease;
}
.bigplay[hidden] { display: none; }
.bigplay span {
  display: grid; place-items: center;
  width: clamp(64px, 14vw, 96px); aspect-ratio: 1;
  border-radius: 50%;
  background: #ffbe3d; color: #231405;
  font-size: clamp(28px, 6vw, 42px);
  padding-left: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.bigplay:hover span { transform: scale(1.06); }

.controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cbtn {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 2px solid #342c55;
  background: #171233;
  color: #ece8f7;
  font-size: 19px;
  cursor: pointer;
}
.cbtn:hover { background: #221a44; }
.cbtn:focus-visible, .exit:focus-visible, .scrub:focus-visible, .bigplay:focus-visible {
  outline: 3px solid #ffbe3d; outline-offset: 2px;
}

.scrub {
  flex: 1 1 auto;
  min-width: 0;
  height: 26px;
  accent-color: #ffbe3d;
  cursor: pointer;
}
.clock {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: #b9b2d4;
}

.hint {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: #8d86ab;
}

.exits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}
.exit {
  text-decoration: none;
  font-weight: 800;
  padding: 12px 20px;
  border-radius: 12px;
  background: #ffbe3d;
  color: #231405;
  border: 2px solid #c58f1e;
}
.exit.ghost { background: #171233; color: #ece8f7; border-color: #342c55; }

@media (max-width: 520px) {
  .clock { display: none; }
  .hint { display: none; }
}
