/* GDPR two-click facade for YouTube / PeerTube embeds. No third-party
   request is made until the visitor explicitly consents. */

.media-consent {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(800px 280px at 80% 0%, rgba(97, 206, 112, 0.28), transparent 55%),
    linear-gradient(145deg, #0f1d26 0%, #163447 55%, #0b2a3a 100%);
  color: #f2f7fa;
  box-shadow: 0 8px 28px rgba(0, 30, 50, 0.28);
}

.media-consent.is-loaded {
  background: #000;
}

.media-consent__facade {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.25rem 1.5rem;
  text-align: center;
  box-sizing: border-box;
}

.media-consent__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #c9f2cf;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.media-consent__title {
  margin: 0;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 700;
  line-height: 1.25;
}

.media-consent__text {
  margin: 0;
  max-width: 34rem;
  color: rgba(242, 247, 250, 0.82);
  font-size: 0.95rem;
  line-height: 1.55;
}

.media-consent__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

.media-consent__load {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 44px;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 999px;
  background: #61ce70;
  color: #0f1d26;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.media-consent__load:hover {
  background: #7ada87;
}

.media-consent__load:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.media-consent__external {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 1.1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.media-consent__external:hover {
  background: rgba(255, 255, 255, 0.1);
}

.media-consent__note {
  margin: 0;
  max-width: 34rem;
  color: rgba(242, 247, 250, 0.55);
  font-size: 0.78rem;
  line-height: 1.45;
}

.media-consent iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Homepage laptop frame: keep Elementor sizing, fill the slot */
#laptop-video-container .media-consent {
  width: 560px;
  max-width: 100%;
  height: 408px;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 767px) {
  #laptop-video-container .media-consent {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .media-consent__facade {
    padding: 1rem;
    gap: 0.65rem;
  }

  .media-consent__text {
    font-size: 0.88rem;
  }
}
