:root {
  --bg: #10141b;
  --bg-deep: #0b0e13;
  --ink: #f6f1e8;
  --muted: #a89f92;
  --line: rgba(255, 244, 220, 0.12);
  --accent: #e7b15a;
  --accent-2: #ef6d4a;
  --card: #1a212c;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Segoe UI Semibold", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(231, 177, 90, 0.16), transparent 55%),
    radial-gradient(800px 380px at 100% 0%, rgba(239, 109, 74, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg), var(--bg-deep));
  min-height: 100vh;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(16, 20, 27, 0.82);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  flex: none;
}
.brand span { color: var(--accent); }

.site-nav {
  display: flex;
  gap: 0.35rem;
  overflow: auto;
  flex: 1;
}
.site-nav a {
  flex: none;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a.on {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255,255,255,0.04);
}

.search {
  display: flex;
  gap: 0.4rem;
  flex: none;
}
.search input {
  width: 180px;
  background: #121820;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
}
.search button {
  border: 0;
  background: var(--accent);
  color: #1a1408;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  font-weight: 700;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 1rem;
  padding: 1.4rem 0 0.4rem;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .search input { width: 120px; }
}

.feature {
  position: relative;
  min-height: 280px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #2a2118, #1b2430 55%, #24342e);
  box-shadow: var(--shadow);
  display: block;
}
.feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.feature .copy {
  position: relative;
  z-index: 1;
  padding: 1.6rem;
  max-width: 34rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.kicker {
  color: var(--accent);
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  text-transform: uppercase;
}
.feature h1 {
  margin: 0.35rem 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
}
.feature p { margin: 0; color: #efe6d8; line-height: 1.55; }
.feature .go {
  margin-top: 0.9rem;
  align-self: flex-start;
  background: var(--accent);
  color: #1a1408;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 700;
}

.side-picks {
  display: grid;
  gap: 0.7rem;
}
.pick {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.7rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  min-height: 86px;
}
.pick .thumb {
  background: linear-gradient(160deg, #3a3328, #243028);
  min-height: 86px;
}
.pick .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pick .txt { padding: 0.65rem 0.7rem 0.65rem 0; }
.pick strong { display: block; line-height: 1.35; }
.pick span { color: var(--muted); font-size: 0.82rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin: 1rem 0 0.2rem;
}
.stats div {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 1rem;
}
.stats b { display: block; font-size: 1.35rem; color: var(--accent); }
.stats span { color: var(--muted); font-size: 0.85rem; }

.section { padding: 1.3rem 0 0.4rem; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.section-head h2 { margin: 0; font-size: 1.25rem; }
.more { color: var(--accent); font-size: 0.92rem; }

.enter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.8rem;
}
.enter-card {
  display: flex;
  flex-direction: column;
  min-height: 148px;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(255,255,255,0.06), transparent 40%),
    var(--tone, #243028);
  box-shadow: var(--shadow);
  transition: transform 0.16s ease;
}
.enter-card:hover { transform: translateY(-3px); }
.enter-card .parent { color: rgba(255,255,255,0.72); font-size: 0.8rem; }
.enter-card .name { font-size: 1.35rem; font-weight: 700; margin: 0.35rem 0 auto; }
.enter-card .foot {
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,0.86);
  font-size: 0.88rem;
}
.tone-0 { --tone: #3d2a22; }
.tone-1 { --tone: #24362f; }
.tone-2 { --tone: #2a2740; }
.tone-3 { --tone: #3a2d1c; }
.tone-4 { --tone: #1f3340; }
.tone-5 { --tone: #3a2430; }

.board {
  margin: 0.4rem 0 1.2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,0.02);
}
.subcats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}
.subcats a {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #121820;
  border: 1px solid var(--line);
}
.subcats a.on,
.subcats a:hover { border-color: var(--accent); color: var(--accent); }

.row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(148px, 16%);
  gap: 0.8rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.9rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.16s ease;
}
.card:hover { transform: translateY(-3px); }
.cover {
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #3a3328, #243028);
  position: relative;
  overflow: hidden;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover .ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.08em;
}
.meta { padding: 0.7rem 0.75rem 0.85rem; }
.meta h3 {
  margin: 0 0 0.3rem;
  font-size: 0.96rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.meta .sub { color: var(--muted); font-size: 0.8rem; }

.crumb { color: var(--muted); font-size: 0.92rem; margin: 1rem 0 0.6rem; }
.crumb a { color: var(--accent); }

.page-title { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-lead { color: var(--muted); margin: 0.35rem 0 0; }

.player-shell {
  display: grid;
  grid-template-columns: 1.45fr 0.8fr;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 860px) {
  .player-shell, .stats { grid-template-columns: 1fr; }
}
.player-box {
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
}
.player-box video { width: 100%; height: 100%; background: #000; }
.side {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
}
.side h1 { margin: 0 0 0.35rem; font-size: 1.35rem; line-height: 1.3; }
.side .desc {
  color: var(--muted);
  white-space: pre-wrap;
  line-height: 1.55;
  max-height: 8rem;
  overflow: auto;
}
.eps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 0.4rem;
  max-height: 280px;
  overflow: auto;
}
.ep {
  border: 1px solid var(--line);
  background: #121820;
  color: var(--ink);
  border-radius: 10px;
  padding: 0.5rem 0.2rem;
  cursor: pointer;
}
.ep.active { background: var(--accent); color: #1a1408; border-color: var(--accent); }

.empty {
  padding: 1.6rem 1rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 16px;
}
.footer {
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  text-align: center;
  font-size: 0.85rem;
}

.top { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.nav-links { display: flex; gap: 0.8rem; color: var(--muted); }

.ep-badge {
  position: absolute;
  left: 0.45rem;
  bottom: 0.45rem;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
}

.ad-carousel {
  position: relative;
  margin: 1rem 0 0.6rem;
  height: 210px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(120deg, #3a2a18, #1c2834 55%, #24362f);
  box-shadow: var(--shadow);
}
.ad-slide {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.ad-slide.on { display: flex; }
.ad-slide img { width: 100%; height: 100%; object-fit: cover; }
a.ad-slide, a.ad-bar, a.ad-cell, a.logo-ad { cursor: pointer; }
.ad-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  color: #fff;
  cursor: pointer;
  z-index: 2;
}
.ad-nav.prev { left: 10px; }
.ad-nav.next { right: 10px; }
.ad-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.ad-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.45);
  padding: 0;
  cursor: pointer;
}
.ad-dots button.on { background: var(--accent); }

.ad-bars { display: grid; gap: 0.6rem; margin: 0.8rem 0; }
.ad-bar {
  min-height: 72px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #2a241c, #1b2830);
  color: #f6f1e8;
  font-weight: 700;
  border: 1px solid var(--line);
}
.ad-bar a, .ad-bar img { width: 100%; height: 100%; }
.ad-bar img { object-fit: cover; max-height: 96px; display: block; }

.vrows { display: grid; gap: 0.8rem; }
.vrow {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 0.8rem;
}
.ad-cell {
  border-radius: 16px;
  overflow: hidden;
  min-height: 100%;
  background: linear-gradient(160deg, #4a3420, #1e2c34);
  border: 1px solid rgba(231, 177, 90, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  text-align: center;
  padding: 0.6rem;
}
.ad-cell img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }

.cat-links { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.4rem 0 0.2rem; }
.cat-links a {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.cat-links a.on, .cat-links a:hover { color: var(--ink); border-color: var(--accent); }

@media (max-width: 640px) {
  .ad-carousel { height: 140px; }
  .ad-slide { font-size: 1.15rem; }
}

.logo-row {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr));
  gap: 0.7rem 0.45rem;
  margin: 0.9rem 0;
}
.logo-row.compact {
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  max-height: 280px;
  overflow: auto;
  margin-top: 0.8rem;
}
@media (max-width: 720px) {
  .logo-row:not(.compact) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
.logo-ad { display: block; width: 100%; text-align: center; color: inherit; }
.logo-ad .mark {
  width: min(100%, 56px);
  height: 56px;
  aspect-ratio: auto;
  margin: 0 auto 0.3rem;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, #3a2a22, #243044);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}
.logo-row.compact .mark { width: 64px; height: 64px; aspect-ratio: auto; }
.logo-row.fill {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.85rem 0.7rem;
}
.logo-row.fill .mark {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 16px;
  font-size: 1.7rem;
}
@media (max-width: 900px) {
  .logo-row.fill { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.logo-row.mid .mark {
  width: min(100%, 96px);
  height: 96px;
  border-radius: 18px;
  font-size: 1.55rem;
}
@media (max-width: 720px) {
  .logo-row.mid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.logo-ad img { width: 100%; height: 100%; object-fit: cover; }
.recommend {
  display: grid;
  grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr));
  gap: 0.8rem;
}
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0.8rem 0 0.2rem;
}
.pager button {
  border: 1px solid var(--line);
  background: #121820;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}
.pager button.on { background: var(--accent); color: #1a1408; border-color: var(--accent); }
.pager button:disabled { opacity: 0.4; cursor: default; }
.pager span { color: var(--muted); font-size: 0.85rem; margin-left: 0.3rem; }
.logo-ad strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.3;
}
.logo-ad span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.3;
}
.synopsis {
  margin: 0.4rem 0 0.2rem;
  padding: 0.9rem 0 0.2rem;
  border-top: 1px solid var(--line);
}
.synopsis h2 { margin: 0 0 0.45rem; font-size: 1.05rem; }
.synopsis p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  white-space: pre-wrap;
}
