:root {
  --bg: #f8fafc;
  --text: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --white: #ffffff;
  --blue: #2563eb;
  --blue-dark: #1e3a8a;
  --teal: #0d9488;
  --orange: #f97316;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 45%, #ecfeff 100%);
  line-height: 1.6;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.logo__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.28);
}

.logo__text {
  font-size: 22px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 9px 13px;
  color: #334155;
  border-radius: 999px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  color: var(--blue);
  background: #eff6ff;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #eff6ff;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--blue-dark);
}

.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, #1e3a8a 0%, #1d4ed8 50%, #0d9488 100%);
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero__slide.is-active {
  opacity: 1;
}

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

.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 24%, rgba(45, 212, 191, 0.3), transparent 32%), linear-gradient(90deg, rgba(15, 23, 42, 0.82), rgba(30, 58, 138, 0.64) 46%, rgba(13, 148, 136, 0.36));
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 420px;
  gap: 46px;
  align-items: center;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero h1 {
  margin: 22px 0 18px;
  max-width: 780px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
}

.hero__actions,
.card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
}

.btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.hero-panel {
  padding: 24px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.26);
  backdrop-filter: blur(18px);
}

.hero-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

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

.hero-pick {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.13);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-pick:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateX(4px);
}

.hero-pick img {
  height: 112px;
  border-radius: 14px;
  object-fit: cover;
}

.hero-pick strong {
  display: block;
  font-size: 16px;
  line-height: 1.35;
}

.hero-pick span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 4;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 38px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.hero-dots button.is-active {
  background: #fff;
}

.page-main {
  padding: 54px 0 72px;
}

.section {
  margin-bottom: 64px;
}

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

.eyebrow {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--blue);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-heading h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.section-link {
  color: var(--blue);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.movie-card__poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #ccfbf1);
}

.movie-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.movie-card__play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  color: #fff;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.92);
  font-size: 13px;
  font-weight: 900;
}

.movie-card__body {
  padding: 16px;
}

.movie-card__meta,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

.movie-card h3 a:hover {
  color: var(--blue);
}

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-list span {
  padding: 5px 9px;
  color: #1e40af;
  border-radius: 999px;
  background: #eff6ff;
  font-size: 12px;
  font-weight: 800;
}

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

.category-card {
  min-height: 168px;
  padding: 22px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue), var(--teal));
  box-shadow: var(--shadow);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
}

.page-title {
  padding: 56px 0 24px;
}

.page-title p {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

.detail-hero {
  padding: 46px 0 32px;
  color: #fff;
  background: linear-gradient(120deg, rgba(30, 58, 138, 0.96), rgba(13, 148, 136, 0.88));
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 26px 64px rgba(15, 23, 42, 0.3);
}

.detail-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-content h1 {
  margin: 16px 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.detail-content p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.detail-content .tag-list span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: var(--shadow);
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18), rgba(2, 6, 23, 0.68));
  cursor: pointer;
}

.play-cover span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.3);
  font-size: 22px;
  font-weight: 900;
}

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

.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  margin-top: 32px;
}

.content-card,
.side-card,
.rank-item,
.index-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-card p {
  color: #334155;
}

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

.side-list a {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.side-list a:hover {
  background: #eff6ff;
}

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

.side-list strong {
  display: block;
  line-height: 1.35;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 72px 110px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.rank-num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #fff;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--orange), var(--blue));
  font-size: 22px;
  font-weight: 900;
}

.rank-item img {
  height: 146px;
  border-radius: 16px;
  object-fit: cover;
}

.rank-item h2,
.rank-item h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rank-item p {
  margin: 0 0 10px;
  color: var(--muted);
}

.sitemap-list {
  columns: 4 220px;
  column-gap: 26px;
}

.sitemap-list a {
  display: block;
  break-inside: avoid;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  color: #334155;
}

.sitemap-list a:hover {
  color: var(--blue);
  background: #eff6ff;
}

.site-footer {
  padding: 42px 0;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo--footer .logo__text {
  color: #fff;
}

.site-footer p {
  max-width: 680px;
  margin: 14px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 800;
}

.footer-links a:hover {
  color: #fff;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    padding: 14px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__content,
  .detail-layout,
  .detail-body {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 560px;
  }

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

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

  .rank-item {
    grid-template-columns: 56px 92px 1fr;
  }

  .rank-item .btn {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    height: 64px;
  }

  .main-nav {
    top: 64px;
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 680px;
  }

  .hero__content {
    padding: 52px 0 72px;
  }

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

  .detail-poster {
    max-width: 280px;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .rank-item {
    grid-template-columns: 48px 82px 1fr;
    gap: 12px;
    padding: 16px;
  }

  .rank-item img {
    height: 118px;
  }
}
