:root {
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --orange: #f97316;
  --yellow: #eab308;
  --brown: #7c2d12;
  --ink: #111827;
  --muted: #6b7280;
  --line: rgba(245, 158, 11, 0.24);
  --soft: #fff7ed;
  --card: rgba(255, 255, 255, 0.94);
  --shadow: 0 24px 80px rgba(124, 45, 18, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(245, 158, 11, 0.28), transparent 34%),
    radial-gradient(circle at 88% 2%, rgba(249, 115, 22, 0.18), transparent 30%),
    linear-gradient(180deg, #fffbeb 0%, #fff7ed 45%, #fef3c7 100%);
}

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

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

main {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--amber), var(--yellow), var(--orange));
  box-shadow: 0 16px 38px rgba(124, 45, 18, 0.22);
}

.nav-wrap {
  max-width: 1240px;
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand {
  color: #fff;
  font-size: 25px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff7ed;
  border-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  padding: 10px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 18px;
}

.mobile-nav.open {
  display: grid;
  gap: 10px;
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  background: #7c2d12;
  color: #fff;
}

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

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-layer,
.detail-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(124, 45, 18, 0.70) 42%, rgba(245, 158, 11, 0.20) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.84) 0%, rgba(17, 24, 39, 0.16) 45%, rgba(17, 24, 39, 0.54) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 680px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 110px 20px 150px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #fde68a;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--amber-dark);
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy h1,
.hero-copy h2 {
  max-width: 760px;
  font-size: clamp(48px, 7vw, 94px);
  text-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
}

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

.hero-tags,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags {
  margin: 28px 0;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  border-radius: 999px;
  font-weight: 800;
}

.hero-tags span,
.detail-tags span {
  padding: 9px 14px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

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

.primary-button,
.secondary-button,
.card-actions a,
.search-box button {
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button,
.card-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.33);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.primary-button:hover,
.secondary-button:hover,
.card-actions a:hover,
.search-box button:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.46);
  transform: rotate(2deg);
  min-height: 480px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-poster img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-poster:hover img {
  transform: scale(1.05);
}

.hero-poster span {
  position: absolute;
  left: 22px;
  bottom: 22px;
  padding: 11px 16px;
  color: #fff;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.92);
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 30px;
  width: min(1200px, calc(100% - 40px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.hero-dot {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  color: #fff;
  background: rgba(17, 24, 39, 0.38);
  backdrop-filter: blur(14px);
  cursor: pointer;
  text-align: left;
}

.hero-dot.active {
  background: rgba(245, 158, 11, 0.82);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.32);
}

.hero-dot img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
}

.hero-dot span {
  overflow: hidden;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.stat-strip,
.content-section,
.footer-grid,
.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.stat-strip {
  margin-top: -54px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-strip div {
  padding: 26px;
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-strip strong {
  display: block;
  color: var(--amber-dark);
  font-size: 34px;
}

.stat-strip span {
  color: var(--muted);
  font-weight: 700;
}

.content-section {
  padding-top: 74px;
  padding-bottom: 30px;
}

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

.section-title.slim {
  margin-bottom: 20px;
}

.section-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.12;
}

.section-title a {
  color: var(--amber-dark);
  font-weight: 900;
}

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

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

.category-card {
  position: relative;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  border-radius: 28px;
  padding: 24px;
  color: #fff;
  box-shadow: var(--shadow);
  transform: translateZ(0);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.90), rgba(249, 115, 22, 0.54));
}

.category-card strong,
.category-card em {
  position: relative;
  z-index: 1;
}

.category-card strong {
  font-size: 26px;
  line-height: 1.1;
}

.category-card em {
  margin-top: 8px;
  color: #fffbeb;
  font-style: normal;
  line-height: 1.6;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 18px 48px rgba(124, 45, 18, 0.12);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 70px rgba(124, 45, 18, 0.20);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #fde68a;
}

.movie-card:not(.compact-card) .poster-link img {
  height: 360px;
}

.compact-card .poster-link img {
  height: 230px;
}

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

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

.poster-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(17, 24, 39, 0.60));
}

.rank-badge {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 14px;
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.32);
}

.card-body {
  padding: 20px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--amber-dark);
  font-size: 13px;
  font-weight: 900;
}

.card-body h2 {
  margin: 10px 0 8px;
  font-size: 21px;
  line-height: 1.25;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.tag-row {
  margin-top: 14px;
}

.tag-row span {
  padding: 6px 10px;
  color: #92400e;
  font-size: 12px;
  background: #fef3c7;
}

.card-actions {
  margin-top: auto;
  padding-top: 18px;
  justify-content: space-between;
}

.card-actions a {
  padding: 9px 14px;
  font-size: 13px;
}

.card-actions span {
  color: var(--amber-dark);
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 34px;
  align-items: start;
}

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

.rank-list .movie-card {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  min-height: 190px;
}

.rank-list .poster-link img,
.rank-list .compact-card .poster-link img {
  height: 100%;
  min-height: 190px;
}

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

.full-rank .movie-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
}

.page-hero,
.detail-hero {
  position: relative;
  color: #fff;
  background: linear-gradient(115deg, #92400e, var(--amber), var(--orange));
}

.page-hero {
  min-height: 360px;
  display: flex;
  align-items: center;
  padding: 80px 20px;
}

.page-hero > div {
  width: min(1040px, 100%);
  margin: 0 auto;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(44px, 6vw, 76px);
}

.page-hero p {
  max-width: 760px;
  color: #fff7ed;
  font-size: 20px;
  line-height: 1.8;
}

.category-hero,
.top-hero,
.small-hero {
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.25), transparent 24%),
    linear-gradient(120deg, #92400e, var(--amber), var(--orange));
}

.search-panel {
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 42px rgba(124, 45, 18, 0.08);
}

.search-panel label {
  display: block;
  margin-bottom: 10px;
  color: var(--amber-dark);
  font-weight: 900;
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.search-box input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px 16px;
  outline: none;
  font-size: 16px;
  background: #fff;
}

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

.search-box button {
  padding: 0 20px;
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

.empty-state {
  display: none;
  margin: 26px 0 0;
  padding: 22px;
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.76);
}

.empty-state.show {
  display: block;
}

.detail-hero {
  min-height: 620px;
  overflow: hidden;
}

.detail-wrap {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 40px));
  min-height: 620px;
  margin: 0 auto;
  padding: 80px 0;
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 54px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 34px 88px rgba(0, 0, 0, 0.44);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: #fde68a;
  font-weight: 800;
}

.detail-copy h1 {
  font-size: clamp(42px, 6vw, 78px);
}

.detail-copy p {
  max-width: 760px;
  color: #fff7ed;
  font-size: 20px;
  line-height: 1.8;
}

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0;
}

.detail-stats span {
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.20);
}

.player-section {
  padding-top: 60px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.24);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.20), rgba(2, 6, 23, 0.58));
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-trigger {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 20px 55px rgba(249, 115, 22, 0.38);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.25s ease;
}

.play-trigger:hover {
  transform: scale(1.08);
}

.play-trigger span {
  display: block;
  margin-left: 6px;
  font-size: 38px;
}

.player-shell.player-ready .player-overlay {
  opacity: 0;
  visibility: hidden;
}

.detail-article {
  color: #374151;
  line-height: 1.9;
}

.detail-article h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 32px;
}

.detail-article p {
  margin: 0 0 28px;
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 42px rgba(124, 45, 18, 0.08);
}

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

.info-grid div {
  padding: 20px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(124, 45, 18, 0.08);
}

.info-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--amber-dark);
}

.site-footer {
  margin-top: 70px;
  color: #d1d5db;
  background: linear-gradient(180deg, #111827, #030712);
}

.footer-grid {
  padding-top: 62px;
  padding-bottom: 42px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 42px;
}

.footer-brand {
  color: #fff;
  font-size: 24px;
}

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

.site-footer p {
  color: #9ca3af;
  line-height: 1.8;
}

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

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

.footer-bottom {
  padding-top: 24px;
  padding-bottom: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: #9ca3af;
  text-align: center;
}

@media (max-width: 1100px) {
  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 92px;
  }

  .hero-poster {
    display: none;
  }

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

  .split-section {
    grid-template-columns: 1fr;
  }

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

  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .menu-button {
    display: block;
  }

  .brand {
    font-size: 21px;
  }

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

  .hero-content {
    padding: 86px 18px 160px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 46px;
  }

  .hero-copy p,
  .detail-copy p,
  .page-hero p {
    font-size: 17px;
  }

  .hero-dots {
    grid-template-columns: 1fr;
    bottom: 18px;
  }

  .hero-dot {
    display: none;
  }

  .hero-dot.active {
    display: grid;
  }

  .stat-strip,
  .category-grid,
  .category-grid.wide,
  .feature-grid,
  .compact-grid,
  .full-rank,
  .footer-grid,
  .detail-wrap,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .stat-strip {
    margin-top: 22px;
  }

  .section-title {
    display: grid;
  }

  .rank-list .movie-card,
  .full-rank .movie-card {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .rank-list .poster-link img,
  .rank-list .compact-card .poster-link img {
    min-height: 210px;
  }

  .page-hero {
    min-height: 310px;
    padding: 64px 20px;
  }

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

  .detail-wrap {
    padding: 58px 0;
  }

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

  .detail-poster img {
    height: 380px;
  }

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

  .movie-card:not(.compact-card) .poster-link img,
  .compact-card .poster-link img {
    height: 320px;
  }
}
