:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --amber-400: #f59e0b;
  --green-500: #22c55e;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --hero-image: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(37, 99, 235, 0.24));
}

* {
  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(--slate-900);
  background: var(--slate-50);
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--slate-900);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), #60a5fa);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--slate-600);
  font-weight: 650;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue-600);
  background: var(--blue-100);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--slate-100);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: var(--slate-800);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 10%, rgba(59, 130, 246, 0.32), transparent 30%),
    radial-gradient(circle at 82% 20%, rgba(245, 158, 11, 0.22), transparent 28%),
    linear-gradient(135deg, #020617 0%, #0f172a 52%, #1e293b 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.26;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 64%, var(--slate-50) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  gap: 48px;
  align-items: center;
  min-height: 680px;
  padding: 72px 0 96px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(14px);
  font-size: 14px;
  font-weight: 700;
}

.section-kicker {
  color: var(--blue-600);
  border-color: rgba(37, 99, 235, 0.12);
  background: var(--blue-100);
}

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

.hero-lead {
  max-width: 700px;
  margin: 0 0 18px;
  color: var(--slate-300);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.65;
}

.hero-sub {
  max-width: 640px;
  color: #94a3b8;
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

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

.btn-primary {
  color: var(--white);
  background: var(--blue-600);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.32);
}

.btn-primary:hover {
  background: var(--blue-700);
}

.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  max-width: 620px;
  margin-top: 30px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.hero-search input {
  width: 100%;
  min-height: 46px;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  padding: 0 14px;
}

.hero-search input::placeholder {
  color: #cbd5e1;
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.hero-slide {
  display: none;
}

.hero-slide.active {
  display: block;
}

.hero-poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(2, 6, 23, 0.88));
}

.hero-slide-body {
  padding: 24px;
}

.hero-slide h2 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.25;
}

.hero-slide p {
  margin: 0;
  color: var(--slate-300);
  line-height: 1.7;
}

.hero-slide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.hero-slide-meta span,
.tag-row span,
.detail-tags span,
.breadcrumb a,
.breadcrumb span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-slide-meta span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.hero-dots {
  display: flex;
  gap: 8px;
  padding: 0 24px 24px;
}

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

.hero-dot.active {
  width: 28px;
  background: var(--blue-500);
}

main {
  display: block;
}

.page-section {
  padding: 72px 0;
}

.page-section.alt {
  background: var(--white);
}

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

.section-head h1,
.section-head h2,
.page-title h1 {
  margin: 10px 0 10px;
  color: var(--slate-900);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-head p,
.page-title p {
  max-width: 760px;
  margin: 0;
  color: var(--slate-600);
  font-size: 17px;
  line-height: 1.75;
}

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

.feature-card,
.category-tile,
.info-box,
.filter-panel,
.detail-card,
.related-block,
.rank-item,
.text-panel {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.feature-card {
  padding: 28px;
  transition: 0.24s ease;
}

.feature-card:hover,
.category-tile:hover,
.movie-card:hover,
.rank-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 16px;
  color: var(--blue-600);
  background: var(--blue-100);
  font-size: 22px;
}

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

.feature-card p,
.category-tile p,
.text-panel p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.75;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  padding: 28px;
  min-height: 188px;
  transition: 0.24s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -36px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(96, 165, 250, 0.06));
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: 0.24s ease;
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(2, 6, 23, 0.44);
  transition: 0.24s ease;
}

.movie-card:hover .poster-wrap::after {
  opacity: 1;
}

.play-badge {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(37, 99, 235, 0.9);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: 0.24s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.year-badge,
.type-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 8px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.year-badge {
  left: 12px;
  background: rgba(2, 6, 23, 0.68);
}

.type-badge {
  right: 12px;
  background: var(--blue-600);
}

.movie-card-body {
  padding: 18px;
}

.movie-title {
  display: block;
  min-height: 28px;
  overflow: hidden;
  color: var(--slate-900);
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.movie-title:hover {
  color: var(--blue-600);
}

.movie-line {
  display: -webkit-box;
  min-height: 48px;
  margin: 10px 0 12px;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--slate-500);
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span,
.detail-tags span {
  color: var(--slate-600);
  background: var(--slate-100);
}

.filter-panel {
  margin: 24px 0 32px;
  padding: 22px;
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(180px, 0.65fr) minmax(180px, 0.65fr);
  gap: 16px;
}

.filter-field span {
  display: block;
  margin-bottom: 8px;
  color: var(--slate-700);
  font-size: 14px;
  font-weight: 800;
}

.filter-field input,
.filter-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  outline: 0;
  background: var(--white);
  padding: 0 14px;
  color: var(--slate-900);
}

.filter-field input:focus,
.filter-field select:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.empty-note {
  margin: 18px 0 0;
  color: var(--slate-500);
}

.page-hero {
  padding: 70px 0 40px;
  background: linear-gradient(180deg, var(--white), var(--slate-50));
}

.page-title {
  max-width: 900px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 72px 190px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  transition: 0.24s ease;
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), #60a5fa);
  font-size: 20px;
  font-weight: 900;
}

.rank-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: var(--slate-900);
}

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

.rank-content h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-content p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--slate-600);
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.rank-meta span {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--slate-600);
  background: var(--slate-100);
  font-size: 12px;
  font-weight: 800;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 28px 0 18px;
}

.breadcrumb a,
.breadcrumb span {
  color: var(--slate-600);
  background: var(--white);
  border: 1px solid var(--slate-200);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 32px;
}

.detail-card {
  overflow: hidden;
}

.player-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #000;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: cover;
}

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.58));
  cursor: pointer;
}

.player-start span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.94);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.38);
  font-size: 30px;
  transform: translateX(2px);
}

.player-box.is-ready .player-start {
  display: none;
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: none;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.72);
}

.player-box.has-message .player-message {
  display: block;
}

.detail-intro {
  padding: 28px;
}

.detail-intro h1 {
  margin: 12px 0 14px;
  color: var(--slate-900);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.detail-lead {
  margin: 0 0 18px;
  color: var(--slate-600);
  font-size: 18px;
  line-height: 1.8;
}

.detail-sidebar {
  display: grid;
  gap: 22px;
}

.info-box {
  padding: 24px;
}

.info-box h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

.info-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--slate-100);
}

.info-row:last-child {
  border-bottom: 0;
}

.info-row dt {
  color: var(--slate-500);
  font-weight: 800;
}

.info-row dd {
  margin: 0;
  color: var(--slate-800);
}

.text-panel {
  padding: 30px;
  margin-bottom: 28px;
}

.text-panel h2,
.text-panel h3 {
  margin: 0 0 16px;
  color: var(--slate-900);
}

.text-panel p {
  margin-bottom: 20px;
}

.review-box {
  padding: 20px;
  border-left: 4px solid var(--blue-600);
  border-radius: 14px;
  background: var(--slate-50);
}

.related-block {
  padding: 30px;
  margin-bottom: 70px;
}

.related-block h2 {
  margin: 0 0 24px;
}

.site-footer {
  padding: 42px 0 24px;
  color: var(--slate-300);
  background: var(--slate-900);
}

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

.footer-logo {
  color: var(--white);
  font-size: 20px;
}

.site-footer p {
  max-width: 560px;
  margin: 12px 0 0;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--slate-300);
  background: rgba(255, 255, 255, 0.06);
}

.footer-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 14px;
}

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

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

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

  .rank-action {
    grid-column: 3;
  }
}

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

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--slate-200);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 54px 0 82px;
  }

  .hero-search {
    grid-template-columns: 1fr;
  }

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

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

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

  .rank-thumb {
    grid-column: 1 / -1;
    order: -1;
  }

  .rank-action {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 22px, 1180px);
  }

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

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

  .page-section {
    padding: 52px 0;
  }

  .detail-intro,
  .text-panel,
  .related-block,
  .info-box {
    padding: 22px;
  }

  .player-start span {
    width: 66px;
    height: 66px;
  }
}
