/* VSL player — unmute overlay (screen-4 style), mobile-safe */

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body.noscroll {
  margin: 0;
  height: 100vh;
  overflow: hidden;
}

.media {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

#container_video {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

#container_video.fullscreen {
  background: #000;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  aspect-ratio: auto;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  border-radius: 0;
}

#video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin: 0 auto;
  object-fit: contain;
  background: #000;
}

#container_video.fullscreen #video {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

#open-video,
#play {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 3;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.18);
}

#play {
  display: flex;
}

.unmute-card {
  width: 88%;
  max-width: 320px;
  padding: 18px 20px 16px;
  border-radius: 14px;
  border: 2px solid #fff;
  background: rgba(160, 0, 0, 0.92);
  color: #fff;
  text-align: center;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
  pointer-events: none; /* whole #play catches click */
}

.unmute-title,
.unmute-cta {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.unmute-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 14px 0;
}

#open-video > div {
  width: 88%;
  max-width: 300px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 2px solid #fff;
  background: rgba(160, 0, 0, 0.9);
  color: #fff;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
}

#open-video h4 {
  margin: 0;
  color: #fff;
}

#close {
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  width: 48px;
  height: 48px;
  cursor: pointer;
  z-index: 10001;
  background-image: url("images/close.svg");
  background-size: 28px 28px;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  -webkit-tap-highlight-color: transparent;
}

#container_video.is-buffering::after {
  content: "Video wird geladen…";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font: 700 14px/1.3 Arial, Helvetica, sans-serif;
  pointer-events: none;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .unmute-card {
    max-width: 280px;
    padding: 14px 16px 12px;
  }

  .unmute-title,
  .unmute-cta {
    font-size: 15px;
  }

  .unmute-icon svg {
    width: 46px;
    height: 46px;
  }
}
