/* MMP video editor: hide only the left statistics / music player.
   Preserve the right profile and its controls on desktop.
   This file affects only body.settings-mode-video. */
html body.settings-mode-video #mmpGenreInsights,
html body.settings-mode-video #mmpPlayer,
html body.settings-mode-video .mmp-genre-mobile-button {
  display:none !important;
}

/* Center video editor + persistent right profile as a single group.
   The total shell has a readable cap to avoid an oversized video preview. */
@media (min-width:1250px) {
  html body.settings-mode-video {
    --mmp-video-shell-total: min(calc(100vw - 32px), 1766px);
    --mmp-video-shell-edge: calc((100vw - var(--mmp-video-shell-total)) / 2);
  }
  html body.settings-mode-video .app {
    box-sizing:border-box !important;
    width:calc(var(--mmp-video-shell-total) - var(--mmp-profile-width) - var(--mmp-shell-gap)) !important;
    max-width:none !important;
    min-width:0 !important;
    margin-left:var(--mmp-video-shell-edge) !important;
    margin-right:0 !important;
  }
  html body.settings-mode-video .mmp-personal-sidebar {
    right:var(--mmp-video-shell-edge) !important;
  }
  html body.settings-mode-video .mmp-profile-live-controls .realtime-users-popover {
    right:calc(var(--mmp-video-shell-edge) + var(--mmp-profile-width) + 12px) !important;
  }
}

/* Same original editor and 10 lyric templates; adjust layout only.
   Keep tools practical and allow the preview to use the remaining space. */
@media (min-width:1025px) {
  html body.settings-mode-video #videoWorkspace.video-workspace:not(.mmp-lyric-active) {
    display:grid !important;
    grid-template-columns:clamp(330px, 26%, 400px) minmax(0, 1fr) !important;
    gap:20px !important;
    align-items:start !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
  }
  html body.settings-mode-video #videoWorkspace:not(.mmp-lyric-active) > .video-sidebar,
  html body.settings-mode-video #videoWorkspace:not(.mmp-lyric-active) > .video-main {
    box-sizing:border-box !important;
    min-width:0 !important;
    width:100% !important;
    max-width:none !important;
  }
  html body.settings-mode-video #videoWorkspace:not(.mmp-lyric-active) .video-preview-stage.is-youtube,
  html body.settings-mode-video #videoWorkspace:not(.mmp-lyric-active) .video-preview-stage:not(.is-shorts):not([style*="9 / 16"]) {
    width:100% !important;
    max-width:none !important;
  }
}
