.ferie-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000;
  overflow: hidden;
  opacity: 0;
  animation: ferieFadeIn 0.35s ease forwards;
}

.ferie-popup[hidden] {
  display: none;
}

.ferie-popup__video {
  display: block;
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  background: #000;
}

.ferie-popup__close,
.ferie-popup__audio {
  position: fixed;
  z-index: 100000;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
}

.ferie-popup__close {
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
}

.ferie-popup__audio {
  top: max(16px, env(safe-area-inset-top));
  right: calc(max(16px, env(safe-area-inset-right)) + 58px);
}

.ferie-popup__close:hover,
.ferie-popup__audio:hover {
  background: rgba(0, 0, 0, 0.78);
}

.ferie-popup__close:focus-visible,
.ferie-popup__audio:focus-visible {
  outline: 3px solid #f3b43f;
  outline-offset: 3px;
}

.ferie-popup.is-closing {
  animation: ferieFadeOut 0.3s ease forwards;
}

body.ferie-popup-open {
  overflow: hidden;
}

@keyframes ferieFadeIn {
  to {
    opacity: 1;
  }
}

@keyframes ferieFadeOut {
  to {
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .ferie-popup__close,
  .ferie-popup__audio {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }

  .ferie-popup__audio {
    right: calc(max(12px, env(safe-area-inset-right)) + 52px);
  }

  .ferie-popup__close {
    right: max(12px, env(safe-area-inset-right));
  }
}

.ferie-replay {
  position: fixed;
  right: 108px;
  bottom: 18px;
  z-index: 99998;

  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1rem;

  background: rgba(0, 0, 0, 0.72);
  color: #fff;

  font-weight: 700;
  font-size: 0.95rem;

  display: inline-flex;
  align-items: center;
  gap: 0.45rem;

  cursor: pointer;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.ferie-replay:hover {
  background: rgba(0, 0, 0, 0.86);
  transform: translateY(-1px);
}

.ferie-replay:focus-visible {
  outline: 3px solid #f3b43f;
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .ferie-replay {
    right: 102px;
    bottom: 12px;
    padding: 0.7rem 0.85rem;
    font-size: 0.85rem;
  }
}