/* The cinema the film plays in. Dark, so nothing competes with the picture. */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: #06100a;
  color: #eaf7e8;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100%;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #7ed957; color: #0d2108; 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: #7ed957;
  text-shadow: 0 3px 0 rgba(0,0,0,.5);
}
.marquee span {
  display: block;
  font-size: .42em;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #b8d4b2;
  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 #24452b, 0 18px 50px rgba(0,0,0,.65), 0 0 90px rgba(110,200,90,.16);
}
#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(4,14,6,.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: #7ed957; color: #0d2108;
  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 #2c5534;
  background: #12301a;
  color: #eaf7e8;
  font-size: 19px;
  cursor: pointer;
}
.cbtn:hover { background: #1a4424; }
.cbtn:focus-visible, .exit:focus-visible, .scrub:focus-visible, .bigplay:focus-visible {
  outline: 3px solid #7ed957; outline-offset: 2px;
}

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

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

.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: #7ed957;
  color: #0d2108;
  border: 2px solid #3f9a3a;
}
.exit.ghost { background: #12301a; color: #eaf7e8; border-color: #2c5534; }

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