:root {
  --bg: #0a0a0a;
  --bg-2: #121212;
  --bg-3: #1a1a1a;
  --ink: #f3f0e8;
  --text: #f3f0e8;
  --muted: #9a958c;
  --line: rgba(212, 175, 55, 0.14);
  --gold: #d4af37;
  --gold-2: #f0d78c;
  --gold-deep: #a8841f;
  --gold-soft: rgba(212, 175, 55, 0.14);
  --card: #141414;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  --sans: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
}
body { line-height: 1.65; min-height: 100vh; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.skip { position: absolute; left: -999px; }
.skip:focus {
  left: 12px; top: 12px; z-index: 9;
  background: #fff; color: #111; padding: 8px 12px; border-radius: 8px;
}

.wrap { width: min(1280px, calc(100% - 32px)); margin: 0 auto; }

.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img {
  width: 36px; height: 36px;
  border-radius: 10px;
  object-fit: cover;
}
.brand b {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  background: linear-gradient(90deg, #fff8e7, var(--gold), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  margin-top: 4px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}
.nav a:hover { color: var(--gold-2); }
.nav-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
  color: #1a1408 !important;
  background: linear-gradient(135deg, #c9a227, #f0d78c 55%, #b8922a);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}
.nav-dl:hover {
  color: #1a1408 !important;
  filter: brightness(1.06);
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.48);
}

.hero { padding: 22px 0 8px; }
.hero-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.hero-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}
.hero-head a { color: var(--muted); font-size: 13px; }
.hero-head a:hover { color: var(--gold-2); }

.kicker {
  display: inline-block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 16px);
}
.hero-strip a { display: block; min-width: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--bg-3);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: rgba(212, 175, 55, 0.5);
  background: var(--gold-soft);
  color: var(--gold-2);
}
.btn--primary,
.btn--mango {
  background: linear-gradient(135deg, #c9a227, #f0d78c 55%, #b8922a);
  border-color: transparent;
  color: #1a1408;
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.28);
}
.btn--primary:hover,
.btn--mango:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(212, 175, 55, 0.4);
}

.thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-3);
}
.thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center top;
}
.cap { margin-top: 10px; }
.cap b {
  display: block;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cap span { color: var(--muted); font-size: 12px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0 16px;
  position: sticky;
  top: 68px;
  z-index: 15;
  background: linear-gradient(180deg, rgba(10,10,10,.98), rgba(10,10,10,.92) 80%, transparent);
}
.chip {
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: .15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.chip.is-on,
.chip:hover {
  border-color: var(--gold);
  color: var(--gold-2);
  background: var(--gold-soft);
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 40px;
}
.pager-info {
  color: var(--muted);
  font-size: 13px;
}
.pager-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.pager-btn,
.pager-num {
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 13px;
  text-decoration: none;
  min-width: 36px;
  text-align: center;
}
.pager-btn:hover,
.pager-num:hover {
  border-color: var(--gold);
  color: var(--gold-2);
}
.pager-num.is-on {
  border-color: var(--gold);
  color: var(--gold-2);
  background: var(--gold-soft);
}
.pager-btn.is-disabled {
  opacity: .4;
  pointer-events: none;
}
.pager-ellipsis {
  color: var(--muted);
  padding: 0 2px;
}

.section-title {
  margin: 8px 0 14px;
  font-size: 20px;
  font-weight: 800;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px 14px;
  padding-bottom: 48px;
}
.shot { display: block; min-width: 0; position: relative; }
.shot .frame {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-3);
  transition: transform .2s, box-shadow .2s;
}
.shot:hover .frame {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.16);
}
.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center top;
}
.shot .frame:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.72), transparent 46%);
  pointer-events: none;
}
.shot .cover-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.shot .badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  max-width: calc(100% - 16px);
  overflow: hidden;
  padding: 4px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, #a8841f, #d4af37);
  color: #1a1408;
  font-size: 11px;
  font-weight: 800;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shot .playhint {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a227, #f0d78c);
  color: #1a1408;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity .2s;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}
.shot:hover .playhint { opacity: 1; }
.shot h3 {
  margin: 10px 0 4px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shot p {
  display: flex;
  gap: 8px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shot[hidden] { display: none; }

.foot {
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}
.foot-grid { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a:hover { color: var(--gold-2); }

body:has(.crumb) .mast { border-bottom-color: transparent; }
.crumb { padding: 14px 0 10px; color: var(--muted); font-size: 13px; }
.crumb a:hover { color: var(--gold-2); }

.detail {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px 28px;
  align-items: start;
  padding: 8px 0 36px;
}
.poster-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
}
.poster-wrap .thumb { border-radius: 10px; }
.detail-info { min-width: 0; }
.detail h1 {
  font-size: clamp(24px, 3.6vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 12px;
}
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--muted);
  background: var(--bg-2);
}
.detail-sub {
  margin: 14px 0 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--gold-2);
}
.lead { font-size: 14px; color: #c8c2b6; max-width: 46em; margin: 0; }
.seo-extra {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 46em;
  line-height: 1.6;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }

.eps { padding: 0 0 36px; }
.eps h2, .more h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 14px;
}
.ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}
.ep-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 650;
  color: #ddd;
}
.ep-link:hover,
.ep-link.is-on {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold-2);
}

.more { padding-bottom: 56px; }
.more-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px 14px;
}
.more-grid a { display: block; min-width: 0; }
.more-grid b {
  display: block;
  margin-top: 10px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* —— 独立播放页 —— */
body.is-play {
  background: #050505;
}
body.is-play .mast {
  border-bottom: none;
  background: transparent;
}
body.is-play .foot { display: none; }

.play-page {
  width: min(960px, calc(100% - 24px));
  margin: 0 auto;
  padding: 8px 0 40px;
}
.play-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}
.play-title h1 {
  margin: 0;
  font-size: clamp(16px, 2.4vw, 22px);
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.play-title .back {
  flex: none;
  color: var(--muted);
  font-size: 13px;
}
.play-title .back:hover { color: var(--gold-2); }

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
  border: 1px solid rgba(212, 175, 55, 0.22);
}
.player-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
  /* 试看全程模糊（仅用户端 JS 注入后出现） */
  filter: blur(22px) brightness(.48) saturate(1.1);
  transform: scale(1.08);
  pointer-events: none;
}
.player-box.is-ended video {
  filter: blur(28px) brightness(.32) saturate(1.1);
}
.player-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(100px, 28%) 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 30% 40%, rgba(212, 175, 55, 0.12), transparent 50%),
    #0a0a0a;
}
.player-fallback[hidden] { display: none; }
.player-fallback img {
  width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.player-fallback-copy { min-width: 0; }
.player-fallback-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(16px, 2.4vw, 22px);
  color: var(--gold-2);
}
.player-fallback-copy p {
  margin: 0 0 14px;
  color: #c8c2b6;
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 768px) {
  .player-fallback {
    grid-template-columns: 1fr;
    place-items: center;
    text-align: center;
  }
  .player-fallback img {
    max-width: 42%;
  }
  .player-fallback-copy p { -webkit-line-clamp: 3; }
}
.player-gate {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 35%, rgba(212, 175, 55, 0.18), transparent 55%),
    rgba(0, 0, 0, 0.28);
}
.player-gate.is-waiting {
  background: rgba(0, 0, 0, 0.12);
}
.player-gate[hidden] { display: none; }
.gate-card {
  width: min(420px, 100%);
  padding: 28px 24px 24px;
  border-radius: 20px;
  text-align: center;
  color: #fff8e7;
  background: linear-gradient(160deg, rgba(28, 24, 16, 0.94), rgba(12, 10, 8, 0.9));
  border: 1px solid rgba(212, 175, 55, 0.42);
  box-shadow:
    0 0 0 1px rgba(255, 240, 200, 0.04) inset,
    0 24px 60px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px);
  animation: gate-in .35s ease;
}
@keyframes gate-in {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.gate-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #1a1408;
  background: linear-gradient(135deg, #c9a227, #f0d78c);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.4);
}
.gate-card h3 {
  margin: 0 0 8px;
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--gold-2);
}
.gate-card p {
  margin: 0 0 18px;
  color: #d2c8b4;
  font-size: 14px;
  line-height: 1.55;
}
.gate-card .btn {
  width: 100%;
  min-height: 48px;
  font-size: 16px;
  animation: pulse 1.8s ease-in-out infinite;
}
.gate-tips {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.gate-tips span {
  font-size: 11px;
  color: #c4b48e;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.18);
}
.play-hint {
  margin: 14px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(212, 175, 55, 0.28); }
  50% { box-shadow: 0 12px 36px rgba(240, 215, 140, 0.5); }
}

@media (max-width: 1100px) {
  .catalog, .more-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .hero-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .detail { grid-template-columns: 180px minmax(0, 1fr); gap: 18px; }
  .catalog, .more-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .wrap { width: calc(100% - 24px); }
  .mast { padding: 12px 0; }
  .brand b { font-size: 18px; }
  .nav { gap: 12px; font-size: 13px; }
  .hero-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .catalog, .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .shot .frame, .thumb { border-radius: 10px; }
  .shot .badge { top: 6px; right: 6px; padding: 3px 6px; font-size: 10px; }
  .shot .playhint { opacity: 1; width: 42px; height: 42px; font-size: 14px; }
  .shot h3, .more-grid b, .cap b { font-size: 13px; }
  .chips { top: 60px; padding-top: 10px; }
  .detail {
    grid-template-columns: minmax(120px, 38%) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }
  .poster-wrap { padding: 4px; border-radius: 10px; }
  .detail .kicker { margin-bottom: 4px; font-size: 11px; }
  .detail h1 {
    font-size: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 8px;
  }
  .meta { gap: 6px; margin: 0 0 8px; }
  .pill { padding: 3px 8px; font-size: 11px; }
  .lead {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.5;
  }
  .actions { margin: 12px 0 0; }
  .actions .btn { min-height: 38px; padding: 0 12px; font-size: 13px; }
  .ep-grid { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
  .ep-link { min-height: 38px; font-size: 12px; }
  .player-box { border-radius: 12px; aspect-ratio: 9 / 14; max-height: 72vh; }
  .gate-card { padding: 22px 18px 18px; border-radius: 16px; }
  .gate-card h3 { font-size: 17px; }
  .gate-card p { font-size: 13px; margin-bottom: 14px; }
  .gate-card .btn { min-height: 44px; font-size: 15px; }
}
