.bili-video { box-sizing: border-box; margin: 1.6em 0; width: 100%; max-width: 100%; min-width: 0; overflow: hidden; border: 2px solid var(--mv-edge, #4d98c4); border-radius: 5px; background: var(--paper, #fff); color: var(--ink, #234965); box-shadow: 3px 4px 0 var(--blush, #7dcde3); }
.bili-video-screen { box-sizing: border-box; position: relative; width: 100%; min-width: 0; aspect-ratio: 16 / 9; min-height: 200px; background: #102638; }
.bili-video-screen iframe { display: block; position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0 !important; border: 0; }
.bili-video figcaption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; padding: 9px 12px; border-top: 2px solid var(--line, #91c7e0); font: 12px/1.7 "Writing Pixel", "Microsoft YaHei", system-ui, sans-serif; }
.bili-video figcaption > span { letter-spacing: .08em; opacity: .75; }
.bili-video figcaption a { color: inherit; text-decoration: none; border-bottom: 1px dashed currentColor; }
.bili-video figcaption a:hover { text-decoration: underline; }
.bili-video figcaption a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.bili-video-empty { padding: 18px; border: 2px dashed #91c7e0; border-radius: 4px; color: #587e98; background: #f2fbff; font: 14px/1.8 system-ui, sans-serif; }
/* Let the URL card use the full writing width; move formatting controls below. */
.blog-body-layout:has(input[id^="url-field-"]) { grid-template-columns: minmax(0, 1fr); }
/* Article previews may follow the OS theme independently of the editor chrome. */
.preview-article[data-theme='dark'] .bili-video { --paper: #182e42; --ink: #d4eaf4; --line: #568ba4; --blush: #2d667e; --mv-edge: #77bdd9; }
