/* ============ 基础 ============ */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow: hidden;
  font-family: var(--font-main);
  color: var(--text);
  background: #dce8f4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button { font-family: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; touch-action: manipulation; }
input, textarea { font-family: inherit; }
h1, h2, h3, p { margin: 0; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ============ 字体选择 ============ */
html[data-font="apple"] { --font-main: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; }
html[data-font="fang"] { --font-main: "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
html[data-font="fang"] body { letter-spacing: .3px; }
html[data-font="kai"] { --font-main: "Noto Serif CJK SC", "Songti SC", "STSong", "Kaiti SC", serif; }
html[data-font="digital"] { --font-main: "Smiley Sans", "DIN Alternate", "Bahnschrift", "Noto Sans CJK SC", sans-serif; }
html[data-font="digital"] body { letter-spacing: .4px; }
html[data-font="lisu"] { --font-main: "Noto Serif CJK SC", "LiSu", "Kaiti SC", "STLiti", serif; }
html[data-font="lisu"] body { letter-spacing: .8px; }
html[data-font="fine"] { --font-main: "Noto Sans CJK SC", "Helvetica Neue", "PingFang SC", sans-serif; }
html[data-font="fine"] body { font-weight: 300; }

/* ============ 主题 ============ */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f7fbff;
  --surface: #ffffff;
  --glass: rgba(255, 255, 255, .7);
  --glass-2: rgba(244, 250, 255, .9);
  --text: #12161c;
  --text-2: #7f8998;
  --text-3: #aab3bf;
  --line: rgba(18, 38, 68, .075);
  --line-strong: rgba(18, 38, 68, .14);
  --chip: #e4f1fd;
  --chip-text: #26313d;
  --accent: #2f80ed;
  --accent-soft: #d7ecff;
  --accent-text: #1388ef;
  --icon-box: rgba(18, 45, 80, .05);
  --nav-bg: rgba(255, 255, 255, .93);
  --drawer-bg: linear-gradient(180deg, #e9f5ff 0%, #f6fbff 55%, #ffffff 100%);
  --year-bg: #fff1e4;
  --year-text: #ef8a1c;
  --genre-bg: #e8f3ff;
  --genre-text: #2d8ce9;
  --glow-a: rgba(160, 214, 255, .7);
  --glow-b: rgba(206, 240, 255, .65);
  --mask: rgba(10, 22, 36, .42);
  --shadow: 0 12px 30px rgba(30, 80, 140, .16);
  --sheet-bg: #ffffff;
  --stage-bg: radial-gradient(1200px 600px at 20% 0%, #eef7ff 0%, #dbe8f5 45%, #cfddea 100%);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1017;
  --surface: #161c25;
  --glass: rgba(22, 29, 39, .76);
  --glass-2: rgba(14, 20, 28, .92);
  --text: #eef3fa;
  --text-2: #8d99a9;
  --text-3: #5f6b7a;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --chip: #1b2431;
  --chip-text: #d6e2f0;
  --accent: #4da3ff;
  --accent-soft: rgba(63, 148, 255, .2);
  --accent-text: #6bb5ff;
  --icon-box: rgba(255, 255, 255, .06);
  --nav-bg: rgba(14, 20, 28, .9);
  --drawer-bg: linear-gradient(180deg, #121a25 0%, #0e141c 60%, #0b1017 100%);
  --year-bg: rgba(240, 138, 30, .16);
  --year-text: #ffb066;
  --genre-bg: rgba(45, 140, 233, .18);
  --genre-text: #86c0ff;
  --glow-a: rgba(28, 82, 150, .5);
  --glow-b: rgba(24, 58, 104, .45);
  --mask: rgba(0, 0, 0, .55);
  --shadow: 0 12px 30px rgba(0, 0, 0, .45);
  --sheet-bg: #161c25;
  --stage-bg: radial-gradient(1200px 600px at 20% 0%, #152234 0%, #0b1017 55%, #06090d 100%);
}

/* ============ 舞台 / 手机容器 ============ */
.stage {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--stage-bg);
}
.app {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
@media (min-width: 620px) and (min-height: 620px) {
  .stage { padding: 22px 0; }
  .app {
    width: 430px;
    height: min(900px, calc(100dvh - 44px));
    border-radius: 34px;
    box-shadow: 0 40px 90px rgba(8, 30, 60, .3), 0 0 0 1px rgba(255, 255, 255, .5);
  }
}
.scroller {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  background:
    radial-gradient(130% 300px at 50% -90px, var(--glow-a) 0%, transparent 72%),
    radial-gradient(80% 200px at 104% 20px, var(--glow-b) 0%, transparent 70%),
    var(--bg);
  transition: transform .36s cubic-bezier(.22, .9, .28, 1), border-radius .36s;
}
.scroller::-webkit-scrollbar { display: none; }
.app.drawer-open .scroller,
.app.drawer-open .bottom-nav {
  transform: translateX(53%) scale(.9);
  border-radius: 22px;
}
.app.drawer-open .scroller { box-shadow: -22px 0 60px rgba(8, 30, 60, .26); }
.app.drawer-open .bottom-nav { border-radius: 0 0 22px 22px; }
.bottom-nav { transition: transform .36s cubic-bezier(.22, .9, .28, 1), border-radius .36s; }

/* ============ 状态栏 ============ */
.statusbar {
  position: relative;
  z-index: 5;
  padding: calc(env(safe-area-inset-top) + 8px) 20px 0;
  height: calc(env(safe-area-inset-top) + 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .3px;
  pointer-events: none;
}
.sb-icons { display: flex; align-items: center; gap: 6px; }
.sb-net { font-size: 11.5px; font-weight: 700; letter-spacing: 0; }

/* ============ 顶部栏 ============ */
.sticky-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(180deg, var(--glass-2) 0%, var(--glass) 72%, rgba(255, 255, 255, 0) 100%);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
}
html[data-theme="dark"] .sticky-head {
  background: linear-gradient(180deg, rgba(14, 20, 28, .96) 0%, rgba(14, 20, 28, .82) 72%, rgba(14, 20, 28, 0) 100%);
}
.sticky-head.no-tabs { padding-bottom: 6px; }
.topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 8px;
}
.icon-btn {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--text);
}
.icon-btn:active { background: var(--icon-box); }
.ic { display: inline-flex; width: 20px; height: 20px; flex: 0 0 auto; }
.ic svg { width: 100%; height: 100%; display: block; }
.icon-btn .ic { width: 24px; height: 24px; }

.search-trigger {
  flex: 1;
  min-width: 0;
  height: 43px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border-radius: 22px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 4px 14px rgba(80, 140, 200, .08);
  color: var(--text-2);
  font-size: 15px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}
html[data-theme="dark"] .search-trigger { border-color: rgba(255, 255, 255, .06); }
.search-trigger .ic { color: var(--text-2); width: 19px; height: 19px; }
.search-trigger span:last-child { overflow: hidden; text-overflow: ellipsis; }

.cat-tabs {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 2px 18px 9px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  position: relative;
  flex: 0 0 auto;
  font-size: 17.5px;
  color: var(--text-2);
  padding: 3px 0 7px;
  white-space: nowrap;
  transition: color .18s;
}
.cat-tab.active {
  color: var(--text);
  font-size: 19.5px;
  font-weight: 800;
  letter-spacing: .2px;
}
.cat-tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 18px;
  height: 3px;
  border-radius: 3px;
  transform: translateX(-50%);
  background: var(--accent);
  opacity: .85;
}
.cat-tabs.hidden { display: none; }

/* ============ 页面 ============ */
.pages { position: relative; }
.page { display: none; padding-bottom: 96px; }
.page.active { display: block; animation: pageIn .28s ease both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.page-title {
  padding: 14px 18px 2px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.4px;
}
.page-sub { padding: 4px 18px 0; font-size: 13.5px; color: var(--text-2); }

/* ============ Banner ============ */
.hero {
  position: relative;
  margin: 2px 16px 0;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  box-shadow: 0 16px 34px rgba(30, 75, 130, .22);
  background: var(--chip);
  isolation: isolate;
}
.hero-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
.hero-bg { position: absolute; inset: 0; }
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 8, 16, .82) 0%, rgba(3, 8, 16, .3) 42%, rgba(0, 0, 0, 0) 72%);
}
.hero-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff9640, #ff5722);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  box-shadow: 0 4px 12px rgba(255, 90, 30, .35);
}
.hero-info {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 24px;
  color: #fff;
}
.hero-info h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .5px;
  line-height: 1.15;
  text-shadow: 0 3px 16px rgba(0, 0, 0, .5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-info p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .9);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}
.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 3;
}
.hero-dots button {
  width: 5px;
  height: 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .5);
  transition: all .25s;
}
.hero-dots button.active { width: 16px; background: #fff; }

/* ============ 海报艺术 ============ */
.art {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(160deg, var(--a1) 0%, var(--a2) 58%, var(--a3) 100%);
}
.art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(80% 55% at 18% 8%, rgba(255, 255, 255, .24) 0%, transparent 60%),
    linear-gradient(to top, rgba(2, 5, 10, .62) 0%, rgba(2, 5, 10, .18) 42%, transparent 68%);
}
.art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  pointer-events: none;
}
.art > svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.art-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: .5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
  pointer-events: none;
}
.art-caption {
  position: absolute;
  left: 11px;
  right: 10px;
  bottom: 10px;
  z-index: 4;
  color: #fff;
}
.art-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: "Noto Serif CJK SC", "Songti SC", "STSong", serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
}
.art-sub {
  display: block;
  margin-top: 3px;
  font-family: var(--font-main);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .6px;
  color: rgba(255, 255, 255, .68);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-bg .art-sub { display: none; }

/* ============ 快捷入口 ============ */
.quick-actions {
  display: flex;
  gap: 9px;
  margin: 14px 16px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.quick-actions::-webkit-scrollbar { display: none; }
.qa-btn {
  height: 49px;
  padding: 0 15px;
  border-radius: 14px;
  background: var(--chip);
  color: var(--chip-text);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
  transition: transform .15s ease;
}
html[data-theme="dark"] .qa-btn { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.qa-btn:active { transform: scale(.96); }
.qa-btn .ic { width: 18px; height: 18px; }

/* ============ 区块 / 榜单 ============ */
.section { margin-top: 22px; padding: 0 16px; }
.section-head { display: flex; align-items: center; gap: 10px; }
.section-head h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.4px;
  white-space: nowrap;
}
.period-tabs { display: flex; align-items: center; gap: 2px; }
.period {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--text-2);
  transition: all .18s;
}
.period.active {
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 700;
}
.more {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1px;
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
}
.more .ic { width: 14px; height: 14px; }

.rank-row {
  display: flex;
  gap: 11px;
  margin-top: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.rank-row::-webkit-scrollbar { display: none; }
.rank-card {
  flex: 0 0 30%;
  min-width: 0;
  scroll-snap-align: start;
  text-align: left;
}
.poster {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(25, 65, 115, .18);
  transition: transform .18s ease;
  background: var(--chip);
}
.rank-card:active .poster { transform: scale(.96); }
.rank-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  min-width: 34px;
  height: 29px;
  padding: 0 9px 0 7px;
  border-radius: 0 0 11px 0;
  display: flex;
  align-items: center;
  font-family: "Arial Black", "Helvetica Neue", sans-serif;
  font-size: 18px;
  font-weight: 900;
  font-style: italic;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.rank-badge.rb-1 { background: linear-gradient(180deg, #ff8d8d, #f74747); }
.rank-badge.rb-2 { background: linear-gradient(180deg, #ffc46b, #f78d1c); }
.rank-badge.rb-3 { background: linear-gradient(180deg, #ffd968, #f2b21c); }
.rank-badge.rb-more { background: rgba(10, 16, 26, .55); backdrop-filter: blur(4px); }
.update-chip {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 3px 7px 4px;
  border-radius: 9px 0 0 0;
  background: linear-gradient(90deg, #ffa33e, #ff6a00);
  color: #fff;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .2px;
  text-shadow: 0 1px 2px rgba(120, 40, 0, .3);
}
.rank-card .art-caption { bottom: 24px; }
.rank-card h3 {
  margin-top: 7px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.chip {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
}
.chip.year { background: var(--year-bg); color: var(--year-text); }
.chip.genre { background: var(--genre-bg); color: var(--genre-text); }

.upcoming-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.upcoming-row::-webkit-scrollbar { display: none; }
.up-card {
  flex: 0 0 31%;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 18px rgba(25, 65, 115, .16);
  scroll-snap-align: start;
  transition: transform .18s ease;
  background: var(--chip);
}
.up-card:active { transform: scale(.96); }
.up-card .art-title { font-size: 14px; -webkit-line-clamp: 2; }

/* ============ 底部导航 ============ */
.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  padding: 7px 4px calc(6px + env(safe-area-inset-bottom));
  background: var(--nav-bg);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border-top: 1px solid var(--line);
}
.bn-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 2px 0;
  color: var(--text-2);
  transition: color .18s;
}
.bn-ic { width: 23px; height: 23px; display: block; }
.bn-ic svg { width: 100%; height: 100%; display: block; }
.bn-label { font-size: 10.5px; letter-spacing: .2px; }
.bn-item.active { color: var(--accent); }
.bn-item.active .bn-label { font-weight: 600; }

/* ============ 侧边栏 ============ */
.drawer-mask {
  position: absolute;
  inset: 0;
  z-index: 55;
  background: rgba(8, 20, 35, .34);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s, visibility .28s;
}
.drawer-mask.show { opacity: 1; visibility: visible; }
.drawer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  width: 58%;
  max-width: 268px;
  background: var(--drawer-bg);
  border-radius: 0 28px 28px 0;
  box-shadow: 30px 0 70px rgba(12, 40, 80, .22);
  transform: translateX(-103%);
  transition: transform .34s cubic-bezier(.22, .9, .28, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.drawer.show { transform: none; }
.drawer-scroll {
  flex: 1;
  overflow-y: auto;
  padding: calc(env(safe-area-inset-top) + 28px) 20px calc(22px + env(safe-area-inset-bottom));
  scrollbar-width: none;
}
.drawer-scroll::-webkit-scrollbar { display: none; }
.drawer-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 2px 4px 22px;
  text-align: left;
}
.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: linear-gradient(160deg, #ffffff, #e6f1fb);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 6px 16px rgba(60, 110, 170, .14);
  color: #97a4b4;
  overflow: hidden;
}
html[data-theme="dark"] .avatar { background: linear-gradient(160deg, #26303d, #1a222d); border-color: rgba(255, 255, 255, .08); color: #8b98a8; }
.avatar-lg { width: 58px; height: 58px; }
.avatar-xl { width: 64px; height: 64px; }
.avatar svg { width: 55%; height: 55%; }
.dp-text { display: flex; flex-direction: column; min-width: 0; }
.dp-text strong { font-size: 21px; font-weight: 700; letter-spacing: .4px; }
.dp-text span { margin-top: 3px; font-size: 13px; color: var(--text-2); }
.drawer-menu { display: flex; flex-direction: column; gap: 2px; }
.dm-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 8px 2px;
  font-size: 16.5px;
  color: var(--text);
  text-align: left;
}
.dm-ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--icon-box);
  display: grid;
  place-items: center;
  color: var(--text);
  flex: 0 0 auto;
}
.dm-ic svg { width: 21px; height: 21px; }
.dm-item:active .dm-ic { transform: scale(.94); }
.drawer-divider { height: 1px; background: var(--line); margin: 15px 2px; }
.drawer-section { margin-bottom: 18px; }
.ds-label { font-size: 13px; color: var(--text-2); margin-bottom: 10px; }
.theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.opt {
  height: 47px;
  border-radius: 12px;
  background: var(--icon-box);
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 15px;
  color: var(--text-2);
  transition: all .18s;
}
.opt .ic { width: 18px; height: 18px; }
.opt.system { grid-column: 1 / -1; font-size: 14px; }
.opt.active {
  background: #f2fbff;
  border-color: #8fd3f6;
  color: #2196e8;
  font-weight: 600;
}
html[data-theme="dark"] .opt.active {
  background: rgba(63, 148, 255, .14);
  border-color: rgba(107, 181, 255, .5);
  color: #7cc2ff;
}
.font-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.font-grid .opt { height: 45px; font-size: 14.5px; }
.drawer-version { margin-top: 14px; text-align: center; font-size: 11px; color: var(--text-3); letter-spacing: .3px; }

/* ============ 启动弹窗 ============ */
.modal-mask {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 16, 26, .44);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.modal-mask.show { opacity: 1; visibility: visible; }
.modal-card {
  width: 100%;
  max-width: 340px;
  max-height: 88%;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 26px;
  padding: 22px 22px 20px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .32);
  transform: scale(.92) translateY(10px);
  transition: transform .32s cubic-bezier(.2, .9, .3, 1.15);
}
.modal-mask.show .modal-card { transform: none; }
.modal-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-bottom: 12px;
}
.modal-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e6f3ff;
  color: #2f80ed;
  display: grid;
  place-items: center;
}
html[data-theme="dark"] .modal-icon { background: rgba(63, 148, 255, .16); color: #7cc2ff; }
.modal-icon svg { width: 27px; height: 27px; }
.modal-head h3 { font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.modal-body p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-2);
  margin-bottom: 10px;
}
.modal-body .highlight { color: var(--text); font-weight: 600; font-size: 14.5px; }
.modal-btn {
  width: 100%;
  height: 52px;
  margin-top: 6px;
  border-radius: 16px;
  background: linear-gradient(90deg, #7ce8d5, #a8e64c);
  color: #0f3f36;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  box-shadow: 0 10px 26px rgba(110, 210, 150, .35);
  transition: transform .15s;
}
.modal-btn:active { transform: scale(.97); }

/* ============ 搜索 ============ */
.search-overlay {
  position: absolute;
  inset: 0;
  z-index: 70;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .22s, transform .25s, visibility .22s;
}
.search-overlay.show { opacity: 1; visibility: visible; transform: none; }
.search-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(env(safe-area-inset-top) + 12px) 12px 12px;
  border-bottom: 1px solid var(--line);
}
.search-input-wrap {
  flex: 1;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border-radius: 21px;
  background: var(--chip);
  color: var(--text-2);
}
.search-input-wrap input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: none;
  font-size: 16px;
  color: var(--text);
}
.search-input-wrap input::placeholder { color: var(--text-3); }
.search-go { font-size: 14.5px; color: var(--accent); font-weight: 600; padding: 0 4px; }
.search-body { flex: 1; overflow-y: auto; padding: 18px 16px 40px; scrollbar-width: none; }
.search-body::-webkit-scrollbar { display: none; }
.search-label { font-size: 14px; font-weight: 700; margin: 4px 0 12px; }
.hot-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.hot-chip { padding: 7px 13px; border-radius: 999px; background: var(--chip); color: var(--chip-text); font-size: 13px; }
.search-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sr-card { text-align: left; }
.sr-card .poster { aspect-ratio: 3 / 4; }
.sr-card .art-title { font-size: 13px; -webkit-line-clamp: 2; }
.sr-card h4 { margin-top: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { padding: 60px 20px; text-align: center; color: var(--text-2); font-size: 14px; }
.empty .ic { width: 46px; height: 46px; margin: 0 auto 14px; opacity: .5; }

/* ============ 弹层 ============ */
.sheet-mask {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  background: rgba(8, 18, 30, .44);
  opacity: 0;
  visibility: hidden;
  transition: opacity .26s, visibility .26s;
}
.sheet-mask.show { opacity: 1; visibility: visible; }
.sheet {
  width: 100%;
  max-height: 84%;
  overflow-y: auto;
  scrollbar-width: none;
  background: var(--sheet-bg);
  border-radius: 24px 24px 0 0;
  padding: 8px 20px calc(22px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform .32s cubic-bezier(.2, .9, .3, 1);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, .2);
}
.sheet-mask.show .sheet { transform: none; }
.sheet::-webkit-scrollbar { display: none; }
.sheet-grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: 6px auto 16px; }
.sheet-head h3, .sheet > h3 { font-size: 20px; font-weight: 800; }
.sheet-sub { margin-top: 5px; font-size: 12.5px; color: var(--text-2); }

.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.cat-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--chip);
  color: var(--chip-text);
  font-size: 15px;
  border: 2px solid transparent;
}
.cat-cell.active { border-color: #8fd3f6; color: var(--accent-text); font-weight: 700; }
.cat-dot { width: 22px; height: 22px; border-radius: 7px; flex: 0 0 auto; }

.rank-list { margin-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.rl-item { display: flex; align-items: center; gap: 12px; padding: 7px 0; text-align: left; }
.rl-no { width: 24px; font-size: 15px; font-weight: 800; color: var(--text-3); font-style: italic; flex: 0 0 auto; }
.rl-no.top { color: #f2762f; }
.rl-art { width: 42px; height: 56px; border-radius: 8px; overflow: hidden; flex: 0 0 auto; }
.rl-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rl-info strong { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-info span { font-size: 11.5px; color: var(--text-2); }
.rl-play { width: 30px; height: 30px; border-radius: 50%; background: var(--chip); color: var(--accent); display: grid; place-items: center; flex: 0 0 auto; }
.rl-play svg { width: 14px; height: 14px; }

.collection { margin-top: 18px; }
.col-head { display: flex; align-items: baseline; gap: 8px; }
.col-head strong { font-size: 15px; }
.col-head span { font-size: 11.5px; color: var(--text-2); }
.col-row { display: flex; gap: 9px; margin-top: 9px; }
.col-art { flex: 1; aspect-ratio: 3 / 4; border-radius: 11px; overflow: hidden; min-width: 0; }
.col-art .art-caption { display: none; }

.detail-top { display: flex; gap: 14px; margin-top: 4px; }
.detail-poster { width: 108px; height: 144px; border-radius: 14px; overflow: hidden; flex: 0 0 auto; box-shadow: var(--shadow); }
.detail-info { flex: 1; min-width: 0; padding-top: 4px; }
.detail-info h3 { font-size: 21px; font-weight: 800; line-height: 1.2; }
.detail-info .chips { margin-top: 8px; }
.detail-desc { margin-top: 10px; font-size: 12.5px; line-height: 1.65; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.detail-actions { display: flex; gap: 10px; margin-top: 18px; }
.btn-primary {
  flex: 1;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3f92ff, #2f6fed);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0 10px 24px rgba(47, 111, 237, .3);
}
.btn-primary:active { transform: scale(.98); }
.btn-primary svg { width: 18px; height: 18px; }
.btn-ghost {
  width: 108px;
  height: 50px;
  border-radius: 14px;
  background: var(--chip);
  color: var(--text);
  font-size: 14.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-ghost svg { width: 17px; height: 17px; }
.btn-ghost.faved { color: #f4526a; }
.detail-meta { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); }

/* 表单类弹层 */
.form-field { margin-top: 16px; }
.form-input {
  width: 100%;
  height: 48px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--chip);
  padding: 0 14px;
  font-size: 16px;
  color: var(--text);
  outline: none;
}
.form-input::placeholder { color: var(--text-3); }
.form-input:focus { border-color: var(--accent); }
.code-row { display: flex; gap: 9px; margin-top: 10px; }
.code-row .form-input { flex: 1; }
.code-btn { flex: 0 0 auto; padding: 0 16px; height: 48px; border-radius: 13px; background: var(--chip); color: var(--accent); font-size: 14px; font-weight: 600; }
.form-tip { margin-top: 12px; font-size: 11.5px; color: var(--text-3); text-align: center; }
.sheet .btn-primary { margin-top: 18px; }
.sheet textarea.form-input { height: 116px; padding: 13px 14px; resize: none; line-height: 1.6; }
.empty-state { text-align: center; padding: 34px 10px 18px; }
.empty-state .empty-ico { width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--chip); color: var(--text-2); }
.empty-state .empty-ico svg { width: 28px; height: 28px; }
.empty-state strong { display: block; font-size: 15.5px; }
.empty-state p { margin-top: 6px; font-size: 12.5px; color: var(--text-2); }

/* ============ 其他页面 ============ */
.shorts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; padding: 16px 16px 0; }
.short-card { text-align: left; }
.short-card .poster { aspect-ratio: 3 / 4; }
.short-card .art-title { font-size: 16px; }
.short-card .art-caption { bottom: 26px; }
.eps-chip {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 3px 8px 4px;
  border-radius: 10px 0 0 0;
  background: linear-gradient(90deg, #ffa33e, #ff6a00);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
}
.short-meta { margin-top: 7px; }
.short-meta h4 { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.short-meta p { margin-top: 4px; font-size: 11.5px; color: var(--text-2); }

.section-title { display: flex; align-items: baseline; gap: 8px; padding: 22px 18px 0; }
.section-title h3 { font-size: 19px; font-weight: 800; }
.section-title span { font-size: 12px; color: var(--text-2); }
.continue-row { display: flex; gap: 12px; overflow-x: auto; padding: 12px 16px 4px; scrollbar-width: none; }
.continue-row::-webkit-scrollbar { display: none; }
.continue-card { flex: 0 0 76%; border-radius: 16px; overflow: hidden; position: relative; aspect-ratio: 16 / 9; box-shadow: var(--shadow); text-align: left; }
.continue-card .art-caption { left: 12px; bottom: 30px; right: 12px; }
.continue-card .art-title { font-size: 16px; -webkit-line-clamp: 1; }
.continue-progress { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 6; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); }
.continue-progress i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #7fe3ff, #a8e64c); }
.continue-ep { position: absolute; right: 10px; top: 10px; z-index: 6; font-size: 10px; padding: 3px 7px; border-radius: 6px; background: rgba(0, 0, 0, .45); color: #fff; backdrop-filter: blur(4px); }
.history-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 12px 16px 0; }
.history-card { text-align: left; }
.history-card .poster { aspect-ratio: 3 / 4; }
.history-card .art-caption { display: none; }
.history-card h4 { margin-top: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chat-online { display: flex; align-items: center; gap: 6px; padding: 8px 18px 0; font-size: 12px; color: var(--text-2); }
.chat-online .dot { width: 6px; height: 6px; border-radius: 50%; background: #46c37b; box-shadow: 0 0 0 3px rgba(70, 195, 123, .16); }
.chat-list { padding: 16px 16px 0; display: flex; flex-direction: column; gap: 16px; }
.chat-msg { display: flex; gap: 9px; align-items: flex-start; }
.chat-msg.self { flex-direction: row-reverse; }
.chat-msg .avatar { width: 36px; height: 36px; font-size: 13px; font-weight: 700; color: #22303f; border: 0; box-shadow: none; }
.msg-body { max-width: 76%; }
.msg-meta { display: flex; align-items: baseline; gap: 7px; margin-bottom: 5px; }
.msg-meta b { font-size: 11.5px; color: var(--text-2); font-weight: 500; }
.msg-meta span { font-size: 10px; color: var(--text-3); }
.chat-msg.self .msg-meta { justify-content: flex-end; }
.msg-body p {
  display: inline-block;
  padding: 9px 12px;
  border-radius: 4px 14px 14px 14px;
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(30, 70, 120, .08);
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
  text-align: left;
}
.chat-msg.self .msg-body p { border-radius: 14px 4px 14px 14px; background: var(--accent); color: #fff; }
.chat-input { display: flex; gap: 9px; margin: 20px 16px 0; }
.chat-input input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  outline: none;
  border-radius: 22px;
  background: var(--chip);
  padding: 0 16px;
  font-size: 14px;
  color: var(--text);
}
.chat-input input::placeholder { color: var(--text-3); }
.chat-input button { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.chat-input button svg { width: 19px; height: 19px; }
.chat-online.off .dot { background: #a5afba; box-shadow: 0 0 0 3px rgba(165, 175, 186, .14); }
.chat-empty { padding: 42px 12px; text-align: center; color: var(--text-3); font-size: 12.5px; }
.chat-role { padding: 1px 5px; border-radius: 5px; background: rgba(47, 128, 237, .12); color: var(--accent); font-size: 9px; font-style: normal; font-weight: 600; }
.chat-msg.admin .msg-body p { background: rgba(47, 128, 237, .08); border: 1px solid rgba(47, 128, 237, .16); }
.chat-input input:disabled { opacity: .65; cursor: not-allowed; }
.chat-input button:disabled { opacity: .55; cursor: not-allowed; }
.chat-video-card { display: flex; align-items: center; gap: 10px; width: 238px; max-width: 100%; margin-top: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--text-1); box-shadow: var(--shadow); text-align: left; font-family: inherit; cursor: pointer; }
.chat-msg.self .chat-video-card { margin-left: auto; }
.chat-video-poster { display: block; flex: 0 0 54px; width: 54px; height: 70px; overflow: hidden; border-radius: 8px; }
.chat-video-poster .art { width: 100%; height: 100%; }
.chat-video-info { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 4px; }
.chat-video-info b { overflow: hidden; color: var(--text-1); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.chat-video-info > span { overflow: hidden; color: var(--text-3); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.chat-video-info i { color: var(--accent); font-size: 11px; font-style: normal; }
.chat-video-unavailable { display: block; margin-top: 6px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; color: var(--text-3); font-size: 11px; }

.rp-msg .msg-body { max-width: 84%; }
.rp-avatar { display: grid !important; place-items: center; background: linear-gradient(135deg, #ff6a5e, #d61f2c) !important; color: #fff !important; }
.rp-avatar svg { width: 19px; height: 19px; }
.chat-role.rp-role { background: rgba(214, 31, 44, .1); color: #d61f2c; }
.chat-rp-card {
  width: 268px;
  max-width: 100%;
  margin-top: 4px;
  padding: 12px 13px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #ff6a5e, #e5232f 58%, #b3121d);
  box-shadow: 0 10px 24px rgba(214, 31, 44, .26);
  animation: rpDrop .45s cubic-bezier(.2, .9, .3, 1.15) both;
}
.chat-rp-card.finished { background: linear-gradient(135deg, #9aa3af, #6b7480); box-shadow: none; }
.rp-top { display: flex; align-items: center; gap: 9px; }
.rp-ic { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 11px; background: rgba(255, 255, 255, .18); }
.rp-ic svg { width: 19px; height: 19px; }
.rp-title { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; text-align: left; }
.rp-title b { font-size: 14px; font-weight: 700; }
.rp-title i { font-size: 10.5px; font-style: normal; opacity: .85; }
.rp-btn {
  flex: 0 0 auto;
  min-width: 64px;
  height: 30px;
  padding: 0 13px;
  border: 0;
  border-radius: 15px;
  background: #ffe9a8;
  color: #a10f18;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease;
}
.rp-btn:active { transform: scale(.95); }
.rp-meta { display: flex; justify-content: space-between; margin-top: 9px; font-size: 10.5px; opacity: .85; }
.rp-winners { margin-top: 6px; overflow: hidden; font-size: 10.5px; opacity: .8; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.rp-mine { flex: 0 0 auto; font-size: 12px; font-weight: 600; color: #ffe9a8; }
.rp-mine b { font-size: 15px; }
.rp-state { flex: 0 0 auto; font-size: 11.5px; opacity: .8; }
@keyframes rpDrop {
  from { opacity: 0; transform: translateY(-14px) scale(.94); }
  to { opacity: 1; transform: none; }
}

.board-composer { margin: 16px 16px 0; background: var(--surface); border-radius: 16px; padding: 12px; box-shadow: var(--shadow); }
.board-composer textarea {
  width: 100%;
  border: 0;
  outline: none;
  resize: none;
  background: none;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  height: 62px;
}
.board-composer textarea::placeholder { color: var(--text-3); }
.bc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.bc-foot span { font-size: 11px; color: var(--text-3); }
.bc-foot button { padding: 7px 18px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; }
.board-list { padding: 6px 16px 0; }
.board-msg { padding: 16px 2px; border-bottom: 1px solid var(--line); display: flex; gap: 11px; }
.board-msg .avatar { width: 38px; height: 38px; font-size: 13px; font-weight: 700; color: #22303f; border: 0; box-shadow: none; }
.bm-body { flex: 1; min-width: 0; }
.bm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.bm-head b { font-size: 13.5px; }
.bm-head span { font-size: 10.5px; color: var(--text-3); white-space: nowrap; }
.bm-body p { margin-top: 6px; font-size: 13.5px; line-height: 1.65; color: var(--text); word-break: break-word; }

.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: calc(100% - 32px);
  margin: 16px 16px 0;
  padding: 18px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, #e9f5ff, #f7fbff);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: var(--shadow);
  text-align: left;
}
html[data-theme="dark"] .profile-card { background: linear-gradient(135deg, #17222f, #131a23); border-color: rgba(255, 255, 255, .06); }
.pf-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pf-text strong { font-size: 19px; font-weight: 700; }
.pf-text span { font-size: 12.5px; color: var(--text-2); }
.pf-arrow { color: var(--text-3); width: 18px; height: 18px; }
.pf-arrow svg { width: 100%; height: 100%; }
.stat-row { display: flex; margin: 14px 16px 0; background: var(--surface); border-radius: 16px; padding: 15px 0; box-shadow: 0 6px 20px rgba(30, 70, 120, .07); }
.stat { flex: 1; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 22px; background: var(--line); }
.stat strong { display: block; font-size: 19px; font-weight: 800; }
.stat span { display: block; margin-top: 3px; font-size: 11px; color: var(--text-2); }
.menu-card { margin: 14px 16px 0; background: var(--surface); border-radius: 16px; padding: 4px 14px; box-shadow: 0 6px 20px rgba(30, 70, 120, .07); }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 0; font-size: 14.5px; text-align: left; border-bottom: 1px solid var(--line); }
.menu-item:last-child { border-bottom: 0; }
.menu-item .ic { width: 20px; height: 20px; color: var(--text-2); }
.menu-item .mi-arrow { margin-left: auto; width: 15px; height: 15px; color: var(--text-3); }
.menu-item .mi-tag { margin-left: auto; font-size: 11px; color: var(--text-3); }
.version { padding: 26px 0 8px; text-align: center; font-size: 11px; color: var(--text-3); }

/* ============ 播放器 ============ */
.player {
  position: absolute;
  inset: 0;
  z-index: 110;
  background: #04070b;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.player.show { opacity: 1; visibility: visible; }
.player-bg { position: absolute; inset: 0; z-index: 0; }
.player-bg .art { height: 100%; }
.player-bg .art::before { background: radial-gradient(70% 50% at 50% 40%, rgba(255, 255, 255, .06), rgba(0, 0, 0, .55)); }
.player-shade { position: absolute; inset: 0; z-index: 1; background: radial-gradient(circle at 50% 45%, rgba(0, 0, 0, .05), rgba(0, 0, 0, .72) 78%); }
.player-top { position: absolute; top: calc(env(safe-area-inset-top) + 14px); left: 16px; right: 16px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.player-close { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .12); backdrop-filter: blur(8px); color: #fff; display: grid; place-items: center; }
.player-close svg { width: 21px; height: 21px; }
.player-flag { font-size: 11.5px; color: rgba(255, 255, 255, .62); letter-spacing: .5px; }
.player-spacer { width: 38px; height: 38px; }
.player-center {
  position: absolute;
  top: 46%;
  left: 50%;
  z-index: 5;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
  transition: transform .18s;
}
.player-center:active { transform: translate(-50%, -50%) scale(.92); }
.player-center svg { width: 30px; height: 30px; }
.player-bottom { position: absolute; left: 22px; right: 22px; bottom: calc(env(safe-area-inset-bottom) + 30px); z-index: 5; }
.player-title { font-size: 20px; font-weight: 700; margin-bottom: 16px; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.player-time { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255, 255, 255, .65); margin-bottom: 7px; font-variant-numeric: tabular-nums; }
.player-bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.player-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, #7fe3ff, #a8e64c); transition: width 1s linear; }

/* ============ Toast ============ */
.toast {
  position: absolute;
  left: 50%;
  bottom: 102px;
  z-index: 130;
  max-width: 80%;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(18, 24, 32, .92);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: all .24s;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ============ 滚动锁定 ============ */
.app.locked .scroller { overflow: hidden; }

@media (max-width: 375px) {
  .section-head h2 { font-size: 20px; }
  .period { padding: 4px 7px; font-size: 12.5px; }
  .more { font-size: 12px; }
  .cat-tab { font-size: 16.5px; }
  .cat-tab.active { font-size: 18px; }
  .qa-btn { padding: 0 12px; font-size: 14px; }
  .hero-info h1 { font-size: 23px; }
}

/* ============ 影片详情页 ============ */
.app.detail-open .bottom-nav { display: none; }
.detail-page {
  position: absolute;
  inset: 0;
  z-index: 85;
  background: var(--bg);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s, visibility .22s;
}
.detail-page.show { opacity: 1; visibility: visible; }
.dp-scroll {
  height: 100%;
  overflow-y: auto;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
  scrollbar-width: none;
}
.dp-scroll::-webkit-scrollbar { display: none; }
.dp-video { position: relative; aspect-ratio: 16 / 9; max-height: 45vh; background: #04070b; overflow: hidden; }
.dp-video-art { position: absolute; inset: 0; }
.dp-video-art .art { transform: scale(1.04); }
.dp-video-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.08) 42%, rgba(0,0,0,.72) 100%);
}
.dp-back {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 10px);
  left: 14px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,.34);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
}
.dp-back svg { width: 20px; height: 20px; }
.dp-lic {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 18px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 9.5px;
  color: rgba(255,255,255,.5);
}
.dp-big-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.42);
  backdrop-filter: blur(10px);
  color: #fff;
  display: grid;
  place-items: center;
}
.dp-big-play svg { width: 23px; height: 23px; margin-left: 3px; }
.dp-video-foot {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 24px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255,255,255,.72);
}
.dp-panel {
  position: relative;
  z-index: 2;
  margin-top: -16px;
  border-radius: 20px 20px 0 0;
  background: var(--bg);
  padding: 0 6px 6px;
}
.dp-tabs { display: flex; align-items: center; gap: 22px; padding: 14px 12px 0; border-bottom: 1px solid var(--line); }
.dp-tab { position: relative; padding-bottom: 11px; font-size: 16px; font-weight: 600; color: var(--text-2); }
.dp-tab.active { color: var(--accent-text); }
.dp-tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent-text);
}
.dp-tabs-right { margin-left: auto; display: flex; gap: 8px; }
.dp-mini { padding: 5px 12px; border-radius: 999px; background: var(--chip); color: var(--text-2); font-size: 11.5px; }
.dp-mini.line { color: var(--accent-text); }
.dp-body { padding: 12px 12px 0; }
.dp-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 190, 80, .35);
  background: linear-gradient(120deg, #fff7e2, #fffdf5);
}
html[data-theme="dark"] .dp-member {
  border-color: rgba(255, 190, 80, .22);
  background: linear-gradient(120deg, rgba(122, 88, 18, .32), rgba(58, 44, 14, .22));
}
.dp-crown { flex: none; width: 34px; height: 34px; border-radius: 9px; background: #ffc94d; color: #7a4a00; display: grid; place-items: center; }
.dp-crown svg { width: 20px; height: 20px; }
.dp-member-text { display: flex; flex-direction: column; gap: 2px; }
.dp-member-text b { font-size: 14px; color: #8a5a00; }
html[data-theme="dark"] .dp-member-text b { color: #ffcf7a; }
.dp-member-text i { font-style: normal; font-size: 11.5px; color: #b08a3c; }
.dp-member-btn {
  margin-left: auto;
  padding: 9px 16px;
  border-radius: 999px;
  background: #2f9df4;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(47, 157, 244, .35);
}
.dp-title-row { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 0 2px; text-align: left; }
.dp-title-row h2 { font-size: 23px; font-weight: 800; letter-spacing: -.3px; }
.dp-chev { color: var(--text-3); line-height: 0; }
.dp-chev svg { width: 18px; height: 18px; }
.dp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dp-chips .chip.score { background: var(--accent-soft); color: var(--accent-text); font-weight: 700; }
.dp-sec-head { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 10px; }
.dp-sec-head h3 { font-size: 16.5px; font-weight: 800; }
.dp-sec-head span { display: flex; align-items: center; gap: 2px; font-size: 12px; color: var(--text-2); }
.dp-sec-head svg { width: 14px; height: 14px; }
.dp-sources, .dp-eps { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 4px; scrollbar-width: none; }
.dp-sources::-webkit-scrollbar, .dp-eps::-webkit-scrollbar { display: none; }
.dp-source { position: relative; flex: none; padding: 10px 16px; border: 1.5px solid transparent; border-radius: 12px; background: var(--chip); color: var(--chip-text); font-size: 13.5px; }
.dp-source.active { border-color: #3aa8f5; background: transparent; color: var(--accent-text); font-weight: 700; }
.src-n {
  position: absolute;
  top: -7px;
  right: -4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 9.5px;
  font-style: normal;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}
.dp-ep { flex: none; padding: 11px 16px; border: 1.5px solid transparent; border-radius: 12px; background: var(--chip); color: var(--chip-text); font-size: 13.5px; }
.dp-ep.active { border-color: #3aa8f5; background: transparent; color: var(--accent-text); font-weight: 700; }
.dp-like { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-bottom: 12px; }
.dp-like-card .poster { display: block; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--chip); }
.dp-like-card h4 { margin-top: 7px; font-size: 12.5px; font-weight: 600; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  justify-content: space-around;
  padding: 10px 6px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
}
.dp-actions button { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 54px; font-size: 10.5px; color: var(--text-2); }
.dp-actions svg { width: 21px; height: 21px; }
.dp-actions button.on { color: var(--accent-text); }
.dp-actions button.on svg { fill: currentColor; }
.dp-comments { padding: 4px 0 2px; }
.dp-comment { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dp-comment .avatar { flex: none; width: 36px; height: 36px; font-size: 13px; color: #24537d; }
.cm-body b { font-size: 13px; }
.cm-body p { margin-top: 4px; font-size: 13.5px; line-height: 1.5; }
.cm-body span { display: block; margin-top: 6px; font-size: 10.5px; color: var(--text-3); }
.dp-comment-input { display: flex; gap: 8px; margin-top: 12px; }
.dp-comment-input input { flex: 1; height: 42px; border: 0; border-radius: 999px; background: var(--chip); padding: 0 16px; font-size: 14px; color: var(--text); }
.dp-comment-input button { padding: 0 18px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; }

/* ============ 放映厅专场 ============ */
.theater-title { padding: 22px 0 4px; text-align: center; font-size: 20px; font-weight: 800; letter-spacing: .5px; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 12px; padding: 16px 16px 12px; }
.spec-thumb { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 18px rgba(20, 40, 70, .12); }
.spec-avatar {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px 2px 2px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .4);
  color: #fff;
  font-size: 10.5px;
  backdrop-filter: blur(6px);
}
.spec-avatar i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: #2b4a66; font-size: 10px; font-weight: 700; font-style: normal; }
.spec-name { display: flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 15px; font-weight: 700; }
.spec-name::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #f2453d; }
.spec-sub { display: block; margin-top: 5px; font-size: 12px; color: var(--text-2); }

/* ============ 我的 · 游客态 ============ */
.profile-card.guest { background: linear-gradient(135deg, #cfe3f3, #eef6fd); }
html[data-theme="dark"] .profile-card.guest { background: linear-gradient(135deg, #1d3347, #16222f); }
.profile-card.guest .avatar { background: #7fa3c0; color: #fff; }
.profile-card.guest .pf-name strong { color: #163a53; }
html[data-theme="dark"] .profile-card.guest .pf-name strong { color: #eaf4fd; }
.sticky-head.no-top { display: none; }
.pf-text { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.pf-name { display: flex; align-items: center; gap: 8px; }
.pf-name strong { font-size: 21px; font-weight: 800; }
.pf-text > span:last-child { font-size: 13px; color: var(--text-2); }
.guest-count {
  padding: 2px 8px;
  border: 1px solid rgba(90, 170, 220, .45);
  border-radius: 999px;
  background: rgba(120, 190, 235, .22);
  color: #3d7ea8;
  font-size: 11px;
  font-style: normal;
}
html[data-theme="dark"] .guest-count { color: #8fc9ec; }

/* ============ 登录 / 注册 ============ */
.lg-tabs { display: flex; justify-content: space-around; padding: 2px 40px 0; }
.lg-tabs button { position: relative; padding: 6px 10px 12px; font-size: 18px; font-weight: 600; color: var(--text-2); }
.lg-tabs button.active { font-weight: 800; color: var(--text); }
.lg-tabs button.active::after { content: ""; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%); width: 26px; height: 3px; border-radius: 3px; background: #49b6ef; }
.lg-pane { padding: 8px 4px 4px; }
.lg-title { margin-top: 14px; font-size: 26px; font-weight: 800; letter-spacing: -.4px; }
.lg-sub { margin-top: 8px; font-size: 14px; color: var(--text-2); }
.lg-field { position: relative; margin-top: 14px; }
.lg-field input { width: 100%; height: 52px; border: 0; border-radius: 13px; background: var(--chip); padding: 0 46px; font-size: 15px; color: var(--text); }
.lg-field input::placeholder { color: var(--text-3); }
.lg-ic { position: absolute; left: 15px; top: 16px; line-height: 0; color: var(--text-3); }
.lg-ic svg { width: 20px; height: 20px; }
.lg-eye { position: absolute; right: 8px; top: 8px; display: grid; place-items: center; width: 36px; height: 36px; color: var(--text-3); }
.lg-eye svg { width: 20px; height: 20px; }
.lg-row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.lg-check { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); }
.lg-check i { display: grid; place-items: center; width: 17px; height: 17px; border: 1.5px solid var(--line-strong); border-radius: 4px; color: #fff; }
.lg-check.on i { border-color: #49b6ef; background: #49b6ef; }
.lg-check i svg { width: 12px; height: 12px; }
.lg-forget { font-size: 13px; color: var(--accent-text); }
.lg-submit { width: 100%; height: 52px; margin-top: 20px; border-radius: 26px; background: #35b7f2; color: #07334b; font-size: 18px; font-weight: 800; letter-spacing: 2px; box-shadow: 0 10px 22px rgba(53, 183, 242, .35); }
.lg-submit:active { transform: scale(.985); }
.lg-tip { margin-top: 12px; font-size: 11.5px; line-height: 1.6; color: var(--text-3); }
.lg-tip.center { text-align: center; }

/* ============ 播放器增强 ============ */
.sheet-mask.above-detail { z-index: 95; }
.sheet-mask.above-player { z-index: 120; }
.ep-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin-top: 14px; max-height: 50vh; overflow-y: auto; scrollbar-width: none; }
.ep-grid::-webkit-scrollbar { display: none; }
.ep-cell { height: 44px; border-radius: 11px; background: var(--chip); color: var(--chip-text); font-size: 14px; }
.ep-cell.active { background: var(--accent); color: #fff; font-weight: 700; }
.player-head-text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; margin-left: 4px; }
.player-head-text h3 { overflow: hidden; font-size: 14.5px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.player-head-text span { font-size: 10.5px; color: rgba(255, 255, 255, .5); }
.player-member { flex: none; padding: 6px 10px; border-radius: 999px; background: linear-gradient(100deg, #e2a93f, #c9a05b); color: #3a2700; font-size: 10.5px; font-weight: 800; box-shadow: 0 4px 12px rgba(200, 160, 60, .35); }
.danmaku { position: absolute; inset: calc(env(safe-area-inset-top) + 66px) 0 46%; z-index: 4; overflow: hidden; pointer-events: none; }
.dm {
  position: absolute;
  left: 100%;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 600;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .85);
  animation-name: dmMove;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}
@keyframes dmMove { from { transform: translateX(0); } to { transform: translateX(-560px); } }
.player-bottom { left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 14px); display: flex; flex-direction: column; gap: 9px; }
.player-time { align-items: center; gap: 10px; margin-bottom: 0; font-size: 10.5px; }
.player-time .player-bar { flex: 1; height: 3px; }
.player-time .player-bar i { background: linear-gradient(90deg, #ff8a7a, #ffb15c); }
.player-tools { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 2px 0; scrollbar-width: none; }
.player-tools::-webkit-scrollbar { display: none; }
.pt-btn { display: grid; flex: none; place-items: center; min-width: 30px; height: 30px; color: #fff; font-size: 12px; font-weight: 700; }
.pt-btn svg { width: 19px; height: 19px; }
.pt-btn.on { color: #7fd7ff; }
.pt-main svg { width: 24px; height: 24px; }
.pt-text { flex: none; padding: 6px 4px; font-size: 12px; color: rgba(255, 255, 255, .85); }
.player-input { display: flex; gap: 8px; }
.player-input input { flex: 1; height: 34px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); padding: 0 14px; font-size: 12px; color: #fff; }
.player-input input::placeholder { color: rgba(255, 255, 255, .5); }
.player-input button { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .18); color: #fff; font-size: 12px; }

/* ============ 播放器最大化 / 横屏 ============ */
.player-max {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
}
.player-max svg { width: 18px; height: 18px; }
.player.max .player-top { gap: 7px; }
.player.max .player-member { padding: 6px 9px; font-size: 10px; }
html.play-max { background: #000; }
html.play-max body { background: #000; }
html.play-max .stage { padding: 0; background: #000; }
html.play-max .app {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}
html.play-max .player { inset: 0; width: 100vw; height: 100dvh; }
.player:fullscreen { inset: 0; width: 100vw; height: 100vh; border-radius: 0; }

/* 竖屏设备最大化时旋转为横版全屏 */
html.play-max .player.rotate,
.player.rotate:fullscreen,
.player.rotate {
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: 100dvh;
  height: 100vw;
  border-radius: 0;
  overflow: hidden;
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center center;
}

.player.wide .player-top { top: max(14px, env(safe-area-inset-top)); left: 24px; right: 24px; }
.player.wide .player-head-text { flex-direction: row; align-items: baseline; gap: 10px; }
.player.wide .player-head-text h3 { font-size: 17px; }
.player.wide .player-member { padding: 7px 12px; font-size: 11.5px; }
.player.wide .player-bottom {
  left: 24px;
  right: 24px;
  bottom: max(14px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "time time" "tools input";
  gap: 8px 18px;
  align-items: center;
}
.player.wide .player-time { grid-area: time; }
.player.wide .player-tools { grid-area: tools; }
.player.wide .player-input { grid-area: input; width: 100%; max-width: 460px; }
.player.wide .player-center { top: 50%; }
.player.wide .danmaku { inset: 72px 0 104px 44%; }

/* ===== 分享推荐票 ===== */
.share-mask {
  position: fixed;
  inset: 0;
  z-index: 115;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(12, 16, 22, 0.66);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.share-mask.show { opacity: 1; visibility: visible; pointer-events: auto; }
.share-wrap {
  width: 100%;
  max-width: 352px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  scrollbar-width: none;
}
.share-wrap::-webkit-scrollbar { display: none; }
.share-ticket {
  background: #2a1710;
  padding: 10px;
  border-radius: 30px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
}
.share-inner {
  position: relative;
  background: linear-gradient(180deg, #fffaf0 0%, #fdf3e2 100%);
  border-radius: 21px;
  padding: 18px 16px 20px;
  color: #3b2a1c;
  text-align: center;
}
.st-head { display: flex; align-items: center; justify-content: space-between; }
.st-pass {
  background: #26160f;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.4px;
  padding: 5px 12px;
  border-radius: 999px;
}
.st-admit { font-size: 9.5px; font-weight: 700; letter-spacing: 2.4px; color: #a3907a; }
.st-logo {
  width: 62px;
  height: 62px;
  margin: 14px auto 0;
  border-radius: 17px;
  background: linear-gradient(145deg, #ff9bb5, #f0527f 60%, #d63567);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 18px rgba(240, 82, 127, 0.35);
}
.st-logo svg { width: 28px; height: 28px; }
.st-name { font-size: 23px; font-weight: 800; letter-spacing: 2px; margin: 10px 0 0; }
.st-desc { font-size: 12.5px; line-height: 1.8; color: #8a7765; margin: 10px 4px 0; }
.st-invite {
  margin-top: 14px;
  padding: 12px;
  background: #fffaef;
  border: 1px solid #f4e6cf;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.st-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffd3df, #f7a1bb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: none;
}
.st-avatar svg { width: 22px; height: 22px; }
.st-inv-main { min-width: 0; }
.st-inv-main b { display: block; font-size: 12.5px; color: #4a3728; }
.st-inv-main i { display: block; font-style: normal; font-size: 10.5px; color: #a2917d; margin-top: 3px; }
.st-inv-main em { display: block; font-style: normal; font-size: 10.5px; font-weight: 700; color: #d29a3a; margin-top: 6px; }
.st-divider { position: relative; height: 26px; margin: 6px -16px 0; }
.st-divider::before {
  content: "";
  position: absolute;
  left: 30px;
  right: 30px;
  top: 50%;
  border-top: 2px dashed #e3d2b6;
}
.st-divider i {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  border-radius: 50%;
  background: #2a1710;
}
.st-divider i:first-child { left: -12px; }
.st-divider i:last-child { right: -12px; }
.st-bottom { display: flex; align-items: center; gap: 14px; margin-top: 12px; text-align: left; }
.st-qr {
  width: 92px;
  height: 92px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(59, 42, 28, 0.12);
  flex: none;
}
.st-qr canvas { width: 100%; height: 100%; display: block; border-radius: 6px; }
.st-qr-info { flex: 1; min-width: 0; }
.st-qr-info > span { display: block; }
.st-qr-kicker { font-size: 9px; font-weight: 700; letter-spacing: 1.6px; color: #b3a28d; }
.st-qr-title { font-size: 16.5px; font-weight: 800; margin-top: 4px; }
.st-qr-sub { font-size: 10.5px; color: #a2917d; margin-top: 3px; }
.st-code { font-size: 12px; font-weight: 800; color: #c8912f; margin-top: 6px; }
.st-code b { font-size: 14px; letter-spacing: 1.6px; margin-left: 4px; }
.share-btns { display: flex; gap: 12px; }
.share-btns button {
  flex: 1;
  height: 50px;
  border: 0;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
#shareCancel { background: rgba(255, 255, 255, 0.94); color: #6f6a63; }
#shareChat { padding: 0 4px; background: #2f80ed; color: #fff; font-size: 13px; }
#shareChat:disabled { opacity: .6; cursor: not-allowed; }
#shareDo {
  background: linear-gradient(135deg, #cb5cf6, #a53af0);
  color: #fff;
  box-shadow: 0 10px 22px rgba(170, 60, 240, 0.4);
}

/* ===== 我的（青竹主题） ===== */
#pageProfile {
  position: relative;
  padding: 0 0 96px;
  background:
    radial-gradient(120% 60% at 88% 0%, #eefcf2 0%, rgba(238, 252, 242, 0) 58%),
    linear-gradient(180deg, #d8f2e2 0%, #e9f8ef 34%, #f6fcf8 62%, #ffffff 100%);
  min-height: 100%;
  overflow: hidden;
}
.pf-deco { position: absolute; top: -8px; left: -14px; width: 190px; pointer-events: none; }
.pf-deco svg { width: 100%; height: auto; display: block; }
.pf-hero { position: relative; padding: 14px 18px 0; }
.pf-top-actions {
  display: flex;
  align-items: center;
  width: max-content;
  margin-left: auto;
  padding: 5px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 16px rgba(60, 120, 90, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pf-top-actions button { width: 34px; height: 34px; display: grid; place-items: center; color: #3c5b48; }
.pf-top-actions button svg { width: 19px; height: 19px; }
.pf-top-actions i { width: 1px; height: 15px; background: rgba(59, 90, 70, 0.16); }
.pf-id { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 6px; text-align: left; }
.pf-avatar {
  position: relative;
  width: 76px;
  height: 76px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #4d7d61;
  background: linear-gradient(145deg, #d5eedd, #a9dcc1);
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(58, 110, 82, 0.18);
}
.pf-avatar > svg { width: 36px; height: 36px; }
.pf-crown {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #f3c96a, #c9922f);
  border: 2px solid #eefaf1;
}
.pf-crown svg { width: 13px; height: 13px; }
.pf-id-text { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.pf-nm { display: flex; align-items: center; gap: 6px; font-size: 21px; font-weight: 800; color: #22402e; letter-spacing: 0.4px; }
.pf-diamond {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #ff8a8a, #dc3c3c);
  box-shadow: 0 1px 4px rgba(220, 60, 60, 0.4);
}
.pf-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 5px;
  background: linear-gradient(180deg, #f8e6b4, #e8c477);
  color: #7b5a17;
  font-size: 10.5px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(180, 140, 50, 0.25);
}
.pf-ribbon svg { width: 12px; height: 12px; }
.pf-points {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #2f7d4e;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
}
.pf-points svg { width: 11px; height: 11px; }
.pf-stats {
  display: flex;
  align-items: center;
  margin-top: 16px;
  padding: 14px 6px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(58, 110, 82, 0.1);
}
.pf-stat { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 12px; text-align: left; }
.pf-stat b { display: block; font-size: 19px; font-weight: 800; color: #203c2b; }
.pf-stat i { display: block; font-style: normal; font-size: 11px; color: #7d9485; margin-top: 2px; }
.pf-stat-ic {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e3f5e8;
  color: #3f8a5c;
}
.pf-stat-ic svg { width: 17px; height: 17px; }
.pf-stat-sep { width: 1px; height: 34px; background: rgba(80, 120, 95, 0.16); }
.pf-card {
  position: relative;
  margin: 14px 18px 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(58, 110, 82, 0.08);
}
.pf-member { display: flex; align-items: center; gap: 12px; width: calc(100% - 36px); padding: 12px 14px; text-align: left; }
.pf-member-mascot { width: 54px; height: 48px; flex: none; }
.pf-member-mascot svg { width: 54px; height: 48px; display: block; }
.pf-member-text { min-width: 0; }
.pf-member-text b { display: block; font-size: 17px; font-weight: 800; color: #20382a; }
.pf-member-text i { display: block; font-style: normal; font-size: 11.5px; color: #7d9485; margin-top: 4px; }
.pf-arrow-circle {
  margin-left: auto;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2f7d4e;
  color: #fff;
}
.pf-arrow-circle svg { width: 14px; height: 14px; }
.pf-history { padding: 14px 0 12px; }
.pf-sec-head { display: flex; align-items: center; justify-content: space-between; padding: 0 14px; }
.pf-sec-head h3 { display: flex; align-items: center; gap: 7px; font-size: 15.5px; font-weight: 800; color: #21382a; }
.pf-sec-head h3 svg { width: 18px; height: 18px; color: #3f8a5c; }
.pf-more { display: flex; align-items: center; gap: 2px; font-size: 11.5px; color: #7d9485; }
.pf-more svg { width: 12px; height: 12px; }
.pf-hist-row { display: flex; gap: 10px; overflow-x: auto; padding: 10px 14px 2px; scrollbar-width: none; }
.pf-hist-row::-webkit-scrollbar { display: none; }
.pf-hist { width: 96px; flex: none; text-align: left; }
.pf-hist-thumb { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: #132019; }
.pf-hist-thumb .art { position: absolute; inset: 0; }
.pf-hist-time {
  position: absolute;
  left: 6px;
  bottom: 7px;
  z-index: 2;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(10, 20, 15, 0.55);
  color: #fff;
  font-size: 9.5px;
  backdrop-filter: blur(2px);
}
.pf-hist-time.live { background: #e35b5b; }
.pf-hist-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 3px; background: rgba(255, 255, 255, 0.25); }
.pf-hist-bar i { display: block; height: 100%; background: #6fd795; }
.pf-hist p { margin-top: 6px; font-size: 11px; color: #33463a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 18px 0; }
.pf-duo .pf-card { margin: 0; }
.pf-free, .pf-invite { display: flex; flex-direction: column; padding: 12px; min-height: 128px; overflow: hidden; }
.pf-free h3, .pf-invite h3 { font-size: 14.5px; font-weight: 800; color: #21382a; }
.pf-free p { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 10.5px; color: #7d9485; }
.pf-free p svg { width: 11px; height: 11px; color: #3f8a5c; }
.pf-free-btn {
  display: flex;
  align-items: center;
  gap: 2px;
  width: max-content;
  margin-top: auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: #2f7d4e;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.pf-free-btn svg { width: 10px; height: 10px; }
.pf-free-mascot { position: absolute; right: -6px; bottom: -8px; width: 74px; pointer-events: none; opacity: 0.95; }
.pf-free-mascot svg { width: 74px; height: 65px; display: block; }
.pf-inv-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.pf-code { padding: 3px 8px; border-radius: 6px; background: #d9f2e2; color: #2f7d4e; font-size: 11px; font-weight: 800; letter-spacing: 0.6px; }
.pf-invite p { margin-top: 6px; font-size: 10px; line-height: 1.6; color: #7d9485; }
.pf-inv-share {
  margin-top: auto;
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #e3f5e8;
  color: #2f7d4e;
}
.pf-inv-share svg { width: 16px; height: 16px; }
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 6px; padding: 16px 8px; }
.pf-grid button { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 11px; color: #4a6152; }
.pf-grid i {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e3f5e8;
  color: #3f8a5c;
}
.pf-grid i svg { width: 19px; height: 19px; }
.pf-msg { padding: 14px 0 4px; }
.pf-msg-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; text-align: left; }
.pf-msg-av {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e3f5e8;
  color: #3f8a5c;
}
.pf-msg-av svg { width: 17px; height: 17px; }
.pf-msg-txt { flex: 1; min-width: 0; }
.pf-msg-txt b { display: block; font-size: 12.5px; color: #263c2d; }
.pf-msg-txt p { margin-top: 2px; font-size: 10.5px; color: #8a9c90; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-msg-time { flex: none; font-size: 10px; color: #9aab9f; }
.pf-version { margin: 18px 0 0; text-align: center; font-size: 10.5px; color: #93a79b; }

/* 会员中心 / 广告弹层 */
.pf-sheet-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 2px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.pf-sheet-row:last-child { border-bottom: 0; }
.pf-sheet-row > i {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e3f5e8;
  color: #2f7d4e;
}
.pf-sheet-row > i svg { width: 17px; height: 17px; }
.pf-sheet-row > span { flex: 1; min-width: 0; }
.pf-sheet-row b { display: block; font-size: 14px; color: var(--text); }
.pf-sheet-row em { display: block; font-style: normal; font-size: 11.5px; color: var(--text-2); margin-top: 3px; }
.pf-row-go { flex: none !important; font-size: 11.5px; font-weight: 700; color: #2f7d4e; }
.exchange-summary { display: flex; gap: 10px; margin: 16px 0; padding: 13px; border-radius: 13px; background: var(--chip); color: var(--text-2); font-size: 12px; }
.exchange-summary span { flex: 1; }
.exchange-summary b { display: block; margin-top: 4px; color: var(--text); font-size: 17px; }
.exchange-label { display: block; margin-bottom: 8px; color: var(--text); font-size: 13px; font-weight: 700; }
.exchange-days { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 13px; outline: none; background: var(--surface); color: var(--text); font: inherit; font-size: 18px; font-weight: 700; }
.exchange-days:focus { border-color: var(--accent); }
.exchange-cost { min-height: 18px; margin-top: 10px; color: var(--text-2); font-size: 12px; }
.exchange-cost.error { color: #d15b64; }
.exchange-submit { width: 100%; }
.ad-wrap { padding: 6px 2px 4px; text-align: center; }
.ad-mascot { display: block; width: 92px; margin: 4px auto 0; }
.ad-mascot svg { width: 92px; height: 80px; display: block; }
.ad-wrap h3 { font-size: 18px; font-weight: 800; margin-top: 6px; }
.ad-wrap p { font-size: 12px; color: var(--text-2); margin-top: 6px; }
.ad-bar { height: 8px; margin: 16px 0; border-radius: 999px; background: var(--chip); overflow: hidden; }
.ad-bar i { display: block; height: 100%; width: 0; background: #57b97d; transition: width 0.95s linear; }
.ad-btn { width: 100%; height: 46px; border-radius: 23px; background: #2f7d4e; color: #fff; font-size: 15px; font-weight: 700; }
.ad-btn:disabled { opacity: 0.45; }

html[data-theme="dark"] #pageProfile {
  background:
    radial-gradient(110% 50% at 88% 0%, #173325 0%, rgba(23, 51, 37, 0) 58%),
    linear-gradient(180deg, #0f2118 0%, #12291d 36%, #0c1712 100%);
}
html[data-theme="dark"] .pf-top-actions { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.1); }
html[data-theme="dark"] .pf-top-actions button { color: #cfe6d8; }
html[data-theme="dark"] .pf-top-actions i { background: rgba(255, 255, 255, 0.14); }
html[data-theme="dark"] .pf-card,
html[data-theme="dark"] .pf-stats { background: rgba(255, 255, 255, 0.055); border-color: rgba(255, 255, 255, 0.08); box-shadow: none; }
html[data-theme="dark"] .pf-nm,
html[data-theme="dark"] .pf-stat b,
html[data-theme="dark"] .pf-member-text b,
html[data-theme="dark"] .pf-free h3,
html[data-theme="dark"] .pf-invite h3,
html[data-theme="dark"] .pf-sec-head h3,
html[data-theme="dark"] .pf-msg-txt b { color: #e6f4ea; }
html[data-theme="dark"] .pf-stat i,
html[data-theme="dark"] .pf-member-text i,
html[data-theme="dark"] .pf-free p,
html[data-theme="dark"] .pf-invite p,
html[data-theme="dark"] .pf-more,
html[data-theme="dark"] .pf-msg-txt p { color: #8fa79a; }
html[data-theme="dark"] .pf-hist p { color: #cfe2d6; }
html[data-theme="dark"] .pf-grid button { color: #b9cfc2; }
html[data-theme="dark"] .pf-grid i,
html[data-theme="dark"] .pf-inv-share,
html[data-theme="dark"] .pf-msg-av,
html[data-theme="dark"] .pf-stat-ic { background: rgba(255, 255, 255, 0.08); color: #8fe0ae; }
html[data-theme="dark"] .pf-code { background: rgba(120, 220, 160, 0.15); color: #8fe0ae; }
html[data-theme="dark"] .pf-avatar { border-color: rgba(255, 255, 255, 0.16); }
html[data-theme="dark"] .pf-version { color: #6f8378; }
html[data-theme="dark"] .pf-sheet-row > i { background: rgba(255, 255, 255, 0.08); color: #8fe0ae; }

@media (max-width: 375px) {
  .pf-stat { padding: 0 8px; gap: 8px; }
  .pf-stat b { font-size: 16.5px; white-space: nowrap; }
  .pf-stat-ic { width: 30px; height: 30px; }
  .pf-stat-ic svg { width: 15px; height: 15px; }
  .pf-member-mascot { width: 46px; }
  .pf-member-mascot svg { width: 46px; height: 41px; }
}

/* ===== 积分转盘 ===== */
.wheel-mask {
  position: fixed;
  inset: 0;
  z-index: 125;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(10, 22, 16, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.wheel-mask.show { opacity: 1; visibility: visible; pointer-events: auto; }
.wheel-card {
  position: relative;
  width: 100%;
  max-width: 330px;
  max-height: calc(100% - 6px);
  overflow-y: auto;
  padding: 20px 18px 18px;
  border-radius: 24px;
  text-align: center;
  color: #20382a;
  background: linear-gradient(175deg, #fffdf6 0%, #f5fbf6 58%, #edf8f1 100%);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
  scrollbar-width: none;
}
.wheel-card::-webkit-scrollbar { display: none; }
.wheel-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(47, 125, 78, 0.08);
  color: #4a6152;
}
.wheel-close svg { width: 16px; height: 16px; }
.wheel-card h3 { font-size: 19px; font-weight: 800; letter-spacing: 0.5px; }
.wheel-sub { margin-top: 6px; font-size: 11.5px; color: #7d9485; }
.wheel-sub b { color: #c9922f; font-size: 12.5px; }
.wheel-stage { position: relative; width: 264px; height: 264px; margin: 16px auto 0; }
.wheel-disc {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  transition: transform 4.2s cubic-bezier(0.12, 0.72, 0.06, 1);
  will-change: transform;
  box-shadow: 0 10px 26px rgba(47, 125, 78, 0.2), inset 0 0 0 5px #fffdf4;
}
.wheel-disc canvas { display: block; width: 100%; height: 100%; border-radius: 50%; }
.wheel-pointer {
  position: absolute;
  top: -4px;
  left: 50%;
  z-index: 3;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 20px solid #e8b24b;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.28));
}
.wheel-spin {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 66px;
  height: 66px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
  color: #5c3d12;
  background: linear-gradient(160deg, #ffe9ab, #e8b24b 58%, #ca932f);
  box-shadow: 0 6px 16px rgba(160, 115, 30, 0.42), inset 0 0 0 4px rgba(255, 255, 255, 0.55);
}
.wheel-spin:disabled { opacity: 0.65; }
.wheel-balance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  color: #7d9485;
}
.wheel-balance b { font-size: 17px; font-weight: 800; color: #2f7d4e; }
.wheel-result { min-height: 18px; margin-top: 8px; font-size: 12px; font-weight: 700; color: #c9922f; }
.sheet-sub b { color: #2f7d4e; font-size: 13px; }
html[data-theme="dark"] .wheel-card { color: #e6f4ea; background: linear-gradient(175deg, #172c21, #102018); }
html[data-theme="dark"] .wheel-close { background: rgba(255, 255, 255, 0.08); color: #cfe6d8; }
html[data-theme="dark"] .wheel-sub,
html[data-theme="dark"] .wheel-balance { color: #8fa79a; }
html[data-theme="dark"] .wheel-disc { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), inset 0 0 0 5px #1d3527; }
html[data-theme="dark"] .sheet-sub b { color: #8fe0ae; }
@media (max-height: 720px) {
  .wheel-stage { width: 226px; height: 226px; margin-top: 12px; }
  .wheel-spin { width: 58px; height: 58px; font-size: 13.5px; }
  .wheel-card { padding: 16px 16px 14px; }
}

/* ===== 详情页小屏优化 / 弹幕预览 ===== */
.dp-danmu { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.dp-danmu i {
  position: absolute;
  left: 100%;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
  animation-name: dpDanmu;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
@keyframes dpDanmu {
  from { left: 100%; }
  to { left: -95%; }
}
.dp-tabs-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 4px;
  border-radius: 999px;
  background: var(--chip);
}
.dp-mini {
  padding: 5px 10px;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: 11.5px;
}
.dp-mini.line {
  background: var(--surface);
  color: var(--accent-text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
@media (max-width: 380px) {
  .dp-tabs { gap: 16px; padding: 12px 10px 0; }
  .dp-tab { font-size: 15px; }
  .dp-mini { padding: 4px 9px; font-size: 11px; }
  .dp-body { padding: 10px 10px 0; }
  .dp-title-row h2 { font-size: 21px; }
  .dp-title-row { padding-top: 13px; }
  .dp-chips { gap: 6px; }
  .dp-chips .chip { padding: 4px 9px; font-size: 11px; }
  .dp-sec-head { margin: 16px 0 8px; }
  .dp-source, .dp-ep { padding: 9px 13px; font-size: 12.5px; }
  .dp-actions button { min-width: 46px; font-size: 10px; }
  .dp-actions svg { width: 20px; height: 20px; }
  .dp-actions { padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .dp-scroll { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .dp-danmu i { font-size: 12px; }
}

/* ===== 修复：弹幕层 / Tab 分组 / 会员横幅 ===== */
.dp-danmu { inset: 0 0 30px 0; }
.dp-danmu.off { display: none; }
.dp-danmu i { font-size: 12.5px; opacity: 0.95; }
.dp-video-shade {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.1) 34%, rgba(0, 0, 0, 0.16) 72%, rgba(0, 0, 0, 0.78) 100%);
}
.dp-big-play {
  width: 52px;
  height: 52px;
  background: rgba(8, 12, 18, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 9px rgba(0, 0, 0, 0.14);
}
.dp-big-play svg { width: 21px; height: 21px; }

.dp-tabs { gap: 18px; padding: 12px 12px 0; }
.dp-tab { padding-bottom: 12px; }
.dp-tabs-right {
  margin-left: auto;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 3px;
  border-radius: 10px;
  background: var(--chip);
}
.dp-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 7px;
  background: transparent;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
  transition: color 0.18s, background 0.18s;
}
.dp-mini.on { color: #2f9df4; }
html[data-theme="dark"] .dp-mini.on { color: #5db6ff; }
.dp-mini.icon svg { width: 14px; height: 14px; }
.dp-mini.text { padding: 0 6px 0 4px; font-size: 11.5px; font-weight: 600; }
.dp-mini-sep { width: 1px; height: 13px; background: var(--line); }

.dp-member {
  position: relative;
  overflow: hidden;
  gap: 12px;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid rgba(255, 198, 96, 0.5);
  background:
    radial-gradient(120px 70px at 88% -20%, rgba(255, 214, 120, 0.55), transparent 70%),
    linear-gradient(112deg, #fff7e4, #fffdf6 52%, #fff3dc);
  box-shadow: 0 6px 16px rgba(214, 170, 70, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.dp-member::after {
  content: "";
  position: absolute;
  right: 88px;
  top: -26px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 206, 96, 0.3), transparent 66%);
  pointer-events: none;
}
html[data-theme="dark"] .dp-member {
  border-color: rgba(255, 198, 96, 0.26);
  background:
    radial-gradient(120px 70px at 88% -20%, rgba(255, 206, 96, 0.16), transparent 70%),
    linear-gradient(112deg, rgba(122, 88, 18, 0.38), rgba(54, 42, 16, 0.32));
  box-shadow: none;
}
html[data-theme="dark"] .dp-member::after { opacity: 0.5; }
.dp-crown {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(150deg, #ffe79c, #ffc94d 55%, #f0a827);
  color: #7a4a00;
  box-shadow: 0 6px 14px rgba(240, 168, 39, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.dp-crown svg { width: 24px; height: 24px; filter: drop-shadow(0 1px 1px rgba(140, 90, 0, 0.25)); }
.dp-member-text { gap: 3px; }
.dp-member-text b { font-size: 15px; letter-spacing: 0.2px; }
.dp-member-btn {
  position: relative;
  z-index: 1;
  padding: 10px 20px;
  font-size: 13px;
  background: linear-gradient(135deg, #5cb8ff, #2f9df4 55%, #1c86e0);
  box-shadow: 0 8px 18px rgba(47, 157, 244, 0.34);
}
.dp-member-btn:active { transform: scale(0.97); }

@media (max-width: 380px) {
  .dp-member { padding: 12px; gap: 10px; border-radius: 14px; }
  .dp-crown { width: 38px; height: 38px; border-radius: 11px; }
  .dp-crown svg { width: 21px; height: 21px; }
  .dp-member-text b { font-size: 14px; }
  .dp-member-btn { padding: 9px 16px; font-size: 12px; }
  .dp-tabs-right { margin-bottom: 6px; }
  .dp-mini { height: 24px; min-width: 24px; font-size: 11.5px; }
  .dp-mini.text { font-size: 11px; }
  .dp-danmu i { font-size: 11.5px; }
  .dp-big-play { width: 46px; height: 46px; }
  .dp-big-play svg { width: 19px; height: 19px; }
}

/* 详情页：许可证移到底部、Tab 分组微调 */
.dp-lic {
  top: auto;
  bottom: 30px;
  font-size: 9px;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.dp-mini { height: 27px; }

/* 详情页许可证回到顶部，弹幕首道下移避让 */
.dp-lic {
  top: calc(env(safe-area-inset-top) + 18px);
  bottom: auto;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.42);
}

/* ============ 后台接入：幻灯片推荐 / 直播 ============ */
.hero-slide.linkable { cursor: pointer; }
.hero-slide.linkable .hero-info { right: 74px; }
.hero-play {
  position: absolute;
  right: 16px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.hero-play svg { width: 17px; height: 17px; margin-left: 2px; }

.live-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
  padding-bottom: 4px;
}
.live-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  border-radius: 15px;
  padding: 8px 8px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(20, 60, 110, .06);
  transition: transform .16s ease, box-shadow .16s ease;
}
.live-card:active { transform: scale(.975); }
.live-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #0b1420;
}
.live-thumb .art { position: absolute; inset: 0; }
.live-thumb .art-caption { display: none; }
.live-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .8px;
  color: #fff;
  background: linear-gradient(135deg, #ff6a5e, #e5484d);
  box-shadow: 0 3px 8px rgba(229, 72, 77, .4);
}
.live-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-sub {
  font-size: 11px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 会员权益与扫码充值 */
.member-expiry { margin-top: 8px; color: var(--text-2); font-size: 11.5px; line-height: 1.8; }
.pf-history-empty { width: 100%; padding: 22px 0 14px; text-align: center; color: var(--text-2); font-size: 12px; }
.recharge-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.recharge-head > div { min-width: 0; }
.recharge-refresh { flex: none; padding: 7px 12px; border-radius: 999px; background: var(--chip); color: var(--accent); font-size: 12px; font-weight: 700; }
.recharge-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.recharge-method { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text-2); font-size: 14px; font-weight: 700; }
.recharge-method.wechat.active { border-color: #35a967; background: #eaf8f0; color: #20884c; }
.recharge-method.alipay.active { border-color: #3178ee; background: #edf4ff; color: #2468d8; }
.recharge-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.recharge-amount { padding: 10px 2px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); }
.recharge-amount b { font-size: 19px; }
.recharge-amount small { display: block; margin-top: 3px; color: var(--text-2); font-size: 9.5px; }
.recharge-amount.active { border-color: var(--accent); background: var(--chip); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.recharge-qr-wrap { display: flex; flex-direction: column; align-items: center; margin-top: 16px; padding: 16px; border-radius: 16px; background: var(--chip); text-align: center; }
.recharge-qr, .recharge-qr-empty { width: min(210px, 62vw); aspect-ratio: 1; border-radius: 12px; }
.recharge-qr { display: block; object-fit: contain; background: #fff; }
.recharge-qr-empty { display: grid; place-items: center; border: 1px dashed var(--line-strong); color: var(--text-2); font-size: 12px; line-height: 1.7; }
.recharge-qr-wrap strong { margin-top: 12px; color: var(--text); font-size: 16px; }
.recharge-qr-wrap p { margin-top: 5px; color: var(--text-2); font-size: 11px; line-height: 1.6; }
.recharge-submit { width: 100%; }
.recharge-submit:disabled { opacity: .45; }
.recharge-note { margin-top: 10px; color: var(--text-2); font-size: 10.5px; line-height: 1.6; text-align: center; }
.recharge-orders { margin-top: 20px; }
.recharge-orders h4 { margin-bottom: 8px; color: var(--text); font-size: 14px; }
.recharge-order { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.recharge-order > div { flex: 1; min-width: 0; }
.recharge-order b { display: block; color: var(--text); font-size: 13px; }
.recharge-order div > span { display: block; margin-top: 4px; color: var(--text-2); font-size: 10.5px; }
.recharge-order p { margin-top: 5px; color: #d15b64; font-size: 11px; overflow-wrap: anywhere; }
.recharge-status { flex: none; padding: 4px 8px; border-radius: 999px; background: var(--chip); color: var(--text-2); font-size: 10.5px; font-weight: 700; }
.recharge-status.approved { background: #e6f7ed; color: #258652; }
.recharge-status.rejected { background: #fff0f1; color: #c74d58; }
.recharge-empty { padding: 18px 0; text-align: center; color: var(--text-2); font-size: 12px; }
.watch-limit { padding: 6px 0 2px; text-align: center; }
.watch-limit-icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%; background: var(--chip); color: var(--accent); }
.watch-limit-icon svg { width: 26px; height: 26px; }
.watch-limit h3 { color: var(--text); font-size: 18px; }
.watch-limit p { margin-top: 8px; color: var(--text-2); font-size: 12px; line-height: 1.7; }
.limit-secondary { width: 100%; margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--chip); color: var(--text); font-size: 13px; font-weight: 700; }
html[data-theme="dark"] .recharge-method.wechat.active { background: rgba(53, 169, 103, .14); color: #75d99e; }
html[data-theme="dark"] .recharge-method.alipay.active { background: rgba(49, 120, 238, .14); color: #82b0ff; }
html[data-theme="dark"] .recharge-status.approved { background: rgba(37, 134, 82, .18); color: #75d99e; }
html[data-theme="dark"] .recharge-status.rejected { background: rgba(199, 77, 88, .16); color: #ff9aa3; }
@media (max-width: 350px) {
  .recharge-amounts { gap: 5px; }
  .recharge-amount b { font-size: 17px; }
}
