/* ============================================================
   KLUIS.HTML — "Terug in de tijd": random oude video van sc Heerenveen
   Hergebruikt de tokens uit base.css.
   ============================================================ */
.kluis-page { max-width: 820px; margin: 0 auto; padding: 48px 24px 80px; }
.kluis-intro { font-size: var(--fs-lees); line-height: 1.55; color: var(--ink-soft); margin-bottom: 24px; max-width: 56ch; text-wrap: pretty; }

.kluis {
  border-radius: var(--r-xl); box-shadow: var(--shadow-border); background: var(--surface);
  padding: 14px 14px 18px;
}

/* het "scherm": 16:9, donkerblauw met fijne beeldlijnen, de teller in mono */
.kluis-scherm {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-l); overflow: hidden;
  background: var(--panel); color: var(--white);
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.kluis-scherm::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgb(255 255 255 / 0.035) 0 1px, transparent 1px 4px);
}
.kluis-scherm.is-thumb::before { display: none; }
.kluis-leeg { position: relative; padding: 0 20px; }
.kluis-teller {
  display: block; font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace; font-weight: 500;
  font-size: clamp(44px, 12vw, 96px); letter-spacing: 0.06em; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--white);
}
.kluis-teller-label {
  display: block; margin-top: 12px; font-family: 'Oswald', sans-serif; font-weight: 500;
  font-size: var(--fs-ui); letter-spacing: 0.18em; text-transform: uppercase; color: rgb(255 255 255 / 0.65);
}
.kluis-scherm.is-draait .kluis-teller { animation: kluis-flikker 0.18s steps(2) infinite; }
@keyframes kluis-flikker { 50% { opacity: 0.45; } }
/* geland: het jaartal klikt even vast */
.kluis-scherm.is-geland .kluis-teller { color: var(--rood-licht); animation: kluis-land .5s var(--ease-zacht); }
.kluis-scherm.is-geland .kluis-teller-label { color: var(--white); }
@keyframes kluis-land { 0% { scale: 1.14; color: var(--white); } 100% { scale: 1; color: var(--rood-licht); } }
/* tijdens het draaien zijn de cijfers gedimd, zodat het jaar waarop hij landt eruit springt */
.kluis-scherm.is-draait .kluis-teller { opacity: 0.6; }

/* thumbnail + play, daarna de iframe */
.kluis-play { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer; background: var(--panel); }
.kluis-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kluis-play::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 20 50 / 0.45), transparent 55%); }
.kluis-play-icoon {
  position: absolute; z-index: 1; left: 50%; top: 50%; translate: -50% -50%;
  width: 68px; height: 68px; border-radius: 50%; background: var(--red);
  display: flex; align-items: center; justify-content: center;
  transition: scale .15s ease-out, background .15s;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.35);
}
.kluis-play-icoon svg { width: 30px; height: 30px; fill: #fff; margin-left: 3px; }
.kluis-play:hover .kluis-play-icoon { background: var(--red-dark); scale: 1.06; }
.kluis-play:active .kluis-play-icoon { scale: 0.96; }
.kluis-play:focus-visible { outline: 3px solid var(--white); outline-offset: -6px; }
#kluisSpeler, .kluis-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

/* de titel onder het scherm */
.kluis-info { display: flex; align-items: flex-start; gap: 14px; padding: 16px 4px 4px; flex-wrap: wrap; }
.kluis-info[hidden] { display: none; }
.kluis-tekst { flex: 1 1 240px; min-width: 0; }
.kluis-titel { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: var(--fs-kop); color: var(--blue-dark); text-wrap: balance; }
.kluis-regel { margin-top: 4px; font-size: var(--fs-tekst); line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }

/* Knoppen volgen de rest van de site (zoals .pw-luister / .pw-spotify in
   podcastweek.css): kleine rechthoek met 6px hoek, Inter 13.5px, 44px hoog.
   De hoofdactie is blauw gevuld (rood blijft voor "Word lid"), de twee
   andere acties zijn omrand met de schaduw-als-rand. Alle drie even hoog. */
.kluis-acties { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; padding: 0 4px; }
.kluis-sec[hidden] { display: none; }
.kluis-sec svg { width: 15px; height: 15px; flex: none; }
/* like: pompeblêd; na het liken gevuld blauw */
.kluis-like.voted { background: var(--blue-tint); color: var(--blue); box-shadow: 0 0 0 1.5px var(--blue); }
.kluis-like.vote-pop { animation: kluis-pop .45s var(--ease-zacht); }
@keyframes kluis-pop { 0% { scale: 0.9; } 50% { scale: 1.18; } 100% { scale: 1; } }
.kluis-like .kluis-like-tel { font-variant-numeric: tabular-nums; }

.kluis-noot { margin-top: 18px; font-size: var(--fs-klein); line-height: 1.5; color: var(--muted); max-width: 62ch; }

@media (max-width: 640px) {
  .kluis-page { padding: 32px var(--pagina-zij) 60px; }
  .kluis { padding: 10px 10px 16px; }
  .kluis-titel { font-size: var(--fs-kop-s); }
  /* hoofdknop over de volle breedte, de twee andere even breed eronder */
  .kluis-knop { flex: 1 1 100%; }
  .kluis-sec { flex: 1 1 0; min-width: 0; }
  .kluis-play-icoon { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .kluis-scherm.is-draait .kluis-teller, .kluis-scherm.is-geland .kluis-teller, .kluis-like.vote-pop { animation: none; }
}
