/* =========================================================
   观看站样式。三套主题只换下面的颜色和字体变量，布局共用。
   ========================================================= */

/* 深色·夜场剧院：丝绒蓝底 + 幕布红；金色只用于会员相关 */
:root, [data-theme="dark"] {
  --bg: #10121c;
  --surface: #181b29;
  --surface-2: #222537;
  --line: #2d3046;
  --text: #f1eee8;
  --muted: #9496ad;
  --accent: #e5484d;
  --accent-ink: #ffffff;
  --accent-soft: rgba(229, 72, 77, .14);
  --vip: #e3b65e;
  --vip-ink: #241a07;
  --vip-soft: rgba(227, 182, 94, .13);
  --free: #6fd39b;
  --danger: #ff6b6b;
  --font-display: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --display-weight: 700;
  --radius: 10px;
  color-scheme: dark;
}

/* 粉色·心动：奶粉底 + 玫瑰色，适合甜宠/恋爱 */
[data-theme="pink"] {
  --bg: #fff6f8;
  --surface: #ffffff;
  --surface-2: #fde9ef;
  --line: #f3d5de;
  --text: #3b2430;
  --muted: #977583;
  --accent: #df4a78;
  --accent-ink: #ffffff;
  --accent-soft: rgba(223, 74, 120, .1);
  --vip: #c4892c;
  --vip-ink: #ffffff;
  --vip-soft: rgba(196, 137, 44, .12);
  --free: #2f9e68;
  --danger: #d43d3d;
  --font-display: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --display-weight: 700;
  --radius: 14px;
  color-scheme: light;
}

/* 古风·朱砂：宣纸底 + 朱砂红 + 宋体标题，适合古装/宫斗 */
[data-theme="warm"] {
  --bg: #efe6d5;
  --surface: #f8f2e6;
  --surface-2: #e6d9c0;
  --line: #d4c1a0;
  --text: #2e231c;
  --muted: #7f6d58;
  --accent: #a8322a;
  --accent-ink: #fff6ea;
  --accent-soft: rgba(168, 50, 42, .1);
  --vip: #a87a26;
  --vip-ink: #fff6ea;
  --vip-soft: rgba(168, 122, 38, .13);
  --free: #3d7a4f;
  --danger: #a8322a;
  --font-display: "Songti SC", "Noto Serif SC", "Source Han Serif SC", STSong, SimSun, serif;
  --display-weight: 900;
  --radius: 4px;
  color-scheme: light;
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.right { text-align: right; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 14px; }
.page { padding-top: 12px; padding-bottom: 24px; min-height: 60vh; }
.page-title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 22px; margin: 6px 0 14px; }

/* ---------- 顶栏 ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 12px; height: 54px; }
.brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; max-width: 42%; }
.brand img { height: 30px; width: auto; max-width: 140px; object-fit: contain; }
.brand-name { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-name.is-placeholder { color: var(--muted); }
.topnav { display: none; }
.topsearch { flex: 1; display: flex; align-items: center; background: var(--surface-2); border-radius: 999px; padding: 0 4px 0 14px; height: 36px; min-width: 0; }
.topsearch input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 14px; }
.topsearch input::placeholder { color: var(--muted); }
.topsearch button { border: 0; background: transparent; color: var(--muted); width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer; }

/* ---------- 底部标签栏（手机）---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 6px; font-size: 11px; color: var(--muted); }
.tab-dot { position: absolute; top: 5px; left: calc(50% + 7px); width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px var(--surface); }
.tabbar a.is-on { color: var(--accent); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); cursor: pointer; font-size: 15px; text-align: center;
}
.btn small { font-size: 12px; color: var(--muted); margin-left: 4px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-primary small { color: inherit; opacity: .75; }
.btn-lg { min-height: 48px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-link { border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 8px; }
[data-theme="warm"] .btn { border-radius: var(--radius); }

/* ---------- 轮播 ---------- */
.carousel { position: relative; margin: 0 -14px 6px; }
.carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; aspect-ratio: 16 / 7; background: var(--surface-2); }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-cap { position: absolute; left: 14px; right: 14px; bottom: 12px; color: #fff; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 18px; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.carousel-dots { position: absolute; right: 14px; bottom: 12px; display: flex; gap: 5px; }
.carousel-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.5); transition: width .2s; }
.carousel-dots i.is-on { width: 16px; background: #fff; }

/* ---------- 公告 ---------- */
.notice-bar { background: var(--accent-soft); color: var(--text); border-radius: var(--radius); padding: 8px 12px; font-size: 13px; margin-bottom: 10px; }
dialog.notice { border: 0; border-radius: 16px; background: var(--surface); color: var(--text); width: min(88vw, 380px); padding: 22px 20px 18px; }
dialog.notice::backdrop { background: rgba(0,0,0,.55); }
dialog.notice h3 { margin: 0 0 10px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 18px; }
.notice-body { color: var(--muted); margin-bottom: 18px; max-height: 50vh; overflow: auto; }
.notice-contact { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--text); font-size: 14px; }
.notice-contact a { color: var(--accent); font-weight: 700; }
.notice-bar .notice-contact { display: inline; margin: 0 0 0 8px; padding: 0; border: 0; font-size: 13px; }
.notice-bar .notice-contact::before { content: "· "; color: var(--muted); }

/* ---------- 货架（首页每个模块）---------- */
.shelf { margin: 18px 0 8px; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.shelf-head h2 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 18px; }
.shelf-head a { color: var(--muted); font-size: 13px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 30%; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px 4px; scroll-padding: 0 14px; }
.rail::-webkit-scrollbar { display: none; }

/* ---------- 海报 ---------- */
.poster { display: block; min-width: 0; }
.poster-img { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.poster-img img { width: 100%; height: 100%; object-fit: cover; }
.poster-blank {
  width: 100%; height: 100%; display: grid; place-items: center; padding: 14px;
  background:
    radial-gradient(120% 80% at 50% 0%, var(--accent-soft), transparent 70%),
    var(--surface-2);
}
.poster-blank span {
  writing-mode: vertical-rl; letter-spacing: .12em; max-height: 100%; overflow: hidden;
  font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(14px, 4.2vw, 22px); color: var(--accent);
}
.poster-eps {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px;
  font-size: 11px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65));
}
.poster-ai { position: absolute; top: 6px; right: 6px; font-size: 10px; line-height: 1; padding: 3px 5px; border-radius: 4px; background: rgba(0,0,0,.45); color: #fff; }
.poster-new { position: absolute; top: 6px; left: 6px; font-size: 10px; line-height: 1; padding: 3px 5px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
/* 角标：原创 + 今日上新，排在左上角 */
.poster-tags { position: absolute; top: 6px; left: 6px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.poster-tags .poster-new { position: static; }
.poster-orig { font-size: 10px; line-height: 1; padding: 3px 5px; border-radius: 4px; background: linear-gradient(135deg, #f6d48b, var(--vip)); color: #2a1d05; font-weight: 700; letter-spacing: .5px; box-shadow: 0 1px 4px rgba(0,0,0,.25); }

/* ---------- 原创专区 ---------- */
.orig-h-ico { display: inline-flex; color: var(--vip); margin-right: 5px; vertical-align: -1px; }
.orig-h-ico .ico-star { width: 16px; height: 16px; }
.orig-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; line-height: 1; padding: 4px 7px; border-radius: 999px;
  background: linear-gradient(135deg, #f6d48b, var(--vip)); color: #2a1d05; text-decoration: none; }
.orig-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 -14px; padding: 0 14px 4px; scroll-padding: 0 14px; }
.orig-rail::-webkit-scrollbar { display: none; }
.orig-rail.is-single { grid-auto-columns: 100%; }
.orig-card { scroll-snap-align: start; display: flex; gap: 12px; padding: 12px; border-radius: calc(var(--radius) + 4px); text-decoration: none; color: inherit; min-width: 0;
  background: linear-gradient(150deg, var(--vip-soft), transparent 60%), var(--surface); border: 1px solid color-mix(in srgb, var(--vip) 35%, transparent); }
.orig-cover { position: relative; flex: 0 0 38%; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); align-self: flex-start; }
.orig-cover img { width: 100%; height: 100%; object-fit: cover; }
.orig-body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.orig-body h3 { margin: 2px 0 0; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 17px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.orig-meta { margin: 0; font-size: 12px; color: var(--muted); }
.orig-desc { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text); opacity: .85;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.orig-note { margin: 0; font-size: 12px; color: var(--vip); font-weight: 600; }
.orig-go { margin-top: auto; display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-size: 14px; font-weight: 600; }
.orig-go small { font-size: 11px; font-weight: 400; opacity: .85; }
.orig-hero { text-align: center; padding: 22px 8px 18px; }
.orig-hero h1 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 22px; margin: 10px 0 6px; }
.orig-hero p { margin: 0; color: var(--muted); font-size: 14px; }
.orig-list { display: grid; gap: 12px; }
.detail-info .orig-badge { margin-bottom: 6px; }
.detail-info .orig-note { margin: 4px 0 8px; }
@media (min-width: 640px) {
  .orig-rail { grid-auto-columns: calc((100% - 12px) / 2); }
  .orig-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .orig-rail { grid-auto-columns: calc((100% - 24px) / 3); margin: 0; padding: 0 0 4px; }
  .orig-rail.is-single { grid-auto-columns: calc((100% - 24px) / 2); }
  .orig-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.poster-rank {
  position: absolute; left: 6px; bottom: 16px; z-index: 1;
  font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 34px; line-height: 1;
  color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.6);
}
.poster-rank.rank-1, .poster-rank.rank-2, .poster-rank.rank-3 { color: var(--accent); }
.poster-rank ~ .poster-eps { padding-left: 34px; }
.poster-title { margin-top: 6px; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.poster-sub { font-size: 12px; color: var(--free); margin-top: 2px; }

/* ---------- 广告 ---------- */
.ad-banner { position: relative; display: block; border-radius: var(--radius); overflow: hidden; margin: 14px 0; background: var(--surface-2); }
.ad-banner img { width: 100%; height: auto; }
.ad-tag { position: absolute; right: 6px; bottom: 6px; font-size: 10px; line-height: 1; padding: 3px 5px; border-radius: 3px; background: rgba(0,0,0,.45); color: #fff; }
.poster-ad .ad-tag { bottom: auto; top: 6px; }
.ad-grid { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 4px 0 16px; }
.ad-grid a { display: grid; gap: 4px; min-width: 0; text-align: center; color: var(--text); text-decoration: none; }
.ad-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; background: var(--surface-2); }
.ad-grid span { min-height: 1.3em; font-size: 11px; line-height: 1.3; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-grid-tag { position: absolute; right: 0; top: -14px; font-style: normal; font-size: 10px; line-height: 1; color: var(--muted); }
@media (min-width: 760px) { .ad-grid { gap: 14px; grid-template-columns: repeat(6, minmax(0, 130px)); justify-content: space-between; } .ad-grid span { font-size: 13px; } }

/* ---------- 片库 / 搜索 ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px 12px; padding: 0 14px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; padding: 6px 14px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 14px; white-space: nowrap; }
.chip.is-on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.sortbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 13px; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 2px; }
.seg a { padding: 4px 12px; border-radius: 999px; color: var(--muted); }
.seg a.is-on { background: var(--surface); color: var(--text); font-weight: 600; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 22px 0; }
.searchbox { display: flex; gap: 8px; margin: 4px 0 12px; }
.searchbox input { flex: 1; min-width: 0; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 0 16px; outline: none; }
.searchbox input:focus { border-color: var(--accent); }
.hotwords h2 { font-size: 15px; margin: 18px 0 10px; color: var(--muted); font-weight: 500; }
.hotwords div { display: flex; flex-wrap: wrap; gap: 8px; }
.hotwords a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; }
.result-count { font-size: 13px; margin: 0 0 10px; }
.empty-inline { color: var(--muted); padding: 30px 0; text-align: center; }
.empty-inline a { color: var(--accent); }
.empty-state { text-align: center; padding: 18vh 0 10vh; }
.empty-state h1 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 20px; margin: 0 0 10px; }
.empty-state p { color: var(--muted); margin: 0 0 20px; }

/* ---------- 详情页 ---------- */
.detail { display: grid; grid-template-columns: 34% 1fr; gap: 14px; align-items: start; }
.detail-cover { aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-info h1 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 20px; line-height: 1.3; margin: 0 0 6px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: 13px; margin: 0 0 6px; }
.badge-ai { border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; font-size: 11px; }
.detail-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.detail-cats a { font-size: 12px; padding: 2px 8px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); }
.detail-desc { grid-column: 1 / -1; color: var(--muted); font-size: 14px; margin: 0; white-space: pre-line; }
.detail-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; font-size: 13px; }
@media (max-width: 639px) {
  .detail-info .detail-desc { display: none; }
}

/* ---------- 选集按钮 ---------- */
.eps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.ep { position: relative; display: grid; place-items: center; height: 44px; border-radius: 8px; background: var(--surface-2); font-size: 15px; font-variant-numeric: tabular-nums; }
.ep.is-current, .ep.is-current.is-locked { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.ep.is-locked { color: var(--muted); }
.ep-tag { position: absolute; top: 2px; right: 3px; font-style: normal; font-size: 9px; line-height: 1; }
.ep-free { color: var(--free); }
.ep.is-current .ep-free { color: inherit; }
.ico-lock { opacity: .7; }

/* ---------- 卡片 / 表单 / 我的 ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.card h2 { font-size: 16px; margin: 0 0 6px; }
.card > p { margin: 0 0 12px; font-size: 14px; }
.card-warn { border-color: var(--accent); }
details.card summary { cursor: pointer; font-weight: 600; }
details.card[open] summary { margin-bottom: 10px; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.form input { height: 44px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); padding: 0 12px; outline: none; font-size: 15px; color: var(--text); }
.form input:focus { border-color: var(--accent); }
.st-credited { color: var(--free); }
.st-pending, .st-paid { color: var(--accent); }

/* ---------- 文章页 ---------- */
.prose { max-width: 720px; font-size: 15px; line-height: 1.8; }
.prose h1 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 22px; }
.prose h2, .prose h3 { font-size: 16px; margin: 1.4em 0 .4em; }
.prose a { color: var(--accent); }
.prose ul { padding-left: 1.2em; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); padding: 20px 0 24px; font-size: 12px; color: var(--muted); text-align: center; }
.footer p { margin: 4px 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-bottom: 8px; }

/* ---------- 提示 ---------- */
.toasts { position: fixed; top: 62px; left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: 6px; width: min(90vw, 360px); }
.toast { background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 10px; font-size: 14px; text-align: center; box-shadow: 0 6px 24px rgba(0,0,0,.25); animation: toast-out .3s ease 3.2s forwards; }
.toast-err { background: var(--danger); color: #fff; }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); visibility: hidden; } }

/* ---------- 子页面顶栏（手机：返回 + 居中标题）---------- */
.subhead { display: none; }
@media (max-width: 899px) {
  .subhead {
    position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
    height: 50px; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .subhead h1 { grid-column: 2; margin: 0; text-align: center; font-size: 17px; font-weight: 600; }
  .subhead-back { grid-column: 1; width: 44px; height: 44px; display: grid; place-items: center; }
  .topbar.has-subhead { display: none; }
}

/* ---------- 片库：吸顶分类标签 + 一行筛选 ---------- */
.cat-tabs {
  position: sticky; top: 54px; z-index: 20; display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none;
  margin: -12px -14px 0; padding: 0 14px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs a { flex-shrink: 0; position: relative; padding: 12px 0 10px; font-size: 15px; color: var(--muted); white-space: nowrap; }
.cat-tabs a.is-on { color: var(--text); font-weight: 700; }
.cat-tabs a.is-on::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 18px; height: 3px; margin-left: -9px; border-radius: 2px; background: var(--accent); }
.lib-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 2px; }
.lib-status { display: flex; gap: 14px; font-size: 13px; }
.lib-status a { color: var(--muted); }
.lib-status a.is-on { color: var(--accent); font-weight: 600; }
.lib-count { margin: 0 0 10px; font-size: 12px; color: var(--muted); }
.poster-sub { display: flex; gap: 6px; font-size: 12px; color: var(--muted); }
.poster-sub em { font-style: normal; color: var(--free); flex: none; white-space: nowrap; }
.poster-sub span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 底部导航：中间的会员按钮 ---------- */
.tabbar a.tab-vip { color: var(--vip); }
.tab-vip-btn {
  display: grid; place-items: center; width: 44px; height: 44px; margin: -20px 0 -2px; border-radius: 50%;
  background: var(--vip); color: var(--vip-ink); border: 4px solid var(--surface);
}
.btn-vip { background: var(--vip); border-color: var(--vip); color: var(--vip-ink); font-weight: 700; }

/* ---------- 我的：观众证 + 功能宫格 ---------- */
.me { max-width: 600px; margin: 0 auto; }
.pass {
  --notch: var(--bg);
  position: relative; display: grid; grid-template-columns: 1fr 96px; min-height: 132px;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden;
}
.pass.is-vip { border-color: var(--vip); background: linear-gradient(115deg, var(--surface) 55%, var(--vip-soft)); }
.pass-main { padding: 18px 16px; min-width: 0; display: grid; align-content: center; gap: 2px; }
.pass-main p { margin: 0; }
.pass-kind { font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.pass.is-vip .pass-kind { color: var(--vip); }
.pass-name { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 22px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pass-id { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.pass-hint { font-size: 13px; color: var(--muted); margin-top: 4px !important; }
/* 票根：虚线打孔 + 上下两个缺口 */
.pass-stub {
  position: relative; display: grid; place-content: center; justify-items: center; gap: 0;
  border-left: 2px dashed var(--line); background: var(--vip-soft); color: var(--vip); text-align: center;
}
.pass-stub::before, .pass-stub::after {
  content: ""; position: absolute; left: -10px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--notch); border: 1px solid var(--line);
}
.pass-stub::before { top: -10px; }
.pass-stub::after { bottom: -10px; }
.pass-stub b { font-family: var(--font-display); font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.pass-stub small { font-size: 12px; margin-top: -2px; }
.pass-stub span { font-size: 11px; color: var(--muted); margin-top: 4px; }
.pass-stub em { font-style: normal; font-size: 12px; font-weight: 700; margin-top: 6px; padding: 2px 10px; border-radius: 999px; background: var(--vip); color: var(--vip-ink); }
.stub-cta { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 18px !important; line-height: 1.3; color: var(--vip) !important; margin: 0 !important; }

.bind-alert { display: grid; gap: 2px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; border-left: 3px solid var(--accent); background: var(--accent-soft); font-size: 13px; }
.bind-alert strong { font-size: 14px; }

/* 每日签到 */
.ck { display: block; margin-top: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: inherit; text-decoration: none; }
.ck-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ck h2 { margin: 0; font-size: 16px; }
.ck-head p { margin: 3px 0 0; font-size: 12px; color: var(--muted); }
.ck-head p b { color: var(--accent); }
.ck-btn { flex: none; white-space: nowrap; display: inline-block; padding: 8px 16px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.ck-btn.is-done { background: var(--accent-soft); color: var(--accent); font-weight: 600; cursor: default; }
.ck-days { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ck-days li { display: grid; justify-items: center; gap: 2px; padding: 7px 0 5px; border-radius: 10px; background: var(--accent-soft); opacity: .55; }
.ck-days li.lit { opacity: 1; background: var(--accent); color: var(--accent-ink); }
.ck-days li.today:not(.lit) { opacity: 1; outline: 1.5px dashed var(--accent); outline-offset: -1.5px; }
.ck-days li.big:not(.lit) { background: var(--vip-soft); color: var(--vip); opacity: 1; }
.ck-days li.big.lit { background: var(--vip); color: var(--vip-ink); }
.ck-pt { font-size: 14px; font-weight: 800; }
.ck-d { font-size: 10px; }
.ck-note { margin: 10px 0 0; font-size: 11px; color: var(--muted); }
.ck-note em { font-style: normal; color: var(--accent); }
.reg-gift { margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; background: var(--accent-soft); font-size: 13px; }
.reg-gift b { color: var(--accent); }
/* 观看历史 */
.hist-rail { grid-auto-columns: 28%; }
.hist-card { display: block; min-width: 0; color: inherit; }
.hist-img { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.hist-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hist-blank { display: grid; place-items: center; height: 100%; padding: 6px; font-size: 12px; text-align: center; color: var(--muted); }
.hist-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .25); }
.hist-bar i { display: block; height: 100%; background: var(--accent); }
.hist-title { margin-top: 6px; font-size: 13px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
.hist-list { list-style: none; margin: 0; padding: 0; }
.hist-list li { position: relative; display: flex; align-items: stretch; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hist-row { flex: 1; min-width: 0; display: flex; gap: 12px; color: inherit; }
.hist-row .hist-img { flex: none; width: 78px; }
.hist-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; justify-content: center; }
.hist-info b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-info span { font-size: 13px; color: var(--muted); }
.hist-info small { font-size: 11px; color: var(--muted); opacity: .8; }
.hist-info em { align-self: flex-start; margin-top: 4px; padding: 3px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-style: normal; font-size: 12px; font-weight: 700; }
.hist-list form { display: flex; }
.hist-del { align-self: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.hist-empty { padding: 48px 0; text-align: center; color: var(--muted); }
.hist-foot { padding: 16px 0; text-align: center; }
/* 邀请好友 */
.inv-hero { margin-bottom: 12px; padding: 18px 16px; border-radius: 14px; background: var(--accent); background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--vip))); color: var(--accent-ink); }
.inv-hero h2 { margin: 2px 0 6px; font-size: 20px; }
.inv-hero h2 b { font-size: 28px; }
.inv-hero p { margin: 0; font-size: 13px; opacity: .9; }
.inv-hero .inv-kicker { font-size: 12px; opacity: .8; }
.inv-link { display: flex; gap: 8px; align-items: center; margin: 8px 0; padding: 8px 8px 8px 12px; border-radius: 10px; background: var(--surface-2); }
.inv-link code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.inv-link .btn { flex: none; }
.inv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.inv-stats div { display: grid; justify-items: center; gap: 2px; padding: 12px 0; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.inv-stats b { font-size: 20px; color: var(--accent); }
.inv-stats span { font-size: 12px; color: var(--muted); }
.inv-rules { margin: 6px 0 0; padding-left: 20px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.inv-rules li + li { margin-top: 4px; }
.inv-list { list-style: none; margin: 0; padding: 0; }
.inv-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.inv-list li:first-child { border-top: 0; }
.inv-name small, .inv-st small { display: block; font-size: 11px; color: var(--muted); }
.inv-st { text-align: right; color: var(--muted); }
.inv-rewarded { color: var(--accent); font-weight: 700; }
.inv-strip .cs-ico { background: var(--vip); color: var(--vip-ink); }
.ck-guest { border-color: var(--accent); background: var(--accent-soft); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 14px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tile { position: relative; display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 92px; padding: 14px 6px; background: var(--surface); color: var(--text); text-align: center; }
.tile svg { color: var(--muted); }
.tile:active { background: var(--surface-2); }
.tile-label { font-size: 13px; }
.tile-num { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 26px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.tile-points .tile-label { color: var(--muted); font-size: 12px; }
.tile-dot { position: absolute; top: 14px; right: calc(50% - 20px); width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.cs-strip { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.cs-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); flex-shrink: 0; }
.cs-text { flex: 1; display: grid; }
.cs-text strong { color: var(--text); font-size: 15px; }
.cs-text small { font-size: 12px; }
.cs-new { flex-shrink: 0; font-size: 12px; font-weight: 600; color: #fff; background: var(--danger); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }

/* ---------- 评论 ---------- */
.cmts { margin-top: 28px; }
.cmts-head h2 { display: flex; align-items: baseline; gap: 6px; margin: 0 0 12px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 18px; }
.cmts-head small { font-family: inherit; font-size: 13px; font-weight: 400; color: var(--muted); }
.cmt-form { display: grid; gap: 8px; margin-bottom: 14px; }
.cmt-form textarea { width: 100%; min-height: 66px; resize: vertical; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 15px; line-height: 1.5; outline: none; }
.cmt-form textarea:focus { border-color: var(--accent); }
.cmt-form-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.cmt-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cmt-send { min-height: 34px; padding: 0 20px; font-size: 14px; }
.cmt-replying { margin: 0; display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.cmt-replying b { color: var(--text); font-weight: 600; }
.cmt-replying button { margin-left: auto; border: 0; background: none; color: var(--accent); font-size: 13px; cursor: pointer; }
.cmt-gate { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 14px; }
.cmt-gate a { color: var(--accent); white-space: nowrap; }
.cmt { display: flex; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.cmt-list > .cmt:first-child { border-top: 0; padding-top: 4px; }
.cmt.is-reply { padding: 10px 0 0; border-top: 0; }
.cmt-av { --h: 0; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: hsl(var(--h) 38% 44%); color: #fff; font-size: 14px; font-weight: 700; }
.cmt.is-reply .cmt-av { width: 24px; height: 24px; font-size: 11px; }
.cmt-main { flex: 1; min-width: 0; }
.cmt-who { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.cmt-tag { font-style: normal; font-size: 11px; line-height: 1; padding: 3px 6px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.cmt-tag.is-vip { background: var(--vip-soft); color: var(--vip); }
.cmt-tag.is-pin { background: var(--accent-soft); color: var(--accent); }
.cmt-text { margin: 4px 0 6px; font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.cmt.is-reply .cmt-text { font-size: 14px; }
.cmt.is-pending > .cmt-main > .cmt-text { opacity: .7; }
.cmt-meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); }
.cmt-act { border: 0; background: none; padding: 4px 0; color: var(--muted); font-size: 12px; cursor: pointer; }
.cmt-act:hover { color: var(--text); }
.cmt-like { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; min-width: 34px; justify-content: flex-end; border: 0; background: none; padding: 4px 0; color: var(--muted); font-size: 12px; cursor: pointer; }
.cmt-like.is-on { color: var(--accent); }
.cmt-like.is-on svg { fill: currentColor; }
.cmt-replies:not(:empty) { margin-top: 8px; padding: 0 12px 10px; border-radius: 10px; background: var(--surface-2); }
.cmt-empty { margin: 0; padding: 18px 0; text-align: center; color: var(--muted); font-size: 14px; }
.cmt-more { margin-top: 8px; }
.panel .cmts { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.panel .cmts-head h2 { font-size: 15px; font-family: inherit; }
.panel .cmt-form textarea { background: var(--bg); }
.panel .cmt-replies:not(:empty) { background: var(--bg); }
.stage-pills { display: flex; gap: 8px; }

/* ---------- 在线客服聊天 ---------- */
body.is-chat { padding-bottom: 0; }
.chat-page { display: flex; flex-direction: column; height: calc(100vh - 50px); height: calc(100dvh - 50px); }
.chat { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--bg); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.chat-title { display: grid; min-width: 0; line-height: 1.35; }
.chat-title strong { font-size: 15px; }
.chat-title small { font-size: 12px; color: var(--muted); }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 12px 6px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.chat-note { width: fit-content; max-width: 100%; margin: 0 auto 14px; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; text-align: center; }
.chat-time { margin: 14px 0 10px; text-align: center; font-size: 12px; color: var(--muted); }
.msg { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
.msg.is-me { justify-content: flex-end; }
.msg-av { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--accent-soft); color: var(--accent); }
.msg.is-auto .msg-av { background: var(--surface-2); color: var(--muted); }
.msg-body { display: grid; gap: 3px; max-width: min(78%, 520px); min-width: 0; }
.msg.is-me .msg-body { justify-items: end; }
.msg-who { font-size: 11px; color: var(--muted); }
.bubble { padding: 9px 12px; border-radius: 4px 14px 14px 14px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.is-me .bubble { border-radius: 14px 4px 14px 14px; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.msg.is-auto .bubble { background: var(--surface-2); }
.bubble a { color: var(--accent); text-decoration: underline; }
.bubble-sub { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.bubble.has-img { padding: 4px; }
.bubble.has-img > div { padding: 4px 8px 4px; }
.bubble img { max-width: min(220px, 100%); max-height: 320px; border-radius: 10px; object-fit: contain; background: var(--surface-2); }
.bubble.img-only, .msg.is-me .bubble.img-only { padding: 0; background: none; border: 0; }
.bubble.img-only img { border: 1px solid var(--line); }
.faq { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 12px 40px; }
.faq button { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.faq button:hover { border-color: var(--accent); color: var(--accent); }
.chat-bar { display: flex; align-items: flex-end; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.chat-pic { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; color: var(--muted); cursor: pointer; }
.chat-pic:hover { color: var(--text); }
.chat-bar textarea { flex: 1; min-width: 0; height: 40px; max-height: 120px; resize: none; padding: 9px 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.4; outline: none; }
.chat-bar textarea:focus { border-color: var(--accent); }
.chat-send { flex-shrink: 0; height: 40px; padding: 0 16px; border: 0; border-radius: 20px; background: var(--accent); color: var(--accent-ink); font-weight: 600; cursor: pointer; }
.chat-send[disabled] { opacity: .5; cursor: default; }
.chat-off { margin: 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); text-align: center; color: var(--muted); font-size: 14px; }
[data-theme="warm"] .bubble, [data-theme="warm"] .chat-bar textarea, [data-theme="warm"] .chat-send { border-radius: var(--radius); }
.logout { margin-top: 18px; }

/* 子页面：充值记录 / 已解锁 */
.order-list, .unlock-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.order { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.order-main, .order-sub { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.order-amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.order-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.order-no { font-size: 11px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; word-break: break-all; }
.st-credited { color: var(--free); }
.st-pending, .st-paid { color: var(--vip); }
.unlock-list a { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.ul-cover { width: 48px; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; background: var(--surface-2); flex-shrink: 0; }
.ul-cover img { width: 100%; height: 100%; object-fit: cover; }
.ul-main { display: grid; }
.ul-main small { color: var(--muted); font-size: 12px; }
.small-empty { padding: 12vh 0; }

/* 账号凭证：和观众证同一套票据样式 */
.id-card { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); margin-top: 10px; }
.idc-top { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 16px 14px; border-bottom: 2px dashed var(--line); }
.idc-brand { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 17px; }
.idc-kind { font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.idc-rows { margin: 0; padding: 6px 16px; }
.idc-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.idc-rows div:last-child { border-bottom: 0; }
.idc-rows dt { color: var(--muted); font-size: 14px; }
.idc-rows dd { margin: 0; font-weight: 600; text-align: right; }
.idc-rows dd a { color: var(--accent); font-weight: 400; }
.idc-uid { font-family: var(--font-display); font-size: 24px; letter-spacing: .08em; font-variant-numeric: tabular-nums; color: var(--accent); }
.idc-foot { margin: 0; padding: 10px 16px 14px; font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- 会员与充值：戏票 ---------- */
body.has-paybar { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
.vip-page { max-width: 600px; margin: 0 auto; }
.vip-hero { padding: 6px 2px 2px; }
.vip-hero h1 { margin: 0 0 4px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 22px; line-height: 1.35; }
.vip-hero p { margin: 0; color: var(--muted); font-size: 14px; }
.vip-points { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; padding: 0; font-size: 13px; }
.vip-points li { display: flex; align-items: center; gap: 5px; }
.vip-points li::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--vip)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23241a07' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 9px no-repeat;
}
.vip-switch { display: grid; grid-template-columns: 1fr 1fr; margin: 18px 0 14px; padding: 3px; border-radius: 12px; background: var(--surface-2); }
.vip-switch a { padding: 9px 0; border-radius: 9px; text-align: center; color: var(--muted); font-weight: 600; }
.vip-switch a.is-on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.vip-switch small { font-weight: 400; font-size: 12px; margin-left: 6px; color: var(--muted); }

.tickets { display: grid; gap: 10px; }
.ticket {
  position: relative; display: grid; grid-template-columns: 78px 1fr auto; align-items: center; min-height: 82px;
  border-radius: 12px; background: var(--surface); border: 1.5px solid var(--line); cursor: pointer;
}
.ticket input, .coin input, .chan input { position: absolute; opacity: 0; pointer-events: none; }
.tk-stub { position: relative; align-self: stretch; display: flex; align-items: baseline; justify-content: center; padding-top: 22px; border-right: 2px dashed var(--line); color: var(--muted); }
.tk-stub::before, .tk-stub::after {
  content: ""; position: absolute; right: -10px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--line);
}
.tk-stub::before { top: -10px; }
.tk-stub::after { bottom: -10px; }
.tk-stub b { font-family: var(--font-display); font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.tk-stub small { font-size: 12px; margin-left: 1px; }
.tk-body { display: grid; gap: 2px; padding: 0 14px; min-width: 0; }
.tk-body strong { font-size: 16px; display: flex; align-items: center; gap: 6px; }
.tk-body small { font-size: 12px; color: var(--muted); }
.tk-badge { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); }
.tk-price { padding-right: 16px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 26px; font-variant-numeric: tabular-nums; }
.tk-price small { font-size: 14px; margin-right: 1px; }
.ticket:has(input:checked) { border-color: var(--vip); background: linear-gradient(100deg, var(--vip-soft), var(--surface) 70%); }
.ticket:has(input:checked) .tk-stub { color: var(--vip); border-right-color: var(--vip); }
.ticket:has(input:checked) .tk-stub::before, .ticket:has(input:checked) .tk-stub::after { border-color: var(--vip); }
.ticket:has(input:checked) .tk-price { color: var(--vip); }
.ticket:has(input:focus-visible), .coin:has(input:focus-visible), .chan:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.pts-intro { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.payday-bar { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 11px 14px; border-radius: 12px; text-decoration: none;
  background: linear-gradient(100deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #ffb300)); color: var(--accent-ink); font-size: 13px; }
.payday-bar b { flex: none; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .18); font-size: 12px; letter-spacing: .02em; }
.coins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.coin { position: relative; display: grid; justify-items: center; gap: 2px; padding: 16px 0 0; border-radius: 12px; background: var(--surface); border: 1.5px solid var(--line); cursor: pointer; overflow: hidden; }
.coin-pts { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.coin-pts small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.coin-bonus { font-size: 12px; color: var(--accent); min-height: 1.5em; }
.coin-price { justify-self: stretch; align-self: stretch; text-align: center; margin-top: 8px; padding: 8px 0; border-top: 1.5px dashed var(--line); font-weight: 600; font-variant-numeric: tabular-nums; }
.coin:has(input:checked) { border-color: var(--accent); background: linear-gradient(var(--accent-soft), var(--surface) 80%); }
.coin:has(input:checked) .coin-price { background: var(--accent); color: var(--accent-ink); border-top-color: var(--accent); }

.paychan { border: 0; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.paychan legend { padding: 0; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.chan { position: relative; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: var(--surface); border: 1.5px solid var(--line); cursor: pointer; }
.chan-ico { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; background: var(--muted); }
.chan-alipay .chan-ico { background: #1677ff; }
.chan-wechat .chan-ico { background: #07c160; }
.chan-name { flex: 1; font-weight: 600; font-size: 15px; }
.chan-radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); }
.chan:has(input:checked) { border-color: var(--text); }
.chan:has(input:checked) .chan-radio { border: 5px solid var(--text); }

.paybar {
  position: fixed; left: 12px; right: 12px; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 35;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 16px; border-radius: 16px;
  background: var(--surface-2); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.pb-sum { display: grid; min-width: 0; line-height: 1.25; }
.pb-name { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-price { font-family: var(--font-display); font-weight: var(--display-weight); }
.pb-price small { font-size: 14px; }
.pb-price b { font-size: 24px; font-variant-numeric: tabular-nums; }
.pb-btn { flex-shrink: 0; min-height: 46px; padding: 0 24px; font-size: 16px; font-weight: 700; border-radius: 12px; }
.pb-vip { background: var(--vip); border-color: var(--vip); color: var(--vip-ink); }
.vip-legal { margin: 14px 0 0; text-align: center; font-size: 12px; color: var(--muted); line-height: 1.8; }
.vip-legal a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.vip-notice { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.vip-notice summary { cursor: pointer; font-size: 14px; color: var(--muted); }
.vip-notice .prose { font-size: 13px; color: var(--muted); }

@media (min-width: 640px) {
  .coins { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .cat-tabs { top: 62px; margin: -12px 0 0; padding: 0; }
  body.has-paybar { padding-bottom: 110px; }
  .paybar { left: 50%; right: auto; bottom: 20px; width: min(600px, calc(100% - 48px)); transform: translateX(-50%); }
}

/* ---------- 付款 ---------- */
.wx-tip { display: grid; gap: 2px; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: #fff4d6; color: #5c4200; font-size: 13px; }
.wx-tip strong { font-size: 14px; }
.invite-code { display: grid; gap: 6px; margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.invite-code input { height: 44px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 12px; font-size: 15px; color: var(--text); outline: none; }
.invite-code input:focus { border-color: var(--accent); }
.pay-result { max-width: 520px; margin: 0 auto; text-align: center; padding-top: 6vh; }
.pr-icon { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; color: #fff; background: var(--free); }
.pr-icon.wait { background: var(--surface-2); color: var(--muted); animation: pr-spin 1.2s linear infinite; }
.pr-icon.bad { background: var(--danger); }
@keyframes pr-spin { to { transform: rotate(360deg); } }
.pay-result h1 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 22px; margin: 0 0 6px; }
.pay-result .pr-sub { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.pr-box { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 0 0 14px; }
.pr-box dl { margin: 0; display: grid; gap: 6px; font-size: 14px; }
.pr-box dl div { display: flex; justify-content: space-between; gap: 10px; }
.pr-box dt { color: var(--muted); }
.pr-box dd { margin: 0; font-weight: 600; text-align: right; }
.pr-actions { display: grid; gap: 10px; margin-top: 6px; }
.pr-bind { text-align: left; border: 1.5px solid var(--accent); }
.pr-bind h2 { font-size: 16px; margin: 0 0 4px; }
.pr-bind p { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .pr-icon.wait { animation: none; } }

/* =========================================================
   播放页：手机全屏竖屏，选集面板从底部拉起；电脑左右分栏
   ========================================================= */
body.is-play { background: #000; padding-bottom: 0; }
body.is-play .topbar { display: none; }
.play-layout { position: fixed; inset: 0; }
.stage { position: absolute; inset: 0; background: #000; overflow: hidden; touch-action: pan-x; }
.stage video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.stage-top {
  position: absolute; left: 0; right: 0; top: 0; z-index: 6;
  display: flex; align-items: center; gap: 6px; color: #fff;
  padding: calc(8px + env(safe-area-inset-top)) 10px 24px;
  background: linear-gradient(rgba(0,0,0,.55), transparent); pointer-events: none;
}
.stage-top > * { pointer-events: auto; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #fff; }
.stage-title { display: grid; line-height: 1.3; min-width: 0; }
.stage-title strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-title span { font-size: 12px; opacity: .75; }
.stage-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px calc(64px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.stage-bottom > * { pointer-events: auto; }
.pill { border: 0; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; padding: 8px 14px; font-size: 13px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer; }
.swipe-hint { color: rgba(255,255,255,.55); font-size: 12px; }
.stage-msg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; color: #fff; background: rgba(0,0,0,.6); padding: 10px 16px; border-radius: 10px; font-size: 14px; text-align: center; max-width: 80%; }
.wm { position: absolute; z-index: 2; color: rgba(255,255,255,.28); font-size: 12px; pointer-events: none; user-select: none; transition: top 1.2s, left 1.2s; white-space: nowrap; }

.paywall { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.paywall-card { width: min(100%, 340px); display: grid; gap: 10px; text-align: center; color: #fff; }
.paywall-card h2 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 22px; margin: 0 0 8px; }
.paywall-kicker { margin: 0; color: var(--vip); font-size: 14px; }
.paywall-card .btn:not(.btn-primary):not(.btn-vip) { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: #fff; }
.paywall-card .btn small { color: rgba(255,255,255,.65); }
.paywall-card .btn-block { flex-direction: column; gap: 2px; padding-top: 6px; padding-bottom: 6px; line-height: 1.3; }
.paywall-card .btn-block small { margin-left: 0; }
.paywall-note { margin: 4px 0 0; font-size: 13px; color: rgba(255,255,255,.7); }
.paywall-note a { color: var(--accent); }

.panel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  max-height: 72vh; display: flex; flex-direction: column;
  background: var(--surface); color: var(--text);
  border-radius: 18px 18px 0 0;
  transform: translateY(102%); transition: transform .28s cubic-bezier(.2,.8,.2,1);
  padding-bottom: env(safe-area-inset-bottom);
}
.panel.is-open { transform: translateY(0); }
.panel-grip { flex-shrink: 0; height: 26px; cursor: pointer; position: relative; }
.panel-grip::after { content: ""; position: absolute; left: 50%; top: 10px; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: var(--line); }
.panel-in { overflow-y: auto; padding: 0 16px 20px; overscroll-behavior: contain; }
.panel-title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 18px; margin: 0 0 4px; }
.panel-desc { color: var(--muted); font-size: 13px; margin: 0 0 12px; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 0 10px; }
.panel-head h2 { font-size: 15px; margin: 0; }
.panel-head a { color: var(--accent); font-size: 13px; }
.ep-nav { display: flex; justify-content: space-between; gap: 10px; margin: 14px 0 4px; }
.ep-nav .btn { flex: 1; }
.scrim { position: fixed; inset: 0; z-index: 9; background: rgba(0,0,0,.45); }

@media (prefers-reduced-motion: reduce) {
  .panel, .carousel-dots i, .wm { transition: none; }
  .toast { animation: none; }
}

/* =========================================================
   平板与电脑
   ========================================================= */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 14px; }
  .rail { grid-auto-columns: 22%; }
  .eps { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .detail { grid-template-columns: 220px 1fr; gap: 22px; }
  .detail-actions { flex-direction: row; align-items: center; }
  .carousel { margin: 0 0 8px; border-radius: var(--radius); overflow: hidden; }
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .wrap { padding: 0 24px; }
  .tabbar { display: none; }
  .topbar-in { height: 62px; gap: 28px; }
  .brand { max-width: none; }
  .topnav { display: flex; gap: 22px; }
  .topnav a { color: var(--muted); font-size: 15px; }
  .topnav a:hover { color: var(--text); }
  .topsearch { flex: 0 1 280px; margin-left: auto; }
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 16px; }
  .rail { grid-auto-columns: calc((100% - 64px) / 5); margin: 0; padding: 0 0 4px; gap: 16px; }
  .chips { flex-wrap: wrap; margin: 0 0 14px; padding: 0; overflow: visible; }
  .shelf { margin-top: 28px; }
  .shelf-head h2 { font-size: 20px; }
  .carousel-slide { aspect-ratio: 16 / 5; }
  .page-title { font-size: 26px; }
  .card { padding: 20px; }
  .topnav a { position: relative; }
  .topnav .tab-dot { top: -1px; left: auto; right: -9px; box-shadow: none; }
  .chat-page { display: block; height: auto; padding: 20px 24px; }
  .chat { max-width: 760px; height: calc(100vh - 62px - 40px); margin: 0 auto; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
  .chat-head { padding: 14px 18px; }
  .chat-log { padding: 18px 18px 8px; }
  .chat-bar { padding: 10px 12px; }

  /* 播放页电脑版：顶栏保留，左侧竖屏播放器，右侧信息栏 */
  body.is-play .topbar { display: block; }
  body.is-play { background: var(--bg); }
  .play-layout {
    position: static; display: grid; grid-template-columns: auto minmax(320px, 400px); grid-template-rows: minmax(0, 1fr);
    justify-content: center; gap: 24px; padding: 20px 24px; height: calc(100vh - 63px);
  }
  .stage { position: relative; inset: auto; height: 100%; aspect-ratio: 9 / 16; border-radius: 14px; }
  .stage-bottom { padding-bottom: 60px; }
  .stage-bottom .pill, .swipe-hint { display: none; }
  .panel {
    position: static; transform: none; max-height: none; height: 100%; min-height: 0;
    border-radius: 14px; border: 1px solid var(--line); padding-bottom: 0;
  }
  .panel-grip { display: none; }
  .panel-in { padding: 20px; }
  .panel .eps { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .scrim { display: none !important; }
}

@media (min-width: 1200px) {
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .rail { grid-auto-columns: calc((100% - 80px) / 6); }
}

/* ---------- 最新网址 / 添加到桌面 ---------- */
.btn-sm { min-height: 32px; padding: 0 10px; font-size: 13px; }
.addr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.addr-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.addr-list form { margin: 0; }
.addr-u { flex: 1 1 160px; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.addr-u em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 6px; }
.addr-st { font-size: 12px; color: var(--muted); white-space: nowrap; }
.addr-st.ok { color: var(--free); }
.addr-st.bad { color: var(--danger); }
.addr-notice { background: var(--accent-soft); border-radius: var(--radius); padding: 10px 12px; white-space: pre-line; }
.addr-pub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; overflow-wrap: anywhere; }
.addr-steps { margin: 8px 0 0; padding-left: 20px; font-size: 14px; display: grid; gap: 4px; }
.addr-step { font-size: 14px; margin: 8px 0 0; }

/* 微信 / QQ 里打开时的提示条 */
.wx-tip { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  background: var(--accent); color: var(--accent-ink); font-size: 13px; line-height: 1.45; }
.wx-tip span { flex: 1; }
.wx-tip button { border: 0; background: rgba(0,0,0,.18); color: inherit; border-radius: 6px; padding: 4px 9px; font: inherit; cursor: pointer; }

/* ---------- 首页弹窗广告 ---------- */
html.pop-open, html.pop-open body { overflow: hidden; }
.pop-ads { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .72); }
.pop-ads[hidden], .pop-ad[hidden] { display: none; }
.pop-ad { margin: 0; display: grid; justify-items: center; gap: 14px; animation: pop-in .22s ease; }
.pop-ad a { position: relative; display: block; line-height: 0; }
.pop-ad img { max-width: min(86vw, 420px); max-height: 68vh; width: auto; height: auto; border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }
.pop-ad figcaption { display: grid; justify-items: center; gap: 12px; }
.pop-ad small { color: rgba(255, 255, 255, .7); font-size: 12px; }
.pop-x { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); background: rgba(0, 0, 0, .25);
  color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; }
.pop-skip { margin-top: 2px; border: 0; background: none; color: rgba(255, 255, 255, .75); font-size: 13px; text-decoration: underline; cursor: pointer; padding: 4px 8px; }
@keyframes pop-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pop-ad { animation: none; } }

/* ---------- 头像、注册 ---------- */
.pass-main { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; }
.pass-main > .pass-txt { display: grid; gap: 2px; min-width: 0; }
.pass-main > .pass-txt:only-child { grid-column: 1 / -1; }
.pass-av img { display: block; width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--line); }
.pass.is-vip .pass-av img { border-color: var(--vip); }
.pass-acts { display: flex; gap: 8px; margin-top: 10px !important; }
img.cmt-av { background: none; object-fit: cover; }
.av-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; justify-items: center; }
.av-pick label { position: relative; cursor: pointer; }
.av-pick input { position: absolute; opacity: 0; pointer-events: none; }
.av-pick img { display: block; width: 56px; height: 56px; border-radius: 50%; border: 3px solid transparent; transition: transform .15s; }
.av-pick input:checked + img { border-color: var(--accent); transform: scale(1.06); }
.av-pick input:focus-visible + img { outline: 2px solid var(--accent); outline-offset: 2px; }
.av-pick .btn { grid-column: 1 / -1; margin-top: 4px; }
.av-row { display: flex; align-items: center; margin: 4px 0 14px; }
.av-row img { border-radius: 50%; border: 2px solid var(--surface); margin-right: -8px; }
.av-row span { margin-left: 16px; font-size: 12px; color: var(--muted); }
.me > .ad-banner { margin-top: 14px; }

/* ---------- 官方 TG 群 ---------- */
.tg-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 7px 14px; border-radius: 999px; background: #2aabee; color: #fff !important; font-size: 14px; font-weight: 600; text-decoration: none; }
.tg-strip .cs-ico { background: #2aabee; color: #fff; }
.tg-btn-lg { display: flex; align-items: center; justify-content: center; gap: 8px; background: #2aabee; border-color: #2aabee; color: #fff; }
.bubble .tg-btn { display: flex; width: max-content; }
.bubble a { color: #2aabee; text-decoration: none; }
.bubble a:hover { text-decoration: underline; }
.bubble-time { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.bubble a.tg-btn { color: #fff; text-decoration: none; }
.contact-line a, .bubble-sub a { color: #2aabee; text-decoration: none; }

/* ---------- 播放页底部：选集按钮做成一眼能看出是按钮的样子 ---------- */
.stage-pills { align-items: center; }
.ep-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 11px; border: 0; border-radius: 12px;
  background: #fff; color: #111; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.35); text-align: left;
}
.ep-btn-t { display: grid; line-height: 1.2; }
.ep-btn-t b { font-size: 15px; }
.ep-btn-t small { font-size: 11px; color: #555; white-space: nowrap; }
.ep-btn-up { color: var(--accent); }
.ep-btn:active { transform: scale(.97); }
.ep-btn.is-hint { animation: ep-hint 1.4s ease-in-out 3; }
@keyframes ep-hint { 0%, 100% { box-shadow: 0 4px 14px rgba(0,0,0,.35); } 50% { box-shadow: 0 0 0 6px rgba(255,255,255,.35), 0 4px 14px rgba(0,0,0,.35); } }
.cmt-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.35); border-radius: 12px;
  background: rgba(0,0,0,.45); color: #fff; font-size: 14px; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
@media (prefers-reduced-motion: reduce) { .ep-btn.is-hint { animation: none; } }
@media (min-width: 1000px) { .stage-bottom .ep-btn, .stage-bottom .cmt-btn { display: none; } }
.stage-bottom { z-index: 5; }   /* 付费遮罩上面也能点“选集”，去看免费的集 */

/* ---------- 新人首充价 ---------- */
.tk-price { display: grid; justify-items: end; line-height: 1.05; }
.tk-price del { font-family: var(--font-body, inherit); font-weight: 400; font-size: 13px; color: var(--muted); }
.ticket.is-first .tk-price > span { color: var(--accent); }
.tk-badge.tk-first { background: var(--vip); color: var(--vip-ink); }

/* ---------- 追剧 ---------- */
.follow-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; cursor: pointer; font: inherit; }
.follow-btn .fb-ok { display: none; }
.follow-btn.is-on .fb-add { display: none; }
.follow-btn.is-on .fb-ok { display: inline; }
.follow-btn.btn { border-color: var(--vip); color: var(--vip); background: transparent; }
.follow-btn.btn.is-on { border-color: var(--line); color: var(--muted); }
.detail-btns { display: flex; gap: 8px; align-items: stretch; }
.detail-btns .btn-primary { flex: 1; min-width: 0; white-space: nowrap; padding: 0 12px; }
.detail-btns .follow-btn { flex: 0 0 auto; flex-direction: column; gap: 1px; padding: 0 10px; min-width: 58px; font-size: 11px; border-radius: 14px; line-height: 1.1; }
.detail-btns .follow-btn svg { width: 18px; height: 18px; }
.follow-pill { margin-left: auto; flex: 0 0 auto; min-height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.35); color: #fff; font-size: 13px; font-weight: 600; }
.follow-pill.is-on { border-color: transparent; background: rgba(255,255,255,.14); color: rgba(255,255,255,.75); }
.follow-upd { position: absolute; top: 6px; left: 6px; font-size: 10px; line-height: 1; padding: 3px 6px; border-radius: 4px; background: var(--danger); color: #fff; font-weight: 700; }
.follow-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); margin-right: 5px; vertical-align: 2px; }
.follow-count { font-style: normal; font-family: inherit; font-weight: 600; font-size: 12px; color: var(--danger); margin-left: 6px; }
.follow-tip { display: block; margin: 12px 0; padding: 12px 14px; border-radius: var(--radius); border: 1px dashed var(--line); color: var(--muted); font-size: 13px; text-decoration: none; text-align: center; }
.follow-note { font-size: 13px; margin: 4px 0 12px; }
