/* Films op de site — Terra Klassiek. Alles hangt aan de bestaande tokens, zodat de
   merklaag van de tenant vanzelf doorwerkt; er staat geen kleur hard in. */

/* ---------- strook op het dashboard ---------- */

.ok-film--strook { margin: 0 0 22px; }

.ok-film-strook {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--card, #fff);
  border: 1px solid var(--line, #E7DBC8);
  border-radius: var(--radius, 16px);
  padding: 14px 16px;
}

.ok-film-beeld {
  position: relative;
  flex: none;
  width: 160px;
  height: 90px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--sand-2, #F4ECDF);
  cursor: pointer;
  line-height: 0;
}
.ok-film-beeld img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ok-film-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 2px 10px rgba(46, 39, 33, .22);
}
.ok-film-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-left: 12px solid var(--terra-dark, #A9542F);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.ok-film-tekst { flex: 1 1 auto; min-width: 0; }
.ok-film-titel {
  margin: 0 0 3px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terra-ink, #9C4A27);
}
.ok-film-titel span { color: var(--ink-faint, #8A7E70); margin-left: 8px; letter-spacing: .08em; }
.ok-film-regel { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-soft, #5C5247); }

.ok-film-knop {
  flex: none;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--terra-ink, #9C4A27);
  background: var(--sand-2, #F4ECDF);
  border: 1px solid var(--line, #E7DBC8);
  border-radius: 8px;
  padding: 9px 16px;
  cursor: pointer;
}
.ok-film-knop:hover { background: var(--sand, #EFE4D3); }

.ok-film-sluit {
  flex: none;
  font: inherit;
  font-size: 19px;
  line-height: 1;
  color: var(--ink-faint, #8A7E70);
  background: none;
  border: 0;
  padding: 6px 4px;
  cursor: pointer;
}
.ok-film-sluit:hover { color: var(--ink, #2E2721); }

.ok-film-link {
  display: none;
  align-items: center;
  gap: 9px;
  font: inherit;
  font-size: 14px;
  color: var(--terra-ink, #9C4A27);
  background: none;
  border: 0;
  padding: 2px 0;
  cursor: pointer;
}
.ok-film-link em { font-style: normal; color: var(--ink-faint, #8A7E70); }
.ok-film-link:hover { text-decoration: underline; }
.ok-film-glyph {
  width: 0;
  height: 0;
  border-left: 9px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.ok-film--strook.is-ingeklapt .ok-film-strook { display: none; }
.ok-film--strook.is-ingeklapt .ok-film-link { display: inline-flex; }

/* ---------- hero op de landingspagina ---------- */

.ok-film--hero { margin: 0 0 40px; }

.ok-film-kop { margin: 0 0 18px; max-width: 46ch; }
.ok-film-kop h2 {
  margin: 0 0 6px;
  font-family: var(--display, Georgia, serif);
  font-weight: 600;
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.16;
  color: var(--brown, #463529);
  text-wrap: balance;
}
.ok-film-kop p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink-soft, #5C5247); }

.ok-film-hero-beeld {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line, #E7DBC8);
  border-radius: var(--radius, 16px);
  overflow: hidden;
  background: var(--sand-2, #F4ECDF);
  cursor: pointer;
  line-height: 0;
}
.ok-film-hero-beeld img { width: 100%; height: auto; display: block; }
.ok-film-hero-beeld:hover .ok-film-play { background: #fff; }

.ok-film-play--groot { width: 72px; height: 72px; }
.ok-film-play--groot::after {
  border-left-width: 22px;
  border-top-width: 15px;
  border-bottom-width: 15px;
}

.ok-film-duur {
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(46, 39, 33, .62);
  border-radius: 4px;
  padding: 5px 9px;
  line-height: 1;
}

/* ---------- speler ---------- */

.ok-film-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(46, 39, 33, .72);
}
.ok-film-doos {
  position: relative;
  width: min(100%, 1100px);
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .4);
}
.ok-film-doos video { display: block; width: 100%; height: auto; }
.ok-film-dicht {
  position: absolute;
  top: 10px;
  right: 12px;
  font: inherit;
  font-size: 22px;
  line-height: 1;
  color: #fff;
  background: rgba(0, 0, 0, .45);
  border: 0;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
}

.ok-film button:focus-visible,
.ok-film-dicht:focus-visible { outline: 2px solid var(--terra, #C1694A); outline-offset: 2px; }

@media (max-width: 620px) {
  .ok-film-strook { flex-wrap: wrap; gap: 12px; position: relative; }
  .ok-film-beeld { width: 108px; height: 61px; }
  .ok-film-knop { order: 3; width: 100%; }
  .ok-film-sluit { position: absolute; top: 6px; right: 8px; }
  .ok-film-play--groot { width: 54px; height: 54px; }
  .ok-film-play--groot::after { border-left-width: 17px; border-top-width: 11px; border-bottom-width: 11px; }
}
