:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #fff7ed;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --accent-soft: rgba(249, 115, 22, 0.14);
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --radius: 24px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.12), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 50%, #ffffff 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

img.is-missing {
  opacity: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(229, 231, 235, 0.72);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, #fb923c, #f97316 48%, #c2410c);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
}

.brand-text {
  font-size: 20px;
  color: #111827;
}

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

.nav-link {
  color: #374151;
  font-size: 15px;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-dark);
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  border: 0;
  border-radius: 14px;
  background: var(--surface-soft);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--accent-dark);
}

.mobile-nav {
  display: none;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 16px;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: #374151;
  border-top: 1px solid var(--border);
}

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

.hero-section {
  padding: 28px 20px 20px;
}

.hero-stage {
  position: relative;
  max-width: var(--max);
  min-height: 560px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.88), rgba(124, 45, 18, 0.78)),
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.45), transparent 28rem);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 44px;
  padding: 64px;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-media {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(249, 115, 22, 0.28), rgba(255, 255, 255, 0.08)),
    #1f2937;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.38));
}

.hero-copy {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #fed7aa;
}

.hero-copy h1 {
  max-width: 660px;
  margin: 16px 0 18px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.hero-actions,
.detail-copy .ghost-button {
  margin-top: 30px;
}

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  min-height: 46px;
  padding: 0 22px;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb923c, #f97316);
  box-shadow: 0 18px 34px rgba(249, 115, 22, 0.30);
  cursor: pointer;
}

.ghost-button {
  min-height: 46px;
  margin-left: 10px;
  padding: 0 20px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
}

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

.text-link {
  color: var(--accent-dark);
}

.hero-controls {
  position: absolute;
  left: 64px;
  right: 64px;
  bottom: 36px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-controls button {
  pointer-events: auto;
}

.hero-controls > button {
  width: 44px;
  height: 44px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 28px;
  cursor: pointer;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dot.active {
  width: 30px;
  border-radius: 999px;
  background: #ffffff;
}

.section-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 20px;
}

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

.section-heading h2,
.page-hero h1,
.content-card h2 {
  margin: 6px 0 0;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 22px;
}

.intro-card,
.category-panel,
.content-card,
.filter-panel,
.rank-item {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.intro-card {
  padding: 30px;
}

.intro-card h2 {
  margin: 10px 0;
  font-size: clamp(26px, 3.5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

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

.ranking-entry {
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 12rem),
    linear-gradient(135deg, #111827, #7c2d12 70%, #f97316);
}

.ranking-entry p {
  color: rgba(255, 255, 255, 0.80);
}

.ranking-number {
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
}

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

.category-tile {
  position: relative;
  min-height: 164px;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, #111827, #9a3412);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.14);
}

.category-tile img {
  position: absolute;
  inset: 0;
  opacity: 0.42;
}

.category-tile span,
.category-tile small {
  position: relative;
  z-index: 2;
  display: block;
  padding: 0 18px;
  color: #ffffff;
}

.category-tile span {
  margin-top: 88px;
  font-size: 20px;
  font-weight: 900;
}

.category-tile small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.76);
}

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

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

.movie-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(229, 231, 235, 0.88);
  border-radius: 22px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.12);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.35), transparent 10rem),
    linear-gradient(135deg, #111827, #9a3412);
}

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.76);
  font-size: 12px;
  font-weight: 800;
}

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

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

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

.movie-card.compact h3 {
  font-size: 16px;
}

.movie-card p {
  min-height: 48px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.movie-card.compact p {
  display: none;
}

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

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

.page-main {
  padding: 28px 0 20px;
}

.page-hero {
  max-width: var(--max);
  margin: 0 auto 10px;
  padding: 54px 20px 38px;
}

.small-hero {
  border-radius: 32px;
}

.page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.filter-panel {
  max-width: var(--max);
  margin: 0 auto 4px;
  padding: 18px;
}

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

.filter-grid label span {
  display: block;
  margin-bottom: 6px;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
}

.category-panels {
  display: grid;
  gap: 18px;
}

.category-panel {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  padding: 18px;
}

.category-cover {
  display: block;
  min-height: 180px;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #111827, #9a3412);
}

.category-panel h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

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

.mini-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-link-list a {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: #9a3412;
  font-size: 13px;
  font-weight: 700;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 110px 1fr 74px;
  align-items: center;
  gap: 20px;
  padding: 14px;
}

.rank-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #111827, #9a3412);
}

.rank-cover span {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 4px 8px;
  color: #ffffff;
  border-radius: 999px;
  background: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.rank-copy h2 {
  margin: 6px 0 8px;
  font-size: 24px;
}

.rank-copy p {
  margin: 0;
  color: var(--muted);
}

.score-box {
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 20px;
  background: linear-gradient(135deg, #fb923c, #f97316);
  font-size: 22px;
  font-weight: 900;
}

.breadcrumb {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--accent-dark);
  font-weight: 700;
}

.detail-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 20px 38px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster {
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.detail-copy h1 {
  margin: 10px 0 12px;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.lead-text {
  color: #374151;
  font-size: 19px;
}

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

.detail-meta span {
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: #374151;
  font-size: 13px;
  font-weight: 750;
}

.detail-meta a {
  color: var(--accent-dark);
}

.detail-copy .ghost-button {
  margin-left: 0;
  color: var(--accent-dark);
  border-color: rgba(249, 115, 22, 0.28);
  background: #fff7ed;
}

.player-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px 34px;
}

.video-shell {
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

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

.play-panel {
  display: flex;
  justify-content: center;
  padding: 18px;
  background: linear-gradient(180deg, #111827, #0f172a);
}

.content-card {
  padding: 26px;
}

.content-card p {
  margin: 14px 0 0;
  color: #374151;
  font-size: 17px;
}

.site-footer {
  margin-top: 34px;
  background: #111827;
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 42px 20px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 32px;
}

.footer-brand .brand-text,
.footer-grid h3 {
  color: #ffffff;
}

.footer-grid p {
  max-width: 460px;
}

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

.footer-links a {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.copyright {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 13px;
}

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

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

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

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

  .hero-stage {
    min-height: 780px;
  }

  .hero-media {
    min-height: 360px;
  }

  .detail-poster {
    max-width: 320px;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .brand-text {
    font-size: 18px;
  }

  .hero-stage {
    min-height: 710px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 28px;
    gap: 24px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

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

  .hero-media {
    min-height: 300px;
  }

  .hero-controls {
    left: 28px;
    right: 28px;
    bottom: 24px;
  }

  .intro-grid,
  .filter-grid,
  .category-panel,
  .rank-item,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .rank-item {
    align-items: start;
  }

  .rank-cover {
    width: 120px;
  }

  .score-box {
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 460px) {
  .category-grid,
  .movie-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
    gap: 10px;
  }

  .ghost-button {
    margin-left: 0;
  }

  .detail-hero {
    gap: 22px;
  }
}
