:root {
  --bg: #fff8ed;
  --panel: #ffffff;
  --panel-soft: #fffbeb;
  --ink: #2f1b0c;
  --muted: #7c5b34;
  --line: #f3d494;
  --amber: #f59e0b;
  --amber-dark: #b45309;
  --orange: #ea580c;
  --red: #7f1d1d;
  --shadow: 0 24px 80px rgba(146, 64, 14, 0.16);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  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(--ink);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.32), transparent 34rem),
    linear-gradient(180deg, #fff7ed 0%, #fffbeb 45%, #fff 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 251, 235, 0.88);
  border-bottom: 1px solid rgba(217, 119, 6, 0.18);
}

.nav-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 900;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.35);
}

.brand-name {
  font-size: 24px;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #92400e, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.search-form {
  position: relative;
  flex: 1;
  max-width: 520px;
}

.search-form input {
  width: 100%;
  border: 2px solid #f7d88b;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  padding: 12px 52px 12px 18px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.search-form button {
  position: absolute;
  right: 6px;
  top: 50%;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  border-radius: 50%;
  cursor: pointer;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.main-nav a,
.mobile-nav a {
  color: #7c2d12;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.mobile-nav a:hover,
.main-nav a.is-active {
  color: var(--orange);
}

.menu-toggle {
  display: none;
  border: 0;
  color: #7c2d12;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mobile-nav.is-open {
  display: grid;
}

.search-panel {
  position: fixed;
  inset: 78px 18px auto 18px;
  display: none;
  justify-content: center;
  z-index: 80;
}

.search-panel.is-open {
  display: flex;
}

.search-panel-card {
  width: min(760px, 100%);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.search-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: linear-gradient(90deg, #fffbeb, #fff7ed);
  border-bottom: 1px solid rgba(217, 119, 6, 0.16);
}

.search-panel-head button {
  border: 0;
  color: #7c2d12;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}

.search-result-list {
  max-height: min(68vh, 620px);
  overflow: auto;
  padding: 14px;
}

.search-result-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.search-result-item:hover {
  background: #fffbeb;
  transform: translateY(-2px);
}

.search-result-item img {
  width: 74px;
  height: 104px;
  object-fit: cover;
  border-radius: 14px;
  background: #fde68a;
}

.search-result-item strong {
  display: block;
  margin-bottom: 5px;
}

.search-result-item small,
.search-result-item p {
  color: var(--muted);
}

.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 22px 0;
}

.hero-carousel {
  position: relative;
  max-width: 1280px;
  min-height: 610px;
  margin: 26px auto 0;
  overflow: hidden;
  border-radius: 36px;
  box-shadow: var(--shadow);
  background: #451a03;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: 34px;
  padding: 64px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(67, 20, 7, 0.92), rgba(120, 53, 15, 0.74) 45%, rgba(251, 191, 36, 0.2)),
    radial-gradient(circle at 18% 16%, rgba(251, 191, 36, 0.52), transparent 26rem);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(1.08) contrast(1.05);
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #fff7ed;
  background: rgba(251, 191, 36, 0.22);
  border: 1px solid rgba(253, 230, 138, 0.5);
  border-radius: 999px;
  padding: 9px 15px;
  font-weight: 800;
}

.hero-content h1,
.hero-content h2 {
  color: #fff;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  margin: 24px 0 18px;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 720px;
  color: #ffedd5;
  font-size: 18px;
  line-height: 1.8;
  margin: 0 0 24px;
}

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

.btn-primary,
.btn-secondary,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.32);
}

.btn-secondary {
  color: #fff7ed;
  border: 1px solid rgba(253, 230, 138, 0.54);
  background: rgba(255, 255, 255, 0.12);
}

.btn-light {
  color: #7c2d12;
  background: #fff7ed;
}

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

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

.hero-tags span {
  color: #fff7ed;
  border: 1px solid rgba(253, 230, 138, 0.42);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 7px 12px;
}

.hero-poster {
  justify-self: end;
  width: min(360px, 100%);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 30px;
  border: 8px solid rgba(255, 247, 237, 0.24);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.44);
}

.hero-dots {
  position: absolute;
  left: 64px;
  bottom: 36px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 38px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.42);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: #fbbf24;
}

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

.section-kicker {
  color: var(--amber-dark);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head h2,
.page-title h1,
.detail-copy h1 {
  margin: 6px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-head p,
.page-title p,
.detail-copy p {
  color: var(--muted);
  line-height: 1.8;
}

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

.category-chip {
  position: relative;
  overflow: hidden;
  min-height: 140px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(217, 119, 6, 0.2);
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
  box-shadow: 0 16px 50px rgba(146, 64, 14, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-chip:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 62px rgba(146, 64, 14, 0.16);
}

.category-chip::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -44px;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.42), transparent 70%);
}

.category-chip strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.category-chip span,
.category-chip p {
  color: var(--muted);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 60px rgba(146, 64, 14, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 72px rgba(146, 64, 14, 0.18);
  border-color: rgba(245, 158, 11, 0.42);
}

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

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-shine {
  position: absolute;
  inset: auto 0 0 0;
  height: 44%;
  background: linear-gradient(180deg, transparent, rgba(69, 26, 3, 0.72));
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #dc2626, #f97316);
  border-radius: 12px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(127, 29, 29, 0.28);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--amber-dark);
  font-size: 12px;
  font-weight: 800;
}

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

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

.movie-card p {
  min-height: 54px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

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

.tag-row span,
.info-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 9px;
  color: #92400e;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 800;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 28px;
  align-items: start;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 44px 76px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 42px rgba(146, 64, 14, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: rgba(245, 158, 11, 0.4);
}

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

.rank-row img {
  width: 76px;
  height: 106px;
  object-fit: cover;
  border-radius: 14px;
  background: #fde68a;
}

.rank-info strong {
  display: block;
  margin-bottom: 7px;
  font-size: 18px;
}

.rank-info small {
  color: var(--muted);
  line-height: 1.6;
}

.feature-panel,
.filter-panel,
.content-panel,
.detail-card {
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 66px rgba(146, 64, 14, 0.1);
}

.feature-panel {
  position: sticky;
  top: 98px;
  padding: 24px;
}

.feature-panel h3 {
  margin: 0 0 14px;
  font-size: 24px;
}

.feature-panel p {
  color: var(--muted);
  line-height: 1.8;
}

.filter-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0 28px;
  padding: 18px;
}

.filter-panel input {
  flex: 1;
  min-height: 46px;
  border: 2px solid #f7d88b;
  border-radius: 999px;
  outline: none;
  padding: 0 18px;
}

.filter-panel input:focus {
  border-color: var(--amber);
}

.filter-panel span {
  color: var(--muted);
  font-weight: 800;
}

.page-title {
  display: grid;
  gap: 10px;
  margin: 34px 0 20px;
  padding: 38px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 12% 12%, rgba(251, 191, 36, 0.32), transparent 20rem),
    linear-gradient(135deg, #fff7ed, #fffbeb);
  border: 1px solid rgba(217, 119, 6, 0.18);
  box-shadow: var(--shadow);
}

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

.category-card {
  min-height: 230px;
  padding: 26px;
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(255, 255, 255, 0.94)),
    radial-gradient(circle at 90% 10%, rgba(251, 191, 36, 0.22), transparent 12rem);
  box-shadow: 0 18px 60px rgba(146, 64, 14, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 72px rgba(146, 64, 14, 0.15);
}

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

.category-card p {
  color: var(--muted);
  line-height: 1.8;
}

.category-card .card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  color: var(--amber-dark);
  font-weight: 900;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  margin: 26px 0 18px;
  font-size: 14px;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: 30px;
  align-items: stretch;
}

.player-panel {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: #1c0a02;
  box-shadow: var(--shadow);
  min-height: 420px;
}

.movie-video {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  object-fit: cover;
  background: #1c0a02;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(69, 26, 3, 0.2), rgba(69, 26, 3, 0.74));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover span {
  display: grid;
  place-items: center;
  gap: 12px;
  font-weight: 900;
}

.play-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #7c2d12;
  background: #fff7ed;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
  font-size: 28px;
}

.detail-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.detail-copy .lead {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.content-panel {
  margin-top: 30px;
  padding: 32px;
}

.content-panel h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.content-panel p {
  color: #5f3b18;
  line-height: 2;
  font-size: 17px;
}

.detail-poster {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding: 16px;
  border-radius: 24px;
  background: #fffbeb;
  border: 1px solid rgba(217, 119, 6, 0.16);
}

.detail-poster img {
  width: 170px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 18px;
  background: #fde68a;
}

.detail-poster strong {
  display: block;
  font-size: 22px;
  margin-bottom: 8px;
}

.detail-poster p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.not-found {
  display: none;
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

.not-found.is-show {
  display: block;
}

.site-footer {
  margin-top: 72px;
  color: #fffbeb;
  background: linear-gradient(180deg, #78350f, #451a03);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 22px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 14px;
  color: #fde68a;
}

.footer-grid p,
.footer-grid a {
  display: block;
  color: #ffedd5;
  line-height: 1.9;
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 22px 28px;
  color: #fed7aa;
  border-top: 1px solid rgba(254, 215, 170, 0.18);
}

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

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

  .search-form {
    max-width: none;
  }

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

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

@media (max-width: 860px) {
  .nav-shell {
    flex-wrap: wrap;
  }

  .brand-name {
    font-size: 21px;
  }

  .search-form {
    order: 3;
    flex-basis: 100%;
  }

  .hero-carousel {
    min-height: 760px;
    border-radius: 28px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 42px 28px 70px;
  }

  .hero-poster {
    justify-self: start;
    width: 230px;
  }

  .hero-dots {
    left: 28px;
  }

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

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

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

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

@media (max-width: 560px) {
  .page-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-carousel {
    margin-left: 12px;
    margin-right: 12px;
    min-height: 720px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 38px;
  }

  .hero-content p {
    font-size: 16px;
  }

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

  .section-head {
    display: block;
  }

  .filter-panel {
    display: block;
  }

  .filter-panel input {
    width: 100%;
    margin-top: 12px;
  }

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

  .rank-row img {
    width: 66px;
    height: 92px;
  }

  .detail-card,
  .content-panel,
  .page-title {
    padding: 24px;
  }

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

  .detail-poster img {
    width: 100%;
    max-width: 220px;
  }
}
