@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&display=swap");

:root {
  --bg: #f3f5f8;
  --bg-2: #e8ecf2;
  --bg-3: #ffffff;
  --ink: #12161c;
  --text: #12161c;
  --muted: #667085;
  --line: rgba(18, 22, 28, 0.1);
  --accent: #d61f4a;
  --accent-2: #f04368;
  --accent-deep: #a51538;
  --accent-soft: rgba(214, 31, 74, 0.1);
  --ink-soft: #2a3340;
  /* 兼容旧类名 */
  --mango: var(--accent);
  --mango-2: var(--accent-2);
  --mango-deep: var(--accent-deep);
  --leaf: var(--ink-soft);
  --leaf-soft: rgba(42, 51, 64, 0.08);
  --card: #ffffff;
  --shadow: 0 10px 28px rgba(18, 22, 28, 0.08);
  --radius: 8px;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display: var(--sans);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background:
    linear-gradient(180deg, #eef1f6 0%, var(--bg) 120px, var(--bg) 100%);
  color: var(--ink);
  font-family: var(--sans);
}
body { line-height: 1.6; 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;
}

.awning {
  height: 3px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent) 40%, var(--accent-2));
}

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

.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 14px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 245, 248, 0.94);
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img {
  width: 36px; height: 36px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line);
}
.brand b {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  color: var(--ink);
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.nav a:hover { color: var(--accent); }
.nav-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 600;
  color: #fff !important;
  background: var(--accent);
}
.nav-dl:hover { background: var(--accent-deep); color: #fff !important; }

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

.kicker {
  display: inline-block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  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: 8px;
  border: 1px solid transparent;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.btn--primary,
.btn--mango {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(214, 31, 74, 0.22);
}
.btn--primary:hover,
.btn--mango:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-2);
}
.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: 600;
  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: 16px 0;
  position: sticky;
  top: 64px;
  z-index: 15;
  background: linear-gradient(180deg, rgba(243,245,248,.98), rgba(243,245,248,.92) 80%, transparent);
}
.chip {
  border: 1px solid var(--line);
  background: var(--bg-3);
  color: var(--muted);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: .15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.chip.is-on,
.chip:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: var(--accent-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-3);
  color: var(--text);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  text-decoration: none;
  min-width: 36px;
  text-align: center;
}
.pager-btn:hover,
.pager-num:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}
.pager-num.is-on {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}
.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: 700;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px 14px;
  padding-bottom: 48px;
}
.shot { display: block; min-width: 0; position: relative; }
.shot .frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-2);
  transition: transform .2s, box-shadow .2s;
  box-shadow: var(--shadow);
}
.shot:hover .frame {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(18, 22, 28, 0.12);
}
.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(18,22,28,.62), transparent 42%);
  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: 3px 8px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shot .playhint {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--accent);
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity .2s;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.shot:hover .playhint { opacity: 1; }
.shot h3 {
  margin: 10px 0 4px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  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(--accent); }

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

.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: 10px;
  padding: 6px;
  box-shadow: var(--shadow);
}
.poster-wrap .thumb { border-radius: 6px; }
.detail-info { min-width: 0; }
.detail h1 {
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 12px;
}
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.pill {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--muted);
  background: var(--bg-3);
}
.lead {
  font-size: 14px;
  color: #3d4654;
  max-width: 46em;
  margin: 10px 0 0;
  line-height: 1.7;
}
.lead-label {
  color: var(--ink);
  font-weight: 600;
}
.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: 700;
  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-3);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.ep-link:hover,
.ep-link.is-on {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
}

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

body.is-play { background: #0f1217; color: #eef1f6; }
body.is-play .mast {
  border-bottom: none;
  background: transparent;
}
body.is-play .foot { display: none; }
body.is-play .brand b { color: #eef1f6; }
body.is-play .awning {
  background: linear-gradient(90deg, #7a1028, var(--accent) 45%, var(--accent-2));
}

.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: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.play-title .back { flex: none; color: #8b95a5; font-size: 13px; }
.play-title .back:hover { color: var(--accent-2); }

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.player-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
  filter: blur(22px) brightness(.48) saturate(1.05);
  transform: scale(1.08);
  pointer-events: none;
}
.player-box.is-ended video {
  filter: blur(28px) brightness(.32) saturate(1.05);
}
.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(214, 31, 74, 0.18), transparent 50%),
    #0f1217;
}
.player-fallback[hidden] { display: none; }
.player-fallback img {
  width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
}
.player-fallback-copy { min-width: 0; }
.player-fallback-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(16px, 2.4vw, 22px);
  font-weight: 700;
  color: #fff;
}
.player-fallback-copy p {
  margin: 0 0 14px;
  color: #b6bfcc;
  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-start {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.28);
  border: none;
  cursor: pointer;
  color: inherit;
}
.player-start[hidden] { display: none; }
.player-start-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 28px;
  border-radius: 12px;
  background: rgba(15, 18, 23, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.player-start-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: #fff;
  background: var(--accent);
}
.player-start-inner strong {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.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(214, 31, 74, 0.22), 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: 14px;
  text-align: center;
  color: #eef1f6;
  background: linear-gradient(160deg, rgba(24, 28, 36, 0.96), rgba(12, 14, 18, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 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: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #fff;
  background: var(--accent);
}
.gate-card h3 {
  margin: 0 0 8px;
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 700;
  color: #fff;
}
.gate-card p {
  margin: 0 0 18px;
  color: #b6bfcc;
  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: #c4ccd8;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 20px rgba(214, 31, 74, 0.22); }
  50% { box-shadow: 0 10px 28px rgba(240, 67, 104, 0.4); }
}

@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 .playhint { opacity: 1; width: 40px; height: 40px; font-size: 13px; }
  .chips { top: 56px; }
  .detail {
    grid-template-columns: minmax(120px, 38%) minmax(0, 1fr);
    gap: 12px;
  }
  .detail h1 { font-size: 20px; }
  .player-box { border-radius: 10px; aspect-ratio: 9 / 14; max-height: 72vh; }
}
