
: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-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-500: #f97316;
  --orange-700: #c2410c;
  --text-dark: #2f1b0b;
  --text-muted: #75512d;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(120, 53, 15, 0.16);
  --shadow-strong: 0 22px 70px rgba(120, 53, 15, 0.28);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-dark);
  background: var(--amber-50);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--amber-800), var(--orange-700), var(--amber-900));
  box-shadow: 0 10px 35px rgba(62, 32, 7, 0.25);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

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

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--amber-900);
  background: var(--amber-100);
  box-shadow: inset 0 -3px 0 rgba(120, 53, 15, 0.08);
}

.brand strong {
  display: block;
  font-size: 26px;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--amber-200);
  font-size: 12px;
}

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

.nav-link {
  color: var(--amber-50);
  font-weight: 700;
  opacity: 0.9;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-200);
  opacity: 1;
}

.top-search {
  position: relative;
  display: flex;
  gap: 8px;
}

.top-search input,
.page-filter input {
  min-width: 230px;
  border: 1px solid rgba(253, 230, 138, 0.45);
  border-radius: 999px;
  padding: 11px 16px;
  color: var(--amber-50);
  background: rgba(120, 53, 15, 0.54);
  outline: none;
}

.top-search input::placeholder,
.page-filter input::placeholder {
  color: rgba(253, 230, 138, 0.82);
}

.top-search button,
.page-filter button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--amber-900);
  background: var(--amber-100);
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--amber-50);
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-panel a {
  display: block;
  padding: 10px 0;
  color: var(--amber-50);
  font-weight: 700;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-shade,
.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(120, 53, 15, 0.45), rgba(194, 65, 12, 0.32), rgba(255, 251, 235, 0.98)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 36%);
  backdrop-filter: blur(1px);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.hero-copy {
  color: var(--amber-50);
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border: 1px solid rgba(253, 230, 138, 0.45);
  border-radius: 999px;
  color: var(--amber-100);
  background: rgba(120, 53, 15, 0.45);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.05;
  font-weight: 900;
}

.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  font-weight: 900;
}

.hero p {
  max-width: 720px;
  margin: 0 0 30px;
  color: var(--amber-100);
  font-size: clamp(16px, 2.1vw, 22px);
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: var(--white);
  background: var(--amber-600);
}

.primary-button:hover {
  transform: translateY(-2px) scale(1.03);
  background: var(--amber-700);
  box-shadow: var(--shadow-strong);
}

.secondary-button {
  color: var(--amber-900);
  background: rgba(255, 255, 255, 0.92);
}

.secondary-button.dark {
  color: var(--amber-50);
  background: var(--amber-900);
}

.secondary-button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-strong);
}

.hero-poster {
  justify-self: center;
  width: min(390px, 90%);
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.24);
  border-radius: 34px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.hero-dot.active {
  width: 34px;
  background: var(--amber-200);
}

.section {
  padding: 70px 0;
}

.section-warm {
  background: linear-gradient(90deg, var(--amber-100), var(--orange-100), var(--amber-100));
}

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

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

.section-category {
  background: linear-gradient(135deg, var(--orange-50), var(--amber-50), #fef9c3);
}

.section-stats {
  position: relative;
  overflow: hidden;
  color: var(--amber-50);
  background: linear-gradient(90deg, var(--amber-800), var(--orange-700), var(--amber-900));
}

.section-head {
  margin-bottom: 36px;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 10px;
  color: var(--amber-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  font-weight: 900;
}

.section-head p {
  margin: 0;
  color: var(--amber-700);
  font-size: 18px;
}

.light-head h2,
.light-head p {
  color: var(--amber-50);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  height: 320px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-100));
}

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

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

.year-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-600);
  font-weight: 900;
  font-size: 13px;
}

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

.movie-card h3 {
  margin: 0 0 8px;
  color: var(--amber-900);
  font-size: 22px;
  line-height: 1.25;
}

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

.movie-meta,
.movie-line {
  margin: 0 0 10px;
}

.movie-meta {
  color: #6b5a48;
  font-size: 14px;
}

.movie-line {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: #4b3b2b;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--amber-800);
  background: var(--amber-100);
  font-size: 12px;
  font-weight: 800;
}

.masonry-grid {
  columns: 4 250px;
  column-gap: 26px;
}

.masonry-grid .movie-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 26px;
}

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

.compact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--amber-50), var(--orange-50));
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.compact-card img {
  flex: 0 0 82px;
  width: 82px;
  height: 82px;
  border-radius: 16px;
  object-fit: cover;
}

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card strong {
  color: var(--amber-900);
  font-size: 18px;
  line-height: 1.25;
}

.compact-card em {
  margin-top: 6px;
  color: var(--text-muted);
  font-style: normal;
  font-size: 13px;
}

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

.category-tile,
.category-card-large,
.stat-card {
  border-radius: 24px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.category-tile:hover,
.category-card-large:hover,
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
  background: rgba(255, 255, 255, 0.95);
}

.category-tile span,
.category-card-large strong {
  display: block;
  color: var(--amber-900);
  font-size: 23px;
  font-weight: 900;
}

.category-tile strong,
.category-card-large span,
.stat-card strong {
  display: block;
  margin: 8px 0;
  color: var(--amber-600);
  font-size: 34px;
  line-height: 1;
}

.category-tile small,
.category-card-large p {
  color: var(--text-muted);
}

.stat-card {
  text-align: center;
  color: var(--amber-50);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.stat-card span {
  font-weight: 800;
  color: var(--amber-100);
}

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

.rank-item a {
  display: grid;
  grid-template-columns: 62px 110px 1fr;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--amber-50), var(--orange-50));
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.rank-number {
  color: var(--amber-700);
  font-size: 28px;
  font-weight: 900;
}

.rank-item img {
  width: 110px;
  height: 86px;
  border-radius: 16px;
  object-fit: cover;
}

.rank-copy strong,
.rank-copy em,
.rank-copy small {
  display: block;
}

.rank-copy strong {
  color: var(--amber-900);
  font-size: 22px;
}

.rank-copy em {
  color: var(--text-muted);
  font-style: normal;
}

.rank-copy small {
  color: #4b3b2b;
}

.center-action {
  margin-top: 34px;
  text-align: center;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--amber-50);
  background: linear-gradient(135deg, var(--amber-900), var(--orange-700));
}

.small-hero {
  padding: 86px 0;
}

.small-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.1;
  font-weight: 900;
}

.small-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--amber-100);
  font-size: 19px;
}

.page-filter {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

.page-filter input {
  min-width: min(520px, 100%);
}

.detail-hero {
  min-height: 620px;
  background-image: var(--detail-bg);
  background-size: cover;
  background-position: center;
}

.detail-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 340px 1fr;
  align-items: center;
  gap: 48px;
  min-height: 620px;
  padding: 48px 0;
}

.detail-poster {
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--amber-100);
  font-weight: 800;
}

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

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1.05;
  font-weight: 900;
  text-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 22px;
  color: var(--amber-100);
  font-size: 22px;
}

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

.detail-meta span {
  padding: 8px 12px;
  border: 1px solid rgba(253, 230, 138, 0.45);
  border-radius: 999px;
  color: var(--amber-50);
  background: rgba(120, 53, 15, 0.38);
  font-weight: 800;
}

.detail-tags {
  margin-bottom: 26px;
}

.detail-section {
  padding-top: 54px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

.player-card,
.content-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.player-card {
  margin-bottom: 24px;
  padding: 12px;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-100));
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #090909;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--amber-900);
  background: rgba(0, 0, 0, 0.46);
  cursor: pointer;
}

.play-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  font-size: 34px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.video-shell.playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: var(--amber-100);
  font-weight: 800;
  text-align: center;
}

.content-card {
  margin-bottom: 24px;
  padding: 26px;
}

.content-card h2 {
  margin: 0 0 14px;
  color: var(--amber-900);
  font-size: 28px;
  line-height: 1.2;
}

.content-card p {
  margin: 0;
  color: #4b3b2b;
  font-size: 17px;
}

.info-list p {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--amber-100);
}

.info-list p:last-child {
  border-bottom: 0;
}

.info-list span {
  color: var(--text-muted);
  text-align: right;
}

.mini-related .compact-card {
  margin-top: 12px;
  padding: 10px;
}

.mini-related .compact-card img {
  width: 62px;
  height: 62px;
  flex-basis: 62px;
}

.related-block {
  margin-top: 30px;
}

.compact-head {
  margin-bottom: 22px;
}

.prose-card {
  max-width: 900px;
  padding: 34px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.prose-card h2 {
  margin: 0 0 12px;
  color: var(--amber-900);
  font-size: 28px;
}

.prose-card p {
  margin: 0 0 24px;
  color: #4b3b2b;
  font-size: 18px;
}

.search-status {
  margin-bottom: 22px;
  color: var(--amber-900);
  font-size: 22px;
  font-weight: 900;
}

.site-footer {
  color: var(--amber-100);
  background: linear-gradient(135deg, var(--amber-900), var(--orange-700), var(--amber-950, #451a03));
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 28px;
  padding: 54px 0 34px;
}

.footer-brand {
  margin-bottom: 12px;
  color: var(--amber-50);
  font-size: 24px;
  font-weight: 900;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--amber-50);
  font-size: 18px;
}

.site-footer p {
  margin: 0 0 10px;
  color: var(--amber-200);
}

.site-footer a {
  display: block;
  margin-bottom: 9px;
  color: var(--amber-200);
}

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

.footer-bottom {
  border-top: 1px solid rgba(253, 230, 138, 0.2);
  padding: 18px 16px 24px;
  color: var(--amber-300);
  text-align: center;
}

.hidden-by-filter {
  display: none !important;
}

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

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

@media (max-width: 900px) {
  .desktop-nav,
  .top-search {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

  .hero {
    min-height: 780px;
  }

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

  .hero-copy {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-poster {
    width: min(280px, 78%);
  }

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

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

  .timeline-list {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(320px, 80%);
    margin: 0 auto;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

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

  .hero {
    min-height: 720px;
  }

  .hero-inner {
    gap: 24px;
  }

  .hero-poster {
    display: none;
  }

  .section {
    padding: 48px 0;
  }

  .card-grid,
  .all-grid,
  .category-grid,
  .category-large-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .poster-link {
    height: 290px;
  }

  .rank-item a {
    grid-template-columns: 46px 82px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .rank-item img {
    width: 82px;
    height: 72px;
  }

  .rank-copy small {
    display: none;
  }

  .page-filter {
    flex-direction: column;
  }

  .page-filter input,
  .page-filter button {
    width: 100%;
  }

  .detail-copy h1 {
    font-size: 38px;
  }
}
