/* 移动端基础布局、组件和各页面样式。修改公共选择器前检查所有路由。 */
:root {
  --bg: #000000;
  --panel: #161618;
  --soft: #232326;
  --gold: #fe2c55;
  --gold2: #ff6a8b;
  --text: #ffffff;
  --muted: #a0a0a8;
  --line: #ffffff1a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #000000;
  color: var(--text);
  font:
    15px/1.6 'Microsoft YaHei',
    system-ui,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: transparent;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
a {
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 26px;
  letter-spacing: 0.5px;
}
h2 {
  font-size: 21px;
}
h3 {
  font-size: 16px;
}
small,
.muted {
  color: var(--muted);
}
#app {
  max-width: 480px;
  min-height: 100dvh;
  margin: auto;
  background: var(--bg);
  padding-bottom: 90px;
  position: relative;
  box-shadow: 0 0 100px #0008;
}
header {
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: #000000e6;
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}
header h1 {
  font-size: 23px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 创作者中心标题行：标题不换行，新建短剧按钮固定 40% 宽度。 */
.creator-new {
  width: 40%;
  flex: 0 0 40%;
  white-space: nowrap;
  text-align: center;
}
header .back {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--gold);
  font-size: 28px;
  line-height: 1;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
}
.logo {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 12px;
  background: linear-gradient(140deg, #ff6a8b, #e01f47);
  color: #ffffff;
  font: bold 29px Arial;
}
.brand strong {
  font-size: 19px;
}
/* 站点LOGO按图片原始尺寸展示，不裁切、不强制方形。 */
.brand-logo-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 70vw;
}
.head-icon {
  font-size: 21px;
  min-width: 36px;
  min-height: 40px;
}
.head-icon .hd-icon {
  width: 22px;
  height: 22px;
  vertical-align: middle;
}
/* 会员中心金币卡片：整块可点击，进入财务明细。 */
.coin-cell {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0;
  margin: 0 0 10px;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}
/* 金币/会员两格卡片：等高拉伸、按钮底部对齐且同宽，左右视觉整齐。 */
.row.stat-row {
  align-items: stretch;
}
.stat-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.stat-cell .coin-cell {
  margin-bottom: 4px;
}
.stat-cell > button:last-child {
  margin-top: auto;
}
/* 创作者招募页：头图卡片与顶级UP卡片高亮。 */
.recruit-hero {
  background: linear-gradient(160deg, #14161c, #1d0d13 70%);
  border: 1px solid #fe2c5533;
}
.recruit-hero h2 {
  font-size: 30px;
  line-height: 1.2;
  margin: 8px 0;
}
.level-top {
  border: 1px solid var(--gold);
  box-shadow: 0 0 18px #fe2c5522;
}
.stats .card small {
  display: block;
}
/* 入驻申请四步向导：步骤条、结果卡与底部操作栏。 */
.steps {
  display: flex;
  align-items: center;
  gap: 6px;
}
.steps .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 52px;
}
.steps .step b {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
.steps .step span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.steps .step.active b {
  background: linear-gradient(135deg, #ff6a8b, #e01f47);
  color: #ffffff;
  border-color: transparent;
}
.steps .step.active span {
  color: var(--gold);
}
.steps .step.done b {
  border-color: var(--gold);
  color: var(--gold);
}
.steps i {
  flex: 1;
  height: 1px;
  background: var(--line);
  margin-bottom: 18px;
}
.wizard-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wizard-bar .hint {
  margin: 0;
  color: var(--gold);
}
.wizard-btns {
  display: flex;
  gap: 10px;
}
.wizard-btns button {
  flex: 1;
}
.review-card {
  text-align: center;
  padding: 34px 20px;
}
.review-dots {
  color: var(--gold);
  letter-spacing: 6px;
  font-size: 12px;
  margin-bottom: 12px;
}
.review-card .kv {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.review-card .kv span {
  color: var(--muted);
}
.warn-note {
  background: #fe2c5514;
  border: 1px solid #fe2c5544;
  border-radius: 10px;
  padding: 10px 12px;
}
.content {
  padding: 18px 16px;
}
/* 含底部固定操作栏的页面（短剧详情/充值等），内容区预留操作栏高度，避免遮挡剧集列表。 */
.content:has(.fixed-action) {
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}
.gap {
  height: 18px;
}
.section {
  margin: 24px 0 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section h2 {
  font-size: 20px;
}
.eyebrow {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 3px;
}
.hero {
  height: 350px;
  position: relative;
  overflow: hidden;
  border-radius: 19px;
  background:
    linear-gradient(0deg, #000000 0%, transparent 90%)
}
/* 图片广告：首页Banner与信息流广告 */
.hero-img,
.hero-img a,
.hero-img img {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-img img {
  object-fit: cover;
}
.ad-img {
  display: block;
  padding: 0;
  overflow: hidden;
}
.ad-img img {
  display: block;
  width: 100%;
}
/* 弹窗广告：倒计时结束后才可关闭 */
.ad-popup {
  align-items: center;
  justify-content: center;
  display: flex;
}
.ad-popup-sheet {
  max-width: 320px;
  width: 86%;
  text-align: center;
}
.ad-popup-img {
  width: 100%;
  border-radius: 12px;
  display: block;
}
.ad-popup-close {
  margin-top: 12px;
  width: 100%;
}
.ad-popup-close:disabled {
  opacity: 0.55;
  pointer-events: none;
}
/* 广告轮播 */
.ad-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}
.ad-img .ad-carousel {
  height: auto;
}
.ad-slide {
  width: 100%;
  height: 100%;
}
.ad-slide.hidden {
  display: none;
}
.ad-slide img,
.ad-slide a {
  display: block;
  width: 100%;
  height: 100%;
}
.ad-nolink {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-img .ad-slide img {
  object-fit: cover;
}
.ad-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}
.ad-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff55;
}
.ad-dots i.on {
  background: var(--gold, #fe2c55);
}
/* 播放前广告 */
.preroll {
  align-items: center;
  justify-content: center;
  display: flex;
}
.preroll-box {
  max-width: 340px;
  width: 88%;
  text-align: center;
  position: relative;
}
.preroll-img {
  width: 100%;
  border-radius: 12px;
  display: block;
}
/* 倒计时/跳过按钮：右上角，透明背景 */
.preroll-count {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 6px 8px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.85);
  cursor: pointer;
}
.preroll-count:disabled {
  cursor: default;
  opacity: 0.85;
}
.hero-copy {
  position: absolute;
  bottom: 29px;
  left: 24px;
  right: 20px;
}
.hero h2 {
  font-family: 'Songti SC', 'SimSun', serif;
  font-size: 39px;
  line-height: 1.25;
  margin: 11px 0;
}
.hero p {
  font-size: 12px;
  color: #b9b9c0;
}
.hero .primary {
  margin-top: 19px;
  width: auto;
  padding: 9px 21px;
  font-size: 12px;
  min-height: 38px;
}
.primary,
.secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  border-radius: 28px;
  padding: 13px 18px;
  min-height: 48px;
  font-weight: 700;
}
.primary {
  background: linear-gradient(100deg, #fe2c55, #ff6a8b);
  color: #ffffff;
  width: 100%;
}
.secondary {
  border: 1px solid #ffffff33;
  color: #ffffff;
}
.small {
  padding: 7px 12px;
  min-height: 32px;
  font-size: 12px;
}
.wide {
  width: 100%;
}
.gold {
  color: var(--gold);
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 19px;
  padding: 17px;
  margin-bottom: 14px;
}
.tabs {
  display: flex;
  gap: 4px;
  padding: 5px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 15px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs button {
  white-space: nowrap;
  flex: 1;
  min-height: 43px;
  padding: 7px 12px;
  color: var(--muted);
  border-radius: 11px;
}
.tabs button.active {
  background: linear-gradient(100deg, #fe2c55, #ff6a8b);
  color: #ffffff;
  font-weight: 700;
}
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 13px 0;
  scrollbar-width: none;
}
.chip {
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 6px 13px;
  color: var(--muted);
  font-size: 12px;
}
.chip.active {
  border-color: #fe2c55;
  color: var(--gold);
  background: #fe2c5514;
}
.quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin: 18px 0;
}
.quick button {
  background: var(--panel);
  border-radius: 15px;
  padding: 14px 3px;
  min-height: 95px;
}
.quick b {
  display: block;
  color: var(--gold);
  font-size: 24px;
  margin-bottom: 7px;
}
.quick strong {
  font-size: 12px;
  display: block;
}
.quick small {
  font-size: 9px;
  display: block;
  line-height: 1.4;
  margin-top: 4px;
}
.grid {
  display: grid;
  /* 手机版一行两个漫剧卡片；桌面端（≥800px）仍为六个。 */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 11px;
}
.poster {
  aspect-ratio: 2/3;
  border-radius: 12px;
  background: url('/assets/posters.webp') center/300% 200%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 7px 16px #0003;
}
.poster:after {
  content: '';
  position: absolute;
  inset: 65% 0 0;
  background: linear-gradient(transparent, #0009);
}
.poster span {
  position: absolute;
  top: 7px;
  left: 6px;
  color: #fff;
  background: #fe2c55d9;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 4px;
  z-index: 1;
}
.poster button {
  position: absolute;
  right: 5px;
  top: 4px;
  z-index: 2;
  background: #0008;
  border-radius: 50%;
  width: 24px;
}
.drama-card {
  padding: 0;
  text-align: left;
  width: 100%;
  min-width: 0;
}
.drama-card h3 {
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.drama-card small {
  font-size: 10px;
}
.row {
  display: flex;
  gap: 13px;
  align-items: center;
}
.row .grow,
.grow {
  flex: 1;
  min-width: 0;
}
.row .poster {
  width: 67px;
  flex-shrink: 0;
}
.row h3 {
  line-height: 1.4;
  margin: 6px 0;
}
.row p {
  font-size: 12px;
  color: var(--muted);
}
.tag {
  display: inline-block;
  background: #418168;
  color: white;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  margin-right: 5px;
}
.tag.goldtag {
  background: #fe2c55;
  color: #ffffff;
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
  margin: 14px 0;
}
.stats .card {
  margin: 0;
}
.stats b {
  display: block;
  font-size: 24px;
  color: var(--gold);
}
.stats small {
  font-size: 11px;
}
.stats.four {
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  text-align: center;
}
.stats.four .card {
  padding: 11px 3px;
  border-radius: 13px;
}
.stats.four b {
  font-size: 21px;
}
.balance {
  background: linear-gradient(135deg, #231a20, #16161a);
  border: 1px solid #fe2c553a;
}
.balance b {
  font-size: 32px;
  color: var(--gold);
}
.empty {
  text-align: center;
  padding: 65px 10px;
  color: var(--muted);
}
.empty .illustration {
  font-size: 65px;
  color: #4a4a52;
  line-height: 1.7;
}
.empty strong {
  display: block;
  font-size: 17px;
  color: var(--text);
}
.empty small {
  display: block;
  margin-top: 7px;
}
.menu {
  padding: 0;
  overflow: hidden;
}
.menu button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 17px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.menu button:last-child {
  border: 0;
}
.menu .glyph {
  width: 34px;
  height: 37px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fe2c5514;
  color: var(--gold);
}
.menu strong {
  font-size: 15px;
  display: block;
}
.menu small {
  font-size: 11px;
  display: block;
}
.menu .arrow {
  margin-left: auto;
  color: var(--muted);
}
input:not([type='checkbox']):not([type='file']),
select,
textarea {
  width: 100%;
  background: #1a1a1e;
  border: 1px solid #ffffff14;
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text);
  outline: 0;
  min-height: 44px;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #fe2c55;
}
textarea {
  resize: vertical;
  min-height: 110px;
}
label.field {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 15px;
}
label.field:last-child {
  margin-bottom: 0;
}
label.field input,
label.field textarea,
label.field select {
  display: block;
  margin-top: 7px;
  font-weight: 400;
}
input::placeholder,
textarea::placeholder {
  color: #6a6a72;
}
input[type='file'] {
  max-width: 100%;
  font-size: 12px;
  margin-top: 10px;
  color: var(--muted);
}
.hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin: 12px 0;
}
.error {
  color: #ff6b6b;
  font-size: 12px;
  margin: 12px 0;
  min-height: 0;
}
.dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(480px, 100%);
  display: flex;
  background: #000000eb;
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  z-index: 25;
  padding: 8px 7px calc(8px + env(safe-area-inset-bottom));
}
.dock button {
  flex: 1;
  font-size: 10px;
  min-height: 47px;
  color: var(--muted);
}
.dock b {
  display: block;
  font-size: 21px;
  line-height: 1.6;
}
.dock .active {
  color: var(--gold);
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.actions > * {
  flex: 1;
}
.fixed-action {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(480px, 100%);
  z-index: 26;
  background: #000000eb;
  border-top: 1px solid var(--line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.overlay-backdrop {
  position: fixed;
  inset: 0;
  background: #000b;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.sheet {
  max-width: 440px;
  width: 100%;
  max-height: 88dvh;
  overflow: auto;
  background: #161618;
  border: 1px solid #ffffff26;
  border-radius: 24px;
  padding: 24px;
  position: relative;
}
.sheet.bottom {
  align-self: flex-end;
  max-width: 480px;
  border-radius: 25px 25px 0 0;
  padding-bottom: 30px;
}
.overlay-backdrop.bottom {
  padding: 0;
}
.sheet .close {
  position: absolute;
  right: 12px;
  top: 10px;
  min-height: 36px;
  min-width: 36px;
  color: var(--muted);
  font-size: 23px;
}
.sheet h2 {
  margin-bottom: 18px;
  font-size: 21px;
}
.sheet .statement {
  background: #ffffff05;
  padding: 21px;
  border-radius: 17px;
  line-height: 1.9;
  margin: 18px 0;
  text-align: center;
  font-size: 14px;
}
.sheet p {
  font-size: 13px;
}
.sheet .actions {
  margin-top: 22px;
}
.sheet .empty {
  padding: 45px 8px;
}
.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background:
  border: 2px solid #fe2c5550;
  display: grid;
  place-items: center;
  font-size: 26px;
}
.miniavatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #33222a;
  color: var(--gold);
  display: grid;
  place-items: center;
}
.ad {
  background: radial-gradient(ellipse at right, #4a1f2c, #17171c 70%);
  border: 1px solid #fe2c5544;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 17px;
  position: relative;
  color: var(--gold);
}
.ad h3 {
  font-size: 23px;
  font-family: SimSun, serif;
  letter-spacing: 3px;
}
.ad small {
  font-size: 9px;
  position: absolute;
  right: 8px;
  bottom: 5px;
  color: #8a8a92;
}
.ad p {
  font-size: 11px;
  color: #b0b0b8;
}
.days {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 23px 0;
}
.day {
  flex: 1;
  min-width: 50px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
  padding: 12px 3px;
  background: var(--panel);
  font-size: 10px;
  color: var(--muted);
}
.day b {
  display: block;
  font-size: 15px;
  color: #b9b9c0;
}
.day.active {
  border-color: var(--gold);
  box-shadow: 0 0 16px #fe2c551a;
  color: var(--gold);
}
.day.active b {
  color: var(--gold);
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
}
.plan-grid.vip {
  grid-template-columns: repeat(3, 1fr);
}
.plan {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 18px 8px;
  background: var(--panel);
  text-align: center;
}
.plan.active {
  border-color: var(--gold);
  background: #fe2c5519;
}
.plan b {
  font-size: 24px;
  color: var(--gold);
  display: block;
}
.plan strong {
  display: block;
}
.plan small {
  font-size: 11px;
  display: block;
}
.feature-icons {
  display: flex;
  text-align: center;
  justify-content: space-around;
  margin: 20px 0;
  font-size: 10px;
}
.feature-icons b {
  display: block;
  color: var(--gold);
  font-size: 24px;
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 11px;
  margin: 17px 0;
}
.episode {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 9px;
  min-height: 45px;
  background: #1c1c20;
  font-size: 14px;
}
.episode.lock:after {
  content: '币';
  position: absolute;
  font-size: 8px;
  right: 2px;
  top: 0;
  color: var(--gold);
}
.episode.current {
  background: #fe2c55;
  color: #ffffff;
}
.detail-head {
  align-items: flex-start;
}
.detail-head .poster {
  width: 125px;
}
.description {
  font-size: 13px;
  color: #b0b0b8;
  margin: 15px 0;
}
.comment {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.comment:last-child {
  border: 0;
}
.comment p {
  font-size: 13px;
  margin: 8px 0;
}
.comment small {
  font-size: 10px;
}
.player {
  height: calc(100dvh - 70px);
  background: #000000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.player .no-video {
  padding: 60px;
  text-align: center;
  z-index: 1;
  max-width: 80%;
}
.player-controls {
  position: absolute;
  right: 8px;
  bottom: 185px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  z-index: 2;
}
.player-controls button {
  display: block;
  min-width: 46px;
  font-size: 24px;
}
.player-controls small {
  display: block;
  color: #ddd;
  font-size: 10px;
}
.player-bottom {
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 28px;
  z-index: 2;
  text-shadow: 0 2px 5px #000;
}
.player-bottom h3 {
  font-size: 19px;
}
.player-bottom .card {
  background: #161618bb;
  margin-top: 12px;
  padding: 10px;
  font-size: 12px;
}
.progress {
  height: 3px;
  background: #ffffff30;
  position: relative;
  margin-top: 20px;
}
.progress span {
  display: block;
  background: var(--gold);
  height: 100%;
  width: 4%;
}
.login {
  padding: 50px 20px;
}
.login .logo {
  width: 72px;
  height: 72px;
  margin: auto;
  font-size: 49px;
  border-radius: 22px;
}
.login .brand-title {
  text-align: center;
  margin: 12px 0 40px;
  font-size: 20px;
}
.login h2 {
  font-size: 31px;
  margin-bottom: 4px;
}
.login .hint {
  margin-bottom: 25px;
}
.login input {
  background: #1a1a1e;
  margin-bottom: 13px;
}
.login .agreement {
  font-size: 11px;
  margin: 15px 0 20px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.login .agreement button {
  padding: 0;
  color: var(--gold);
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 50px !important;
}
.password-wrap button {
  position: absolute;
  right: 8px;
  top: 4px;
  height: 38px;
  color: var(--muted);
}
.login-footer {
  text-align: center;
  margin-top: 25px;
}
.login-footer button {
  color: var(--gold);
  font-weight: 700;
}
.login-footer p {
  font-size: 12px;
  color: var(--muted);
  margin: 44px 0 6px;
}
.message-row {
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
}
.message-row h3 {
  font-size: 14px;
}
.message-row p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 55dvh;
  padding: 12px 0;
}
.bubble {
  max-width: 85%;
  align-self: flex-end;
  background: #fe2c55;
  border-radius: 16px 16px 2px 16px;
  padding: 12px 15px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.bubble.reply {
  align-self: flex-start;
  background: var(--panel);
  border-radius: 16px 16px 16px 2px;
}
.bubble img {
  max-width: 100%;
  max-height: 180px;
  border-radius: 10px;
}
.chat-compose {
  display: flex;
  gap: 8px;
}
.chat-compose input {
  min-width: 0;
}
.chat-compose button {
  font-size: 23px;
  width: 42px;
  flex-shrink: 0;
}
.credential {
  text-align: center;
}
.credential .logo {
  margin: 7px auto 19px;
  width: 67px;
  height: 67px;
  font-size: 48px;
}
.credential canvas {
  background: #fff;
  border-radius: 15px;
  margin: 20px auto 10px;
  max-width: 190px;
}
.rewards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.rewards button {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 15px;
}
.rewards button.active {
  border-color: var(--gold);
  color: var(--gold);
}
.invite-hero {
  text-align: center;
  padding: 35px 15px;
  background: radial-gradient(ellipse at top, #3d1622, #12060b 66%);
  border: 1px solid #fe2c5570;
  border-radius: 20px;
  margin-bottom: 18px;
}
.invite-hero h2 {
  font-family: SimSun, serif;
  font-size: 36px;
  line-height: 1.5;
  color: var(--gold);
}
.invite-hero strong {
  font-size: 65px;
  line-height: 1.3;
  color: #ff9fb2;
}
.agency-levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 20px;
}
.agency-levels .card {
  padding: 15px 5px;
  background: #161618b3;
  text-align: center;
}
.agency-levels b {
  font-size: 35px;
  display: block;
  color: var(--gold);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 5px;
  text-align: left;
  vertical-align: top;
}
.table-wrap {
  overflow-x: auto;
}
details {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 14px;
  margin-bottom: 12px;
}
summary {
  cursor: pointer;
  font-weight: 700;
}
.admin-notice,
.mode-note {
  font-size: 11px;
  color: #b0b0b8;
  background: #ffffff08;
  border: 1px solid #ffffff14;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 17px;
}
.notice-dot {
  width: 5px;
  height: 5px;
  background: #fe2c55;
  border-radius: 50%;
  display: inline-block;
}
.form-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  margin: 12px 0;
}
.nomination-list {
  max-height: 52dvh;
  overflow: auto;
}
.nomination-list .row {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.nomination-list .poster {
  width: 52px;
}
.nomination-list .row h3 {
  font-size: 14px;
}
.nomination-list .selected {
  outline: 1px solid var(--gold);
  outline-offset: -1px;
  background: #fe2c5512;
}
.nomination-list button {
  width: 100%;
  text-align: left;
}
.tags-select {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}
.tags-select button {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 11px;
  font-size: 12px;
}
.tags-select button.active {
  color: #ffffff;
  background: #fe2c55;
}
.inline-link {
  color: var(--gold);
  padding: 0;
  font-size: 12px;
}
.rank-num {
  font-size: 28px;
  color: var(--gold);
  width: 28px;
  flex-shrink: 0;
}
.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.icon-grid button {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 7px;
  text-align: center;
}
.icon-grid b {
  color: var(--gold);
  font-size: 26px;
  display: block;
}
.icon-grid strong {
  display: block;
  font-size: 12px;
  margin: 7px 0 3px;
}
.icon-grid small {
  display: block;
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.record {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
  font-size: 13px;
}
.record small {
  display: block;
  font-size: 10px;
}
.status {
  font-size: 10px;
  color: #ff8aa5;
  background: #fe2c5516;
  border-radius: 6px;
  padding: 3px 7px;
}
.danger {
  color: #ff6b6b;
}
.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.mobile-search input {
  min-width: 0;
}
.mobile-search button {
  min-width: 45px;
}
.tools-link {
  display: block;
  text-align: center;
  margin: 32px 0;
  color: var(--muted);
  font-size: 10px;
}
#toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  padding: 12px 20px;
  border: 1px solid #fe2c5570;
  border-radius: 14px;
  background: #1c1c20;
  z-index: 200;
  display: none;
  font-size: 13px;
}
.hidden {
  display: none !important;
}
.library {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.library button {
  text-align: left;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.library small {
  display: block;
  font-size: 10px;
}
.terms {
  font-size: 13px;
  line-height: 2;
}
.terms h3 {
  margin: 20px 0 8px;
}
.horizontal {
  display: flex;
  gap: 11px;
  overflow: auto;
}
.horizontal .drama-card {
  min-width: 120px;
  width: 120px;
}
.editor-note {
  font-size: 10px;
  color: var(--muted);
  margin: 16px 0;
  text-align: center;
}
.upload-progress {
  height: 5px;
  background: var(--panel);
  border-radius: 5px;
  overflow: hidden;
}
.upload-progress i {
  height: 100%;
  display: block;
  background: var(--gold);
}
@media (min-width: 800px) {
  body {
    background: radial-gradient(ellipse at top, #141414, #000000 65%);
  }
  #app {
    max-width: 1100px;
  }
  .content {
    padding: 26px 38px;
  }
  .hero {
    height: 450px;
    background-position: 60% 42%;
  }
  .hero-copy {
    left: 43px;
    bottom: 45px;
  }
  .hero h2 {
    font-size: 57px;
  }
  .hero p {
    font-size: 16px;
  }
  .hero .primary {
    font-size: 14px;
  }
  .grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 21px;
  }
  .quick {
    max-width: 660px;
    margin: 25px auto;
  }
  .dock,
  .fixed-action {
    width: min(1100px, 100%);
  }
  .dock {
    padding-left: 20%;
    padding-right: 20%;
  }
  header {
    height: 76px;
    padding: 0 36px;
  }
  .content.narrow {
    max-width: 650px;
    margin: auto;
  }
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .stats.four {
    grid-template-columns: repeat(4, 1fr);
  }
  .plan-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .icon-grid {
    gap: 18px;
  }
  .icon-grid button {
    padding: 22px;
  }
  .sheet {
    max-width: 500px;
  }
  .library {
    grid-template-columns: repeat(4, 1fr);
  }
  .player {
    height: 850px;
    max-width: 480px;
    margin: auto;
  }
  .login {
    max-width: 480px;
    margin: auto;
  }
  .menu {
    max-width: 650px;
    margin: auto;
  }
  .detail-head .poster {
    width: 155px;
  }
  .episode-grid {
    grid-template-columns: repeat(10, 1fr);
  }
  .tabs {
    max-width: 100%;
  }
  .chat {
    min-height: 470px;
  }
  .nomination-list {
    max-height: 50dvh;
  }
}
@media (max-width: 360px) {
  .content {
    padding: 15px 11px;
  }
  .icon-grid {
    gap: 5px;
  }
  .icon-grid button {
    padding: 12px 3px;
  }
  .hero h2 {
    font-size: 33px;
  }
  .plan-grid.vip b {
    font-size: 21px;
  }
  .quick strong {
    font-size: 10px;
  }
}
.empty .illustration {
  width: 210px;
  height: 175px;
  margin: 0 auto 19px;
  font-size: 0;
  background: url('/assets/empty-ref.png') 52.7% 35.4%/229.4% 609.4% no-repeat;
  border-radius: 15px;
}

/* ================= 抖音式沉浸播放（覆盖样式，置末优先级最高） ================= */
/* 播放页：去掉头部后的全屏沉浸布局 */
.player {
  height: 100dvh;
  background: #000;
}
.p-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
}
.p-round {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #00000080;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  backdrop-filter: blur(6px);
}
.rail-on {
  color: var(--gold);
}
.player-controls {
  right: 10px;
  bottom: 150px;
  gap: 18px;
  text-align: center;
}
.player-controls b {
  display: block;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 400;
}
.player-controls small {
  display: block;
  font-size: 10px;
  color: #fff;
}
.player-controls button {
  color: #fff;
  font-size: 15px;
  min-width: 44px;
  text-shadow: 0 1px 6px #000000a6;
}
.player-bottom {
  left: 16px;
  right: 86px;
  bottom: 22px;
}
.p-meta {
  font-size: 12px;
  color: #ffffffb3;
  margin: 4px 0 10px;
}
.p-detail {
  background: #ffffff1f;
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  backdrop-filter: blur(6px);
}
.player .progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  margin: 0;
  background: #ffffff26;
}

/* ================= 短剧刷剧页 / 小说 / 商城 ================= */
/* 短剧页：竖向滑动刷剧，每屏一部 */
.shorts {
  height: calc(100dvh - 64px);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  background: #000;
}
.shorts::-webkit-scrollbar {
  display: none;
}
.shorts-item {
  position: relative;
  height: 100%;
  scroll-snap-align: start;
  overflow: hidden;
  background: #000;
}
.shorts-item video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.shorts-poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.shorts-poster img,
.shorts-poster .poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shorts-info {
  position: absolute;
  left: 16px;
  right: 86px;
  bottom: 22px;
  z-index: 3;
  text-shadow: 0 1px 6px #000000a6;
}
.shorts .no-video {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 24px;
  color: #fff;
}
@media (min-width: 800px) {
  .shorts {
    max-width: 480px;
    margin: auto;
  }
}

/* 小说列表与阅读 */
.novel-row {
  cursor: pointer;
  align-items: flex-start;
}
.novel-cover {
  width: 64px;
  height: 86px;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff14;
  display: grid;
  place-items: center;
  font-size: 24px;
  flex-shrink: 0;
}
.novel-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.novel-summary {
  font-size: 12px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 6px 0;
}
.novel-reader h1 {
  font-size: 22px;
  margin-bottom: 6px;
}
.novel-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
}
.novel-text {
  font-size: 16px;
  line-height: 1.9;
  white-space: pre-wrap;
  margin-bottom: 16px;
}
.novel-image {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 16px;
}
.novel-end {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin: 24px 0;
}

/* 商城 */
.mall-balance {
  font-size: 12px;
  color: var(--muted);
}
.mall-card {
  cursor: pointer;
  text-align: center;
}
.mall-cover {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff14;
  display: grid;
  place-items: center;
  font-size: 32px;
  margin-bottom: 8px;
}
.mall-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mall-price {
  color: var(--gold);
  display: block;
  margin-top: 4px;
}
.mall-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.mall-balance-line {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}
.mall-pay {
  margin-bottom: 10px;
}

/* 富文本正文（小说阅读 / 商品描述） */
.novel-rich {
  font-size: 16px;
  line-height: 1.9;
  word-break: break-word;
}
.novel-rich p {
  margin-bottom: 14px;
}
.novel-rich img,
.mall-rich img {
  max-width: 100%;
  border-radius: 10px;
  margin: 6px 0;
}
.mall-rich {
  max-height: 40dvh;
  overflow-y: auto;
  margin-bottom: 10px;
}

/* ================= 番茄式小说阅读 ================= */
.novel-hero {
  align-items: flex-start;
  gap: 14px;
}
.novel-cover.big {
  width: 96px;
  height: 128px;
  font-size: 30px;
}
.novel-intro {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.novel-toc {
  padding: 4px 0;
}
.novel-toc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text, #fff);
  background: none;
  border-bottom: 1px solid #ffffff12;
  text-align: left;
}
.novel-toc-row:last-child {
  border-bottom: none;
}

/* 阅读器三主题 */
.reader {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.reader-paper {
  background: #f6f1e7;
  color: #3a3428;
}
.reader-eye {
  background: #e3efe3;
  color: #2f3a2f;
}
.reader-night {
  background: #0f1113;
  color: #b9bdc4;
}
.reader-top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: inherit;
  border-bottom: 1px solid #00000010;
}
.reader-night .reader-top {
  border-bottom-color: #ffffff14;
}
.reader-top strong {
  flex: 1;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reader-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0000000a;
  color: inherit;
  font-size: 16px;
}
.reader-night .reader-icon {
  background: #ffffff12;
}
.reader-body {
  flex: 1;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 18px 20px 30px;
  line-height: 1.95;
}
.reader-title {
  font-size: 1.25em;
  margin-bottom: 18px;
  font-weight: 700;
}
.reader-content {
  word-break: break-word;
}
.reader-content p {
  margin-bottom: 1em;
}
.reader-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 8px 0;
}
.reader-nav {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}
.reader-nav-btn {
  flex: 1;
  padding: 12px 0;
  border-radius: 24px;
  background: #0000000d;
  color: inherit;
  font-size: 14px;
}
.reader-night .reader-nav-btn {
  background: #ffffff14;
}
.reader-nav-btn:disabled {
  opacity: 0.35;
}
.reader-nav-btn.toc {
  flex: 0.6;
}
.reader-progress {
  text-align: center;
  font-size: 12px;
  opacity: 0.55;
  margin-top: 14px;
}
.reader-panel {
  position: sticky;
  bottom: 0;
  z-index: 5;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  background: inherit;
  border-top: 1px solid #00000010;
  display: grid;
  gap: 12px;
}
.reader-night .reader-panel {
  border-top-color: #ffffff14;
}
.reader-panel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.reader-panel-row .reader-nav-btn {
  flex: 0 0 auto;
  padding: 8px 16px;
}
.reader-panel-row .on {
  outline: 2px solid var(--gold);
}

/* 小说书架（最近阅读） */
.shelf-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: none;
}
.shelf-row::-webkit-scrollbar {
  display: none;
}
.shelf-card {
  flex-shrink: 0;
  min-width: 132px;
  max-width: 160px;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffffff10;
  border: 1px solid #ffffff14;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.shelf-card .shelf-title {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shelf-card small {
  color: var(--gold, #f7c96b);
  font-size: 11px;
}

/* 商城分类筛选与两列网格 */
.mall-cats {
  margin-top: 2px;
}
.mall-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.mall-grid .mall-card h3 {
  font-size: 14px;
  margin: 2px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 商品详情页 */
.mall-hero {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff14;
  display: grid;
  place-items: center;
  font-size: 48px;
  margin-bottom: 12px;
}
.mall-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mall-hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}
.mall-hero-meta .mall-price {
  font-size: 17px;
}

/* 支付页支付方式选项 */
.pay-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 2px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.pay-option:last-of-type {
  border-bottom: none;
}
