/* =========================================================
   视频广场 (video.css)  2026-10-07 新建
   ★ 与全站翻新页面同一套视觉语言(pg_common.css)：主色 #2f6fa8 / 边框 #d8dee5 /
     白卡片 12px 圆角 + 0 2px 10px 软阴影；头图额外加一层深色"影院"带。
   ★ 尺寸一律走 padding-top 比例盒（老手机浏览器不认 aspect-ratio，本站已有实报）,
     ★别用 inset:0 —— 微信 X5 / 老 iOS 上不认，整块会塌成 0。
   ========================================================= */

.vd-wrap { max-width: 1180px; }

/* ---------------- 头图 ---------------- */
.vd-hero {
    position: relative; overflow: hidden; border-radius: 16px; margin: 4px 0 16px;
    background: linear-gradient(120deg, #101d33 0%, #16283f 45%, #0d2233 100%);
    color: #eaf3fb; box-shadow: 0 6px 22px rgba(16, 29, 51, .22);
}
.vd-hero-glow {
    position: absolute; top: -120px; right: -80px; width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle, rgba(111,210,255,.35) 0%, rgba(111,210,255,0) 70%);
    pointer-events: none;
}
.vd-hero-in { position: relative; padding: 26px 26px 22px; }
.vd-hero-tag {
    display: inline-block; font-size: 12px; letter-spacing: 2px; padding: 4px 10px; border-radius: 99px;
    background: rgba(111,210,255,.14); color: #9fe0ff; border: 1px solid rgba(111,210,255,.28);
}
.vd-hero-h1 { font-size: 26px; font-weight: bold; margin: 12px 0 8px; letter-spacing: 1px; color: #fff; }
.vd-hero-p { font-size: 13px; line-height: 1.9; color: #b9cbdd; margin: 0 0 16px; max-width: 720px; }
.vd-hero-p b { color: #7fe0a8; }

.vd-hero-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.vd-btn {
    display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-family: inherit;
    padding: 9px 18px; border-radius: 9px; border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.08); color: #eaf3fb; cursor: pointer; text-decoration: none;
    transition: background .14s, transform .14s, border-color .14s; line-height: 1.4;
}
.vd-btn:hover { background: rgba(255,255,255,.16); text-decoration: none; transform: translateY(-1px); }
.vd-btn.main {
    background: linear-gradient(120deg, #2f6fa8, #1f8fbf); border-color: transparent; font-weight: bold;
    box-shadow: 0 4px 14px rgba(47,111,168,.4);
}
.vd-btn.gm { border-color: rgba(255,196,120,.45); background: rgba(255,196,120,.14); color: #ffd79b; }
.vd-btn.plain {
    background: #fff; border: 1px solid #d8dee5; color: #2f6fa8;
}
.vd-btn.plain:hover { background: #f6f9fc; }
/* ★必须压过 pg_common.css 的 `.pg-wrapper a`（0,1,1 高于 .vd-btn 的 0,1,0）：
   否则头图里的 <a class="vd-btn"> 文字会被染成链接蓝 #2f6fa8 —— 深蓝底上几乎看不见（截图实测）。 */
.vd-wrap a.vd-btn, .vd-wrap .vd-btn { color: #eaf3fb; }
.vd-wrap a.vd-btn:hover, .vd-wrap .vd-btn:hover { color: #fff; text-decoration: none; }
.vd-wrap a.vd-btn.plain, .vd-wrap .vd-btn.plain { color: #2f6fa8; }
.vd-wrap a.vd-btn.gm, .vd-wrap .vd-btn.gm { color: #ffd79b; }
/* 平台筛选药丸（<a>）同理：不加这条会被链接色覆盖成蓝字 */
.vd-wrap a.vd-chip { color: #7b8894; text-decoration: none; }
.vd-wrap a.vd-chip:hover { color: #2f6fa8; }
.vd-wrap a.vd-chip.on { color: #fff; }
.vd-dot {
    font-style: normal; font-size: 11px; font-weight: bold; background: #e74c3c; color: #fff;
    border-radius: 99px; padding: 1px 6px; margin-left: 2px;
}

.vd-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.vd-stat {
    flex: 1 1 120px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px; padding: 10px 12px;
}
.vd-stat b { display: block; font-size: 20px; color: #fff; line-height: 1.3; }
.vd-stat span { font-size: 11px; color: #9db2c6; letter-spacing: 1px; }
.vd-stat.hi b { color: #ffd79b; }

/* ---------------- 投稿面板 ---------------- */
.vd-post { border: 1px solid #cde3f2; }
.vd-field { margin-bottom: 12px; }
.vd-field > label { display: block; font-size: 12px; color: #7b8894; margin-bottom: 5px; letter-spacing: 1px; }
.vd-field > label i { color: #e74c3c; font-style: normal; }
.vd-hint { font-size: 11px; color: #97a3b0; margin-top: 4px; line-height: 1.7; }
.vd-textarea { width: 100%; min-height: 74px; resize: vertical; line-height: 1.7; }
.vd-row2 { display: flex; gap: 12px; flex-wrap: wrap; }
.vd-row2 > .vd-field { flex: 1 1 240px; }

.vd-radios { display: flex; gap: 10px; flex-wrap: wrap; }
.vd-radio {
    flex: 1 1 240px; display: flex; flex-direction: column; gap: 3px; cursor: pointer;
    border: 1px solid #d8dee5; border-radius: 10px; padding: 10px 12px; background: #fbfcfe;
    transition: border-color .14s, background .14s, box-shadow .14s;
}
.vd-radio.on { border-color: #2f6fa8; background: #f2f8fd; box-shadow: 0 0 0 3px rgba(47,111,168,.1); }
.vd-radio input { position: absolute; opacity: 0; width: 0; height: 0; }
.vd-radio-t { font-size: 13px; font-weight: bold; color: #2c3e50; }
.vd-radio em { font-style: normal; font-size: 11px; color: #97a3b0; line-height: 1.7; }
.vd-radio em b { color: #b9770e; }

.vd-vcode {
    border: 1px dashed #b9d4e8; background: #f4fafd; border-radius: 10px; padding: 10px 12px; margin: 4px 0 12px;
}
.vd-vcode-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vd-vcode-k { font-size: 12px; color: #7b8894; }
.vd-vcode code {
    font-size: 14px; font-weight: bold; letter-spacing: 1px; color: #1f6ea8;
    background: #fff; border: 1px solid #cde3f2; border-radius: 6px; padding: 3px 8px;
}
.vd-vcode-tip { font-size: 11px; color: #7b8894; margin-top: 6px; line-height: 1.8; }
.vd-vcode-tip b { color: #1f6ea8; }

.vd-agree {
    display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: #5c6b7a;
    line-height: 1.8; cursor: pointer; user-select: none; margin-bottom: 12px;
}
.vd-agree input { margin-top: 3px; width: 15px; height: 15px; accent-color: #2f6fa8; flex: none; }
.vd-form-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vd-form-acts .vd-btn.plain { color: #7b8894; }
.vd-tip { font-size: 11px; color: #97a3b0; }
.vd-mini {
    font-size: 11px; font-family: inherit; padding: 3px 10px; border-radius: 6px; cursor: pointer;
    border: 1px solid #d8dee5; background: #fff; color: #2f6fa8; text-decoration: none;
    display: inline-block; line-height: 1.7;
}
.vd-mini:hover { background: #f2f8fd; text-decoration: none; }

/* ---------------- 工具栏 ---------------- */
.vd-bar { padding: 10px 14px; }
.vd-plats { gap: 6px; }
.vd-chip {
    font-size: 12px; padding: 4px 11px; border-radius: 99px; border: 1px solid #d8dee5;
    background: #fff; color: #7b8894; text-decoration: none; line-height: 1.7;
}
.vd-chip:hover { border-color: #9fc6e0; color: #2f6fa8; text-decoration: none; }
.vd-chip.on { background: #2f6fa8; border-color: #2f6fa8; color: #fff; font-weight: bold; }

/* ---------------- 视频网格 ---------------- */
.vd-grid {
    display: grid; gap: 14px; margin-bottom: 16px;
    grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
}
.vd-card {
    background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.07);
    transition: transform .16s, box-shadow .16s; display: flex; flex-direction: column;
}
.vd-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(16,41,66,.14); }
.vd-card-forum { box-shadow: 0 2px 10px rgba(47,111,168,.12); }

/* 缩略图：padding-top 比例盒（16:9），播放器注入时铺满这个盒子 */
.vd-thumb {
    position: relative; padding-top: 56.25%; background: #16283f;
    background-size: cover; background-position: center; cursor: default;
}
/* 封面图：绝对铺满。★必须是 <img referrerpolicy="no-referrer"> 而不是 background-image ——
   i0.hdslb.com（B 站图床）按 Referer 防盗链，带本站 Referer 会 403（实测），CSS 背景无法按请求
   去掉 Referer，<img> 可以；加载失败由 onerror 隐藏，露出下面的平台风格底图。 */
.vd-cover {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.vd-thumb.has-cover { background-color: #0f1a2b; }
.vd-plat-bilibili { background-image: linear-gradient(135deg, #16283f, #2b5a7f); }
.vd-plat-youtube { background-image: linear-gradient(135deg, #2a1520, #6b2230); }
.vd-plat-file { background-image: linear-gradient(135deg, #1d2a20, #35543f); }
.vd-plat-other { background-image: linear-gradient(135deg, #241f36, #453a63); }
.vd-glyph {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 30px; opacity: .3; pointer-events: none;
}
.vd-shade {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 38%, rgba(0,0,0,.42) 100%);
}
.vd-plat, .vd-dur, .vd-views {
    position: absolute; font-size: 11px; line-height: 1; padding: 3px 6px; border-radius: 5px;
    background: rgba(9,17,28,.72); color: #eaf3fb; letter-spacing: .5px;
}
.vd-plat { top: 8px; left: 8px; }
.vd-dur { bottom: 8px; right: 8px; }
.vd-views { bottom: 8px; left: 8px; }
.vd-play {
    position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px;
    border-radius: 50%; border: 1px solid rgba(255,255,255,.55); cursor: pointer;
    background: rgba(12,24,38,.5); color: #fff; font-size: 17px; line-height: 46px; text-align: center;
    padding: 0; transition: background .14s, transform .14s; backdrop-filter: blur(2px);
}
.vd-play:hover { background: rgba(47,111,168,.92); transform: scale(1.08); }
.vd-play-out { text-decoration: none; display: block; font-size: 19px; }
.vd-play-out:hover { text-decoration: none; }
.vd-frame { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: #000; }
.vd-frame iframe, .vd-frame video { width: 100%; height: 100%; border: 0; display: block; }
.vd-close {
    position: absolute; top: 6px; right: 6px; z-index: 3; width: 24px; height: 24px; border-radius: 50%;
    border: none; background: rgba(9,17,28,.75); color: #fff; font-size: 14px; line-height: 24px;
    cursor: pointer; padding: 0;
}

.vd-meta { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 7px; flex: 1 1 auto; }
.vd-title {
    font-size: 13px; font-weight: bold; color: #2c3e50; line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.6em; word-break: break-word;
}
.vd-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.vd-chips .pg-badge { font-size: 10px; padding: 3px 6px; }
.vd-b-orig { background: #e8f6ee; color: #1d7a4d; }
.vd-b-repost { background: #fdf1e6; color: #b9770e; }
.vd-b-forum { background: #e8f1f8; color: #2f6fa8; }
.vd-b-ok { background: #e6f4f1; color: #1d7a6f; }
.vd-b-pay { background: #fff6e0; color: #b8860b; }
.vd-b-wait { background: #fff4e5; color: #c87f0a; }
.vd-b-no { background: #fdecec; color: #c0392b; }
.vd-sub { display: flex; flex-wrap: wrap; gap: 6px; font-size: 11px; color: #97a3b0; margin-top: auto; }
.vd-who { color: #5c6b7a; font-weight: bold; }
.vd-thread { color: #2f6fa8; }
.vd-time { margin-left: auto; }

/* ---------------- 我的投稿 ---------------- */
.vd-mylist { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.vd-myitem {
    display: flex; gap: 12px; background: #fff; border-radius: 12px; padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.vd-mythumb {
    position: relative; flex: none; width: 148px; height: 84px; border-radius: 9px;
    background: #16283f; background-size: cover; background-position: center; overflow: hidden;
}
.vd-mythumb a {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: block; text-align: center;
    line-height: 84px; font-size: 20px; color: #fff; background: rgba(9,17,28,.28); text-decoration: none;
}
.vd-mybody { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.vd-mytitle { font-size: 13px; font-weight: bold; color: #2c3e50; line-height: 1.6; word-break: break-word; }
.vd-mynote { font-size: 11px; color: #7b8894; line-height: 1.8; }
.vd-myreason { background: #f7fafc; border-radius: 7px; padding: 5px 8px; }
.vd-k { color: #a8b4c0; margin-right: 3px; }
.vd-myacts { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------------- 规则 ---------------- */
.vd-rules-body { font-size: 12px; color: #5c6b7a; line-height: 2; margin-bottom: 12px; }
.vd-rules-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.vd-rules-grid h4 { font-size: 13px; color: #2c3e50; margin: 0 0 6px; }
.vd-rules-grid ul { margin: 0; padding-left: 18px; }
.vd-rules-grid li { font-size: 12px; color: #7b8894; line-height: 2; }
.vd-empty { padding: 40px 16px; }
.vd-more-wrap { text-align: center; margin: 4px 0 18px; }

/* ---------------- 移动端 ---------------- */
@media (max-width: 720px) {
    .vd-hero-in { padding: 18px 16px 16px; }
    .vd-hero-h1 { font-size: 20px; letter-spacing: 0; }
    .vd-hero-p { font-size: 12px; }
    .vd-btn { padding: 8px 14px; font-size: 12px; }
    .vd-stat { flex: 1 1 88px; padding: 8px 9px; }
    .vd-stat b { font-size: 16px; }
    .vd-stat span { font-size: 10px; letter-spacing: 0; }
    .vd-grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 10px; }
    .vd-title { font-size: 12px; }
    .vd-myitem { flex-direction: column; }
    .vd-mythumb { width: 100%; height: 150px; }
    .vd-mythumb a { line-height: 150px; }
    .vd-time { margin-left: 0; }
}

/* 可点缩略图（播放 / 外链卡片）：鼠标指针提示可点 */
.vd-card .vd-thumb { cursor: pointer; }

/* ---------------- 关联玩家（角色名 + 头像 + 卡号） ----------------
   ★显示的是角色不是账号名；点名字 → 全站英雄榜弹窗（inc/armory_popup.php 的 .arm-char-link）。
   ★链接色必须用 .vd-wrap 前缀压过 pg_common.css 的 `.pg-wrapper a`（0,1,1），否则被染成链接蓝。 */
.vd-author { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.vd-ava {
    width: 34px; height: 34px; border-radius: 9px; flex: none;
    object-fit: cover; background: #eef3f7; border: 1px solid #e3eaf1; display: block;
}
.vd-ava-ph {
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: bold; color: #9aa8b6; background: #eef3f7;
}
.vd-author-t { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; }
.vd-wrap .vd-author-t a {
    font-size: 12.5px; font-weight: bold; color: #2c3e50; text-decoration: none; max-width: 12em;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vd-wrap .vd-author-t a:hover { color: #2f6fa8; text-decoration: underline; }
.vd-gc { font-size: 10.5px; color: #97a3b0; letter-spacing: .3px; }
.vd-gmtag { font-size: 10px; font-weight: bold; color: #c0392b; background: #fdecec; border-radius: 4px; padding: 1px 4px; }
.vd-noc { font-size: 10px; color: #b9c3cd; }
.vd-inchar { color: #7b8894; }

/* ---------------- 视频操作栏（赞/藏/分享/原帖/举报） ----------------
   ★图标一律内联 SVG，不用 emoji：Windows 的彩色 emoji 回退字体在按钮里会被放大数倍（实测撑破按钮）。 */
.vd-acts {
    display: flex; align-items: center; gap: 3px; margin-top: auto;
    padding-top: 8px; border-top: 1px solid #f2f6f9;
}
.vd-act {
    display: inline-flex; align-items: center; gap: 4px; font-family: inherit;
    font-size: 11.5px; line-height: 1; color: #8695a3; text-decoration: none; cursor: pointer;
    background: transparent; border: 1px solid transparent; border-radius: 7px; padding: 5px 7px;
    transition: background .12s, color .12s, border-color .12s;
}
.vd-act svg { display: block; }
.vd-act b { font-size: 11px; font-weight: 600; }
.vd-act:hover { background: #f3f7fb; color: #2f6fa8; text-decoration: none; }
.vd-act.on { color: #e0392b; background: #fdf1ef; border-color: #f6d9d3; }
.vd-act.on svg { fill: currentColor; }
.vd-fav.on { color: #d99a00; background: #fdf7e8; border-color: #f2e3bd; }
.vd-rep { margin-left: auto; color: #b3bec8; }
.vd-rep:hover { color: #c0392b; background: #fdf1ef; }
/* 分享链接落地高亮 */
.vd-hit { animation: vdHit 1.3s ease-out 2; }
@keyframes vdHit {
    0%, 100% { box-shadow: 0 2px 10px rgba(0,0,0,.07); }
    50% { box-shadow: 0 0 0 4px rgba(47,111,168,.4); }
}

/* =========================================================
   播放弹窗 = 物品详情那种「终端风」（用户点名）
   造型逐项对齐 css/item_codex.css：深青底 #052b2b + 2px 白外框 + 青色内衬线(outline -6px) +
   橙色渐变标题条(黑体大写 + Led 菱形) + 黑圆 ✕（hover 白底橙字旋转）。
   ★自己带一份样式：item_codex.css 由 item_popup.js 动态注入，注入晚/失败时弹窗会裸奔。
   ★用户点名：**只能点 ✕ 或按 Esc 关闭** —— 点背景/点遮罩都不关（手滑不丢播放）。
   ★关闭时 JS 销毁 iframe（只隐藏的话视频会在后台继续放）。
   ★别用 inset:0 / aspect-ratio：老手机浏览器不认（本站实报过）。
   ========================================================= */
.vd-modal {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 9995;
    display: flex; align-items: center; justify-content: center;
    padding: 24px 16px;
}
.vd-modal[hidden] { display: none; }          /* ★display:flex 会盖掉 hidden 属性，必须显式关掉 */
.vd-modal-mask {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(2px);
}
/* 窗体 = .codex-info 同款 */
.vd-term {
    position: relative; z-index: 1;
    /* ★宽度同时受"视口高度"约束：16:9 播放区 + 标题条 + 信息行 + 页脚要能一屏放下，
       否则矮窗口（如 1280×720）里标题/警示会被挤进弹窗内部滚动区、看不见。
       1.778 ≈ 16/9；250px = 上下留白 48 + 标题条 45 + 信息行 ~76 + **海外平台警示行 ~50** + 页脚 ~30
       （留 250 而不是 200：实测 1280×720 时警示行会被切掉一截）。
       ★三参 min() 老浏览器不认 ⇒ 前面先给 max-width 兜底（不认就按这个走）。 */
    max-width: 1040px;
    width: min(1040px, calc(100vw - 32px), calc((100vh - 250px) * 1.778));
    max-height: calc(100vh - 48px);
    display: flex; flex-direction: column;
    overflow: hidden;
    background-color: #052b2b;
    border: 2px solid #fff;
    outline: 2px solid #00ffff;
    outline-offset: -6px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
    border-radius: 16px;
    color: #e0ffff;
    font-size: 13px;
    line-height: 1.65;
}
/* 标题条 = .ci-terminal-bar 同款（橙渐变 + 黑字 + 青底线） */
.vd-term-bar {
    flex: none; position: relative;
    min-height: 45px; padding: 0 56px 0 20px;
    background: linear-gradient(90deg, #ff8800 0%, #cc7000 100%);
    border-bottom: 2px solid #00ffff;
    display: flex; align-items: center; gap: 10px;
    border-radius: 12px 12px 0 0;
}
.vd-term-bar .led {
    width: 10px; height: 10px; background: #000; transform: rotate(45deg);
    flex: 0 0 auto; opacity: .55;
}
.vd-term-bar .tt-main {
    font-size: 18px; color: #000; text-transform: uppercase; letter-spacing: 2px;
    font-weight: 900; text-shadow: 1px 1px 0 rgba(255, 255, 255, .4); padding-top: 2px;
}
.vd-term-bar .tt-sub {
    margin-left: auto; font-size: 10px; color: rgba(0, 0, 0, .65);
    font-weight: 700; letter-spacing: 3px;
}
/* 关闭钮 = .ci-close 同款（黑圆，hover 白底橙字旋转） */
.vd-term-close {
    position: absolute; right: 12px; top: 9px;
    width: 28px; height: 28px; padding: 0;
    background: rgba(0, 0, 0, .2); border: 1px solid #000; color: #000;
    font-size: 20px; font-weight: bold; font-family: inherit; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all .2s; border-radius: 50%;
}
.vd-term-close:hover { background: #fff; color: #ff8800; transform: rotate(90deg); }
.vd-term-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.vd-term-body::-webkit-scrollbar { width: 12px; }
.vd-term-body::-webkit-scrollbar-track { border: 1px solid #00ffff; background: rgba(0,0,0,.2); border-radius: 10px; }
.vd-term-body::-webkit-scrollbar-thumb { background: #ff8800; border: 1px solid #fff; border-radius: 10px; }
/* 播放区：padding-top 比例盒（16:9），老浏览器也稳 */
.vd-modal-body { position: relative; width: 100%; padding-top: 56.25%; background: #000; border-bottom: 1px solid #0b3f3f; }
.vd-modal-body iframe, .vd-modal-body video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; display: block; background: #000;
}
.vd-term-info { padding: 12px 20px 14px; }
.vd-term-title { font-size: 14px; font-weight: 700; color: #e0ffff; line-height: 1.7; word-break: break-word; }
.vd-term-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; font-size: 11.5px; }
.vd-term-plat { color: #7fe0e0; border: 1px solid #116b6b; border-radius: 5px; padding: 2px 7px; }
.vd-wrap .vd-term-out, .vd-term-out { color: #ffb347; text-decoration: none; margin-left: auto; }
.vd-term-out:hover { color: #ffd08a; text-decoration: underline; }
.vd-term-foot {
    flex: none; padding: 8px 20px; font-size: 11px; color: #6f9fa0;
    background: #042020; border-top: 1px solid #116b6b;
}
@media (max-width: 720px) {
    .vd-modal { padding: 0; align-items: flex-start; }
    .vd-term { width: 100%; max-height: 100%; border-radius: 0; border-left: 0; border-right: 0; margin-top: 10vh; }
    .vd-term-bar .tt-main { font-size: 16px; letter-spacing: 1px; }
    .vd-term-bar .tt-sub { display: none; }
    .vd-term-info { padding: 10px 14px 12px; }
}

/* ---------------- 海外平台（YouTube）相关：国内直连不通的如实标识与出口 ----------------
   用户点名："YouTube 的视频在国内被禁的 怎么办" —— 结论：不代看（不走代理/镜像，带宽与合规代价太大），
   但必须①标清楚②给国内观众出口（B 站搜同款）③给投稿人激励（搬一份到 B 站再投稿，站内搬运本来就有奖励）。 */
.vd-b-oversea { background: #eef1fa; color: #5566a8; }
.vd-chip-cn.on { background: #1d7a6f; border-color: #1d7a6f; color: #fff; }
.vd-term-warn {
    margin-top: 10px; padding: 9px 12px; border-radius: 8px; font-size: 11.5px; line-height: 1.9;
    background: rgba(255, 136, 0, .12); border: 1px solid rgba(255, 136, 0, .45); color: #ffd9a8;
}
.vd-term-warn a { color: #ffb347; margin-left: 8px; white-space: nowrap; }
.vd-term-warn a:hover { color: #ffd08a; }
.vd-yt-warn {
    background: #fff8ec; border: 1px solid #f2d9b0; border-radius: 8px; padding: 8px 10px;
    color: #a8710f; margin-top: 6px;
}

/* ---------------- 照片查看框（相册页）：不套 16:9，按原始比例 contain 居中 ----------------
   视频是 16:9 比例盒；照片比例千奇百怪，硬套会裁掉内容 ⇒ 换成定高 flex 框，
   图最大铺满、超出的部分靠 contain 自适应（黑底 letterbox 是相册的常规观感）。 */
.vd-modal-body.vd-photo-box {
    padding-top: 0;
    height: min(70vh, 620px);
    display: flex; align-items: center; justify-content: center;
}
.vd-photo { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
@media (max-width: 720px) {
    .vd-modal-body.vd-photo-box { height: min(62vh, 520px); }
}
/* 相册卡片：缩略图不必裁切得那么狠（截图多是 4:3/16:10），略收一点圆角 */
.vd-card-photo .vd-thumb { background-image: none; background-color: #071b1b; }

/* =========================================================
   自绘全屏（用户点名：手机端视频全屏没适配）
   ★iOS Safari 没有元素级 Fullscreen API（iPhone 上 iframe 里的第三方播放器全屏按钮点了没反应），
     所以统一走"弹窗铺满视口"的自绘全屏：.vd-fullscreen ⇒ .vd-term 占满 100vw×100vh，
     播放区改成 flex 撑满（B 站播放器自己会按比例留黑边）。安卓另尝试锁横屏（JS 里 screen.orientation.lock）。
   ========================================================= */
.vd-term-full {
    position: absolute; right: 48px; top: 9px;
    width: 28px; height: 28px; padding: 0; line-height: 1;
    background: rgba(0, 0, 0, .2); border: 1px solid #000; color: #000;
    font-size: 15px; font-weight: bold; font-family: inherit; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: all .2s;
}
.vd-term-full:hover { background: #fff; color: #ff8800; }
.vd-modal.vd-fullscreen { padding: 0; }
.vd-modal.vd-fullscreen .vd-term {
    width: 100vw; height: 100vh; max-width: none; max-height: none;
    border-radius: 0; border: 0; outline: 0; box-shadow: none;
}
.vd-modal.vd-fullscreen .vd-term-bar { border-radius: 0; }
/* 全屏时：播放区吃掉剩余高度（不再是 16:9 比例盒；播放器自己会按比例留边） */
.vd-modal.vd-fullscreen .vd-term-body { display: flex; flex-direction: column; overflow: hidden; }
.vd-modal.vd-fullscreen .vd-modal-body {
    padding-top: 0; flex: 1 1 auto; min-height: 0; height: auto; border-bottom: 0;
}
.vd-modal.vd-fullscreen .vd-term-info { flex: none; }
@media (max-width: 720px) {
    /* 手机上进入自绘全屏时，信息行还占地方 ⇒ 收成一行小字 */
    .vd-modal.vd-fullscreen .vd-term-info { padding: 6px 12px; }
    .vd-modal.vd-fullscreen .vd-term-title { font-size: 12px; }
    .vd-modal.vd-fullscreen .vd-term-foot { display: none; }
}

/* 图片缩放（双指/双击/滚轮/拖拽）：容器接手势，图用 transform 缩放，绝不改布局 */
.vd-modal-body.vd-photo-box { touch-action: none; overflow: hidden; }
.vd-photo { transform-origin: 50% 50%; will-change: transform; }
.vd-photo-box { cursor: zoom-in; }
.vd-photo-box:active { cursor: grabbing; }
