presto-player:not(.hydrated) {
  position: relative;
  background: rgba(0, 0, 0, 0.1);
  width: 100%;
  display: block;
  aspect-ratio: var(--presto-player-aspect-ratio, 16/9);
}

presto-player:not(.hydrated) .presto-loader {
  display: block;
}

.presto-block-video:not(.presto-sticky-parent) {
  border-radius: var(--presto-player-border-radius, 0px);
  overflow: hidden;
  transform: translateZ(0);
}

/* Safari-specific fix - disable transform to prevent fullscreen black screen */
@supports (hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none) {
  .presto-block-video:not(.presto-sticky-parent) {
    transform: none;
  }
}

.presto-block-video.presto-provider-audio {
  overflow: visible;
}

.presto-block-video .presto-sticky-parent {
  overflow: auto;
  transform: none;
}

.presto-sticky-parent {
  z-index: 99998 !important;
}

.presto-player-fullscreen-open {
  z-index: 9999999 !important;
  overflow: visible !important;
  transform: none !important;
}


presto-playlist,
presto-player-skeleton,
presto-timestamp,
presto-video-curtain-ui,
presto-search-bar-ui,
presto-player-button,
presto-cta-overlay-ui,
presto-video,
presto-action-bar-ui,
presto-youtube-subscribe-button,
presto-email-overlay-ui,
presto-player-spinner,
presto-action-bar,
presto-cta-overlay,
presto-email-overlay,
presto-bunny,
presto-dynamic-overlays,
presto-search-bar,
presto-youtube,
presto-audio,
presto-business-skin,
presto-modern-skin,
presto-muted-overlay,
presto-stacked-skin,
presto-vimeo,
presto-action-bar-controller,
presto-cta-overlay-controller,
presto-email-overlay-controller,
presto-dynamic-overlay-ui,
presto-player,
presto-playlist-item,
presto-playlist-overlay,
presto-playlist-ui {
  visibility: hidden;
}

.hydrated {
  visibility: inherit;
}