/* =====================================================================
   黄果果短剧 · UI 重设计样式表
   设计基线：竞品 huangguo10.com 的视觉语言
   - 暗色底 + 金色渐变强调
   - 移动端优先，7.5 设计宽 => rem 等比缩放
   - 金边圆角卡片 / 药丸标签 / 金色渐变按钮 / 手风琴 FAQ
   ===================================================================== */

html {
  font-size: calc(100vw / 7.5);
  -webkit-text-size-adjust: 100%;
  /* only dark：既声明本站是深色，也拒绝浏览器再套它的深色/护眼配色 */
  color-scheme: only dark;
  background: #0d0d0d !important;
}

@media (min-width: 450px) {
  html { font-size: 69.33px; }
}

:root {
  /* 背景层级 */
  --bg: #0d0d0d;
  --bg-shell: #1c1c1c;
  --bg-card: #181818;
  --bg-elev: #1e1e1e;
  --bg-footer: #111111;

  /* 描边 */
  --line: rgba(255, 198, 42, 0.20);
  --line-strong: rgba(255, 198, 42, 0.50);
  --line-soft: rgba(255, 255, 255, 0.07);

  /* 金色体系 */
  --gold: #ffc62a;
  --gold-bright: #ffd21c;
  --grad-gold: linear-gradient(135deg, #ff9f1c 0%, #ffc62a 52%, #ffd84d 100%);

  /* 文本层级 */
  --text: #ffffff;
  --text-2: #e5e5e5;
  --text-soft: #b0b0b0;
  --text-muted: #999999;
  --text-dim: #666666;

  /* 功能色 */
  --green: #4ade80;
  --gray: #888888;

  /* 尺寸 */
  --r-s: 0.16rem;
  --r-m: 0.24rem;
  --r-l: 0.32rem;
  --shadow-card: 0 0.08rem 0.12rem rgba(0, 0, 0, 0.40);
  --shadow-glow: 0 0 0.12rem rgba(255, 198, 42, 0.25);

  /* 组件级变量（供主题覆盖） */
  --topbar-bg: rgba(13, 13, 13, 0.88);
  --tabbar-bg: rgba(13, 13, 13, 0.92);
  --cover-base: #141414;
  --cover-glow: rgba(255, 159, 28, 0.22);
  --cover-base-2: rgba(24, 24, 24, 0.90);
  --cover-num: rgba(255, 198, 42, 0.10);
  --cover-play-bg: rgba(13, 13, 13, 0.60);
  --chip-bg: rgba(13, 13, 13, 0.70);
  --tag-bg: rgba(255, 255, 255, 0.03);
  --player-base: #050505;
  --footer-copy: rgba(255, 255, 255, 0.30);
}

/* 站点固定为暗色（与源站一致）。原浅色主题已移除，避免设备记忆导致底色偏浅。 */

* { margin: 0; padding: 0; box-sizing: border-box; }

h1, h2, h3, h4 { font-size: inherit; font-weight: inherit; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

button, input, select {
  font: inherit;
  border: none;
  background: none;
  color: inherit;
}

button { cursor: pointer; -webkit-tap-highlight-color: transparent; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #1c1c1c !important;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* 移动端等比画布；桌面端拓宽为内容容器 */
.page {
  position: relative;
  width: 100%;
  max-width: 7.5rem;
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
  background: #0d0d0d !important;
}

/* ------------------------------------------------------------------ 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.16rem;
  height: 1.12rem;
  padding: 0 0.24rem;
  background: var(--topbar-bg);
  border-bottom: 0.0077rem solid var(--line-soft);
  backdrop-filter: blur(0.2rem);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.16rem;
  flex-shrink: 0;
}

.brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 0.18rem;
  background: var(--grad-gold);
  color: #000;
  font-size: 0.3rem;
  font-weight: 700;
}

.brand__name {
  font-size: 0.3rem;
  font-weight: 700;
  letter-spacing: 0.012rem;
  color: var(--gold-bright);
  white-space: nowrap;
}

.brand__stack {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.05;
}

/* 网址固定在「黄果果短剧」正下方，所有页面可见 */
.brand__url {
  margin-top: 0.05rem;
  font-size: 0.18rem;
  font-weight: 500;
  letter-spacing: 0.012rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.04rem;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar { display: none; }

.nav__item {
  padding: 0.08rem 0.14rem;
  border-radius: 2rem;
  font-size: 0.23rem;
  line-height: 0.36rem;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav__item:hover { color: var(--text); }

.nav__item.is-active {
  color: var(--gold-bright);
  background: rgba(255, 198, 42, 0.12);
  border: 0.01674rem solid rgba(255, 198, 42, 0.35);
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.68rem;
  height: 0.68rem;
  flex-shrink: 0;
  border-radius: 0.18rem;
  border: 0.01674rem solid var(--line);
  background: rgba(255, 198, 42, 0.06);
  color: var(--gold);
}

.icon-btn svg { width: 0.34rem; height: 0.34rem; }

.icon-btn:hover { border-color: var(--line-strong); }

/* 站点固定暗色，不再提供明暗切换按钮 */
/* ------------------------------------------------------------------ 横幅 */
.banner {
  position: relative;
  width: 100%;
  min-height: 4.6rem;
  padding: 0.72rem 0.32rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.banner-bg {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  pointer-events: none;
  background:
    radial-gradient(62% 78% at 6% -14%, rgba(255, 198, 42, 0.9), rgba(255, 198, 42, 0) 54%),
    radial-gradient(58% 72% at 98% 8%, rgba(255, 216, 77, 0.7), rgba(255, 216, 77, 0) 56%);
}

.banner-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  padding: 0.1rem 0.28rem;
  border-radius: 2rem;
  background: rgba(255, 198, 42, 0.10);
  border: 0.01674rem solid rgba(255, 198, 42, 0.30);
}

.badge svg { width: 0.26rem; height: 0.26rem; color: var(--gold); }

.badge span {
  color: var(--gold);
  font-size: 0.24rem;
  font-weight: 500;
  line-height: 0.36rem;
  white-space: nowrap;
}

.banner-title {
  margin-top: 0.34rem;
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 0.72rem;
  letter-spacing: -0.012rem;
  text-align: center;
}

.banner-sub {
  margin-top: 0.1rem;
  font-size: 0.34rem;
  font-weight: 600;
  line-height: 0.48rem;
  letter-spacing: 0.02rem;
  text-align: center;
  color: var(--gold-bright);
}

.banner-url {
  margin-top: 0.1rem;
  font-size: 0.24rem;
  font-weight: 500;
  letter-spacing: 0.04rem;
  text-align: center;
  color: var(--gold);
}

.banner-desc {
  margin-top: 0.2rem;
  width: 5.6rem;
  max-width: 100%;
  font-size: 0.26rem;
  line-height: 0.442rem;
  color: var(--text-muted);
  text-align: center;
}

.banner-stats {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.3rem;
}

.stat { text-align: center; }

.stat__num {
  font-size: 0.36rem;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 0.48rem;
}

.stat__label {
  margin-top: 0.04rem;
  font-size: 0.2rem;
  color: var(--text-dim);
}

.banner-bar {
  margin-top: 0.32rem;
  width: 0.8rem;
  height: 0.03rem;
  border-radius: 0.03rem;
  background: linear-gradient(90deg, rgba(255, 198, 42, 0), var(--gold) 50%, rgba(255, 198, 42, 0));
}

/* ------------------------------------------------------------------ 区块 */
.section {
  padding: 0.36rem 0.32rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.16rem;
  margin-bottom: 0.32rem;
}

.section-title {
  font-size: 0.44rem;
  font-weight: 600;
  line-height: 0.66rem;
  text-align: center;
}

.section-more {
  font-size: 0.22rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.section-more:hover { color: var(--gold); }

/* 金色竖条标题（左对齐场景） */
.section-title--left {
  position: relative;
  padding-left: 0.2rem;
  text-align: left;
  font-size: 0.34rem;
}

.section-title--left::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12rem;
  width: 0.06rem;
  height: 0.28rem;
  border-radius: 0.03rem;
  background: var(--gold);
}

/* ------------------------------------------------------- 热门 2x2 入口 */
.hot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.22rem;
}

.hot-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.16rem;
  height: 1rem;
  border-radius: var(--r-l);
  background: var(--grad-gold);
  border: 0.01674rem solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0.08rem 0.06rem rgba(0, 0, 0, 0.25);
  color: #000;
  font-size: 0.28rem;
  font-weight: 600;
  line-height: 0.42rem;
  white-space: nowrap;
  transition: transform 0.15s;
}

.hot-btn:hover { transform: translateY(-0.03rem); }
.hot-btn svg { width: 0.36rem; height: 0.36rem; flex-shrink: 0; }

/* ------------------------------------------------------- 分类药丸标签 */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.16rem;
}

.chip {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0.12rem 0.28rem;
  border-radius: 2rem;
  font-size: 0.24rem;
  line-height: 0.36rem;
  color: var(--text-2);
  background: var(--bg-card);
  border: 0.01674rem solid var(--line);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.chip:hover,
.chip.is-active {
  color: var(--gold-bright);
  background: rgba(255, 198, 42, 0.12);
  border-color: var(--line-strong);
}

/* ------------------------------------------------------------- 剧集卡片 */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(2.1rem, 1fr));
  gap: 0.24rem 0.22rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 0.01674rem solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.card:hover {
  transform: translateY(-0.04rem);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--cover-base);
}

/* 无图占位：渐变海报 + 序号 */
.cover__ph {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.08rem;
  padding: 0.2rem;
  text-align: center;
  background:
    linear-gradient(150deg, var(--cover-glow), var(--cover-base-2) 62%),
    var(--cover-base);
}

.cover__ph::after {
  content: attr(data-n);
  position: absolute;
  right: 0.14rem;
  bottom: 0.08rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--cover-num);
}

/* 真实封面；加载失败时移除自身，露出下面的渐变占位 */
.cover__img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cover__img.is-ready { opacity: 1; }

.cover__ph-title {
  position: relative;
  z-index: 1;
  font-size: 0.26rem;
  font-weight: 600;
  line-height: 0.38rem;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cover__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  z-index: 2;
  background: var(--cover-play-bg);
  border: 0.01674rem solid var(--line-strong);
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.2s;
}

.card:hover .cover__play { opacity: 1; }
.cover__play svg { width: 0.32rem; height: 0.32rem; }

.badge-score {
  position: absolute;
  left: 0.12rem;
  top: 0.12rem;
  z-index: 3;
  padding: 0.04rem 0.14rem;
  border-radius: 2rem;
  font-size: 0.2rem;
  font-weight: 700;
  line-height: 0.3rem;
  color: #000;
  background: var(--grad-gold);
}

.badge-tag {
  position: absolute;
  right: 0.12rem;
  top: 0.12rem;
  z-index: 3;
  padding: 0.04rem 0.14rem;
  border-radius: 2rem;
  font-size: 0.18rem;
  font-weight: 600;
  line-height: 0.28rem;
  color: var(--green);
  background: var(--chip-bg);
  border: 0.01674rem solid rgba(74, 222, 128, 0.35);
}

.meta {
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
  padding: 0.18rem 0.18rem 0.2rem;
}

.card-title {
  font-size: 0.26rem;
  font-weight: 600;
  line-height: 0.36rem;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-sub {
  font-size: 0.2rem;
  line-height: 0.3rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ------------------------------------------------------------- 排行列表 */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.rank-row {
  display: flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.22rem 0.24rem;
  background: var(--bg-card);
  border: 0.01674rem solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s, background 0.15s;
}

.rank-row:hover {
  border-color: var(--line-strong);
  background: var(--bg-elev);
}

.rank-no {
  width: 0.56rem;
  flex-shrink: 0;
  text-align: center;
  font-size: 0.34rem;
  font-weight: 700;
  font-style: italic;
  color: var(--text-dim);
}

.rank-row:nth-child(1) .rank-no { color: #ffd84d; }
.rank-row:nth-child(2) .rank-no { color: #e5e5e5; }
.rank-row:nth-child(3) .rank-no { color: #d08c4a; }

.rank-thumb {
  width: 0.76rem;
  height: 1rem;
  flex-shrink: 0;
  border-radius: 0.14rem;
  overflow: hidden;
  background: linear-gradient(150deg, var(--cover-glow), var(--cover-base) 70%);
}

.rank-body { flex: 1; min-width: 0; }

.rank-title {
  font-size: 0.28rem;
  font-weight: 600;
  line-height: 0.4rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-sub {
  margin-top: 0.06rem;
  font-size: 0.2rem;
  line-height: 0.3rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-heat {
  flex-shrink: 0;
  font-size: 0.22rem;
  font-weight: 700;
  color: var(--gold);
}

/* ------------------------------------------------------------- 搜索与筛选 */
.searchbar {
  display: flex;
  align-items: center;
  gap: 0.16rem;
  height: 0.92rem;
  padding: 0 0.28rem;
  border-radius: 2rem;
  background: var(--bg-card);
  border: 0.01674rem solid var(--line);
}

.searchbar svg { width: 0.34rem; height: 0.34rem; color: var(--gold); flex-shrink: 0; }

.searchbar input {
  flex: 1;
  min-width: 0;
  font-size: 0.26rem;
  color: var(--text);
  outline: none;
}

.searchbar input::placeholder { color: var(--text-dim); }

.filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.16rem;
  overflow-x: auto;
  padding: 0.24rem 0 0.06rem;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar { display: none; }

/* ------------------------------------------------------------- 播放页 */
.player {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: 62vh;
  margin: 0 auto 0.28rem;
  background: var(--player-base);
  border-radius: var(--r-m);
  border: 0.01674rem solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player__poster {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(255, 198, 42, 0.18), rgba(0, 0, 0, 0) 70%),
    linear-gradient(160deg, var(--cover-base), var(--player-base));
}

.player__center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.player__play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.28rem;
  height: 1.28rem;
  border-radius: 50%;
  background: var(--grad-gold);
  box-shadow: 0 0 0.4rem rgba(255, 198, 42, 0.45);
  color: #000;
}

.player__play svg { width: 0.52rem; height: 0.52rem; }

.player__hint {
  font-size: 0.24rem;
  color: var(--text-soft);
}

.detail-title {
  font-size: 0.42rem;
  font-weight: 700;
  line-height: 0.6rem;
}

.detail-meta {
  margin-top: 0.12rem;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.24rem;
  color: var(--text-muted);
}

.detail-meta .score {
  font-size: 0.3rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.12rem;
  margin-top: 0.2rem;
}

.tag {
  padding: 0.06rem 0.2rem;
  border-radius: 2rem;
  font-size: 0.2rem;
  line-height: 0.32rem;
  color: var(--text-soft);
  background: var(--tag-bg);
  border: 0.01674rem solid var(--line-soft);
}

.desc {
  margin-top: 0.24rem;
  font-size: 0.26rem;
  line-height: 0.455rem;
  color: var(--text-muted);
  white-space: pre-line;
}

.eps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(0.92rem, 1fr));
  gap: 0.16rem;
  margin-top: 0.24rem;
}

.ep {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 0.72rem;
  border-radius: 0.14rem;
  font-size: 0.24rem;
  color: var(--text-soft);
  background: var(--bg-card);
  border: 0.01674rem solid var(--line-soft);
  transition: color 0.15s, border-color 0.15s;
}

.ep:hover { color: var(--gold); border-color: var(--line-strong); }

.ep.is-current {
  color: #000;
  font-weight: 700;
  background: var(--grad-gold);
  border-color: transparent;
}

/* ----------------------------------------------------------------- FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.faq-item {
  background: var(--bg-card);
  border: 0.01674rem solid rgba(255, 198, 42, 0.12);
  border-radius: var(--r-m);
  box-shadow: 0 0.04rem 0.24rem rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.faq-item[open] {
  background: var(--bg-elev);
  border-color: rgba(255, 198, 42, 0.35);
}

.faq-q {
  display: flex;
  align-items: center;
  gap: 0.22rem;
  width: 100%;
  padding: 0.3rem;
  text-align: left;
  cursor: pointer;
  list-style: none;
}

.faq-q::-webkit-details-marker { display: none; }

.faq-q-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.6rem;
  height: 0.6rem;
  flex-shrink: 0;
  border-radius: 0.16rem;
  background: rgba(255, 198, 42, 0.08);
  border: 0.01674rem solid rgba(255, 198, 42, 0.2);
  color: var(--gold);
}

.faq-item[open] .faq-q-icon {
  background: rgba(255, 198, 42, 0.15);
  border-color: rgba(255, 198, 42, 0.4);
}

.faq-q-icon svg { width: 0.3rem; height: 0.3rem; }

.faq-q-text {
  flex: 1;
  min-width: 0;
  font-size: 0.28rem;
  font-weight: 600;
  line-height: 0.4rem;
  color: var(--text-2);
}

.faq-item[open] .faq-q-text { color: var(--text); }

.faq-chevron {
  width: 0.32rem;
  height: 0.32rem;
  flex-shrink: 0;
  color: var(--text-dim);
  transition: transform 0.25s;
}

.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--gold); }

.faq-a {
  padding: 0 0.3rem 0.3rem 1.12rem;
  border-top: 0.0077rem solid var(--line-soft);
  padding-top: 0.24rem;
}

.faq-a p {
  font-size: 0.26rem;
  line-height: 0.455rem;
  color: var(--text-muted);
}

/* -------------------------------------------------------------- 页脚 */
.footer {
  padding: 0.5rem 0.32rem 0.4rem;
  background: var(--bg-footer);
  border-top: 0.0077rem solid var(--line-soft);
  text-align: center;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.14rem;
  margin-bottom: 0.2rem;
}

.footer__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 0.14rem;
  background: var(--grad-gold);
  color: #000;
  font-size: 0.24rem;
  font-weight: 700;
}

.footer__name {
  font-size: 0.26rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.footer__url {
  margin-bottom: 0.12rem;
  font-size: 0.22rem;
  letter-spacing: 0.03rem;
  color: var(--gold);
}

/* 备用入口（多域名）展示：所有页面页脚可见 */
.footer__mirrors {
  margin: 0.26rem auto 0.2rem;
  padding-top: 0.24rem;
  max-width: 6.4rem;
  border-top: 0.0077rem solid var(--line-soft);
}

.footer__mirrors-title {
  display: block;
  margin-bottom: 0.14rem;
  font-size: 0.22rem;
  letter-spacing: 0.02rem;
  color: var(--gold-bright);
}

.footer__mirrors-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.12rem 0.26rem;
}

.footer__mirrors-list a {
  font-size: 0.21rem;
  color: var(--text-soft);
}

.footer__mirrors-list a:hover { color: var(--gold); }

.footer__copy {
  font-size: 0.22rem;
  line-height: 0.396rem;
  color: var(--footer-copy);
}

.footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.28rem;
  padding-top: 0.28rem;
  border-top: 0.0077rem solid var(--line-soft);
}

.footer__links a {
  font-size: 0.22rem;
  color: var(--text-dim);
}

.footer__links a:hover { color: var(--gold); }

.footer__links em {
  font-style: normal;
  color: var(--gold-bright);
}

/* --------------------------------------------------------- 悬浮底栏 */
.tabbar {
  position: sticky;
  bottom: 0;
  z-index: 30;
  display: flex;
  padding: 0.12rem 0.2rem calc(0.12rem + env(safe-area-inset-bottom));
  background: var(--tabbar-bg);
  border-top: 0.0077rem solid var(--line-soft);
  backdrop-filter: blur(0.2rem);
}

.tabbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.06rem;
  padding: 0.1rem 0;
  font-size: 0.2rem;
  color: var(--text-dim);
}

.tabbar__item svg { width: 0.4rem; height: 0.4rem; }
.tabbar__item.is-active { color: var(--gold-bright); }

/* --------------------------------------------------------- 桌面端布局 */
@media (min-width: 901px) {
  .page {
    max-width: 16rem;
    box-shadow: 0 0 0 0.0077rem var(--line-soft);
  }

  .topbar { padding: 0 0.6rem; }
  .banner { min-height: 5.2rem; padding: 0.9rem 0.6rem 0.6rem; }
  .section { padding: 0.5rem 0.6rem; }
  .section-title { font-size: 0.5rem; }
  .grid-cards { gap: 0.3rem; }
  .hot-grid { grid-template-columns: repeat(4, 1fr); }
  .footer { padding: 0.8rem 0.6rem 0.6rem; }
  .tabbar { display: none; }
}

/* ================================================================== 详情页 */
.detail-hero {
  display: flex;
  gap: 0.32rem;
  align-items: stretch;
}

.poster {
  position: relative;
  width: 2.6rem;
  flex-shrink: 0;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-m);
  overflow: hidden;
  background: var(--cover-base);
  border: 0.01674rem solid var(--line);
  box-shadow: var(--shadow-card);
}

.poster .cover__ph-title { font-size: 0.28rem; }

.detail-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.detail-info .detail-title {
  font-size: 0.4rem;
  line-height: 0.56rem;
}

.detail-score {
  display: flex;
  align-items: baseline;
  gap: 0.12rem;
  margin-top: 0.16rem;
}

.detail-score b {
  font-size: 0.46rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-bright);
}

.detail-score span {
  font-size: 0.22rem;
  color: var(--text-dim);
}

.detail-actions {
  display: flex;
  gap: 0.18rem;
  margin-top: auto;
  padding-top: 0.28rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  height: 0.84rem;
  padding: 0 0.32rem;
  border-radius: 0.2rem;
  font-size: 0.26rem;
  font-weight: 600;
  line-height: 0.4rem;
  white-space: nowrap;
}

.btn svg { width: 0.32rem; height: 0.32rem; }

.btn-gold {
  flex: 1;
  color: #000;
  background: var(--grad-gold);
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  color: var(--gold-bright);
  border: 0.01674rem solid var(--line-strong);
  background: rgba(255, 198, 42, 0.08);
}

/* 信息表 */
.facts {
  margin-top: 0.32rem;
  border: 0.01674rem solid var(--line-soft);
  border-radius: var(--r-m);
  overflow: hidden;
}

.fact {
  display: flex;
  gap: 0.24rem;
  padding: 0.2rem 0.24rem;
  font-size: 0.24rem;
  line-height: 0.36rem;
  border-bottom: 0.0077rem solid var(--line-soft);
}

.fact:last-child { border-bottom: none; }

.fact dt { width: 1.2rem; flex-shrink: 0; color: var(--text-dim); }
.fact dd { flex: 1; min-width: 0; color: var(--text-2); word-break: break-all; }

@media (min-width: 901px) {
  .detail-hero { gap: 0.5rem; }
  .poster { width: 4.2rem; }
  .detail-info .detail-title { font-size: 0.48rem; line-height: 0.68rem; }
  .detail-actions { padding-top: 0.4rem; }
}

/* ============================================================ 筛选 / 排序 */
.filters--sub { padding-top: 0.16rem; }
.filters--sub .chip { font-size: 0.22rem; padding: 0.08rem 0.22rem; }

.result-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.2rem;
  margin-top: 0.28rem;
}

.result-line .count b {
  font-weight: 700;
  color: var(--gold-bright);
}

.result-line .reset {
  font-size: 0.22rem;
  color: var(--text-dim);
}

.result-line .reset:hover { color: var(--gold); }

/* hidden 需显式覆盖 flex/grid 的 display */
.card[hidden],
.rank-row[hidden],
.player__overlay[hidden],
.player__msg[hidden],
.empty[hidden],
.resume[hidden] { display: none; }

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.16rem;
  padding: 0.9rem 0.32rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.26rem;
}

.empty svg { width: 1rem; height: 1rem; color: var(--line); }

/* ============================================================ 播放器 */
.player__video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.player__poster { z-index: 0; }

.player__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: radial-gradient(70% 60% at 50% 45%, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.55));
}

.player__play[disabled] { opacity: 0.4; cursor: default; }

.player__msg {
  position: absolute;
  left: 50%;
  top: 20%;
  z-index: 4;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0.14rem 0.3rem;
  border-radius: 2rem;
  font-size: 0.24rem;
  line-height: 0.36rem;
  white-space: nowrap;
  color: var(--gold-bright);
  background: rgba(13, 13, 13, 0.78);
  border: 0.01674rem solid var(--line-strong);
}

/* 自定义控制条 */
.pc-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.16rem;
  padding: 0.36rem 0.24rem 0.2rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.72));
  transition: opacity 0.2s;
}

.player.is-unavailable .pc-bar { opacity: 0.35; pointer-events: none; }

.pc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.6rem;
  height: 0.6rem;
  flex-shrink: 0;
  border-radius: 0.14rem;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
  border: 0.01674rem solid var(--line);
}

.pc-btn:hover { border-color: var(--line-strong); }
.pc-btn svg { width: 0.32rem; height: 0.32rem; }

.pc-btn .pc-icon-pause { display: none; }
.pc-btn.is-paused .pc-icon-pause { display: block; }
.pc-btn.is-paused .pc-icon-play { display: none; }

.pc-time {
  flex-shrink: 0;
  font-size: 0.2rem;
  line-height: 0.3rem;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

.pc-time b { color: var(--gold-bright); font-weight: 600; }
.pc-time i { font-style: normal; }

.pc-seek {
  flex: 1;
  min-width: 0;
  height: 0.06rem;
  border-radius: 2rem;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

.pc-seek::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0.1rem rgba(255, 198, 42, 0.6);
  cursor: pointer;
}

.pc-seek::-moz-range-thumb {
  width: 0.28rem;
  height: 0.28rem;
  border: none;
  border-radius: 50%;
  background: var(--gold-bright);
  cursor: pointer;
}

/* 剧集进度条 */
.ep { position: relative; overflow: hidden; }

.ep__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 0.06rem;
  border-radius: 0 2rem 2rem 0;
  background: var(--grad-gold);
}

.ep.is-done {
  color: var(--green);
  border-color: rgba(74, 222, 128, 0.35);
}

.ep.is-done::after {
  content: "✓";
  margin-left: 0.06rem;
  font-size: 0.18rem;
}

.ep.is-current {
  color: #000;
  font-weight: 700;
  background: var(--grad-gold);
  border-color: transparent;
}

.ep.is-current .ep__bar { display: none; }

/* ============================================================ 继续观看 */
.playbar,
.navrow {
  display: flex;
  gap: 0.18rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.24rem;
}

.playbar .btn,
.navrow .btn { flex: 0 1 auto; }

.playbar .btn b {
  color: var(--gold-bright);
  font-weight: 600;
}

.btn:disabled { opacity: 0.4; cursor: default; }

.resume {
  display: flex;
  align-items: center;
  gap: 0.24rem;
  padding: 0.24rem;
  border-radius: var(--r-m);
  background: var(--bg-card);
  border: 0.01674rem solid var(--line-strong);
  box-shadow: var(--shadow-card);
}

.resume__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.72rem;
  height: 0.72rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--grad-gold);
  color: #000;
}

.resume__icon svg { width: 0.34rem; height: 0.34rem; }

.resume__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.resume__title {
  display: block;
  font-size: 0.26rem;
  font-weight: 600;
  line-height: 0.38rem;
  color: var(--text);
}

.resume__label {
  display: block;
  margin-top: 0.04rem;
  font-size: 0.22rem;
  line-height: 0.32rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resume__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.14rem 0.3rem;
  border-radius: 2rem;
  font-size: 0.24rem;
  font-weight: 600;
  color: #000;
  background: var(--grad-gold);
}
