* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --bg-soft: #ffffff;
  --bg-dark: #101827;
  --slate: #1f2937;
  --slate-soft: #475569;
  --muted: #64748b;
  --text: #111827;
  --white: #ffffff;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --orange-soft: #fff7ed;
  --blue: #2563eb;
  --line: #e5e7eb;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--white);
  background: linear-gradient(90deg, #1e293b, #334155, #1e293b);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.28);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  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;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.38);
}

.brand-text {
  display: grid;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.04em;
}

.brand-text em {
  margin-top: 4px;
  font-style: normal;
  font-size: 12px;
  color: #cbd5e1;
}

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

.nav-link {
  padding: 10px 18px;
  border-radius: 12px;
  color: #e2e8f0;
  font-weight: 650;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.3);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: var(--white);
  background: radial-gradient(circle at 18% 15%, rgba(249, 115, 22, 0.35), transparent 28%), linear-gradient(135deg, #0f172a, #334155 50%, #7c2d12);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 52px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  padding: 96px 0 112px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-backdrop {
  position: fixed;
  inset: 0;
  opacity: 0.18;
  filter: blur(8px) saturate(1.2);
  transform: scale(1.05);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.9));
}

.hero-backdrop img {
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-eyebrow,
.page-hero span,
.section-heading span,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fed7aa;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-content h1 {
  margin: 18px 0 10px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-content h2 {
  margin: 0 0 20px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.12;
}

.hero-content p {
  max-width: 760px;
  margin: 0 0 30px;
  color: #e2e8f0;
  font-size: 18px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: 0.25s ease;
}

.btn.primary {
  color: var(--white);
  background: linear-gradient(90deg, var(--orange), var(--orange-dark));
  box-shadow: 0 14px 32px rgba(249, 115, 22, 0.34);
}

.btn.primary:hover,
.btn.slim:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.38);
}

.btn.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(14px);
}

.btn.text {
  color: #fed7aa;
}

.btn.slim {
  color: var(--white);
  background: var(--orange);
  min-height: 42px;
  padding: 0 18px;
}

.hero-poster {
  position: relative;
  z-index: 2;
  display: block;
  overflow: hidden;
  border-radius: 30px;
  min-height: 480px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.42);
  transform: rotate(1.5deg);
}

.hero-poster img {
  height: 480px;
  object-fit: cover;
}

.hero-poster span,
.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(249, 115, 22, 0.9);
  box-shadow: 0 18px 34px rgba(249, 115, 22, 0.4);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

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

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

.stats-section {
  margin-top: -48px;
  position: relative;
  z-index: 8;
}

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

.stats-grid article {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}

.stats-grid strong {
  display: block;
  font-size: 32px;
  color: var(--orange);
}

.stats-grid span {
  color: var(--muted);
}

.section-block {
  padding: 78px 0;
}

.section-block.alt {
  width: 100%;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, #ffffff, #f1f5f9);
}

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

.section-heading.row-heading {
  max-width: none;
  display: flex;
  text-align: left;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2,
.page-hero h1,
.detail-info h1 {
  margin: 8px 0 12px;
  color: var(--text);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

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

.category-tile a {
  display: flex;
  min-height: 260px;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  flex-direction: column;
  justify-content: space-between;
  transition: 0.25s ease;
}

.category-tile a:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-kicker {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--orange-dark);
  background: var(--orange-soft);
  font-size: 12px;
  font-weight: 800;
}

.category-tile h2 {
  margin: 18px 0 10px;
  font-size: 24px;
  line-height: 1.15;
}

.category-tile p {
  color: var(--muted);
  margin: 0;
}

.category-preview {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--slate-soft);
}

.category-preview a {
  display: block;
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  transform: none;
}

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

.movie-grid.dense-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-soft);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
  transition: 0.25s ease;
}

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

.poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.74));
  opacity: 0;
  transition: 0.25s ease;
}

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

.poster-play {
  opacity: 0;
  z-index: 3;
}

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, #f97316, #b45309);
  box-shadow: 0 12px 24px rgba(124, 45, 18, 0.26);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.movie-meta-line span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--slate-soft);
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
}

.movie-card-title,
.horizontal-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.movie-card-title a:hover,
.horizontal-card h2 a:hover,
.text-link:hover {
  color: var(--orange-dark);
}

.movie-card p,
.horizontal-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #9a3412;
  background: var(--orange-soft);
  font-size: 12px;
  font-weight: 700;
}

.horizontal-list {
  display: grid;
  gap: 18px;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 18px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.horizontal-cover {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 3 / 4;
}

.horizontal-cover img {
  height: 100%;
  object-fit: cover;
}

.mini-rank {
  position: absolute;
  left: 8px;
  top: 8px;
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--white);
  background: var(--orange);
  font-weight: 900;
}

.text-link {
  display: inline-flex;
  color: var(--orange-dark);
  font-weight: 800;
}

.page-hero {
  color: var(--white);
  background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.34), transparent 28%), linear-gradient(135deg, #0f172a, #334155 58%, #7c2d12);
}

.page-hero > div {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 90px 0;
}

.page-hero h1,
.page-hero p {
  color: var(--white);
}

.page-hero p {
  max-width: 760px;
  color: #e2e8f0;
}

.category-large-list {
  display: grid;
  gap: 22px;
}

.category-card-large {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 28px;
  align-items: center;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}

.category-card-large h2 {
  margin: 8px 0 10px;
  font-size: 30px;
}

.category-card-large p {
  color: var(--muted);
}

.category-card-large > div > span {
  color: var(--orange-dark);
  font-weight: 800;
}

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

.category-strip a {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 3 / 4;
  background: #e2e8f0;
}

.category-strip img {
  height: 100%;
  object-fit: cover;
}

.category-strip span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 7px;
  border-radius: 10px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  line-height: 1.3;
}

.filter-panel {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 14px;
}

.filter-grid label {
  display: grid;
  gap: 7px;
  color: var(--slate-soft);
  font-size: 13px;
  font-weight: 800;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text);
  background: #ffffff;
  outline: none;
  transition: 0.2s ease;
}

.filter-grid input:focus,
.filter-grid select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.filter-count {
  margin: 18px 0 22px;
  color: var(--muted);
}

.filter-count b {
  color: var(--orange-dark);
}

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

.detail-shell {
  padding: 32px 0 80px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
}

.breadcrumb a:hover {
  color: var(--orange-dark);
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  align-items: stretch;
  padding: 28px;
  border-radius: 30px;
  color: var(--white);
  background: radial-gradient(circle at 20% 0, rgba(249, 115, 22, 0.34), transparent 24%), linear-gradient(135deg, #0f172a, #334155 58%, #7c2d12);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.26);
}

.detail-poster img {
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-info h1 {
  color: var(--white);
  font-size: clamp(36px, 6vw, 62px);
}

.detail-one-line {
  max-width: 760px;
  margin: 0 0 24px;
  color: #e2e8f0;
  font-size: 18px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.detail-meta-grid span {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 12px;
  border-radius: 16px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-meta-grid b {
  color: #fed7aa;
}

.player-section {
  margin-top: 28px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.68));
}

.player-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--orange);
  font-size: 32px;
  box-shadow: 0 20px 50px rgba(249, 115, 22, 0.48);
}

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

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 28px;
}

.content-card {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.content-card p {
  margin: 0;
  color: var(--slate-soft);
}

.related-block {
  width: 100%;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

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

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 22px;
}

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

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #94a3b8;
}

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

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

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

@media (max-width: 860px) {
  .nav-shell {
    min-height: 68px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    padding: 14px;
    border-radius: 18px;
    background: #1e293b;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 24px;
    padding: 72px 0 96px;
  }

  .hero-poster {
    min-height: auto;
    width: min(280px, 100%);
    transform: none;
  }

  .hero-poster img {
    height: 360px;
  }

  .stats-grid,
  .category-grid,
  .movie-grid,
  .movie-grid.dense-grid,
  .filter-grid,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .category-card-large,
  .detail-hero {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 600px) {
  .brand-text em {
    display: none;
  }

  .hero {
    min-height: 720px;
  }

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

  .stats-grid,
  .category-grid,
  .movie-grid,
  .movie-grid.dense-grid,
  .filter-grid,
  .detail-content,
  .footer-grid,
  .footer-bottom,
  .detail-meta-grid,
  .category-strip {
    grid-template-columns: 1fr;
  }

  .section-heading.row-heading {
    align-items: start;
    flex-direction: column;
  }

  .horizontal-card {
    grid-template-columns: 92px 1fr;
  }

  .page-hero > div {
    padding: 66px 0;
  }

  .detail-hero {
    padding: 18px;
  }
}
