@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700;800&display=swap");

:root {
  --red-950: #3b0707;
  --red-900: #6d1717;
  --red-800: #891f1f;
  --red-700: #b42323;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --orange-50: #fff7ed;
  --ink: #261111;
  --muted: #745b50;
  --card: #fffaf0;
  --line: rgba(137, 31, 31, 0.14);
  --shadow: 0 22px 70px rgba(88, 22, 22, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--amber-50), var(--orange-50) 46%, #fff7ec);
  font-family: "Noto Serif SC", "Microsoft YaHei", "PingFang SC", serif;
}

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

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

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

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--amber-100);
  background: linear-gradient(135deg, var(--red-900), var(--red-700));
  box-shadow: 0 12px 24px rgba(137, 31, 31, 0.25);
  font-weight: 800;
  font-size: 22px;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  color: var(--red-900);
  font-size: 24px;
  line-height: 1;
}

.brand-text em {
  color: var(--red-700);
  font-style: normal;
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  color: var(--red-900);
  font-weight: 700;
}

.main-nav a {
  transition: color 0.25s ease, transform 0.25s ease;
}

.main-nav a:hover {
  color: var(--red-700);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
}

.header-search input {
  width: 180px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--red-900);
  padding: 8px 6px 8px 12px;
  font-family: inherit;
}

.header-search button,
.search-panel button,
.primary-button,
.secondary-button,
.pager a,
.player-mask {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.header-search button,
.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--red-800), var(--red-700));
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(180, 35, 35, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.header-search button:hover,
.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(180, 35, 35, 0.32);
}

.secondary-button {
  color: var(--red-900);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  color: var(--red-900);
  background: transparent;
  border: 0;
  font-size: 28px;
}

.hero {
  min-height: 640px;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--red-950);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 30%, rgba(245, 158, 11, 0.32), transparent 34%),
    linear-gradient(90deg, rgba(45, 8, 8, 0.94), rgba(63, 12, 12, 0.76) 42%, rgba(0, 0, 0, 0.35));
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  align-items: center;
  gap: 52px;
}

.hero-copy {
  max-width: 730px;
  padding-top: 40px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid rgba(253, 230, 138, 0.45);
  border-radius: 999px;
  color: var(--amber-200);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.hero h1,
.page-hero h1,
.detail-title h1 {
  margin: 20px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: -1px;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.hero p {
  margin: 0 0 22px;
  max-width: 640px;
  color: #fff2d6;
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.75;
}

.hero-actions,
.section-head,
.movie-actions,
.filter-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

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

.hero-tags a,
.tag-row span,
.detail-tags span,
.filter-chip {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags a {
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(253, 230, 138, 0.35);
}

.hero-panel {
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
}

.hero-panel img {
  aspect-ratio: 3 / 4;
  width: 100%;
  object-fit: cover;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--red-900), var(--amber-500));
}

.hero-panel strong {
  display: block;
  margin-top: 14px;
  font-size: 20px;
}

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

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

.hero-dot.is-active {
  background: var(--amber-200);
}

main {
  min-height: 60vh;
}

.section,
.page-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 60px 0;
}

.section-head {
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-title {
  margin: 0;
  color: var(--red-900);
  font-size: clamp(28px, 4vw, 42px);
}

.section-lead {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.85;
  font-size: 17px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 250, 240, 0.92);
  box-shadow: 0 18px 45px rgba(88, 22, 22, 0.09);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(180, 35, 35, 0.28);
  box-shadow: var(--shadow);
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--red-900), var(--amber-500));
}

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

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

.poster-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  color: #fff;
  background: rgba(109, 23, 23, 0.86);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

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

.movie-title {
  display: block;
  color: var(--red-900);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
}

.movie-title:hover {
  color: var(--red-700);
}

.movie-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.movie-card p,
.category-card p,
.rank-card p,
.detail-text p {
  color: var(--muted);
  line-height: 1.8;
}

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

.tag-row span,
.detail-tags span {
  color: var(--red-800);
  background: rgba(253, 230, 138, 0.65);
}

.feature-band {
  background: linear-gradient(135deg, var(--red-950), var(--red-800));
  color: #fff;
}

.feature-band .section-title,
.feature-band .section-lead {
  color: #fff2d6;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 82px 96px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(253, 230, 138, 0.18);
}

.rank-card.light {
  background: rgba(255, 250, 240, 0.92);
  border-color: var(--line);
}

.rank-no {
  color: var(--amber-200);
  font-size: 34px;
  font-weight: 900;
  text-align: center;
}

.rank-card.light .rank-no {
  color: var(--red-700);
}

.rank-card img {
  width: 96px;
  height: 128px;
  object-fit: cover;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--red-900), var(--amber-500));
}

.rank-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.page-hero {
  background: linear-gradient(135deg, var(--red-950), var(--red-800));
  color: #fff;
  padding: 70px 0;
}

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

.page-hero p {
  max-width: 790px;
  color: #fff0cc;
  line-height: 1.85;
  font-size: 18px;
}

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

.category-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 250, 240, 0.95);
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(88, 22, 22, 0.09);
}

.category-card h2,
.category-card h3 {
  margin: 0;
  color: var(--red-900);
}

.category-card strong {
  color: var(--red-700);
  font-size: 28px;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px 160px auto;
  gap: 12px;
  padding: 18px;
  margin-bottom: 28px;
  border-radius: 26px;
  background: rgba(255, 250, 240, 0.96);
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(88, 22, 22, 0.08);
}

.search-panel input,
.search-panel select {
  width: 100%;
  border: 1px solid rgba(137, 31, 31, 0.18);
  border-radius: 16px;
  padding: 13px 14px;
  outline: 0;
  color: var(--red-900);
  background: #fff;
  font-family: inherit;
}

.search-panel button {
  color: #fff;
  background: var(--red-700);
  border-radius: 16px;
  padding: 13px 18px;
  font-weight: 800;
}

.search-count {
  margin-bottom: 20px;
  color: var(--muted);
}

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

.pager a,
.pager span {
  min-width: 42px;
  padding: 10px 14px;
  border-radius: 14px;
  text-align: center;
  background: rgba(255, 250, 240, 0.96);
  border: 1px solid var(--line);
  color: var(--red-900);
  font-weight: 800;
}

.pager .active {
  color: #fff;
  background: var(--red-700);
}

.detail-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: var(--red-950);
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(4px);
  transform: scale(1.03);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(45, 8, 8, 0.95), rgba(63, 12, 12, 0.78), rgba(0, 0, 0, 0.42));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: center;
  gap: 42px;
  padding: 72px 0;
}

.detail-poster {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.32);
  background: linear-gradient(135deg, var(--red-900), var(--amber-500));
}

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

.detail-title p {
  color: #fff0cc;
  line-height: 1.9;
  font-size: 18px;
}

.player-shell {
  background: #120605;
  padding: 48px 0;
}

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

.player-stage {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #050202;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

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

.player-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(45, 8, 8, 0.75));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--red-900);
  background: var(--amber-100);
  font-size: 32px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.25);
}

.player-mask strong {
  font-size: 24px;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

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

.content-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 250, 240, 0.96);
  padding: 28px;
  box-shadow: 0 18px 48px rgba(88, 22, 22, 0.08);
}

.content-card h2,
.content-card h3 {
  margin-top: 0;
  color: var(--red-900);
}

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

.side-link {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.side-link img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red-900), var(--amber-500));
}

.side-link strong {
  display: block;
  color: var(--red-900);
  line-height: 1.4;
}

.side-link span {
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  color: var(--amber-100);
  background: linear-gradient(135deg, var(--red-950), var(--red-900));
  margin-top: 40px;
}

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

.footer-brand {
  font-size: 26px;
  font-weight: 900;
  color: var(--amber-200);
}

.site-footer p {
  max-width: 560px;
  color: #ffe8b2;
  line-height: 1.8;
}

.site-footer h3 {
  color: var(--amber-200);
  margin-top: 0;
}

.site-footer a {
  display: block;
  margin: 10px 0;
  color: #ffe8b2;
}

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

@media (max-width: 1020px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 14px 0;
  }

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

  .main-nav,
  .header-search {
    display: none;
    width: 100%;
  }

  .main-nav.is-open,
  .header-search.is-open {
    display: flex;
  }

  .main-nav.is-open {
    flex-wrap: wrap;
    margin-left: 0;
  }

  .header-search input {
    width: 100%;
  }

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

  .hero-panel {
    display: none;
  }

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

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

@media (max-width: 620px) {
  .brand-text strong {
    font-size: 20px;
  }

  .hero,
  .hero-content {
    min-height: 600px;
  }

  .hero h1,
  .page-hero h1,
  .detail-title h1 {
    font-size: 36px;
  }

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

  .rank-card {
    grid-template-columns: 54px 72px 1fr;
  }

  .rank-card img {
    width: 72px;
    height: 96px;
  }

  .rank-card .primary-button {
    grid-column: 1 / -1;
    text-align: center;
  }

  .detail-hero-inner {
    padding: 44px 0;
  }
}
