/**
 * SB Thrive YouTube Facade styles
 */

.sb-yt-facade,
.sb-yt-live-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.sb-yt-facade {
  cursor: pointer;
  overflow: hidden;
  background: #000;
  z-index: 50;
  -webkit-tap-highlight-color: transparent;
}

.sb-yt-facade .sb-yt-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  background: #000;
  z-index: 5;
}

.sb-yt-facade .sb-yt-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 62px;
  border-radius: 14px;
  background: #ff0000;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  z-index: 10;
  pointer-events: none;
}

.sb-yt-facade .sb-yt-play::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-40%, -50%);
  width: 0;
  height: 0;
  border-left: 20px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

.sb-yt-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  z-index: 60;
  pointer-events: none;
}

.sb-yt-loading::before {
  content: "";
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: sb-yt-spin 0.9s linear infinite;
}

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

/**
 * Thrive overlay should not block facade clicks.
 */
.video_overlay,
.video_overlay * {
  pointer-events: none !important;
}