/* 深夜访谈 V4 · 一体化紧耦合极简舞台 ＋ 封面同色环境微光 ＋ 零重复毛玻璃播放条 */
:root {
  color-scheme: dark;
  --bg: #0a0c10;
  --surface: #11151d;
  --surface-2: #181e28;
  --glass: rgba(24, 33, 46, 0.78);
  --glass-pop: rgba(18, 25, 36, 0.95);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --ink: #f3f5f8;
  --ink-2: #9ba5b5;
  --muted: #677182;
  --accent: #e4ac63;
  --accent-live: #fce2b8;
  --accent-wash: rgba(246, 193, 119, 0.11);
  --speaker-a: #8ab8ff;
  --speaker-b: #e6ac65;

  --stage-max: 760px;

  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-y: auto;
}

button,
input {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 2px;
}

.hidden {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 16px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* 封面同色柔和环境微光层（视觉粘合剂，让封面与毛玻璃播放条融为一体） */
.ambient-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient-img {
  position: absolute;
  inset: -15%;
  background-size: cover;
  background-position: center;
  filter: blur(95px) saturate(140%);
  opacity: 0.16;
  transform: scale(1.1);
  transition: background-image 0.6s ease, opacity 0.6s ease;
}

.ambient-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 48%, rgba(10, 12, 16, 0.25) 0%, rgba(10, 12, 16, 0.88) 76%, #0a0c10 100%);
}

/* 极简顶栏 */
.topbar {
  position: relative;
  z-index: 15;
  flex-shrink: 0;
  height: 50px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.85;
  transition: opacity 0.16s ease;
}

.brand:hover {
  opacity: 1;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 2.5px var(--bg);
  border: 1px solid var(--accent);
}

.brand-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* 一体居中主舞台：不设 z-index，避免把 .dock-wrap 与弹层困在 #popoverBackdrop 下方 */
.stage {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: calc(var(--stage-max) + 48px);
  margin: 0 auto;
  padding: 4px 24px max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.stage-head {
  order: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.ep-meta {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.ep-title {
  margin: 0;
  max-width: 720px;
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 标题下方可点击的原链接（箭头紧跟末尾汉字，换行绝不悬空） */
.ep-source-bar {
  max-width: 700px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
  text-align: center;
}

.ep-source-link {
  display: inline;
  color: var(--ink-2);
  padding: 2px 6px;
  border-radius: 6px;
  transition: color 0.16s ease, background 0.16s ease;
}

.ep-source-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.ep-source-link .ext-arrow {
  display: inline-block;
  margin-left: 4px;
  font-size: 11.5px;
  color: var(--accent);
  opacity: 0.88;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.ep-source-link:hover .ext-arrow {
  transform: translate(1px, -1px);
  opacity: 1;
}

.ep-source-sep {
  margin: 0 5px;
  color: var(--muted);
  user-select: none;
}

.archive-notice {
  margin-top: 2px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-2);
}

/* 唯一主展示框（与下方播放条严格同宽对齐） */
.stage-frame {
  order: 2;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(56svh, 460px);
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(17, 21, 29, 0.88);
  border: 1px solid var(--line-strong);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  flex-shrink: 1;
}

/* 右上角唯一极简纸页/封面切换钮 */
.view-toggle-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 20;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(14, 19, 27, 0.74);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f3f5f8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.36);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.view-toggle-btn:hover {
  background: rgba(243, 245, 248, 0.94);
  color: #0a0c10;
  border-color: transparent;
  transform: scale(1.06);
}

.ico-to-cover {
  display: none;
}

body[data-view="text"] .ico-to-text {
  display: none;
}

body[data-view="text"] .ico-to-cover {
  display: block;
}

/* 二态原地切换过渡 */
.pane {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.992);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

body[data-view="cover"] .pane-cover,
body[data-view="text"] .pane-text {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* 态 1：纯净高清封面 */
.pane-cover {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}

.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.pane-cover:hover .cover-img {
  transform: scale(1.018);
}

.cover-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 16, 0.16) 0%, rgba(10, 12, 16, 0) 24%, rgba(10, 12, 16, 0.22) 100%);
  pointer-events: none;
}

.cover-fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--surface);
}

.pane-cover.no-img .cover-img {
  display: none;
}

.pane-cover.no-img .cover-fallback {
  display: flex;
}

.vinyl-ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 0 0 22px var(--bg), inset 0 0 0 23px var(--line);
  position: relative;
}

.vinyl-ring::after {
  content: "";
  position: absolute;
  inset: 36px;
  border-radius: 50%;
  background: var(--accent);
}

.vinyl-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-2);
}

/* ===== 态 2：合并文稿视图 ===== */
.pane-text {
  background: linear-gradient(180deg, rgba(16, 20, 28, 0.96) 0%, rgba(12, 16, 23, 0.98) 100%);
  display: flex;
  flex-direction: column;
}

.doc-header {
  flex-shrink: 0;
  height: 52px;
  padding: 0 58px 0 36px;
  display: flex;
  align-items: center;
  background: rgba(16, 20, 28, 0.96);
  border-bottom: 1px solid var(--line);
  z-index: 12;
}

.doc-chap-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 44px 72px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

.doc-brief {
  padding-bottom: 24px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.brief-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.brief-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.brief-toggle {
  font-size: 12px;
  color: var(--muted);
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  transition: color 0.15s ease, background 0.15s ease;
}

.brief-toggle:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.10);
}

.doc-brief.collapsed {
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.doc-brief.collapsed .brief-head {
  margin-bottom: 0;
}

.doc-brief.collapsed .brief-body {
  display: none;
}

.summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.summary-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.summary-idx {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  padding-top: 3px;
}

.summary-body {
  font-size: 14px;
  line-height: 1.68;
  color: var(--ink-2);
}

.summary-body strong {
  color: var(--ink);
  font-weight: 600;
}

.chap-pills {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chap-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-2);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.chap-chip:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  border-color: var(--line-strong);
}

.chap-chip.active {
  background: var(--accent-wash);
  border-color: rgba(228, 172, 99, 0.42);
  color: var(--accent-live);
}

.chap-chip-ts {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  flex-shrink: 0;
}

.chap-chip-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sources-inline {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
}

.source-link {
  color: var(--ink-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.source-link:hover {
  color: #ffffff;
  border-color: #ffffff;
}

.text-stream {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.chap-divider {
  margin: 10px 0 -2px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent);
}

.chap-divider:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.turn {
  position: relative;
}

.turn-text {
  font-size: 16px;
  line-height: 1.92;
  letter-spacing: 0.02em;
  color: #606a7b;
}

.sent {
  display: inline;
  cursor: pointer;
  border-radius: 5px;
  padding: 2px 2px;
  margin: 0 -2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: color 0.24s ease, font-size 0.24s ease, background-color 0.24s ease, text-shadow 0.24s ease;
}

.sent:hover {
  color: #e6ebf4;
  background-color: rgba(255, 255, 255, 0.07);
}

.turn.past .sent {
  color: #778192;
}

.turn.active .sent.sent-past {
  color: #c8d1de;
}

.sent.sent-active {
  color: var(--accent-live) !important;
  font-size: 18px;
  font-weight: 500;
  background-color: var(--accent-wash);
  padding: 2px 5px;
  margin: 0 -2px;
  text-shadow: 0 0 22px rgba(246, 193, 119, 0.28);
}

.jump-live {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 15;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(22, 30, 42, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(252, 226, 184, 0.35);
  color: var(--accent-live);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  display: none;
}

.jump-live.show {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ===== 实时 2 行字幕预览条（移动端封面正下方显示，桌面端隐藏保持极简） ===== */
.live-caption-bar {
  display: none;
  width: 100%;
  text-align: left;
  flex-shrink: 0;
}

/* ===== 轻交互行：点赞 / 评论 / 收藏 / 分享（桌面端低调置于底栏下，移动端置于标题与播控之间） ===== */
.engage-bar {
  order: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: -6px;
  flex-shrink: 0;
}

.engage-btn {
  position: relative;
  height: 34px;
  min-width: 36px;
  padding: 0 10px;
  border-radius: 999px;
  color: rgba(243, 245, 248, 0.66);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: color 0.16s ease, background 0.16s ease, transform 0.14s ease;
}

.engage-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.engage-btn:active {
  transform: scale(0.92);
}

.engage-btn .ico-solid {
  display: none;
}

.engage-btn.is-active .ico-outline {
  display: none;
}

.engage-btn.is-active .ico-solid {
  display: block;
}

#btnLike.is-active {
  color: #f25c6e;
}

#btnLike.is-active svg {
  animation: popHeart 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

#btnBookmark.is-active {
  color: var(--accent);
}

.engage-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.engage-num:empty {
  display: none;
}

@keyframes popHeart {
  0% { transform: scale(0.8); }
  55% { transform: scale(1.24); }
  100% { transform: scale(1); }
}

/* ===== 紧耦合毛玻璃胶囊播放条（随展示框一起居中，零信息重复） ===== */
.dock-wrap {
  order: 3;
  position: relative;
  width: 100%;
  flex-shrink: 0;
  z-index: 50;
  pointer-events: none;
}

.dock-pill {
  position: relative;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

.dock-transport {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.dock-icon {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: rgba(243, 245, 248, 0.78);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
}

.dock-icon:hover,
.dock-icon.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
}

.skip-num {
  position: absolute;
  font-size: 8.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-top: 1px;
}

.dock-play {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.14s ease, background 0.14s ease;
}

.dock-play:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

.dock-play:active {
  transform: scale(0.95);
}

.ico-pause {
  display: none;
}

body.playing .ico-play {
  display: none;
}

body.playing .ico-pause {
  display: block;
}

/* 中区：仅保留当前章节名 ＋ 超宽进度条与时间（绝不重复大标题与封面） */
.dock-center {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.dock-chap {
  font-size: 12px;
  color: rgba(243, 245, 248, 0.68);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 2px;
}

.dock-scrub-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.time-num {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(243, 245, 248, 0.58);
  font-variant-numeric: tabular-nums;
  min-width: 34px;
}

.time-dur {
  text-align: right;
}

.progress-hit {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 8px 0;
  cursor: pointer;
  touch-action: none;
}

.progress-rail {
  position: relative;
  height: 3.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.20);
  transition: height 0.14s ease;
}

.progress-hit:hover .progress-rail,
.progress-hit.dragging .progress-rail {
  height: 5px;
}

.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: 999px;
  background: #ffffff;
}

.progress-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.progress-dot {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: rgba(10, 12, 16, 0.55);
}

.progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  transform: translate(-50%, -50%) scale(0);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  transition: transform 0.14s ease;
  pointer-events: none;
}

.progress-hit:hover .progress-thumb,
.progress-hit.dragging .progress-thumb {
  transform: translate(-50%, -50%) scale(1);
}

.progress-tip {
  position: absolute;
  top: -22px;
  transform: translateX(-50%);
  padding: 2px 7px;
  border-radius: 6px;
  background: #f3f5f8;
  color: #0a0c10;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.dock-speed-slot,
.dock-menu-slot {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.dock-speed {
  position: relative;
  height: 26px;
  min-width: 46px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background 0.15s ease;
}

.dock-speed:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* ===== 按钮悬停白色提示气泡（图二同款，仅悬停设备显示，弹层打开时不打架） ===== */
@media (hover: hover) and (pointer: fine) {
  .has-tip::after,
  .has-tip::before {
    position: absolute;
    left: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.14s ease, transform 0.14s ease;
    z-index: 80;
  }

  .has-tip::after {
    content: attr(data-tip);
    bottom: calc(100% + 12px);
    transform: translateX(-50%) translateY(4px);
    padding: 6px 11px;
    border-radius: 8px;
    background: #f1f3f7;
    color: #11151d;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
  }

  .has-tip::before {
    content: "";
    bottom: calc(100% + 7px);
    transform: translateX(-50%) translateY(4px) rotate(45deg);
    width: 9px;
    height: 9px;
    border-radius: 1.5px;
    background: #f1f3f7;
  }

  .has-tip:hover:not(.active)::after,
  .has-tip:hover:not(.active)::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  .has-tip:hover:not(.active)::before {
    transform: translateX(-50%) translateY(0) rotate(45deg);
  }

  /* 顶部右上角切换钮气泡朝左下微偏，防止被画框边裁切 */
  .has-tip.tip-bottom::after {
    bottom: auto;
    top: calc(100% + 10px);
    left: auto;
    right: 0;
    transform: translateY(-4px);
  }

  .has-tip.tip-bottom::before {
    bottom: auto;
    top: calc(100% + 6px);
    left: auto;
    right: 12px;
    transform: translateY(-4px) rotate(45deg);
  }

  .has-tip.tip-bottom:hover::after {
    opacity: 1;
    transform: translateY(0);
  }

  .has-tip.tip-bottom:hover::before {
    opacity: 1;
    transform: translateY(0) rotate(45deg);
  }
}

/* ===== 竖向毛玻璃音量调节胶囊（图二同款质感 + 隐形过渡桥防断连） ===== */
.vol-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vol-popover::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  top: 100%;
  height: 18px;
}

.ico-vol-low,
.ico-vol-mute {
  display: none;
}

.vol-wrap[data-vol="low"] .ico-vol-high,
.vol-wrap[data-vol="mute"] .ico-vol-high {
  display: none;
}

.vol-wrap[data-vol="low"] .ico-vol-low {
  display: block;
}

.vol-wrap[data-vol="mute"] .ico-vol-mute {
  display: block;
}

.vol-popover {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  transform: translateX(-50%) translateY(8px) scale(0.96);
  z-index: 60;
  width: 40px;
  height: 152px;
  padding: 16px 0;
  border-radius: 999px;
  background: rgba(30, 40, 54, 0.90);
  backdrop-filter: blur(26px) saturate(145%);
  -webkit-backdrop-filter: blur(26px) saturate(145%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.vol-popover.open {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}

.vol-track-hit {
  position: relative;
  width: 28px;
  height: 100%;
  display: flex;
  justify-content: center;
  cursor: pointer;
  touch-action: none;
}

.vol-rail {
  position: relative;
  width: 4px;
  height: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.vol-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  border-radius: 999px;
  background: #ffffff;
}

.vol-thumb {
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  transform: translate(-50%, 50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  transition: transform 0.12s ease;
  pointer-events: none;
}

.vol-track-hit:hover .vol-thumb,
.vol-track-hit.dragging .vol-thumb {
  transform: translate(-50%, 50%) scale(1.14);
}

/* ===== 弹出浮层 ===== */
.popover-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: none;
}

.popover-backdrop.open {
  display: block;
}

.popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  z-index: 55;
  border-radius: 18px;
  background: var(--glass-pop);
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.popover.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.playlist-drawer {
  position: relative;
  z-index: 55;
  display: grid;
  grid-template-rows: 0fr;
  width: min(400px, 100%);
  margin-left: auto;
  margin-top: 0;
  border-radius: 18px;
  pointer-events: none;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0);
  transition: grid-template-rows 0.24s cubic-bezier(0.22, 1, 0.36, 1), margin-top 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease;
}

.playlist-drawer.open {
  grid-template-rows: 1fr;
  margin-top: 12px;
  pointer-events: auto;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.62);
}

.playlist-drawer-inner {
  min-height: 0;
  overflow: hidden;
  border-radius: 18px;
}

.playlist-popover {
  width: 100%;
  max-height: min(46svh, 340px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: var(--glass-pop);
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.playlist-popover.open {
  opacity: 1;
  transform: translateY(0);
}

.pop-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.pop-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pop-count {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink-2);
}

.pop-sub {
  font-size: 11.5px;
  color: var(--muted);
}

.playlist-rows {
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

.pl-item {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pl-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.pl-item.active {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.14);
}

.pl-thumb {
  width: 56px;
  height: 36px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface);
}

.pl-info {
  flex: 1;
  min-width: 0;
}

.pl-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.pl-badge {
  color: var(--accent);
  font-family: var(--font-sans);
  font-weight: 600;
}

.pl-fav {
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 10.5px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(228, 172, 99, 0.14);
}

.pl-title {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.more-popover {
  right: 40px;
  width: 196px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.more-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  font-size: 13.5px;
  color: var(--ink);
  transition: background 0.15s ease;
}

.more-item:hover {
  background: rgba(255, 255, 255, 0.09);
}

/* 分享卡片弹窗 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(5, 7, 10, 0.76);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.share-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 75;
  width: min(400px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  overflow-y: auto;
  transform: translate(-50%, -48%) scale(0.97);
  padding: 18px;
  border-radius: 18px;
  background: #141922;
  border: 1px solid var(--line-strong);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.share-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.share-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.share-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.share-preview-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0c10;
}

.share-preview-img {
  width: 100%;
  display: block;
}

.share-tip {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.share-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-primary,
.btn-secondary {
  height: 40px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: #f3f5f8;
  color: #0a0c10;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--ink);
}

/* 评论与时间戳笔记弹窗 */
.comment-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 75;
  width: min(440px, calc(100vw - 28px));
  max-height: min(76svh, 580px);
  transform: translate(-50%, -48%) scale(0.97);
  padding: 18px;
  border-radius: 18px;
  background: #141922;
  border: 1px solid var(--line-strong);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.72);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.comment-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.comment-head-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.comment-env-tag {
  font-size: 11px;
  color: var(--muted);
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.comment-list {
  flex: 1;
  min-height: 110px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

.comment-empty {
  margin: auto 0;
  padding: 28px 12px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.comment-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 11.5px;
  color: var(--muted);
}

.comment-meta-left {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.comment-author {
  color: var(--ink-2);
  font-weight: 600;
}

.comment-ts-jump {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(228, 172, 99, 0.13);
}

.comment-ts-jump:hover {
  background: rgba(228, 172, 99, 0.24);
}

.comment-del {
  font-size: 11px;
  color: var(--muted);
  padding: 2px 4px;
}

.comment-del:hover {
  color: #f25c6e;
}

.comment-body {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
  word-break: break-word;
}

.comment-form {
  flex-shrink: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-ts-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
}

.comment-ts-chip input {
  accent-color: var(--accent);
}

.comment-ts-chip em {
  font-style: normal;
  font-family: var(--font-mono);
  color: var(--accent);
}

.comment-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-size: 13.5px;
  outline: none;
}

.comment-input:focus {
  border-color: rgba(228, 172, 99, 0.55);
}

.comment-send {
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  background: #f3f5f8;
  color: #0a0c10;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.comment-send:hover {
  background: #ffffff;
}

.toast {
  position: fixed;
  left: 50%;
  top: 22px;
  z-index: 90;
  transform: translateX(-50%) translateY(-10px);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(243, 245, 248, 0.96);
  color: #0a0c10;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== 手机端（≤ 680px，或竖屏触屏手机误开桌面版 980px 视口兜底）：一屏流式布局 ===== */
@media (max-width: 680px), (hover: none) and (pointer: coarse) and (orientation: portrait) {
  html.vp-mobile-fix body {
    min-height: var(--real-vh, 100svh);
  }

  html.vp-mobile-fix body[data-view="text"]:not(.playlist-open) {
    height: var(--real-vh, 100svh);
  }

  .topbar {
    height: 44px;
    padding: 0 18px;
  }

  .stage {
    padding: 12px 18px max(18px, env(safe-area-inset-bottom));
    gap: 14px;
    justify-content: flex-start;
  }

  /* 1. 封面主展示框置顶（封面态去掉压字右上角钮，轻点封面或字幕直达全文） */
  .stage-frame {
    order: 1;
    border-radius: 16px;
    aspect-ratio: 16 / 9;
    max-height: none;
    flex-shrink: 0;
  }

  body[data-view="cover"] .view-toggle-btn {
    display: none;
  }

  /* 2. 封面正下方：自适应实时字幕窗（按可用高度动态显示 2～6 行，绝不半行截断；打开播放列表自动收拢为 2 行） */
  .live-caption-bar {
    order: 2;
    position: relative;
    flex: 1 1 56px;
    min-height: 56px;
    display: flex;
    align-items: center;
    padding: 4px 0;
    border-radius: 10px;
    transition: opacity 0.16s ease;
  }

  .live-caption-bar:active {
    opacity: 0.72;
  }

  .cap-lines {
    width: 100%;
    max-height: calc(var(--cap-lines-cap, 6) * 28px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: max-height 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .live-caption-bar.has-fade .cap-lines {
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 76%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 76%, transparent 100%);
  }

  .cap-cur {
    font-size: 16px;
    font-weight: 500;
    line-height: 28px;
    color: #f5efe6;
    word-break: break-word;
  }

  .cap-next {
    font-size: 14.5px;
    font-weight: 400;
    line-height: 28px;
    color: rgba(155, 165, 181, 0.62);
    word-break: break-word;
  }

  .cap-next.cap-dim-2 {
    color: rgba(155, 165, 181, 0.44);
  }

  .cap-next.cap-dim-3 {
    color: rgba(155, 165, 181, 0.28);
  }

  .cap-more {
    position: absolute;
    right: 0;
    bottom: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(18, 23, 32, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 11px;
    color: var(--ink-2);
    white-space: nowrap;
    box-shadow: -10px 0 14px rgba(10, 12, 16, 0.82);
  }

  /* 展开播放列表时，字幕区平滑收拢回 2 行，整屏紧致展示列表 */
  body.playlist-open .live-caption-bar {
    flex: 0 0 auto;
    min-height: 56px;
    align-items: flex-start;
    padding: 2px 0;
  }

  body.playlist-open .cap-lines {
    max-height: 56px !important;
    -webkit-mask-image: none;
    mask-image: none;
  }

  body.playlist-open .cap-more {
    bottom: 2px;
  }

  /* 3. 标题与出处下移到字幕区正下方，紧贴轻交互与播控形成底部重心 */
  .stage-head {
    order: 3;
    text-align: left;
    align-items: flex-start;
    gap: 6px;
  }

  .ep-meta {
    font-size: 11.5px;
  }

  .ep-title {
    font-size: 18.5px;
    line-height: 1.36;
    -webkit-line-clamp: 3;
  }

  .ep-source-bar {
    text-align: left;
    font-size: 12.5px;
    line-height: 1.45;
  }

  .ep-source-link {
    padding: 1px 0;
  }

  /* 4. 轻交互行（点赞 / 评论 / 收藏 / 分享）紧跟标题下方，不再出现大片黑洞 */
  .engage-bar {
    order: 4;
    margin-top: 2px;
    justify-content: flex-start;
    gap: 14px;
    padding: 2px 0 0;
  }

  .engage-btn {
    height: 36px;
    min-width: 36px;
    padding: 0 6px;
    color: rgba(243, 245, 248, 0.84);
  }

  .engage-btn svg {
    width: 22px;
    height: 22px;
  }

  .engage-num {
    font-size: 12px;
  }

  /* 5. 底部播控区（紧贴屏幕底部，极简无冗余框，隐藏移动端音量键） */
  .dock-wrap {
    order: 5;
  }

  .vol-wrap {
    display: none !important;
  }

  /* 手机文稿阅读态：标题紧凑置顶 → 全文区拉满 → 轻交互 → 底部播控 */
  body[data-view="text"]:not(.playlist-open) {
    height: 100svh;
    overflow: hidden;
  }

  body[data-view="text"] .stage {
    gap: 10px;
  }

  body[data-view="text"] .live-caption-bar {
    display: none;
  }

  body[data-view="text"] .stage-head {
    order: 1;
    gap: 3px;
  }

  body[data-view="text"] .ep-meta {
    display: none;
  }

  body[data-view="text"] .ep-title {
    font-size: 16.5px;
    -webkit-line-clamp: 1;
  }

  body[data-view="text"] .stage-frame {
    order: 2;
    aspect-ratio: auto;
    flex: 1;
    min-height: 240px;
  }

  body[data-view="text"].playlist-open .stage-frame {
    flex: none;
    height: clamp(260px, 46svh, 400px);
  }

  body[data-view="text"] .engage-bar {
    margin-top: 0;
    padding: 0;
  }

  .view-toggle-btn {
    top: 8px;
    right: 10px;
    width: 32px;
    height: 32px;
  }

  .doc-header {
    height: 46px;
    padding: 0 50px 0 16px;
  }

  .doc-viewport {
    padding: 18px 18px 64px;
  }

  .turn-text {
    font-size: 15.5px;
    line-height: 1.85;
  }

  .sent.sent-active {
    font-size: 17px;
  }

  /* 手机端无框拇指播控：第 1 行通栏细进度条+时间，第 2 行左倍速 / 中大号圆形主控 / 右更多+列表 */
  .dock-pill {
    height: auto;
    border-radius: 0;
    padding: 2px 0 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    box-shadow: none;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas:
      "center center center"
      "speed transport menu";
    align-items: center;
    gap: 10px 6px;
  }

  .dock-center {
    grid-area: center;
    gap: 2px;
  }

  .dock-chap {
    font-size: 11.5px;
    padding-left: 0;
    color: rgba(243, 245, 248, 0.52);
  }

  .dock-scrub-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "bar bar"
      "cur dur";
    gap: 2px 0;
  }

  .progress-hit {
    grid-area: bar;
    padding: 8px 0 5px;
  }

  .time-cur {
    grid-area: cur;
    text-align: left;
  }

  .time-dur {
    grid-area: dur;
    text-align: right;
  }

  .dock-speed-slot {
    grid-area: speed;
    justify-self: start;
  }

  .dock-transport {
    grid-area: transport;
    justify-self: center;
    gap: 20px;
  }

  .dock-menu-slot {
    grid-area: menu;
    justify-self: end;
    gap: 6px;
  }

  .dock-speed {
    min-width: 44px;
    padding: 0 9px;
    font-size: 11.5px;
  }

  .dock-play {
    width: 48px;
    height: 48px;
    border: 1.6px solid rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.06);
  }

  .dock-icon {
    width: 36px;
    height: 36px;
  }

  .more-popover {
    right: 0;
  }

  .comment-modal {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 76svh;
    border-radius: 20px 20px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding: 16px 18px max(18px, env(safe-area-inset-bottom));
    transform: translateY(24px);
  }

  .comment-modal.open {
    transform: translateY(0);
  }
}


/* ===== 顶栏右侧动作胶囊（微信跳浏览器 / 一键存桌面 / 桌面端悬浮窗） ===== */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.top-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(243, 245, 248, 0.86);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.top-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

.top-pill-accent {
  color: #fce2b8;
  background: rgba(228, 172, 99, 0.16);
  border-color: rgba(228, 172, 99, 0.36);
}

.top-pill-accent:hover {
  color: #ffffff;
  background: rgba(228, 172, 99, 0.28);
  border-color: rgba(228, 172, 99, 0.56);
}

/* 微信内顶部轻提示条 */
.wx-banner {
  position: relative;
  z-index: 14;
  width: 100%;
  max-width: calc(var(--stage-max) + 48px);
  margin: 0 auto 4px;
  padding: 0 24px;
}

.wx-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px 9px 14px;
  border-radius: 12px;
  background: rgba(228, 172, 99, 0.13);
  border: 1px solid rgba(228, 172, 99, 0.32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.wx-banner-text {
  font-size: 12.5px;
  line-height: 1.4;
  color: #fce2b8;
}

.wx-banner-ops {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.wx-banner-btn {
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #0b0d11;
  font-size: 11.5px;
  font-weight: 600;
}

.wx-banner-close {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: rgba(252, 226, 184, 0.72);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wx-banner-close:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}

/* ===== 播放列表：日期分组 ＋ 自动连播开关 ＋ 频道/进度徽标 ===== */
.pop-head-left {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.autonext-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  flex-shrink: 0;
  transition: all 0.16s ease;
}

.autonext-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.autonext-toggle.on {
  color: #fce2b8;
  background: rgba(228, 172, 99, 0.14);
  border-color: rgba(228, 172, 99, 0.34);
}

.autonext-toggle.on .autonext-dot {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(228, 172, 99, 0.75);
}

.pl-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 6px 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

.pl-day-header:first-child {
  padding-top: 2px;
}

.pl-day-count {
  font-family: var(--font-sans);
  font-weight: 500;
  color: rgba(155, 165, 181, 0.72);
}

.pl-channel {
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(243, 245, 248, 0.86);
  font-family: var(--font-sans);
  font-size: 10.5px;
}

.pl-tag {
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(228, 172, 99, 0.18);
  color: #fce2b8;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
}

.pl-prog {
  color: rgba(138, 184, 255, 0.88);
  font-family: var(--font-sans);
  font-size: 10.5px;
}

/* ===== 浏览器打开与存桌面引导弹窗 ===== */
.install-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  z-index: 95;
  width: min(440px, calc(100vw - 32px));
  padding: 20px 22px 22px;
  border-radius: 20px;
  background: rgba(18, 24, 34, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.install-modal.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.wx-corner-arrow {
  position: fixed;
  top: 12px;
  right: 18px;
  z-index: 98;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  color: #fce2b8;
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
}

.install-lead {
  margin: 10px 0 14px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.install-steps {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.install-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
}

.install-step-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(228, 172, 99, 0.20);
  color: #fce2b8;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.install-actions {
  display: flex;
  gap: 10px;
}

.install-actions .btn-primary,
.install-actions .btn-secondary {
  flex: 1;
}

@media (max-width: 680px), (hover: none) and (pointer: coarse) and (orientation: portrait) {
  .topbar {
    padding: 0 16px;
  }
  .wx-banner {
    padding: 0 16px;
  }
  .top-pill {
    height: 28px;
    padding: 0 10px;
    font-size: 11.5px;
  }
}
