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

:root {
  --bg: #071512;
  --bg-2: #0e221c;
  --bg-3: #143029;
  --ink: #e8f6ef;
  --text: #e8f6ef;
  --muted: #8aa899;
  --line: rgba(140, 220, 160, 0.14);
  --bean: #b8e05a;
  --bean-2: #d4f28a;
  --bean-deep: #6f9a2e;
  --bean-soft: rgba(184, 224, 90, 0.14);
  --mint: #3ecf8e;
  --card: #10261f;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  --radius: 4px;
  --display: "Outfit", "Noto Sans SC", "PingFang SC", sans-serif;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(62, 207, 142, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(184, 224, 90, 0.08), transparent 50%),
    linear-gradient(180deg, #0a1c17 0%, var(--bg) 40%, #06110e 100%);
  background-attachment: fixed;
  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: var(--bean); color: #0a1a10; padding: 8px 12px; border-radius: var(--radius);
}

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

.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 14px;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--bean), transparent 55%) 1;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 21, 18, 0.88);
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--bean-deep);
}
.brand b {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--bean-2);
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-top: 5px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}
.nav a:hover { color: var(--bean-2); }
.nav-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: var(--radius);
  font-weight: 700;
  font-family: var(--display);
  color: #0a1a10 !important;
  background: linear-gradient(135deg, var(--bean-deep), var(--bean) 50%, var(--bean-2));
  box-shadow: 0 6px 20px rgba(184, 224, 90, 0.28);
}
.nav-dl:hover {
  color: #0a1a10 !important;
  filter: brightness(1.05);
}

.hero { padding: 28px 0 10px; }
.hero-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 3px solid var(--bean);
}
.hero-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.hero-head a { color: var(--muted); font-size: 13px; }
.hero-head a:hover { color: var(--bean-2); }

.kicker {
  display: inline-block;
  color: var(--mint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 14px);
}
.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: var(--radius);
  border: 1px solid transparent;
  background: var(--bg-3);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  font-family: var(--display);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn--ghost {
  background: transparent;
  border-color: rgba(232, 246, 239, 0.18);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--bean);
  background: var(--bean-soft);
  color: var(--bean-2);
}
.btn--primary,
.btn--mango {
  background: linear-gradient(135deg, var(--bean-deep), var(--bean) 55%, var(--bean-2));
  border-color: transparent;
  color: #0a1a10;
  box-shadow: 0 10px 28px rgba(184, 224, 90, 0.25);
}
.btn--primary:hover,
.btn--mango:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(184, 224, 90, 0.38);
}

.thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  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: 0;
  padding: 12px 0 0;
  margin-bottom: 18px;
  position: sticky;
  top: 70px;
  z-index: 15;
  background: linear-gradient(180deg, rgba(7,21,18,.98), rgba(7,21,18,.94) 70%, transparent);
  border-bottom: 1px solid var(--line);
}
.chip {
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 0;
  padding: 10px 16px 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: .15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  margin-bottom: -1px;
}
.chip.is-on,
.chip:hover {
  border-bottom-color: var(--bean);
  color: var(--bean-2);
  background: transparent;
}

.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: var(--radius);
  padding: 7px 12px;
  font-size: 13px;
  text-decoration: none;
  min-width: 36px;
  text-align: center;
}
.pager-btn:hover,
.pager-num:hover {
  border-color: var(--bean);
  color: var(--bean-2);
}
.pager-num.is-on {
  border-color: var(--bean);
  color: #0a1a10;
  background: var(--bean);
}
.pager-btn.is-disabled {
  opacity: .4;
  pointer-events: none;
}
.pager-ellipsis {
  color: var(--muted);
  padding: 0 2px;
}

.section-title {
  margin: 8px 0 14px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px 12px;
  padding-bottom: 48px;
}
.shot { display: block; min-width: 0; position: relative; }
.shot .frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-3);
  transition: transform .2s, box-shadow .2s;
  box-shadow: inset 0 0 0 1px var(--line);
}
.shot:hover .frame {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(62, 207, 142, 0.18), inset 0 0 0 1px rgba(184, 224, 90, 0.35);
}
.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(7,21,18,.78), transparent 42%);
  pointer-events: none;
}
.shot .cover-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.shot .badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  max-width: calc(100% - 8px);
  overflow: hidden;
  padding: 5px 8px;
  border-radius: 0 0 var(--radius) 0;
  background: var(--bean);
  color: #0a1a10;
  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: 46px;
  height: 46px;
  border: 2px solid rgba(232, 246, 239, 0.85);
  border-radius: var(--radius);
  background: rgba(7, 21, 18, 0.72);
  color: var(--bean-2);
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity .2s;
  display: grid;
  place-items: center;
}
.shot:hover .playhint { opacity: 1; }
.shot h3 {
  margin: 10px 0 4px;
  overflow: hidden;
  font-size: 13px;
  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(--bean-2); }

body:has(.crumb) .mast { border-image: none; border-bottom: 1px solid var(--line); }
.crumb { padding: 14px 0 10px; color: var(--muted); font-size: 13px; }
.crumb a:hover { color: var(--bean-2); }

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px 32px;
  align-items: start;
  padding: 8px 0 36px;
}
.poster-wrap {
  order: 2;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: 8px 8px 0 var(--bean-soft);
}
.poster-wrap .thumb {
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
}
.detail-info { order: 1; min-width: 0; }
.detail h1 {
  font-family: var(--display);
  font-size: clamp(24px, 3.6vw, 34px);
  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: var(--radius);
  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(--bean-2);
}
.lead { font-size: 14px; color: #b8d4c6; 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-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 14px;
  padding-left: 10px;
  border-left: 3px solid var(--bean);
}
.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: var(--radius);
  font-size: 13px;
  font-weight: 650;
  color: #cfe6d9;
}
.ep-link:hover,
.ep-link.is-on {
  border-color: var(--bean);
  background: var(--bean-soft);
  color: var(--bean-2);
}

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

/* —— 独立播放页 —— */
body.is-play {
  background: #04110d;
}
body.is-play .mast {
  border-image: none;
  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-family: var(--display);
  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(--bean-2); }

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
  border: 1px solid rgba(184, 224, 90, 0.22);
}
.player-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
  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(184, 224, 90, 0.12), transparent 50%),
    #071512;
}
.player-fallback[hidden] { display: none; }
.player-fallback img {
  width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.player-fallback-copy { min-width: 0; }
.player-fallback-copy h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(16px, 2.4vw, 22px);
  color: var(--bean-2);
}
.player-fallback-copy p {
  margin: 0 0 14px;
  color: #b8d4c6;
  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(4, 17, 13, 0.35);
  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: var(--radius);
  background: rgba(7, 21, 18, 0.88);
  border: 1px solid rgba(184, 224, 90, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.player-start-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-size: 26px;
  color: #0a1a10;
  background: linear-gradient(135deg, var(--bean-deep), var(--bean-2));
  box-shadow: 0 10px 28px rgba(184, 224, 90, 0.35);
}
.player-start-inner strong {
  font-family: var(--display);
  font-size: 16px;
  color: var(--bean-2);
}
.player-start-inner span {
  font-size: 12px;
  color: var(--muted);
}

.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(184, 224, 90, 0.16), 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: var(--radius);
  text-align: center;
  color: #e8f6ef;
  background: linear-gradient(160deg, rgba(16, 38, 31, 0.96), rgba(7, 21, 18, 0.94));
  border: 1px solid rgba(184, 224, 90, 0.4);
  box-shadow:
    0 0 0 1px rgba(212, 242, 138, 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(.98); }
  to { opacity: 1; transform: none; }
}
.gate-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #0a1a10;
  background: linear-gradient(135deg, var(--bean-deep), var(--bean-2));
  box-shadow: 0 10px 28px rgba(184, 224, 90, 0.35);
}
.gate-card h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--bean-2);
}
.gate-card p {
  margin: 0 0 18px;
  color: #b8d4c6;
  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: #a8c9b6;
  padding: 4px 10px;
  border-radius: var(--radius);
  background: rgba(184, 224, 90, 0.08);
  border: 1px solid rgba(184, 224, 90, 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(184, 224, 90, 0.25); }
  50% { box-shadow: 0 12px 36px rgba(212, 242, 138, 0.45); }
}

@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: minmax(0, 1fr) 170px; 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: var(--radius); }
  .shot .badge { padding: 4px 6px; font-size: 10px; }
  .shot .playhint { opacity: 1; width: 40px; height: 40px; font-size: 14px; }
  .shot h3, .more-grid b, .cap b { font-size: 13px; }
  .chips { top: 62px; padding-top: 6px; }
  .chip { padding: 8px 12px 10px; font-size: 13px; }
  .detail {
    grid-template-columns: minmax(120px, 38%) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }
  .poster-wrap { order: 0; box-shadow: 4px 4px 0 var(--bean-soft); }
  .detail-info { order: 0; }
  .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: var(--radius); aspect-ratio: 9 / 14; max-height: 72vh; }
  .gate-card { padding: 22px 18px 18px; }
  .gate-card h3 { font-size: 17px; }
  .gate-card p { font-size: 13px; margin-bottom: 14px; }
  .gate-card .btn { min-height: 44px; font-size: 15px; }
}
