:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f3f4f6;
  --line: #e5e7eb;
  --brand: #d97706;
  --brand-dark: #92400e;
  --brand-soft: #fffbeb;
  --danger: #ef4444;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  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", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.28);
}

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

.nav-links a,
.mobile-menu a {
  padding: 10px 14px;
  color: #4b5563;
  border-radius: 14px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active,
.mobile-menu a:hover,
.mobile-menu a.is-active {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.nav-toggle {
  display: none;
  border: 0;
  padding: 10px 14px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 14px;
  font-weight: 800;
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.mobile-menu.is-open {
  display: grid;
  gap: 6px;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.38), transparent 32%), linear-gradient(135deg, #111827, #451a03 56%, #111827);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(1.1) contrast(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.7), rgba(17, 24, 39, 0.38));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.55fr);
  align-items: center;
  gap: 56px;
  padding: 80px 0;
}

.hero-copy {
  color: #fff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #fbbf24;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.07em;
}

.hero-copy p {
  max-width: 720px;
  margin: 26px 0 0;
  color: #e5e7eb;
  font-size: clamp(18px, 2.6vw, 24px);
  line-height: 1.7;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

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

.primary-btn,
.ghost-btn,
.section-more,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 14px 28px rgba(217, 119, 6, 0.35);
}

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

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

.hero-poster {
  min-height: 430px;
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

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

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

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

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

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-head h2,
.search-panel h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.section-head p,
.page-hero p,
.search-panel p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-more,
.text-link {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

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

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

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

.movie-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 24px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(217, 119, 6, 0.35);
  box-shadow: 0 26px 52px rgba(15, 23, 42, 0.14);
  transform: translateY(-5px);
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 250px;
  background: radial-gradient(circle at 30% 18%, rgba(251, 191, 36, 0.5), transparent 30%), linear-gradient(135deg, #111827, #78350f);
}

.poster-frame img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.2s ease;
}

.movie-card:hover .poster-frame img,
.category-tile:hover img,
.hero-poster:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.68));
}

.play-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  min-width: 56px;
  height: 34px;
  padding: 0 14px;
  color: #fff;
  background: #f59e0b;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

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

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 950;
}

.movie-card h3 a:hover {
  color: var(--brand-dark);
}

.movie-card p {
  min-height: 54px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-list span {
  padding: 6px 10px;
  color: #78350f;
  background: #fffbeb;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.category-band {
  padding: 74px 0;
  background: linear-gradient(135deg, #fffbeb, #fff7ed 48%, #fff);
}

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

.category-tile,
.overview-card {
  display: grid;
  gap: 14px;
  min-height: 220px;
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 26px;
  box-shadow: 0 16px 38px rgba(217, 119, 6, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.overview-card:hover {
  box-shadow: 0 26px 52px rgba(217, 119, 6, 0.15);
  transform: translateY(-4px);
}

.category-name,
.overview-card h2 {
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
}

.category-desc,
.overview-card p {
  color: var(--muted);
  line-height: 1.7;
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

.category-thumbs img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #111827, #78350f);
  border-radius: 14px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(300px, 0.45fr);
  align-items: end;
  gap: 22px;
  margin-top: 52px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.search-box {
  display: grid;
  gap: 8px;
}

.search-box span {
  color: var(--muted);
  font-weight: 800;
}

.search-box input {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line);
  outline: 0;
  background: var(--soft);
  border-radius: 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.chip-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  color: #4b5563;
  background: #fff;
  border-radius: 999px;
  font-weight: 800;
}

.chip.is-active,
.chip:hover {
  color: #fff;
  border-color: #d97706;
  background: #d97706;
}

.page-hero,
.detail-hero {
  padding: 82px 0;
  background: radial-gradient(circle at 18% 10%, rgba(245, 158, 11, 0.28), transparent 30%), linear-gradient(135deg, #fff, #fffbeb);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.rank-hero,
.category-hero {
  background: radial-gradient(circle at 20% 12%, rgba(245, 158, 11, 0.34), transparent 30%), linear-gradient(135deg, #111827, #78350f);
}

.rank-hero h1,
.rank-hero p,
.category-hero h1,
.category-hero p {
  color: #fff;
}

.overview-links {
  display: grid;
  gap: 8px;
}

.overview-links a {
  color: #4b5563;
  line-height: 1.5;
}

.overview-links a:hover {
  color: var(--brand-dark);
}

.rank-section {
  padding-top: 24px;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 52px 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  border-color: rgba(217, 119, 6, 0.35);
  transform: translateY(-3px);
}

.rank-num {
  color: var(--brand);
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.rank-cover {
  overflow: hidden;
  width: 72px;
  height: 90px;
  background: linear-gradient(135deg, #111827, #78350f);
  border-radius: 16px;
}

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

.rank-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.rank-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy em {
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-hero {
  background: radial-gradient(circle at 20% 12%, rgba(245, 158, 11, 0.34), transparent 30%), linear-gradient(135deg, #111827, #451a03 72%, #111827);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 46px;
}

.detail-copy,
.detail-copy h1 {
  color: #fff;
}

.detail-line {
  max-width: 800px;
  margin: 20px 0 0;
  color: #e5e7eb;
  font-size: 20px;
  line-height: 1.8;
}

.detail-cover {
  min-height: 430px;
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

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

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

.detail-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.player-section {
  margin-top: -36px;
  position: relative;
  z-index: 3;
}

.player-card {
  position: relative;
  overflow: hidden;
  background: #030712;
  border: 8px solid #fff;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.player-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #030712;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.28), rgba(3, 7, 18, 0.32));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 50%;
  font-size: 34px;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.36);
}

.player-start.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-section {
  padding: 52px 0 12px;
}

.detail-content {
  max-width: 920px;
  margin: 0 auto;
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.detail-content h2 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-content h2:not(:first-child) {
  margin-top: 28px;
}

.detail-content p {
  margin: 0;
  color: #374151;
  font-size: 17px;
  line-height: 1.95;
}

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

.site-footer {
  margin-top: 40px;
  padding: 58px 0 24px;
  color: #d1d5db;
  background: #111827;
}

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

.footer-brand {
  color: #fff;
}

.site-footer p {
  margin: 16px 0 0;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 18px;
  font-weight: 950;
}

.footer-links {
  display: grid;
  gap: 10px;
}

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

.copyright {
  margin-top: 34px;
  padding-top: 22px;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 44px;
  height: 44px;
  display: none;
  border: 0;
  color: #fff;
  background: #d97706;
  border-radius: 50%;
  box-shadow: 0 14px 28px rgba(217, 119, 6, 0.32);
  font-weight: 950;
}

.back-top.is-visible {
  display: grid;
  place-items: center;
}

.js-filter-card.is-hidden {
  display: none;
}

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

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

  .hero-poster,
  .detail-cover {
    max-width: 420px;
  }
}

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

  .nav-toggle {
    display: inline-flex;
  }

  .hero,
  .hero-content {
    min-height: 620px;
  }

  .hero-content {
    padding: 60px 0 90px;
  }

  .hero-poster,
  .detail-cover {
    display: none;
  }

  .section-head,
  .search-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .section-head {
    display: grid;
  }

  .movie-grid,
  .feature-grid,
  .compact-grid,
  .related-grid,
  .category-grid,
  .overview-grid,
  .rank-list,
  .wide-rank,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 44px 64px minmax(0, 1fr);
  }

  .page-hero,
  .detail-hero {
    padding: 56px 0;
  }

  .content-section {
    padding: 52px 0;
  }
}

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

  .brand {
    font-size: 20px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

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

  .hero-actions,
  .slim-actions {
    display: grid;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .poster-frame {
    min-height: 230px;
  }

  .detail-content {
    padding: 24px;
  }
}
