:root {
  --amber-50: #fffbeb;
  --orange-50: #fff7ed;
  --yellow-50: #fefce8;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --yellow-500: #eab308;
  --rose-500: #f43f5e;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --black: #020617;
  --white: #ffffff;
  --shadow-lg: 0 20px 45px rgba(146, 64, 14, 0.14);
  --shadow-card: 0 16px 35px rgba(15, 23, 42, 0.12);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--amber-50), var(--orange-50) 40%, var(--yellow-50));
  min-height: 100vh;
}

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

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--amber-500), var(--yellow-500), var(--orange-500));
  box-shadow: 0 10px 30px rgba(194, 65, 12, 0.22);
}

.nav-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand {
  color: var(--white);
  font-size: 25px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--white);
  font-weight: 700;
}

.nav-links a {
  opacity: 0.95;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 22px;
  cursor: pointer;
}

.main-wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(120deg, #b45309, #f97316 50%, #eab308);
  color: var(--white);
}

.hero-slider::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  background: linear-gradient(0deg, var(--amber-50), rgba(255, 251, 235, 0));
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(72px);
  opacity: 0.32;
  animation: pulse 5s ease-in-out infinite;
}

.hero-orb.one {
  width: 320px;
  height: 320px;
  top: 60px;
  left: 6%;
  background: #fde68a;
}

.hero-orb.two {
  width: 420px;
  height: 420px;
  right: 8%;
  bottom: 50px;
  background: #fdba74;
  animation-delay: 1s;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: 52px;
  padding: 72px 0 100px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #fffbeb;
  font-size: 20px;
  font-weight: 700;
}

.hero-kicker::before {
  content: "▶";
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy h1 span {
  display: block;
  font-size: clamp(28px, 4vw, 44px);
  color: #fef3c7;
  margin-top: 8px;
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 28px;
  color: #ffedd5;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.hero-tags span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

.btn-primary {
  background: var(--white);
  color: var(--amber-600);
  box-shadow: 0 16px 28px rgba(120, 53, 15, 0.2);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.btn-dark {
  background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
  color: var(--white);
  box-shadow: var(--shadow-card);
}

.btn-primary:hover,
.btn-ghost:hover,
.btn-dark:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-poster {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  min-height: 430px;
  box-shadow: 0 30px 70px rgba(67, 20, 7, 0.42);
  transform: rotate(1.5deg);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.08) 62%);
}

.hero-poster-info {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
}

.hero-poster-info strong {
  display: block;
  font-size: 24px;
  margin-bottom: 8px;
}

.hero-poster-info span {
  color: #fde68a;
  font-weight: 700;
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--white);
}

.stats-panel {
  margin-top: -54px;
  position: relative;
  z-index: 8;
  background: var(--white);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.stat-item {
  text-align: center;
}

.stat-item strong {
  display: block;
  color: var(--amber-600);
  font-size: 28px;
  margin-bottom: 6px;
}

.stat-item span {
  color: var(--gray-600);
  font-weight: 700;
}

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

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

.eyebrow {
  display: inline-block;
  color: var(--amber-600);
  font-weight: 800;
  margin-bottom: 8px;
}

.section-heading h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  color: var(--gray-900);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-more {
  color: var(--amber-600);
  font-weight: 800;
}

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

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

.movie-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 55px rgba(15, 23, 42, 0.18);
}

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

.movie-card-row .card-media {
  width: 190px;
  min-width: 190px;
  aspect-ratio: 4 / 3;
}

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

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

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0) 58%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-media::after {
  opacity: 1;
}

.play-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  font-weight: 900;
}

.play-badge {
  left: 16px;
  bottom: 16px;
  width: 46px;
  height: 46px;
  background: rgba(245, 158, 11, 0.94);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.rank-badge {
  top: 14px;
  right: 14px;
  padding: 8px 12px;
  background: linear-gradient(90deg, var(--rose-500), var(--orange-500));
}

.card-body {
  padding: 18px;
}

.card-meta,
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 700;
}

.card-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.card-meta span {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--gray-100);
}

.movie-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.35;
  color: var(--gray-900);
}

.movie-card p {
  margin: 0 0 14px;
  color: var(--gray-600);
  line-height: 1.7;
  font-size: 14px;
}

.card-foot strong {
  color: var(--amber-600);
  font-size: 18px;
}

.scroller {
  overflow-x: auto;
  padding: 4px 0 18px;
}

.scroller-track {
  display: flex;
  gap: 22px;
  min-width: max-content;
}

.scroller-track .movie-card {
  width: 300px;
}

.list-stack {
  display: grid;
  gap: 18px;
}

.movie-card-row {
  display: flex;
}

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

.category-card {
  position: relative;
  min-height: 220px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  color: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 28px 55px rgba(146, 64, 14, 0.24);
}

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

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

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.92), rgba(249, 115, 22, 0.72), rgba(234, 179, 8, 0.7));
}

.category-card .category-info {
  position: absolute;
  inset: auto 24px 24px 24px;
  z-index: 2;
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 25px;
}

.category-card p {
  margin: 0;
  color: #fffbeb;
  line-height: 1.65;
}

.page-hero {
  background: linear-gradient(120deg, var(--amber-500), var(--orange-500), var(--yellow-500));
  color: var(--white);
  padding: 78px 0;
}

.page-hero-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(38px, 6vw, 60px);
  margin-bottom: 18px;
}

.page-hero p {
  margin: 0;
  max-width: 820px;
  color: #fffbeb;
  font-size: 20px;
  line-height: 1.8;
}

.filter-panel {
  margin: 38px 0 30px;
  padding: 24px;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.search-box {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.search-box input {
  width: 100%;
  min-height: 52px;
  border: 2px solid #fed7aa;
  border-radius: 999px;
  padding: 0 20px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-buttons button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.filter-buttons button:hover,
.filter-buttons button.is-active {
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  color: var(--white);
  transform: translateY(-1px);
}

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

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff7ed;
  color: var(--orange-600);
  font-size: 12px;
  font-weight: 800;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 140px;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.rank-num {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  color: var(--white);
  font-weight: 900;
  font-size: 20px;
}

.rank-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rank-main img {
  width: 76px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-main h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-main p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.6;
}

.rank-score {
  text-align: right;
  color: var(--amber-600);
  font-size: 24px;
  font-weight: 900;
}

.detail-hero {
  background: linear-gradient(120deg, #111827, #7c2d12 55%, #d97706);
  color: var(--white);
  padding: 58px 0 72px;
}

.detail-hero-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-cover {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

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

.detail-title h1 {
  color: var(--white);
  font-size: clamp(36px, 6vw, 58px);
  margin-bottom: 16px;
}

.detail-title p {
  margin: 0 0 22px;
  color: #ffedd5;
  font-size: 19px;
  line-height: 1.8;
}

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

.detail-meta span {
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.14);
  color: #fffbeb;
  font-weight: 800;
}

.detail-layout {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.8fr);
  gap: 32px;
}

.detail-panel,
.side-panel {
  background: var(--white);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  padding: 28px;
}

.detail-panel h2,
.side-panel h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

.detail-panel p {
  color: var(--gray-700);
  line-height: 2;
  font-size: 17px;
}

.player-stage {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--black);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.28);
  margin-bottom: 26px;
}

.player-stage video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000000;
  cursor: pointer;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.18));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-layer.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-layer button {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  color: var(--white);
  font-size: 36px;
  cursor: pointer;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.36);
}

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

.side-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.side-item img {
  width: 82px;
  height: 104px;
  object-fit: cover;
  border-radius: 14px;
}

.side-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.4;
}

.side-item span {
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 800;
}

.site-footer {
  background: linear-gradient(180deg, #111827, #020617);
  color: #d1d5db;
  padding: 60px 0 24px;
}

.footer-grid {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  color: var(--white);
  font-size: 24px;
  margin-bottom: 16px;
}

.site-footer h3 {
  color: var(--white);
  margin: 0 0 14px;
}

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

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer a:hover {
  color: var(--amber-500);
}

.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(156, 163, 175, 0.18);
  text-align: center;
  color: #9ca3af;
}

.hidden-card {
  display: none !important;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.45;
  }
}

@media (max-width: 1024px) {
  .hero-content,
  .detail-hero-inner,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .grid-cards,
  .grid-cards.featured,
  .category-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
    box-shadow: var(--shadow-card);
  }

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

  .brand {
    font-size: 21px;
  }

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

  .hero-content {
    padding-top: 44px;
    gap: 28px;
  }

  .hero-poster img {
    height: 360px;
  }

  .stats-panel,
  .grid-cards,
  .grid-cards.featured,
  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .movie-card-row,
  .rank-main {
    align-items: flex-start;
  }

  .section-heading,
  .movie-card-row {
    flex-direction: column;
  }

  .movie-card-row .card-media {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .rank-row {
    grid-template-columns: 1fr;
  }

  .rank-score {
    text-align: left;
  }

  .detail-panel,
  .side-panel {
    padding: 20px;
  }
}
