/* Watch-only continuation fallback; it never covers or disables transport controls. */
body.kb-watch-page [data-kb-autoplay-continuation='1'] .plyr--video,
body.kb-watch-page [data-kb-autoplay-continuation='1'].plyr--video {
  position: relative;
}

body.kb-watch-page .kb-autoplay-fallback {
  position: absolute;
  z-index: 4;
  right: 12px;
  bottom: 12px;
  pointer-events: none;
}

body.kb-watch-page .plyr--video .kb-autoplay-fallback .kb-autoplay-fallback-button {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  background: #f8ebff;
  /* Plyr declares a light control colour with !important; this exact fallback remains dark on its pale surface. */
  color: #28112f !important;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  pointer-events: auto;
}

body.kb-watch-page .plyr--video .kb-autoplay-fallback .kb-autoplay-fallback-button:hover {
  background: #ffffff;
  color: #28112f !important;
}

body.kb-watch-page .plyr--video .kb-autoplay-fallback .kb-autoplay-fallback-button:focus-visible {
  color: #28112f !important;
  outline: 3px solid #4cf0d0;
  outline-offset: 3px;
}

body.kb-watch-page .plyr--video .kb-autoplay-fallback .kb-autoplay-fallback-button:disabled {
  cursor: wait;
  opacity: 1;
  background: #efe1f6;
  color: #28112f !important;
}

@media (max-width: 640px) {
  body.kb-watch-page .kb-autoplay-fallback {
    right: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
  }

  body.kb-watch-page .plyr--video .kb-autoplay-fallback .kb-autoplay-fallback-button {
    min-height: 44px;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}
