/* ============================================================
   css/chat/chat-video-picker.css — 视频发送全屏面板（韩系唯美风）
   设计系统: 玫瑰金渐变 / 衬线体 / 线条图标 / 恋爱感动效
   位置: position:absolute 挂载 #app 内
   防闪烁: 隐藏态插入 → rAF 加 .show 淡入；关闭先淡出
   ============================================================ */

/* ---- Overlay ---- */
.video-picker-overlay {
    position: absolute;
    inset: 0;
    z-index: 2360; /* #app 内局部层；body 级 viewer 用 var(--z-viewer) 恒在其上 */
    background: var(--bg-chat);
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(0.32,0.72,0,1), visibility 0.28s;
}
.video-picker-overlay.show {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* ---- Top bar ---- */
.vp-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: calc(12px + var(--safe-top)) 16px 8px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border);
    background: var(--surface-solid);
}
.vp-close-btn {
    width: 32px; height: 32px;
    border: none; background: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary);
    border-radius: 50%;
    transition: all 0.15s ease;
}
.vp-close-btn:hover { background: var(--accent-light); color: var(--accent); }
.vp-close-btn:active { transform: scale(0.92); }
.vp-close-btn svg { width: 18px; height: 18px; }
.vp-topbar-title {
    font-family: 'Noto Serif SC', 'Times New Roman', serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}
.vp-topbar-en {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-style: italic;
    font-size: 11px;
    color: var(--text-muted);
    margin-left: 6px;
}
.vp-help-btn {
    margin-left: auto;
    width: 30px; height: 30px;
    border: 1px solid var(--border);
    background: var(--surface-solid);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary);
    border-radius: 50%;
    font-family: 'Noto Serif SC', 'Times New Roman', serif;
    font-size: 15px;
    line-height: 1;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.vp-help-btn:hover { color: var(--accent); border-color: var(--accent); transform: rotate(10deg); }

/* ---- 帮助说明（标题栏「?」弹出） ---- */
.vp-help-overlay {
    position: absolute; inset: 0;
    z-index: 30;
    background: rgba(30,25,20,0.25);
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    display: flex; align-items: center; justify-content: center;
    padding: 28px;
    visibility: hidden; opacity: 0;
    transition: opacity 0.22s ease, visibility 0.22s;
}
.vp-help-overlay.show { visibility: visible; opacity: 1; }
.vp-help-card {
    width: 100%; max-width: 320px;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 18px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.16);
    text-align: left;
}
.vp-help-title {
    font-family: 'Noto Serif SC', 'Times New Roman', serif;
    font-size: 15px; font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.vp-help-item {
    font-size: 13px; line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 8px;
    position: relative;
    padding-left: 14px;
}
.vp-help-item::before {
    content: '';
    position: absolute; left: 0; top: 8px;
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--accent);
}
.vp-help-item span { color: var(--accent); font-weight: 500; }
.vp-help-close {
    width: 100%;
    margin-top: 6px;
    padding: 10px 0;
    border: none; border-radius: 12px;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 14px; font-weight: 500;
    font-family: 'Noto Serif SC', 'Times New Roman', serif;
    cursor: pointer;
    transition: transform 0.15s ease;
}
.vp-help-close:active { transform: scale(0.97); }

/* ---- Body / 预览封面 ---- */
.vp-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    gap: 12px;
}
/* 2026-10-25：预览不再用浏览器原生 <video controls>（她要「点播放键放大看」，保留/倍速在播放界面里）。
   这里只放第一帧当封面 + 一个播放键；宽高比由 JS 按视频真实尺寸设上来。 */
.vp-cover {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(72vw, 300px);
    max-width: 100%;
    max-height: 62vh;
    min-height: 180px;
    border-radius: 12px;
    overflow: hidden;
    background: #0d0b10;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}
.vp-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vp-status {
    font-family: 'Noto Serif SC', 'Times New Roman', serif;
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* ---- Bottom bar ---- */
.vp-bottom-bar {
    display: flex;
    gap: 10px;
    padding: 10px 16px;
    padding-bottom: calc(10px + var(--safe-bottom, 0px));
    flex-shrink: 0;
    border-top: 1px solid var(--border);
    background: var(--surface-solid);
}
.vp-btn {
    flex: 1;
    padding: 11px 0;
    border: none;
    border-radius: 12px;
    font-size: clamp(13px, 3.5vw, 15px);
    font-family: 'Noto Serif SC', 'Times New Roman', serif;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.2s cubic-bezier(0.32,0.72,0,1);
}
.vp-btn:active { transform: scale(0.96); }

.vp-btn-cancel {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.vp-btn-cancel:hover { background: var(--accent-light); }

.vp-btn-send {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 2px 10px var(--accent-glow);
}
.vp-btn-send:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--accent-glow);
}
.vp-btn-send:active { transform: scale(0.96) translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .video-picker-overlay { transition: none; }
    .vp-btn { transition: none; }
}
