.space-lightplay {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.space-lightplay img,
.space-lightplay .space-lightplay-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter .25s ease;
}

.space-lightplay .space-lightplay-placeholder {
  background: center/cover no-repeat;
}

.space-lightplay-btn {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  appearance: none;
  outline: none;
}
.space-lightplay-btn:focus-visible .space-lightplay-icon {
  box-shadow: 0 0 0 3px #005fcc;
}

.space-lightplay-icon {
  width: var(--lp-btn-size, 80px);
  height: var(--lp-btn-size, 80px);
  aspect-ratio: 1;
  flex-shrink: 0;
  box-sizing: border-box;
  border-radius: var(--lp-btn-radius, 50%);
  background: var(--lp-btn-bg, rgba(0,0,0,.55));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease;
  color: var(--lp-icon, #fff);
}
.space-lightplay-icon::before {
  content: '';
  display: block;
  width: 40%;
  height: 40%;
  background: currentColor;
  clip-path: polygon(15% 0%, 15% 100%, 100% 50%);
  margin-left: 8%;
}

.space-lightplay-btn:hover .space-lightplay-icon {
  background: var(--lp-btn-bg-hover, rgba(0,0,0,.7));
  color: var(--lp-icon-hover, #fff);
}

@media (prefers-reduced-motion: no-preference) {
  .space-lightplay[data-pulse="true"] .space-lightplay-btn:hover .space-lightplay-icon {
    animation: space-lightplay-pulse 1.2s infinite;
  }
}
@keyframes space-lightplay-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,0,0,.4); }
  70%  { box-shadow: 0 0 0 25px rgba(0,0,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}

.space-lightplay-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.space-lightplay-iframe > iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  display: block !important;
  pointer-events: auto !important;
}

.space-lightplay.is-playing > img,
.space-lightplay.is-playing > .space-lightplay-placeholder {
  opacity: 0;
  pointer-events: none;
}
