/* Scoped to video UI; existing article typography and editor spacing stay intact. */
.video-frame.xhf-video { display: block; width: 100%; height: auto; aspect-ratio: auto; margin: 20px 0; overflow: hidden; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; }
.xhf-video-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #f5f6f8; }
.xhf-video-stage iframe { display: block; width: 100%; height: 100%; min-height: 0 !important; aspect-ratio: auto; border: 0; }
.xhf-video-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 20px; text-align: center; }
.xhf-video-cover strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-width: 100%; overflow: hidden; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.xhf-video-play { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; min-height: 42px; padding: 0 20px; border: 1px solid #d70b12; border-radius: 7px; color: #fff; background: #d70b12; font: inherit; font-size: 14px; cursor: pointer; }
.xhf-video-play:hover { background: #b6060c; }
.xhf-video-status, .xhf-video-footer { color: #677180; font-size: 12px; line-height: 1.6; }
.xhf-video-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 10px 14px; border-top: 1px solid #e5e7eb; }
.xhf-video-footer .xhf-video-link { color: #d70b12; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.xhf-video [hidden] { display: none !important; }
.xhf-video-play:focus-visible, .xhf-video-link:focus-visible { outline: 2px solid #d70b12; outline-offset: 3px; }
.video-frame.xhf-video-editor { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; height: auto; min-height: 0; aspect-ratio: auto; margin: 16px 0; padding: 18px; background: #f8f9fb; border: 1px solid #e5e7eb; border-radius: 8px; }
.xhf-video-editor iframe { display: none !important; }
.xhf-video-source { max-width: 100%; color: #677180; font-size: 12px; overflow-wrap: anywhere; }
.xhf-video-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.xhf-video-preview:empty { display: none; }
.xhf-video-preview .xhf-video { margin-bottom: 0; }
.xhf-video-dialog-hint { margin: 12px 0 0; font-size: 12px; color: #677180; line-height: 1.7; }
@media (max-width: 480px) {
  .xhf-video-stage { min-height: 180px; }
  .xhf-video-cover { gap: 10px; padding: 12px; }
  .xhf-video-cover strong { font-size: 14px; }
  .xhf-video-footer { padding: 8px 10px; }
}
