/* Distraction-free hosted video — end overlay hides platform suggestions */
.afp-video-embed {
  position: relative;
  width: 100%;
  max-width: 100%;
  background: #020617;
  overflow: hidden;
  border-radius: var(--media-radius, 5px);
}

.afp-video-embed > iframe,
.afp-video-embed > video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  vertical-align: top;
  border-radius: inherit;
}

.afp-video-embed.is-ended > iframe,
.afp-video-embed.is-ended > video {
  visibility: hidden;
  pointer-events: none;
}

.afp-video-embed__end {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.25rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.98) 100%);
  color: #f8fafc;
}

.afp-video-embed__end[hidden] {
  display: none !important;
}

.afp-video-embed__end-title {
  margin: 0;
  font: 800 1.05rem/1.25 ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
}

.afp-video-embed__end-lead {
  margin: 0;
  max-width: 22rem;
  font: 500 0.92rem/1.45 ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  color: #cbd5e1;
}

.afp-video-embed__end-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-top: 0.35rem;
}

.afp-video-embed__replay,
.afp-video-embed__dismiss {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.62rem 1.15rem;
  font: 700 0.88rem/1 ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  cursor: pointer;
}

.afp-video-embed__replay {
  background: #6b46fe;
  color: #fff;
}

.afp-video-embed__replay:hover {
  filter: brightness(1.06);
}

.afp-video-embed__dismiss {
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

.afp-video-embed__dismiss:hover {
  background: rgba(255, 255, 255, 0.18);
}
