/* Hero: playknop. Standalone, geen SCSS-compile nodig. */

.hero-video-shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14, 22, 58, 0.46) 0%, rgba(16, 26, 64, 0.58) 48%, rgba(12, 20, 52, 0.72) 100%);
}

.hero-video-cta {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  width: max-content;
  max-width: calc(100% - 2.5rem);
  color: #fff;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.hero-video-cta:hover,
.hero-video-cta:focus {
  color: #fff;
  text-decoration: none;
}

.hero-video-cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 6px;
  border-radius: 16px;
}

.hero-video-cta__play {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #3a4690 0%, #27316a 60%, #1c2452 100%);
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 14px 34px rgba(8, 12, 36, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.hero-video-cta__play::before,
.hero-video-cta__play::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  animation: hero-video-cta-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

.hero-video-cta__play::after {
  animation-delay: 1.2s;
}

.hero-video-cta__play .fas {
  margin-left: 0.2em;
  line-height: 1;
}

.hero-video-cta:hover .hero-video-cta__play,
.hero-video-cta:focus-visible .hero-video-cta__play {
  transform: scale(1.07);
  background: linear-gradient(145deg, #4654a6 0%, #2e3a7d 60%, #222b5f 100%);
  box-shadow: 0 18px 40px rgba(8, 12, 36, 0.55);
}

@keyframes hero-video-cta-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-cta__play::before,
  .hero-video-cta__play::after {
    animation: none;
    opacity: 0;
  }
}

.hero-video-cta__note {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.15rem;
}

.hero-video-cta__label {
  display: inline-block;
  max-width: none;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(39, 49, 106, 0.94);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 10px 24px rgba(8, 12, 32, 0.32);
  transform: rotate(-4deg);
  transform-origin: 0 50%;
}

.hero:not(.hero-lg) .hero-video-cta__play {
  width: 68px;
  height: 68px;
  font-size: 1.3rem;
}

@media (max-width: 767.98px) {
  .hero-video-cta {
    top: 42%;
  }

  .hero-video-cta__play {
    width: 66px;
    height: 66px;
    font-size: 1.25rem;
  }

  .hero-video-cta__label {
    max-width: 9.5rem;
    font-size: 0.8rem;
    padding: 0.4rem 0.7rem;
    transform: rotate(-3deg);
  }
}

.fancybox-hero-video .fancybox__content {
  padding: 0;
  overflow: hidden;
  background: #000;
  width: min(1120px, calc(100vw - 2.5rem), calc((100vh - 6rem) * 1.7778));
  aspect-ratio: 16 / 9;
}

.fancybox-hero-video .hero-video-player {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}
