:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --yellow-500: #eab308;
  --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 14px 38px rgba(120, 53, 15, 0.16);
  --soft-shadow: 0 8px 24px rgba(146, 64, 14, 0.12);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background: linear-gradient(135deg, var(--amber-50), var(--orange-50), #fefce8);
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96), rgba(254, 243, 199, 0.96));
  border-bottom: 1px solid rgba(217, 119, 6, 0.16);
  box-shadow: 0 10px 30px rgba(146, 64, 14, 0.12);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--amber-800);
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 8px 18px rgba(234, 88, 12, 0.32);
  font-weight: 900;
}

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

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

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

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

.nav-link {
  position: relative;
  color: var(--amber-700);
  font-size: 15px;
  font-weight: 700;
  transition: color 0.22s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 99px;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
  transition: transform 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--orange-600);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.top-search {
  width: 300px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(217, 119, 6, 0.28);
  border-radius: 999px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.top-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--gray-700);
  padding: 8px 10px;
  background: transparent;
}

.top-search button,
.search-panel button,
.btn-primary,
.btn-light {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(234, 88, 12, 0.24);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.top-search button:hover,
.search-panel button:hover,
.btn-primary:hover,
.btn-light:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.3);
}

.btn-light {
  color: var(--orange-700);
  background: var(--white);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--amber-700);
  background: var(--amber-100);
  font-size: 22px;
}

.hero {
  position: relative;
  height: 610px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-100));
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.55) 45%, rgba(17, 24, 39, 0.18));
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 0 72px;
  color: var(--white);
}

.hero-copy {
  max-width: 720px;
}

.hero-label,
.section-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--white);
  background: rgba(249, 115, 22, 0.92);
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  max-width: 800px;
  margin: 18px 0 14px;
  font-size: clamp(36px, 7vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 640px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 700;
}

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

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  font-size: 32px;
  line-height: 1;
  transition: background 0.22s ease, transform 0.22s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.22s ease, background 0.22s ease;
}

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

.section {
  padding: 54px 0;
}

.section-soft {
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.72), rgba(254, 243, 199, 0.72));
}

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

.section-title h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-title p,
.page-title p,
.detail-title p {
  margin: 10px 0 0;
  color: var(--gray-600);
  line-height: 1.7;
}

.section-link {
  color: var(--orange-600);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.11);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.36);
  box-shadow: var(--shadow);
}

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

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster img,
.horizontal-card:hover img,
.related-card:hover img {
  transform: scale(1.08);
}

.poster-year,
.rank-badge {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.poster-year {
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  background: rgba(17, 24, 39, 0.78);
}

.rank-badge {
  left: 10px;
  top: 10px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  font-style: normal;
}

.poster-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(17, 24, 39, 0);
  font-size: 38px;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  background: rgba(17, 24, 39, 0.34);
}

.card-body {
  padding: 16px;
}

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

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

.card-desc {
  min-height: 48px;
  margin: 8px 0 12px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc.small {
  min-height: 0;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.card-tags span,
.detail-tags span,
.category-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--amber-700);
  background: var(--amber-100);
  font-size: 12px;
  font-weight: 700;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 13px;
}

.card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: var(--amber-600);
}

.rail-wrap {
  position: relative;
}

.movie-rail {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.movie-rail::-webkit-scrollbar {
  display: none;
}

.movie-rail .movie-card {
  width: 292px;
  min-width: 292px;
}

.rail-buttons {
  display: flex;
  gap: 8px;
}

.rail-buttons button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  font-size: 22px;
}

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

.horizontal-card {
  display: flex;
  gap: 16px;
  min-width: 0;
  border-radius: var(--radius-lg);
  padding: 14px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.horizontal-poster {
  width: 150px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--amber-100);
}

.horizontal-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.horizontal-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.horizontal-body strong {
  display: block;
  color: var(--gray-900);
  font-size: 17px;
  line-height: 1.35;
}

.horizontal-body em {
  display: -webkit-box;
  margin: 8px 0;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.55;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.horizontal-body small {
  color: var(--amber-700);
  font-weight: 700;
}

.mini-rank {
  display: inline-grid;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  place-items: center;
  border-radius: 9px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  font-size: 13px;
}

.cta-band,
.page-hero {
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-600), var(--orange-600), var(--yellow-500));
}

.cta-band {
  padding: 64px 0;
  text-align: center;
}

.cta-band h2,
.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: -0.04em;
}

.cta-band p,
.page-hero p {
  max-width: 760px;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.75;
}

.page-hero {
  padding: 78px 0;
  text-align: center;
}

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

.category-card {
  display: block;
  min-height: 180px;
  border: 1px solid rgba(217, 119, 6, 0.13);
  border-radius: var(--radius-xl);
  padding: 24px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--gray-900);
  font-size: 22px;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--gray-600);
  line-height: 1.7;
}

.category-card span {
  color: var(--orange-600);
  font-weight: 800;
}

.search-panel,
.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.search-panel form,
.filter-panel {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-panel input,
.filter-panel input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: 999px;
  padding: 13px 16px;
  outline: 0;
  color: var(--gray-700);
  background: var(--amber-50);
}

.search-empty {
  padding: 64px 20px;
  border-radius: var(--radius-lg);
  text-align: center;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
}

.detail-panel,
.side-panel {
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #030712;
}

.video-stage video {
  width: 100%;
  height: 100%;
  background: #030712;
  object-fit: contain;
}

.play-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  color: var(--white);
  background: rgba(3, 7, 18, 0.62);
}

.play-cover.is-hidden {
  display: none;
}

.play-cover span {
  display: inline-grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 24px 60px rgba(234, 88, 12, 0.42);
  font-size: 36px;
}

.play-error {
  position: absolute;
  inset: auto 24px 24px;
  display: none;
  border-radius: 14px;
  padding: 12px 16px;
  color: var(--white);
  background: rgba(17, 24, 39, 0.78);
  text-align: center;
}

.play-error.is-visible {
  display: block;
}

.detail-content {
  padding: 26px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--amber-700);
  font-size: 14px;
  font-weight: 700;
}

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

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 18px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-size: 13px;
  font-weight: 700;
}

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

.detail-section {
  border-top: 1px solid var(--gray-200);
  padding-top: 22px;
  margin-top: 22px;
}

.detail-section h2 {
  margin: 0 0 12px;
  color: var(--gray-900);
  font-size: 22px;
}

.detail-section p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.9;
}

.side-panel {
  position: sticky;
  top: 94px;
  padding: 18px;
}

.side-panel h2 {
  margin: 0 0 16px;
  color: var(--gray-900);
  font-size: 22px;
}

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

.related-card {
  display: flex;
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  padding: 8px;
  transition: background 0.2s ease;
}

.related-card:hover {
  background: var(--amber-50);
}

.related-card img {
  width: 112px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.related-card strong {
  display: -webkit-box;
  color: var(--gray-900);
  font-size: 14px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.site-footer {
  color: var(--amber-50);
  background: linear-gradient(135deg, var(--amber-900), #7c2d12, var(--orange-700));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 34px;
  padding: 48px 0;
}

.brand-light {
  color: var(--white);
}

.brand-light .brand-text small {
  color: var(--amber-200);
}

.footer-brand p,
.footer-links a,
.footer-bottom {
  color: rgba(255, 251, 235, 0.76);
}

.footer-brand p {
  max-width: 420px;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--amber-100);
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(254, 243, 199, 0.16);
  padding: 18px;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1080px) {
  .top-search {
    width: 240px;
  }

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

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

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

  .side-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

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

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

  .nav-link {
    padding: 12px 0;
  }

  .nav-link::after {
    display: none;
  }

  .top-search {
    order: 3;
    width: 100%;
  }

  .hero {
    height: 560px;
  }

  .hero-content {
    padding-bottom: 68px;
  }

  .hero-control {
    display: none;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid,
  .movie-grid.dense,
  .category-grid,
  .horizontal-list,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .brand-text small {
    display: none;
  }

  .hero {
    height: 520px;
  }

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

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

  .hero-meta span {
    font-size: 12px;
  }

  .movie-grid,
  .movie-grid.dense,
  .category-grid,
  .horizontal-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .movie-rail .movie-card {
    width: 260px;
    min-width: 260px;
  }

  .horizontal-card,
  .related-card {
    align-items: flex-start;
  }

  .horizontal-poster {
    width: 120px;
    height: 88px;
  }

  .search-panel form,
  .filter-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .detail-content {
    padding: 20px;
  }
}
