:root {
  --site-blue: #2563eb;
  --site-blue-dark: #1e3a8a;
  --site-blue-soft: #dbeafe;
  --site-purple: #4f46e5;
  --site-text: #111827;
  --site-muted: #6b7280;
  --site-border: #e5e7eb;
  --site-bg: #f8fafc;
  --site-card: #ffffff;
  --site-footer: #111827;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--site-bg);
  color: var(--site-text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--site-border);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

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

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-blue), var(--site-purple));
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--site-muted);
  font-size: 12px;
}

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

.nav-link {
  position: relative;
  padding: 23px 0 20px;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--site-blue);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--site-blue);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: #f3f4f6;
  color: #374151;
  font-size: 20px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--site-border);
  background: #ffffff;
}

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

.mobile-link {
  display: block;
  padding: 14px 24px;
  color: #374151;
  font-weight: 600;
}

.mobile-link.is-active,
.mobile-link:hover {
  color: var(--site-blue);
  background: #eff6ff;
}

.hero-carousel {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1d4ed8 55%, #2563eb);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.8s ease;
  pointer-events: none;
}

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

.hero-slide img {
  position: absolute;
  inset: 0;
  opacity: 0.26;
  filter: saturate(1.1) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 28%, rgba(96, 165, 250, 0.32), transparent 36%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(30, 64, 175, 0.72), rgba(37, 99, 235, 0.32));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.eyebrow,
.section-heading span,
.sub-hero span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(219, 234, 254, 0.18);
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.hero-content h2 {
  margin: 18px 0 0;
  color: #bfdbfe;
  font-size: clamp(26px, 3vw, 42px);
}

.hero-content p {
  max-width: 720px;
  margin: 22px 0 0;
  color: #dbeafe;
  font-size: 20px;
  line-height: 1.7;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  background: #ffffff;
  color: var(--site-blue);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.62);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

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

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

.hero-dot.is-active {
  background: #ffffff;
}

.feature-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--site-border);
}

.feature-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.feature-grid div {
  padding: 22px;
  border-radius: 18px;
  background: #f8fafc;
  text-align: center;
}

.feature-grid strong {
  display: block;
  color: var(--site-text);
  font-size: 18px;
}

.feature-grid span {
  display: block;
  margin-top: 6px;
  color: var(--site-muted);
  font-size: 14px;
}

.page-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 24px;
}

.white-section {
  max-width: none;
  background: #ffffff;
}

.white-section > .section-heading,
.white-section > .movie-grid {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.soft-section {
  max-width: none;
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
}

.soft-section > .section-heading,
.soft-section > .movie-grid {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading.center {
  text-align: center;
}

.section-heading.center span {
  margin-left: auto;
  margin-right: auto;
}

.section-heading.with-link {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 10px 0 0;
  color: var(--site-muted);
  font-size: 17px;
  line-height: 1.7;
}

.section-heading a {
  color: var(--site-blue);
  font-weight: 800;
}

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

.category-card {
  min-height: 180px;
  padding: 24px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-blue), var(--site-blue-dark));
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #4f46e5, #1d4ed8);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(37, 99, 235, 0.26);
}

.category-card span {
  display: block;
  font-size: 24px;
  font-weight: 900;
}

.category-card strong {
  display: block;
  margin-top: 16px;
  color: #dbeafe;
  font-size: 14px;
  line-height: 1.7;
}

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

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

.movie-grid.listing-grid {
  margin-top: 28px;
}

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--site-card);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.14);
}

.movie-card.is-hidden {
  display: none;
}

.card-poster {
  position: relative;
  display: block;
  height: 230px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
}

.compact-card .card-poster {
  height: 190px;
}

.card-poster img {
  transition: transform 0.35s ease;
}

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

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
}

.play-chip {
  right: 14px;
  bottom: 14px;
  padding: 8px 12px;
  background: rgba(37, 99, 235, 0.92);
}

.rank-badge {
  left: 14px;
  top: 14px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.86);
}

.card-body {
  padding: 20px;
}

.card-meta {
  color: var(--site-blue);
  font-size: 13px;
  font-weight: 800;
}

.card-body h2 {
  margin: 9px 0 0;
  font-size: 20px;
  line-height: 1.25;
}

.compact-card .card-body h2 {
  font-size: 17px;
}

.card-body h2 a:hover {
  color: var(--site-blue);
}

.card-body p {
  min-height: 54px;
  margin: 10px 0 0;
  color: var(--site-muted);
  font-size: 14px;
  line-height: 1.65;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span,
.detail-tags span {
  padding: 5px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
}

.cta-section {
  padding: 70px 24px;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-blue), var(--site-blue-dark));
}

.cta-section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
}

.cta-section p {
  margin: 14px auto 0;
  max-width: 680px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.7;
}

.cta-section div {
  justify-content: center;
}

.sub-hero,
.detail-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 20%, rgba(147, 197, 253, 0.35), transparent 35%),
    linear-gradient(135deg, #172554, #1d4ed8 70%, #2563eb);
}

.sub-hero > div {
  max-width: 1280px;
  margin: 0 auto;
  padding: 84px 24px;
}

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

.sub-hero p {
  max-width: 780px;
  margin: 16px 0 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.75;
}

.listing-toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--site-border);
  border-radius: 14px;
  background: #f9fafb;
}

.search-box span {
  color: var(--site-muted);
  font-size: 22px;
}

.search-box input,
.listing-toolbar select {
  width: 100%;
  height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--site-text);
  font-size: 15px;
}

.listing-toolbar select {
  width: 190px;
  padding: 0 14px;
  border: 1px solid var(--site-border);
  border-radius: 14px;
  background: #f9fafb;
}

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

.category-overview-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.category-overview-main {
  display: block;
  min-height: 170px;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-blue), var(--site-blue-dark));
}

.category-overview-main span {
  font-size: 26px;
  font-weight: 900;
}

.category-overview-main p {
  margin: 14px 0 0;
  color: #dbeafe;
  line-height: 1.7;
}

.category-samples {
  display: grid;
  gap: 10px;
  padding: 18px 24px 24px;
}

.category-samples a {
  color: #374151;
  font-weight: 700;
}

.category-samples a:hover {
  color: var(--site-blue);
}

.ranking-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.rank-row {
  display: grid;
  grid-template-columns: 92px 54px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.rank-cover {
  display: block;
  height: 92px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
}

.rank-number {
  color: var(--site-blue);
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

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

.rank-content p {
  margin: 8px 0 0;
  color: var(--site-muted);
  line-height: 1.6;
}

.rank-meta {
  margin-top: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.rank-action {
  padding: 10px 16px;
  border-radius: 12px;
  color: #ffffff;
  background: var(--site-blue);
  font-weight: 800;
}

.detail-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 30px;
  align-items: start;
}

.player-card,
.detail-info,
.detail-panel {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.player-card {
  overflow: hidden;
  background: #020617;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000000;
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.58));
  cursor: pointer;
}

.video-overlay.is-hidden {
  display: none;
}

.video-overlay span {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.9);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.25);
  font-size: 38px;
  line-height: 1;
}

.detail-info {
  padding: 28px;
  color: var(--site-text);
}

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

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

.detail-category {
  display: inline-block;
  margin-top: 20px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--site-blue);
  background: var(--site-blue-soft);
  font-size: 13px;
  font-weight: 900;
}

.detail-info h1 {
  margin: 16px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-one-line {
  margin: 16px 0 0;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.75;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--site-border);
}

.detail-meta-grid div {
  padding: 14px;
  border-radius: 14px;
  background: #f9fafb;
}

.detail-meta-grid dt {
  color: var(--site-muted);
  font-size: 13px;
}

.detail-meta-grid dd {
  margin: 6px 0 0;
  color: var(--site-text);
  font-weight: 900;
}

.detail-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 24px 70px;
}

.detail-panel {
  padding: 30px;
  margin-top: 24px;
}

.detail-panel:first-child {
  margin-top: 0;
}

.detail-panel h2 {
  margin: 0;
  font-size: 26px;
}

.detail-panel p {
  margin: 16px 0 0;
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

.review-panel {
  background: #eff6ff;
}

.related-panel .movie-grid {
  margin-top: 24px;
}

.site-footer {
  color: #d1d5db;
  background: var(--site-footer);
}

.footer-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 52px 24px 28px;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.site-footer p {
  max-width: 620px;
  color: #9ca3af;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 15px;
}

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

.site-footer li + li {
  margin-top: 10px;
}

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

.footer-bottom {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid #1f2937;
  color: #9ca3af;
  font-size: 14px;
  text-align: center;
}

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

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

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

@media (max-width: 720px) {
  .nav-shell {
    height: 62px;
    padding: 0 16px;
  }

  .brand-copy small {
    display: none;
  }

  .hero-carousel {
    height: 600px;
  }

  .hero-content {
    padding: 0 18px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .feature-grid,
  .category-grid,
  .movie-grid,
  .movie-grid.compact-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .section-heading.with-link,
  .listing-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .listing-toolbar select {
    width: 100%;
  }

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

  .rank-cover {
    height: 74px;
  }

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

  .detail-info,
  .detail-panel {
    padding: 22px;
  }

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