:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --blue-500: #3b82f6;
  --green-500: #22c55e;
  --red-500: #ef4444;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  --shadow-strong: 0 26px 60px rgba(15, 23, 42, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--gray-800);
  background: #ffffff;
  line-height: 1.6;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: #ffffff;
  background: linear-gradient(90deg, var(--slate-800), var(--slate-700), var(--slate-800));
  box-shadow: 0 12px 26px rgba(2, 6, 23, 0.22);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

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

.brand-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
  font-size: 18px;
}

.brand-text strong {
  display: block;
  font-size: 20px;
  letter-spacing: 1px;
}

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

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

.nav-link,
.mobile-link {
  border-radius: 12px;
  color: #e2e8f0;
  font-weight: 700;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link {
  padding: 10px 18px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #ffffff;
  background: var(--orange-500);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 14px;
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--slate-800), var(--slate-700) 42%, #7c2d12);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.22;
}

.glow-a {
  top: 70px;
  left: 8%;
  width: 280px;
  height: 280px;
  background: var(--orange-500);
}

.glow-b {
  right: 6%;
  bottom: 40px;
  width: 360px;
  height: 360px;
  background: var(--blue-500);
}

.hero-shell {
  position: relative;
  z-index: 2;
  padding: 70px 0 54px;
}

.hero-slider {
  position: relative;
  min-height: 480px;
}

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.72fr);
  gap: 48px;
  align-items: center;
  min-height: 480px;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide:not(.active) {
  position: absolute;
  inset: 0;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 6px 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.16);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  line-height: 1.12;
  font-size: clamp(38px, 6vw, 66px);
  font-weight: 900;
  letter-spacing: -1.4px;
}

.hero-copy h2 {
  margin: 18px 0 12px;
  font-size: clamp(24px, 4vw, 38px);
  color: #ffedd5;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 760px;
  color: #e2e8f0;
  font-size: 18px;
}

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

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange-500), var(--orange-600));
  box-shadow: 0 15px 32px rgba(249, 115, 22, 0.3);
}

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

.ghost-button {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.hero-art {
  position: relative;
  display: block;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  box-shadow: var(--shadow-strong);
  background: rgba(255, 255, 255, 0.08);
}

.hero-art img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.55s ease;
}

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

.hero-play,
.poster-play {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.92);
  box-shadow: 0 16px 36px rgba(249, 115, 22, 0.35);
}

.hero-play {
  right: 22px;
  bottom: 22px;
  width: 62px;
  height: 62px;
  font-size: 22px;
}

.hero-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

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

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

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  max-width: 780px;
  margin: 34px auto 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.44);
  backdrop-filter: blur(16px);
}

.hero-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
  color: var(--gray-800);
  outline: none;
  background: #ffffff;
}

.hero-search input {
  border: 0;
}

.hero-search button {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  padding: 0 22px;
  color: #ffffff;
  background: var(--orange-500);
  font-weight: 800;
  cursor: pointer;
}

.stats-section,
.soft-bg {
  background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
}

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

.stat-card {
  padding: 26px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover,
.movie-card:hover,
.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.stat-card span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  font-weight: 900;
  font-size: 22px;
  margin-bottom: 16px;
}

.stat-blue span {
  background: linear-gradient(135deg, var(--blue-500), #2563eb);
}

.stat-green span {
  background: linear-gradient(135deg, var(--green-500), #16a34a);
}

.stat-orange span {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
}

.stat-red span {
  background: linear-gradient(135deg, var(--red-500), #dc2626);
}

.stat-card h3,
.movie-info h3,
.category-tile h3,
.category-overview-head h2,
.ranking-body h2 {
  margin: 0 0 8px;
  line-height: 1.28;
}

.stat-card p,
.movie-info p,
.category-tile p,
.category-overview-head p,
.ranking-body p {
  margin: 0;
  color: var(--gray-600);
}

.content-section,
.dark-section {
  padding: 76px 0;
}

.dark-section {
  color: #ffffff;
  background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
}

.dark-section .section-title p,
.dark-section .movie-info p,
.dark-section .card-meta,
.dark-section .tag-row span {
  color: #cbd5e1;
}

.section-title {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-title h2 {
  margin: 0 0 10px;
  color: inherit;
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.15;
}

.section-title p {
  margin: 0;
  color: var(--gray-600);
  font-size: 17px;
}

.movie-grid,
.compact-grid,
.category-grid,
.category-overview-grid {
  display: grid;
  gap: 24px;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dark-section .movie-card {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}

.movie-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.poster-year,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.poster-year {
  right: 12px;
  padding: 5px 10px;
  background: var(--orange-500);
}

.rank-badge {
  left: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
}

.poster-play {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-info {
  padding: 18px;
}

.movie-info h3 a:hover,
.ranking-body h2 a:hover,
.detail-side a:hover {
  color: var(--orange-600);
}

.movie-info p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.tag-row span {
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--gray-600);
  background: var(--gray-100);
  font-size: 12px;
  font-weight: 700;
}

.big-tags span {
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.18);
}

.card-meta,
.ranking-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 700;
}

.card-meta span,
.ranking-meta span,
.detail-meta span {
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--gray-100);
}

.center-action {
  margin-top: 34px;
  text-align: center;
}

.movie-card-compact {
  display: grid;
  grid-template-columns: 126px 1fr;
  align-items: stretch;
}

.movie-card-compact .movie-poster img {
  height: 100%;
  aspect-ratio: auto;
}

.category-tile,
.category-overview-card {
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile {
  min-height: 190px;
  padding: 22px;
}

.category-tile span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--orange-600);
  font-weight: 900;
}

.category-samples {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  color: var(--gray-500);
  font-size: 13px;
}

.category-samples a:hover,
.category-tile a:hover span {
  color: var(--orange-600);
}

.page-hero {
  color: #ffffff;
  padding: 74px 0;
  background: radial-gradient(circle at 20% 15%, rgba(249, 115, 22, 0.35), transparent 36%), linear-gradient(135deg, var(--slate-800), var(--slate-900));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fed7aa;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 16px;
  align-items: end;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.filter-panel.wide {
  grid-template-columns: 1fr 180px 220px;
}

.filter-panel.slim {
  grid-template-columns: 1fr;
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--gray-700);
  font-weight: 800;
}

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

.category-overview-card {
  padding: 24px;
}

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

.category-preview-row a {
  display: grid;
  gap: 8px;
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 700;
}

.category-preview-row img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--orange-600);
  font-weight: 900;
  transition: transform 0.25s ease;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 96px 70px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.ranking-cover img {
  width: 96px;
  height: 128px;
  border-radius: 16px;
  object-fit: cover;
}

.ranking-number {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  font-size: 22px;
  font-weight: 900;
}

.ranking-body p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: var(--slate-900);
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.22;
  filter: blur(8px);
  transform: scale(1.06);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(124, 45, 18, 0.7));
}

.detail-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 44px;
  align-items: center;
  padding: 58px 0;
}

.detail-poster-card {
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  box-shadow: var(--shadow-strong);
}

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

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

.detail-meta span {
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.1);
}

.player-section {
  padding: 42px 0;
  background: #020617;
}

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

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

.player-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.78));
  cursor: pointer;
}

.player-layer.hidden {
  opacity: 0;
  pointer-events: none;
}

.player-button {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  box-shadow: 0 20px 45px rgba(249, 115, 22, 0.36);
  font-size: 30px;
}

.player-layer strong {
  max-width: min(90%, 760px);
  font-size: clamp(22px, 3vw, 34px);
  text-align: center;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 32px;
}

.detail-article,
.detail-side {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-article {
  padding: 32px;
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.detail-article p {
  margin: 0 0 26px;
  color: var(--gray-700);
  font-size: 17px;
}

.detail-side {
  padding: 24px;
  height: max-content;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  margin: 0;
}

.detail-side dt {
  color: var(--gray-500);
  font-weight: 800;
}

.detail-side dd {
  margin: 0;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 44px 0;
}

.site-footer h2 {
  display: inline-block;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--orange-500);
  color: #ffffff;
  font-size: 18px;
}

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

.site-footer a {
  display: block;
  margin: 6px 0;
  color: #cbd5e1;
}

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

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  text-align: center;
  font-size: 14px;
}

[data-search-card].is-hidden {
  display: none;
}

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

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

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

  .detail-poster-card {
    max-width: 340px;
  }

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

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

  .menu-button {
    display: block;
  }

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

  .hero-slider,
  .hero-slide {
    min-height: 0;
  }

  .hero-art {
    max-width: 330px;
    margin: 0 auto;
  }

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

  .filter-panel,
  .filter-panel.wide {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    grid-template-columns: 82px 48px 1fr;
  }

  .ranking-item .text-link {
    grid-column: 3;
  }

  .ranking-cover img {
    width: 82px;
    height: 110px;
  }

  .ranking-number {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}

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

  .brand-text small {
    display: none;
  }

  .hero-shell {
    padding: 44px 0 36px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 34px;
  }

  .hero-search,
  .stat-grid,
  .movie-grid,
  .compact-grid,
  .three-cols,
  .category-grid,
  .category-overview-grid,
  .category-preview-row {
    grid-template-columns: 1fr;
  }

  .movie-card-compact {
    grid-template-columns: 112px 1fr;
  }

  .content-section,
  .dark-section {
    padding: 54px 0;
  }

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

  .detail-hero-grid {
    padding: 40px 0;
  }

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

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