/* 直播详情页（type=zb）：沿用视频页的深色沉浸风格（顶栏、底栏、作者、关注都复用 video.css）
   和视频页不同的是页面可以上下滚：播放区固定 16:9 在上，下面是主播、标题、公告和评论 */

body.lv-page { height: auto; min-height: 100%; overflow: auto; background: #0B0B0C; }
html.vd body.lv-page { overflow-y: auto; }
.lv { padding: calc(48px + env(safe-area-inset-top)) 0 calc(var(--vd-act-h) + env(safe-area-inset-bottom) + 8px); }
.lv .vd-tip { position: fixed; }

/* 顶栏在直播页不浮在画面上，给一个实底，滚动时不会和内容叠在一起 */
.lv-page .vd-bar { background: #0B0B0C; pointer-events: auto; }

/* ===== 播放区 ===== */
.lv-player { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.lv-cover { position: absolute; inset: -30px; background: center / cover no-repeat; filter: blur(26px) brightness(.5) saturate(1.15); transform: scale(1.08); }
.lv-player.is-on .lv-cover { filter: none; inset: 0; transform: none; }
.lv-player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: transparent; }
.lv-player .vd-state { top: 50%; }
.lv-player.paused .vd-play { display: grid; animation: vdPop .18s ease; }
.lv-player.waiting .vd-spin { display: block; }
.lv-player.failed .vd-err { display: block; }
.lv-player.failed .vd-play, .lv-player.failed .vd-spin { display: none; }

/* 未开始 / 暂停 / 已结束：封面压暗 + 居中提示 */
.lv-tip { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--vd-ink-2); text-align: center; }
.lv-tip svg { width: 40px; height: 40px; margin-bottom: 4px; color: var(--vd-ink-3); }
.lv-tip b { font-size: 16px; font-weight: 600; color: #fff; }
.lv-tip span { font-size: 13px; color: var(--vd-ink-3); }

/* 左上角状态角标：直播中红底 + 呼吸点；其余灰底 */
.lv-badge { position: absolute; left: 10px; top: 10px; z-index: 2; display: flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 8px; border-radius: 4px; background: rgba(0, 0, 0, .5); color: #fff; font-size: 12px; font-weight: 600; }
.lv-badge i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .7); }
.lv-badge.s4 { background: var(--brand); }
.lv-badge.s4 i { background: #fff; animation: lvBreath 1.2s ease-in-out infinite; }
@keyframes lvBreath { 50% { opacity: .25; transform: scale(.7); } }
/* 观看人数：跟在角标右边 */
.lv-num { position: absolute; left: 10px; top: 10px; z-index: 1; display: flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px 0 calc(var(--badge-w, 64px) + 6px); border-radius: 4px; background: rgba(0, 0, 0, .45);
  color: var(--vd-ink-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.lv-num svg { width: 13px; height: 13px; }
.lv-num em { font-style: normal; }

/* 开声音 / 全屏 */
.lv-unmute { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px; border-radius: 15px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px; white-space: nowrap;
  animation: lvFadeIn .3s ease; }
.lv-unmute svg { flex: none; width: 16px; height: 16px; }
/* 5 秒后缩成左下角的小喇叭：直接切换，不做宽度过渡（过渡中途文字会和图标叠在一起） */
.lv-unmute.mini { left: 10px; bottom: 10px; transform: none; width: 34px; height: 34px; padding: 0; border-radius: 50%; justify-content: center; font-size: 0; gap: 0; }
@keyframes lvFadeIn { from { opacity: 0; } }
.lv-full { position: absolute; right: 8px; bottom: 8px; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; }
.lv-full svg { width: 16px; height: 16px; }

/* ===== 主播 / 标题 / 公告 ===== */
.lv-body { padding: 14px 16px 0; }
.lv-by { display: flex; align-items: center; gap: 10px; }
.lv-by .vd-author { flex: 1; min-width: 0; }
.lv-by .vd-ava { width: 38px; height: 38px; }
.lv-author-t { display: flex; flex-direction: column; min-width: 0; }
.lv-author-t .vd-name { max-width: 100%; text-shadow: none; }
.lv-author-t small { font-size: 12px; color: var(--vd-ink-3); font-variant-numeric: tabular-nums; }
.lv-by .vd-follow { height: 28px; padding: 0 12px 0 9px; border-radius: 14px; font-size: 13px; }
.lv-by .vd-follow.on { padding: 0 12px; }

.lv-title { margin-top: 14px; font-size: 19px; font-weight: 700; line-height: 1.45; color: #fff; }
.lv-meta { margin-top: 6px; font-size: 13px; color: var(--vd-ink-3); }

.lv-h { font-size: 14px; font-weight: 600; color: #fff; }
.lv-h span { margin-left: 4px; font-weight: 400; color: var(--vd-ink-3); }
.lv-notice { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.lv-notice p:last-child { margin-top: 6px; font-size: 14px; line-height: 1.7; color: #F5B25C; }
.lv-rule { margin-top: 10px; font-size: 12px; line-height: 1.6; color: var(--vd-ink-3); }

/* ===== 评论（深色） ===== */
.lv-cmt { margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.lv-cmt-list { margin-top: 4px; }
.lv-cmt-item { display: flex; gap: 10px; padding: 12px 0; }
.lv-cmt-item + .lv-cmt-item { border-top: 1px solid rgba(255, 255, 255, .06); }
.lv-cmt-ava { flex: none; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: rgba(255, 255, 255, .12);
  display: grid; place-items: center; font-size: 13px; color: var(--vd-ink-2); }
.lv-cmt-ava img { width: 100%; height: 100%; object-fit: cover; }
.lv-cmt-main { flex: 1; min-width: 0; }
.lv-cmt-nick { font-size: 13px; color: var(--vd-ink-3); }
.lv-cmt-msg { margin-top: 4px; font-size: 15px; line-height: 1.6; color: var(--vd-ink); word-break: break-word; }
.lv-cmt-when { margin-top: 6px; font-size: 12px; color: var(--vd-ink-3); }
.lv-empty { display: block; width: 100%; padding: 28px 0 20px; text-align: center; font-size: 13px; color: var(--vd-ink-3); }

/* 底栏：直播页没有「评论」按钮，点赞 / 分享平分右侧 */
.lv-page .vd-act .vd-btn { min-width: 56px; }
.lv-page .vd-act.act-pure .vd-btn { flex: 1; }
