.video-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* video thumbnail overlay */
.video-hover-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  cursor: pointer;
}

.video-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 0.3s ease;
}

.video-hover-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: none;
}

.play-icon-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: grid; /* better for centering triangle with 0 size */
  place-items: center;
  transition: transform 0.2s ease;
  pointer-events: none;
}

.play-triangle {
  width: 0;
  height: 0;
  border-left: 18px solid white;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 3px; /* 👈 pushes triangle to the right */
}

.video-hover-wrapper:hover .play-icon {
  transform: translate(-50%, -50%) scale(1.1); /* now animates but doesn't shift */
}