:root {
  --archive-50: #f5f7fa;
  --archive-100: #eaeff5;
  --archive-200: #d0dae8;
  --archive-300: #a8bdd4;
  --archive-400: #7a9cbc;
  --archive-500: #5a7fa5;
  --archive-600: #46678a;
  --archive-700: #395370;
  --archive-800: #2f445d;
  --archive-900: #2a3b4e;
  --paper: #ffffff;
  --ink: #182432;
  --muted: #667890;
  --shadow: 0 18px 45px rgba(42, 59, 78, 0.16);
  --soft-shadow: 0 10px 25px rgba(42, 59, 78, 0.10);
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 45%, #f8fafc 100%);
  -webkit-font-smoothing: antialiased;
}

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(168, 189, 212, 0.32);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(1200px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--archive-900), var(--archive-600));
  box-shadow: 0 12px 24px rgba(70, 103, 138, 0.25);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  color: var(--archive-900);
  font-size: 20px;
  line-height: 1;
}

.brand-text em {
  color: var(--archive-600);
  font-size: 12px;
  font-style: normal;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link,
.nav-button {
  color: var(--archive-700);
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-button:hover {
  color: var(--archive-900);
}

.nav-button {
  border: 0;
  background: transparent;
  padding: 0;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: -18px;
  width: 210px;
  padding: 10px;
  display: grid;
  gap: 4px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(168, 189, 212, 0.35);
  border-radius: 18px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.2s ease;
}

.dropdown-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--archive-700);
}

.dropdown-panel a:hover {
  color: var(--archive-900);
  background: var(--archive-50);
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--archive-100);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 18px;
  height: 2px;
  background: var(--archive-800);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--soft-shadow);
}

.mobile-nav a {
  display: block;
  padding: 12px 10px;
  color: var(--archive-700);
  border-radius: 12px;
}

.mobile-nav a:hover {
  background: var(--archive-50);
}

.mobile-nav.is-open {
  display: block;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--archive-900);
}

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

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

.hero-slide__image {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-slide__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(122, 156, 188, 0.32), transparent 35%), linear-gradient(90deg, rgba(42, 59, 78, 0.92) 0%, rgba(42, 59, 78, 0.68) 46%, rgba(42, 59, 78, 0.14) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  align-content: center;
  max-width: 1200px;
}

.hero-copy {
  max-width: 680px;
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  color: var(--archive-100);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p {
  margin: 20px 0 0;
  color: var(--archive-100);
  font-size: 18px;
  line-height: 1.8;
}

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

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

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

.btn-primary {
  color: var(--archive-900);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  background: #fff;
}

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: var(--archive-100);
  background: rgba(255, 255, 255, 0.13);
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  width: min(1200px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-arrows,
.hero-dots {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  transition: background 0.2s ease;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 22px;
}

.hero-dot {
  width: 34px;
  height: 5px;
  border-radius: 999px;
  opacity: 0.62;
}

.hero-dot.is-active,
.hero-arrow:hover,
.hero-dot:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.9);
  color: var(--archive-900);
}

.main-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.section-block {
  margin-bottom: 72px;
}

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

.section-kicker {
  margin: 0 0 8px;
  color: var(--archive-500);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0;
  color: var(--archive-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

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

.section-more {
  flex: 0 0 auto;
  padding: 10px 16px;
  color: var(--archive-800);
  background: var(--paper);
  border: 1px solid rgba(168, 189, 212, 0.45);
  border-radius: 999px;
  box-shadow: var(--soft-shadow);
  font-weight: 700;
}

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

.movie-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(168, 189, 212, 0.32);
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--archive-800), var(--archive-500));
}

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

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

.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.72));
}

.movie-year,
.movie-play,
.rank-flag {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.movie-year {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.46);
}

.movie-play {
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.rank-flag {
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f7d47a, #9d6a20);
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 0;
  color: var(--archive-900);
  font-size: 18px;
  line-height: 1.35;
}

.movie-info h3 a:hover {
  color: var(--archive-600);
}

.movie-line {
  min-height: 46px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: var(--archive-600);
  font-size: 13px;
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-row span {
  color: var(--archive-700);
  background: var(--archive-100);
}

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

.category-card {
  min-height: 150px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  color: #fff;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 28%), linear-gradient(135deg, var(--archive-900), var(--archive-600));
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card strong {
  font-size: 22px;
}

.category-card span {
  color: var(--archive-100);
  line-height: 1.65;
}

.search-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(168, 189, 212, 0.35);
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
}

.search-panel input {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  outline: 0;
  color: var(--archive-900);
  background: var(--archive-50);
  border-radius: 16px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  background: var(--archive-900);
}

.page-hero__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.38;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(42, 59, 78, 0.96), rgba(42, 59, 78, 0.65), rgba(42, 59, 78, 0.24));
}

.page-hero__content {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  min-height: 360px;
  margin: 0 auto;
  display: grid;
  align-content: center;
  color: #fff;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--archive-100);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: #fff;
}

.page-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--archive-100);
  font-size: 18px;
  line-height: 1.8;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 92px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(168, 189, 212, 0.32);
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
}

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

.rank-thumb {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--archive-800), var(--archive-500));
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-row h3 {
  margin: 0;
  font-size: 20px;
  color: var(--archive-900);
}

.rank-row p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.rank-go {
  padding: 10px 15px;
  color: #fff;
  background: var(--archive-800);
  border-radius: 999px;
  font-weight: 800;
}

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

.player-card,
.detail-card,
.side-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(168, 189, 212, 0.32);
  border-radius: 26px;
  box-shadow: var(--soft-shadow);
}

.player-card {
  overflow: hidden;
}

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

.player-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.68));
  cursor: pointer;
}

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

.play-orb {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 50%;
  color: var(--archive-900);
  font-size: 34px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.26);
}

.player-title {
  padding: 20px 24px 24px;
}

.player-title h2 {
  margin: 0;
  color: var(--archive-900);
  font-size: 26px;
}

.player-title p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.detail-card {
  padding: 26px;
  margin-top: 22px;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 16px;
  color: var(--archive-900);
  font-size: 24px;
}

.detail-card p {
  color: #34475c;
  line-height: 1.9;
  margin: 0 0 18px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.info-item {
  padding: 13px 14px;
  border-radius: 16px;
  background: var(--archive-50);
}

.info-item span {
  display: block;
  color: var(--archive-500);
  font-size: 12px;
  font-weight: 800;
}

.info-item strong {
  display: block;
  margin-top: 4px;
  color: var(--archive-900);
}

.side-card {
  padding: 20px;
}

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

.side-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.side-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--archive-800), var(--archive-500));
}

.side-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-item h3 {
  margin: 0;
  color: var(--archive-900);
  font-size: 15px;
  line-height: 1.35;
}

.side-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.site-footer {
  color: var(--archive-100);
  background: var(--archive-900);
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 34px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.brand--footer .brand-text strong {
  color: #fff;
}

.brand--footer .brand-text em,
.footer-brand p,
.footer-links a,
.footer-bottom {
  color: var(--archive-300);
}

.footer-brand p {
  max-width: 430px;
  margin: 18px 0 0;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-links h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 17px;
}

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

.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(168, 189, 212, 0.16);
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 760px) {
  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .nav-shell {
    min-height: 68px;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .brand-text em {
    display: none;
  }

  .hero {
    height: 560px;
  }

  .hero-controls {
    align-items: end;
  }

  .hero h1 {
    font-size: 42px;
  }

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

  .movie-info {
    padding: 13px;
  }

  .movie-info h3 {
    font-size: 16px;
  }

  .section-head {
    display: grid;
  }

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

  .rank-row {
    grid-template-columns: 42px 72px minmax(0, 1fr);
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }
}
