:root {
  --bg: #f8fafc;
  --paper: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #f3f4f6;
  --line: #e5e7eb;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --amber: #f59e0b;
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

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

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
  color: #111827;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.32);
}

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

.nav-link,
.nav-dropdown > button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  color: #4b5563;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active,
.nav-dropdown:hover > button {
  color: var(--orange-dark);
  background: #fff7ed;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 220px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  display: none;
}

.nav-dropdown:hover .nav-dropdown-panel {
  display: grid;
  gap: 4px;
}

.nav-dropdown-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #4b5563;
  font-weight: 700;
}

.nav-dropdown-panel a:hover {
  background: #fff7ed;
  color: var(--orange-dark);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff7ed;
  color: var(--orange-dark);
  font-size: 22px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-slide.active {
  opacity: 1;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 28%, rgba(249, 115, 22, 0.46), transparent 34%), linear-gradient(135deg, #111827 0%, #1f2937 42%, #92400e 100%);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.78));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-copy {
  width: min(860px, 100%);
  padding: 84px 0 120px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #fed7aa;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-text {
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 2.4vw, 24px);
  max-width: 760px;
}

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

.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags {
  justify-content: center;
  margin-top: 22px;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(8px);
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 900;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.34);
}

.btn.ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.btn.ghost.light {
  color: #fff;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: width 220ms ease, background 220ms ease;
}

.hero-dot.active {
  width: 34px;
  background: #fff;
}

.hero-links {
  position: relative;
  z-index: 6;
  margin-top: -64px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding-bottom: 18px;
}

.hero-links a {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 10px 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

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

.section-block.warm {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

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

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  font-weight: 950;
  color: #1f2937;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.section-more {
  flex: 0 0 auto;
  color: var(--orange-dark);
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.85);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

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

.cover {
  position: relative;
  overflow: hidden;
  display: block;
  min-height: 230px;
  background: radial-gradient(circle at 30% 20%, rgba(249, 115, 22, 0.44), transparent 32%), linear-gradient(135deg, #1f2937, #7c2d12);
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

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

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(249, 115, 22, 0.92);
  transform: translate(-50%, -50%) scale(0.78);
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
}

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

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

.movie-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-card h2 a:hover {
  color: var(--orange-dark);
}

.movie-meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.movie-line {
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 14px;
}

.rank-num {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

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

.category-tile {
  min-height: 136px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(251, 146, 60, 0.22);
  border-radius: 22px;
  padding: 22px;
  background: linear-gradient(135deg, #fff, #fff7ed);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.category-tile strong {
  font-size: 22px;
  font-weight: 950;
}

.category-tile span {
  margin-top: 8px;
  color: var(--muted);
}

.rank-panel,
.prose-card,
.info-card,
.category-overview-card {
  border: 1px solid rgba(229, 231, 235, 0.88);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.rank-panel {
  padding: 24px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.rank-row span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  background: #111827;
  font-weight: 900;
}

.rank-row b {
  overflow: hidden;
  font-size: 15px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-row em {
  grid-column: 2;
  margin-top: -8px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 78px;
  color: #fff;
  background: radial-gradient(circle at 18% 12%, rgba(249, 115, 22, 0.42), transparent 28%), linear-gradient(135deg, #111827, #7c2d12);
}

.page-hero.slim h1 {
  max-width: 840px;
}

.page-hero p:not(.eyebrow) {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.inline-links {
  position: static;
  justify-content: flex-start;
  margin: 24px 0 0;
  padding: 0;
}

.category-overview-wrap {
  display: grid;
  gap: 28px;
  padding: 56px 0;
}

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

.category-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.category-overview-head h2 {
  margin: 0;
  font-size: 28px;
}

.category-overview-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.detail-hero {
  padding: 44px 0 72px;
  color: #fff;
  background: radial-gradient(circle at 18% 18%, rgba(249, 115, 22, 0.48), transparent 28%), linear-gradient(135deg, #111827, #7c2d12 70%, #92400e);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 700;
}

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

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

.detail-cover {
  min-height: 430px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.detail-info h1 {
  max-width: 900px;
}

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

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

.lead {
  max-width: 780px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.detail-actions {
  justify-content: flex-start;
}

.player-section {
  padding: 56px 0 24px;
}

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

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

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.player-start span {
  margin-left: 6px;
  font-size: 34px;
}

.watch-player.playing .player-start {
  display: none;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.prose-card,
.info-card {
  padding: 28px;
}

.prose-card h2,
.info-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
  line-height: 1.25;
}

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

.info-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-card dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.info-card dd {
  margin: -8px 0 4px;
  color: #1f2937;
  font-weight: 800;
}

.site-footer {
  padding: 50px 0 24px;
  color: #d1d5db;
  background: #111827;
}

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

.footer-logo {
  color: #fff;
}

.site-footer p {
  max-width: 500px;
  color: #9ca3af;
}

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

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

.footer-links a {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #d1d5db;
  font-size: 14px;
  font-weight: 800;
}

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

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

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

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

@media (max-width: 760px) {
  .nav-wrap {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

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

  .main-nav {
    width: 100%;
    display: none;
    align-items: stretch;
    flex-direction: column;
    padding-bottom: 10px;
  }

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

  .nav-dropdown-panel {
    position: static;
    width: 100%;
    box-shadow: none;
  }

  .nav-dropdown:hover .nav-dropdown-panel,
  .nav-dropdown.open .nav-dropdown-panel {
    display: grid;
  }

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

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

  .section-heading,
  .category-overview-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .cover {
    min-height: 190px;
  }

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

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

  .detail-cover {
    max-width: 280px;
    min-height: 380px;
  }
}

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

  .movie-grid,
  .movie-grid.four,
  .compact-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-links {
    display: none;
  }

  .player-start {
    width: 72px;
    height: 72px;
  }
}
