/* ============================================================
   黄果短剧 · 重建版样式
   设计语言取自抓包站点：暗色底 #0b0b0d、品牌玫红 #ec237f、
   卡片圆角、渐变遮罩、移动端优先（375 基准，全站自适应）。
   ============================================================ */

:root {
  --bg: #0b0b0d;
  --bg-elev: #121216;
  --surface: #17171c;
  --surface-2: #1f1f26;
  --surface-3: #2a2a33;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.66);
  --text-3: rgba(255, 255, 255, 0.4);
  --pink: #ec237f;
  --pink-soft: #ff5c9a;
  --red: #ff0d2c;
  --gold: #f6e3b4;
  --gold-deep: #d9b24a;
  --blue: #4f8cff;
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
  --radius-xl: 22px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --tabbar-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }

body {
  background: #070708;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input { font-family: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* ---------------------------------------------------------- shell */
body::before {
  content: "";
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background:
    radial-gradient(60vw 60vw at 12% -8%, rgba(236, 35, 127, 0.22), transparent 62%),
    radial-gradient(52vw 52vw at 92% 8%, rgba(96, 48, 255, 0.16), transparent 60%),
    radial-gradient(60vw 40vw at 50% 108%, rgba(236, 35, 127, 0.1), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.app-frame {
  position: relative;
  z-index: 1;
  /* 100dvh 要 Chrome / 安卓 WebView 108 起才认；旧内核丢掉这条就没有高度，整页撑成内容那么高 → 黑屏。
     先写 100%（html、body 都是 100%）兜底，新内核接着用后面的 100dvh */
  height: 100%;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 100%;
  height: 100dvh;
  max-height: 100%;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}

@media (min-width: 520px) and (min-height: 720px) {
  .phone {
    height: min(880px, 94vh);
    height: min(880px, 94dvh);
    max-height: 880px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
      0 40px 90px rgba(0, 0, 0, 0.7),
      0 0 0 1px rgba(0, 0, 0, 0.5) inset,
      0 0 90px rgba(236, 35, 127, 0.12);
  }
  .statusbar { border-radius: 30px 30px 0 0; }
}

.statusbar {
  flex: 0 0 auto;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 0 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  position: relative;
  z-index: 30;
}
.statusbar__icons { display: inline-flex; align-items: center; gap: 6px; opacity: 0.92; }

.view {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  position: relative;
}
.view::-webkit-scrollbar { display: none; }

/* ---------------------------------------------------------- tabbar */
.tabbar {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  height: calc(var(--tabbar-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 40;
}
.tabbar[hidden] { display: none; }

.tab {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-3);
  font-size: 10px;
  letter-spacing: 0.3px;
  transition: color 0.2s var(--ease);
  position: relative;
}
.tab svg { width: 22px; height: 22px; display: block; }
.tab.is-active { color: var(--text); }
.tab.is-active::after {
  content: "";
  position: absolute;
  top: 6px;
  width: 16px;
  height: 3px;
  border-radius: 3px;
  background: var(--pink);
  box-shadow: 0 0 14px rgba(236, 35, 127, 0.9);
}
.tab__dot {
  position: absolute;
  top: 9px;
  right: calc(50% - 20px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
}

/* ---------------------------------------------------------- video grid */
.vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 16px; }
.vgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

.vcard { display: block; min-width: 0; }
.vcard__poster {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--surface-2);
}
.vcard__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.vcard:active .vcard__poster img { transform: scale(1.04); }
.vcard__poster::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.3), transparent 32%, transparent 55%, rgba(0,0,0,.62));
  pointer-events: none;
}
.vcard__play {
  position: absolute;
  z-index: 2;
  left: 7px;
  bottom: 7px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}
.vcard__coin {
  position: absolute;
  z-index: 2;
  right: 7px;
  top: 7px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 10px;
  color: #ffe6ae;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(246, 227, 180, 0.35);
}
.vcard__title {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vcard__meta { margin-top: 2px; font-size: 10.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------- community posts */
.post { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); transition: background .2s; }
.post:active { background: rgba(255, 255, 255, 0.03); }
.post__av { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: var(--surface-2); }
.post__av img { width: 100%; height: 100%; object-fit: cover; }
.post__body { flex: 1; min-width: 0; }
.post__head { display: flex; align-items: baseline; gap: 8px; }
.post__head b { font-size: 12.5px; font-weight: 600; color: #ffd9e8; }
.post__head span { font-size: 10.5px; color: var(--text-3); }
.post__text { margin-top: 4px; font-size: 13px; line-height: 1.55; color: var(--text); word-break: break-all; }
.post__media { margin-top: 8px; border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-2); }
.post__media img { width: 100%; height: 100%; object-fit: cover; }
.post__foot { margin-top: 8px; display: flex; gap: 16px; font-size: 11px; color: var(--text-3); }
.post__foot span { display: inline-flex; align-items: center; gap: 4px; }

.community-hero { position: relative; margin: 4px 16px 0; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2); }
.community-hero img { width: 100%; height: 100%; object-fit: cover; }
.community-hero__mask { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85)); }
.community-hero__body { position: absolute; left: 14px; right: 14px; bottom: 12px; }
.community-hero__body h3 { margin-top: 6px; font-size: 15px; font-weight: 700; line-height: 1.35; }
.community-hero__body p { margin-top: 4px; font-size: 10.5px; color: rgba(255,255,255,.62); }

/* ---------------------------------------------------------- banner caption */
.banner__cap {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 12px;
  right: 60px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.banner__cap small { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 400; color: rgba(255,255,255,.66); }

/* ---------------------------------------------------------- stat row */
.stat-row { display: flex; padding: 4px 16px 16px; }
.stat-row > div { flex: 1; text-align: center; }
.stat-row b { display: block; font-size: 19px; font-weight: 800; letter-spacing: .3px; }
.stat-row span { display: block; margin-top: 2px; font-size: 10.5px; color: var(--text-3); }

.chip i { font-style: normal; margin-left: 4px; font-size: 9.5px; opacity: .55; }

img.is-fallback { object-fit: cover; }

/* 封面解码管线：占位 → 解码完成淡入 */
.card__poster img,
.vcard__poster img,
.row-card__poster img,
.post__media img,
.post__av img,
.community-hero img,
.banner__item img,
.topic img,
.profile__av img,
.stage__art img {
  opacity: 1;
  transition: opacity 0.35s var(--ease);
}
.card__poster img.is-loading,
.vcard__poster img.is-loading,
.row-card__poster img.is-loading,
.post__media img.is-loading,
.community-hero img.is-loading,
.banner__item img.is-loading,
.topic img.is-loading,
.stage__art img.is-loading { opacity: 0; }
.stage__art img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------------------------------------------------------- 本地片源播放器 */
.local-list { padding: 4px 16px 0; }
.local-total { font-size: 11.5px; color: var(--text-3); padding: 0 2px 10px; }
.local-item {
  margin-bottom: 12px;
  padding: 10px;
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.local-item__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.local-item__title { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.local-item__meta { margin-top: 3px; font-size: 10.5px; color: var(--text-3); }
.local-item__video { width: 100%; max-height: 46vh; max-height: 46dvh; border-radius: 10px; background: #000; display: block; }
.local-item__eps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.local-player {
  margin: 4px 16px 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.local-player video {
  display: block;
  width: 100%;
  max-height: 60vh;
  max-height: 60dvh;
  background: #000;
  object-fit: contain;
}

/* ---------------------------------------------------------- 年龄提示 / 封面模糊 */
.agegate {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 320;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(70% 50% at 50% 20%, rgba(236, 35, 127, 0.22), transparent 70%),
    rgba(7, 7, 9, 0.96);
  backdrop-filter: blur(10px);
  transition: opacity 0.3s var(--ease);
}
.agegate.is-out { opacity: 0; pointer-events: none; }
.agegate__card { width: 100%; max-width: 330px; text-align: center; }
.agegate__badge {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(140deg, var(--pink), #ff4d7d);
  box-shadow: 0 8px 30px rgba(236, 35, 127, 0.42);
}
.agegate__card h2 { font-size: 19px; font-weight: 800; letter-spacing: .4px; }
.agegate__card p { margin-top: 10px; font-size: 12.5px; line-height: 1.75; color: var(--text-2); }
.agegate__actions { margin-top: 20px; display: flex; flex-direction: column; gap: 9px; }
.agegate__note { margin-top: 14px; font-size: 10.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.3); }

.safe-covers .card__poster img,
.safe-covers .vcard__poster img,
.safe-covers .row-card__poster img,
.safe-covers .post__media img,
.safe-covers .community-hero img,
.safe-covers .banner__item img,
.safe-covers .topic img,
.safe-covers .stage__art img,
.safe-covers .profile__av img,
.safe-covers .post__av img {
  filter: blur(16px) saturate(0.8);
  transform: scale(1.06);
}
.safe-covers .card__poster::before,
.safe-covers .vcard__poster::before {
  content: "18+";
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

/* ---------------------------------------------------------- 子页面通用组件 */
.kv { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.kv:last-child { border-bottom: 0; }
.kv__k { color: var(--text-3); flex: 0 0 auto; }
.kv__v { color: var(--text); text-align: right; word-break: break-all; }

.form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.form-row:last-child { border-bottom: 0; }
.form-row__label { flex: 1; min-width: 0; color: var(--text); display: flex; align-items: baseline; gap: 6px; }
.form-row__label i { font-style: normal; font-size: 10.5px; color: var(--text-3); }
.form-row__value { color: var(--text-3); font-size: 12.5px; display: flex; align-items: center; gap: 6px; max-width: 58%; overflow: hidden; }
.form-row__value img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.form-input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: #fff;
  font-size: 13px;
  outline: none;
  text-align: right;
}
.form-input:focus { border-color: rgba(236, 35, 127, 0.6); }
.form-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: #fff;
  font-size: 13px;
  line-height: 1.6;
  outline: none;
  resize: vertical;
}
.form-select {
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: #fff;
  font-size: 12.5px;
}
.form-hint { padding: 10px 16px; font-size: 11.5px; color: var(--text-3); line-height: 1.6; }
.submit-bar { padding: 18px 16px 8px; }
.form-av img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }

.chips-meta { padding: 0 16px 12px; font-size: 11.5px; color: var(--text-3); }
.chips-meta b { color: var(--text); font-size: 13px; }
.chip--block { flex: 1 0 45%; height: 40px; border-radius: 10px; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 9px; padding: 12px 16px 0; }

/* 头部大图 */
.net-hero, .activity-hero, .share-hero, .sign-hero, .user-hero, .cert, .login, .reader, .preview-full { position: relative; }
.net-hero {
  margin: 4px 16px 6px;
  padding: 20px 18px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 120% at 90% 0%, rgba(96, 48, 255, 0.3), transparent 60%),
    linear-gradient(150deg, #16101f, #0e0d12);
  border: 1px solid rgba(139, 92, 246, 0.28);
}
.net-hero__badge {
  display: inline-flex; padding: 3px 9px; border-radius: 6px; font-size: 10px; letter-spacing: 2px;
  color: #c3b4ff; border: 1px solid rgba(139, 92, 246, 0.45); background: rgba(139, 92, 246, 0.12);
}
.net-hero h2 { margin-top: 12px; font-size: 20px; font-weight: 800; letter-spacing: .3px; }
.net-hero p { margin-top: 8px; font-size: 12px; line-height: 1.75; color: var(--text-2); }
.net-hero__stats { margin-top: 16px; display: flex; }
.net-hero__stats > div { flex: 1; text-align: center; }
.net-hero__stats b { display: block; font-size: 18px; font-weight: 800; }
.net-hero__stats span { font-size: 10.5px; color: var(--text-3); }

.activity-hero {
  margin: 4px 16px 6px;
  padding: 22px 18px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(110% 130% at 100% 0%, rgba(236, 35, 127, 0.3), transparent 62%),
    linear-gradient(140deg, #241421, #121116);
  border: 1px solid rgba(236, 35, 127, 0.26);
}
.activity-hero--pink { background: radial-gradient(110% 130% at 100% 0%, rgba(255, 13, 44, 0.34), transparent 62%), linear-gradient(140deg, #2a1118, #121116); }
.activity-hero__kicker { font-size: 10px; letter-spacing: 3px; color: rgba(255, 255, 255, 0.5); }
.activity-hero h2 { margin-top: 10px; font-size: 22px; font-weight: 800; line-height: 1.3; }
.activity-hero p { margin-top: 8px; font-size: 12px; line-height: 1.7; color: var(--text-2); }
.activity-hero__cta { margin-top: 16px; display: flex; gap: 9px; }
.activity-hero__cta .btn { flex: 1; }

.share-hero {
  margin: 4px 16px 6px; padding: 24px 18px; border-radius: var(--radius-xl); text-align: center;
  background: radial-gradient(120% 120% at 50% 0%, rgba(236, 35, 127, 0.26), transparent 62%), linear-gradient(160deg, #1c1220, #0f0e12);
  border: 1px solid rgba(236, 35, 127, 0.24);
}
.share-hero__k { font-size: 11px; color: var(--text-3); letter-spacing: 2px; }
.share-hero__code { margin-top: 10px; font-family: ui-monospace, Menlo, monospace; font-size: 30px; font-weight: 800; letter-spacing: 6px; color: #ffd9e8; }
.share-hero__tip { margin-top: 10px; font-size: 11.5px; color: var(--text-2); line-height: 1.6; }
.share-hero__actions { margin-top: 16px; display: flex; gap: 9px; }
.share-hero__actions .btn { flex: 1; }

/* 第 127 轮：邀请好友（#/share）和「我的」页的邀请横幅 */
.inv-loading { padding: 60px 16px; text-align: center; color: var(--text-3); }
.inv-loading svg { width: 26px; height: 26px; opacity: .5; }
.inv-loading p { margin-top: 10px; font-size: 12px; }
.inv-hero .share-hero__code { font-size: 26px; letter-spacing: 4px; }
.inv-qr { margin: 16px auto 0; width: 176px; height: 176px; padding: 8px; border-radius: 14px; background: #fff; }
.inv-qr img { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.inv-link { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); font-size: 11.5px;
  color: var(--text-2); word-break: break-all; user-select: all; -webkit-user-select: all; }
.inv-stats { margin: 4px 0 2px; padding: 14px 8px 12px; }
.inv-rules { margin: 0 16px; padding: 12px 14px 12px 30px; border-radius: var(--radius-l); background: var(--surface);
  border: 1px solid var(--line); font-size: 12.5px; line-height: 1.75; color: var(--text-2); }
.inv-rules li + li { margin-top: 6px; }
.inv-rules--muted { font-size: 11.5px; color: var(--text-3); }
.inv-me { margin: 4px 16px 12px; padding: 14px 16px; border-radius: var(--radius-l); background: var(--surface);
  border: 1px solid rgba(217, 178, 74, 0.3); }
.inv-me__k { font-size: 11px; color: var(--text-3); letter-spacing: 1px; }
.inv-me__who { margin: 4px 0 10px; font-size: 15px; font-weight: 700; }
.inv-step { display: flex; align-items: center; gap: 7px; margin-top: 6px; font-size: 12.5px; color: var(--text-2); }
.inv-step svg { flex: none; width: 14px; height: 14px; color: var(--text-3); }
.inv-step.is-done { color: #9be7b4; }
.inv-step.is-done svg { color: #6fdc95; }
.inv-or { margin-top: 8px; font-size: 11.5px; color: var(--text-3); }
.inv-gift { margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--gold); }
.inv-why { margin-top: 4px; padding-left: 21px; font-size: 11.5px; color: var(--text-3); }
.inv-list { margin: 0 16px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
.inv-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; }
.inv-item + .inv-item { border-top: 1px solid var(--line); }
.inv-item__main { min-width: 0; }
.inv-item__name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-item__time { margin-top: 2px; font-size: 10.5px; color: var(--text-3); }
.inv-item__side { flex: none; max-width: 55%; text-align: right; }
.inv-item__side small { display: block; margin-top: 3px; font-size: 10.5px; color: var(--text-3); line-height: 1.4; }
.inv-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; border: 1px solid var(--line-strong); color: var(--text-2); }
.inv-tag--valid { color: #9be7b4; border-color: rgba(111, 220, 149, 0.35); background: rgba(111, 220, 149, 0.1); }
.inv-tag--noreward { color: var(--text-3); }
.inv-st--held { color: var(--gold); }
.inv-st--granted { color: #9be7b4; }
.invite-strip { display: flex; align-items: center; gap: 10px; width: calc(100% - 32px); margin: 12px 16px 0; padding: 12px 14px;
  border-radius: var(--radius-l); text-align: left; color: var(--text);
  background: radial-gradient(120% 140% at 0% 0%, rgba(236, 35, 127, 0.28), transparent 60%), var(--surface);
  border: 1px solid rgba(236, 35, 127, 0.28); }
.invite-strip:active { transform: scale(0.985); }
.invite-strip__ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(236, 35, 127, 0.2); color: var(--pink-soft); }
.invite-strip__text { flex: 1; min-width: 0; }
.invite-strip__text b { display: block; font-size: 13.5px; }
.invite-strip__text small { display: block; margin-top: 2px; font-size: 11px; color: var(--text-2); line-height: 1.45; }
.invite-strip > svg { flex: none; width: 14px; height: 14px; color: var(--text-3); }

.sign-hero {
  margin: 4px 16px 6px; padding: 22px 18px; border-radius: var(--radius-xl); text-align: center;
  background: radial-gradient(120% 120% at 50% 0%, rgba(246, 227, 180, 0.22), transparent 62%), linear-gradient(160deg, #221c12, #0f0e12);
  border: 1px solid rgba(246, 227, 180, 0.24);
}
.sign-hero__t { font-size: 16px; font-weight: 700; color: #ffeec9; }
.sign-hero__t b { font-size: 24px; }
.sign-hero__s { margin-top: 8px; font-size: 11.5px; color: rgba(255, 233, 176, 0.66); }
.sign-hero .btn { margin-top: 16px; }
.sign-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 12px 16px 0; }
.sign-day {
  position: relative; padding: 12px 4px; border-radius: var(--radius-m); text-align: center;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
}
.sign-day.is-done { border-color: rgba(246, 227, 180, 0.45); background: rgba(246, 227, 180, 0.08); }
.sign-day__n { font-size: 11px; color: var(--text-2); }
.sign-day__r { margin-top: 4px; font-size: 10.5px; color: var(--gold); }
.sign-day__ok { position: absolute; right: 4px; top: 4px; color: var(--gold); }

.user-hero { display: flex; align-items: center; gap: 12px; padding: 16px; }
.user-hero__av { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; background: var(--surface-2); flex: 0 0 auto; }
.user-hero__av img { width: 100%; height: 100%; object-fit: cover; }
.user-hero__info { flex: 1; min-width: 0; }
.user-hero__name { font-size: 17px; font-weight: 700; }
.user-hero__meta { margin-top: 4px; font-size: 11px; color: var(--text-3); }

.actress-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 16px; }
.actress { text-align: center; }
.actress__av { aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.actress__av img { width: 100%; height: 100%; object-fit: cover; }
.actress__name { margin-top: 7px; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actress__meta { margin-top: 2px; font-size: 10px; color: var(--text-3); }

/* 套图 / 预览 */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 0 16px; }
.gallery--detail { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gallery__item { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--surface-2); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 6px 5px; font-size: 10px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.75)); }
.preview-full { margin: 10px 16px 0; border-radius: var(--radius-l); overflow: hidden; background: #000; }
.preview-full img { width: 100%; display: block; }
.preview-full__cap { padding: 10px 14px; font-size: 12px; color: var(--text-2); background: rgba(255, 255, 255, 0.04); }

/* 直播 / 聊天 */
.live { position: relative; margin: 0 16px; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 9 / 13; background: #000; }
.live__bg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.live__mask { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(180deg, rgba(0,0,0,.55), transparent 30%, transparent 55%, rgba(0,0,0,.85)); }
.live__top { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; }
.live__badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; font-size: 10px; font-weight: 700; background: var(--red); }
.live__online { font-size: 10.5px; color: rgba(255,255,255,.8); background: rgba(0,0,0,.4); padding: 3px 8px; border-radius: 6px; }
.live__chat { position: absolute; left: 10px; right: 10px; bottom: 54px; max-height: 40%; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; }
.live__msg { font-size: 11.5px; line-height: 1.5; background: rgba(0,0,0,.38); padding: 4px 8px; border-radius: 8px; width: fit-content; max-width: 92%; }
.live__msg b { color: #ffb6d0; margin-right: 6px; font-weight: 600; }
.live__bar { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 8px; }
.live__input { flex: 1; height: 34px; border-radius: 17px; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.2); padding: 0 14px; color: #fff; font-size: 12px; outline: none; }

.chat { padding: 12px 16px 70px; display: flex; flex-direction: column; gap: 12px; }
.chat__row { display: flex; gap: 8px; }
.chat__row.is-me { flex-direction: row-reverse; }
.chat__av { width: 32px; height: 32px; border-radius: 50%; flex: 0 0 32px; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: rgba(236,35,127,.24); color: #ffd9e8; }
.chat__row.is-me .chat__av { background: rgba(255,255,255,.12); color: #fff; }
.chat__bubble { max-width: 74%; padding: 9px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; line-height: 1.55; }
.chat__row.is-me .chat__bubble { background: rgba(236,35,127,.18); border-color: rgba(236,35,127,.32); }
.chat__bubble b { display: block; font-size: 10.5px; color: var(--text-3); margin-bottom: 3px; font-weight: 500; }
.chat__bubble i { display: block; margin-top: 4px; font-style: normal; font-size: 9.5px; color: var(--text-3); }
.chat__bar { position: sticky; bottom: 0; display: flex; gap: 8px; padding: 10px 16px calc(10px + var(--safe-b)); background: rgba(11,11,13,.94); border-top: 1px solid var(--line); }
.chat__input { flex: 1; height: 36px; border-radius: 18px; padding: 0 14px; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: #fff; font-size: 13px; outline: none; }

/* 消息 / 评论 / 文章 */
.msg-list { padding: 4px 16px; }
.msg { display: flex; align-items: center; gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.msg__ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: #ffb6d0; }
.msg__body { flex: 1; min-width: 0; }
.msg__t { font-size: 13px; font-weight: 600; }
.msg__s { margin-top: 3px; font-size: 11px; color: var(--text-3); }
.msg__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }

.comments { padding: 0 16px; }
.comment { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.comment__av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: rgba(255,255,255,.08); color: var(--text-2); flex: 0 0 32px; }
.comment__name { font-size: 12px; color: #ffd9e8; display: flex; gap: 8px; align-items: baseline; }
.comment__name span { font-size: 10px; color: var(--text-3); }
.comment__text { margin-top: 3px; font-size: 12.5px; line-height: 1.55; color: var(--text-2); }

.article { padding: 16px; }
.article h1 { font-size: 18px; font-weight: 800; line-height: 1.4; }
.article__meta { margin-top: 6px; font-size: 11px; color: var(--text-3); }
.article p { margin-top: 10px; font-size: 13px; line-height: 1.8; color: var(--text-2); }
.article p.muted { color: var(--text-3); font-size: 11.5px; }
.article__cta { margin-top: 18px; }

.faq { padding: 0 16px; }
.faq__item { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq__item summary { font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; position: relative; padding-right: 18px; }
.faq__item summary::after { content: "+"; position: absolute; right: 0; top: -2px; color: var(--text-3); font-size: 16px; }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { margin-top: 8px; font-size: 12.5px; line-height: 1.7; color: var(--text-2); }

.reader { padding: 18px 20px 8px; }
.reader__kicker { font-size: 10.5px; letter-spacing: 2px; color: var(--text-3); }
.reader__title { margin-top: 8px; font-size: 21px; font-weight: 800; }
.reader__meta { margin-top: 6px; font-size: 11px; color: var(--text-3); }
.reader__p { margin-top: 14px; font-size: 14px; line-height: 2; color: rgba(255,255,255,.82); text-indent: 2em; }
.reader__p.is-head { text-indent: 0; font-weight: 700; color: #fff; }

/* 奖品 / 图表 / 应用图标 */
.prize-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; padding: 0 16px; }
.prize { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: var(--radius-m); background: rgba(246,227,180,.06); border: 1px solid rgba(246,227,180,.2); font-size: 11.5px; color: #ffeec9; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding: 0 16px; }
.bars__col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.bars__bar { width: 100%; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, rgba(236,35,127,.9), rgba(236,35,127,.25)); min-height: 6px; }
.bars__col span { font-size: 9.5px; color: var(--text-3); }
.app-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #ffb6d0; flex: 0 0 40px; }

.avatar-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px 16px 0; }
.avatar-picker__item { aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 2px solid transparent; }
.avatar-picker__item.is-on { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(236,35,127,.22); }
.avatar-picker__item img { width: 100%; height: 100%; object-fit: cover; }
.radio { display: inline-flex; }
.radio input { display: none; }
.radio span { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: inline-block; position: relative; }
.radio input:checked + span { border-color: var(--pink); }
.radio input:checked + span::after { content: ""; position: absolute; top: 3px; right: 3px; bottom: 3px; left: 3px; border-radius: 50%; background: var(--pink); }

.login { padding: 20px 16px 0; text-align: center; }
.login__logo { height: 34px; margin: 6px auto 10px; }
.login__tip { font-size: 12px; color: var(--text-3); margin-bottom: 14px; line-height: 1.6; }
.login__other { margin-top: 16px; font-size: 11px; color: var(--text-3); }
.cert { padding: 14px 16px; }
.cert__row { border-radius: var(--radius-m); background: rgba(255,255,255,.04); border: 1px solid var(--line); overflow: hidden; }

.post--detail { padding: 16px; }
.post--detail .post__text { font-size: 14.5px; }
.post__desc { margin-top: 8px; font-size: 12.5px; line-height: 1.7; color: var(--text-2); }
.post__media--tall { aspect-ratio: 3 / 4; max-height: 60vh; }

/* ---------------------------------------------------------- generic */
.page { padding-bottom: 28px; animation: pageIn 0.34s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.pad { padding-inline: 16px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 10px;
  background: linear-gradient(180deg, rgba(11, 11, 13, 0.96) 40%, rgba(11, 11, 13, 0.6) 82%, rgba(11, 11, 13, 0));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.topbar__logo { height: 26px; width: auto; }
.topbar__spacer { flex: 1; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.15s var(--ease), background 0.2s;
}
.icon-btn:active { transform: scale(0.92); background: rgba(255, 255, 255, 0.12); }
.icon-btn svg { width: 18px; height: 18px; }

.sign-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 11px 0 8px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(236, 35, 127, 0.22), rgba(236, 35, 127, 0.08));
  border: 1px solid rgba(236, 35, 127, 0.45);
  color: #ffd9e8;
  font-size: 12px;
  font-weight: 600;
}
.sign-btn img { width: 17px; height: 17px; }
.sign-btn.is-done { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.06); color: var(--text-3); }

/* 第 87 轮：网页版顶栏的「下载APP」（安卓 App 里、iPhone 桌面书签里不出这个按钮，见 app.js inAppShell） */
.dl-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  height: 30px;
  padding: 0 11px 0 9px;
  border-radius: 15px;
  background: linear-gradient(120deg, #ff4f9a, var(--pink));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(236, 35, 127, 0.35);
  transition: transform 0.15s var(--ease);
}
.dl-app-btn svg { stroke-width: 2.2; }
.dl-app-btn:active { transform: scale(0.94); }
/* 320 来宽的小屏：首页顶栏放了 logo、下载、搜索、签到四样，去掉下载按钮的图标、收一点间距才放得下 */
@media (max-width: 350px) {
  [data-page="home"] .topbar { gap: 8px; }
  .dl-app-btn { padding: 0 9px; }
  .dl-app-btn svg { display: none; }
}

.section { margin-top: 22px; }
.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  margin-bottom: 12px;
}
.section__title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.section__title em {
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.5px;
}
.section__more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  color: var(--text-3);
}
.section__more svg { width: 14px; height: 14px; }

/* ---------------------------------------------------------- banner */
.banner {
  position: relative;
  margin: 4px 16px 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.banner__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.banner__track::-webkit-scrollbar { display: none; }
.banner__item {
  flex: 0 0 100%;
  scroll-snap-align: center;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1a20;
}
.banner__item img { width: 100%; height: 100%; object-fit: cover; }
.banner__item::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.55));
}
.banner__dots {
  position: absolute;
  right: 12px;
  bottom: 10px;
  display: flex;
  gap: 5px;
  z-index: 2;
}
.banner__dot {
  width: 5px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.4);
  transition: width 0.3s var(--ease), background 0.3s;
}
.banner__dot.is-on { width: 16px; background: var(--pink); }

/* 第 110 轮：首页顶部分类（第一层标签） */
.homenav { display: flex; justify-content: space-between; gap: 14px; padding: 0 16px 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.homenav::-webkit-scrollbar { display: none; }
.homenav__item { flex: 0 0 auto; position: relative; padding: 6px 0 9px; font-size: 15px; color: var(--text-2); white-space: nowrap; }
.homenav__item.is-on { color: var(--gold); font-size: 16px; font-weight: 700; }
.homenav__item.is-on::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 18px; height: 3px; margin-left: -9px; border-radius: 2px; background: var(--gold); }
/* 第 110 轮：轮播改成主推海报（左边文字和「立即观看」，右边海报，背景是同一张图虚化） */
.banner--hero .banner__item { aspect-ratio: 16 / 10; }
.banner__item--hero { display: flex; align-items: stretch; background: #15151b; cursor: pointer; }
.banner__item--hero .hero__bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(16px) brightness(0.5); transform: scale(1.15); }
.banner__item--hero::after { background: linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.25) 62%, rgba(0, 0, 0, 0.08) 100%); }
.hero__body { position: relative; z-index: 1; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 14px 10px 28px 16px; }
.hero__slogan { font-size: 10px; color: var(--gold); letter-spacing: 0.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__title { font-size: 18px; font-weight: 800; line-height: 1.3; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); }
.hero__badge { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 700; vertical-align: 3px; color: #43310a; background: var(--gold); }
.hero__badge--new { color: #fff; background: var(--pink); }
.hero__meta { font-size: 11px; color: rgba(255, 255, 255, 0.78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__cta { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; padding: 6px 12px; border-radius: 16px; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(120deg, var(--pink), #ff4d7d); box-shadow: 0 4px 14px rgba(236, 35, 127, 0.35); }
.hero__cta svg { width: 12px; height: 12px; }
.banner__item--hero .hero__poster { position: relative; z-index: 1; flex: 0 0 auto; align-self: center; width: auto; height: 84%; aspect-ratio: 3 / 4; margin-right: 14px; border-radius: 10px; object-fit: cover; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
.banner--hero .banner__dots { left: 16px; right: auto; bottom: 10px; }
.safe-covers .banner__item--hero .hero__bg { filter: blur(16px) brightness(0.5); }
/* 第 110 轮：热门标签（第二层标签，两行横滑） */
.hottags { margin-top: 14px; }
.hottags__head { display: flex; align-items: center; gap: 4px; padding: 0 16px 8px; font-size: 15px; font-weight: 700; }
.hottags__head svg { width: 14px; height: 14px; color: var(--pink-soft); }
.hottags__grid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); gap: 8px; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hottags__grid::-webkit-scrollbar { display: none; }
.hottag { padding: 7px 16px; border-radius: 16px; font-size: 13px; color: var(--text); background: var(--surface-2); border: 1px solid rgba(255, 255, 255, 0.06); white-space: nowrap; }
.hottag:active { transform: scale(0.96); }
/* 第 110 轮：首页最显眼的位置放后台排第一的分区（现在是最近上新），标题用强调色 */
.section--hl .section__title { color: var(--pink-soft); }

/* 第 116 轮：免费专区。「免费」一律用绿色，和金色的价格、粉色的热播分开。
   这几条写在 .card__badge / .vcard__coin / .tag 的基础样式前面，所以都用两个类名压过去 */
.card__badge.card__badge--free { background: linear-gradient(120deg, #19b36b, #34d399); border-color: transparent; color: #fff; font-weight: 800; }
.vcard__coin.vcard__coin--free { color: #fff; font-weight: 700; background: linear-gradient(120deg, #19b36b, #34d399); }
.tag.tag--free { color: #b9f5d8; background: rgba(25, 179, 107, 0.18); border-color: rgba(52, 211, 153, 0.35); }
.homenav__item.homenav__item--free { color: #3ddc97; }
.homenav__item.homenav__item--free.is-on { color: var(--gold); }
.section--free .section__title { color: #3ddc97; }
.fz-vgrid { margin-top: 12px; }
.fz-tip { display: flex; align-items: center; gap: 6px; margin: 6px 16px 4px; padding: 8px 12px; border-radius: 10px;
  font-size: 12px; line-height: 1.5; color: #b9f5d8; background: rgba(25, 179, 107, 0.14); }
.fz-tip svg { width: 14px; height: 14px; flex: none; color: #3ddc97; }

/* ---------------------------------------------------------- quick nav */
.quicknav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 16px 12px 4px;
}
.quicknav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 10px 4px 8px;
  border-radius: var(--radius-m);
  color: var(--text-2);
  font-size: 11.5px;
  transition: transform 0.16s var(--ease), background 0.2s;
}
.quicknav__item:active { transform: scale(0.95); background: rgba(255, 255, 255, 0.05); }
.quicknav__ico {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.quicknav__ico svg { width: 21px; height: 21px; }
.quicknav__ico--pink { background: linear-gradient(140deg, rgba(236, 35, 127, 0.3), rgba(236, 35, 127, 0.08)); color: #ff8ab5; border-color: rgba(236, 35, 127, 0.3); }
.quicknav__ico--gold { background: linear-gradient(140deg, rgba(217, 178, 74, 0.3), rgba(217, 178, 74, 0.06)); color: var(--gold); border-color: rgba(217, 178, 74, 0.28); }
.quicknav__ico--blue { background: linear-gradient(140deg, rgba(79, 140, 255, 0.3), rgba(79, 140, 255, 0.06)); color: #9dbdff; border-color: rgba(79, 140, 255, 0.28); }
.quicknav__ico--violet { background: linear-gradient(140deg, rgba(139, 92, 246, 0.3), rgba(139, 92, 246, 0.06)); color: #c3b4ff; border-color: rgba(139, 92, 246, 0.28); }

/* ---------------------------------------------------------- rank tabs */
.ranktabs {
  display: flex;
  gap: 18px;
  padding: 0 16px;
  margin-bottom: 12px;
}
.ranktab {
  position: relative;
  font-size: 13px;
  color: var(--text-3);
  padding-bottom: 7px;
  transition: color 0.2s;
}
.ranktab.is-on { color: var(--text); font-weight: 600; }
.ranktab.is-on::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 18px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--pink);
}

/* ---------------------------------------------------------- drama cards */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 16px;
}

.card {
  display: block;
  position: relative;
  border-radius: var(--radius-m);
  overflow: visible;
  background: transparent;
  transition: transform 0.18s var(--ease);
}
.card:active { transform: scale(0.975); }

.card__poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-m);
  background: #1c1c22;
}
.card__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.card:hover .card__poster img { transform: scale(1.04); }
.card__poster::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, transparent 24%, transparent 70%, rgba(0, 0, 0, 0.42) 100%);
  pointer-events: none;
}
.card__badge {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.card__badge--hot { background: linear-gradient(120deg, var(--pink), #ff4d7d); border-color: transparent; }
/* 上新角标。和状态角标同在左上角，所以状态那个要往下让一行。 */
.card__badge--new {
  background: linear-gradient(120deg, #f6e3b4, #e8c66a);
  border-color: transparent;
  color: #3a2a06;
  font-weight: 800;
}
.card__badge--2nd { top: 31px; }
.card__corner {
  position: absolute;
  z-index: 2;
  right: 8px;
  top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 19px;
  padding: 0 6px;
  border-radius: 6px;
  font-size: 10px;
  color: #ffe9c9;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(246, 227, 180, 0.35);
}
.card__corner svg { width: 11px; height: 11px; }
.card__body {
  position: relative;
  z-index: 2;
  padding: 7px 2px 0;
}
.card__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card__meta {
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
}
.card__meta svg { width: 11px; height: 11px; opacity: 0.75; }
.card__meta span { display: inline-flex; align-items: center; gap: 3px; }
.card__desc {
  margin-top: 1px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* horizontal rail */
.rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 16px 4px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail .card { flex: 0 0 118px; scroll-snap-align: start; }
.rail .card__title { font-size: 12.5px; }

/* flex 子项的 min-width 默认是 auto，意思是「不能窄过内容的最小宽度」。
   .card__title 用的是 white-space:nowrap，它的最小宽度就等于整行标题的宽度——
   overflow:hidden 只是不画出来，并不会让这个最小宽度变小。
   于是标题长的卡片会被撑得比 flex-basis(118px) 还宽，一排里卡片忽宽忽窄；
   封面又是 aspect-ratio:3/4，卡片一宽封面跟着变高，看起来就是「图片大小不一」。
   min-width:0 把这个下限解除，宽度交回给 flex-basis，标题照旧省略号截断。 */
.rail > *,
.creators > * { min-width: 0; }

/* 分区标题现在可以在后台自定义，长标题不该把右边的「更多」挤出屏幕 */
.section__head { gap: 10px; }
.section__title { min-width: 0; overflow: hidden; white-space: nowrap; }
.section__more { flex: 0 0 auto; }

/* ---------------------------------------------------------- topics */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  padding: 0 16px;
}
.topic {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--surface);
}
.topic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.topic:active img { transform: scale(1.05); }
.topic__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 8px 7px;
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.68));
}
.topic__sub { display: block; font-size: 9.5px; font-weight: 400; color: rgba(255, 255, 255, 0.6); margin-top: 1px; }

/* ---------------------------------------------------------- creators */
.creators {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 0 16px 4px;
  scrollbar-width: none;
}
.creators::-webkit-scrollbar { display: none; }
.creator { flex: 0 0 58px; text-align: center; }
.creator__av {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin: 0 auto 6px;
  padding: 2px;
  background: linear-gradient(140deg, var(--pink), #8b5cf6);
}
.creator__av img { width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--bg); object-fit: cover; }
.creator__name { font-size: 11px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------- list rows */
.rows { padding: 0 16px; display: flex; flex-direction: column; gap: 12px; }
.row-card {
  display: flex;
  gap: 11px;
  padding: 10px;
  border-radius: var(--radius-m);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  transition: transform 0.16s var(--ease), border-color 0.2s;
}
.row-card:active { transform: scale(0.985); border-color: rgba(236, 35, 127, 0.35); }
.row-card__poster {
  flex: 0 0 78px;
  aspect-ratio: 3 / 4;
  border-radius: 9px;
  overflow: hidden;
  background: #1c1c22;
  position: relative;
}
.row-card__poster img { width: 100%; height: 100%; object-fit: cover; }
.row-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; padding-top: 2px; }
.row-card__title { font-size: 14.5px; font-weight: 700; }
.row-card__sub { margin-top: 4px; font-size: 11.5px; color: var(--text-3); }
.row-card__intro {
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--text-2);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.row-card__foot { margin-top: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.tag--pink { color: #ffb6d0; background: rgba(236, 35, 127, 0.16); border-color: rgba(236, 35, 127, 0.3); }
.tag--gold { color: #ffe6ae; background: rgba(217, 178, 74, 0.15); border-color: rgba(217, 178, 74, 0.3); }

.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); display: inline-block; }

/* ---------------------------------------------------------- chips / filters */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 16px 12px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 14px;
  border-radius: 15px;
  font-size: 12.5px;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  transition: all 0.2s var(--ease);
}
.chip.is-on {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(120deg, rgba(236, 35, 127, 0.9), rgba(255, 77, 125, 0.75));
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(236, 35, 127, 0.32);
}

.sortbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px 12px;
  font-size: 12px;
  color: var(--text-3);
}
.sortbar button { display: inline-flex; align-items: center; gap: 3px; color: inherit; font-size: inherit; }
.sortbar button.is-on { color: var(--pink); font-weight: 600; }
.sortbar svg { width: 11px; height: 11px; }

/* ---------------------------------------------------------- mine */
.profile {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px 18px;
}
.profile__av {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  padding: 2px;
  background: rgba(255, 255, 255, 0.16);
  flex: 0 0 auto;
}
.profile__av.is-vip { background: linear-gradient(140deg, #ffe9b0, var(--gold-deep)); box-shadow: 0 0 0 1px rgba(246, 227, 180, 0.3); }
.profile__av img { width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--bg); object-fit: cover; }
.profile__info { flex: 1; min-width: 0; }
.profile__name-row { display: flex; align-items: center; gap: 7px; }
.profile__name { font-size: 18px; font-weight: 700; letter-spacing: 0.2px; }
.profile__uid { margin-top: 4px; font-size: 11px; color: var(--text-3); }
.profile__actions { display: flex; gap: 6px; }

.vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 19px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  color: #42320c;
  background: linear-gradient(120deg, #ffe9b0, var(--gold-deep));
}
.vip-badge svg { width: 10px; height: 10px; }
.vip-badge--off { color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.1); }

.vip-card {
  margin: 0 16px;
  padding: 14px 16px;
  border-radius: var(--radius-l);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 233, 176, 0.3), transparent 58%),
    linear-gradient(120deg, #2a2113, #1a1712 55%, #131215);
  border: 1px solid rgba(246, 227, 180, 0.26);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.vip-card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 233, 176, 0.18), transparent 68%);
}
.vip-card__ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #ffe9b0, var(--gold-deep));
  color: #4a3708;
  flex: 0 0 auto;
}
.vip-card__ico svg { width: 21px; height: 21px; }
.vip-card__text { flex: 1; min-width: 0; }
.vip-card__title { font-size: 14px; font-weight: 700; color: #ffeec9; }
.vip-card__desc { margin-top: 3px; font-size: 11px; color: rgba(255, 233, 176, 0.62); }
.vip-card__btn {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 14px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 700;
  color: #4a3708;
  background: linear-gradient(120deg, #fff2cc, var(--gold-deep));
  box-shadow: 0 4px 14px rgba(217, 178, 74, 0.3);
}

.entry-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  padding: 14px 16px 0;
}
.entry-card {
  padding: 11px 10px 10px;
  border-radius: var(--radius-m);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: transform 0.16s var(--ease);
  position: relative;
  overflow: hidden;
}
.entry-card:active { transform: scale(0.97); }
.entry-card__ico { width: 26px; height: 26px; margin-bottom: 3px; }
.entry-card__ico svg { width: 100%; height: 100%; }
.entry-card__label { font-size: 12px; font-weight: 600; }
.entry-card__value { font-size: 10.5px; color: var(--text-3); }

.stats {
  display: flex;
  align-items: center;
  padding: 16px 16px 6px;
}
.stat { flex: 1; text-align: center; }
.stat__num { font-size: 17px; font-weight: 700; letter-spacing: 0.3px; }
.stat__label { margin-top: 2px; font-size: 11px; color: var(--text-3); }

.panel {
  margin: 14px 16px 0;
  border-radius: var(--radius-l);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.panel__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.panel__title span { font-size: 11px; color: var(--text-3); }

.func-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  padding: 4px 6px 14px;
}
.func {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 10px 2px;
  border-radius: var(--radius-m);
  font-size: 11px;
  color: var(--text-2);
  transition: background 0.2s;
}
.func:active { background: rgba(255, 255, 255, 0.05); }
.func__ico {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.78);
}
.func__ico svg { width: 18px; height: 18px; }

.invite {
  margin: 14px 16px 0;
  padding: 14px;
  border-radius: var(--radius-l);
  background:
    radial-gradient(100% 140% at 0% 0%, rgba(236, 35, 127, 0.24), transparent 62%),
    var(--surface);
  border: 1px solid rgba(236, 35, 127, 0.24);
}
.invite__row { display: flex; align-items: center; gap: 10px; }
.invite__label { font-size: 12px; color: var(--text-2); flex: 1; }
.invite__code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #ffd9e8;
}
.invite__copy {
  height: 26px;
  padding: 0 11px;
  border-radius: 13px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(236, 35, 127, 0.85);
}
.invite__hint { margin-top: 9px; font-size: 11px; color: var(--text-3); line-height: 1.5; }

.site-foot {
  margin: 22px 16px 0;
  padding: 14px;
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  text-align: center;
}
.site-foot__brand { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-2); }
.site-foot__mark {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(140deg, var(--pink), #ff7ab0);
  box-shadow: 0 2px 10px rgba(236, 35, 127, 0.4);
}
.site-foot__mark svg { width: 10px; height: 10px; margin-left: 1px; fill: currentColor; stroke: none; }
.site-foot__url { margin-top: 5px; font-size: 11px; color: var(--text-3); letter-spacing: 0.6px; }
.site-foot__tip { margin-top: 9px; font-size: 10.5px; color: rgba(255, 255, 255, 0.26); line-height: 1.6; }

/* ---------------------------------------------------------- detail / player */
.detail { padding-bottom: 30px; }

.stage {
  position: relative;
  background: #000;
  aspect-ratio: 9 / 16;
  max-height: 62vh; max-height: 62dvh;
  margin: 0 auto;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 520px) and (min-height: 720px) {
  .stage { border-radius: 18px 18px 0 0; }
}

.stage__art {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  filter: saturate(1.05) brightness(0.92);
  transition: transform 0.4s var(--ease);
}
.stage.is-playing .stage__art { animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns {
  0% { transform: scale(1.02) translate3d(0, 0, 0); }
  100% { transform: scale(1.16) translate3d(-1.5%, -2%, 0); }
}
.stage__veil {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, transparent 22%, transparent 52%, rgba(0, 0, 0, 0.86) 100%),
    radial-gradient(70% 50% at 50% 45%, transparent 40%, rgba(0, 0, 0, 0.35) 100%);
}
.stage__grain {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

.stage__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}
.stage__back {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(8px);
}
.stage__back svg { width: 18px; height: 18px; }
.stage__title { flex: 1; min-width: 0; }
.stage__title strong { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage__title small { display: block; margin-top: 1px; font-size: 10.5px; color: rgba(255, 255, 255, 0.62); }
.stage__eps {
  height: 28px;
  padding: 0 10px;
  border-radius: 14px;
  font-size: 11.5px;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.stage__center {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  display: grid;
  place-items: center;
  z-index: 3;
  pointer-events: none;
}
.playbtn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  color: #fff;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
  transition: transform 0.2s var(--ease), opacity 0.25s;
}
.playbtn svg { width: 26px; height: 26px; margin-left: 3px; }
.playbtn:active { transform: scale(0.9); }
.stage.is-playing .playbtn { opacity: 0; transform: scale(1.3); pointer-events: none; }

.stage__lock {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 6;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 30px;
  text-align: center;
  background: rgba(7, 7, 9, 0.9);
  backdrop-filter: blur(14px);
}
.stage.is-locked .stage__lock { display: flex; }
.stage.is-locked .stage__rail,
.stage.is-locked .stage__bottom,
.stage.is-locked .stage__center { opacity: 0; pointer-events: none; }
.stage__rail, .stage__bottom, .stage__center { transition: opacity 0.25s var(--ease); }
.stage__lock-ico {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: rgba(246, 227, 180, 0.1);
  border: 1px solid rgba(246, 227, 180, 0.3);
}
.stage__lock-ico svg { width: 24px; height: 24px; }
.stage__lock h3 { font-size: 15px; font-weight: 700; }
.stage__lock p { font-size: 12px; color: var(--text-2); line-height: 1.6; }
.stage__lock-price { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--gold); font-weight: 700; }
.stage__lock-price svg { width: 15px; height: 15px; }
.stage__lock-actions { display: flex; gap: 10px; margin-top: 4px; }
.btn {
  height: 40px;
  padding: 0 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.16s var(--ease), opacity 0.2s;
}
.btn:active { transform: scale(0.96); }
.btn--primary { color: #fff; background: linear-gradient(120deg, var(--pink), #ff4d7d); box-shadow: 0 6px 20px rgba(236, 35, 127, 0.35); }
.btn--ghost { color: #fff; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); }
.btn--gold { color: #43310a; background: linear-gradient(120deg, #ffeec2, var(--gold-deep)); box-shadow: 0 6px 20px rgba(217, 178, 74, 0.3); }
.btn--block { width: 100%; }
.btn--sm { height: 32px; padding: 0 14px; font-size: 12px; border-radius: 16px; }
/* 请求还没回来时按钮是锁着的（防连点），要看得出来 */
.btn:disabled { opacity: 0.6; cursor: default; }

.stage__rail {
  position: absolute;
  right: 10px;
  bottom: 84px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rail-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #fff;
  font-size: 10px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
.rail-btn svg { width: 24px; height: 24px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6)); }
.rail-btn.is-on { color: var(--pink-soft); }
/* 第 108 轮：纯净模式（清屏）。右侧只留眼睛，底部标题 / 进度条 / 控制条 / 选集条都藏起来，画面上下的暗角也去掉 */
.stage.is-pure .stage__rail > .rail-btn:not(.rail-btn--pure),
.stage.is-pure .stage__bottom { opacity: 0; pointer-events: none; }
.stage.is-pure .stage__veil { opacity: 0; transition: opacity 0.25s var(--ease); }
.stage.is-pure .rail-btn--pure { opacity: 0.7; }
.rail-btn--pure span:empty { display: none; }
.rail-btn:active { transform: scale(0.9); }

.stage__bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 0 14px 12px;
}
.progress {
  position: relative;
  height: 18px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}
.progress__track { position: relative; width: 100%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.24); overflow: hidden; }
.progress__fill { position: absolute; top: 0; right: auto; bottom: 0; left: 0; width: 0%; background: linear-gradient(90deg, var(--pink), #ff8ab5); border-radius: 3px; }
.progress__knob {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(236, 35, 127, 0.9);
  transform: translate(-50%, -50%);
  left: 0;
}
.stage__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
}
.stage__controls .time { font-variant-numeric: tabular-nums; letter-spacing: 0.3px; }
.ctrl {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.ctrl svg { width: 15px; height: 15px; }
/* 倍速按钮：显示文字而不是图标，所以要比图标按钮宽一点 */
.ctrl--rate {
  width: auto;
  min-width: 42px;
  padding: 0 9px;
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
}
.stage__next-tip { margin-left: auto; font-size: 10.5px; color: rgba(255, 255, 255, 0.62); }
/* 第 109 轮：放大（全屏）时只留视频和播放控制条：右侧按钮、顶部标题、标签、选集条都藏起来 */
.stage.is-zoom .stage__rail,
.stage.is-zoom .stage__top,
.stage.is-zoom .stage__info,
.stage.is-zoom .stage__epbar,
.stage.is-zoom .stage__next-tip { display: none !important; }
.stage.is-zoom { background: #000; }
.stage.is-zoom .stage__video { object-fit: contain; }
.stage.is-zoom .stage__veil { background: linear-gradient(180deg, transparent 72%, rgba(0, 0, 0, 0.62) 100%); }
.stage.is-zoom .ctrl--fs { margin-left: auto; }
.stage__next-tip b { color: var(--pink-soft); font-variant-numeric: tabular-nums; }

.detail__head { padding: 16px 16px 0; }
.detail__title-row { display: flex; align-items: flex-start; gap: 10px; }
.detail__title { flex: 1; font-size: 20px; font-weight: 800; letter-spacing: 0.2px; line-height: 1.3; }
.detail__status {
  flex: 0 0 auto;
  margin-top: 3px;
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 6px;
  color: #ffd9e8;
  background: rgba(236, 35, 127, 0.16);
  border: 1px solid rgba(236, 35, 127, 0.3);
}
.detail__meta { margin-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-3); }
.detail__tags { margin-top: 10px; display: flex; gap: 7px; flex-wrap: wrap; }
.detail__actions { display: flex; gap: 9px; padding: 14px 16px 0; }
.detail__actions .btn { flex: 1; }

.block { margin: 18px 16px 0; }
.block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.block__title { font-size: 15px; font-weight: 700; }
.block__title span { margin-left: 6px; font-size: 11px; font-weight: 400; color: var(--text-3); }
.block__more { font-size: 11.5px; color: var(--text-3); display: inline-flex; align-items: center; gap: 2px; }
.block__more svg { width: 13px; height: 13px; }

.intro-text {
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.intro-text.is-open { -webkit-line-clamp: unset; }
.intro-toggle { margin-top: 6px; font-size: 11.5px; color: var(--pink-soft); }

.ep-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.ep {
  position: relative;
  aspect-ratio: 1;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid transparent;
  transition: all 0.16s var(--ease);
}
.ep:active { transform: scale(0.94); }
.ep.is-current { color: #fff; background: linear-gradient(135deg, rgba(236, 35, 127, 0.95), rgba(255, 77, 125, 0.8)); border-color: transparent; box-shadow: 0 4px 14px rgba(236, 35, 127, 0.34); }
.ep.is-locked { color: rgba(255, 255, 255, 0.32); }
.ep__lock {
  position: absolute;
  right: 4px;
  top: 3px;
  display: inline-flex;
  color: var(--gold);
  opacity: 0.72;
}

/* ---------------------------------------------------------- member */
.vip-hero {
  position: relative;
  margin: 10px 16px 0;
  padding: 22px 18px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 92% 0%, rgba(255, 233, 176, 0.34), transparent 55%),
    linear-gradient(135deg, #2b2113, #16130f 60%, #0f0e11);
  border: 1px solid rgba(246, 227, 180, 0.24);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.vip-hero::before {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(255, 233, 176, 0.16);
  box-shadow: 0 0 0 26px rgba(255, 233, 176, 0.04), 0 0 0 52px rgba(255, 233, 176, 0.025);
}
.vip-hero__label { font-size: 11px; letter-spacing: 4px; color: rgba(255, 233, 176, 0.6); }
.vip-hero__title { margin-top: 8px; font-size: 25px; font-weight: 800; letter-spacing: 1px; color: #fff3d2; }
.vip-hero__desc { margin-top: 8px; font-size: 12px; color: rgba(255, 233, 176, 0.62); line-height: 1.6; }
.vip-hero__state { margin-top: 14px; display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: rgba(255, 255, 255, 0.66); }

/* 五档：固定三列网格会排成「3 + 2 左对齐」，最后一行空一格很难看。
   改成换行居中，第二行那两张居中，看起来是有意为之。 */
.plans { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; padding: 0 16px; }
.plans > .plan { flex: 0 0 calc((100% - 18px) / 3); }
.plan {
  position: relative;
  padding: 14px 8px 12px;
  border-radius: var(--radius-m);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: all 0.2s var(--ease);
  overflow: hidden;
}
.plan.is-on {
  background: linear-gradient(165deg, rgba(246, 227, 180, 0.16), rgba(246, 227, 180, 0.04));
  border-color: rgba(246, 227, 180, 0.55);
  box-shadow: 0 8px 24px rgba(217, 178, 74, 0.16);
}
.plan__tag {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 0 0 0 7px;
  color: #3f2f08;
  background: linear-gradient(120deg, #ffeec2, var(--gold-deep));
  font-weight: 700;
}
.plan__name { font-size: 13px; font-weight: 700; color: var(--text-2); }
.plan.is-on .plan__name { color: #ffeec9; }
.plan__price { margin-top: 8px; font-size: 23px; font-weight: 800; color: #fff; line-height: 1; }
.plan__price small { font-size: 12px; font-weight: 600; margin-right: 1px; }
.plan__orig { margin-top: 5px; font-size: 10.5px; color: var(--text-3); text-decoration: line-through; }

.perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 0 16px; }
.perk {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.perk__ico {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: rgba(246, 227, 180, 0.1);
}
.perk__ico svg { width: 17px; height: 17px; }
.perk__title { font-size: 12px; font-weight: 600; }
.perk__desc { margin-top: 2px; font-size: 10.5px; color: var(--text-3); line-height: 1.5; }

.paybar {
  position: sticky;
  bottom: 0;
  margin-top: 22px;
  padding: 12px 16px calc(12px + var(--safe-b));
  background: linear-gradient(180deg, rgba(11, 11, 13, 0), rgba(11, 11, 13, 0.96) 34%);
  display: flex;
  align-items: center;
  gap: 12px;
}
.paybar__price { font-size: 11px; color: var(--text-3); }
.paybar__price b { display: block; font-size: 21px; color: #fff; font-weight: 800; line-height: 1.1; }
.paybar__price b small { font-size: 12px; }

/* ---------------------------------------------------------- wallet */
.wallet-card {
  margin: 12px 16px 0;
  padding: 20px 18px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(110% 130% at 100% 0%, rgba(236, 35, 127, 0.28), transparent 58%),
    linear-gradient(140deg, #1d1420, #14131a);
  border: 1px solid rgba(236, 35, 127, 0.24);
}
.wallet-card__label { font-size: 11.5px; color: var(--text-2); letter-spacing: 1px; }
.wallet-card__amount { margin-top: 7px; display: flex; align-items: baseline; gap: 7px; }
.wallet-card__amount b { font-size: 34px; font-weight: 800; letter-spacing: 0.5px; }
.wallet-card__amount span { font-size: 12px; color: var(--text-3); }
.wallet-card__row { margin-top: 14px; display: flex; gap: 10px; }
.wallet-card__row .btn { flex: 1; }

.coin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; padding: 0 16px; }
.coin {
  position: relative;
  padding: 14px 6px 11px;
  border-radius: var(--radius-m);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: all 0.18s var(--ease);
}
.coin:active { transform: scale(0.96); border-color: rgba(236, 35, 127, 0.5); }
.coin__ico { width: 30px; height: 30px; margin: 0 auto 6px; }
.coin__amount { font-size: 15px; font-weight: 800; }
.coin__bonus { margin-top: 2px; min-height: 14px; font-size: 10px; color: var(--gold); }
.coin__price { margin-top: 7px; font-size: 12px; color: #ff9dbb; font-weight: 600; }

.txn { padding: 0 16px; }
.txn__item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.txn__ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-2);
}
.txn__ico svg { width: 16px; height: 16px; }
.txn__body { flex: 1; min-width: 0; }
.txn__title { font-size: 12.5px; font-weight: 600; }
.txn__time { margin-top: 2px; font-size: 10.5px; color: var(--text-3); }
.txn__amount { font-size: 13px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.txn__amount.is-out { color: rgba(255, 255, 255, 0.5); }

/* ---------------------------------------------------------- search */
.searchbar {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 12px;
  background: linear-gradient(180deg, rgba(11, 11, 13, 0.98) 55%, rgba(11, 11, 13, 0));
  backdrop-filter: blur(10px);
}
.searchbar__field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 13px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.searchbar__field svg { width: 15px; height: 15px; color: var(--text-3); flex: 0 0 auto; }
.searchbar__field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
  color: #fff;
}
.searchbar__field input::placeholder { color: var(--text-3); }
.searchbar__cancel { font-size: 13px; color: var(--text-2); }

.hot-searches { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px; }
.hot-search {
  height: 29px;
  padding: 0 13px;
  border-radius: 15px;
  font-size: 12px;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}
.hot-search.is-first { color: #ffd9e8; border-color: rgba(236, 35, 127, 0.34); background: rgba(236, 35, 127, 0.12); }

.results { padding-top: 4px; }

.empty {
  padding: 60px 24px;
  text-align: center;
  color: var(--text-3);
}
.empty svg { width: 52px; height: 52px; opacity: 0.28; margin-bottom: 14px; }
.empty p { font-size: 13px; }
.empty small { display: block; margin-top: 6px; font-size: 11.5px; color: rgba(255, 255, 255, 0.26); }

/* ---------------------------------------------------------- sheets / dialog */
.overlay-root { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100; pointer-events: none; }
.overlay-root.has-overlay { pointer-events: auto; }

.scrim {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.scrim.is-on { opacity: 1; }

.sheet {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100%, 430px);
  transform: translate(-50%, 100%);
  background: var(--bg-elev);
  border-radius: 22px 22px 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  transition: transform 0.32s var(--ease);
  max-height: 78vh; max-height: 78dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: var(--safe-b);
}
.sheet.is-on { transform: translate(-50%, 0); }
.sheet__grip { width: 34px; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); margin: 9px auto 2px; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 12px; }
.sheet__title { font-size: 15px; font-weight: 700; }
.sheet__close { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.07); color: var(--text-2); }
.sheet__close svg { width: 14px; height: 14px; }
.sheet__body { padding: 0 16px 18px; overflow-y: auto; }
.sheet .ep-grid { padding-bottom: 8px; }

.dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(86%, 330px);
  transform: translate(-50%, -50%) scale(0.94);
  opacity: 0;
  border-radius: 18px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 20px 18px 16px;
  text-align: center;
  transition: all 0.24s var(--ease);
}
.dialog.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.dialog__title { font-size: 16px; font-weight: 700; }
.dialog__desc { margin-top: 8px; font-size: 12.5px; color: var(--text-2); line-height: 1.65; }
.dialog__price { margin-top: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 10px; background: rgba(246, 227, 180, 0.08); color: var(--gold); font-size: 12.5px; font-weight: 600; }
.dialog__price svg { width: 14px; height: 14px; }
.dialog__actions { margin-top: 16px; display: flex; gap: 9px; }
.dialog__actions .btn { flex: 1; }

/* ---------------------------------------------------------- 首页地址弹窗（第 80 轮，照源站「永不失联」） */
.dialog.addrpop {
  width: min(92%, 400px);
  max-height: 88vh; max-height: 88dvh;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #171616;
  border: 1px solid rgba(255, 210, 28, 0.3);
  box-shadow: var(--shadow);
}
.addrpop [hidden] { display: none !important; }
.addrpop__top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 10px 10px 18px;
  background: linear-gradient(180deg, rgba(255, 210, 28, 0.12), rgba(255, 210, 28, 0.04));
  border-bottom: 1px solid rgba(255, 210, 28, 0.16);
}
.addrpop__cd { font-size: 12.5px; color: var(--text-2); min-height: 18px; }
.addrpop__x { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #fff; }
.addrpop__x svg { width: 16px; height: 16px; }
.addrpop__body { padding: 16px 18px 18px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.addrpop__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.addrpop__title { font-size: 20px; line-height: 1.4; font-weight: 800; color: #ffd21c; }
.addrpop__save {
  flex: none; padding: 8px 11px; border-radius: 10px;
  border: 1px solid rgba(255, 210, 28, 0.75); background: rgba(255, 210, 28, 0.06);
  color: #ffd21c; font-size: 12.5px; font-weight: 700; line-height: 1.3;
}
.addrpop__save:disabled { opacity: 0.55; }
.addrpop__rows { margin-top: 12px; }
.addrpop__row { display: flex; flex-wrap: wrap; gap: 2px 4px; padding: 6px 0; font-size: 14px; line-height: 1.55; }
.addrpop__row dt { color: #f2f0e8; font-weight: 700; }
.addrpop__row dd { color: #f2f0e8; word-break: break-all; }
.addrpop__row a { color: inherit; }
.addrpop__row.is-hl dt, .addrpop__row.is-hl dd { color: #ffd21c; }
.addrpop__row.is-hl dd { font-weight: 700; }
.addrpop__lines { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line-strong); }
.addrpop__line { font-size: 13px; line-height: 1.7; color: var(--text-2); }
.addrpop__line + .addrpop__line { margin-top: 6px; }
.addrpop__line.is-hl { color: #ffd21c; font-weight: 700; }
.addrpop__btns { margin-top: 14px; display: grid; gap: 10px; }
.addrpop__btn {
  display: block; padding: 13px 12px; border-radius: 12px; text-align: center;
  background: linear-gradient(90deg, #ffd21c, #f5a623); color: #211c0b;
  font-size: 15px; font-weight: 800; word-break: break-all;
}
.addrpop__btn:active { opacity: 0.8; }
.addrpop__status { margin-top: 12px; font-size: 12.5px; color: #ffd21c; text-align: center; }
.addrpop__preview { display: block; width: 100%; margin-top: 10px; border-radius: 10px; border: 1px solid var(--line-strong); -webkit-touch-callout: default; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translate(-50%, 14px);
  z-index: 200;
  max-width: 80vw;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
  color: #fff;
  background: rgba(24, 24, 28, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.24s var(--ease);
  pointer-events: none;
}
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------------------------------------------------------- splash */
.splash {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background:
    radial-gradient(60% 46% at 50% 34%, rgba(236, 35, 127, 0.3), transparent 66%),
    radial-gradient(46% 36% at 50% 82%, rgba(96, 48, 255, 0.2), transparent 70%),
    #08080a;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.splash.is-out { opacity: 0; visibility: hidden; }
.splash__logo { width: 176px; height: auto; animation: splashIn 0.9s var(--ease); filter: drop-shadow(0 10px 30px rgba(236, 35, 127, 0.35)); }
@keyframes splashIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }
.splash__tag { font-size: 12px; letter-spacing: 5px; color: rgba(255, 255, 255, 0.42); text-indent: 5px; }
.splash__bar { width: 96px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.splash__bar i { display: block; height: 100%; width: 40%; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--pink), transparent); animation: splashBar 1.1s linear infinite; }
@keyframes splashBar { from { transform: translateX(-120%); } to { transform: translateX(320%); } }
.splash__skip {
  position: absolute;
  right: 16px;
  top: 14px;
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
}

/* ---------------------------------------------------------- skeleton */
.sk { position: relative; overflow: hidden; background: rgba(255, 255, 255, 0.05); border-radius: var(--radius-m); }
.sk::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------------------------------------------------------- misc */
.loadmore {
  padding: 18px 0 8px;
  text-align: center;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.loadmore img { width: 16px; height: 16px; opacity: 0.85; }
/* 评论区的「查看更多」是个真 button（要能点、要能聚焦），
   .loadmore 本来只给 div 用，不清掉浏览器默认的按钮外观会在深色背景上
   露出一块灰色方块。顺便把字调亮 —— 可点的东西用 0.28 透明度根本看不见。 */
button.loadmore {
  width: 100%;
  margin: 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
button.loadmore:active { opacity: 0.55; }

.ripple { position: relative; overflow: hidden; }
.ripple > .r {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  transform: scale(0);
  animation: rip 0.55s ease-out forwards;
  pointer-events: none;
}
@keyframes rip { to { transform: scale(2.6); opacity: 0; } }

.back-top {
  position: fixed;
  right: max(18px, calc(50% - 197px));
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(30, 30, 36, 0.9);
  border: 1px solid var(--line-strong);
  color: var(--text-2);
  box-shadow: var(--shadow);
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transition: all 0.24s var(--ease);
}
.back-top.is-on { opacity: 1; visibility: visible; }
.back-top svg { width: 17px; height: 17px; }

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

/* ---------------------------------------------------------- 真实 HLS 播放层 */
.stage__video {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.stage__video.is-on { opacity: 1; }

/* 视频加载进度圈（第 82 轮）：起播、卡住时在播放区正中显示下了多少。不接点击，点播放区照样是播放 / 暂停 */
.vload {
  position: absolute;
  left: 50%; top: 50%;
  z-index: 3;
  width: 62px; height: 62px;
  margin: -31px 0 0 -31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  pointer-events: none;
  animation: vloadIn 0.2s var(--ease);
}
.vload[hidden] { display: none; }
.vload svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.vload__bg { fill: none; stroke: rgba(255, 255, 255, 0.2); stroke-width: 3.5; }
.vload__fg { fill: none; stroke: var(--pink); stroke-width: 3.5; stroke-linecap: round; transition: stroke-dashoffset 0.18s linear; }
.vload__pct { position: relative; font-size: 13px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
@keyframes vloadIn { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------- 评论区 */
.cmt-form { display:flex; gap:8px; padding:10px 14px 4px; }
.cmt-form .form-input { flex:1; }
.cmt-list { padding:4px 14px 14px; }
.cmt { display:flex; gap:10px; padding:10px 0; border-bottom:1px solid var(--line); }
.cmt:last-child { border-bottom:0; }
.cmt__av { width:32px; height:32px; flex:0 0 32px; border-radius:50%; background:#242428; color:var(--text-2);
  display:flex; align-items:center; justify-content:center; font-size:13px; }
.cmt__name { font-size:12.5px; color:var(--text-2); }
.cmt__text { font-size:13.5px; line-height:1.6; margin-top:3px; }
.cmt__meta { font-size:11px; color:var(--text-3); margin-top:4px; }

/* ---------------------------------------------------------- 客服会话 */
.cs-wrap { display:flex; flex-direction:column; height:calc(100vh - 150px); height:calc(100dvh - 150px); }
.cs-box { flex:1; overflow-y:auto; padding:12px 14px; }
.cs-row { display:flex; margin:8px 0; }
.cs-row.is-me { justify-content:flex-end; }
.cs-bubble { max-width:76%; padding:9px 12px; border-radius:13px; font-size:13.5px; line-height:1.55;
  background:#1d1d21; border:1px solid var(--line); word-break:break-word; }
.cs-row.is-me .cs-bubble { background:var(--pink); border-color:transparent; color:#fff; }
.cs-bubble img { max-width:200px; border-radius:9px; display:block; }
.cs-time { font-size:10px; opacity:.55; margin-top:4px; }
.cs-bar { display:flex; gap:8px; align-items:center; padding:10px 12px; border-top:1px solid var(--line); background:#0f0f11; }
.cs-bar input.cs-input { flex:1; background:#17171a; border:1px solid var(--line); color:var(--text);
  border-radius:20px; padding:9px 14px; font-size:13.5px; outline:none; }
.cs-img { width:34px; height:34px; flex:0 0 34px; border-radius:50%; background:#1d1d21; border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; font-size:18px; color:var(--text-2); cursor:pointer; }
.cs-tip { padding:10px 14px; font-size:12px; color:var(--text-3); }

/* 评论点赞（后端 /api/comments/{id}/like 早就有，前端原来只把赞数当文字显示） */
.cmt__like { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; padding: 0 2px;
  background: none; border: 0; font: inherit; color: inherit; cursor: pointer; appearance: none; }
.cmt__like.is-on { color: var(--pink); }
.cmt__like:disabled { opacity: .6; }

/* 第 48 轮：会员档位标明含不含短剧；付费墙上的金币余额 */
.plan__desc { margin-top: 6px; font-size: 10.5px; color: var(--text-3); }
.plan__desc.is-drama { color: var(--gold); font-weight: 700; }
.stage__lock-coins { color: var(--gold); font-weight: 700; }

/* 第 50 轮：付费墙当场充值 / 开卡面板（和源站一样不离开播放页）、选集标单价和「已购」 */
.paysheet__bal { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); }
.paysheet__label { font-size: 11.5px; color: var(--text-3); }
.paysheet__num { display: flex; align-items: center; gap: 5px; margin-top: 4px; color: var(--gold); }
.paysheet__num b { font-size: 20px; color: #fff; }
.paysheet__num svg { width: 16px; height: 16px; }
.paysheet__link { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: var(--text-2); }
.paysheet__link svg { width: 12px; height: 12px; }
.paysheet__need { margin: 12px 0 10px; font-size: 12.5px; line-height: 1.6; color: var(--text-2); }
.paysheet__need b { color: var(--gold); }
.sheet .coin-grid { padding: 0; }
.coin.is-on { border-color: rgba(246, 227, 180, 0.7); background: linear-gradient(165deg, rgba(246, 227, 180, 0.14), rgba(246, 227, 180, 0.03)); }
.coin__badge { position: absolute; top: 0; right: 0; font-size: 9px; padding: 2px 6px; border-radius: 0 var(--radius-m) 0 7px; color: #3f2f08; background: linear-gradient(120deg, #ffeec2, var(--gold-deep)); font-weight: 700; }
.paysheet__tips { margin: 12px 0; font-size: 10.5px; line-height: 1.6; color: var(--text-3); }
.paysheet__service { margin-top: 10px; text-align: center; font-size: 11px; color: var(--text-3); }
.paysheet__service span { color: var(--pink); }
.cardopts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.cardopt { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 12px 14px; border-radius: var(--radius-m); text-align: left; background: var(--surface); border: 1px solid var(--line); color: inherit; }
.cardopt.is-on { border-color: rgba(246, 227, 180, 0.7); background: linear-gradient(165deg, rgba(246, 227, 180, 0.14), rgba(246, 227, 180, 0.03)); }
.cardopt__name { font-size: 14px; font-weight: 700; }
.cardopt__name span { margin-left: 6px; font-size: 11px; font-weight: 500; color: var(--text-3); }
.cardopt__desc { margin-top: 3px; font-size: 11px; color: var(--text-3); }
.cardopt__desc.is-drama { color: var(--gold); font-weight: 700; }
.cardopt__price { font-size: 20px; font-weight: 800; white-space: nowrap; }
.cardopt__price small { font-size: 12px; margin-right: 1px; }
.ep.has-tag { padding-top: 8px; }
.ep__tag { position: absolute; top: 3px; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 1px; font-size: 8.5px; font-weight: 700; line-height: 1; color: var(--gold); }
.ep__tag svg { width: 8px; height: 8px; }
.ep__tag--own { color: #7fd8a4; }
.eps-sheet__meta { margin-bottom: 10px; font-size: 12px; color: var(--text-3); }
.eps-sheet__ranges { display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto; }

/* 第 51 轮：全屏竖屏播放（短剧页 / AI短剧信息流，上下滑切换）、短剧频道页签、热门短剧、我的短剧 */
.detail--fs { height: 100%; padding-bottom: 0; overflow: hidden; }
.stage--fs { aspect-ratio: auto; max-height: none; height: 100%; border-radius: 0 !important; touch-action: none; }
.stage--fs.is-portrait .stage__video { object-fit: cover; }
.stage--fs .stage__rail { bottom: 150px; }
.stage--fs .stage__bottom { padding-bottom: 10px; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6)); }
.stage__info { max-width: calc(100% - 64px); margin-bottom: 4px; cursor: pointer; }
.stage__info-title { font-size: 16px; font-weight: 800; line-height: 1.35; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8); }
.stage__info-sub { display: flex; align-items: center; gap: 3px; margin-top: 3px; font-size: 12px; color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8); }
.stage__info-sub svg { width: 11px; height: 11px; }
.stage__epbar { display: flex; align-items: center; gap: 6px; width: 100%; margin-top: 8px; padding: 9px 12px; border-radius: 10px; font-size: 12.5px; color: #fff; background: rgba(255, 255, 255, 0.12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.stage__epbar svg { width: 14px; height: 14px; flex: 0 0 auto; }
.stage__epbar span { flex: 1; text-align: left; }
.stage--fs .stage__video, .stage--fs .stage__art { transition: transform 0.2s var(--ease), opacity 0.2s var(--ease); }
.stage--fs.is-leave-up .stage__video, .stage--fs.is-leave-up .stage__art { transform: translateY(-14%); opacity: 0; }
.stage--fs.is-leave-down .stage__video, .stage--fs.is-leave-down .stage__art { transform: translateY(14%); opacity: 0; }
.stage--fs.is-enter-up .stage__video, .stage--fs.is-enter-up .stage__art { transform: translateY(14%); opacity: 0; transition: none; }
.stage--fs.is-enter-down .stage__video, .stage--fs.is-enter-down .stage__art { transform: translateY(-14%); opacity: 0; transition: none; }
.stage__top--tabs { justify-content: center; padding-top: 8px; }
.chtabs { display: flex; align-items: center; gap: 12px; overflow-x: auto; scrollbar-width: none; }
/* 第 96 轮：页签加了「AI漫剧」变成 5 个，间距从 16 收到 12，375 宽的手机一排放得下；再窄一点的字也小一号。
   更窄（320）的还是放不下，靠横向滑 + render() 里把选中的那个滑进来（第 90 轮） */
@media (max-width: 360px) { .chtabs { gap: 10px; } .chtabs .chtab { font-size: 14px; } }
.chtabs::-webkit-scrollbar { display: none; }
.chtab { position: relative; flex: 0 0 auto; padding: 6px 0; font-size: 14.5px; font-weight: 600; color: rgba(255, 255, 255, 0.62); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7); }
.chtab.is-on { color: #fff; font-weight: 800; }
.chtab.is-on::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 18px; height: 3px; margin-left: -9px; border-radius: 2px; background: var(--pink); }
.topbar--ch .chtabs { flex: 1; min-width: 0; }
.intro-sheet .detail__meta { padding: 0; }
.intro-sheet .detail__tags { margin: 8px 0; padding: 0; }
.cmt-sheet .cmt-form { margin-bottom: 10px; }
.mydrama-tabs { padding-top: 2px; }
.mycard { position: relative; }
.mycard__del { position: absolute; top: 6px; right: 6px; z-index: 3; padding: 3px 9px; border-radius: 8px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(236, 35, 127, 0.92); }

/* 选择支付方式（第 66 轮，照源站：应付金额 + 单选列表 + 立即支付） */
.paymeth__due { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 2px 0 4px; font-size: 13px; color: var(--text-2); }
.paymeth__due b { font-size: 26px; font-weight: 700; color: #fff; }
.paymeth__what { text-align: center; font-size: 12.5px; color: var(--text-2); }
.paymeth__label { margin: 14px 0 8px; font-size: 12px; color: var(--text-3); }
.paymeth { display: flex; flex-direction: column; gap: 8px; }
.paymeth__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); color: inherit; font: inherit; text-align: left; }
.paymeth__item.is-on { border-color: var(--pink); }
.paymeth__ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 8px; font-size: 15px; font-weight: 700; color: #fff; background: var(--surface-2); }
.paymeth__ico--alipay { background: #1677ff; }
.paymeth__ico--wechat { background: #07c160; }
/* 第 123 轮：USDT（TRC20）支付 */
.paymeth__ico--usdt { background: #26a17b; }
.usdtpay { padding: 2px 2px 6px; }
.usdtpay__due { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.usdtpay__label { font-size: 13px; color: var(--text-2); }
.usdtpay__amt { font-size: 30px; font-weight: 800; color: #3ddc97; letter-spacing: 0.5px; }
.usdtpay__due em { font-style: normal; font-size: 14px; font-weight: 700; color: #3ddc97; }
.usdtpay__copy { margin-left: auto; padding: 5px 12px; border-radius: 14px; font-size: 12px; color: var(--gold);
  border: 1px solid rgba(246, 227, 180, 0.4); background: rgba(246, 227, 180, 0.08); white-space: nowrap; }
.usdtpay__warn { margin-top: 8px; padding: 8px 10px; border-radius: 10px; font-size: 12px; line-height: 1.6;
  color: #ffd9a8; background: rgba(255, 170, 60, 0.12); }
.usdtpay__warn b { color: #ffb347; }
.usdtpay__net { margin-top: 10px; font-size: 12.5px; color: var(--text-2); }
.usdtpay__net b { color: var(--text); }
.usdtpay__qr { display: block; width: 168px; height: 168px; margin: 12px auto 4px; border-radius: 10px; background: #fff; padding: 6px; image-rendering: pixelated; }
.usdtpay__addr { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 10px; border-radius: 10px; background: var(--surface-2); }
.usdtpay__addrtext { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.5;
  word-break: break-all; color: var(--text); -webkit-user-select: all; user-select: all; }
.usdtpay__addr .usdtpay__copy { margin-left: 0; }
.usdtpay__state { margin-top: 12px; padding: 9px 10px; border-radius: 10px; font-size: 13px; text-align: center; color: var(--text-2); background: rgba(255, 255, 255, 0.04); }
.usdtpay__state b { color: var(--gold); font-variant-numeric: tabular-nums; }
.usdtpay__state.is-paid { color: #3ddc97; font-weight: 700; background: rgba(25, 179, 107, 0.14); }
.usdtpay__state.is-expired { color: #ffb347; line-height: 1.6; }
.usdtpay__tips { margin: 10px 0 12px; font-size: 12px; line-height: 1.6; color: var(--text-3); }
.usdtpay__no { color: var(--text-2); -webkit-user-select: all; user-select: all; }
.paymeth__name { flex: 1; font-size: 14px; color: #fff; }
.paymeth__radio { position: relative; flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--text-3); box-sizing: border-box; }
.paymeth__item.is-on .paymeth__radio { border-color: var(--pink); background: var(--pink); }
.paymeth__item.is-on .paymeth__radio::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); box-sizing: border-box; }

/* ---------------------------------------------------------- 第 124 轮：多语言 */
/* 首页顶栏最右边的切换语言按钮：和搜索一样的圆形图标按钮（地球） */
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.15s var(--ease);
}
.lang-btn svg { width: 17px; height: 17px; }
.lang-btn span { display: none; }
.lang-btn:active { transform: scale(0.92); }
/* 顶栏多了一个按钮：按钮都不许被压扁（原来挤的时候搜索按钮会从 34 缩到 22），不够宽时 logo 等比缩小 */
[data-page="home"] .topbar { gap: 8px; }
[data-page="home"] .topbar > .icon-btn, [data-page="home"] .topbar > .sign-btn, [data-page="home"] .topbar > .dl-app-btn { flex-shrink: 0; }
[data-page="home"] .topbar__logo { min-width: 0; flex-shrink: 1; object-fit: contain; object-position: left center; }
.langlist { display: flex; flex-direction: column; gap: 8px; padding-bottom: 6px; }
.langlist__item {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 13px 14px; border-radius: var(--radius-m);
  background: var(--surface); border: 1px solid var(--line); color: inherit; font: inherit; font-size: 14px; text-align: left;
}
.langlist__item.is-on { border-color: rgba(246, 227, 180, 0.55); color: var(--gold); }
.langlist__item svg { width: 16px; height: 16px; }
.form-row__label svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 2px; }
/* 外语界面：「应付金额 $5.00」后面小字写人民币原价（支付宝、微信按人民币扣） */
.paymeth__cny { font-size: 12px; color: var(--text-3); }
/* 外语的字比中文长：日韩和拉丁字母的语言，小屏上签到按钮只留图标（「下载APP」在外语下只写 App，见 app.js dlAppBtn） */
@media (max-width: 400px) {
  html:not([lang="zh-CN"]):not([lang="zh-TW"]) [data-page="home"] .sign-btn { padding: 0 7px; gap: 0; font-size: 0; }
  html:not([lang="zh-CN"]):not([lang="zh-TW"]) [data-page="home"] .sign-btn img { width: 18px; height: 18px; }
}
/* 西文 / 泰文界面：西文字体排在前面。中文字体里的弯引号 “ ” 是全角的，夹在英文里两边空得很大；片名这些中文照样回落到中文字体 */
html:not([lang="zh-CN"]):not([lang="zh-TW"]):not([lang="ja"]):not([lang="ko"]) {
  --font: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
}
