* {
  box-sizing: border-box;
}

:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
  --radius-xl: 24px;
  --radius-lg: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: #f8fafc;
  color: var(--gray-900);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-800), var(--slate-700), var(--slate-800));
  box-shadow: 0 10px 35px rgba(2, 6, 23, 0.22);
}

.nav-shell {
  max-width: 1280px;
  height: 66px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand strong,
.footer-brand strong {
  display: block;
  font-size: 21px;
  letter-spacing: 0.02em;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: #cbd5e1;
  font-size: 12px;
}

.brand-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
  box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 700;
}

.nav-links a {
  color: #e2e8f0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: #60a5fa;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  padding: 9px 12px;
  cursor: pointer;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  color: #fff;
  background: radial-gradient(circle at 12% 18%, rgba(59, 130, 246, 0.32), transparent 30%), linear-gradient(135deg, var(--slate-900), #14356c 52%, var(--slate-800));
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 30px 30px;
}

.hero-inner {
  position: relative;
  max-width: 1280px;
  min-height: 660px;
  margin: 0 auto;
  padding: 70px 22px 90px;
}

.hero-slide {
  position: absolute;
  inset: 70px 22px 90px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  align-items: center;
  gap: 52px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-kicker {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 40px);
  color: #93c5fd;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 30px;
  color: #dbeafe;
  font-size: 19px;
  line-height: 1.9;
}

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

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

.primary-btn {
  color: #fff;
  background: var(--blue-600);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.3);
}

.primary-btn:hover {
  background: var(--blue-700);
  transform: translateY(-2px);
}

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

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.55);
  transform: perspective(1000px) rotateY(-7deg);
}

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

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

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

.hero-poster span {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-600);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
}

.hero-dots {
  position: absolute;
  left: 22px;
  bottom: 42px;
  display: flex;
  gap: 9px;
}

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

.hero-dot-active {
  background: #60a5fa;
}

.feature-strip,
.section-shell,
.category-overview-list,
.filter-bar {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 68px;
  padding-bottom: 40px;
}

.feature-card,
.category-tile,
.category-overview-card,
.rank-panel,
.detail-content article,
.detail-side,
.player-box {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.feature-card {
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
}

.feature-card span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 16px;
  background: var(--blue-100);
  font-size: 24px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.feature-card p,
.section-heading p,
.category-tile p,
.movie-card p,
.category-overview-card p,
.detail-content p,
.site-footer p,
.page-hero p {
  color: var(--gray-600);
  line-height: 1.8;
}

.section-shell {
  padding-top: 58px;
  padding-bottom: 58px;
}

.soft-bg {
  max-width: none;
  padding-left: max(22px, calc((100vw - 1280px) / 2 + 22px));
  padding-right: max(22px, calc((100vw - 1280px) / 2 + 22px));
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
}

.left-heading {
  margin-left: 0;
  text-align: left;
}

.section-heading span,
.page-hero span,
.category-overview-head span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--blue-600);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.category-overview-head h2,
.rank-panel h2,
.detail-content h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.17);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e5e7eb;
}

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

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

.play-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 42px;
  opacity: 0;
  background: rgba(2, 6, 23, 0);
  transition: opacity 0.2s ease, background 0.2s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
  background: rgba(2, 6, 23, 0.34);
}

.year-pill,
.rank-badge {
  position: absolute;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  font-size: 12px;
}

.year-pill {
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  background: rgba(2, 6, 23, 0.72);
}

.rank-badge {
  top: 12px;
  left: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

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

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 52px;
  margin: 10px 0 14px;
  overflow: hidden;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.movie-meta {
  justify-content: space-between;
  color: #64748b;
  font-size: 12px;
}

.tag-row span,
.detail-tags span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
}

.tag-row {
  margin-top: 12px;
}

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

.category-tile {
  padding: 24px;
  transition: transform 0.24s ease, background 0.24s ease;
}

.category-tile:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), #0f172a);
  transform: translateY(-4px);
}

.category-tile span {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile:hover p {
  color: #dbeafe;
}

.two-col-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
}

.rank-panel {
  position: sticky;
  top: 88px;
  padding: 24px;
}

.rank-panel h2 {
  font-size: 28px;
}

.rank-row {
  display: grid;
  grid-template-columns: 34px 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.rank-row b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--blue-600);
}

.rank-row img {
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-row strong {
  display: -webkit-box;
  overflow: hidden;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-row em {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
}

.panel-link {
  width: 100%;
  margin-top: 18px;
  color: #fff;
  background: var(--slate-900);
}

.page-hero {
  padding: 80px 22px;
  color: #fff;
  text-align: center;
  background: radial-gradient(circle at 15% 20%, rgba(96, 165, 250, 0.34), transparent 30%), linear-gradient(135deg, #0f172a, #1e3a8a 55%, #0f172a);
}

.page-hero p {
  max-width: 780px;
  margin: 0 auto;
  color: #dbeafe;
  font-size: 18px;
}

.category-overview-list {
  padding-top: 56px;
  padding-bottom: 56px;
}

.category-overview-card {
  margin-bottom: 28px;
  padding: 28px;
}

.category-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.small-btn {
  min-height: 40px;
  padding: 0 16px;
  white-space: nowrap;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 16px;
  padding-top: 30px;
}

.filter-bar label span {
  display: block;
  margin-bottom: 8px;
  color: var(--gray-700);
  font-weight: 900;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #fff;
  color: var(--gray-900);
  font-size: 15px;
  outline: none;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 42px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 22px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #64748b;
  font-weight: 800;
}

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

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.04em;
}

.detail-one-line {
  color: var(--gray-600);
  font-size: 20px;
  line-height: 1.8;
}

.detail-meta,
.detail-tags {
  margin: 20px 0;
}

.player-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px 34px;
}

.player-box {
  position: relative;
  overflow: hidden;
  background: #000;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.62));
  cursor: pointer;
}

.player-cover span {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-600);
  box-shadow: 0 18px 48px rgba(37, 99, 235, 0.42);
  font-size: 34px;
}

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

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

.detail-content article,
.detail-side {
  padding: 30px;
}

.detail-content h2 {
  font-size: 28px;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 52px 22px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin: 9px 0;
}

.site-footer a:hover {
  color: #60a5fa;
}

.site-footer p {
  color: #94a3b8;
}

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

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

  .two-col-layout,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 22px 18px;
    background: var(--slate-800);
  }

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

  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero-carousel,
  .hero-inner {
    min-height: 780px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-poster {
    max-width: 280px;
    transform: none;
  }

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

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

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

@media (max-width: 620px) {
  .movie-grid,
  .compact-grid,
  .feature-strip,
  .category-grid,
  .filter-bar,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-top: 48px;
  }

  .hero-slide {
    inset: 48px 18px 84px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .category-overview-head {
    flex-direction: column;
  }

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