.video-legacy-controls { display: none !important; }
.video-parameters-trigger { width: 100%; min-height: 38px; padding: 9px 13px; text-align: left; color: var(--text); background: var(--panel, #1b1c25); border: 1px solid var(--line); border-radius: 11px; font: inherit; font-size: 12px; cursor: pointer; }
.video-parameters-trigger[aria-expanded="true"] { border-color: #aa83f5; }
.video-parameters-panel { position: fixed; z-index: 150; width: min(440px, calc(100vw - 24px)); padding: 17px; overflow: auto; overscroll-behavior: contain; border: 1px solid #49434f; border-radius: 19px; background: #252428; color: #e7e3ed; box-shadow: 0 18px 65px #0008; font-size: 12px; }
.video-parameters-panel[hidden], .video-parameters-panel [hidden] { display: none !important; }
.video-parameters-panel header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.video-parameters-panel header strong { font-size: 14px; }
.video-parameters-panel h3 { font-size: 12px; font-weight: 500; color: #aaa4b2; margin: 0 0 9px; }
.video-parameters-panel > section { margin-bottom: 17px; }
.video-parameters-panel button { cursor: pointer; font: inherit; }
.video-parameters-close { border: 0; background: transparent; color: inherit; font-size: 23px !important; width: 30px; height: 30px; }
.video-ratio-choices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.video-ratio-choices button, .video-resolution-choices button { border: 1px solid #55515b; border-radius: 9px; background: transparent; color: #b8b2c0; min-width: 0; padding: 8px 3px; }
.video-ratio-choices button { min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; }
.video-ratio-choices i { display: block; border: 1px solid currentColor; border-radius: 2px; }
.video-resolution-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.video-resolution-choices button { flex: 1 1 70px; min-height: 34px; }
.video-parameters-panel button[aria-pressed="true"] { border-color: #d5c9e8; color: #fff; background: #48424e; }
.video-parameters-panel button:disabled { opacity: .42; cursor: not-allowed; }
.video-parameters-panel button[aria-pressed="true"]:disabled { opacity: .7; }
.video-parameters-panel :is(button,input):focus-visible { outline: 2px solid #bda1f4; outline-offset: 3px; }
.video-duration-value { float: right; color: #e9e4ef; }
.video-duration-slider { width: 100%; accent-color: #b08af5; height: 20px; }
.video-duration-bounds { text-align: right; color: #9e97a8; font-size: 10px; margin: 3px 0 10px; }
.video-smart-label { display: flex; gap: 6px; align-items: center; }
.video-smart-label input { accent-color: #aa80f4; }
.video-parameters-panel .material-mode { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 0; margin: 0 0 17px; border: 0; background: transparent; }
.video-parameters-panel .material-mode.hidden { display: none; }
.video-parameters-panel .material-mode label { font-size: 12px; color: #aaa4b2; }
.video-parameters-panel :is(.material-mode small,.video-ratio-note) { display: block; color: #a9a1b5; font-size: 11px; line-height: 1.7; }
.video-parameters-panel .video-ratio-note { margin-top: 8px; }
.video-parameters-panel footer { border-top: 1px solid #49434f; padding-top: 10px; }
.video-parameters-panel footer p { margin: 0 0 7px; line-height: 1.6; font-size: 11px; color: #aaa4b2; }
.video-parameters-done { width: 100%; margin-top: 5px; padding: 9px; border-radius: 9px; color: #f6efff; background: #7450b6; border: 1px solid #9270d0; }
:root[data-theme="light"] .video-parameters-trigger { background: #f9f8fc; color: #393440; }
:root[data-theme="light"] .video-parameters-panel { background: #fff; color: #302b37; border-color: #dfd9e7; box-shadow: 0 18px 65px #28203430; }
:root[data-theme="light"] .video-parameters-panel :is(h3,.material-mode label,footer p,.video-duration-bounds,.video-ratio-note,.material-mode small) { color: #71677e; }
:root[data-theme="light"] .video-parameters-panel :is(.video-ratio-choices button,.video-resolution-choices button) { color: #675d73; border-color: #d9d2e1; }
:root[data-theme="light"] .video-parameters-panel button[aria-pressed="true"] { color: #6e3cad; background: #f1e9fc; border-color: #9461cd; }
:root[data-theme="light"] .video-duration-value { color: #4f3d66; }
:root[data-theme="light"] .video-parameters-panel footer { border-color: #e5dfec; }
