:root {
  --bg: #0e1017;
  --panel: #171b25;
  --panel-2: #212737;
  --text: #f4f6fb;
  --muted: #aeb7c8;
  --line: rgba(244, 246, 251, 0.12);
  --blue: #6ba8ff;
  --amber: #ffbf69;
  --pink: #ff7ab6;
  --max: 1260px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(107, 168, 255, 0.14), transparent 24%),
    radial-gradient(circle at 88% 14%, rgba(255, 122, 182, 0.12), transparent 18%),
    linear-gradient(180deg, #0d1017, var(--bg));
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(14, 16, 23, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr minmax(220px, 320px);
  gap: 18px;
  align-items: center;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--amber));
  color: #10131a;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy small,
.nav a,
p,
small,
.section-copy,
.site-footer p,
.site-footer a,
.feature-copy small,
.spotlight-item small,
.row-card small,
.copy,
.hero-note span,
.rank-hero-card small,
.spotlight-card small {
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 18px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--amber);
}

.search input,
select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  background: #131722;
  color: var(--text);
  padding: 0 14px;
  outline: none;
}

.page,
.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero-stage {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 18px;
  margin: 24px 0 18px;
  padding: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(107, 168, 255, 0.08), rgba(255, 122, 182, 0.04)), var(--panel);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  filter: blur(20px);
}

.hero-backdrop img,
.stack-card img,
.feature-cover img,
.spotlight-item img,
.row-card img,
.detail-cover img,
.spotlight-card img,
.rank-hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content,
.hero-stack,
.content-block,
.ranking-block,
.panel,
.library-hero,
.detail-shell,
.watch-panel,
.site-footer {
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  min-width: 0;
}

.hero-kicker-row,
.hero-actions,
.hero-quick-tags,
.meta-row,
.tag-row,
.filters,
.quick-entry,
.spotlight-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-kicker-row {
  justify-content: space-between;
  align-items: center;
}

.hero-quick-tags span,
.meta-row strong,
.meta-row span,
.tag-row a,
.chip,
.quick-entry a,
.spotlight-stats div,
.hero-note,
.spotlight-card,
.ghost-cta {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.hero-quick-tags span,
.meta-row strong,
.meta-row span,
.tag-row a,
.chip,
.quick-entry a,
.spotlight-stats div,
.ghost-cta {
  padding: 8px 12px;
}

.hero-note {
  padding: 14px;
}

.meta-row strong,
.spotlight-stats strong,
.rank-item b,
.rank-hero-card em {
  color: var(--amber);
}

.eyebrow {
  color: var(--amber);
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  font-size: clamp(38px, 5vw, 62px);
}

h2 {
  font-size: 30px;
}

.hero-copy p,
.section-copy {
  max-width: 760px;
}

.hero-actions {
  margin-top: 18px;
}

.cta,
.ghost-cta {
  width: fit-content;
  font-weight: 900;
}

.cta {
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  color: #fff;
}

.ghost-cta:hover,
.quick-entry a:hover,
.chip.active {
  color: var(--amber);
  border-color: rgba(255, 191, 105, 0.32);
}

.hero-note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-note strong {
  display: block;
  font-size: 14px;
}

.hero-stack {
  display: grid;
  gap: 12px;
}

.stack-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border: 1px solid var(--line);
}

.stack-card::after,
.feature-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.8));
}

.stack-card span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 1;
  font-weight: 800;
}

.quick-entry {
  margin-bottom: 28px;
}

.quick-entry a,
.chip {
  color: var(--muted);
}

.section {
  margin: 38px 0;
}

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

.section-head a {
  color: var(--amber);
}

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

.spotlight-band,
.split-layout {
  display: grid;
  gap: 18px;
  align-items: start;
}

.spotlight-band {
  grid-template-columns: minmax(0, 1fr) 420px;
}

.split-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.spotlight-band,
.content-block,
.ranking-block,
.panel,
.library-hero,
.detail-shell,
.watch-panel,
.site-footer {
  border: 1px solid var(--line);
  background: rgba(23, 27, 37, 0.9);
}

.spotlight-band,
.content-block,
.ranking-block,
.library-hero,
.detail-shell,
.watch-panel,
.site-footer {
  padding: 20px;
}

.spotlight-stats {
  margin-top: 18px;
}

.spotlight-stats div {
  min-width: 120px;
}

.spotlight-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.spotlight-card,
.rank-hero-card {
  display: grid;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.spotlight-card {
  grid-template-columns: 72px 1fr;
  padding: 10px;
}

.spotlight-card img {
  width: 72px;
  aspect-ratio: 2 / 3;
}

.spotlight-card span,
.rank-hero-card span,
.spotlight-item span,
.row-card span {
  display: grid;
}

.spotlight-card strong,
.rank-hero-card strong,
.feature-copy a {
  font-weight: 800;
}

.spotlight-card:hover,
.rank-hero-card:hover {
  transform: translateY(-4px);
  border-color: rgba(107, 168, 255, 0.28);
}

.spotlight-item,
.row-card,
.rank-item {
  display: grid;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s ease;
}

.spotlight-item {
  grid-template-columns: 92px 1fr auto;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.spotlight-item img,
.row-card img {
  width: 92px;
  aspect-ratio: 2 / 3;
}

.spotlight-item em,
.feature-copy em,
.rank-item em {
  color: var(--blue);
  font-style: normal;
}

.spotlight-item:hover,
.row-card:hover,
.rank-item:hover {
  transform: translateX(6px);
}

.poster-row {
  display: grid;
  gap: 12px;
}

.row-card {
  grid-template-columns: 92px 1fr;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.ranking-block {
  display: grid;
  gap: 12px;
  align-self: start;
}

.rank-hero-card {
  grid-template-columns: 104px 1fr;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.rank-hero-card img {
  width: 104px;
  aspect-ratio: 2 / 3;
}

.rank-hero-card em {
  font-style: normal;
}

.rank-list {
  display: grid;
}

.rank-item {
  grid-template-columns: 36px 1fr auto;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

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

.panel {
  padding: 20px;
}

.feature-card {
  min-width: 0;
}

.feature-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-2);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.feature-cover span,
.feature-cover b,
.feature-cover i {
  position: absolute;
  z-index: 1;
}

.feature-cover span {
  top: 10px;
  left: 10px;
  color: var(--amber);
  font-size: 12px;
}

.feature-cover b {
  top: 10px;
  right: 10px;
  color: #fff;
}

.feature-cover i {
  left: 12px;
  bottom: 10px;
  color: #fff;
  font-style: normal;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.feature-card:hover .feature-cover {
  transform: translateY(-8px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.feature-card:hover .feature-cover i {
  opacity: 1;
  transform: translateY(0);
}

.feature-copy {
  display: grid;
  gap: 2px;
  padding-top: 10px;
}

.library-hero {
  margin-bottom: 18px;
}

.filters {
  margin-bottom: 18px;
}

.chip {
  cursor: pointer;
}

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

.toolbar select {
  width: 160px;
}

.detail-shell {
  margin-bottom: 18px;
}

.detail-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
}

.detail-cover {
  overflow: hidden;
  background: var(--panel-2);
}

.watch-panel {
  margin-bottom: 34px;
}

.screen {
  display: grid;
  place-items: center;
  min-height: 360px;
  border: 1px solid var(--line);
  background: radial-gradient(circle at center, rgba(107, 168, 255, 0.14), transparent 36%), #151923;
}

.screen span {
  color: var(--amber);
}

.screen strong {
  font-size: 42px;
}

.episode-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.episode-list button {
  border: 1px solid var(--line);
  background: #181d28;
  color: var(--text);
  padding: 10px 14px;
}

.site-footer {
  margin: 0 auto 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.85fr 1fr;
  gap: 24px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.copy {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

@media (max-width: 1180px) {
  .header-inner,
  .hero-stage,
  .spotlight-band,
  .split-layout,
  .detail-card,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-note-grid,
  .spotlight-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-grid,
  .library-grid,
  .series-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page,
  .site-footer,
  .header-inner {
    width: min(100% - 24px, var(--max));
  }

  .header-inner {
    grid-template-columns: 1fr;
    padding-left: 0;
    padding-right: 0;
  }

  .nav {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-kicker-row,
  .section-head,
  .toolbar {
    flex-direction: column;
    align-items: start;
  }

  .hero-note-grid,
  .spotlight-board,
  .featured-grid,
  .library-grid,
  .series-grid,
  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spotlight-item,
  .rank-hero-card {
    grid-template-columns: 72px 1fr;
  }
}
