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

:root {
  --bg: #fff7e8;
  --bg-soft: #fff1d6;
  --paper: #fffaf0;
  --paper-strong: #fff3d2;
  --ink: #2a1714;
  --muted: #7f5646;
  --red: #8f1d1d;
  --red-dark: #4a0d0d;
  --gold: #d99f3e;
  --gold-soft: #ffdd8a;
  --line: rgba(116, 45, 30, 0.18);
  --shadow: 0 24px 60px rgba(78, 20, 13, 0.16);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Serif SC", "Microsoft YaHei", serif;
  background:
    radial-gradient(circle at top left, rgba(255, 223, 147, 0.55), transparent 34rem),
    radial-gradient(circle at top right, rgba(143, 29, 29, 0.10), transparent 26rem),
    linear-gradient(180deg, #fff8e9 0%, #fff2d9 54%, #fbe5bc 100%);
  min-height: 100vh;
}

body.is-locked {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 231, 174, 0.22);
  background: rgba(56, 12, 12, 0.86);
  color: #fff6dd;
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 36px rgba(52, 11, 8, 0.24);
}

.header-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.site-logo::before,
.footer-logo::before {
  content: "";
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 34% 30%, #fff3c8 0 18%, transparent 19%),
    linear-gradient(135deg, #ffda78, #a71f1f 65%, #4f0b0b);
  box-shadow: inset 0 0 0 1px rgba(255, 238, 190, 0.62), 0 10px 25px rgba(0, 0, 0, 0.25);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 1;
}

.main-nav a,
.mobile-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(255, 246, 221, 0.86);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.main-nav a:hover,
.main-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
  color: #3b0b0b;
  background: linear-gradient(135deg, #ffe7a5, #f8be56);
  transform: translateY(-1px);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 231, 174, 0.24);
  border-radius: 16px;
  background: rgba(255, 248, 226, 0.12);
  color: #fff6dd;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 18px;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.hero-shell {
  position: relative;
  width: min(1240px, calc(100% - 28px));
  min-height: 650px;
  margin: 28px auto 0;
  overflow: hidden;
  border-radius: 34px;
  background: #360909;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 420px;
  align-items: center;
  gap: 48px;
  padding: 80px min(7vw, 80px);
  color: #fff6dc;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.hero-bg::after,
.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 225, 149, 0.22), transparent 18rem),
    linear-gradient(90deg, rgba(36, 7, 7, 0.96), rgba(49, 8, 8, 0.65) 52%, rgba(40, 8, 8, 0.38));
}

.hero-copy,
.hero-poster,
.detail-poster,
.detail-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 7px 13px;
  border: 1px solid rgba(255, 223, 150, 0.38);
  border-radius: 999px;
  color: #ffe3a0;
  background: rgba(65, 15, 15, 0.42);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
}

.hero-copy h1,
.sub-hero h1,
.detail-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.35rem, 5vw, 5.8rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero-copy p,
.sub-hero p,
.detail-copy p {
  max-width: 760px;
  color: rgba(255, 247, 224, 0.88);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.9;
}

.hero-tags,
.tag-row,
.detail-meta,
.footer-links,
.inline-links,
.sub-actions,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags,
.hero-actions,
.detail-meta,
.wide-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #7b2a16;
  background: rgba(255, 235, 181, 0.88);
  font-size: 0.85rem;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
  color: #421010;
  background: linear-gradient(135deg, #ffe49a, #e3a33d);
  box-shadow: 0 18px 40px rgba(187, 84, 24, 0.34);
  font-weight: 700;
}

.secondary-button,
.ghost-button {
  color: #fff7e2;
  border-color: rgba(255, 232, 178, 0.34);
  background: rgba(255, 245, 218, 0.12);
}

.ghost-button {
  color: var(--red-dark);
  border-color: var(--line);
  background: rgba(255, 248, 226, 0.78);
}

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

.hero-poster {
  display: block;
  align-self: stretch;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid rgba(255, 227, 160, 0.36);
  border-radius: 30px;
  background: rgba(255, 239, 196, 0.12);
  box-shadow: 0 28px 80px rgba(18, 3, 2, 0.45);
}

.hero-poster img,
.detail-poster img,
.category-card img,
.category-art img,
.poster-link img,
.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-control {
  position: absolute;
  right: min(7vw, 80px);
  bottom: 46px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-arrow,
.hero-dots button {
  border: 1px solid rgba(255, 232, 178, 0.36);
  color: #fff4d6;
  background: rgba(70, 12, 12, 0.58);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  font-size: 2rem;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
}

.hero-dots button.is-active {
  width: 34px;
  background: #ffd978;
}

.section-wrap {
  width: min(1180px, calc(100% - 28px));
  margin: 74px auto;
}

.section-title {
  margin-bottom: 24px;
}

.section-title.with-link {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-title span {
  display: inline-flex;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.section-title h2 {
  margin: 8px 0 0;
  color: var(--red-dark);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.16;
}

.section-title a {
  color: var(--red);
  font-weight: 700;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px auto;
  gap: 14px;
  align-items: end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 250, 240, 0.76);
  box-shadow: 0 16px 45px rgba(118, 43, 20, 0.08);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: #fffdf6;
  outline: none;
  padding: 0 14px;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(143, 29, 29, 0.55);
  box-shadow: 0 0 0 4px rgba(143, 29, 29, 0.08);
}

.category-grid,
.movie-grid {
  display: grid;
  gap: 22px;
}

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

.category-card {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  border-radius: var(--radius);
  color: #fff8e4;
  background: var(--red-dark);
  box-shadow: var(--shadow);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 14%, rgba(50, 10, 10, 0.22) 36%, rgba(42, 7, 7, 0.92));
}

.category-card img {
  position: absolute;
  inset: 0;
  opacity: 0.74;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.category-card span,
.category-card p {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
}

.category-card span {
  bottom: 76px;
  font-size: 1.28rem;
  font-weight: 800;
}

.category-card p {
  bottom: 18px;
  margin: 0;
  color: rgba(255, 247, 224, 0.84);
  font-size: 0.9rem;
  line-height: 1.55;
}

.category-card:hover img {
  transform: scale(1.08);
  opacity: 0.92;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.86);
  box-shadow: 0 20px 48px rgba(114, 39, 19, 0.12);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(143, 29, 29, 0.34);
  box-shadow: 0 26px 65px rgba(114, 39, 19, 0.20);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 2.8;
  overflow: hidden;
  background: #4a0d0d;
}

.poster-link img {
  transition: transform 0.45s ease;
}

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

.poster-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(40, 8, 8, 0.76));
}

.play-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #4a0d0d;
  background: linear-gradient(135deg, #fff0b9, #e5a43d);
  box-shadow: 0 12px 28px rgba(34, 5, 5, 0.28);
}

.card-body {
  padding: 18px;
}

.card-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.83rem;
}

.card-meta span,
.rank-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 232, 178, 0.74);
}

.movie-card h3,
.rank-item h3,
.category-page-card h2 {
  margin: 12px 0 8px;
  color: var(--red-dark);
  font-size: 1.12rem;
  line-height: 1.38;
}

.movie-card p,
.rank-item p,
.category-page-card p,
.movie-article p {
  color: var(--muted);
  line-height: 1.78;
}

.tag-row {
  margin-top: 14px;
}

.tag-row span {
  color: #8b391d;
  background: rgba(255, 231, 169, 0.78);
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 98px 54px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 250, 240, 0.86);
  box-shadow: 0 18px 42px rgba(114, 39, 19, 0.10);
}

.rank-cover {
  aspect-ratio: 2 / 2.7;
  overflow: hidden;
  border-radius: 18px;
  background: #4a0d0d;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #4a0d0d;
  background: linear-gradient(135deg, #ffe39a, #d89632);
  font-weight: 800;
}

.sub-hero,
.detail-hero {
  position: relative;
  width: min(1180px, calc(100% - 28px));
  margin: 28px auto 0;
  overflow: hidden;
  border-radius: 34px;
  color: #fff8e3;
  background: linear-gradient(135deg, #4a0d0d, #8f1d1d 58%, #c58c32);
  box-shadow: var(--shadow);
}

.sub-hero {
  padding: clamp(52px, 7vw, 92px);
}

.sub-hero p {
  max-width: 820px;
}

.category-page-grid {
  display: grid;
  gap: 22px;
}

.category-page-card {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 250, 240, 0.86);
  box-shadow: 0 18px 42px rgba(114, 39, 19, 0.10);
}

.category-art {
  min-height: 190px;
  overflow: hidden;
  border-radius: 22px;
  background: #4a0d0d;
}

.inline-links {
  margin-top: 18px;
}

.inline-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--red);
  background: rgba(255, 232, 178, 0.7);
}

.breadcrumb {
  width: min(1180px, calc(100% - 28px));
  margin: 26px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
}

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

.detail-hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: clamp(34px, 5vw, 68px);
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 2.85;
  border: 1px solid rgba(255, 227, 160, 0.38);
  border-radius: 30px;
  box-shadow: 0 28px 80px rgba(18, 3, 2, 0.46);
}

.player-section {
  scroll-margin-top: 92px;
}

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #170303;
  box-shadow: 0 28px 80px rgba(28, 6, 4, 0.30);
}

.video-player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #170303;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #4a0d0d;
  background: linear-gradient(180deg, rgba(30, 6, 6, 0.06), rgba(30, 6, 6, 0.28));
  cursor: pointer;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff0b9, #df9d36);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.35);
  font-size: 2rem;
  transform: translateX(2px);
}

.video-player.is-playing .play-overlay {
  display: none;
}

.movie-article {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 250, 240, 0.88);
  box-shadow: 0 18px 42px rgba(114, 39, 19, 0.10);
}

.movie-article h2 {
  margin: 0 0 14px;
  color: var(--red-dark);
  font-size: 1.55rem;
}

.movie-article p + h2 {
  margin-top: 30px;
}

.empty-state {
  display: none;
  margin: 24px 0 0;
  padding: 22px;
  border-radius: 22px;
  color: var(--muted);
  background: rgba(255, 250, 240, 0.88);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.site-footer {
  margin-top: 90px;
  padding: 46px 0;
  color: #fff4d7;
  background: #3b0909;
}

.footer-inner {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.footer-inner p {
  max-width: 720px;
  color: rgba(255, 246, 221, 0.78);
  line-height: 1.8;
}

.footer-links a {
  color: #ffe0a0;
}

.footer-inner small {
  color: rgba(255, 246, 221, 0.62);
}

@media (max-width: 1080px) {
  .hero-slide {
    grid-template-columns: 1fr;
    padding: 62px 40px 110px;
  }

  .hero-poster {
    display: none;
  }

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

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

  .detail-hero {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .compact-rank {
    grid-template-columns: 1fr;
  }
}

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

  .menu-toggle {
    display: grid;
  }

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

  .hero-shell {
    min-height: 650px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 48px 24px 110px;
  }

  .hero-control {
    right: 24px;
    bottom: 28px;
  }

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

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

  .category-page-card,
  .detail-hero {
    grid-template-columns: 1fr;
  }

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

  .section-title.with-link {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .header-inner,
  .mobile-nav,
  .section-wrap,
  .sub-hero,
  .detail-hero,
  .breadcrumb {
    width: min(100% - 20px, 1180px);
  }

  .hero-shell {
    width: min(100% - 20px, 1240px);
  }

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

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

  .rank-number {
    position: absolute;
    margin: 8px;
  }

  .rank-item {
    position: relative;
  }

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