/* ============================================================
   Duanju C 端样式 v2
   深黑 + 金色，卡片为主角，克制动效
   ============================================================ */

/* ============================================================
   简体中文字体 Zavelo SC
   只用系统自带的 SC 字体（local()），零下载；unicode-range 限定在
   CJK，拉丁字符仍然走 -apple-system / Segoe UI，不会被中文字体接管。
   这样即使系统同时装了日文字体，也不会把汉字渲染成日文字形。
   ============================================================ */
@font-face {
  font-family: "Zavelo SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("PingFang SC"),
       local("Hiragino Sans GB"),
       local("Microsoft YaHei UI"),
       local("Microsoft YaHei"),
       local("Noto Sans CJK SC"),
       local("Noto Sans SC"),
       local("Source Han Sans SC"),
       local("Source Han Sans CN"),
       local("WenQuanYi Micro Hei"),
       local("SimHei");
  unicode-range: U+2E80-2EFF, U+3000-303F, U+31C0-31EF, U+3400-4DBF,
                 U+4E00-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF;
}
@font-face {
  font-family: "Zavelo SC";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("PingFang SC Semibold"),
       local("PingFang SC"),
       local("Hiragino Sans GB W6"),
       local("Hiragino Sans GB"),
       local("Microsoft YaHei UI Bold"),
       local("Microsoft YaHei UI"),
       local("Microsoft YaHei Bold"),
       local("Microsoft YaHei"),
       local("Noto Sans CJK SC Bold"),
       local("Noto Sans CJK SC"),
       local("Noto Sans SC"),
       local("Source Han Sans SC"),
       local("SimHei");
  unicode-range: U+2E80-2EFF, U+3000-303F, U+31C0-31EF, U+3400-4DBF,
                 U+4E00-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF;
}

:root {
  /* 三层背景，越靠内容越亮一点点 */
  --bg: #060708;
  --bg-elev: #0e1012;
  --bg-card: #141719;
  --bg-hover: #1a1e21;

  /* 分割线用半透明白，比实色灰更有层次 */
  --line: rgba(255, 255, 255, .07);
  --line-strong: rgba(255, 255, 255, .13);

  --text: #f2f3f4;
  --text-dim: #a3a9af;
  --text-mute: #6a7077;

  --gold: #f5b93a;
  --gold-soft: rgba(245, 185, 58, .14);
  --gold-line: rgba(245, 185, 58, .35);
  --red: #f0503c;
  --green: #37bd85;

  --radius-sm: 9px;
  --radius: 14px;
  --radius-lg: 20px;

  --safe-b: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 58px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* hidden 属性必须真正隐藏。
   作者样式里的 display（如 .player-cover{display:grid}）会盖过 UA 的
   [hidden]{display:none}，导致 el.hidden = true 完全无效。 */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Zavelo SC", "Noto Sans", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 顶部一层极淡的暖光，避免纯黑死板 */
body::before {
  content: "";
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 140vw;
  height: 55vh;
  background: radial-gradient(ellipse at center,
              rgba(245, 185, 58, .09) 0%,
              rgba(245, 185, 58, .02) 38%,
              transparent 68%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

/* ============================================================
   顶栏
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: rgba(6, 7, 8, .86);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background .2s var(--ease), border-color .2s var(--ease);
  border-bottom: 1px solid var(--line);
}
.topbar.scrolled {
  background: rgba(6, 7, 8, .78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -.01em;
}
.brand-mark {
  width: 27px; height: 27px;
  border-radius: 9px;
  background: linear-gradient(140deg, #ffd166 0%, var(--gold) 45%, #d98324 100%);
  display: grid; place-items: center;
  font-size: 14px;
  color: #241604;
  font-weight: 900;
  box-shadow: 0 3px 14px rgba(245, 185, 58, .28);
}
.topbar-spacer { flex: 1; }

.wallet-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
}
.wallet-chip::before { content: "◈"; font-size: 11px; }

.btn-ghost {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .03);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  transition: all .15s var(--ease);
}
.btn-ghost:active {
  background: rgba(255, 255, 255, .09);
  transform: scale(.97);
}

/* ============================================================
   布局容器
   ============================================================ */
.wrap {
  position: relative;
  z-index: 1;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 24px);
}
@media (min-width: 720px) {
  .wrap { max-width: 1080px; margin: 0 auto; }
}

/* 区块标题：左侧金色竖条 */
.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 22px 16px 12px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--text);
}
.section-title::before {
  content: "";
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--gold), rgba(245, 185, 58, .25));
}

/* ============================================================
   Hero 轮播（桌面横版 / 移动竖版）
   ============================================================ */
.banner-wrap {
  position: relative;
  margin: 6px 16px 10px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.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: start;
  position: relative;
  aspect-ratio: 16 / 7;
  min-height: 300px;
  max-height: 440px;
  background: #0b0d0e;
  overflow: hidden;
}
@media (max-width: 719px) {
  .banner-item {
    aspect-ratio: 3 / 4;
    min-height: 0;
    max-height: none;
  }
}
.banner-item img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* 桌面：左侧压暗，保证文案可读 */
.banner-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(0, 0, 0, .93) 0%,
    rgba(0, 0, 0, .72) 30%,
    rgba(0, 0, 0, .18) 58%,
    transparent 78%);
}
@media (max-width: 719px) {
  .banner-item::after {
    background: linear-gradient(to top,
      rgba(0, 0, 0, .96) 0%,
      rgba(0, 0, 0, .55) 38%,
      transparent 68%);
  }
}

.banner-body {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 clamp(20px, 5vw, 56px);
  max-width: 560px;
}
@media (max-width: 719px) {
  .banner-body {
    justify-content: flex-end;
    max-width: none;
    padding: 20px 18px 22px;
  }
}

.banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .4px;
  margin-bottom: 14px;
}
.banner-badge::before { content: "✦"; font-size: 9px; }

.banner-title {
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -.025em;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .8);
}
.banner-sub {
  margin: 0 0 20px;
  font-size: clamp(12.5px, 1.1vw, 14px);
  line-height: 1.65;
  color: rgba(255, 255, 255, .74);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.banner-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, .58);
}
.banner-meta::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform .14s var(--ease);
}
.banner-btn:active { transform: scale(.97); }
.banner-btn.primary {
  background: linear-gradient(135deg, #ffd166, var(--gold));
  color: #241604;
  box-shadow: 0 6px 26px rgba(245, 185, 58, .35);
}
.banner-btn.ghost {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .18);
  color: #fff;
  backdrop-filter: blur(10px);
}

/* 指示点：右下角 */
.banner-dots {
  position: absolute;
  right: 20px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  gap: 5px;
}
.banner-dots i {
  width: 6px; height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .28);
  transition: width .22s var(--ease), background .22s var(--ease);
}
.banner-dots i.on {
  width: 20px;
  background: var(--gold);
}
@media (max-width: 719px) {
  .banner-dots { right: 16px; bottom: 16px; }
}

/* ============================================================
   横向卡片行
   ============================================================ */
.row-sec { margin-top: 2px; }
.row-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 20px 16px 11px;
}
.row-head::before {
  content: "";
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--gold), rgba(245, 185, 58, .25));
}
.row-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.row-head .more {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-mute);
}
.row-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 16px 6px;
  -webkit-overflow-scrolling: touch;
}
.row-scroll::-webkit-scrollbar { display: none; }

.rcard {
  /* 与网格同宽：移动 148px / 桌面 220px；项数不足时用「看全部」卡补满 */
  flex: 0 0 148px;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset,
              0 6px 18px rgba(0, 0, 0, .35);
  transition: transform .16s var(--ease);
}

@media (min-width: 880px) {
  .rcard { flex: 0 0 220px; }
}
.rcard:active { transform: scale(.965); }

/* 行尾「看全部」占位卡：补齐一行的剩余宽度 */
.rcard-more {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, .025);
  border: 1px dashed var(--line-strong);
  box-shadow: none;
  color: var(--text-mute);
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: .2px;
  text-align: center;
}
.rcard-more .arrow {
  font-size: 20px;
  color: var(--gold);
  line-height: 1;
}
.rcard-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #0b0d0e;
  overflow: hidden;
}
.rcard-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.rcard-cover::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(0, 0, 0, .7) 0%, transparent 42%);
}
.rcard-badge {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(0, 0, 0, .66);
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .3px;
  backdrop-filter: blur(8px);
}
.rcard-title {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 30px 10px 11px;
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .9);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   继续观看（横版缩略图 + 播放 + 进度）
   ============================================================ */
.continue-row {
  display: flex;
  gap: 12px;
  padding: 0 16px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.continue-row::-webkit-scrollbar { display: none; }
.continue-card {
  flex: 0 0 200px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset,
              0 6px 18px rgba(0, 0, 0, .35);
  transition: transform .16s var(--ease);
}

@media (min-width: 880px) {
  .continue-card { flex: 0 0 280px; }
}
.continue-card:active { transform: scale(.97); }
.continue-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b0d0e;
  overflow: hidden;
}
.continue-cover img { width: 100%; height: 100%; object-fit: cover; }
.continue-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .72), transparent 55%);
}
/* 中央播放图标 */
.continue-cover::before {
  content: "▶";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  font-size: 10px;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  padding-left: 2px;
}
.continue-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  height: 3px;
  background: rgba(255, 255, 255, .18);
}
.continue-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #ffd166);
  border-radius: 0 2px 2px 0;
}
.continue-label {
  padding: 8px 10px 10px;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.continue-label small {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-mute);
  margin-top: 3px;
}

/* ============================================================
   分类：文字 tab（不是胶囊）
   ============================================================ */
.filters {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 16px;
  margin-top: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}
.filters::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  padding: 13px 14px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-mute);
  white-space: nowrap;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.chip:hover { color: var(--text-dim); }
.chip[aria-pressed="true"] {
  color: var(--text);
  border-bottom-color: var(--gold);
}

/* ============================================================
   剧卡网格
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px 12px;
  padding: 8px 16px 40px;
}
@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 880px) {
  .grid { grid-template-columns: repeat(5, 1fr); }
}

.card {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .045) inset,
              0 8px 22px rgba(0, 0, 0, .4);
  transition: transform .17s var(--ease);
  animation: rise .34s var(--ease) both;
}
.card:active { transform: scale(.972); }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #0b0d0e;
  overflow: hidden;
}
.card-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s var(--ease);
}
.card:active .card-cover img { transform: scale(1.04); }
/* 底部压暗，给标题当底 */
.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0, 0, 0, .92) 0%,
    rgba(0, 0, 0, .45) 22%,
    transparent 46%);
}
.card-badge {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 3;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(0, 0, 0, .66);
  border: 1px solid rgba(255, 255, 255, .1);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .3px;
  color: var(--gold);
  backdrop-filter: blur(8px);
}
.card-ep {
  position: absolute;
  top: 8px; right: 9px;
  z-index: 3;
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, .8);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
}
/* 标题压在图上，不带白底条 */
.card-title {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 30px 9px 26px;
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -.005em;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .9);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   骨架 / 空态
   ============================================================ */
.empty {
  padding: 70px 24px;
  text-align: center;
  color: var(--text-mute);
  font-size: 14px;
}
.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(100deg, #101315 24%, #191d20 50%, #101315 76%);
  background-size: 220% 100%;
  animation: shimmer 1.5s infinite linear;
  aspect-ratio: 3 / 4;
}
@keyframes shimmer {
  from { background-position: 220% 0; }
  to   { background-position: -220% 0; }
}

/* ============================================================
   播放页
   ============================================================ */
.player-wrap {
  position: relative;
  background: #000;
  aspect-ratio: 9 / 16;
  max-height: 70vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #000;
  z-index: 5;
}
.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .5;
}
.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,.65) 100%);
}
.player-cover .play-big {
  position: relative;
  z-index: 2;
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, #ffd166, var(--gold));
  color: #241604;
  font-size: 27px;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 38px rgba(245, 185, 58, .45),
              0 0 0 8px rgba(245, 185, 58, .1);
  transition: transform .16s var(--ease);
}
.player-cover .play-big:active { transform: scale(.93); }

.subtitle-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-mute);
}
.subtitle-bar[hidden] { display: none; }
.subtitle-bar select {
  flex: 1;
  max-width: 220px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 13px;
}

.drama-head {
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
}
.drama-head h1 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -.02em;
}
.drama-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mute);
  margin-bottom: 11px;
}
.drama-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-dim);
}

.episodes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
  gap: 9px;
  padding: 0 16px calc(var(--tabbar-h) + var(--safe-b) + 40px);
}
.ep {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 750;
  color: var(--text-dim);
  transition: all .15s var(--ease);
}
.ep:active { transform: scale(.94); }
.ep.is-free {
  border-color: rgba(55, 189, 133, .42);
  color: var(--green);
  background: rgba(55, 189, 133, .08);
}
.ep.is-current {
  background: linear-gradient(135deg, #ffd166, var(--gold));
  border-color: transparent;
  color: #241604;
  box-shadow: 0 3px 16px rgba(245, 185, 58, .32);
}
.ep.is-locked { color: var(--text-mute); }
.ep-lock {
  position: absolute;
  right: 4px; bottom: 3px;
  font-size: 9px;
  opacity: .8;
}
.ep-label {
  position: absolute;
  top: 3px; left: 5px;
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: .3px;
  opacity: .8;
}

/* ============================================================
   付费墙
   ============================================================ */
.paywall {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
  background: rgba(0, 0, 0, .74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.paywall[hidden] { display: none; }
.paywall-sheet {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(to bottom, var(--bg-elev), #0a0c0d);
  border-radius: 24px 24px 0 0;
  padding: 26px 20px calc(26px + var(--safe-b));
  border-top: 1px solid var(--line-strong);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .7);
  animation: sheetUp .28s var(--ease);
}
@keyframes sheetUp {
  from { transform: translateY(36px); opacity: .5; }
  to   { transform: translateY(0); opacity: 1; }
}
.paywall-sheet h2 {
  margin: 0 0 7px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.paywall-sheet p {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dim);
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 20px;
}
.price-big {
  font-size: 29px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--gold);
}
.price-note { font-size: 12px; color: var(--text-mute); }

.btn-primary {
  display: block;
  width: 100%;
  padding: 15px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffd166, var(--gold));
  color: #241604;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
  text-align: center;
  box-shadow: 0 6px 24px rgba(245, 185, 58, .3);
  transition: transform .14s var(--ease);
}
.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled { opacity: .5; box-shadow: none; }
.btn-secondary {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .035);
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 650;
  text-align: center;
  transition: transform .14s var(--ease);
}
.btn-secondary:active { transform: scale(.98); }
.paywall-error {
  margin: 11px 0 0;
  font-size: 12.5px;
  color: var(--red);
  text-align: center;
  min-height: 1em;
}

/* ============================================================
   登录弹窗
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .8);
  backdrop-filter: blur(10px);
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .7);
  animation: rise .26s var(--ease);
}
.modal-card h2 {
  margin: 0 0 5px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.modal-card .sub {
  margin: 0 0 22px;
  font-size: 13px;
  color: var(--text-dim);
}
.field {
  display: block;
  margin-bottom: 13px;
}
.field span {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--text-mute);
  margin-bottom: 7px;
  text-transform: uppercase;
}
.field input {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #060708;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color .15s var(--ease);
}
.field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 185, 58, .13);
}
.field input.code {
  text-align: center;
  font-size: 25px;
  letter-spacing: 11px;
  font-weight: 800;
  padding-left: 22px;
}
.modal-error {
  margin: 7px 0 11px;
  font-size: 12.5px;
  color: var(--red);
  min-height: 1em;
}
.modal-link {
  display: block;
  margin-top: 15px;
  background: none;
  border: 0;
  color: var(--text-mute);
  font-size: 12.5px;
  text-align: center;
  width: 100%;
}
.modal-hint {
  margin: 13px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-mute);
  text-align: center;
}

/* ============================================================
   我的
   ============================================================ */
.balance-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 16px;
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 90% 0%, rgba(245, 185, 58, .16) 0%, transparent 55%),
    linear-gradient(150deg, #191d20 0%, #0d0f11 100%);
  border: 1px solid var(--line-strong);
  box-shadow: 0 14px 44px rgba(0, 0, 0, .45);
  overflow: hidden;
}
.balance-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 6px;
}
.balance-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.balance-num {
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--gold);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.balance-num::after {
  content: "◈";
  font-size: 13px;
  font-weight: 700;
  opacity: .65;
}
.balance-sub {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--text-dim);
}
.balance-buy {
  margin-top: 0;
  flex: 0 0 auto;
  padding: 8px 14px;
  font-size: 12.5px;
  min-height: 0;
  height: 34px;
  width: auto;
  border-radius: 9px;
}

.packs { display: grid; gap: 11px; padding: 0 16px; }
.pack {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset;
  transition: border-color .16s var(--ease);
}
.pack:active { border-color: var(--gold-line); }
.pack-left strong {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--gold);
}
.pack-left small {
  display: block;
  font-size: 11.5px;
  color: var(--text-mute);
  margin-top: 3px;
}
.pack-right { text-align: right; }
.pack-right b { font-size: 16px; font-weight: 750; }
.pack-right small {
  display: block;
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 2px;
}

.logs { padding: 0 16px calc(var(--tabbar-h) + var(--safe-b) + 40px); }
.log {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.log small { color: var(--text-mute); font-size: 11.5px; }
.log .delta.plus { color: var(--green); font-weight: 700; }
.log .delta.minus { color: var(--red); font-weight: 700; }

/* ============================================================
   底部 Tab Bar（仅移动端）
   ============================================================ */
.tabbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  height: calc(var(--tabbar-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(6, 7, 8, .9);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-top: 1px solid var(--line);
  align-items: center;
  justify-content: space-around;
}
@media (max-width: 719px) {
  .tabbar { display: flex; }
}
.tabbar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 0;
  font-size: 10.5px;
  font-weight: 650;
  color: var(--text-mute);
  transition: color .15s var(--ease);
}
.tabbar-item .ico {
  font-size: 17px;
  line-height: 1;
}
.tabbar-item.active { color: var(--gold); }

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 20px);
  transform: translateX(-50%);
  z-index: 100;
  max-width: 88vw;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(24, 28, 31, .97);
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .6);
  animation: rise .2s var(--ease);
}
.toast[hidden] { display: none; }
.toast.ok { color: var(--green); }
.toast.err { color: var(--red); }

/* ============================================================
   支付页（pay.html 内联样式补充）
   ============================================================ */
.pay-wrap { max-width: 420px; margin: 0 auto; padding: 26px 20px calc(28px + var(--safe-b)); }
.pay-card {
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .5);
}
.pay-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 14px;
}
.pay-row + .pay-row { border-top: 1px solid var(--line); }
.pay-row .k { color: var(--text-mute); }
.pay-row .v { font-weight: 700; }
.pay-total .v { color: var(--gold); font-size: 21px; font-weight: 900; }
.pay-note {
  margin: 18px 0 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-mute);
}
.pay-status {
  margin: 18px 0 0;
  padding: 13px;
  border-radius: var(--radius-sm);
  background: #060708;
  font-size: 13px;
  text-align: center;
}
.pay-status.ok { color: var(--green); border: 1px solid rgba(55, 189, 133, .35); }
.pay-status.err { color: var(--red); border: 1px solid rgba(240, 80, 60, .35); }
.dev-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .4px;
  margin-bottom: 15px;
}

/* ============================================================
   底部 Footer
   ============================================================ */
.footer {
  margin-top: 40px;
  padding: 32px 16px calc(var(--tabbar-h) + var(--safe-b) + 32px);
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}
.footer-tagline {
  margin: 0 0 20px;
  font-size: 12.5px;
  color: var(--text-mute);
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 20px;
}
.footer-links a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color .15s var(--ease);
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
  margin: 0;
  font-size: 11.5px;
  color: var(--text-mute);
}

/* 滚动到底时的加载指示 */
.list-end {
  grid-column: 1 / -1;
  padding: 26px 0 10px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-mute);
}

/* ============================================================
   页头导航
   ============================================================ */
.nav-links {
  display: none;
  gap: 2px;
  margin-left: 6px;
}
@media (min-width: 860px) {
  .nav-links { display: flex; }
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text-dim);
  white-space: nowrap;
  transition: background .14s var(--ease), color .14s var(--ease);
}
.nav-links a:hover {
  background: rgba(255, 255, 255, .055);
  color: var(--text);
}
.nav-links a.active { color: var(--text); }

/* 桌面：假搜索框，点击进搜索页 */
.search-btn {
  display: none;
  align-items: center;
  gap: 9px;
  min-width: 190px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line);
  color: var(--text-mute);
  font-size: 13px;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
@media (min-width: 860px) {
  .search-btn { display: inline-flex; }
}
.search-btn:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .07);
}
.search-btn .ico { font-size: 14px; color: var(--text-dim); }

/* 移动：图标 */
.search-icon {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 18px;
  color: var(--text-dim);
}
@media (min-width: 860px) {
  .search-icon { display: none; }
}

/* ============================================================
   搜索页
   ============================================================ */
.search-head {
  padding: 18px 16px 6px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-strong);
  transition: border-color .15s var(--ease);
}
.search-box:focus-within { border-color: var(--gold); }
.search-box .search-ico { font-size: 17px; color: var(--text-mute); }
.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  color: var(--text);
  font-size: 15px;
}
.search-box input::placeholder { color: var(--text-mute); }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-clear {
  border: 0;
  background: rgba(255, 255, 255, .09);
  color: var(--text-dim);
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 11px;
  display: grid;
  place-items: center;
}
.search-tips {
  padding: 10px 6px 0;
  font-size: 12px;
  color: var(--text-mute);
}

/* ============================================================
   页脚（三列）
   ============================================================ */
.footer {
  margin-top: 44px;
  padding: 36px 16px calc(var(--tabbar-h) + var(--safe-b) + 36px);
  border-top: 1px solid var(--line);
  text-align: left;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 56px;
  max-width: 720px;
}
.footer-brand-col { flex: 1 1 200px; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}
.footer-tagline {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-mute);
  max-width: 240px;
}
.footer-col h3 {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-mute);
}
.footer-col a,
.footer-col span {
  display: block;
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color .14s var(--ease);
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  max-width: 720px;
}
.footer-copy {
  margin: 0;
  font-size: 11.5px;
  color: var(--text-mute);
}
.footer-lang {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 650;
  color: var(--text-mute);
}

/* 页头品牌图标（用 App 图标，不用字符） */
.brand-icon {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 2px 10px rgba(245, 185, 58, .22);
}

/* ============================================================
   语言切换器
   ============================================================ */
.footer-lang-wrap {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.footer-lang-ico {
  font-size: 13px;
  opacity: .7;
}
.lang-switch {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line);
}
.lang-opt {
  padding: 5px 11px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-mute);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .3px;
  white-space: nowrap;
  transition: background .14s var(--ease), color .14s var(--ease);
}
.lang-opt:hover { color: var(--text-dim); }
.lang-opt.on {
  background: var(--gold);
  color: #241604;
}

/* ============================================================
   页脚：移动端两列网格，桌面四列横排
   ============================================================ */
@media (max-width: 719px) {
  .footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px 18px;
    max-width: none;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
    flex: none;
  }
  /* Contato 独占一行 */
  .footer-brand-col + .footer-col + .footer-col + .footer-col {
    grid-column: 1 / -1;
  }
  .footer-col h3 { margin-bottom: 10px; }
  .footer-col a, .footer-col span {
    margin-bottom: 8px;
    font-size: 13.5px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 26px;
    padding-top: 18px;
    max-width: none;
  }
  .footer-lang-wrap { align-self: stretch; }
  .lang-opt { padding: 6px 14px; font-size: 12px; }
}

/* 桌面：品牌块固定宽，三列并排 */
@media (min-width: 720px) {
  .footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 64px;
  }
  .footer-brand-col { flex: 0 0 220px; }
  .footer-col { flex: 0 0 auto; min-width: 120px; }
}

/* ============================================================
   个人中心
   ============================================================ */
.guest-hero {
  max-width: 380px;
  margin: 0 auto;
  padding: 56px 24px 34px;
  text-align: center;
}
.guest-icon {
  width: 84px; height: 84px;
  border-radius: 22px;
  margin: 0 auto 18px;
  box-shadow: 0 14px 44px rgba(245, 185, 58, .25);
}
.guest-hero h1 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.guest-hero p {
  margin: 0 0 24px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-dim);
}
.guest-hero .btn-primary { max-width: 260px; margin: 0 auto; }
.guest-note {
  margin: 14px 0 0 !important;
  font-size: 11.5px !important;
  color: var(--text-mute) !important;
}

/* 账户卡 */
.acct-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 16px 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.acct-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 17px;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  flex: 0 0 auto;
}
.acct-info { flex: 1; min-width: 0; }
.acct-email {
  font-size: 13.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acct-since {
  font-size: 11.5px;
  color: var(--text-mute);
  margin-top: 2px;
}

/* 统计行 */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 16px 4px;
}
.stat {
  padding: 14px 10px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
  text-align: center;
}
.stat .v {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--text);
}
.stat .k {
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-mute);
  letter-spacing: .2px;
}

/* 片库网格 */
.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 11px;
  padding: 0 16px 8px;
}
@media (min-width: 720px) {
  .lib-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* 分段控制 */
.seg {
  display: inline-flex;
  gap: 3px;
  margin: 0 16px 12px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line);
}
.seg button {
  padding: 7px 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-mute);
  font-size: 12.5px;
  font-weight: 700;
}
.seg button.on {
  background: var(--gold);
  color: #241604;
}

/* ============================================================
   帮助中心 / 工单
   ============================================================ */
.page-title {
  margin: 20px 16px 4px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.help-sec { margin-bottom: 30px; }

/* FAQ 折叠 */
.faq {
  margin: 0 16px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  padding: 15px 16px;
  font-size: 13.5px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--gold);
  font-weight: 700;
  flex: 0 0 auto;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin: 0;
  padding: 0 16px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
}

/* 工单表单 */
.ticket-form {
  margin: 0 16px;
  padding: 18px 16px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.ticket-form .field { margin-bottom: 14px; }

/* 工单列表 */
.ticket {
  margin: 0 16px 10px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
}
.ticket-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
}
.ticket-head > div:first-child { flex: 1; min-width: 0; }
.ticket-subject {
  font-size: 13.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ticket-head small {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--text-mute);
}
.ticket-status {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.ticket-status.open { background: rgba(245,185,58,.14); color: var(--gold); }
.ticket-status.replied { background: rgba(80,200,140,.14); color: #4dd08c; }
.ticket-status.closed { background: rgba(255,255,255,.06); color: var(--text-mute); }

.ticket-thread {
  padding: 4px 16px 16px;
  border-top: 1px solid var(--line);
}
.msg { margin-top: 12px; }
.msg-body {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.msg.user .msg-body { background: rgba(255,255,255,.055); }
.msg.staff .msg-body {
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
}
.msg small {
  display: block;
  margin-top: 5px;
  font-size: 10.5px;
  color: var(--text-mute);
}
.msg-reply { margin-top: 14px; }
.msg-reply textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 8px;
}
.msg-reply textarea:focus { outline: none; border-color: var(--gold); }

/* ============================================================
   设置行
   ============================================================ */
.settings {
  margin: 0 16px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
}
.setting-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--text);
  text-align: left;
  font-family: inherit;
}
.setting-row:last-child { border-bottom: 0; }
.setting-row:hover { background: rgba(255, 255, 255, .025); }
.setting-label { flex: 1; min-width: 0; display: block; }
.setting-label b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
}
.setting-label small {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-mute);
}
.setting-arrow {
  flex: 0 0 auto;
  font-size: 19px;
  color: var(--text-mute);
}
.setting-row.danger { color: #f0503c; }
.setting-row.danger .setting-label small { color: rgba(240, 80, 60, .65); }

/* 开关 */
.switch {
  flex: 0 0 auto;
  appearance: none;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  position: relative;
  cursor: pointer;
  transition: background .18s var(--ease);
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s var(--ease);
}
.switch:checked { background: var(--gold); }
.switch:checked::after { transform: translateX(18px); }

/* ============================================================
   Feed 播放器（春楼式）
   ============================================================ */
.watch-page { background: #050607; overflow: hidden; }

.feed {
  position: relative;
  width: 100%;
  height: 100dvh;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  isolation: isolate;
}

.feed-bg {
  position: fixed;
  inset: -90px;
  background: center / cover no-repeat;
  filter: blur(46px) brightness(.3) saturate(1.15);
  transform: scale(1.08);
  z-index: 0;
  opacity: 1;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.ambient-off .feed-bg { opacity: 0; }

.feed-stage {
  position: relative;
  z-index: 1;
  grid-column: 2;
  height: min(90dvh, 860px);
  aspect-ratio: 9 / 16;
  max-width: 46vw;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 110px rgba(0, 0, 0, .82);
}
.feed-stage video {
  width: 100%; height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

/* ---------- 顶部 ---------- */
.stage-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 12px;
  z-index: 7;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent);
  pointer-events: none;
}
.stage-top > * { pointer-events: auto; }
.stage-top-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.stage-top-right { display: block; }

.back-btn {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(12, 14, 16, .5);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
  color: #fff; font-size: 20px; line-height: 1;
  padding-bottom: 2px;
}

.checkin-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(245, 185, 58, .55);
  background: rgba(10, 10, 12, .55);
  backdrop-filter: blur(8px);
  color: #ffd166;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.checkin-chip.is-done {
  border-color: rgba(255, 255, 255, .14);
  color: var(--text-mute);
}

.swipe-hint {
  justify-self: center;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(10, 10, 12, .45);
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* 细进度条：点哪跳哪 */
.mini-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 18px;
  z-index: 9;
  cursor: pointer;
}
.mini-bar::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, .2);
}
.mini-fill {
  position: absolute;
  left: 0; bottom: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #ffd166, var(--gold));
  box-shadow: 0 0 8px rgba(245, 185, 58, .6);
}

/* ---------- 底部信息 ---------- */
.stage-bottom {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 52px 16px 20px;
  background: linear-gradient(to top,
    rgba(0, 0, 0, .9) 0%,
    rgba(0, 0, 0, .68) 45%,
    rgba(0, 0, 0, 0) 100%);
  z-index: 6;
  pointer-events: none;
}
.stage-bottom > * { pointer-events: auto; }

.stage-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  flex-wrap: wrap;
}
.stage-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.25;
}
.ep-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(245, 185, 58, .55);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.stage-tags {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}
.stage-tags .tag {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.stage-desc {
  margin: 0 0 11px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .62);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stage-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stage-btn {
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(12, 14, 16, .72);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.stage-btn b { color: var(--gold); font-weight: 800; }
.stage-btn:active { background: rgba(30, 34, 38, .9); }

/* ---------- 右侧工具栏 ---------- */
.rail {
  grid-column: 3;
  justify-self: start;
  align-self: center;
  margin-left: 28px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.rail-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(18, 20, 23, .66);
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
  color: #eef1f4;
  transition: transform .15s var(--ease), background .15s, border-color .15s, color .15s;
}
.rail-btn svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rail-btn:hover { background: rgba(30, 34, 38, .85); }
.rail-btn:active { transform: scale(.94); }
.rail-btn.is-on {
  color: var(--gold);
  border-color: rgba(245, 185, 58, .45);
  background: rgba(40, 32, 12, .55);
}
.rail-btn:disabled { opacity: .32; pointer-events: none; }
.rail-cap {
  font-size: 9.5px;
  line-height: 1.1;
  color: rgba(255, 255, 255, .6);
  margin-top: 1px;
  white-space: nowrap;
}
.rail-btn.is-on .rail-cap { color: var(--gold); }
.rail-txt { font-size: 15px; font-weight: 800; line-height: 1; }
.rail-txt.sm { font-size: 10.5px; letter-spacing: .2px; }

/* 音量面板（桌面） */
.vol-pop {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 999px;
  background: rgba(14, 16, 18, .92);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
  z-index: 20;
}
.vol-pop input[type="range"] {
  width: 92px;
  accent-color: var(--gold);
}
.vol-mute {
  border: 0;
  background: transparent;
  font-size: 13px;
  line-height: 1;
  padding: 2px;
}

/* ---------- 弹幕 ---------- */
.danmaku-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}
.dm {
  position: absolute;
  left: 100%;
  white-space: nowrap;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .95);
  animation-name: dm-move;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}
@keyframes dm-move {
  from { transform: translateX(0); }
  to { transform: translateX(-1100px); }
}

/* ---------- 选集面板 ---------- */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, .64);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity .18s var(--ease);
}
.sheet.show { opacity: 1; }
.sheet-card {
  width: min(560px, 100%);
  max-height: 74dvh;
  overflow: auto;
  background: #111316;
  border: 1px solid var(--line);
  border-radius: 18px 18px 0 0;
  padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
  transform: translateY(16px);
  transition: transform .2s var(--ease);
}
.sheet.show .sheet-card { transform: none; }
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.sheet-head h2 { margin: 0; font-size: 15px; font-weight: 800; }
.sheet-head h2 span { color: var(--gold); }
.sheet-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  color: var(--text-dim);
}
.sheet-card .episodes {
  padding: 0 0 4px;
}
.sub-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-mute);
}
.sub-pick select {
  flex: 1;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 13px;
}

/* ---------- 移动端 ---------- */
@media (max-width: 879px) {
  /* 移动端非全屏：播放器占第一屏，往下能滚到评论区，不再锁死 overflow */
  .watch-page {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }
  .feed {
    display: block;
    height: 100dvh;
  }
  .feed-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
  }
  .stage-bottom {
    padding: 46px 14px calc(20px + env(safe-area-inset-bottom));
  }
  .stage-title { font-size: 16px; }
  .stage-actions { gap: 8px; }
  .stage-btn { height: 38px; font-size: 12.5px; }

  .rail {
    position: absolute;
    right: 8px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    margin-left: 0;
    gap: 10px;
  }
  .rail-btn {
    width: 46px;
    height: 46px;
    background: rgba(14, 16, 18, .58);
    border-color: rgba(255, 255, 255, .14);
  }
  .rail-btn svg { width: 20px; height: 20px; }
  .rail-cap { font-size: 9.5px; }
  .rail-txt { font-size: 14px; }
  .rail-txt.sm { font-size: 10px; }
  .swipe-hint { top: 12px; font-size: 11px; }
}

@media (max-width: 480px) {
  .swipe-hint { display: none; }
}

@media (max-width: 420px) {
  .rail { gap: 8px; }
  .rail-btn { width: 44px; height: 44px; }
  .rail-btn svg { width: 19px; height: 19px; }
  .rail-cap { font-size: 9px; }
}

/* ---------- 弹幕面板 ---------- */
.dm-sheet {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(0, 0, 0, .55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity .18s var(--ease);
}
.dm-sheet.show { opacity: 1; }
.dm-card {
  width: min(520px, 100%);
  background: #121417;
  border: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  padding: 14px 14px calc(16px + env(safe-area-inset-bottom));
  transform: translateY(16px);
  transition: transform .2s var(--ease);
}
.dm-sheet.show .dm-card { transform: none; }
.dm-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.dm-title { font-weight: 800; font-size: 14px; }
.dm-badge {
  font-size: 11px;
  color: var(--gold);
  background: rgba(245, 185, 58, .12);
  border-radius: 999px;
  padding: 1px 7px;
}
.dm-switch {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
}
.dm-switch input { accent-color: var(--gold); }
.dm-close {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  color: var(--text-dim);
  font-size: 12px;
}
.dm-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #0b0d0f;
  color: var(--text);
  font-size: 14px;
}
.dm-input:focus {
  outline: none;
  border-color: rgba(245, 185, 58, .6);
}
.dm-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.dm-hint { font-size: 11px; color: var(--text-mute); }
.dm-send {
  height: 36px;
  padding: 0 20px;
  border-radius: 10px;
  border: 0;
  background: linear-gradient(135deg, #ffd166, var(--gold));
  color: #241604;
  font-weight: 800;
  font-size: 13px;
}

/* ---------- 字幕覆盖层（自定义渲染，避开底部信息区） ---------- */
.sub-overlay {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 32%;
  z-index: 7;
  text-align: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  white-space: pre-line;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .95), 0 0 12px rgba(0, 0, 0, .7);
  pointer-events: none;
}

/* ---------- 桌面：页头 + 可滚动 + 下方剧集 ---------- */
.watch-topbar { display: none; }
.watch-below,
.watch-footer { display: none; }

@media (min-width: 880px) {
  .watch-page {
    overflow-y: auto;
    height: auto;
    min-height: 100dvh;
  }
  .watch-topbar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(6, 7, 8, .82);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid var(--line);
  }
  .feed {
    height: calc(100dvh - 57px);
    min-height: 520px;
  }
  .feed-stage {
    height: min(70dvh, 700px);
  }
  .watch-below {
    display: block;
    border-top: 1px solid var(--line);
    background: var(--bg);
  }
  .watch-footer { display: block; }
}

.wb-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 20px 44px;
}
.wb-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}
.wb-head h2 { margin: 0; font-size: 18px; font-weight: 800; }
.wb-count { color: var(--text-mute); font-size: 12px; }
.wb-episodes {
  padding: 0;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
}

/* 背景只在播放器区域内，滚到下方不遮挡内容 */
.feed-bg { position: absolute; }
.watch-below,
.watch-footer { position: relative; z-index: 1; }

/* 评论列表 */
.dm-list {
  max-height: 34vh;
  overflow-y: auto;
  margin-bottom: 12px;
  border-top: 1px solid var(--line);
}
.dm-item {
  display: flex;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 9px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}
.dm-item:active { background: rgba(255, 255, 255, .04); }
.dm-time {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.dm-body {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-dim);
  word-break: break-word;
}
.dm-empty {
  margin: 0;
  padding: 18px 0;
  text-align: center;
  color: var(--text-mute);
  font-size: 12px;
}

/* 桌面：评论抽屉与视频同宽，别比播放器还宽 */
@media (min-width: 880px) {
  .dm-card {
    width: min(39.375dvh, 393.75px);
    padding-left: 14px;
    padding-right: 14px;
  }
}
.dm-card::before {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  margin: 0 auto 10px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .16);
}

/* 桌面播放器再放大一档，别缩在中间 */
@media (min-width: 880px) {
  .feed-stage {
    height: min(calc(100dvh - 110px), 860px);
  }
  .rail {
    margin-left: 18px;
  }
}

/* 再放大：桌面上只给顶栏留 70px，竖屏视频吃满视口高度 */
@media (min-width: 880px) {
  .feed-stage {
    height: min(calc(100dvh - 70px), 880px);
  }
  .feed {
    height: calc(100dvh - 57px);
    padding-top: 6px;
  }
}

/* ---------- 简洁页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 20px 44px;
  text-align: center;
  font-size: 12px;
  line-height: 1.95;
  color: var(--text-mute);
}
.sf-legal { margin: 0; }
.sf-legal a {
  color: var(--text-dim);
  font-weight: 600;
}
.sf-legal a:hover { color: var(--text); }
.sf-copy { margin: 6px 0 0; color: var(--text-dim); }
.sf-sub { margin: 0; color: var(--text-mute); }

/* 顶栏语言切换 */
.topbar-lang { margin-right: 4px; }
.topbar-lang .lang-opt { padding: 3px 9px; }

@media (max-width: 879px) {
  .topbar-lang { display: inline-flex; margin-right: 2px; }
  .topbar-lang .lang-opt { padding: 2px 6px; font-size: 10.5px; }
  .site-footer { display: block; padding: 26px 16px calc(24px + var(--safe-b)); }
}

/* 搜索筛选 */
.search-filters {
  margin: 10px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sf-row { display: flex; align-items: flex-start; gap: 10px; }
.sf-label {
  flex: 0 0 auto;
  width: 42px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-mute);
}
.sf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  row-gap: 6px;
  padding-bottom: 2px;
  min-width: 0;
}
.sf-chips .chip { flex: 0 0 auto; font-size: 11.5px; padding: 4px 10px; }

/* 右侧操作栏：默认收起，点右边缘把手展开 */
.rail {
  transition: width .25s ease, opacity .2s ease, margin .25s ease;
}
.rail.is-hidden {
  width: 0;
  margin-left: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.rail-tab {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 76px;
  border-radius: 10px 0 0 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-right: 0;
  background: rgba(22,20,18,.55);
  color: rgba(255,255,255,.6);
  font-size: 14px;
  line-height: 1;
  z-index: 9;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rail-tab[hidden] { display: none; }

.rail-pop {
  position: absolute;
  right: calc(100% + 10px);
  bottom: 56px;
  width: 190px;
  max-width: 62vw;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(20,18,16,.95);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 20;
}
.rail-pop[hidden] { display: none; }
.rail-pop-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  color: rgba(255,255,255,.55);
}
.rail-pop select { width: 100%; }

/* ============================================================
   Séries（浏览页） + 搜索建议
   ============================================================ */
.browse-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 16px;
}
.browse-head .section-title { margin: 0; }
.browse-count { font-size: 12.5px; color: var(--text-mute); }
.browse-search {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  font-size: 13px;
  font-weight: 650;
  color: var(--text-dim);
}
.browse-search:hover { color: var(--text); border-color: var(--line-strong); }
.browse-search .ico { font-size: 14px; }

.search-suggest { display: grid; gap: 22px; margin: 10px 0 26px; }
.sg-block[hidden] { display: none; }
.sg-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.sg-head button { margin-left: auto; font-size: 12px; font-weight: 650; color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip {
  flex: 0 0 auto;
  margin-bottom: 0;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
}
.chips .chip:hover { color: var(--text); border-color: var(--line-strong); }
.sg-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 650;
  color: var(--gold);
}
@media (max-width: 719px) {
  .browse-search { display: none; }
}

/* ============================================================
   内嵌收银台（付费墙里的购买视图）
   ============================================================ */
.pw-close {
  position: absolute; top: 10px; right: 12px;
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: var(--bg-hover); color: var(--text-dim);
  font-size: 15px; cursor: pointer;
}
.paywall-sheet { position: relative; }
.pw-view h2 { margin: 0 0 6px; font-size: 19px; }
.pw-sub { margin: 0 0 14px; color: var(--text-mute); font-size: 13px; }

.pw-packs {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 9px; margin-bottom: 14px;
}
.pw-pack {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--bg-card);
  color: var(--text); cursor: pointer; text-align: left;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.pw-pack:hover { border-color: var(--gold-line); background: var(--bg-hover); }
.pw-pack-coins { font-size: 17px; font-weight: 750; color: var(--gold); }
.pw-pack-price { font-size: 13px; color: var(--text-dim); }
.pw-pack-bonus { font-size: 11px; color: var(--green); }
.pw-pack-each { font-size: 11px; color: var(--text-mute); }

.pw-pay {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.pw-pay-head { display: flex; justify-content: space-between; align-items: baseline; }
.pw-pay-head b { font-size: 17px; }
.pw-pay-head span { font-size: 12px; color: var(--gold); }
.pw-frame {
  width: 100%; height: 420px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff;
}
.pw-pay-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pw-status { margin: 0; font-size: 12px; color: var(--text-mute); }
.pw-back { margin-top: 10px; }

/* ============================================================
   播放页社交区：评论 + 相关推荐
   ============================================================ */
.watch-social { padding: 26px 16px 40px; background: var(--bg); }
.ws-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 34px;
}
.ws-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.ws-head h2, .ws-side-title { margin: 0; font-size: 16px; }
.ws-count { font-size: 12px; color: var(--text-mute); }

.cmt-form {
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px; border-radius: var(--radius-sm);
  background: var(--bg-elev); border: 1px solid var(--line);
}
.cmt-form textarea {
  width: 100%; resize: vertical; min-height: 52px;
  background: transparent; border: 0; outline: none;
  color: var(--text); font: inherit; font-size: 14px;
}
.cmt-foot { display: flex; justify-content: space-between; align-items: center; }
.cmt-hint { font-size: 11px; color: var(--text-mute); }
.cmt-send { padding: 7px 16px; font-size: 13px; }

.cmt-list { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.cmt-item { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cmt-head { display: flex; gap: 8px; align-items: baseline; }
.cmt-head b { font-size: 13px; }
.cmt-head span { font-size: 11px; color: var(--text-mute); }
.cmt-body { margin: 5px 0 7px; font-size: 14px; line-height: 1.55; color: var(--text-dim); white-space: pre-wrap; }
.cmt-acts { display: flex; gap: 12px; }
.cmt-acts button {
  border: 0; background: none; padding: 0; cursor: pointer;
  font-size: 12px; color: var(--text-mute);
}
.cmt-acts .cmt-like.is-on { color: var(--red); }
.cmt-empty { color: var(--text-mute); font-size: 13px; }
.cmt-more {
  margin-top: 14px; width: 100%; padding: 9px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--bg-elev); color: var(--text-dim);
  font-size: 13px; cursor: pointer;
}

.reco-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.reco-item {
  display: flex; gap: 10px; align-items: center;
  color: var(--text); text-decoration: none;
}
.reco-item img {
  width: 54px; height: 72px; object-fit: cover;
  border-radius: var(--radius-sm); background: var(--bg-card); flex: none;
}
.reco-item span { font-size: 13px; line-height: 1.35; color: var(--text-dim); }
.reco-item:hover span { color: var(--text); }

@media (max-width: 860px) {
  .ws-inner { grid-template-columns: 1fr; gap: 26px; }
  .pw-packs { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   LGPD 同意横幅
   ============================================================ */
.consent-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 9000;
  max-width: 720px; margin: 0 auto;
  padding: 14px 16px; border-radius: var(--radius);
  background: rgba(18, 21, 23, .97); border: 1px solid var(--line-strong);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
  display: flex; flex-direction: column; gap: 10px;
  backdrop-filter: blur(12px);
}
.consent-bar p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--text-dim); }
.consent-bar a { color: var(--gold); }
.consent-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.consent-acts button {
  padding: 8px 14px; border-radius: 8px; font-size: 12.5px;
  border: 1px solid var(--line-strong); background: var(--bg-hover);
  color: var(--text); cursor: pointer;
}
.consent-acts .is-primary { background: var(--gold); border-color: var(--gold); color: #14100a; font-weight: 700; }

/* ============================================================
   奖励中心（VIP / 任务 / 抽奖 / 通知）
   ============================================================ */
.rw-wrap { max-width: 980px; margin: 0 auto; padding: 26px 16px 60px; }
.rw-section { margin-bottom: 38px; }
.rw-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.rw-head h1 { margin: 0; font-size: 24px; }
.rw-head h2 { margin: 0; font-size: 17px; }
.rw-sub { font-size: 12px; color: var(--text-mute); }
.rw-note { margin: 8px 0 0; font-size: 12.5px; color: var(--text-mute); }
.rw-btn {
  margin-top: 12px; padding: 9px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--bg-elev);
  color: var(--text); font-size: 13px; cursor: pointer;
}

.vip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.vip-card {
  padding: 16px; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: var(--bg-elev); display: flex; flex-direction: column; gap: 6px;
}
.vip-card.is-current { border-color: var(--gold-line); background: var(--gold-soft); }
.vip-card h3 { margin: 0 0 4px; font-size: 15px; }
.vip-price { margin: 0; font-size: 22px; font-weight: 800; color: var(--gold); }
.vip-cash { margin: 0; font-size: 12px; color: var(--text-mute); }
.vip-card ul { margin: 8px 0 12px; padding-left: 16px; font-size: 12.5px; color: var(--text-dim); }
.vip-card ul li { margin-bottom: 4px; }
.vip-buy { margin-top: auto; padding: 9px; font-size: 13px; }

.task-list { display: flex; flex-direction: column; gap: 10px; }
.task-item {
  padding: 13px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg-elev);
}
.task-item.is-done { border-color: rgba(55, 189, 133, .35); }
.task-main { display: flex; flex-direction: column; gap: 2px; }
.task-main b { font-size: 14px; }
.task-main span { font-size: 12px; color: var(--text-mute); }
.task-bar { height: 5px; border-radius: 3px; background: var(--bg-hover); margin: 9px 0; overflow: hidden; }
.task-bar i { display: block; height: 100%; background: var(--gold); border-radius: 3px; }
.task-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-mute); }
.task-foot em { font-style: normal; font-size: 12px; color: var(--text-mute); }
.task-claim { padding: 6px 14px; font-size: 12px; }

.lot-box { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.lot-wheel {
  width: 124px; height: 124px; border-radius: 50%;
  border: 3px solid var(--gold-line); background: var(--bg-card);
  display: grid; place-items: center; font-size: 26px; font-weight: 800;
  color: var(--gold); transition: transform .7s var(--ease);
}
.lot-wheel.is-spinning { transform: rotate(720deg) scale(.92); }
.lot-actions { display: flex; flex-direction: column; gap: 8px; }
.lot-prizes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.lot-prize { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: var(--bg-hover); color: var(--text-dim); }

.notif-list { display: flex; flex-direction: column; gap: 8px; }
.notif-item {
  display: flex; flex-direction: column; gap: 3px;
  padding: 11px 13px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg-elev);
  text-decoration: none; color: var(--text);
}
.notif-item.is-unread { border-color: var(--gold-line); }
.notif-item b { font-size: 13px; }
.notif-item span { font-size: 12px; color: var(--text-mute); }

@media (max-width: 720px) {
  .vip-grid { grid-template-columns: 1fr; }
  .lot-wheel { width: 104px; height: 104px; }
}

/* 我的页 → 奖励中心入口 */
.rw-entry {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: var(--radius);
  border: 1px solid var(--gold-line); background: var(--gold-soft);
  text-decoration: none; color: var(--text);
}
.rw-entry-ico { font-size: 20px; color: var(--gold); }
.rw-entry-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.rw-entry-body b { font-size: 14px; }
.rw-entry-body span { font-size: 12px; color: var(--text-mute); }
.rw-entry-arrow { font-size: 20px; color: var(--text-mute); }
/* 签到 */
.checkin-box { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.checkin-days { display: flex; gap: 8px; flex-wrap: wrap; }
.checkin-days .cd {
  width: 38px; height: 38px;
  border-radius: 10px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.45); font-size: 13px; font-weight: 600;
}
.checkin-days .cd.on {
  background: rgba(245,185,58,.18);
  border-color: rgba(245,185,58,.55);
  color: #f5b93a;
}

/* 真转盘 */
.lot-stage {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 4px auto 8px;
}
.lot-wheel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid rgba(255,209,102,.85);
  background: conic-gradient(
    #ffd166 0deg 60deg,
    #f5b93a 60deg 120deg,
    #ff8a3d 120deg 180deg,
    #ff5a5f 180deg 240deg,
    #b23df0 240deg 300deg,
    #2a2f36 300deg 360deg
  );
  box-shadow: 0 0 0 4px rgba(245,185,58,.15), 0 0 40px rgba(245,185,58,.35), inset 0 0 24px rgba(0,0,0,.45);
  transform: rotate(0deg);
  will-change: transform;
}
.lot-seg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: 0 0;
  margin-left: -27px;
  margin-top: -13px;
  width: 54px;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.55);
  pointer-events: none;
}
.lot-pin {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 18px solid #f5b93a;
  z-index: 4;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.6));
}
.lot-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #14181d;
  border: 2px solid rgba(245,185,58,.4);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  color: #f5b93a;
  z-index: 3;
}

/* 转盘数字描边（浅金扇区也看得清） */
.lot-seg {
  -webkit-text-stroke: 1.5px rgba(20, 12, 0, .6);
  paint-order: stroke fill;
  text-shadow: 0 2px 5px rgba(0,0,0,.65);
}

.balance-buy {
  margin-top: 0;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
  line-height: 1;
  border-radius: 9px;
  white-space: nowrap;
}

/* 筛选区加载骨架：数据没回来之前先占位，避免一行行蹦 */
.search-filters.is-loading .sf-chips { min-height: 20px; }
.search-filters.is-loading .sf-chips::after {
  content: "";
  display: block;
  width: 46px;
  height: 12px;
  border-radius: 6px;
  background: rgba(255,255,255,.07);
}
/* ========== 幸运大转盘（春楼式布局） ========== */
.lucky-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 16px 4px;
  padding: 9px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245,215,110,.16), rgba(245,215,110,.05));
  border: 1px solid rgba(245,215,110,.28);
}
.lt-text { font-size: 13px; color: var(--text-dim); }
.lt-text b { color: #f5d76e; font-size: 15px; }
.lt-btn {
  border: 0;
  border-radius: 9px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 800;
  color: #241604;
  background: linear-gradient(135deg, #ffe08a, #f5c649);
  box-shadow: 0 4px 14px rgba(245,200,73,.28);
}
.lt-btn:disabled { opacity: .45; box-shadow: none; }

.lucky {
  margin: 8px 16px 0;
  padding: 18px 14px 16px;
  border-radius: 18px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(245,215,110,.14) 0%, transparent 60%),
    linear-gradient(180deg, #141210 0%, #0b0a09 100%);
  border: 1px solid rgba(245,215,110,.18);
  text-align: center;
}
.lucky-title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff3c4, #f5c649);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lucky-sub { margin: 6px 0 0; font-size: 12px; color: var(--text-dim); }
.lucky-count {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  font-size: 11px;
  border-radius: 99px;
  color: #f5d76e;
  background: rgba(245,215,110,.14);
  border: 1px solid rgba(245,215,110,.3);
}

.lucky-stage {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 16px auto 8px;
}
.lucky-wheel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 5px solid #f5d76e;
  background: conic-gradient(
    #f5d76e 0deg 60deg, #171410 60deg 120deg,
    #f5d76e 120deg 180deg, #171410 180deg 240deg,
    #f5d76e 240deg 300deg, #171410 300deg 360deg
  );
  box-shadow: 0 0 0 5px rgba(245,215,110,.14), 0 0 46px rgba(245,200,73,.4);
  will-change: transform;
}
.lucky-seg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: 0 0;
  margin-left: -22px;
  margin-top: -11px;
  width: 44px;
  font-size: 17px;
  font-weight: 900;
  color: #241604;
  -webkit-text-stroke: 2px #fff;
  paint-order: stroke fill;
  text-shadow: 0 2px 4px rgba(0,0,0,.35);
  pointer-events: none;
}
.lucky-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 108px;
  height: 108px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: linear-gradient(180deg, #17140f, #0d0b08);
  border: 3px solid #f5d76e;
  box-shadow: 0 0 24px rgba(245,200,73,.45), inset 0 0 18px rgba(0,0,0,.7);
  z-index: 3;
}
.lucky-center b { font-size: 15px; color: #f5d76e; font-weight: 900; }
.lucky-center span { font-size: 11px; color: rgba(255,255,255,.62); }

.lucky-pin {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 22px solid #f5d76e;
  z-index: 4;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.6));
}

.lucky-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 6px;
}
.lucky-dots i {
  width: 22px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,.14);
}
.lucky-dots i.on { background: #f5d76e; }

.lucky-hint { margin: 4px 0 12px; font-size: 11.5px; color: var(--text-mute); }
.lucky-draw {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 168px;
  height: 44px;
  padding: 0 28px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 900;
}

.cal-sec { margin: 16px 16px 0; }
.cal-title { margin: 0 0 10px; font-size: 15px; font-weight: 800; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal-cell {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text-mute);
  font-size: 12px;
  font-weight: 700;
}
.cal-cell.is-done {
  background: linear-gradient(180deg, #ffe08a, #f5c649);
  border-color: #f5c649;
  color: #241604;
}
.cal-cell.is-gift { border-color: rgba(245,215,110,.5); }
.cal-cell .cal-gift { font-size: 13px; line-height: 1; }
.cal-cell em { font-size: 9.5px; font-style: normal; color: #f5d76e; }
.cal-cell.is-done em { color: #5a3d05; }
.cal-note { margin: 8px 0 0; font-size: 11.5px; color: var(--text-mute); }

.rw-wrap { padding-bottom: 96px; }

/* 转盘数字对比：金扇区深字，黑扇区白字 */
.lucky-seg { -webkit-text-stroke: 0; color: #2a1a00; text-shadow: none; }
.lucky-seg.is-dark { color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.7); }

/* ===== 金币卡（春楼式） ===== */
.wal-card {
  margin: 8px 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(150deg, #191d20 0%, #0d0f11 100%);
  border: 1px solid var(--line-strong);
}
.wal-head { display: flex; align-items: center; justify-content: space-between; }
.wal-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.1px;
  text-transform: uppercase; color: var(--text-mute);
}
.wal-topup {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px; border: 0; border-radius: 10px;
  background: linear-gradient(135deg, #3ff0ab, #16c98a);
  color: #06221a; font-weight: 800; font-size: 13px;
  box-shadow: 0 6px 18px rgba(22,201,138,.28);
}
.wal-topup .plus { font-size: 15px; line-height: 1; }
.wal-num { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.wal-num i { color: var(--gold); font-size: 18px; font-style: normal; }
.wal-num b { font-size: 30px; font-weight: 900; color: var(--gold); line-height: 1; }
.wal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.wal-cell {
  display: flex; flex-direction: column; gap: 4px;
  padding: 9px 11px; border-radius: 11px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  text-decoration: none; color: inherit;
}
.wal-cell span { font-size: 10.5px; color: var(--text-mute); }
.wal-cell b { font-size: 14px; color: #fff; }
.wal-green { color: #2ee39b; }

/* ===== 片库 tabs ===== */
.lib { margin: 14px 16px 0; }
.lib-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.lib-title { margin: 0; font-size: 16px; font-weight: 800; }
.lib-more { font-size: 11.5px; color: var(--text-mute); text-decoration: none; }
.lib-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.lib-tab {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 12px; border-radius: 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text-dim); font-size: 12px; font-weight: 700;
}
.lib-tab em { font-style: normal; font-size: 11px; color: var(--text-mute); }
.lib-tab.is-active {
  background: rgba(245,185,58,.16);
  border-color: rgba(245,185,58,.45);
  color: var(--gold);
}
.lib-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.lib-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: 12px;
  text-decoration: none; color: inherit;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}
.lib-thumb {
  width: 48px; height: 62px; border-radius: 8px;
  object-fit: cover; flex: 0 0 auto; background: #1a1a1a;
}
.lib-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lib-body b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-body span { font-size: 11px; color: var(--text-mute); }
.lib-bar { height: 3px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 2px; }
.lib-bar i { display: block; height: 100%; background: var(--gold); }
.lib-time { font-size: 10.5px; color: var(--text-mute); flex: 0 0 auto; }
.lib-arrow { color: var(--text-mute); font-size: 16px; }
.lib-empty { padding: 20px; text-align: center; color: var(--text-mute); font-size: 12px; }

/* ===== 充值中心弹层 ===== */
.tm-backdrop {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(4px);
}
.tm-sheet {
  width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto;
  background: #0e1012;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px 20px 0 0;
  padding: 16px 16px 22px;
}
.tm-head { display: flex; align-items: center; justify-content: space-between; }
.tm-head h2 { margin: 0; font-size: 17px; font-weight: 800; }
.tm-close { background: none; border: 0; color: #999; font-size: 18px; }
.tm-balance { margin-top: 8px; font-size: 12px; color: var(--text-mute); }
.tm-balance b { color: var(--gold); font-size: 18px; }
.tm-tabs { display: flex; gap: 8px; margin-top: 12px; }
.tm-tab {
  flex: 1; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text-dim); font-weight: 700; font-size: 13px;
}
.tm-tab.is-active {
  background: rgba(245,185,58,.15);
  border-color: rgba(245,185,58,.45);
  color: var(--gold);
}
.tm-hint { margin: 10px 0 8px; font-size: 11.5px; color: var(--text-mute); }
.tm-list { display: flex; flex-direction: column; gap: 8px; }
.tm-pack {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px; border-radius: 13px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.tm-pack.is-best { border-color: rgba(245,185,58,.5); }
.tm-pack-coins {
  font-size: 15px; font-weight: 900; color: var(--gold);
  display: flex; align-items: center; gap: 6px;
}
.tm-pack-coins span {
  font-size: 11px; padding: 1px 6px; border-radius: 6px;
  background: rgba(46,227,155,.16); color: #2ee39b; font-weight: 800;
}
.tm-pack-left small { font-size: 11px; color: var(--text-mute); }
.tm-pack-right { text-align: right; }
.tm-pack-right b { display: block; font-size: 14px; }
.tm-buy {
  margin-top: 4px; height: 30px; padding: 0 12px;
  border: 0; border-radius: 8px;
  background: linear-gradient(135deg, #3ff0ab, #16c98a);
  color: #06221a; font-weight: 800; font-size: 12px;
}
.tm-badge {
  position: absolute; top: -8px; left: 12px;
  padding: 1px 7px; border-radius: 6px;
  background: #2ee39b; color: #06221a;
  font-size: 10px; font-weight: 800;
}
.tm-note { margin: 12px 0 0; text-align: center; font-size: 11px; color: var(--text-mute); }

.vp-crown {
  font-size: 14px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}
.wal-topup { gap: 5px; }
/* ===== VIP 横幅 ===== */
.vip-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: calc(100% - 32px);
  margin: 10px 16px 0;
  padding: 12px 14px;
  border-radius: 14px;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(245,215,110,.16), rgba(245,215,110,.05)),
    #12110f;
  border: 1px solid rgba(245,215,110,.32);
  box-shadow: 0 6px 22px rgba(0,0,0,.35);
}
.vb-ico {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid; place-items: center;
  font-size: 20px;
  background: linear-gradient(135deg, #ffe08a, #e0a927);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 3px 10px rgba(245,200,73,.3);
}
.vb-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vb-body b { font-size: 14.5px; color: #f5d76e; font-weight: 900; }
.vb-body small { font-size: 10.5px; color: var(--text-mute); line-height: 1.35; }
.vb-btn {
  flex: 0 0 auto;
  padding: 8px 13px;
  border-radius: 9px;
  background: linear-gradient(135deg, #ffe08a, #f5c649);
  color: #241604;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
/* ===== 语言下拉 ===== */
.lang-switch { position: relative; }
.lang-globe {
  display: inline-flex; align-items: center; gap: 5px;
  height: 34px; padding: 0 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text-dim);
  font-size: 13px;
}
.lang-globe .lg-ico { font-size: 15px; line-height: 1; }
.lang-globe .lg-caret { font-size: 11px; opacity: .7; }
.lang-menu {
  position: absolute; right: 0; top: 42px;
  min-width: 178px; padding: 6px;
  border-radius: 13px;
  background: #14171a;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 14px 38px rgba(0,0,0,.55);
  z-index: 70;
}
.lang-menu[hidden] { display: none; }
.lang-item {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 9px 11px;
  border: 0; border-radius: 8px;
  background: none;
  color: #d8d8d8; font-size: 13px; text-align: left;
}
.lang-item:hover { background: rgba(255,255,255,.05); }
.lang-item.is-on { color: #2ee39b; font-weight: 700; }
.lang-item .lg-check { font-size: 13px; color: #2ee39b; }

/* ===== PWA 安装条 ===== */
.pwa-bar {
  position: fixed;
  left: 12px; right: 12px; bottom: 104px;
  z-index: 96;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(20,23,26,.96);
  border: 1px solid rgba(245,185,58,.3);
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  backdrop-filter: blur(8px);
}
.pwa-ico { font-size: 20px; flex: 0 0 auto; }
.pwa-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pwa-body b { font-size: 13px; color: #fff; }
.pwa-body small { font-size: 10.5px; color: var(--text-mute); line-height: 1.3; }
.pwa-install {
  flex: 0 0 auto;
  height: 32px; padding: 0 13px;
  border: 0; border-radius: 9px;
  background: linear-gradient(135deg,#ffd166,#f5b93a);
  color: #241604; font-weight: 800; font-size: 12px;
}
.pwa-close {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border: 0; border-radius: 8px;
  background: rgba(255,255,255,.06);
  color: #999; font-size: 12px;
}
@media (min-width: 880px) {
  .pwa-bar { left: auto; right: 20px; bottom: 20px; max-width: 360px; }
}

/* 安装条：两步指引态 */
.pwa-bar.is-steps { align-items: flex-start; }
.pwa-bar.is-steps .pwa-ico { margin-top: 2px; }
.pwa-step {
  display: block;
  font-size: 11.5px;
  color: #f5d76e;
  line-height: 1.45;
}


/* ============================================================
   奖励页 /rewards.html：锁成移动端固定排版
   300px 的转盘 + 7 列日历在 360px 屏上正好顶到边，
   再叠任何 1px 溢出，整页就能被横向拖动 / 缩小，看起来像桌面页。
   ============================================================ */
body.rewards-page {
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-y;
}
body.rewards-page .rw-wrap {
  max-width: 100%;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
body.rewards-page .lucky {
  margin-left: 16px;
  margin-right: 16px;
}
body.rewards-page .lucky-stage {
  width: min(300px, calc(100vw - 64px));
  height: auto;
  aspect-ratio: 1 / 1;
  max-width: 100%;
}
body.rewards-page .cal-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
body.rewards-page .cal-cell { min-width: 0; }
body.rewards-page #checkin-queue { max-width: 100%; }


/* ============================================================
   播放器全屏：整块 #feed 进全屏，视频铺满视口，工具条浮在右侧
   ============================================================ */
#feed:fullscreen,
#feed:-webkit-full-screen {
  background: #000;
  grid-template-columns: 1fr;
  padding: 0;
}
#feed:fullscreen .feed-bg,
#feed:-webkit-full-screen .feed-bg { display: none; }
#feed:fullscreen .feed-stage,
#feed:-webkit-full-screen .feed-stage {
  grid-column: 1;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
}
#feed:fullscreen .rail,
#feed:-webkit-full-screen .rail {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0;
}

/* 全屏退出按钮：移动端工具条收起时也留一只 */
.fs-exit {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 9;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
  color: #fff;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
body.is-fs .fs-exit { display: flex; }

/* ===== 筛选折叠 ===== */
.sf-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  margin: 10px 0 2px;
}
.sf-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: #e6e6e6;
  font-size: 12.5px;
  font-weight: 700;
}
.sf-toggle-ico { font-size: 13px; opacity: .85; }
.sf-toggle .sf-caret { font-size: 11px; transition: transform .18s ease; opacity: .8; }
.sf-toggle.is-open { border-color: rgba(245,185,58,.45); color: var(--gold); }
.sf-toggle.is-open .sf-caret { transform: rotate(180deg); }
.sf-summary {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  color: var(--text-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-filters.is-collapsed { display: none; }


/* ============================================================
   全站边缘锁：任何页面都不允许被内容撑宽或被手势拖出视口
   （内层 .lib-tabs / .row-scroll 这类横向滚动容器不受影响）
   ============================================================ */
html,
body {
  overflow-x: hidden;
  overscroll-behavior-x: none;
}
/* 双击不再放大，但保留内层横向滚动容器的左右滑动 */
body { touch-action: manipulation; }


/* 四语言切换器在窄屏上压缩一点，别把顶栏挤爆 */
@media (max-width: 719px) {
  .lang-switch { gap: 2px; padding: 2px; }
  .lang-opt { padding: 4px 7px; font-size: 10.5px; }
}
