* {
  box-sizing: border-box;
}

:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --brown-950: #1c0f04;
  --text: #2a1606;
  --muted: #7c4a12;
  --panel: rgba(255, 255, 255, 0.86);
  --line: rgba(146, 64, 14, 0.18);
  --shadow: 0 24px 70px rgba(120, 53, 15, 0.22);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.28), transparent 36rem),
    linear-gradient(180deg, #fff7ed 0%, var(--amber-50) 36%, #fffaf1 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-500), var(--amber-600));
  box-shadow: 0 18px 46px rgba(146, 64, 14, 0.28);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.top-search input {
  width: 190px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 8px 10px;
}

.top-search input::placeholder {
  color: rgba(255, 255, 255, 0.74);
}

.top-search button,
.primary-button,
.secondary-button,
.section-link,
.filter-panel button,
.player-start {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search button {
  padding: 8px 14px;
  color: var(--amber-900);
  background: #fff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 99px;
}

main {
  min-height: 70vh;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 18% 20%, rgba(253, 186, 116, 0.36), transparent 28rem),
    linear-gradient(135deg, #411703 0%, #78350f 48%, #f97316 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(0deg, var(--amber-50), transparent);
  pointer-events: none;
}

.hero-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 48px;
  padding: 64px 0 88px;
}

.hero-copy {
  animation: rise 0.75s ease both;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber-600);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

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

.hero h1 {
  max-width: 780px;
  font-size: clamp(42px, 7vw, 78px);
  text-shadow: 0 18px 56px rgba(0, 0, 0, 0.32);
}

.hero-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.8;
}

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

.primary-button,
.secondary-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
}

.primary-button {
  color: var(--amber-950, #2a1606);
  background: linear-gradient(90deg, #fef3c7, #fbbf24);
  box-shadow: 0 18px 40px rgba(251, 191, 36, 0.32);
}

.secondary-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.secondary-button:hover,
.section-link:hover,
.filter-panel button:hover,
.player-start:hover {
  transform: translateY(-2px);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.38);
  opacity: 0;
  transform: scale(0.96) translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-slide img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(30, 12, 2, 0.96) 0%, rgba(30, 12, 2, 0.58) 38%, rgba(30, 12, 2, 0.1) 72%),
    radial-gradient(circle at 18% 12%, rgba(251, 191, 36, 0.24), transparent 20rem);
  z-index: 1;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  padding: 34px;
}

.hero-slide-content h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 42px);
}

.hero-slide-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 22px;
}

.hero-tags span,
.tag-row span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  padding: 7px 10px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
}

.hero-dots {
  position: absolute;
  left: 34px;
  bottom: -34px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

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

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

.content-section,
.page-section,
.detail-section {
  width: min(1180px, calc(100% - 32px));
  margin: 48px auto;
}

.content-section:first-of-type {
  margin-top: 64px;
}

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

.section-heading h2,
.page-title h1,
.detail-section h2 {
  margin: 0;
  color: var(--amber-900);
  font-size: clamp(28px, 3vw, 42px);
}

.section-heading p,
.page-title p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-link {
  color: #fff;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-500));
  box-shadow: 0 16px 36px rgba(217, 119, 6, 0.24);
  white-space: nowrap;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 16px 40px rgba(146, 64, 14, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 119, 6, 0.36);
  box-shadow: var(--shadow);
}

.poster-link {
  display: block;
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.55), rgba(146, 64, 14, 0.62)),
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.35), transparent 12rem);
}

.poster-frame img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.2s ease;
}

.poster-frame img.is-missing {
  opacity: 0;
}

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.28);
}

.movie-info {
  padding: 16px;
}

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

.movie-info h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

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

.movie-desc {
  display: -webkit-box;
  min-height: 48px;
  margin: 0;
  overflow: hidden;
  color: #6b3b0b;
  font-size: 14px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag-row span,
.meta-pill {
  padding: 6px 9px;
  color: var(--amber-800);
  background: rgba(251, 191, 36, 0.2);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(140px, 0.55fr)) auto;
  gap: 12px;
  padding: 18px;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 34px rgba(146, 64, 14, 0.1);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(146, 64, 14, 0.2);
  border-radius: 14px;
  outline: none;
  padding: 0 13px;
  color: var(--text);
  background: #fffaf1;
}

.filter-panel button {
  min-height: 44px;
  padding: 0 20px;
  color: #fff;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-500));
}

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

.category-card {
  min-height: 210px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.28), transparent 12rem),
    linear-gradient(135deg, var(--amber-700), var(--orange-500));
  box-shadow: 0 24px 70px rgba(146, 64, 14, 0.22);
  transition: transform 0.25s ease;
}

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

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

.category-card p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 26px rgba(146, 64, 14, 0.08);
}

.rank-index {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-500));
  font-weight: 900;
}

.rank-item h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.rank-score {
  color: var(--amber-700);
  font-weight: 900;
  white-space: nowrap;
}

.detail-hero {
  background:
    radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.26), transparent 26rem),
    linear-gradient(135deg, #3b1603, #7c2d12 46%, #f97316);
  color: #fff;
}

.detail-hero-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  background: linear-gradient(135deg, var(--amber-500), var(--amber-900));
}

.detail-poster img {
  aspect-ratio: 2 / 3;
  height: auto;
  object-fit: cover;
}

.detail-copy h1 {
  font-size: clamp(38px, 5vw, 68px);
}

.detail-copy p {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.85;
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.detail-copy .meta-pill {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
}

.breadcrumb {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

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

.player-section {
  width: min(1040px, calc(100% - 32px));
  margin: 48px auto;
}

.player-section h2,
.text-panel h2,
.related-title {
  color: var(--amber-900);
}

.cinema-player {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #0c0602;
  box-shadow: 0 34px 110px rgba(47, 19, 2, 0.32);
}

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

.player-start {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  background:
    radial-gradient(circle at 50% 45%, rgba(251, 191, 36, 0.32), transparent 15rem),
    rgba(12, 6, 2, 0.48);
  border-radius: 0;
  backdrop-filter: blur(2px);
}

.player-start[hidden] {
  display: none;
}

.play-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--amber-900);
  background: linear-gradient(135deg, #fff7ed, #fbbf24);
  box-shadow: 0 20px 50px rgba(251, 191, 36, 0.36);
  font-size: 30px;
}

.text-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.text-panel article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 32px rgba(146, 64, 14, 0.09);
}

.text-panel p {
  color: #5f3710;
  line-height: 1.9;
}

.site-footer {
  margin-top: 80px;
  color: var(--amber-100);
  background: linear-gradient(180deg, var(--amber-900), #2b1202);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
}

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

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

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(253, 230, 138, 0.18);
  color: var(--amber-200);
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: 20px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
}

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1020px) {
  .top-search {
    display: none;
  }

  .hero-shell,
  .detail-hero-shell,
  .text-panel {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    min-height: 480px;
  }

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

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

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

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

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

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

  .site-nav a {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
  }

  .hero-shell {
    min-height: auto;
    padding: 42px 0 74px;
  }

  .hero-slider {
    min-height: 420px;
  }

  .hero-slide-content {
    padding: 24px;
  }

  .section-heading,
  .page-title {
    display: block;
  }

  .section-link {
    margin-top: 14px;
  }

  .movie-grid,
  .category-grid,
  .footer-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

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

  .detail-hero-shell {
    padding: 34px 0;
  }

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