/* PeerTube does not expose filters for the share/download actions on the video page. */
body.pt-player-defaults-hide-download my-action-buttons .action-button-download,
body.pt-player-defaults-hide-download .dropdown-menu button:has(.feather-download),
body.pt-player-defaults-hide-download .dropdown-menu a:has(.feather-download) {
  display: none !important;
}

body.pt-player-defaults-hide-share my-action-buttons .video-actions button:has(.feather-share-2) {
  display: none !important;
}

/* Fallback for Video.js component names and future menu rebuilds. */
.vjs-peertube-skin.pt-player-defaults-hide-playback-rate .vjs-playback-rate,
.vjs-peertube-skin.pt-player-defaults-hide-subtitles .vjs-caption-toggle-control,
.vjs-peertube-skin.pt-player-defaults-hide-subtitles .vjs-subs-caps-button,
.vjs-peertube-skin.pt-player-defaults-hide-subtitles .vjs-captions-button {
  display: none !important;
}

/* PeerTube 8.2.4 uses the shorter variable in the Lucide player stylesheet. */
.vjs-peertube-skin .vjs-big-play-button {
  background-color: var(--pt-player-big-play-bg, var(--pt-player-big-play-background-color, rgba(0, 0, 0, 0.8)));
}
