/* Native video decodes only the active player; previews remain idle until opened. */
.avf-video { width:100%; min-width:0; box-sizing:border-box; border:1px solid #c9dce4; border-radius:10px; background:#f6fafc; padding:12px; color:#25495d; overflow:hidden; }
.avf-video-title { font-weight:600; font-size:14px; line-height:1.6; margin-bottom:8px; overflow-wrap:anywhere; }
.avf-video-stage { min-height:100px; border-radius:7px; background:#142b39; display:flex; align-items:center; justify-content:center; }
.avf-video video { display:block; width:100%; max-width:100%; max-height:65vh; margin:0; border-radius:7px; object-fit:contain; background:#101b22; }
.avf-video video[hidden],.avf-video [hidden] { display:none !important; }
.avf-video-start { border:1px solid #70b4d0; border-radius:8px; color:#eaf7ff; background:#215a76; padding:12px 20px; margin:18px 8px; min-height:44px; cursor:pointer; font-size:14px; }
.avf-video button:disabled { opacity:.65; cursor:wait; }
.avf-video-status { font-size:12px; line-height:1.7; padding-top:8px; color:#526d7e; overflow-wrap:anywhere; }
.avf-video-progress { display:flex; align-items:center; gap:8px; font-size:12px; padding-top:10px; }
.avf-video-progress progress { width:100%; min-width:0; height:9px; accent-color:#267aa0; }
.avf-video-progress span { min-width:3em; text-align:right; }
.avf-video-tools { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; padding-top:9px; }
.avf-video-tools label { display:flex; align-items:center; gap:6px; max-width:100%; font-size:12px; color:#315b72; }
.avf-video-tools select { min-width:0; max-width:100%; width:auto; padding:7px; border:1px solid #aecbd9; border-radius:6px; background:#fff; color:#25495d; font-size:12px; min-height:36px; }
.avf-video-original { background:#fff; color:#71603f; border:1px solid #d8c495; border-radius:6px; font-size:12px; padding:7px 10px; min-height:36px; cursor:pointer; }
.avf-video button:focus-visible,.avf-video select:focus-visible { outline:2px solid #347da0; outline-offset:2px; }
@media screen and (max-width:480px) { .avf-video { padding:9px; }.avf-video-tools { gap:7px; }.avf-video-stage { min-height:90px; }.avf-video-tools select { max-width:155px; } }
@media print { .avf-video { display:none !important; } }
.detail-image.video-attachment { width:100%; max-width:680px; min-width:0; }
.video-attachment-button { min-height:75px; width:100%; border:1px solid #bfd5df; border-radius:7px; background:#183e54; color:#eefaff; cursor:pointer; }
.gallery-video-tile { display:flex; flex-direction:column; justify-content:center; align-items:center; height:100%; min-height:90px; color:#eaf7ff; background:#183e54; font-size:28px; }
.gallery-video-tile small { font-size:12px; line-height:1.8; margin-top:6px; }
/* Older action styles use display!important, so honor the video-only edit exclusion. */
#image-edit-btn[hidden] { display:none !important; }
