:root {
  color-scheme: light;
  --amber-950: #451a03;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --orange-700: #c2410c;
  --orange-600: #ea580c;
  --paper: #fffaf0;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f3d6a4;
  --shadow: 0 20px 55px rgba(120, 53, 15, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #fffbeb 0%, #fff7ed 42%, #fffaf0 100%);
  color: var(--text);
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.95), rgba(255, 237, 213, 0.95));
  border-bottom: 1px solid rgba(217, 119, 6, 0.25);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(146, 64, 14, 0.10);
}

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

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

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

.brand-text {
  font-size: 24px;
  color: var(--amber-800);
}

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

.nav-link,
.mobile-link {
  color: var(--amber-800);
  border-radius: 12px;
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-link {
  padding: 10px 14px;
  font-size: 15px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #fff;
  background: var(--amber-600);
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.24);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.16);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--amber-800);
}

.mobile-nav {
  display: none;
  padding: 10px 20px 18px;
  border-top: 1px solid rgba(217, 119, 6, 0.22);
}

.mobile-link {
  display: block;
  padding: 12px 14px;
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--amber-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 420px);
  align-items: center;
  gap: 46px;
  padding: 80px max(28px, calc((100vw - 1180px) / 2)) 74px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.03);
  transition: opacity 0.8s ease, transform 1.1s ease;
}

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

.hero-content {
  max-width: 720px;
  color: #fff7ed;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fed7aa;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

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

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  text-shadow: 0 14px 38px rgba(0, 0, 0, 0.25);
}

.hero p,
.page-hero p,
.detail-copy .lead {
  max-width: 760px;
  margin: 0;
  color: #ffedd5;
  font-size: clamp(17px, 2.2vw, 23px);
  line-height: 1.75;
}

.hero-tags,
.info-pills,
.meta-line,
.card-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.hero-tags a,
.info-pills span {
  padding: 8px 13px;
  border: 1px solid rgba(255, 237, 213, 0.28);
  border-radius: 999px;
  color: #ffedd5;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 800;
}

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

.primary-button,
.secondary-button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.25s ease;
}

.primary-button {
  min-height: 48px;
  padding: 0 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 18px 36px rgba(217, 119, 6, 0.32);
}

.secondary-button {
  min-height: 48px;
  padding: 0 22px;
  color: #ffedd5;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 237, 213, 0.28);
}

.primary-button:hover,
.secondary-button:hover,
.small-button:hover {
  transform: translateY(-2px);
}

.hero-cover {
  min-height: 460px;
  border-radius: 32px;
  border: 1px solid rgba(255, 237, 213, 0.24);
  background: linear-gradient(150deg, rgba(255, 247, 237, 0.25), rgba(251, 146, 60, 0.12));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: end;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.hero-cover::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-cover span {
  position: relative;
  z-index: 2;
  color: #fff7ed;
  font-size: 24px;
  font-weight: 900;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 237, 213, 0.48);
  cursor: pointer;
  transition: 0.25s ease;
}

.hero-dot.active {
  width: 38px;
  background: #fbbf24;
}

.home-section,
.search-panel,
.detail-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 20px 0;
}

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

.section-heading h2,
.search-panel h2,
.detail-card h2,
.side-card h2 {
  margin: 8px 0 0;
  color: var(--amber-950);
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.04em;
}

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

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

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

.category-tile {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 10px;
  padding: 22px;
  border-radius: 22px;
  color: #fff7ed;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
}

.category-tile span {
  font-size: 24px;
  font-weight: 950;
}

.category-tile strong {
  color: #fed7aa;
  line-height: 1.45;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 24px;
  align-items: center;
}

.search-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(217, 119, 6, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 36px rgba(120, 53, 15, 0.08);
}

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

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

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

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

.movie-card,
.movie-row,
.detail-card,
.side-card,
.rank-item {
  background: var(--surface);
  border: 1px solid rgba(217, 119, 6, 0.16);
  box-shadow: var(--shadow);
}

.movie-card {
  border-radius: 22px;
  overflow: hidden;
  transition: 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(120, 53, 15, 0.22);
}

.poster,
.row-poster,
.rank-poster,
.side-thumb,
.detail-poster {
  background-size: cover;
  background-position: center;
}

.poster {
  position: relative;
  display: flex;
  aspect-ratio: 3 / 4;
  align-items: end;
  padding: 14px;
  color: #fff;
  overflow: hidden;
}

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.72));
}

.score-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--amber-600);
  font-weight: 900;
  font-size: 13px;
}

.poster-title {
  position: relative;
  z-index: 2;
  font-weight: 900;
  line-height: 1.35;
}

.card-body {
  padding: 16px;
}

.card-title,
.row-title,
.rank-title {
  display: block;
  color: #111827;
  font-weight: 950;
  line-height: 1.35;
}

.card-title:hover,
.row-title:hover,
.rank-title:hover {
  color: var(--amber-700);
}

.card-body p,
.row-body p,
.rank-body p {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot span,
.meta-line span {
  color: var(--amber-800);
  background: #fef3c7;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

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

.movie-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  border-radius: 20px;
  padding: 12px;
}

.row-poster {
  min-height: 96px;
  border-radius: 14px;
}

.row-body {
  align-self: center;
}

.page-hero {
  min-height: 380px;
  display: flex;
  align-items: center;
  padding: 80px max(24px, calc((100vw - 1180px) / 2));
  color: #fff7ed;
  background: linear-gradient(120deg, var(--amber-900), var(--orange-700));
  background-size: cover;
  background-position: center;
}

.page-hero.slim {
  min-height: 310px;
}

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

.detail-hero {
  min-height: 560px;
  padding: 40px 20px 62px;
  color: #fff7ed;
  background-size: cover;
  background-position: center;
}

.detail-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
}

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

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

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

.detail-poster {
  min-height: 410px;
  border-radius: 30px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
  position: relative;
}

.detail-poster span {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--amber-600);
  color: #fff;
  font-weight: 950;
}

.detail-copy h1 {
  margin-top: 12px;
}

.info-pills {
  margin: 24px 0;
}

.detail-main {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.9fr);
  gap: 28px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #050505;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.25);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 0;
  color: #fff7ed;
  background: radial-gradient(circle at center, rgba(217, 119, 6, 0.35), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  transition: 0.25s ease;
}

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

.play-icon {
  width: 74px;
  height: 74px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--amber-600);
  box-shadow: 0 18px 44px rgba(217, 119, 6, 0.38);
  font-size: 26px;
}

.player-overlay strong {
  font-size: 18px;
}

.detail-card,
.side-card {
  margin-top: 22px;
  border-radius: 24px;
  padding: 26px;
}

.detail-card p {
  color: #374151;
  line-height: 1.9;
  font-size: 16px;
}

.review-card {
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  border-left: 6px solid var(--amber-600);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--amber-800);
  background: #fef3c7;
  font-weight: 800;
}

.side-column {
  align-self: start;
  position: sticky;
  top: 90px;
}

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

.side-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  transition: 0.2s ease;
}

.side-item:hover {
  background: #fff7ed;
}

.side-thumb {
  height: 70px;
  border-radius: 12px;
}

.side-item strong {
  display: block;
  color: #111827;
  line-height: 1.35;
}

.side-item em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 118px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border-radius: 22px;
  padding: 14px;
}

.rank-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  font-weight: 950;
}

.rank-poster {
  height: 82px;
  border-radius: 14px;
}

.small-button {
  padding: 10px 16px;
  color: #fff;
  background: var(--amber-600);
}

.site-footer {
  margin-top: 72px;
  color: #ffedd5;
  background: linear-gradient(180deg, var(--amber-900), var(--amber-950));
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 1fr);
  gap: 32px;
}

.footer-logo {
  color: #fff7ed;
  font-size: 26px;
  font-weight: 950;
}

.footer-brand p {
  max-width: 520px;
  color: #fed7aa;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-content: start;
}

.footer-links a {
  color: #fed7aa;
  font-weight: 800;
}

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

.footer-bottom {
  border-top: 1px solid rgba(254, 215, 170, 0.16);
  padding: 18px 20px;
  text-align: center;
  color: #fdba74;
}

[hidden] {
  display: none !important;
}

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

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

  .hero-cover {
    display: none;
  }

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

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

  .side-column {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero {
    min-height: 620px;
  }

  .hero-slide {
    padding: 78px 22px 70px;
  }

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

  .search-panel,
  .footer-inner,
  .rank-item {
    grid-template-columns: 1fr;
  }

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

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

  .row-poster {
    aspect-ratio: 16 / 9;
  }

  .rank-poster {
    height: 130px;
  }
}

@media (max-width: 520px) {
  .brand-text {
    font-size: 20px;
  }

  .movie-grid,
  .movie-grid.full,
  .category-grid,
  .category-grid.large {
    grid-template-columns: 1fr;
  }

  .home-section,
  .search-panel,
  .detail-main {
    padding-top: 44px;
  }

  .page-hero,
  .detail-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

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