.video-thumb-editor {
  width: min(560px, calc(100vw - 32px));
  max-height: min(90vh, 780px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(126, 233, 255, .32);
  border-radius: 16px;
  background: #111827;
  color: #f3f5fb;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .65);
}
.video-thumb-editor::backdrop { background: rgba(0, 0, 0, .82); }
.video-thumb-editor [hidden] { display: none !important; }
.video-thumb-editor button { cursor: pointer; }
.video-thumb-editor button:disabled { opacity: .5; cursor: not-allowed; }
.video-thumb-editor button:focus-visible { outline: 2px solid #7ee9ff; outline-offset: 3px; }
.video-thumb-editor__head, .video-thumb-editor__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; }
.video-thumb-editor__head { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.video-thumb-editor__head h2 { margin: 0; font-size: 18px; font-weight: 700; }
.video-thumb-editor__head p { margin: 3px 0 0; color: #aab8cd; font-size: 12px; overflow-wrap: anywhere; }
.video-thumb-editor__head button { border: 0; background: transparent; color: #d8e6f7; font-size: 28px; line-height: 1; }
.video-thumb-editor__body { padding: 20px; }
.video-thumb-editor__preview { width: min(100%, 360px); aspect-ratio: 4 / 3; margin: 0 auto 18px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(126, 233, 255, .25); border-radius: 10px; background: #060b15; color: #8fa4bc; font-size: 13px; }
.video-thumb-editor__preview img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb-editor__actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.video-thumb-editor__actions button, .video-thumb-editor__frame button, .video-thumb-editor__footer button { padding: 9px 13px; border: 1px solid rgba(126, 233, 255, .4); border-radius: 8px; background: rgba(126, 233, 255, .08); color: #d9f8ff; font-size: 13px; }
.video-thumb-editor__actions p { width: 100%; margin: 3px 0 0; color: #aab8cd; font-size: 11px; text-align: center; }
.video-thumb-editor__frame { margin-top: 16px; text-align: center; }
.video-thumb-editor__frame video { display: block; width: 100%; max-height: 240px; margin-bottom: 10px; background: #000; }
.video-thumb-editor__message { min-height: 20px; margin: 14px 0 0; color: #f5c98b; font-size: 12px; text-align: center; }
.video-thumb-editor__footer { justify-content: flex-end; border-top: 1px solid rgba(255, 255, 255, .1); }
.video-thumb-editor__footer [data-role="save"] { background: #087a99; border-color: #19c9e5; color: white; font-weight: 700; }
