
:root {
  --bg: #08110d;
  --bg-2: #0d1712;
  --panel: rgba(15, 24, 19, 0.88);
  --panel-strong: rgba(18, 28, 22, 0.98);
  --line: rgba(154, 196, 160, 0.16);
  --line-2: rgba(255, 255, 255, 0.08);
  --text: #ecfff4;
  --muted: #a9b8ae;
  --accent: #44d18f;
  --accent-2: #68f3a9;
  --accent-deep: #1dbd76;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  --radius: 22px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(68, 209, 143, 0.10), transparent 28%),
    radial-gradient(circle at top right, rgba(104, 243, 169, 0.08), transparent 22%),
    linear-gradient(180deg, #08110d 0%, #0a1410 40%, #07100c 100%);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

.site-shell {
  position: relative;
  overflow-x: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(20px);
  background: rgba(7, 14, 11, 0.62);
  border-bottom: 1px solid var(--line-2);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #06110c;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 10px 30px rgba(68, 209, 143, 0.30);
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links a,
.nav-links button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links button:hover,
.nav-links a.active,
.nav-links button.active {
  background: rgba(68, 209, 143, 0.12);
  border-color: rgba(68, 209, 143, 0.26);
  color: var(--accent-2);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  padding: 24px 0 42px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(20, 31, 25, 0.92), rgba(11, 18, 14, 0.96));
  box-shadow: var(--shadow);
}

.hero-slider {
  position: relative;
  min-height: 640px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-media {
  position: relative;
  min-height: 640px;
  background-size: cover;
  background-position: center;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,17,13,0.15), rgba(8,17,13,0.55) 48%, rgba(8,17,13,0.88)),
    linear-gradient(180deg, rgba(8,17,13,0.06), rgba(8,17,13,0.62));
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 48px 44px 56px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(68, 209, 143, 0.12);
  color: var(--accent-2);
  border: 1px solid rgba(68, 209, 143, 0.20);
  margin-bottom: 18px;
  font-size: 13px;
}

.hero-title {
  font-size: clamp(32px, 4vw, 62px);
  line-height: 1.08;
  margin: 0 0 16px;
  letter-spacing: 0.3px;
}

.hero-desc {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  max-width: 56ch;
  margin-bottom: 22px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: #d7eadf;
  background: rgba(255,255,255,0.03);
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  transition: 0.24s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(68, 209, 143, 0.32);
  background: rgba(68, 209, 143, 0.10);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent-deep));
  color: #06110c;
  border: 0;
  font-weight: 800;
}

.btn.primary:hover {
  background: linear-gradient(135deg, #7ef7b7, #25c47d);
}

.quick-search {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  max-width: 680px;
}

.quick-search input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  min-width: 0;
}

.quick-search input::placeholder {
  color: #86988e;
}

.hero-aside {
  padding: 26px;
  background: linear-gradient(180deg, rgba(10,16,12,0.62), rgba(10,16,12,0.90));
  border-left: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.aside-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.03);
}

.section {
  padding: 8px 0 32px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-title {
  font-size: 24px;
  margin: 0;
}

.section-note {
  color: var(--muted);
  font-size: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(68, 209, 143, 0.30);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

.poster {
  aspect-ratio: 9 / 13;
  background: #102017 center/cover no-repeat;
  position: relative;
}

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.00) 35%, rgba(0,0,0,0.72) 100%);
}

.card-body {
  padding: 14px 14px 16px;
}

.card h3 {
  font-size: 15px;
  line-height: 1.45;
  margin: 0 0 8px;
}

.card .desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  min-height: 3.1em;
}

.card .meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #8eb39e;
  font-size: 12px;
  margin-top: 12px;
}

.card .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(7, 15, 11, 0.74);
  border: 1px solid rgba(255,255,255,0.10);
  color: #e7fff0;
  font-size: 12px;
}

.rank-list,
.category-list,
.link-grid {
  display: grid;
  gap: 14px;
}

.rank-item,
.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.03);
}

.rank-num {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(68, 209, 143, 0.14);
  color: var(--accent-2);
  font-weight: 800;
  flex: 0 0 auto;
}

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

.rank-main h4 {
  margin: 0 0 5px;
  font-size: 15px;
}

.rank-main p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.rank-meta {
  color: #85aa96;
  font-size: 12px;
  white-space: nowrap;
}

.page-hero {
  padding: 28px 0 14px;
}

.page-banner {
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(68,209,143,0.10), rgba(255,255,255,0.02));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #88a794;
  font-size: 13px;
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--accent-2);
}

.detail-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 20px;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.detail-poster .poster {
  min-height: 520px;
}

.detail-card {
  border-radius: 28px;
  border: 1px solid var(--line-2);
  background: rgba(13, 22, 17, 0.92);
  padding: 22px;
  box-shadow: var(--shadow);
}

.detail-title {
  font-size: clamp(28px, 3vw, 44px);
  margin: 0 0 12px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.info-box {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.03);
}

.info-box .label {
  color: #7ea08e;
  font-size: 12px;
  margin-bottom: 6px;
}

.info-box .value {
  font-size: 14px;
  line-height: 1.7;
}

.detail-copy {
  color: #e3f1e8;
  line-height: 1.9;
  font-size: 15px;
}

.player-shell {
  margin-top: 18px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #06100c;
}

.player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-2);
}

.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.38));
  pointer-events: none;
}

.play-button {
  pointer-events: auto;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  border: 0;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #08110d;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 18px 40px rgba(68, 209, 143, 0.35);
}

.subheading {
  margin: 28px 0 14px;
  font-size: 20px;
}

.footer {
  padding: 36px 0 50px;
  color: #7f9688;
  font-size: 13px;
}

.footer-box {
  border-top: 1px solid var(--line-2);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-2);
  color: var(--text);
  cursor: pointer;
  transition: .2s ease;
}

.filter-chip.active,
.filter-chip:hover {
  background: rgba(68, 209, 143, 0.12);
  border-color: rgba(68, 209, 143, 0.24);
  color: var(--accent-2);
}

.search-results {
  display: none;
  margin-top: 12px;
  max-height: 300px;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: rgba(8, 16, 12, 0.92);
}

.search-results.show {
  display: block;
}

.search-results a {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.search-results a:hover {
  background: rgba(255,255,255,0.03);
}

.search-results strong {
  display: block;
  margin-bottom: 4px;
}

.search-results small {
  color: var(--muted);
}

.hero-dots {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.26);
  cursor: pointer;
}

.hero-dot.active {
  width: 28px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

@media (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .hero-slide {
    grid-template-columns: 1fr;
  }
  .hero-media {
    min-height: 360px;
    order: 1;
  }
  .hero-copy {
    order: 2;
    padding: 28px;
  }
  .hero-slider {
    min-height: auto;
  }
  .hero-aside {
    border-left: 0;
    border-top: 1px solid var(--line-2);
  }
}

@media (max-width: 920px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-poster .poster {
    min-height: 360px;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
    width: 100%;
    padding-bottom: 12px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-wrap {
    flex-wrap: wrap;
  }
  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, 1280px);
  }
  .hero-copy,
  .page-banner,
  .detail-card {
    padding: 18px;
  }
  .hero-media {
    min-height: 300px;
  }
  .section-title {
    font-size: 20px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .hero-actions,
  .meta-row,
  .detail-meta,
  .filter-bar {
    gap: 8px;
  }
  .btn,
  .nav-links a,
  .nav-links button,
  .filter-chip {
    width: 100%;
    justify-content: center;
  }
  .quick-search {
    flex-direction: column;
    align-items: stretch;
  }
}
