/* Lazy video players */

.lazy-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0a1218;
  border-radius: 0.55rem;
  overflow: hidden;
}

.lazy-video__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lazy-video__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.55));
  pointer-events: none;
}

.lazy-video__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #fff;
}

.lazy-video__play-btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: rgba(255, 196, 37, 0.95);
  color: #000;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
  transition: transform 0.2s ease;
}

.lazy-video__play:hover .lazy-video__play-btn {
  transform: scale(1.06);
}

.lazy-video__host {
  position: absolute;
  inset: 0;
}

.lazy-video__host iframe,
.lazy-video__host video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
  object-fit: contain;
}

.lazy-video__loader {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  place-items: center;
  background: rgba(8, 16, 24, 0.72);
  color: #fff;
  flex-direction: column;
  gap: 0.75rem;
}

.lazy-video.is-loading .lazy-video__loader {
  display: grid;
}

.lazy-video.is-loading .lazy-video__play,
.lazy-video.is-ready .lazy-video__play,
.lazy-video.is-ready .lazy-video__poster,
.lazy-video.is-ready .lazy-video__shade {
  display: none;
}

.lazy-video__spinner {
  width: 2.25rem;
  height: 2.25rem;
  border: 3px solid rgba(255,255,255,0.25);
  border-top-color: #ffc425;
  border-radius: 50%;
  animation: lazy-spin 0.75s linear infinite;
}

.lazy-video__loader span {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

@keyframes lazy-spin {
  to { transform: rotate(360deg); }
}

.page-china .lazy-video__play-btn {
  background: #3b82f6;
  color: #fff;
}

.page-china .lazy-video__spinner {
  border-top-color: #3b82f6;
}
