.video-embed {
  position: relative;
}

/* The renderer sets the width and the aspect ratio of the player. This is the fallback. */
.cookieman-video {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background-color: #000;
}

.cookieman-video > img,
.cookieman-video > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* The player draws its picture a little inside its frame. A black box would show as a dark border. */
.cookieman-video--shown {
  background-color: transparent;
}

/* The player itself has a dark edge of about 1px. The box cuts it off. */
.cookieman-video > iframe {
  inset: -2px;
  width: calc(100% + 4px);
  max-width: none;
  height: calc(100% + 4px);
}

/* YouTube previews are 4:3 with black bars. Cover cuts the bars off. */
.cookieman-video > img {
  max-width: none;
  object-fit: cover;
}

.cookieman-video-banner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background-color: rgba(0, 0, 0, .25);
}

.cookieman-video-play {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 72px;
  height: 72px;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #2a3e92;
  background-color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .24);
  cursor: pointer;
  transition: transform .15s ease-in-out;
}

.cookieman-video-play:hover,
.cookieman-video-play:focus-visible {
  transform: scale(1.08);
}

.cookieman-video-play:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.cookieman-video-play svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cookieman-video-notice {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 30px 28px;
  font-size: 16px;
  line-height: 22px;
  color: #fff;
  background-color: rgba(0, 0, 0, .75);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.cookieman-video-notice p {
  margin: 0;
}

.cookieman-video-notice-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .44);
  border-radius: 6px;
}

.cookieman-video-notice-icon svg {
  fill: #fff;
}

/* Small players: the notice needs the space. */
@media (max-width: 575px) {
  .cookieman-video {
    min-height: 16em;
  }

  .cookieman-video--shown {
    min-height: 0;
  }

  .cookieman-video-notice {
    gap: 12px;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 20px;
  }

  .cookieman-video-play {
    width: 56px;
    height: 56px;
  }
}
