.ve { margin: 0; }
.ve-section { background: var(--surface); border-radius: var(--radius-card); padding: 18px 16px; margin-bottom: 16px; }
.ve-section h3 { font-size: var(--type-title); margin: 0 0 16px; }
.ve-hint, .ve-status { font-size: var(--type-caption); color: var(--text-3); line-height: 1.5; }
.ve-tabs, .ve-row { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.ve-tabs .btn { min-height: 44px; padding: 8px; font-size: var(--type-caption); flex: 1; }
.ve-tabs [aria-pressed=true] { background: var(--info-bg); color: var(--link); }
.ve-chart { display: flex; gap: 2px; height: 76px; margin-top: 16px; align-items: stretch; }
.ve-bar { flex: 1; min-width: 0; padding: 0; border: 0; border-radius: 3px; background: linear-gradient(to top,var(--link) var(--value), transparent var(--value)); border-bottom: 2px solid var(--line-strong); }
.ve-bar.empty { opacity: .25; }
.ve-track { position: relative; margin: 20px 16px 8px; height: 80px; }
.ve-film { display: flex; overflow: hidden; border-radius: 12px; height: 100%; background: var(--surface-2); }
.ve-film img { min-width: 0; flex: 1; object-fit: cover; }
.ve-time { text-align: center; font-size: var(--type-body); font-variant-numeric: tabular-nums; margin-bottom: 12px; }
.ve-row { flex-wrap: wrap; }
.ve-row .btn { font-size: var(--type-caption); padding-inline: 10px; }
.ve-cover-row { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.ve-cover { width: 90px; height: 130px; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.ve-cover-actions { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.ve-cover-actions .btn { font-size: var(--type-caption); padding: 6px; text-align: left; min-height: 44px; }
.ve-frame-picker { display: flex; overflow-x: auto; gap: 8px; padding: 4px 0 12px; }
.ve-frame-picker[hidden] { display: none; }
.ve-frame { flex: 0 0 56px; border: 0; background: var(--surface-2); padding: 0; border-radius: 8px; overflow: hidden; }
.ve-frame img { width: 56px; height: 84px; object-fit: cover; display: block; }
.ve-field { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; font-size: var(--type-body); }
.ve-field input, .ve-field textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--text); padding: 12px; font: inherit; font-size: 16px; resize: vertical; }
.ve-field input::placeholder, .ve-field textarea::placeholder { color: var(--text-3); opacity: 1; }
.ve-field-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.ve-field-heading label { min-width: 0; }
.ve-reset { display: block; border: 0; background: transparent; color: var(--link); padding: 8px 0; min-height: 44px; font-size: var(--type-caption); }
.ve-footer { position: absolute; z-index: 5; bottom: max(8px, calc(var(--sab) - var(--kb, 0px))); left: 50%; transform: translateX(-50%); display: flex; gap: 4px; width: max-content; max-width: calc(100% - 24px); padding: 4px; border: 1px solid var(--line); border-radius: var(--r-pill); background: color-mix(in srgb, var(--surface-2) 85%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--shadow); }
.ve-footer[hidden], .ve [hidden] { display: none; }
.ve-footer .btn { min-height: 44px; min-width: 0; padding: 8px 20px; border-radius: var(--r-pill); font-size: var(--type-caption); }
#video-body.ve-editing { padding-bottom: calc(var(--sab) + 88px); scroll-padding-bottom: 88px; }
.ve-automatic { margin-top: 16px; color: var(--text-3); font-size: var(--type-caption); }
.ve-automatic summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; }
.ve-automatic summary::after { content: '+'; margin-left: auto; }
.ve-automatic[open] summary::after { content: '−'; }
.ve-automatic .vd-chips { margin-top: 4px; }
.ve-status:empty { display: none; }
.ve-status:not(:empty) { padding: 12px; border-radius: 12px; background: var(--surface-2); }
.ve-section .vd-sec { margin-bottom: 20px; }
.ve-section .vd-sec > .vd-h { display: none; }
.ve-tabs { padding: 4px; background: var(--surface-2); border-radius: var(--r-pill); }
.ve-tabs .btn { border-radius: var(--r-pill); }
#video-body .vd-meta { flex-wrap: wrap; row-gap: 6px; }
.vd-management { border-top: 1px solid var(--line); padding-top: 12px; }
.vd-management .btn { color: var(--danger); }
@media (prefers-reduced-transparency: reduce) {
  .ve-footer { background: var(--surface-2); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.ve :focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

.ve-chart { margin-inline: 16px; }
.ve-bar.outside { opacity: .2; }
.editor-preview #stream-like, .editor-preview [data-r="comment"], .editor-preview [data-m="save"], .editor-preview [data-m="share"], .editor-preview [data-m="dislike"] { display: none; }


/* Reuse the upload selection and its slim grips, including the enlarged invisible touch area. */
.ve-selection { pointer-events: none; }
.ve-selection .ve-handle { pointer-events: auto; border: 0; padding: 0; cursor: ew-resize; }
