:root {
  --bg: #0b1020;
  --bg-2: #11182f;
  --panel: rgba(13, 19, 39, 0.88);
  --panel-2: rgba(22, 30, 55, 0.94);
  --line: rgba(255,255,255,0.09);
  --line-2: rgba(255,255,255,0.14);
  --text: #edf2ff;
  --muted: #a8b3cf;
  --accent: #ff8a2b;
  --accent-2: #ffb56b;
  --shadow: 0 18px 48px rgba(0,0,0,0.35);
  --radius: 22px;
  --radius-sm: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255,138,43,0.16), transparent 25%),
    radial-gradient(circle at top right, rgba(81,134,255,0.12), transparent 28%),
    linear-gradient(180deg, #090e1d 0%, #0f1530 100%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
.container {
  width: min(1320px, calc(100vw - 28px));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(8, 12, 25, 0.72);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #ff5d5d 60%, #7b61ff);
  box-shadow: 0 10px 20px rgba(255, 138, 43, 0.25);
}
.brand-title {
  font-size: 1.08rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: .02em;
}
.brand-sub {
  margin-top: 4px;
  font-size: .78rem;
  color: var(--muted);
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a, .nav button, .chip, .btn, .ghost, .menu-link {
  border: 1px solid transparent;
  border-radius: 999px;
  transition: all .2s ease;
}
.nav a, .nav button {
  padding: 10px 14px;
  color: var(--muted);
  background: rgba(255,255,255,0.03);
  border-color: var(--line);
}
.nav a:hover, .nav button:hover, .chip:hover, .btn:hover, .ghost:hover, .menu-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 138, 43, 0.4);
  color: #fff;
}
.nav a.active { color: #fff; background: rgba(255,138,43,0.12); border-color: rgba(255,138,43,0.3); }
.mobile-toggle { display: none; }
.hero {
  padding: 28px 0 8px;
}
.hero-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  min-height: 520px;
  background: linear-gradient(135deg, rgba(255,138,43,0.18), rgba(12,18,38,0.95) 52%, rgba(40,20,60,0.65));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-visual {
  position: relative;
  min-height: 520px;
  isolation: isolate;
}
.hero-visual::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.74));
  z-index: 1;
}
.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.08) contrast(1.05) brightness(.75);
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 58px 54px 42px 42px;
  display: flex;
  flex-direction: column;
  justify-content: end;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  font-size: .86rem;
}
.hero-copy h1, .hero-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -.02em;
}
.hero-copy p {
  margin: 16px 0 0;
  color: rgba(237,242,255,0.9);
  max-width: 54ch;
  line-height: 1.8;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.badge, .meta-pill, .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #eef3ff;
  font-size: .84rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.btn, .ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  font-weight: 700;
}
.btn {
  background: linear-gradient(135deg, var(--accent), #ff5d5d);
  color: #fff;
  box-shadow: 0 12px 24px rgba(255, 138, 43, 0.24);
}
.ghost { background: rgba(255,255,255,0.06); color: #fff; border-color: var(--line); }
.hero-side {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 34%;
  padding: 26px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(8,12,25,0.2), rgba(8,12,25,0.92));
}
.hero-list {
  width: 100%;
  display: grid;
  gap: 12px;
}
.hero-mini {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
}
.hero-mini:hover { background: rgba(255,255,255,0.09); }
.hero-mini img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,138,43,.35), rgba(123,97,255,.35));
}
.hero-mini h3 { margin: 0 0 6px; font-size: 1rem; }
.hero-mini p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.hero-controls {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 3;
  display: flex;
  gap: 10px;
}
.dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(255,255,255,0.28);
  border: 0;
}
.dot.active { background: var(--accent); transform: scale(1.2); }
.section {
  padding: 24px 0 6px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 16px;
}
.section-title {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -.01em;
}
.section-sub { color: var(--muted); margin-top: 6px; line-height: 1.6; }
.section-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.searchbox {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(520px, 100%);
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
}
.searchbox input {
  width: 100%; border: 0; outline: none; background: transparent; color: #fff;
}
.searchbox input::placeholder { color: #8f9aba; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border-color: var(--line);
  color: var(--muted);
}
.chip.active { color: #fff; background: rgba(255,138,43,0.14); border-color: rgba(255,138,43,0.34); }
.grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.card {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20,28,52,0.98), rgba(12,17,33,0.98));
  box-shadow: 0 14px 34px rgba(0,0,0,0.22);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,138,43,0.35);
  box-shadow: 0 20px 44px rgba(0,0,0,0.34);
}
.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, rgba(255,138,43,0.24), rgba(70,92,182,0.16));
  overflow: hidden;
}
.poster img {
  width: 100%; height: 100%; object-fit: cover;
}
.poster .mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,.68));
}
.poster .corner {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(0,0,0,0.42); color: #fff;
  font-size: .76rem;
  border: 1px solid rgba(255,255,255,.12);
}
.poster .play-hint {
  position: absolute; inset: auto 14px 14px 14px;
  z-index: 2; display: flex; justify-content: space-between; align-items: end;
  gap: 10px;
}
.play-btn-small {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,138,43,0.92); color: #fff; font-weight: 900;
  box-shadow: 0 8px 18px rgba(255,138,43,0.25);
}
.card-body { padding: 14px 14px 16px; }
.card-title {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.35;
}
.card-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  color: var(--muted); font-size: .8rem;
}
.card-desc {
  margin: 10px 0 0;
  color: #cdd6ef;
  line-height: 1.65;
  font-size: .88rem;
}
.card-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin-top: 12px;
}
.link-more { color: #fff; font-weight: 700; }
.link-more span { color: var(--accent); }
.link-more:hover { color: var(--accent-2); }
.list-panel {
  border: 1px solid var(--line);
  background: rgba(10,15,29,0.82);
  border-radius: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.list-toolbar {
  padding: 18px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.list-toolbar .count { color: var(--muted); }
.table-like {
  display: grid;
  gap: 1px;
  background: var(--line);
}
.row {
  display: grid;
  grid-template-columns: 64px 1.1fr .8fr 1fr .9fr;
  gap: 0;
  background: rgba(10,15,29,0.96);
  align-items: center;
}
.row > div {
  padding: 14px 16px;
}
.row .rank-num { color: var(--accent); font-weight: 800; }
.row .row-title { font-weight: 700; }
.row .row-sub { color: var(--muted); font-size: .9rem; }
.row:hover { background: rgba(255,255,255,0.04); }
.page-hero {
  padding: 24px 0 4px;
}
.page-hero-box {
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,138,43,0.16), rgba(17,24,47,0.96));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 26px;
}
.page-hero-box h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  letter-spacing: -.02em;
}
.page-hero-box p { margin: 10px 0 0; color: #d2dbf5; line-height: 1.75; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .92rem; }
.detail-wrap {
  padding: 28px 0 8px;
}
.detail-hero {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  align-items: start;
}
.detail-poster {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255,138,43,0.2), rgba(123,97,255,0.16));
  box-shadow: var(--shadow);
}
.detail-poster .poster { aspect-ratio: 2 / 3.15; }
.detail-panel {
  border-radius: 26px;
  border: 1px solid var(--line);
  background: rgba(10,15,29,0.8);
  box-shadow: var(--shadow);
  padding: 24px;
}
.detail-panel h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
}
.detail-panel .lead { color: #dbe4ff; margin: 14px 0 0; line-height: 1.8; }
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.info-box {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
}
.info-label { color: var(--muted); font-size: .82rem; margin-bottom: 6px; }
.info-value { font-weight: 700; }
.detail-content {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 20px;
}
.box {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(10,15,29,0.8);
  box-shadow: var(--shadow);
  padding: 22px;
}
.box h2 { margin: 0 0 14px; font-size: 1.25rem; }
.box p { margin: 0; color: #d1d9f2; line-height: 1.85; }
.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  border: 1px solid rgba(255,255,255,.08);
}
.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.34));
  border: 0;
  color: #fff;
  cursor: pointer;
}
.play-overlay .circle {
  width: 92px; height: 92px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,138,43,0.95);
  box-shadow: 0 18px 36px rgba(255,138,43,0.25);
  font-size: 2rem;
}
.play-overlay.hidden { opacity: 0; pointer-events: none; }
.relations {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.footer {
  margin-top: 34px;
  padding: 24px 0 36px;
  color: var(--muted);
}
.footer-inner {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.footer small { line-height: 1.7; }
.hidden { display: none !important; }
.empty-state {
  padding: 32px 18px;
  text-align: center;
  color: var(--muted);
}
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-slide { grid-template-columns: 1fr; }
  .hero-side { position: absolute; left: 0; right: 0; bottom: 0; top: auto; width: auto; padding: 18px 22px 22px; }
  .hero-visual { min-height: 520px; }
  .detail-hero, .detail-content { grid-template-columns: 1fr; }
  .relations { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .row { grid-template-columns: 56px 1.3fr .85fr 1fr .8fr; }
}
@media (max-width: 760px) {
  .container { width: min(100vw - 16px, 100%); }
  .header-inner { flex-wrap: wrap; }
  .mobile-toggle { display: inline-flex; }
  .nav { display: none; width: 100%; justify-content: flex-start; }
  .nav.open { display: flex; }
  .hero-shell { min-height: 640px; border-radius: 22px; }
  .hero-copy { padding: 40px 20px 160px; }
  .hero-visual { min-height: 640px; }
  .hero-side { width: 100%; }
  .grid, .relations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .list-toolbar { align-items: flex-start; }
  .row { grid-template-columns: 46px 1fr; }
  .row > div:nth-child(3), .row > div:nth-child(4), .row > div:nth-child(5) { display: none; }
}
