/* Basisstijl voor de hele site. */
body {
  background-color: #050505;
  color: #eaeaea;
  font-family: Verdana, sans-serif;
  margin: 0;
}

/* Klein "Coming up"-schema rechtsboven, in de lokale tijd van de bezoeker. */
.schedule {
  position: fixed;
  top: 10px;
  right: 12px;
  z-index: 20;
  width: 210px;
  padding: 8px 10px;
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid #262626;
  border-radius: 6px;
  font-size: 11px;
  color: #c9c9c9;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.schedule:hover {
  opacity: 1;
}
.schedule__title {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ff5a5a;
  margin-bottom: 5px;
}
.schedule__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.schedule__list li {
  display: flex;
  gap: 8px;
  padding: 2px 0;
  line-height: 1.3;
}
.schedule__time {
  flex: 0 0 auto;
  color: #8a8a8a;
  font-variant-numeric: tabular-nums;
}
.schedule__name {
  flex: 1 1 auto;
  color: #dcdcdc;
}

/* Op smalle schermen het schema verbergen (te weinig ruimte). */
@media (max-width: 820px) {
  .schedule { display: none; }
}

/* Prominente "Message from me"-link aan de linkerkant. */
.message-link {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  font-size: 20px;
  font-weight: bold;
  color: #ff5a5a;
  text-decoration: none;
  padding: 10px 16px;
  border: 2px solid #ff5a5a;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
  transition: background 0.2s, color 0.2s, transform 0.1s;
}
.message-link:hover {
  background: #ff5a5a;
  color: #0a0a0a;
  transform: translateY(-50%) scale(1.05);
}

/* Op smalle schermen minder opdringerig. */
@media (max-width: 820px) {
  .message-link {
    top: auto;
    bottom: 34px;
    transform: none;
    font-size: 15px;
    padding: 7px 12px;
  }
  .message-link:hover { transform: scale(1.05); }
}

/* Kleine, onopvallende linkjes linksonder. */
.corner-links {
  position: fixed;
  left: 10px;
  bottom: 8px;
  display: flex;
  gap: 14px;
  z-index: 20;
}
.corner-links a {
  font-size: 11px;
  color: #666;
  text-decoration: none;
}
.corner-links a:hover {
  color: #aaa;
  text-decoration: underline;
}

/* Eenvoudige tekstpagina (o.a. copyright). */
.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
.copyright {
  max-width: 560px;
  line-height: 1.6;
  font-size: 15px;
  color: #dcdcdc;
}
.copyright h1 {
  font-size: 22px;
  color: #f5f5f5;
  margin-top: 0;
}
.copyright__back {
  margin-top: 28px;
  font-size: 13px;
}
.copyright__back a {
  color: #ff8080;
  text-decoration: none;
}
.copyright__back a:hover {
  text-decoration: underline;
}

/* --- Bioscooppagina --- */
.cinema-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  box-sizing: border-box;
}

.cinema-title {
  margin: 0;
  text-align: center;
  font-size: clamp(20px, 3.4vw, 34px);
  font-weight: bold;
  letter-spacing: 0.5px;
  color: #f5f5f5;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

/* Altijd zichtbare "Now Playing"-balk met de filmnaam. */
.nowplaying {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  background: linear-gradient(180deg, #171717, #0e0e0e);
}
.nowplaying__label {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #ff4d4d;
  white-space: nowrap;
}
.nowplaying__title {
  font-size: 15px;
  font-weight: bold;
  color: #f5f5f5;
}

/* Twee kolommen: zaal links, chat rechts. */
.stage {
  display: flex;
  gap: 18px;
  align-items: stretch;
  width: 100%;
  max-width: 1240px;
  justify-content: center;
}
.cinema-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
}

/* Chat-paneel rechts: zo minimaal mogelijk. */
.chat {
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  overflow: hidden;
  min-height: 320px;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.chat:hover {
  opacity: 1;
}

/* Minimaliseerbalk boven de chat. */
.chat__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 4px 4px;
}
.chat__title {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #777;
}
.chat__toggle {
  width: 22px;
  height: 22px;
  line-height: 20px;
  text-align: center;
  padding: 0;
  background: #1a1a1a;
  color: #ccc;
  border: 1px solid #333;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
  font-family: inherit;
}
.chat__toggle:hover {
  background: #2a2a2a;
}

/* Geminimaliseerd: alleen de balk met de + knop blijft over. */
.chat.is-min {
  flex-basis: auto;
  min-height: 0;
  opacity: 1;
}
.chat.is-min .chat__embed {
  display: none;
}
/* Embed-slot: de ingesloten shoutbox (iframe) vult het hele paneel. */
.chat__embed {
  flex: 1 1 auto;
  display: flex;
  min-height: 300px;
}
.chat__embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.chat__placeholder {
  margin: auto;
  padding: 18px;
  font-size: 13px;
  line-height: 1.5;
  color: #bdbdbd;
  text-align: center;
}
.chat__placeholder p { margin: 0 0 8px; }
.chat__placeholder a { color: #ff8080; }
.chat__placeholder code {
  background: #1c1c1c;
  padding: 1px 5px;
  border-radius: 4px;
}

/* Op smalle schermen: chat onder de zaal. */
@media (max-width: 820px) {
  .stage { flex-direction: column; align-items: center; }
  .chat { flex: 1 1 auto; width: min(92vw, 900px); }
}

/* ---------- Volledig scherm: zaal + zwevende chat ---------- */
.stage.is-fs {
  width: 100%;
  height: 100%;
  background: #000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage.is-fs .cinema-wrap {
  flex: 0 0 auto;
  width: auto;
}
.stage.is-fs .cinema {
  width: min(100vw, calc(100vh * 500 / 281));
  height: min(100vh, calc(100vw * 281 / 500));
  max-width: none;
  box-shadow: none;
}
/* Bediening zwevend onderin. */
.stage.is-fs .controls {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}
/* Chat zweeft rechtsboven over de film. */
.stage.is-fs .chat {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 260px;
  max-height: 78vh;
  z-index: 10;
  opacity: 1;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  padding: 4px 6px;
}
.stage.is-fs .chat.is-min {
  max-height: none;
}
.stage.is-fs .chat__embed {
  min-height: 300px;
}

/* De container heeft dezelfde verhouding als de afbeelding (500 x 281). */
.cinema {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 500 / 281;
  line-height: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.cinema__img {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-drag: none;
}


/* De video ligt exact op het zwarte scherm.
   Waarden gemeten uit cinemaaa.jpg (scherm: links 126px, boven 45px,
   rechts 374px, onder 149px van 500 x 281). */
.cinema__screen {
  position: absolute;
  left: 25.2%;
  top: 16.0%;
  width: 49.8%;
  height: 37.4%;
  background: #000;
  overflow: hidden;
  pointer-events: none; /* niet klikbaar: geen pauze, geen YouTube-UI */
}
.cinema__screen #ytplayer,
.cinema__screen iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* LIVE-badge rechtsboven in het scherm. */
.cinema__live {
  position: absolute;
  right: 26%;
  top: 18%;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.5px;
  color: #ff4d4d;
  background: rgba(0, 0, 0, 0.55);
  padding: 2px 7px;
  border-radius: 4px;
  pointer-events: none;
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Bediening onder de zaal. */
.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  justify-content: center;
}
.controls__btn {
  background: #1c1c1c;
  color: #eaeaea;
  border: 1px solid #333;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
}
.controls__btn:hover {
  background: #2a2a2a;
}
