/* 生成视频（PD-IMG-017）：小图旁的视频图标、「生成视频」底部面板（用户 2026-11-22 选的方案一）、视频气泡、全屏看。配色用 ui-kit.css 的变量，深色跟着走 */
.vg-wrap { display: flex; align-items: flex-end; }
.vg-icon { display: none; }
.vg-on .vg-icon { display: inline-flex; }
.vg-icon { position: relative; flex: none; align-self: flex-end; width: 30px; height: 30px; margin: 0 6px 2px; padding: 0; border: 1px solid var(--y-chip-stroke, #ebd3d7); border-radius: 50%; background: var(--y-surface, #fffaf8); color: var(--y-icon, #5e454c); align-items: center; justify-content: center; cursor: pointer; }
.vg-icon svg { width: 17px; height: 17px; }
.vg-icon:active { transform: scale(0.94); }
@media (hover: hover) {
  .vg-icon:hover { background: var(--y-hover, #f9ebea); }
  .vg-icon:hover::after { content: attr(data-tip); position: absolute; left: calc(100% + 6px); top: 50%; transform: translateY(-50%); white-space: nowrap; padding: 3px 8px; border-radius: 6px; background: var(--y-notice-bg, rgba(47, 32, 36, .9)); color: var(--y-notice-text, #fff); font-size: 12px; pointer-events: none; z-index: 5; }
}

.vg-mask { position: fixed; inset: 0; z-index: 1000; background: var(--y-overlay, rgba(47, 24, 32, .38)); display: flex; align-items: flex-end; justify-content: center; animation: vg-fade 0.15s ease-out; }
.vg-sheet { width: 100%; max-width: 520px; box-sizing: border-box; background: var(--y-surface, #fffaf8); color: var(--y-text, #3b2a2e); border-radius: 16px 16px 0 0; padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px)); box-shadow: var(--y-shadow-pop, 0 12px 34px rgba(122, 64, 84, .2)); animation: vg-rise 0.2s ease-out; }
@keyframes vg-fade { from { opacity: 0; } }
@keyframes vg-rise { from { transform: translateY(24px); opacity: 0.6; } }
.vg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.vg-head h3 { margin: 0; font-size: 16px; font-weight: 600; }
.vg-x { width: 30px; height: 30px; border: none; background: none; color: var(--y-text2, #8a6c72); font-size: 22px; line-height: 1; cursor: pointer; }
.vg-src { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--y-text2, #8a6c72); font-size: 13px; }
.vg-src img { width: 44px; height: 60px; object-fit: cover; border-radius: 8px; background: var(--y-placeholder, #f2e3e3); flex: none; }
.vg-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.vg-opt { text-align: left; padding: 8px 9px; border: 1px solid var(--y-chip-stroke, #ebd3d7); border-radius: 12px; background: var(--y-chip-bg, #fff); color: var(--y-text, #3b2a2e); cursor: pointer; font: inherit; }
.vg-opt b { display: block; font-size: 14px; font-weight: 600; }
.vg-opt span { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.35; color: var(--y-text2, #8a6c72); }
.vg-opt[aria-checked="true"] { border-color: var(--y-primary, #c96c8a); background: var(--y-primary-soft, rgba(201, 108, 138, .12)); }
.vg-sound { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 10px; font-size: 13px; color: var(--y-text2, #8a6c72); }
.vg-switch { position: relative; width: 40px; height: 22px; padding: 0; border: none; border-radius: 11px; background: var(--y-chip-stroke, #ebd3d7); cursor: pointer; flex: none; }
.vg-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left 0.15s; }
.vg-switch[aria-checked="true"] { background: var(--y-primary, #c96c8a); }
.vg-switch[aria-checked="true"]::after { left: 21px; }
.vg-switch:disabled { opacity: 0.4; cursor: default; }
.vg-note { width: 100%; box-sizing: border-box; resize: none; padding: 8px 10px; border: 1px solid var(--y-chip-stroke, #ebd3d7); border-radius: 10px; background: var(--y-bg, #faf0ef); color: var(--y-text, #3b2a2e); font: inherit; font-size: 14px; }
.vg-error { min-height: 1.2em; margin: 6px 0; font-size: 12.5px; color: var(--y-danger, #d9435f); }
.vg-go { width: 100%; height: 44px; border: none; border-radius: 22px; background: var(--y-primary, #c96c8a); color: var(--y-on-primary, #fff); font: inherit; font-size: 15px; cursor: pointer; }
.vg-go:disabled { opacity: 0.6; cursor: default; }

.bubble.pic.vg-video { position: relative; cursor: pointer; }
.vg-video video { display: block; max-width: 184px; max-height: 244px; border-radius: 10px; background: var(--y-placeholder, #f2e3e3); object-fit: cover; }
.vg-tag { position: absolute; right: 6px; bottom: 6px; padding: 1px 7px; border-radius: 9px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 11px; pointer-events: none; }

.vg-viewer { position: fixed; inset: 0; z-index: 1100; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; }
.vg-viewer video { max-width: 100vw; max-height: 100vh; }
.vg-viewer-bar { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: 12px; display: flex; gap: 10px; align-items: center; }
.vg-viewer-bar a, .vg-viewer-bar button { padding: 6px 12px; border: none; border-radius: 16px; background: rgba(255, 255, 255, .16); color: #fff; font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; }
.vg-viewer-bar button { font-size: 18px; line-height: 1; }
