/* AutoTube Factory · User1-only V4.9 · compact solid-red video CTA.
   Cosmetic override only. Native generator, progress and download unchanged. */
html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed .at48-video-runtime {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  margin: auto 0 0 !important;
  padding: 8px 0 12px !important;
  justify-content: flex-end !important;
  box-sizing: border-box !important;
}
html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed .at48-video-start {
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 48px !important;
  height: 48px !important;
  max-height: 48px !important;
  padding: 10px 16px !important;
  border-radius: 12px !important;
  background: #f00016 !important;
  background-image: none !important;
  color: #ffffff !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
  letter-spacing: -0.015em !important;
  box-shadow: 0 6px 14px rgba(240, 0, 22, 0.13) !important;
}
html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed .at48-video-start:hover {
  background: #d90014 !important;
  background-image: none !important;
}
html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed .at48-video-start::before {
  margin-right: 9px !important;
  font-size: 20px !important;
}
/* Keep the runtime states compact, without interfering with their visibility logic. */
html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed .at48-video-progress,
html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed .at48-video-success {
  min-height: 48px !important;
  padding: 0 !important;
  align-content: center !important;
}
html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed .at48-video-download {
  background: #f00016 !important;
  background-image: none !important;
  font-size: 15px !important;
  min-height: 44px !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 14px rgba(240, 0, 22, 0.13) !important;
}
@media (max-height: 860px) {
  html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed .at48-video-runtime {
    padding: 6px 0 10px !important;
  }
  html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed .at48-video-start {
    min-height: 46px !important;
    height: 46px !important;
    max-height: 46px !important;
    font-size: 15px !important;
  }
}

/* Reclaim vertical space in the existing control stack, keeping both toggles
   accessible above the compact action instead of layering a fixed button. */
@media (min-width: 901px) and (max-height: 1000px) {
  html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed .video-control-column {
    gap: 8px !important;
    padding: 10px 12px !important;
  }
  html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed .visual-control-heading h2 {
    font-size: 29px !important;
    line-height: 1.04 !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: 10px !important;
    gap: 7px !important;
  }
  html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed .local-style-picker-trigger {
    min-height: 66px !important;
    height: 66px !important;
    padding: 6px 10px !important;
  }
  html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed .local-style-picker-thumb {
    height: 52px !important;
    width: 95px !important;
  }
  html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed .video-fixed-parameters > span {
    min-height: 42px !important;
    padding: 8px 10px !important;
  }
  html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed label.video-compact-toggle {
    min-height: 59px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    gap: 8px !important;
  }
}
@media (min-width: 901px) and (max-height: 860px) {
  html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed .video-control-column {
    gap: 6px !important;
    padding: 8px 10px !important;
  }
  html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed .visual-control-heading h2 {
    font-size: 26px !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: 8px !important;
    gap: 5px !important;
  }
  html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed .local-style-picker-trigger {
    min-height: 56px !important;
    height: 56px !important;
  }
  html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed .local-style-picker-thumb {
    height: 44px !important;
    width: 78px !important;
  }
  html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed label.video-compact-toggle {
    min-height: 49px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }
  html:not([data-autotube-theme="dark"]) body #visualVideoPane.at48-installed .video-fixed-parameters > span {
    min-height: 36px !important;
    padding: 5px 8px !important;
  }
}
