:root {
  --bg: #f8fafc;
  --paper: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #fff7ed;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --slate: #111827;
  --radius: 22px;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), #f59e0b);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.32);
}

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

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #475569;
  font-weight: 700;
  transition: 0.2s ease;
}

.main-nav a:hover {
  color: var(--orange-dark);
  background: var(--soft);
}

.menu-toggle {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--orange-dark);
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 25% 20%,
      rgba(249, 115, 22, 0.45),
      transparent 34%
    ),
    linear-gradient(135deg, #020617 0%, #111827 54%, #431407 100%);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(2, 6, 23, 0.95) 0%,
    rgba(2, 6, 23, 0.72) 45%,
    rgba(2, 6, 23, 0.18) 100%
  );
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: saturate(1.15);
}

.image-missing {
  opacity: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 148px 0 120px;
  color: #ffffff;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

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

.hero-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-radius: 999px;
  font-weight: 900;
  transition: 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: var(--orange);
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.38);
}

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

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

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

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

.hero-controls button {
  width: 36px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-controls button.is-active {
  background: var(--orange);
}

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

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-heading h2,
.page-hero h1,
.content-panel h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.text-link {
  color: var(--orange-dark);
  font-weight: 900;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

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

.sticky-filter {
  position: sticky;
  top: 88px;
  z-index: 10;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: 0.24s ease;
}

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

.poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.88), rgba(15, 23, 42, 0.96)),
    radial-gradient(
      circle at 70% 20%,
      rgba(255, 255, 255, 0.2),
      transparent 32%
    );
}

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

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

.score,
.play-dot {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
}

.score {
  top: 12px;
  left: 12px;
  min-width: 48px;
  height: 30px;
  background: rgba(15, 23, 42, 0.78);
}

.play-dot {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  background: var(--orange);
}

.card-body {
  padding: 16px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.meta-row span + span::before {
  content: "•";
  margin-right: 8px;
  color: #cbd5e1;
}

.movie-card h2,
.compact-item h2,
.category-overview-card h2 {
  margin: 8px 0;
  font-size: 18px;
  line-height: 1.25;
}

.movie-card h2 a:hover,
.compact-item h2 a:hover,
.category-overview-card h2 a:hover {
  color: var(--orange-dark);
}

.movie-card p,
.compact-item p,
.category-overview-card p,
.page-hero p,
.content-panel p,
.site-footer p {
  margin: 0;
  color: var(--muted);
}

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

.category-tile {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #431407 72%, #f97316);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  transition: 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
}

.category-tile span {
  color: #fed7aa;
  font-weight: 900;
}

.category-tile strong {
  font-size: 22px;
  line-height: 1.2;
}

.category-tile em {
  font-style: normal;
  font-weight: 900;
}

.split-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
}

.compact-heading {
  align-items: center;
}

.rank-list,
.side-card-list {
  display: grid;
  gap: 14px;
}

.compact-item {
  display: grid;
  grid-template-columns: auto 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
}

.large-rank .compact-item {
  grid-template-columns: auto 132px minmax(0, 1fr);
}

.rank-index {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: var(--orange);
  font-weight: 900;
}

.compact-poster {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #f97316, #111827);
}

.compact-item h2 {
  margin-top: 0;
}

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

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

.small-card .poster {
  aspect-ratio: 4 / 3;
}

.small-card p,
.dense-grid .movie-card p {
  display: none;
}

.page-main,
.detail-main {
  padding-bottom: 80px;
}

.page-hero {
  margin-top: 34px;
  padding: 70px 42px;
  border-radius: 32px;
  color: #ffffff;
  background:
    radial-gradient(
      circle at 70% 20%,
      rgba(249, 115, 22, 0.48),
      transparent 34%
    ),
    linear-gradient(135deg, #020617, #111827 55%, #431407);
  box-shadow: var(--shadow);
}

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

.category-overview-grid {
  display: grid;
  gap: 22px;
  padding-top: 34px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 18px;
  border-radius: 26px;
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.category-cover {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  background: linear-gradient(135deg, #f97316, #111827);
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.inline-links a {
  padding: 7px 10px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 800;
}

.detail-hero {
  color: #ffffff;
  background: linear-gradient(135deg, #020617, #111827 58%, #431407);
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 68px 0;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  background: linear-gradient(135deg, #f97316, #111827);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.detail-line {
  max-width: 760px;
  margin: 22px 0 0;
  color: #e2e8f0;
  font-size: 20px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.1);
}

.detail-tags {
  margin-top: 20px;
}

.small-actions {
  margin-top: 24px;
}

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

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(249, 115, 22, 0.38),
      transparent 28%
    ),
    rgba(2, 6, 23, 0.68);
}

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

.player-cover span {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--orange);
  font-size: 28px;
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.38);
}

.player-cover strong {
  font-size: 22px;
}

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

.content-panel {
  padding: 26px;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.content-panel h2 {
  margin-bottom: 14px;
  font-size: 26px;
}

.side-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-panel a {
  padding: 10px 12px;
  border-radius: 14px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 800;
}

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

.site-footer {
  margin-top: 90px;
  padding: 48px 0;
  color: #cbd5e1;
  background: #020617;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  color: #ffffff;
}

.footer-links h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 18px;
}

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

.footer-links a {
  color: #cbd5e1;
}

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

.is-filter-hidden {
  display: none !important;
}

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

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

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

  .detail-hero-grid {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

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

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

  .main-nav {
    position: absolute;
    top: 72px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

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

  .hero-carousel {
    min-height: 620px;
  }

  .hero-content {
    padding: 112px 0 96px;
  }

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

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

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

  .movie-grid,
  .dense-grid,
  .related-grid,
  .side-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .compact-item,
  .large-rank .compact-item {
    grid-template-columns: auto 78px minmax(0, 1fr);
  }

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

  .page-hero {
    padding: 48px 24px;
  }

  .detail-poster {
    width: min(260px, 100%);
  }
}

@media (max-width: 520px) {
  .movie-grid,
  .dense-grid,
  .related-grid,
  .side-card-list,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .brand {
    font-size: 18px;
  }

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