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

:root {
  --red-950: #450a0a;
  --red-900: #7f1d1d;
  --red-800: #991b1b;
  --red-700: #b91c1c;
  --red-600: #dc2626;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-400: #fbbf24;
  --paper: #fff7ed;
  --ink: #2f1717;
  --muted: #7c4b4b;
  --line: rgba(127, 29, 29, 0.16);
  --shadow: 0 24px 60px rgba(69, 10, 10, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fffbeb 0%, #fff7ed 46%, #fef2f2 100%);
  font-family: "Noto Serif SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96), rgba(254, 242, 242, 0.96));
  border-bottom: 2px solid var(--red-900);
  box-shadow: 0 10px 28px rgba(69, 10, 10, 0.12);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1220px, calc(100% - 32px));
  height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--amber-100);
  background: linear-gradient(135deg, var(--red-700), var(--red-950));
  border-radius: 12px;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 15px 25px rgba(127, 29, 29, 0.28);
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: rotate(6deg) scale(1.04);
}

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

.brand-text strong {
  color: var(--red-950);
  font-size: 24px;
  white-space: nowrap;
}

.brand-text small {
  color: var(--red-700);
  font-size: 12px;
  margin-top: 4px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--red-950);
  font-weight: 700;
}

.nav-link {
  position: relative;
  padding: 9px 0;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red-700);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

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

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

.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--red-950);
  font-size: 28px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 18px 18px;
  background: var(--amber-50);
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: var(--red-950);
  font-weight: 700;
}

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

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

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.75s ease;
  display: flex;
  align-items: center;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 2;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(69, 10, 10, 0.94));
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(860px, calc(100% - 48px));
  margin-left: max(24px, calc((100% - 1220px) / 2));
  color: white;
  padding-top: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-400);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 16px 0 8px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-shadow: 0 20px 40px rgba(0, 0, 0, 0.38);
}

.hero h2 {
  margin: 0 0 16px;
  color: var(--amber-100);
  font-size: clamp(28px, 4vw, 48px);
}

.hero p {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(255, 251, 235, 0.94);
  font-size: 18px;
  line-height: 1.9;
}

.hero-tags,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  border: 1px solid rgba(253, 230, 138, 0.52);
  color: var(--amber-100);
  background: rgba(127, 29, 29, 0.32);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 900;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.button:hover {
  transform: translateY(-2px) scale(1.02);
}

.button.primary {
  color: white;
  background: linear-gradient(135deg, var(--red-700), var(--red-950));
  box-shadow: 0 16px 34px rgba(127, 29, 29, 0.36);
}

.button.primary:hover {
  background: linear-gradient(135deg, var(--red-600), var(--red-900));
}

.button.ghost {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.button.ghost.dark {
  color: var(--red-950);
  border-color: var(--line);
  background: rgba(255, 251, 235, 0.82);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: white;
  background: rgba(69, 10, 10, 0.36);
  border-radius: 999px;
  font-size: 42px;
  line-height: 0;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.hero-arrow.prev {
  left: 18px;
}

.hero-arrow.next {
  right: 18px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 36px;
  border-radius: 999px;
  background: var(--amber-400);
}

.intro-strip {
  margin-top: -38px;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.intro-strip a {
  display: grid;
  place-items: center;
  min-height: 76px;
  color: var(--red-950);
  background: rgba(255, 251, 235, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  font-weight: 900;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.section-block {
  padding: 60px 0 16px;
}

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

.section-title h2,
.page-heading h1,
.category-hero h1,
.detail-copy h1 {
  margin: 4px 0 0;
  color: var(--red-950);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(69, 10, 10, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 60px rgba(69, 10, 10, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--red-950), var(--red-700));
  overflow: hidden;
}

.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);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(69, 10, 10, 0.82));
}

.poster-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  color: white;
  background: rgba(127, 29, 29, 0.88);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}

.rank-badge {
  left: auto;
  right: 10px;
  background: rgba(251, 191, 36, 0.95);
  color: var(--red-950);
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: white;
  background: rgba(185, 28, 28, 0.84);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-dot {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

.movie-card h3 {
  margin: 0 0 8px;
  color: var(--red-950);
  font-size: 17px;
  line-height: 1.35;
}

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

.movie-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 47px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--red-700);
  font-size: 12px;
  font-weight: 700;
}

.tag-row span {
  color: var(--red-800);
  background: rgba(254, 242, 242, 0.88);
  border-color: rgba(185, 28, 28, 0.13);
}

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

.category-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 8px;
  padding: 24px;
  color: white;
  border-radius: 22px;
  box-shadow: var(--shadow);
  background: var(--red-950);
  isolation: isolate;
}

.category-card.large {
  min-height: 240px;
}

.category-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transition: transform 0.45s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(69, 10, 10, 0.08), rgba(69, 10, 10, 0.82));
}

.category-card:hover .category-bg {
  transform: scale(1.08);
}

.category-card strong {
  font-size: 26px;
}

.category-card small {
  max-width: 520px;
  color: rgba(255, 251, 235, 0.9);
  font-size: 14px;
  line-height: 1.7;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 40px rgba(69, 10, 10, 0.08);
}

.filter-panel label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--red-900);
  font-size: 13px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(127, 29, 29, 0.18);
  border-radius: 12px;
  color: var(--ink);
  background: white;
  padding: 0 12px;
  outline: none;
  font: inherit;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--red-700);
  box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.08);
}

.page-hero-space {
  min-height: 60vh;
}

.page-heading {
  padding: 70px 0 20px;
}

.page-heading p,
.category-hero p,
.lead-text {
  max-width: 800px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.category-hero {
  min-height: 420px;
  display: flex;
  align-items: center;
  color: white;
  background-size: cover;
  background-position: center;
}

.category-hero-inner {
  padding: 68px 0;
}

.category-hero h1,
.category-hero p {
  color: white;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: rgba(255, 251, 235, 0.82);
  font-size: 13px;
}

.detail-copy .breadcrumb {
  color: var(--muted);
}

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

.detail-hero {
  padding: 54px 0 30px;
  background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.26), transparent 35%), linear-gradient(135deg, #fff7ed, #fef2f2);
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}

.detail-poster {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(69, 10, 10, 0.22);
  background: var(--red-950);
}

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

.detail-copy h1 {
  font-size: clamp(38px, 5vw, 64px);
}

.detail-tags span {
  color: var(--red-900);
  background: rgba(255, 251, 235, 0.82);
  border-color: rgba(185, 28, 28, 0.2);
}

.player-section {
  padding: 44px 0 20px;
}

.player-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 26px 70px rgba(69, 10, 10, 0.22);
}

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: white;
  background: radial-gradient(circle, rgba(185, 28, 28, 0.35), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  font-family: inherit;
}

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

.big-play {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(185, 28, 28, 0.9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  font-size: 42px;
  padding-left: 6px;
}

.play-layer strong {
  font-size: 22px;
}

.detail-content {
  padding: 22px 0 10px;
}

.content-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 40px rgba(69, 10, 10, 0.08);
  padding: 30px;
}

.content-card h2 {
  margin: 0 0 14px;
  color: var(--red-950);
  font-size: 28px;
}

.content-card h2:not(:first-child) {
  margin-top: 28px;
}

.content-card p {
  margin: 0;
  color: #4d2828;
  font-size: 17px;
  line-height: 2;
}

.site-footer {
  margin-top: 60px;
  padding: 36px 0;
  color: rgba(255, 251, 235, 0.88);
  background: linear-gradient(135deg, var(--red-950), #230808);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
}

.footer-grid p {
  max-width: 620px;
  margin: 8px 0 0;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 700;
}

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

@media (max-width: 1100px) {
  .movie-grid,
  .featured-grid,
  .compact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .mobile-toggle {
    display: block;
  }

  .brand-text strong {
    font-size: 19px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-copy {
    width: min(100% - 38px, 720px);
    margin: 0 auto;
  }

  .hero-arrow {
    display: none;
  }

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

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

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

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

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

@media (max-width: 560px) {
  .header-inner {
    height: 70px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .brand-text small {
    display: none;
  }

  .hero {
    min-height: 590px;
  }

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

  .hero h2 {
    font-size: 26px;
  }

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

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

  .intro-strip,
  .category-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

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

  .movie-card h3 {
    font-size: 15px;
  }

  .movie-card p {
    font-size: 12px;
  }

  .content-card {
    padding: 22px;
  }

  .footer-grid {
    align-items: start;
    flex-direction: column;
  }
}
