:root {
  --bg: #070914;
  --panel: rgba(18, 24, 44, 0.86);
  --panel-strong: #12182c;
  --text: #f8fbff;
  --muted: #a7b1c7;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #ef4444;
  --accent-two: #f59e0b;
  --accent-three: #8b5cf6;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(239, 68, 68, 0.26), transparent 32rem),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.22), transparent 30rem),
    linear-gradient(180deg, #070914 0%, #0b1020 45%, #070914 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 64px);
  background: rgba(7, 9, 20, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-two));
  box-shadow: 0 12px 34px rgba(239, 68, 68, 0.35);
}

.brand-text {
  font-size: 22px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 16px;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 14px;
}

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

.hero {
  position: relative;
  min-height: clamp(620px, 80vh, 860px);
  overflow: hidden;
  margin: 22px auto 52px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: #0e1426;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.78fr);
  gap: clamp(22px, 5vw, 72px);
  align-items: center;
  padding: clamp(28px, 5vw, 72px);
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  filter: blur(16px) saturate(1.2);
  transform: scale(1.08);
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 20, 0.94), rgba(7, 9, 20, 0.62) 54%, rgba(7, 9, 20, 0.94)),
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.28), transparent 28rem),
    radial-gradient(circle at 70% 70%, rgba(239, 68, 68, 0.22), transparent 28rem);
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  color: #ffd7a1;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin: 22px 0 16px;
  max-width: 820px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 24px;
  color: #d6ddec;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.85;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  font-weight: 800;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-two));
  box-shadow: 0 16px 38px rgba(239, 68, 68, 0.32);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
}

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

.hero-poster-card {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.hero-poster-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, #1f2937, #111827);
}

.hero-poster-card figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 16px;
  background: rgba(7, 9, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  backdrop-filter: blur(14px);
}

.hero-dots {
  position: absolute;
  left: clamp(28px, 5vw, 72px);
  bottom: 30px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

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

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--accent), var(--accent-two));
}

.section {
  margin: 54px 0;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-link {
  flex: 0 0 auto;
  color: #ffd7a1;
  font-weight: 800;
}

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

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

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.36);
  background: rgba(25, 32, 56, 0.9);
}

.poster-shell {
  display: block;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1f2937, #111827 62%, #391a25);
}

.poster-shell::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.66));
}

.poster-shell img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.32s ease;
}

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

.card-body {
  padding: 18px;
}

.card-meta {
  color: #fbbf24;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.movie-card h3 {
  margin: 8px 0 10px;
  font-size: 19px;
  line-height: 1.35;
}

.movie-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

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

.tag-row span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #d8def0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 12px;
}

.quick-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 18px;
  margin: 28px 0 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.search-input {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  color: var(--text);
  background: rgba(7, 9, 20, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
}

.search-input:focus {
  border-color: rgba(245, 158, 11, 0.58);
}

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

.filter-btn {
  min-height: 38px;
  padding: 0 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.filter-btn.is-active,
.filter-btn:hover {
  color: var(--text);
  background: rgba(239, 68, 68, 0.22);
}

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

.category-card {
  min-height: 128px;
  padding: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 12rem),
    rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.34);
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 76px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.rank-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-three));
  border-radius: 14px;
}

.rank-item img {
  width: 76px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #1f2937, #111827);
}

.rank-item h3 {
  margin: 0 0 7px;
  font-size: 18px;
}

.rank-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.score {
  color: #ffd7a1;
  font-weight: 900;
}

.page-title {
  padding: 48px 0 12px;
}

.page-title h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.05em;
}

.page-title p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: center;
  padding: clamp(24px, 5vw, 58px);
  margin: 28px auto 42px;
  background:
    radial-gradient(circle at top right, rgba(239, 68, 68, 0.22), transparent 28rem),
    rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 28px;
  background: linear-gradient(135deg, #1f2937, #111827);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.35);
}

.detail-info h1 {
  margin: 18px 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.detail-info p {
  color: #dce3f4;
  font-size: 18px;
  line-height: 1.9;
}

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

.content-panel {
  padding: clamp(22px, 4vw, 38px);
  margin: 24px 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 28px;
}

.content-panel h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.content-panel p {
  margin: 0;
  color: #d4dbea;
  line-height: 2;
  font-size: 16px;
}

.player-panel {
  overflow: hidden;
  background: #05070f;
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.video-wrap {
  position: relative;
  background: #000;
}

.video-wrap video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at center, rgba(239, 68, 68, 0.16), transparent 18rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.66));
  cursor: pointer;
}

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

.play-btn {
  width: 82px;
  height: 82px;
  color: #fff;
  font-size: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-two));
  border: 0;
  border-radius: 50%;
  box-shadow: 0 18px 48px rgba(239, 68, 68, 0.45);
  cursor: pointer;
}

.player-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  color: var(--muted);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 34px 0 54px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.pagination .is-current {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-two));
}

.site-footer {
  width: min(1240px, calc(100% - 32px));
  margin: 72px auto 0;
  padding: 34px 0 44px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-brand {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.footer-links a {
  color: #ffd7a1;
}

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

  .hero {
    min-height: 900px;
  }

  .hero-poster-card {
    max-width: 360px;
  }

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

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: rgba(7, 9, 20, 0.94);
    border: 1px solid var(--line);
    border-radius: 20px;
  }

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

  .hero {
    min-height: 820px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 24px;
  }

  .hero-dots {
    left: 24px;
    bottom: 20px;
  }

  .section-head,
  .quick-panel,
  .rank-item,
  .player-caption {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .rank-item {
    grid-template-columns: 48px 68px minmax(0, 1fr);
  }

  .rank-item .score {
    grid-column: 3;
  }

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