.video-embed {
  position: relative;
  display: block;
  margin: 0;
  aspect-ratio: 16 / 9;
  background: oklch(14% 0.02 270);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.video-embed__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78) saturate(1.1);
  transition: filter var(--duration-base) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.video-embed:hover .video-embed__poster {
  filter: brightness(0.7) saturate(1.2);
  transform: scale(1.02);
}

.video-embed__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, transparent 0%, oklch(0% 0 0 / 0.4) 100%);
  color: var(--color-text);
}

.video-embed__triangle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-text);
  color: var(--color-bg);
  display: grid;
  place-items: center;
  box-shadow: 0 16px 40px -8px oklch(0% 0 0 / 0.6);
  transition: transform var(--duration-fast) var(--ease-out);
}

.video-embed__triangle::after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--color-bg);
  margin-left: 4px;
}

.video-embed:hover .video-embed__triangle {
  transform: scale(1.06);
}

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