/* ==========================================================================
   短视频页（/video.html）—— 仿抖音的界面
   --------------------------------------------------------------------------
   配色按抖音官方视觉走：品牌红 #FE2C55、青色 #25F4EE、正文墨色 #161823；
   浅色为主题（抖音网页版默认），深色为可选（侧栏底部切换，记在本地）。
   版式两套自适应：
     · 电脑（≥1024px）左侧栏 216px + 视频区 + 右侧评论区 380px，视频下方是
       作者/文案/操作按钮（横向胶囊）；
     · 平板（768–1023px）收成单列，评论区改成抽屉；
     · 手机（≤767px）全屏一屏一条、上下滑动，右侧竖排操作栏、底部信息条与标签栏。
   这个文件只服务短视频页，不再往 nzep.css 里堆样式。
   ========================================================================== */

/* ---------- 主题变量 ----------
   注意：变量挂在 <html> 上而不是 .vd-app 上。因为抽屉、右键菜单这些弹层是
   .vd-app 的兄弟节点（放在 body 里），挂在内层的话它们拿不到变量，
   弹窗就会变成"没有背景"的透明块。 */
html.vd-html, .vd-app {
  --vd-brand: #fe2c55;
  --vd-brand-dark: #e6244a;
  --vd-brand-soft: rgba(254, 44, 85, .08);
  --vd-cyan: #25f4ee;
  --vd-bg: #fff;
  --vd-bg-2: #f7f8fa;
  --vd-bg-3: #f1f2f5;
  --vd-hover: rgba(22, 24, 35, .04);
  --vd-text: #161823;
  --vd-text-2: rgba(22, 24, 35, .75);
  --vd-text-3: rgba(22, 24, 35, .55);
  --vd-text-4: rgba(22, 24, 35, .34);
  --vd-line: rgba(22, 24, 35, .12);
  --vd-line-2: rgba(22, 24, 35, .06);
  --vd-shadow: 0 2px 12px rgba(22, 24, 35, .08);
  --vd-shadow-lg: 0 12px 40px -12px rgba(22, 24, 35, .28);
  --vd-stage: #000;
  --vd-radius: 12px;
  --vd-side: 216px;
  --vd-cmts: 380px;
  --vd-top: 60px;
  --vd-bottom-bar: 0px;
  --vd-tabbar-h: 52px;
}

html.vd-html[data-theme="dark"], .vd-app[data-theme="dark"] {
  --vd-bg: #161823;
  --vd-bg-2: #1f2130;
  --vd-bg-3: #252734;
  --vd-hover: rgba(255, 255, 255, .06);
  --vd-text: rgba(255, 255, 255, .92);
  --vd-text-2: rgba(255, 255, 255, .72);
  --vd-text-3: rgba(255, 255, 255, .5);
  --vd-text-4: rgba(255, 255, 255, .34);
  --vd-line: rgba(255, 255, 255, .12);
  --vd-line-2: rgba(255, 255, 255, .06);
  --vd-shadow: 0 2px 12px rgba(0, 0, 0, .4);
  --vd-shadow-lg: 0 16px 44px -14px rgba(0, 0, 0, .7);
  --vd-brand-soft: rgba(254, 44, 85, .16);
}

/* ---------- 基础 ---------- */
html.vd-html, html.vd-html body { height: 100%; }
html.vd-html { background: #fff; }
html.vd-html[data-theme="dark"] { background: #161823; }
html.vd-html body.vd-body {
  margin: 0; overflow: hidden;
  background: #fff; color: #161823;
  font-family: var(--sans, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
html.vd-html body.vd-body.has-bg::before { display: none !important; }   /* 不套用资料库站点背景 */
.vd-body *, .vd-body *::before, .vd-body *::after { box-sizing: border-box; }
.vd-body button, .vd-body input, .vd-body textarea, .vd-body select { font: inherit; color: inherit; }
.vd-body a { color: inherit; text-decoration: none; }
.vd-body img { display: block; }
.vd-body ::-webkit-scrollbar { width: 8px; height: 8px; }
.vd-body ::-webkit-scrollbar-thumb { background: var(--vd-line); border-radius: 4px; }
.vd-body ::-webkit-scrollbar-thumb:hover { background: var(--vd-text-4); }
.vd-body ::-webkit-scrollbar-track { background: transparent; }
.vd-hide { display: none !important; }
.vd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.vd-app {
  position: fixed; inset: 0;
  display: flex;
  background: var(--vd-bg); color: var(--vd-text);
  font-size: 14px; line-height: 1.5;
}

/* ---------- 通用控件 ---------- */
.vd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  height: 36px; padding: 0 1rem; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--vd-line); background: transparent; color: var(--vd-text);
  font-size: .875rem; white-space: nowrap;
  transition: background .18s var(--ease, ease), border-color .18s, color .18s, transform .12s;
}
.vd-btn:hover { background: var(--vd-hover); }
.vd-btn:active { transform: scale(.97); }
.vd-btn.primary { background: var(--vd-brand); border-color: var(--vd-brand); color: #fff; font-weight: 600; }
.vd-btn.primary:hover { background: var(--vd-brand-dark); border-color: var(--vd-brand-dark); }
.vd-btn.primary[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.vd-btn.ghost { border-color: transparent; color: var(--vd-text-2); }
.vd-btn.ghost:hover { color: var(--vd-text); background: var(--vd-hover); }
.vd-btn.sm { height: 30px; padding: 0 .7rem; font-size: .8125rem; border-radius: 6px; }
.vd-btn.icon { width: 36px; padding: 0; }
.vd-btn svg { flex: 0 0 auto; }

.vd-input, .vd-area {
  width: 100%; border: 1px solid transparent; background: var(--vd-bg-3);
  border-radius: 8px; padding: .55rem .7rem; outline: none; font-size: .875rem;
  transition: background .18s, border-color .18s, box-shadow .18s;
}
.vd-input::placeholder, .vd-area::placeholder { color: var(--vd-text-4); }
.vd-input:focus, .vd-area:focus { background: var(--vd-bg); border-color: var(--vd-brand); box-shadow: 0 0 0 3px var(--vd-brand-soft); }
.vd-area { resize: vertical; line-height: 1.6; min-height: 68px; }

.vd-link { color: var(--vd-brand); cursor: pointer; }
.vd-muted { color: var(--vd-text-3); }
.vd-tiny { font-size: .75rem; color: var(--vd-text-4); }

/* 开关 */
.vd-switch { position: relative; display: inline-flex; align-items: center; width: 40px; height: 22px; flex: 0 0 auto; cursor: pointer; }
.vd-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.vd-switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--vd-bg-3); border: 1px solid var(--vd-line); transition: background .2s, border-color .2s; }
.vd-switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--ease, ease); }
.vd-switch input:checked + i { background: var(--vd-brand); border-color: var(--vd-brand); }
.vd-switch input:checked + i::after { transform: translateX(18px); }

/* ---------- 左侧栏（桌面） ---------- */
.vd-side {
  width: var(--vd-side); flex: 0 0 var(--vd-side);
  border-right: 1px solid var(--vd-line-2);
  display: flex; flex-direction: column; padding: 14px 10px 10px;
  background: var(--vd-bg);
}
.vd-logo { display: flex; align-items: center; gap: .5rem; padding: .2rem .5rem .9rem; }
.vd-logo .mark {
  width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--vd-cyan), var(--vd-brand) 70%);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .8rem;
  box-shadow: 0 4px 12px -4px rgba(254, 44, 85, .7);
}
.vd-logo b { font-size: 1.02rem; letter-spacing: .02em; }
.vd-logo small { display: block; font-size: .68rem; color: var(--vd-text-4); font-weight: 400; }

.vd-nav { display: flex; flex-direction: column; gap: 2px; }
.vd-nav a, .vd-nav button {
  display: flex; align-items: center; gap: .65rem;
  height: 42px; padding: 0 .7rem; border-radius: 9px; border: 0; background: none;
  color: var(--vd-text-2); cursor: pointer; font-size: .9rem; text-align: left; width: 100%;
  transition: background .16s, color .16s;
}
.vd-nav a:hover, .vd-nav button:hover { background: var(--vd-hover); color: var(--vd-text); }
.vd-nav a.on, .vd-nav button.on { background: var(--vd-hover); color: var(--vd-text); font-weight: 600; }
.vd-nav a.on svg, .vd-nav button.on svg { color: var(--vd-brand); }
.vd-nav svg { flex: 0 0 auto; }
.vd-nav .badge {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--vd-brand); color: #fff; font-size: .68rem; display: grid; place-items: center;
}
.vd-nav-sep { height: 1px; background: var(--vd-line-2); margin: .55rem .5rem; }
.vd-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding-top: .5rem; }
.vd-side-foot .row { display: flex; align-items: center; gap: .4rem; }
.vd-side-foot .vd-btn { flex: 1 1 auto; }

/* ---------- 主区 ---------- */
.vd-main { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.vd-head {
  height: var(--vd-top); flex: 0 0 var(--vd-top);
  display: flex; align-items: center; gap: .8rem; padding: 0 16px;
  border-bottom: 1px solid var(--vd-line-2); background: var(--vd-bg);
  position: relative; z-index: 30;
}
.vd-head-back { display: none; }
.vd-search { position: relative; flex: 0 1 420px; }
.vd-search-in {
  display: flex; align-items: center; gap: .5rem; height: 38px; padding: 0 .8rem;
  background: var(--vd-bg-3); border: 1px solid transparent; border-radius: 999px;
  transition: background .18s, border-color .18s, box-shadow .18s;
}
.vd-search-in:focus-within { background: var(--vd-bg); border-color: var(--vd-brand); box-shadow: 0 0 0 3px var(--vd-brand-soft); }
.vd-search-in svg { color: var(--vd-text-4); flex: 0 0 auto; }
.vd-search-in input { flex: 1 1 auto; border: 0; outline: none; background: none; font-size: .875rem; min-width: 0; }
.vd-search-in .clear { border: 0; background: none; cursor: pointer; color: var(--vd-text-4); display: none; padding: 0; }
.vd-search.has-q .clear { display: block; }
.vd-suggest {
  position: absolute; top: 46px; left: 0; right: 0; z-index: 50;
  background: var(--vd-bg); border: 1px solid var(--vd-line); border-radius: var(--vd-radius);
  box-shadow: var(--vd-shadow-lg); padding: .3rem; max-height: 60vh; overflow: auto;
}
.vd-suggest .sg-title { font-size: .72rem; color: var(--vd-text-4); padding: .4rem .5rem .2rem; }
.vd-suggest a { display: flex; align-items: center; gap: .6rem; padding: .45rem .5rem; border-radius: 8px; cursor: pointer; }
.vd-suggest a:hover { background: var(--vd-hover); }
.vd-suggest .th { width: 34px; height: 34px; border-radius: 6px; background: var(--vd-bg-3); object-fit: cover; flex: 0 0 auto; }
.vd-suggest .tx { min-width: 0; }
.vd-suggest .tx b { display: block; font-weight: 500; font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-suggest .tx span { font-size: .75rem; color: var(--vd-text-4); }
.vd-head-right { margin-left: auto; display: flex; align-items: center; gap: .55rem; }
.vd-head-av { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; cursor: pointer; background: var(--vd-bg-3); flex: 0 0 auto; }
.vd-head-av img { width: 100%; height: 100%; object-fit: cover; }

.vd-body-scroll { flex: 1 1 auto; overflow: auto; min-height: 0; position: relative; }
.vd-page { padding: 18px 22px 40px; max-width: 1160px; margin: 0 auto; }
.vd-page-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 14px; }
.vd-page-head h2 { margin: 0; font-size: 1.15rem; font-weight: 700; }
.vd-page-head .sp { margin-left: auto; display: flex; gap: .5rem; align-items: center; }
.vd-tabs2 { display: flex; gap: .2rem; border-bottom: 1px solid var(--vd-line-2); margin-bottom: 14px; }
.vd-tabs2 button {
  border: 0; background: none; cursor: pointer; padding: .55rem .8rem; color: var(--vd-text-3);
  font-size: .875rem; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.vd-tabs2 button:hover { color: var(--vd-text); }
.vd-tabs2 button.on { color: var(--vd-text); font-weight: 600; border-bottom-color: var(--vd-text); }

/* ---------- 视频流 ---------- */
.vd-feed {
  height: 100%; overflow-y: auto; scroll-snap-type: y mandatory;
  scrollbar-width: none; background: var(--vd-stage);
}
.vd-feed::-webkit-scrollbar { display: none; }
.vd-feed.plain { scroll-snap-type: none; }
.vd-item {
  position: relative; height: 100%; scroll-snap-align: start;
  /* 用力一滑会一次跨过好几条视频，加上这一条就"一次只走一个" */
  scroll-snap-stop: always;
  display: flex; flex-direction: column;
}
.vd-media { position: relative; flex: 1 1 auto; min-height: 0; background: var(--vd-stage); overflow: hidden; }
.vd-media video { width: 100%; height: 100%; object-fit: contain; background: var(--vd-stage); display: block; }
.vd-media .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--vd-stage); }
.vd-tap { position: absolute; inset: 0; z-index: 5; cursor: pointer; }
.vd-play-big {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px;
  border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; display: grid; place-items: center;
  opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 6; backdrop-filter: blur(2px);
}
.vd-media.paused .vd-play-big { opacity: 1; }

/* 右侧操作栏（手机） / 操作胶囊（电脑，见下方 media query） */
.vd-rail {
  position: absolute; right: 10px; bottom: 118px; z-index: 8;
  display: flex; flex-direction: column; align-items: center; gap: .85rem;
}
.vd-rail .av { position: relative; width: 46px; height: 46px; margin-bottom: .2rem; }
.vd-rail .av img { width: 46px; height: 46px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; background: #333; }
.vd-rail .av .plus {
  position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%);
  width: 20px; height: 20px; border-radius: 50%; background: var(--vd-brand); color: #fff;
  display: grid; place-items: center; border: 0; cursor: pointer; font-size: 0;
}
.vd-rail .av .plus.done { background: #4a4a55; }
.vd-rail .plus svg { width: 12px; height: 12px; }
.vd-rail .it { display: flex; flex-direction: column; align-items: center; gap: .18rem; color: #fff; cursor: pointer; }
.vd-rail .it .ic {
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .14);
  display: grid; place-items: center; backdrop-filter: blur(6px); border: 0; color: #fff; cursor: pointer;
  transition: transform .16s var(--ease, ease), background .16s;
}
.vd-rail .it:hover .ic { background: rgba(255, 255, 255, .24); }
.vd-rail .it:active .ic { transform: scale(.9); }
.vd-rail .it b { font-size: .75rem; font-weight: 500; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.vd-rail .it.on { color: var(--vd-brand); }
.vd-rail .it.on .ic { color: var(--vd-brand); }
.vd-rail .it.on .ic svg { fill: currentColor; }
.vd-rail .disc {
  width: 44px; height: 44px; border-radius: 50%; border: 6px solid rgba(255, 255, 255, .18);
  overflow: hidden; background: #222; animation: vd-spin 6s linear infinite; animation-play-state: paused;
  cursor: pointer;
}
.vd-item.playing .vd-rail .disc { animation-play-state: running; }
.vd-rail .disc img { width: 100%; height: 100%; object-fit: cover; }
@keyframes vd-spin { to { transform: rotate(360deg); } }

/* 底部信息条：手机叠在视频上，电脑挪到视频下方（见 media query） */
.vd-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 7;
  padding: 34px 78px 26px 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .62) 42%, rgba(0, 0, 0, .78));
  color: #fff; pointer-events: none;
}
.vd-bottom a, .vd-bottom button, .vd-bottom .tag, .vd-bottom .at,
.vd-bottom .nm, .vd-bottom .marq, .vd-bottom .vd-sound { pointer-events: auto; }
/* 手机端左下角的"点击开启声音"提示（抖音也是这么提示的） */
.vd-sound {
  display: none; align-items: center; gap: .3rem; margin-bottom: .5rem;
  border: 0; background: rgba(0,0,0,.45); color: #fff; border-radius: 999px;
  padding: .3rem .75rem; font-size: .78rem; cursor: pointer; backdrop-filter: blur(6px);
}
.vd-sound svg { width: 14px; height: 14px; }
.vd-sound:active { transform: scale(.96); }
.vd-bottom .who { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .95rem; }
.vd-bottom .who .nm { cursor: pointer; }
.vd-bottom .who .fl {
  border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .12);
  color: #fff; font-size: .72rem; padding: .1rem .45rem; border-radius: 4px; cursor: pointer; font-weight: 400;
}
.vd-bottom .who .fl:hover { background: rgba(255, 255, 255, .24); }
.vd-bottom .who .fl.on { color: var(--vd-text-4); border-color: rgba(255, 255, 255, .3); background: none; }
/* 手机上"关注"按钮原来只有 39×22，手指不好点；平板也一并按触屏处理 */
@media (hover: none) {
  .vd-bottom .who .fl { min-height: 2.2rem; padding: .3rem .7rem; font-size: .78rem; }
  .vd-rail .av .plus { width: 30px; height: 30px; bottom: -12px; }
  .vd-rail .plus svg { width: 16px; height: 16px; }
  .vd-search-in input { font-size: 16px; }
  .vd-input, .vd-area { font-size: 16px; }
  .vd-btn.icon { min-width: 2.6rem; }
}
@media (max-width: 767px) {
  .vd-search-in { height: 44px; }
  .vd-btn.icon { min-width: 2.6rem; }
}
.vd-cap { margin: .45rem 0 0; font-size: .875rem; line-height: 1.6; text-shadow: 0 1px 3px rgba(0, 0, 0, .4); word-break: break-word; }
.vd-cap .tag { color: #fff; font-weight: 600; cursor: pointer; }
.vd-cap .tag:hover { color: var(--vd-cyan); }
.vd-cap .at { color: var(--vd-cyan); cursor: pointer; }
.vd-music { display: flex; align-items: center; gap: .4rem; margin-top: .5rem; font-size: .8125rem; opacity: .95; }
.vd-music .marq { max-width: 62%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.vd-loc { display: inline-flex; align-items: center; gap: .25rem; margin-top: .4rem; font-size: .75rem; opacity: .85; }

/* 进度条 + 播放控件（叠在视频上） */
.vd-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 14px; z-index: 9;
  cursor: pointer; display: flex; align-items: flex-end;
}
.vd-progress .track { width: 100%; height: 3px; background: rgba(255, 255, 255, .28); transition: height .15s; }
.vd-progress:hover .track { height: 5px; }
.vd-progress .fill { height: 100%; width: 0; background: var(--vd-brand); position: relative; }
.vd-progress .fill::after {
  content: ''; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  border-radius: 50%; background: #fff; opacity: 0; transition: opacity .15s;
}
.vd-progress:hover .fill::after { opacity: 1; }
.vd-ctl {
  position: absolute; left: 0; right: 0; bottom: 3px; z-index: 9;
  display: flex; align-items: center; gap: .5rem; padding: 0 10px 8px;
  color: #fff; opacity: 0; transition: opacity .2s; pointer-events: none;
}
/* 控制条：鼠标在画面上、画面暂停、或刚动过鼠标（JS 加的 ctl-on）时出现。
   加 .vd-item:hover 与 ctl-on 是为了触屏笔记本/触控笔这种 :hover 不灵的设备，
   否则用户会觉得"按钮点不动"。 */
.vd-item:hover .vd-ctl, .vd-media:hover .vd-ctl, .vd-media.paused .vd-ctl, .vd-media.ctl-on .vd-ctl { opacity: 1; pointer-events: auto; }
.vd-ctl button { border: 0; background: none; color: #fff; cursor: pointer; display: grid; place-items: center; padding: 2px; border-radius: 4px; }
.vd-ctl button:hover { background: rgba(255, 255, 255, .16); }
.vd-ctl .time { font-size: .78rem; font-variant-numeric: tabular-nums; }
.vd-ctl .sp { margin-left: auto; }
.vd-ctl .rate {
  border: 0; background: rgba(255, 255, 255, .16); color: #fff; border-radius: 4px;
  padding: .1rem .35rem; font-size: .78rem; cursor: pointer;
}
.vd-vol { display: flex; align-items: center; gap: .3rem; }
.vd-vol input { width: 0; opacity: 0; transition: width .2s, opacity .2s; accent-color: var(--vd-brand); }
.vd-vol:hover input { width: 72px; opacity: 1; }
.vd-auto { display: flex; align-items: center; gap: .3rem; font-size: .78rem; cursor: pointer; }

/* ---------- 电脑版：视频下方信息 + 右侧评论 ---------- */
.vd-feedwrap { display: flex; height: 100%; min-height: 0; }
.vd-stage { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.vd-cmts {
  width: var(--vd-cmts); flex: 0 0 var(--vd-cmts); border-left: 1px solid var(--vd-line-2);
  display: flex; flex-direction: column; min-height: 0; background: var(--vd-bg);
}
.vd-cmts .head { padding: .8rem 1rem; font-weight: 600; border-bottom: 1px solid var(--vd-line-2); display: flex; align-items: center; gap: .4rem; }
.vd-cmts .head .sp { margin-left: auto; font-weight: 400; font-size: .75rem; color: var(--vd-text-4); }
.vd-cmts .list { flex: 1 1 auto; overflow: auto; padding: .6rem 1rem 1rem; min-height: 0; }
.vd-cmts .send { border-top: 1px solid var(--vd-line-2); padding: .7rem 1rem; }
.vd-cmts-empty { color: var(--vd-text-4); text-align: center; padding: 2.5rem 0; font-size: .875rem; }

/* ---------- 评论 ---------- */
.vd-cmt { display: flex; gap: .6rem; padding: .55rem 0; }
.vd-cmt .av { width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto; overflow: hidden; background: var(--vd-bg-3); cursor: pointer; }
.vd-cmt .av img { width: 100%; height: 100%; object-fit: cover; }
.vd-cmt .bd { min-width: 0; flex: 1 1 auto; }
.vd-cmt .nm { font-size: .8125rem; color: var(--vd-text-3); cursor: pointer; }
.vd-cmt .nm b { color: var(--vd-text-2); font-weight: 500; }
.vd-cmt .tx { font-size: .875rem; line-height: 1.6; margin: .15rem 0; word-break: break-word; white-space: pre-wrap; }
.vd-cmt .mt { display: flex; align-items: center; gap: .9rem; font-size: .75rem; color: var(--vd-text-4); }
.vd-cmt .mt button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0; }
.vd-cmt .mt button:hover { color: var(--vd-text-2); }
.vd-cmt .mt .lk { display: inline-flex; align-items: center; gap: .2rem; }
.vd-cmt .mt .lk.on { color: var(--vd-brand); }
.vd-cmt .mt .lk.on svg { fill: currentColor; }
.vd-replies { margin-top: .3rem; padding-left: .5rem; border-left: 2px solid var(--vd-line-2); }
.vd-reply-box { display: flex; gap: .45rem; margin-top: .4rem; }
.vd-reply-box .vd-input { height: 32px; padding: .2rem .55rem; font-size: .8125rem; }
.vd-send-row { display: flex; align-items: flex-end; gap: .5rem; }
.vd-send-row .vd-area { min-height: 40px; max-height: 110px; border-radius: 8px; }
.vd-emoji { display: flex; gap: .15rem; margin-top: .4rem; flex-wrap: wrap; }
.vd-emoji button { border: 0; background: none; font-size: 1.05rem; cursor: pointer; padding: .1rem .2rem; border-radius: 4px; line-height: 1; }
.vd-emoji button:hover { background: var(--vd-hover); }

.vd-actions { display: none; }   /* 手机上用右侧竖排操作栏，横向胶囊只在电脑/平板上出现 */

/* 缓冲中提示（卡顿时给个明确反馈，没有任何弹窗） */
.vd-buf {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 11;
  display: none; flex-direction: column; align-items: center; gap: .5rem;
  color: #fff; font-size: .78rem; pointer-events: none; text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}
.vd-item.buffering .vd-buf { display: flex; }
.vd-buf .spin {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .3); border-top-color: #fff;
  animation: vd-spin .8s linear infinite;
}
/* 下载"带片尾版本"时的转圈（弹窗里用，颜色跟着主题） */
.vd-dl-box .spin {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--vd-line); border-top-color: var(--vd-brand);
  animation: vd-spin .8s linear infinite;
}
/* 弱网停在封面上时，明确提示"点一下播放" */
.vd-item.weak-hold .vd-play-big { opacity: 1; }

/* 发布页的上传进度：阶段指示 + 进度条 + 速度/剩余时间 */
.vd-up {
  margin-top: 12px; padding: .7rem .8rem; border: 1px solid var(--vd-line-2);
  border-radius: var(--vd-radius); background: var(--vd-bg-2);
}
.vd-up-stages { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; margin-bottom: .6rem; }
.vd-up-stages span {
  font-size: .74rem; color: var(--vd-text-3); padding: .15rem .5rem; border-radius: 999px;
  background: var(--vd-bg-3); white-space: nowrap; transition: color .2s, background .2s;
}
.vd-up-stages span.on { background: var(--vd-brand); color: #fff; font-weight: 600; }
.vd-up-stages span.ok { background: rgba(18, 183, 106, .14); color: #12b76a; }
.vd-up-stages i { flex: 1 1 10px; min-width: 10px; height: 1px; background: var(--vd-line); }
.vd-up .vd-prog { height: 8px; }
.vd-up-stats { display: flex; align-items: center; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
.vd-up-pct { font-size: .95rem; font-variant-numeric: tabular-nums; min-width: 3.2rem; }
.vd-up-info { font-size: .78rem; color: var(--vd-text-3); flex: 1 1 auto; }
.vd-up-stats .vd-btn { flex: 0 0 auto; }

/* ---------- 封面网格（收藏 / 赞过 / 观看历史 / 作品） ---------- */
.vd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.vd-tile { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--vd-bg-3); cursor: pointer; }
.vd-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease, ease); }
.vd-tile:hover img { transform: scale(1.05); }
.vd-tile .ov { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .55)); opacity: 0; transition: opacity .2s; }
.vd-tile:hover .ov { opacity: 1; }
.vd-tile .cnt { position: absolute; left: 8px; bottom: 7px; color: #fff; font-size: .75rem; display: flex; align-items: center; gap: .25rem; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.vd-tile .cp { position: absolute; left: 8px; right: 8px; bottom: 26px; color: #fff; font-size: .78rem; line-height: 1.4; max-height: 2.8em; overflow: hidden; opacity: 0; transition: opacity .2s; }
.vd-tile:hover .cp { opacity: 1; }
.vd-tile .top { position: absolute; right: 6px; top: 6px; display: flex; gap: .3rem; opacity: 0; transition: opacity .2s; }
.vd-tile:hover .top { opacity: 1; }
.vd-tile .top button {
  width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff;
  display: grid; place-items: center; cursor: pointer;
}
.vd-empty { text-align: center; color: var(--vd-text-4); padding: 3.5rem 1rem; }
.vd-empty .ic { width: 64px; height: 64px; margin: 0 auto .8rem; border-radius: 50%; background: var(--vd-bg-3); display: grid; place-items: center; }
.vd-empty b { display: block; color: var(--vd-text-3); font-weight: 500; margin-bottom: .3rem; }
.vd-more { text-align: center; padding: 1.2rem 0; }

/* ---------- 个人主页 ---------- */
.vd-prof { position: relative; }
.vd-banner {
  height: 150px; border-radius: 0 0 var(--vd-radius) var(--vd-radius);
  background: linear-gradient(120deg, #25f4ee22, #fe2c5522 55%, #1618230d), var(--vd-bg-2);
  position: relative; overflow: hidden;
}
.vd-banner::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 120% at 20% 0%, rgba(254, 44, 85, .18), transparent 60%),
              radial-gradient(50% 100% at 85% 20%, rgba(37, 244, 238, .22), transparent 65%);
}
.vd-prof-main { display: flex; gap: 1.1rem; padding: 0 22px; margin-top: -46px; position: relative; }
.vd-prof-av { width: 92px; height: 92px; border-radius: 50%; border: 4px solid var(--vd-bg); overflow: hidden; background: var(--vd-bg-3); flex: 0 0 auto; box-shadow: var(--vd-shadow); }
.vd-prof-av img { width: 100%; height: 100%; object-fit: cover; }
.vd-prof-info { flex: 1 1 auto; min-width: 0; padding-top: 52px; }
.vd-prof-info h1 { margin: 0; font-size: 1.35rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; }
.vd-prof-id { display: flex; align-items: center; gap: .35rem; font-size: .78rem; color: var(--vd-text-4); margin-top: .35rem; }
.vd-prof-id button { border: 0; background: none; color: var(--vd-text-4); cursor: pointer; padding: 0; }
.vd-prof-id button:hover { color: var(--vd-brand); }
.vd-prof-bio { color: var(--vd-text-2); font-size: .875rem; margin: .5rem 0 0; white-space: pre-wrap; }
.vd-prof-acts { display: flex; gap: .5rem; margin-top: .8rem; flex-wrap: wrap; }
.vd-prof-stat { display: flex; gap: 1.6rem; margin-top: .8rem; }
.vd-prof-stat button { border: 0; background: none; cursor: pointer; text-align: left; padding: 0; color: var(--vd-text-3); font-size: .8125rem; }
.vd-prof-stat b { display: block; color: var(--vd-text); font-size: 1.05rem; font-weight: 700; }
.vd-prof-tabs { display: flex; gap: 1.4rem; padding: 0 22px; margin: 1.4rem 0 1rem; border-bottom: 1px solid var(--vd-line-2); }
.vd-prof-tabs button {
  border: 0; background: none; cursor: pointer; padding: .5rem 0; color: var(--vd-text-3); font-size: .95rem;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.vd-prof-tabs button.on { color: var(--vd-text); font-weight: 600; border-bottom-color: var(--vd-brand); }
.vd-prof-body { padding: 0 22px 40px; }

/* ---------- 搜索页 ---------- */
.vd-srch-video { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.vd-scard { cursor: pointer; }
.vd-scard .th { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--vd-bg-3); }
.vd-scard .th img { width: 100%; height: 100%; object-fit: cover; }
.vd-scard .th .cnt { position: absolute; left: 8px; bottom: 7px; color: #fff; font-size: .75rem; display: flex; align-items: center; gap: .25rem; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.vd-scard .tt { margin-top: .45rem; font-size: .875rem; line-height: 1.5; max-height: 3em; overflow: hidden; }
.vd-scard .au { display: flex; align-items: center; gap: .35rem; margin-top: .35rem; font-size: .78rem; color: var(--vd-text-3); }
.vd-scard .au img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.vd-urow { display: flex; align-items: center; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--vd-line-2); }
.vd-urow .av { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--vd-bg-3); flex: 0 0 auto; cursor: pointer; }
.vd-urow .av img { width: 100%; height: 100%; object-fit: cover; }
.vd-urow .bd { min-width: 0; flex: 1 1 auto; }
.vd-urow .bd b { font-size: .95rem; cursor: pointer; }
.vd-urow .bd p { margin: .2rem 0 0; font-size: .8125rem; color: var(--vd-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-urow .bd .st { font-size: .75rem; color: var(--vd-text-4); margin-top: .2rem; }
.vd-hot { display: flex; flex-wrap: wrap; gap: .5rem; }
.vd-hot button {
  border: 0; background: var(--vd-bg-3); color: var(--vd-text-2); border-radius: 999px;
  padding: .35rem .8rem; font-size: .8125rem; cursor: pointer;
}
.vd-hot button:hover { background: var(--vd-brand-soft); color: var(--vd-brand); }

/* ---------- 发布页 ---------- */
.vd-pub { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 22px; align-items: start; }
.vd-pub-card { background: var(--vd-bg-2); border: 1px solid var(--vd-line-2); border-radius: var(--vd-radius); padding: 14px; }
.vd-pub h3 { margin: 0 0 .7rem; font-size: .95rem; display: flex; align-items: center; gap: .4rem; }
.vd-pub h3 .n { width: 20px; height: 20px; border-radius: 50%; background: var(--vd-brand); color: #fff; font-size: .7rem; display: grid; place-items: center; }
.vd-drop {
  border: 1.5px dashed var(--vd-line); border-radius: var(--vd-radius); background: var(--vd-bg);
  padding: 28px 16px; text-align: center; cursor: pointer; transition: border-color .18s, background .18s;
}
.vd-drop:hover, .vd-drop.over { border-color: var(--vd-brand); background: var(--vd-brand-soft); }
.vd-drop .ic { width: 52px; height: 52px; margin: 0 auto .7rem; border-radius: 50%; background: var(--vd-bg-3); display: grid; place-items: center; color: var(--vd-text-3); }
.vd-drop b { display: block; font-size: .9rem; }
.vd-drop span { font-size: .75rem; color: var(--vd-text-4); }
.vd-prev-wrap { position: relative; border-radius: var(--vd-radius); overflow: hidden; background: #000; aspect-ratio: 9 / 16; max-height: 420px; }
.vd-prev-wrap video { width: 100%; height: 100%; object-fit: contain; display: block; }
.vd-fileline {
  display: flex; align-items: center; gap: .5rem; margin-top: .7rem; font-size: .8125rem;
  background: var(--vd-bg); border: 1px solid var(--vd-line-2); border-radius: 8px; padding: .5rem .6rem;
}
.vd-fileline .nm { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-fileline button { border: 0; background: none; color: var(--vd-text-4); cursor: pointer; }
.vd-fileline button:hover { color: var(--vd-brand); }
/* 特邀账号：发布页的额度提示（不限大小）用品牌色点出来 */
#vdLimitHint.vd-inv {
  display: inline-block; color: var(--vd-brand); font-weight: 600;
  background: var(--vd-brand-soft); border-radius: 999px; padding: .18rem .6rem;
}

/* 蓝标认证：短视频页的认证徽标与认证详情 */
.vd-vf {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.05em; height: 1.05em; margin-left: .22em; vertical-align: -.12em;
  flex: 0 0 auto; line-height: 0;
}
.vd-vf svg { width: 100%; height: 100%; display: block; }
.vd-vf svg .st { fill: #1d9bf0; }
.vd-vf svg .tk { fill: #fff; }
.vd-vf-line {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: .35rem;
  font-size: .78rem; color: var(--vd-text-3);
  background: rgba(29, 155, 240, .12); border: 1px solid rgba(29, 155, 240, .4);
  padding: .22rem .6rem; border-radius: 999px; margin: .1rem 0 .55rem;
}
.vd-vf-line svg { width: 1em; height: 1em; display: block; }
.vd-vf-line svg .st { fill: #1d9bf0; }
.vd-vf-line svg .tk { fill: #fff; }
.vd-vf-line b { color: #1d9bf0; font-weight: 600; }
.vd-covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; }
.vd-covers .cell { position: relative; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: var(--vd-bg-3); cursor: pointer; border: 2px solid transparent; }
.vd-covers .cell img { width: 100%; height: 100%; object-fit: cover; }
.vd-covers .cell.on { border-color: var(--vd-brand); }
.vd-covers .cell.on::after {
  content: '✓'; position: absolute; right: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--vd-brand); color: #fff; font-size: .7rem; display: grid; place-items: center;
}
.vd-covers .cell.up { display: grid; place-items: center; color: var(--vd-text-4); font-size: .7rem; text-align: center; border: 1px dashed var(--vd-line); }
.vd-field { margin-top: 12px; }
.vd-field > label { display: block; font-size: .8125rem; color: var(--vd-text-2); margin-bottom: .35rem; }
.vd-count { text-align: right; font-size: .72rem; color: var(--vd-text-4); margin-top: .25rem; }
.vd-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .45rem; }
.vd-chips button {
  border: 1px solid var(--vd-line-2); background: var(--vd-bg); color: var(--vd-text-2);
  border-radius: 999px; padding: .22rem .65rem; font-size: .78rem; cursor: pointer;
}
.vd-chips button:hover { border-color: var(--vd-brand); color: var(--vd-brand); }
.vd-chips button.on { border-color: var(--vd-brand); color: var(--vd-brand); background: var(--vd-brand-soft); font-weight: 600; }
.vd-radios { display: grid; gap: .5rem; }
.vd-radio {
  display: flex; align-items: flex-start; gap: .6rem; padding: .6rem .7rem; border-radius: 9px;
  border: 1px solid var(--vd-line-2); background: var(--vd-bg); cursor: pointer;
}
.vd-radio:hover { border-color: var(--vd-line); }
.vd-radio input { margin: .2rem 0 0; accent-color: var(--vd-brand); }
.vd-radio b { display: block; font-size: .875rem; font-weight: 600; }
.vd-radio span { font-size: .75rem; color: var(--vd-text-4); }
.vd-radio.on { border-color: var(--vd-brand); background: var(--vd-brand-soft); }
.vd-row-sw { display: flex; align-items: center; gap: .6rem; padding: .55rem 0; }
.vd-row-sw .tx { flex: 1 1 auto; }
.vd-row-sw .tx b { display: block; font-size: .875rem; font-weight: 500; }
.vd-row-sw .tx span { font-size: .75rem; color: var(--vd-text-4); }
.vd-pub-foot { display: flex; align-items: center; gap: .6rem; margin-top: 16px; flex-wrap: wrap; }
.vd-pub-foot .sp { margin-left: auto; }
.vd-bar-box { margin-top: 10px; }
.vd-prog { height: 6px; border-radius: 3px; background: var(--vd-bg-3); overflow: hidden; }
.vd-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--vd-brand), #ff6b8a); transition: width .2s; }
.vd-hint-ok { color: #12b76a; font-size: .78rem; }
.vd-hint-bad { color: var(--vd-brand); font-size: .78rem; }

/* ---------- 私信 ---------- */
.vd-msgwrap { display: flex; height: 100%; min-height: 0; }
.vd-chats { width: 320px; flex: 0 0 320px; border-right: 1px solid var(--vd-line-2); overflow: auto; }
.vd-chats .ci { display: flex; gap: .7rem; padding: .75rem 1rem; cursor: pointer; align-items: center; }
.vd-chats .ci:hover { background: var(--vd-hover); }
.vd-chats .ci.on { background: var(--vd-hover); }
.vd-chats .ci .av { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--vd-bg-3); flex: 0 0 auto; }
.vd-chats .ci .av img { width: 100%; height: 100%; object-fit: cover; }
.vd-chats .ci .bd { min-width: 0; flex: 1 1 auto; }
.vd-chats .ci .bd b { font-size: .875rem; }
.vd-chats .ci .bd p { margin: .15rem 0 0; font-size: .78rem; color: var(--vd-text-4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-chats .ci .bd .t { font-size: .7rem; color: var(--vd-text-4); }
.vd-chats .ci .un { min-width: 18px; height: 18px; border-radius: 9px; background: var(--vd-brand); color: #fff; font-size: .68rem; display: grid; place-items: center; padding: 0 5px; }
.vd-chat { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.vd-chat .hd { padding: .7rem 1rem; border-bottom: 1px solid var(--vd-line-2); display: flex; align-items: center; gap: .6rem; }
.vd-chat .hd img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.vd-chat .lst { flex: 1 1 auto; overflow: auto; padding: 1rem; min-height: 0; }
.vd-chat .snd { display: flex; gap: .5rem; padding: .7rem 1rem; border-top: 1px solid var(--vd-line-2); }
.vd-bub { display: flex; margin-bottom: .6rem; }
.vd-bub.mine { justify-content: flex-end; }
.vd-bub .b { max-width: 74%; background: var(--vd-bg-3); padding: .45rem .7rem; border-radius: 10px; font-size: .875rem; line-height: 1.6; word-break: break-word; white-space: pre-wrap; }
.vd-bub.mine .b { background: var(--vd-brand); color: #fff; }
.vd-bub .tm { font-size: .68rem; color: var(--vd-text-4); align-self: flex-end; margin: 0 .3rem .15rem; }

/* ---------- 抽屉 / 弹层 / 提示 ---------- */
/* 弹层在 .vd-app 外面，颜色要自己从主题变量取，否则深色模式下会变成"深底深字"看不见 */
.vd-sheet, .vd-menu { color: var(--vd-text); }
.vd-sheet { position: fixed; inset: 0; z-index: 60; display: none; }
.vd-sheet.open { display: block; }
.vd-sheet .mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); animation: vd-fade .2s var(--ease, ease); }
.vd-sheet .panel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 32px)); max-height: min(80vh, 720px);
  background: var(--vd-bg); border-radius: 14px; box-shadow: var(--vd-shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  animation: vd-pop .22s var(--ease, ease);
}
.vd-sheet .panel.wide { width: min(760px, calc(100vw - 32px)); }
.vd-sheet .sh { display: flex; align-items: center; gap: .5rem; padding: .9rem 1rem; border-bottom: 1px solid var(--vd-line-2); font-weight: 600; }
.vd-sheet .sh button { margin-left: auto; border: 0; background: none; cursor: pointer; color: var(--vd-text-3); display: grid; place-items: center; }
.vd-sheet .sb { padding: 1rem; overflow: auto; min-height: 0; }
@keyframes vd-fade { from { opacity: 0; } }
@keyframes vd-pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.98); } }

.vd-menu { position: fixed; z-index: 70; background: var(--vd-bg); border: 1px solid var(--vd-line); border-radius: 10px; box-shadow: var(--vd-shadow-lg); padding: .25rem; min-width: 150px; }
.vd-menu button { display: flex; align-items: center; gap: .5rem; width: 100%; border: 0; background: none; text-align: left; padding: .5rem .6rem; border-radius: 7px; cursor: pointer; font-size: .875rem; }
.vd-menu button:hover { background: var(--vd-hover); }
.vd-menu button.danger { color: var(--vd-brand); }
.vd-menu .sep { height: 1px; background: var(--vd-line-2); margin: .25rem 0; }

.vd-toast {
  position: fixed; left: 50%; bottom: 12%; transform: translate(-50%, 12px); z-index: 90;
  background: rgba(22, 24, 35, .92); color: #fff; padding: .55rem .95rem; border-radius: 8px;
  font-size: .875rem; opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s; max-width: 80vw; text-align: center;
}
.vd-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 关注/粉丝列表 */
.vd-ulist .vd-urow:last-child { border-bottom: 0; }

/* ---------- 底部标签栏（手机） ---------- */
.vd-tabbar {
  display: none; position: absolute; left: 0; right: 0; bottom: 0; z-index: 40;
  height: calc(52px + env(safe-area-inset-bottom, 0px));
  height: calc(var(--vd-tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--vd-bg); border-top: 1px solid var(--vd-line-2);
  align-items: center; justify-content: space-around;
}
.vd-tabbar a, .vd-tabbar button {
  border: 0; background: none; cursor: pointer; color: var(--vd-text-4);
  display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem;
  flex: 1 1 0; padding: .35rem 0; position: relative;
}
.vd-tabbar .on { color: var(--vd-text); }
.vd-tabbar .plus-btn { flex: 0 0 auto; padding: 0; }
.vd-tabbar .plus-btn i {
  width: 42px; height: 28px; border-radius: 8px; background: var(--vd-brand); display: grid; place-items: center; color: #fff;
  box-shadow: 0 4px 12px -4px rgba(254, 44, 85, .8);
}
.vd-tabbar .badge { position: absolute; top: 2px; right: 26%; min-width: 16px; height: 16px; border-radius: 8px; background: var(--vd-brand); color: #fff; font-size: .62rem; display: grid; place-items: center; padding: 0 4px; }

/* ==========================================================================
   自适应：以 1024px 为界
     · ≥1024px 电脑版：左侧栏 + 右侧评论面板 + 视频下方文案与横向胶囊
     · <1024px 手机/平板：沉浸式全屏流（右侧竖排操作栏、底部标签栏、评论走抽屉）
   中间不再有"半吊子"的平板形态，避免平板上出现电脑版按钮又点不到评论区。
   ========================================================================== */
@media (max-width: 1023px) {
  .vd-app { --vd-top: 52px; }
  .vd-side { display: none; }
  .vd-head { padding: 0 10px; gap: .5rem; }
  /* 手机端触控目标：苹果建议 44×44，安卓 48；底栏项、返回、发布、头像、静音都按这个来。
     2026-10-04 用户报「手机端适配差」，量下来这些普遍只有 28–36 高。 */
  .vd-head-back { display: inline-flex; }
  .vd-head .vd-btn { min-height: 44px; }
  .vd-head .vd-btn.icon { width: 44px; height: 44px; }
  /* min-width:0 是关键：flex 项默认按内容最小宽度撑开，而 <input> 的默认 size 有 ~199px，
     于是窄屏上搜索框把右侧那一簇（发布 + 头像）挤出屏幕（360 宽时溢出 37px）。 */
  .vd-search { flex: 1 1 auto; min-width: 0; }
  .vd-search-in { height: 40px; min-width: 0; }
  .vd-head-av { width: 40px; height: 40px; }
  .vd-tabbar { display: flex; align-items: stretch; }
  .vd-tabbar a, .vd-tabbar button { min-height: 44px; justify-content: center; }
  .vd-tabbar .plus-btn { min-width: 44px; min-height: 44px; }
  .vd-tabbar .plus-btn i { width: 46px; height: 32px; }
  .vd-sound { min-height: 44px; padding: .3rem .8rem; }
  .vd-bottom .who .fl { min-height: 40px; padding: 0 .9rem; }
  .vd-body-scroll { padding-bottom: calc(var(--vd-tabbar-h) + env(safe-area-inset-bottom, 0px)); }
  .vd-cmts { display: none; }                      /* 评论一律走底部抽屉 */
  .vd-actions { display: none !important; }        /* 横向胶囊是电脑版的东西 */
  .vd-ctl { display: none !important; }            /* 手机上点画面就能暂停/播放，不要控制条 */
  .vd-feedwrap { display: block; }
  .vd-stage { height: 100%; }
  .vd-feed { height: 100%; }
  .vd-rail { right: 8px; bottom: 150px; gap: .55rem; }
  .vd-rail .it .ic { width: 42px; height: 42px; }
  .vd-rail .it b { font-size: .72rem; }
  .vd-rail .disc { width: 42px; height: 42px; border-width: 5px; }
  .vd-rail .av, .vd-rail .av img { width: 44px; height: 44px; }
  .vd-bottom { padding: 40px 70px calc(20px + env(safe-area-inset-bottom, 0px)) 12px; }
  .vd-cap { font-size: .9rem; max-height: 4.8em; overflow: hidden; }
  .vd-sound { display: inline-flex; }
  .vd-page { padding: 14px 14px 30px; }
  .vd-page-head { flex-wrap: wrap; gap: .5rem; }
  .vd-prof-main { padding: 0 14px; margin-top: -40px; }
  .vd-prof-av { width: 76px; height: 76px; border-width: 3px; }
  .vd-prof-info { padding-top: 44px; }
  .vd-prof-stat { gap: 1.1rem; flex-wrap: wrap; }
  .vd-prof-tabs { padding: 0 14px; gap: 1.1rem; }
  .vd-prof-body { padding: 0 14px 30px; }
  .vd-banner { height: 116px; border-radius: 0; }
  .vd-grid { grid-template-columns: repeat(3, 1fr); gap: 3px; }
  .vd-tile { border-radius: 4px; }
  .vd-srch-video { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .vd-pub { grid-template-columns: 1fr; gap: 14px; }
  .vd-pub-side { max-width: 460px; margin: 0 auto; width: 100%; }
  .vd-prev-wrap { max-height: 320px; }
  .vd-chats { width: 100%; flex: 1 1 auto; border-right: 0; }
  .vd-msgwrap.chatting .vd-chats { display: none; }
  .vd-msgwrap:not(.chatting) .vd-chat { display: none; }
  .vd-cmt .tx { font-size: .9rem; }
  .vd-input, .vd-area { font-size: 1rem; }   /* 不小于 16px，避免 iOS 聚焦时自动放大 */
  .vd-rail .it { padding: .1rem 0; }         /* 点按区域更大 */
  .vd-sheet .panel {
    left: 0; right: 0; bottom: 0; top: auto; transform: none; width: 100%;
    max-height: 86vh; border-radius: 16px 16px 0 0; animation: vd-up .24s var(--ease, ease);
  }
  .vd-sheet .sb { padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); }
  @keyframes vd-up { from { transform: translateY(14%); opacity: .6; } }

  /* ---- 沉浸式：视频流页把顶栏与底部标签栏也压暗，和画面连成一片（抖音手机版的样子） ---- */
  body.vd-immersive, body.vd-immersive .vd-app, body.vd-immersive .vd-body-scroll { background: #000; }
  body.vd-immersive .vd-head {
    background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.15));
    border-bottom-color: transparent; color: #fff; backdrop-filter: blur(8px);
  }
  body.vd-immersive .vd-search-in { background: rgba(255,255,255,.16); }
  body.vd-immersive .vd-search-in input { color: #fff; }
  body.vd-immersive .vd-search-in input::placeholder { color: rgba(255,255,255,.62); }
  body.vd-immersive .vd-search-in svg, body.vd-immersive .vd-search-in .clear { color: rgba(255,255,255,.78); }
  body.vd-immersive .vd-head .vd-btn.ghost { color: #fff; border-color: rgba(255,255,255,.22); }
  body.vd-immersive .vd-head-av { box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
  body.vd-immersive .vd-tabbar {
    background: rgba(0,0,0,.66); border-top-color: rgba(255,255,255,.12); backdrop-filter: blur(10px);
  }
  body.vd-immersive .vd-tabbar a, body.vd-immersive .vd-tabbar button { color: rgba(255,255,255,.62); }
  body.vd-immersive .vd-tabbar .on { color: #fff; }
  body.vd-immersive .vd-tabbar .plus-btn i { box-shadow: 0 4px 14px -4px rgba(254, 44, 85, .9); }
}

@media (min-width: 1024px) {
  /* 电脑版：视频下方显示作者与文案，右侧竖排操作栏隐藏，改用横向胶囊 */
  .vd-rail { display: none; }
  .vd-feed { background: var(--vd-bg); }
  .vd-item { padding: 14px 18px 16px; justify-content: center; }
  .vd-media { border-radius: var(--vd-radius); overflow: hidden; box-shadow: var(--vd-shadow); }
  .vd-bottom {
    position: static; padding: 12px 2px 0; background: none; color: var(--vd-text);
    pointer-events: auto;
  }
  .vd-bottom .who { color: var(--vd-text); }
  .vd-bottom .who .fl { border-color: var(--vd-line); background: var(--vd-bg-3); color: var(--vd-text-2); }
  .vd-bottom .who .fl.on { color: var(--vd-text-4); background: none; }
  .vd-cap { color: var(--vd-text); text-shadow: none; font-size: .9rem; }
  .vd-cap .tag { color: #3d6aff; }
  .vd-cap .at { color: #3d6aff; }
  .vd-music { color: var(--vd-text-3); }
  .vd-loc { color: var(--vd-text-4); }
  .vd-actions { display: flex; align-items: center; gap: .5rem; margin-top: .7rem; flex-wrap: wrap; }
  .vd-actions .pill {
    display: inline-flex; align-items: center; gap: .35rem; height: 34px; padding: 0 .75rem;
    border-radius: 999px; border: 1px solid var(--vd-line); background: var(--vd-bg);
    color: var(--vd-text-2); cursor: pointer; font-size: .8125rem;
    transition: background .16s, border-color .16s, color .16s, transform .12s;
  }
  .vd-actions .pill:hover { background: var(--vd-hover); }
  .vd-actions .pill:active { transform: scale(.96); }
  .vd-actions .pill.on { color: var(--vd-brand); border-color: rgba(254, 44, 85, .5); }
  .vd-actions .pill.on svg { fill: currentColor; }
  .vd-actions .more { margin-left: auto; }
  .vd-actions .vd-auto { color: var(--vd-text-3); }
}

@media (max-width: 1023px) and (max-height: 480px) {
  /* 手机横屏：竖向空间很紧张，压缩顶栏/标签栏、精简操作栏，把画面留给视频 */
  .vd-app { --vd-top: 44px; --vd-tabbar-h: 46px; }
  .vd-head-right .vd-pub-label { display: none; }
  .vd-head-right .primary { width: 44px; height: 44px; padding: 0; }
  .vd-rail { bottom: 92px; gap: .35rem; }
  .vd-rail .it b { display: none; }
  .vd-rail .it .ic { width: 38px; height: 38px; }
  .vd-rail .av, .vd-rail .av img { width: 38px; height: 38px; }
  .vd-rail .disc { display: none; }
  .vd-bottom { padding: 18px 62px 12px 12px; }
  .vd-cap { max-height: 2.6em; }
  .vd-sound { margin-bottom: .3rem; font-size: .72rem; padding: .22rem .6rem; }
  .vd-music, .vd-loc { display: none; }
}

@media (max-width: 480px) {
  /* 小屏手机：顶栏的"发布视频"只留图标，把宽度让给搜索框（图标态也要够大，44×44） */
  .vd-head-right .vd-pub-label { display: none; }
  .vd-head-right .primary { width: 44px; height: 44px; padding: 0; }
  .vd-rail { bottom: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  .vd-app *, .vd-app *::before, .vd-app *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
