/* Auto-generated fix: remove white gap between share buttons and video */
/* Share blocks: remove bottom space */
.content__share-bar, .content__signa-share, .glb-share-bar, .glb-share-bar_button, .glb-share-bar_button-img, .glb-share-bar_icons, .glb-theme-elem-sharebar--default { margin-bottom: 0 !important; padding-bottom: 0 !important; }

/* Next block after share: start flush */
.content__share-bar + *, .content__signa-share + *, .glb-share-bar + *, .glb-share-bar_button + *, .glb-share-bar_button-img + *, .glb-share-bar_icons + *, .glb-theme-elem-sharebar--default + * { margin-top: 0 !important; padding-top: 0 !important; }

/* Video blocks: ensure no top spacing */
.active-extra-styles, .bs-block-video__container, .codex-caption, .codex-caption--small, .content-ads, .content-ads--side-ad, .content-intertitle, .content-media, .content-media__container, .content-media__container--codex-fallback, .content-text, .content-text__container, .content-video, .content-video__bigger-player-description-fixer, .content-video__video, .content-video__video-container, .content__divider, .cxm-video-block, .mc-article-body, .mc-column, .mc-side-item, .mc-side-item--right, .mc-side-item__container, .mc-summary, .tag-manager-publicidade-container, .video-bleed-fix { margin-top: 0 !important; padding-top: 0 !important; }

/* Collapse common spacer/ads blocks that could sit between share and video */
.content-ads, .content-ads--side-ad, .tag-manager-publicidade-container { display: none !important; height: 0 !important; margin: 0 !important; padding: 0 !important; min-height: 0 !important; }

/* ===== Strengthened rules (exact classes detected) ===== */

/* 1) Share bars — remove trailing space */
.content__share-bar,
.glb-theme-elem-sharebar--default,
.glb-share-bar_icons {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}

/* 2) Anything right after the share bar starts flush */
.content__share-bar + *,
.glb-theme-elem-sharebar--default + *,
.glb-share-bar_icons + * {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}

/* Remove stray separators after share */
.content__share-bar + hr,
.glb-theme-elem-sharebar--default + hr,
.glb-share-bar_icons + hr {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 3) Video wrappers — ensure no top spacing */
.bs-block-video__container,
.shadow-video-flow__player-container,
.video-bleed-fix {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}

/* 4) Collapsing ad/spacer blocks commonly inserted between share and video */
.tag-manager-publicidade-container,
.content-ads,
.content-ads--side-ad {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

/* 5) If the layout uses utility spacers, neutralize just adjacent to share */
.content__share-bar + .spacer,
.glb-theme-elem-sharebar--default + .spacer,
.glb-share-bar_icons + .spacer {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ===== Final tweak: make video render at 50% width (centered) ===== */
.bs-block-video__container,
.shadow-video-flow__player-container,
.video-bleed-fix,
.video-container,
.player,
.flow-player,
.flowplayer {
  width: 50% !important;
  max-width: 50% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Ensure inner media scales to the container */
.bs-block-video__container iframe,
.bs-block-video__container video,
.shadow-video-flow__player-container iframe,
.shadow-video-flow__player-container video,
.video-bleed-fix iframe,
.video-bleed-fix video,
.video-container iframe,
.video-container video,
.player iframe,
.player video,
.flow-player iframe,
.flow-player video,
.flowplayer iframe,
.flowplayer video {
  width: 100% !important;
  height: auto !important;
}

/* ===== Final-final tweak: shrink player to 25% width (≈ metade do tamanho atual) ===== */
.bs-block-video__container,
.shadow-video-flow__player-container,
.video-bleed-fix,
.video-container,
.player,
.flow-player,
.flowplayer {
  width: 25% !important;
  max-width: 25% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Keep inner media proportional */
.bs-block-video__container iframe,
.bs-block-video__container video,
.shadow-video-flow__player-container iframe,
.shadow-video-flow__player-container video,
.video-bleed-fix iframe,
.video-bleed-fix video,
.video-container iframe,
.video-container video,
.player iframe,
.player video,
.flow-player iframe,
.flow-player video,
.flowplayer iframe,
.flowplayer video {
  width: 100% !important;
  height: auto !important;
}

/* ===== Strong shrink (half of current) ===== */
/* Primary: `zoom` shrinks width & height *and* affects layout in Chromium-based browsers */
html body .shadow-video-flow__player-container.shadow-video-flow__player-container,
html body .bs-block-video__container.bs-block-video__container,
html body .video-bleed-fix.video-bleed-fix,
html body .video-container.video-container,
html body .player.player,
html body .flow-player.flow-player,
html body .flowplayer.flowplayer {
  zoom: 0.5 !important; /* halves both dimensions and the layout box */
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Firefox fallback (no `zoom` support): collapse width to 25% and keep inner media responsive */
@supports not (zoom: 0.5) {
  html body .shadow-video-flow__player-container.shadow-video-flow__player-container,
  html body .bs-block-video__container.bs-block-video__container,
  html body .video-bleed-fix.video-bleed-fix,
  html body .video-container.video-container,
  html body .player.player,
  html body .flow-player.flow-player,
  html body .flowplayer.flowplayer {
    width: 25% !important;
    max-width: 25% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  html body .shadow-video-flow__player-container iframe,
  html body .shadow-video-flow__player-container video,
  html body .bs-block-video__container iframe,
  html body .bs-block-video__container video,
  html body .video-bleed-fix iframe,
  html body .video-bleed-fix video,
  html body .video-container iframe,
  html body .video-container video,
  html body .player iframe,
  html body .player video,
  html body .flow-player iframe,
  html body .flow-player video,
  html body .flowplayer iframe,
  html body .flowplayer video {
    width: 100% !important;
    height: auto !important;
  }
}
