
:root {
  --bg-deep: #090713;
  --bg-panel: rgba(28, 17, 52, 0.82);
  --bg-panel-strong: rgba(43, 25, 78, 0.92);
  --grape-950: #12091f;
  --grape-900: #24103f;
  --grape-800: #35125d;
  --grape-700: #4c1d95;
  --grape-500: #8b5cf6;
  --grape-300: #c4b5fd;
  --gold-500: #f59e0b;
  --gold-300: #fcd34d;
  --text-main: #f7f3ff;
  --text-soft: #d8cffa;
  --text-muted: #a999cc;
  --line: rgba(196, 181, 253, 0.18);
  --shadow-glow: 0 24px 80px rgba(76, 29, 149, 0.38);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 12% 8%, rgba(139, 92, 246, 0.30), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(245, 158, 11, 0.18), transparent 26%),
    linear-gradient(135deg, var(--bg-deep) 0%, #160b2b 48%, #07050f 100%);
  min-height: 100vh;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background:
    linear-gradient(90deg, rgba(18, 9, 31, 0.96), rgba(45, 20, 81, 0.94), rgba(18, 9, 31, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(10, 4, 22, 0.44);
  backdrop-filter: blur(18px);
}

.header-inner,
.main-wrap,
.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold-300);
  background:
    radial-gradient(circle at 35% 25%, rgba(252, 211, 77, 0.36), transparent 35%),
    linear-gradient(135deg, var(--grape-700), var(--grape-900));
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.35);
  font-weight: 900;
}

.brand-text {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.03em;
  background: linear-gradient(90deg, var(--grape-300), var(--gold-300), var(--grape-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-links a {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--text-soft);
  font-weight: 700;
  transition: all 0.22s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-300);
  background: rgba(139, 92, 246, 0.18);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.14);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  font-size: 24px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 7, 19, 0.98) 0%, rgba(20, 10, 36, 0.76) 48%, rgba(9, 7, 19, 0.58) 100%),
    radial-gradient(circle at 80% 12%, rgba(245, 158, 11, 0.24), transparent 28%);
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.75s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.08);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: 40px;
  padding: 78px 0;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-300);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-shadow: 0 14px 42px rgba(0, 0, 0, 0.58);
}

.hero h2 {
  margin: 22px 0 0;
  font-size: clamp(22px, 3vw, 38px);
  color: var(--gold-300);
}

.hero p {
  margin: 22px 0 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  transition: all 0.22s ease;
}

.btn-primary {
  color: #210b1e;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.30);
}

.btn-ghost {
  color: var(--text-main);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-panel {
  background: rgba(30, 16, 54, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(18px);
}

.hero-panel h3 {
  margin: 0 0 16px;
  color: var(--grape-300);
  font-size: 22px;
}

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

.hero-mini {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  transition: all 0.22s ease;
}

.hero-mini:hover {
  transform: translateX(4px);
  background: rgba(139, 92, 246, 0.18);
}

.hero-mini img {
  width: 68px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
}

.hero-mini strong {
  display: block;
  margin-bottom: 6px;
}

.hero-mini span {
  color: var(--text-muted);
  font-size: 13px;
}

.main-wrap {
  padding: 54px 0 70px;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
}

.section-more {
  color: var(--gold-300);
  font-weight: 900;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 54px;
}

.category-tile {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(76, 29, 149, 0.30), rgba(20, 10, 36, 0.86));
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.25);
  transition: all 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(252, 211, 77, 0.42);
}

.category-tile strong {
  font-size: 20px;
}

.category-tile span {
  color: var(--text-muted);
  line-height: 1.6;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.27);
  transition: all 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(252, 211, 77, 0.34);
  box-shadow: 0 26px 64px rgba(76, 29, 149, 0.32);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.movie-card:hover .poster img {
  transform: scale(1.06);
}

.score {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 6px 10px;
  color: #251004;
  background: var(--gold-300);
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.card-body h3 {
  margin: 12px 0 10px;
  font-size: 20px;
  line-height: 1.35;
}

.card-body h3 a:hover,
.rank-copy h3 a:hover,
.text-link:hover {
  color: var(--gold-300);
}

.card-body p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span {
  color: var(--grape-300);
  font-size: 12px;
  padding: 5px 9px;
  border: 1px solid rgba(196, 181, 253, 0.24);
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.10);
}

.rank-list {
  display: grid;
  gap: 16px;
}

.rank-item {
  display: grid;
  grid-template-columns: 92px 70px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(30, 16, 54, 0.72);
  transition: all 0.22s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: rgba(252, 211, 77, 0.34);
}

.rank-cover img {
  width: 92px;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-number {
  color: var(--gold-300);
  font-size: 36px;
  font-weight: 900;
}

.rank-copy h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rank-copy p {
  margin: 0 0 12px;
  color: var(--text-soft);
  line-height: 1.75;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 14px;
  margin: 0 0 28px;
}

.search-input,
.year-filter {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.search-input:focus,
.year-filter:focus {
  border-color: rgba(252, 211, 77, 0.48);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.10);
}

.year-filter option {
  background: var(--grape-950);
}

.page-hero {
  padding: 54px 0 10px;
}

.page-hero-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 54px);
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(76, 29, 149, 0.32), rgba(15, 8, 28, 0.92));
  box-shadow: var(--shadow-glow);
}

.page-hero h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
}

.page-hero p,
.detail-title p {
  max-width: 780px;
  color: var(--text-soft);
  line-height: 1.85;
  font-size: 18px;
}

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

.detail-card,
.side-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  box-shadow: var(--shadow-glow);
  overflow: hidden;
}

.detail-body {
  padding: clamp(22px, 4vw, 36px);
}

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

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(9, 7, 19, 0.10), rgba(9, 7, 19, 0.56));
  z-index: 3;
}

.play-cover.is-hidden {
  display: none;
}

.play-button {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  color: #201000;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.40);
}

.detail-info {
  display: grid;
  gap: 26px;
}

.detail-info h2 {
  margin: 0 0 12px;
  font-size: 26px;
  color: var(--gold-300);
}

.detail-info p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.9;
  font-size: 17px;
}

.side-card {
  padding: 18px;
}

.side-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.side-list {
  display: grid;
  gap: 14px;
}

.side-link {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.side-link:hover {
  background: rgba(139, 92, 246, 0.18);
}

.side-link img {
  width: 66px;
  height: 86px;
  object-fit: cover;
  border-radius: 12px;
}

.side-link strong {
  display: block;
  margin-bottom: 6px;
}

.side-link span {
  color: var(--text-muted);
  font-size: 13px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(9, 7, 19, 0.72);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0;
  color: var(--text-muted);
}

.footer-inner strong {
  color: var(--text-main);
  font-size: 20px;
}

.footer-links {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-links a:hover {
  color: var(--gold-300);
}

@media (max-width: 1024px) {
  .hero-content,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 66px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(18, 9, 31, 0.96);
    box-shadow: var(--shadow-glow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 52px 0;
  }

  .hero-panel {
    padding: 18px;
  }

  .category-grid,
  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 74px 52px 1fr;
    gap: 12px;
  }

  .rank-cover img {
    width: 74px;
    height: 96px;
  }

  .rank-number {
    font-size: 26px;
  }

  .footer-inner,
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .brand-text {
    font-size: 18px;
  }

  .category-grid,
  .movie-grid {
    grid-template-columns: 1fr;
  }

  .hero-mini {
    grid-template-columns: 58px 1fr;
  }

  .hero-mini img {
    width: 58px;
    height: 76px;
  }
}
