/* AutoTube FACTORY — User1-only Video Layout Balance V4.10.
   Restore the size/proportions of controls compacted by V4.9, while leaving
   the V4.9 solid-red 46–48px action button completely unchanged. */
@media (min-width: 901px) and (max-height: 1000px) {
  html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed .video-control-column {
    gap: 11px !important;
    padding: 12px !important;
  }
  html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed .visual-control-heading h2 {
    font-size: 31px !important;
    line-height: 1.08 !important;
  }
  html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed #videoManagedStatusCard,
  html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed .video-parameter-block {
    padding: 13px !important;
    gap: 10px !important;
  }
  html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed .local-style-picker-trigger {
    height: 80px !important;
    min-height: 80px !important;
    padding: 8px 12px !important;
  }
  html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed .local-style-picker-thumb {
    width: 112px !important;
    height: 63px !important;
  }
  html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed .video-fixed-parameters > span {
    min-height: 48px !important;
    padding: 8px 12px !important;
  }
  html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed label.video-compact-toggle {
    min-height: 67px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    gap: 11px !important;
  }
}
@media (min-width: 901px) and (max-height: 860px) {
  html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed .video-control-column {
    gap: 9px !important;
    padding: 10px !important;
  }
  html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed .visual-control-heading h2 {
    font-size: 29px !important;
  }
  html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed #videoManagedStatusCard,
  html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed .video-parameter-block {
    padding: 11px !important;
    gap: 8px !important;
  }
  html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed .local-style-picker-trigger {
    height: 70px !important;
    min-height: 70px !important;
    padding: 7px 11px !important;
  }
  html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed .local-style-picker-thumb {
    width: 98px !important;
    height: 55px !important;
  }
  html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed .video-fixed-parameters > span {
    min-height: 44px !important;
    padding: 7px 10px !important;
  }
  html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed label.video-compact-toggle {
    min-height: 60px !important;
    padding-top: 7px !important;
    padding-bottom: 7px !important;
    gap: 9px !important;
  }
}
/* Use the remaining vertical space in the two setting cards rather than
   leaving a large empty strip immediately above the compact CTA. */
@media (min-width: 901px) and (min-height: 780px) {
  html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed #videoManagedStatusCard {
    min-height: clamp(193px, 24vh, 240px) !important;
    justify-content: space-between !important;
  }
  html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed .video-parameter-block {
    min-height: clamp(266px, 33vh, 340px) !important;
    justify-content: space-between !important;
  }
}
