:root {
  color-scheme: light;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --orange-800: #9a3412;
  --orange-900: #7c2d12;
  --red-500: #ef4444;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(124, 45, 18, 0.16);
  --shadow-soft: 0 10px 25px rgba(124, 45, 18, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, var(--amber-50), var(--orange-50));
  color: var(--gray-900);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #b45309, #f97316 55%, #eab308);
  box-shadow: 0 8px 24px rgba(154, 52, 18, 0.28);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.brand-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--white);
  color: var(--orange-600);
  box-shadow: var(--shadow-soft);
  font-size: 25px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 21px;
  letter-spacing: 0.04em;
}

.brand-text small {
  margin-top: 4px;
  color: var(--amber-100);
  font-size: 12px;
}

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

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

.nav-link:hover,
.mobile-nav-link:hover,
.nav-link.active,
.mobile-nav-link.active {
  background: var(--white);
  color: var(--orange-600);
  box-shadow: 0 8px 16px rgba(124, 45, 18, 0.16);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  padding: 10px 20px 18px;
  background: rgba(180, 83, 9, 0.97);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

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

main {
  min-height: 60vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(105deg, #f59e0b, #fb923c 50%, #facc15);
}

.hero-art {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
}

.hero-art span {
  position: absolute;
  font-size: clamp(42px, 8vw, 94px);
  filter: blur(0.1px);
}

.hero-art span:nth-child(1) {
  top: 10%;
  left: 8%;
}

.hero-art span:nth-child(2) {
  top: 22%;
  right: 14%;
}

.hero-art span:nth-child(3) {
  bottom: 18%;
  left: 24%;
}

.hero-art span:nth-child(4) {
  bottom: 10%;
  right: 7%;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 620px;
  padding: 72px 20px 110px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
  gap: 56px;
  align-items: center;
}

.hero-copy {
  color: var(--white);
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 24px 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.hero h1 span {
  color: var(--amber-100);
}

.hero-lead {
  max-width: 680px;
  color: var(--amber-50);
  font-size: 20px;
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.25s ease;
}

.btn-primary {
  background: var(--white);
  color: var(--orange-600);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--orange-800);
  color: var(--white);
}

.btn-gradient {
  color: var(--white);
  background: linear-gradient(90deg, var(--orange-500), var(--amber-500));
}

.hero-panel {
  position: relative;
}

.hero-slider {
  position: relative;
  min-height: 460px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: 0.55s ease;
  pointer-events: none;
}

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

.hero-card {
  position: relative;
  min-height: 460px;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(124, 45, 18, 0.52), rgba(251, 191, 36, 0.32));
  box-shadow: 0 35px 75px rgba(124, 45, 18, 0.35);
  transition: 0.3s ease;
}

.hero-card:hover {
  transform: scale(1.025);
}

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

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.78));
}

.hero-card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  color: var(--white);
  padding: 30px;
}

.hero-card-content h2 {
  margin: 12px 0 8px;
  font-size: 28px;
  line-height: 1.2;
}

.hero-card-content p {
  color: var(--amber-100);
  line-height: 1.65;
}

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

.hero-chip-row span,
.tag-row span,
.detail-tags span,
.filter-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.hero-ribbon {
  position: absolute;
  top: -16px;
  right: -18px;
  z-index: 4;
  transform: rotate(12deg);
  background: var(--red-500);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
}

.hero-dot.active {
  width: 28px;
  background: var(--white);
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  color: var(--amber-50);
}

.section {
  padding: 64px 0;
}

.section-soft {
  background: linear-gradient(180deg, var(--amber-50), var(--orange-50));
}

.section-white {
  background: var(--white);
}

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

.section-title h2,
.page-title h1 {
  margin: 12px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
}

.section-title p,
.page-title p {
  margin: 0;
  color: var(--gray-600);
  font-size: 17px;
  line-height: 1.75;
}

.section-kicker {
  background: var(--orange-100);
  color: var(--orange-700);
}

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

.movie-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: 0.28s ease;
}

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

.movie-card-link {
  display: block;
  height: 100%;
}

.movie-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-200), var(--orange-500));
}

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

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

.score-badge,
.type-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 9px;
  backdrop-filter: blur(10px);
}

.score-badge {
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--orange-600);
}

.type-badge {
  right: 12px;
  background: rgba(249, 115, 22, 0.92);
  color: var(--white);
}

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

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

.movie-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
  transition: 0.25s ease;
}

.movie-card:hover h3 {
  color: var(--orange-600);
}

.movie-one-line {
  color: var(--gray-600);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 52px;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span,
.detail-tags span {
  background: var(--orange-50);
  color: var(--orange-700);
}

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

.category-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  border-radius: 24px;
  padding: 20px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: 0.25s ease;
}

.category-pill:hover {
  transform: translateY(-5px);
  color: var(--orange-600);
  box-shadow: var(--shadow);
}

.category-pill span {
  font-size: 22px;
  font-weight: 900;
}

.category-pill small {
  color: var(--gray-500);
  font-weight: 800;
}

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

.rank-panel {
  border-radius: 28px;
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.rank-panel h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(90deg, var(--amber-50), var(--orange-50));
  transition: 0.25s ease;
}

.rank-item:hover {
  transform: translateX(5px);
  background: linear-gradient(90deg, var(--orange-100), var(--amber-100));
}

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

.rank-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.rank-info {
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 700;
}

.page-hero {
  padding: 64px 0 34px;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-100));
}

.page-title {
  max-width: 900px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px 190px;
  gap: 12px;
  margin: 28px 0 0;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 2px solid transparent;
  border-radius: 18px;
  padding: 14px 16px;
  background: var(--white);
  color: var(--gray-800);
  outline: none;
  box-shadow: var(--shadow-soft);
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--orange-500);
}

.no-results {
  display: none;
  padding: 36px;
  text-align: center;
  border-radius: 26px;
  background: var(--white);
  color: var(--gray-600);
  box-shadow: var(--shadow-soft);
}

.no-results.show {
  display: block;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.55), transparent 32%), linear-gradient(125deg, var(--orange-900), var(--orange-600) 58%, var(--amber-500));
  color: var(--white);
}

.detail-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 20px 84px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-300), var(--orange-600));
  min-height: 420px;
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.28);
}

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

.detail-copy h1 {
  margin: 16px 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.1;
}

.detail-copy p {
  color: var(--amber-50);
  line-height: 1.85;
  font-size: 18px;
}

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

.detail-meta span {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.17);
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.detail-layout {
  max-width: 1200px;
  margin: -42px auto 0;
  padding: 0 20px 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  position: relative;
  z-index: 3;
}

.detail-main,
.detail-side,
.content-card {
  border-radius: 30px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.detail-main {
  overflow: hidden;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.68));
  cursor: pointer;
  transition: 0.25s ease;
}

.player-cover:hover {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.75));
}

.player-cover .play-icon {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange-500), var(--amber-500));
  box-shadow: 0 20px 35px rgba(249, 115, 22, 0.35);
  font-size: 30px;
}

.player-cover strong {
  font-size: 22px;
}

.player-shell.active .player-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.content-card {
  padding: 30px;
  margin: 0 0 24px;
}

.content-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.content-card p {
  color: var(--gray-700);
  font-size: 17px;
  line-height: 1.9;
}

.review-box {
  border-left: 5px solid var(--orange-500);
  background: linear-gradient(135deg, var(--orange-50), var(--amber-50));
}

.detail-side {
  padding: 24px;
  align-self: start;
  position: sticky;
  top: 92px;
}

.detail-side h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

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

.side-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: var(--orange-50);
  transition: 0.25s ease;
}

.side-card:hover {
  transform: translateY(-3px);
  background: var(--amber-100);
}

.side-card-thumb {
  height: 62px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-200), var(--orange-500));
}

.side-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-card strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-card small {
  display: block;
  margin-top: 5px;
  color: var(--gray-500);
}

.breadcrumb {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 800;
}

.breadcrumb a:hover {
  color: var(--white);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 14px;
  font-weight: 900;
  background: var(--white);
  color: var(--orange-700);
  box-shadow: var(--shadow-soft);
}

.pagination span {
  background: linear-gradient(135deg, var(--orange-500), var(--amber-500));
  color: var(--white);
}

.site-footer {
  background: linear-gradient(135deg, var(--orange-900), var(--orange-800));
  color: var(--white);
  padding: 52px 20px 24px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  margin-bottom: 14px;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: var(--amber-100);
  line-height: 1.8;
}

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

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

.footer-bottom {
  max-width: 1200px;
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
  color: var(--amber-200);
}

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

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

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

  .detail-side {
    position: static;
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

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

  .hero-inner {
    min-height: auto;
    padding-top: 50px;
  }

  .hero-slider,
  .hero-card,
  .hero-card img {
    min-height: 380px;
    height: 380px;
  }

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

  .filter-bar {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .top-nav {
    padding: 0 14px;
  }

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

  .brand-text small {
    display: none;
  }

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

  .hero-lead {
    font-size: 17px;
  }

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

  .section-head {
    display: block;
  }

  .rank-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .rank-info {
    grid-column: 2;
  }

  .detail-hero-inner {
    padding-top: 34px;
  }

  .detail-poster,
  .detail-poster img {
    min-height: 320px;
    height: 320px;
  }

  .detail-layout {
    padding-left: 14px;
    padding-right: 14px;
  }

  .content-card {
    padding: 22px;
  }
}
