/* =============================================================
   EMENDIS VIDEO PLAYER — gedeeld component (home + productpagina's)
   Video staat standaard op pauze met poster + grote playknop.
   Klik = afspelen mét geluid, daarna native controls.
   Accentkleur per pagina via --evp-accent / --evp-accent-rgb.
   ============================================================= */
.evp {
  --evp-accent: #D61F4E;
  --evp-accent-rgb: 214, 31, 78;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #0B0E12;
  isolation: isolate;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 30px 60px -20px rgba(0,0,0,0.45),
    0 18px 36px -18px rgba(var(--evp-accent-rgb), 0.35);
}
.evp-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: #0B0E12;
}
.evp-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  border: 0; padding: 0; margin: 0;
  background: linear-gradient(180deg, rgba(11,14,18,0.05) 0%, rgba(11,14,18,0.28) 100%);
  cursor: pointer;
  transition: opacity .35s ease, visibility .35s ease, background-color .3s ease;
  font: inherit; color: #fff;
}
.evp-overlay:hover { background-color: rgba(11,14,18,0.12); }
.evp-overlay:focus-visible { outline: 3px solid var(--evp-accent); outline-offset: -3px; }

.evp-play {
  position: relative;
  width: clamp(68px, 9vw, 96px);
  height: clamp(68px, 9vw, 96px);
  border-radius: 50%;
  background: var(--evp-accent);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px rgba(var(--evp-accent-rgb), 0.5);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
}
.evp-play::before {
  content: ""; position: absolute; inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.55);
  animation: evp-pulse 2.4s ease-out infinite;
}
.evp-play svg { width: 36%; height: 36%; margin-left: 8%; fill: #fff; }
.evp-overlay:hover .evp-play,
.evp-overlay:focus-visible .evp-play {
  transform: scale(1.07);
  box-shadow: 0 16px 40px rgba(var(--evp-accent-rgb), 0.6);
}
@keyframes evp-pulse {
  0%   { transform: scale(0.92); opacity: 0.9; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

.evp-meta {
  position: absolute;
  left: clamp(1rem, 2.4vw, 1.5rem);
  bottom: clamp(1rem, 2.4vw, 1.4rem);
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .5rem .85rem;
  border-radius: 999px;
  background: rgba(11,14,18,0.62);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,0.92);
}
.evp-meta svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Na start: overlay weg, native controls zichtbaar */
.evp.is-started .evp-overlay { opacity: 0; visibility: hidden; pointer-events: none; }
/* Na afloop: overlay terug als "opnieuw afspelen" */
.evp.is-ended .evp-overlay { opacity: 1; visibility: visible; pointer-events: auto; }

@media (prefers-reduced-motion: reduce) {
  .evp-play::before { animation: none; }
}
@media (max-width: 640px) {
  .evp { border-radius: 14px; }
  .evp-meta { font-size: .62rem; padding: .4rem .7rem; }
}
@media (max-width: 480px) {
  .evp-meta { display: none; }
}
