:root {
  --deep-red: #450a0a;
  --red: #991b1b;
  --red-soft: #dc2626;
  --amber: #fbbf24;
  --cream: #fff7ed;
  --paper: #fffbeb;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(127, 29, 29, 0.16);
  --shadow: 0 24px 60px rgba(69, 10, 10, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(
      circle at 10% 0%,
      rgba(251, 191, 36, 0.22),
      transparent 28rem
    ),
    linear-gradient(180deg, #fff7ed 0%, #fff1f2 48%, #fff7ed 100%);
  font-family:
    "Noto Serif SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 237, 0.88);
  border-bottom: 1px solid rgba(153, 27, 27, 0.14);
  backdrop-filter: blur(18px);
}

.nav-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  color: var(--deep-red);
}

.brand-mark {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff7ed;
  background: linear-gradient(135deg, #991b1b, #7f1d1d, #451a03);
  box-shadow: 0 14px 30px rgba(127, 29, 29, 0.28);
}

.brand-text {
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  color: #7f1d1d;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 0.25rem 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2rem;
  height: 2px;
  border-radius: 999px;
  background: var(--amber);
  transform: scaleX(0);
  transition: transform 0.22s ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(153, 27, 27, 0.22);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  color: var(--deep-red);
  background: #fff7ed;
  font-weight: 700;
}

.hero-slider {
  position: relative;
  min-height: 76vh;
  overflow: hidden;
  color: #fff7ed;
  background: #450a0a;
}

.hero-slide {
  display: none;
  min-height: 76vh;
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active {
  display: block;
}

.hero-content {
  max-width: 1280px;
  min-height: 76vh;
  margin: 0 auto;
  padding: 7rem 1rem 6rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.48fr);
  align-items: center;
  gap: 4rem;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  color: #92400e;
  background: rgba(251, 191, 36, 0.18);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 1rem 0;
  color: inherit;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  max-width: 760px;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.9;
  color: rgba(255, 247, 237, 0.88);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.2rem 0;
}

.tag-list span {
  border: 1px solid rgba(251, 191, 36, 0.38);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-size: 0.9rem;
}

.hero-actions,
.detail-copy .primary-btn {
  margin-top: 1.5rem;
}

.primary-btn,
.ghost-btn,
.text-link,
.search-pill button,
.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  font-weight: 800;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.primary-btn {
  padding: 0.88rem 1.35rem;
  color: #fff7ed;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  box-shadow: 0 18px 35px rgba(127, 29, 29, 0.32);
}

.ghost-btn {
  margin-left: 0.7rem;
  padding: 0.88rem 1.35rem;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.category-tile:hover,
.category-overview-card:hover,
.compact-card:hover,
.rank-row:hover {
  transform: translateY(-3px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  aspect-ratio: 2 / 3;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.45);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 1rem;
  z-index: -1;
  border-radius: inherit;
  background: rgba(251, 191, 36, 0.22);
  filter: blur(24px);
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-prev,
.hero-next,
.hero-dots button {
  border: 0;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.hero-prev,
.hero-next {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  font-size: 1.7rem;
}

.hero-dots {
  display: flex;
  gap: 0.5rem;
}

.hero-dots button {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  padding: 0;
  opacity: 0.7;
}

.hero-dots button.is-active {
  width: 2rem;
  background: #fbbf24;
  opacity: 1;
}

.search-band,
.section-shell,
.feature-split,
.page-hero,
.detail-hero,
.player-section {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.search-band {
  margin-top: -2.2rem;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 2rem;
  padding-top: 1.3rem;
  padding-bottom: 1.3rem;
  border: 1px solid rgba(153, 27, 27, 0.12);
  border-radius: 1.6rem;
  background: rgba(255, 251, 235, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search-band h2,
.section-head h2,
.feature-panel h2,
.detail-article h2,
.detail-side h2 {
  margin: 0.6rem 0 0;
  color: var(--deep-red);
  font-size: clamp(1.55rem, 3vw, 2.45rem);
}

.search-pill {
  display: flex;
  gap: 0.55rem;
  border: 1px solid rgba(153, 27, 27, 0.18);
  border-radius: 1rem;
  padding: 0.45rem;
  background: #fff;
}

.search-pill input,
.filter-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.search-pill input {
  padding: 0.7rem 0.85rem;
}

.search-pill button {
  border: 0;
  padding: 0 1.1rem;
  color: #fff7ed;
  background: var(--red);
  cursor: pointer;
}

.section-shell {
  padding-top: 4rem;
  padding-bottom: 1rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.text-link {
  color: var(--red);
}

.category-grid,
.category-overview-grid,
.movie-grid,
.compact-grid {
  display: grid;
  gap: 1.15rem;
}

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

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

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

.category-tile,
.category-overview-card,
.movie-card,
.compact-card,
.rank-row,
.feature-panel,
.detail-article,
.detail-side {
  border: 1px solid var(--line);
  background: rgba(255, 251, 235, 0.86);
  box-shadow: 0 16px 36px rgba(69, 10, 10, 0.08);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.category-tile,
.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 12rem;
  border-radius: 1.4rem;
}

.category-tile img,
.category-overview-card img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.58);
  transform: scale(1.02);
}

.category-tile span,
.category-overview-card span {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  color: #fff7ed;
}

.category-tile strong,
.category-overview-card strong {
  display: block;
  font-size: 1.25rem;
}

.category-tile em,
.category-overview-card em {
  display: block;
  margin-top: 0.35rem;
  color: rgba(255, 247, 237, 0.82);
  font-style: normal;
  line-height: 1.6;
}

.movie-card {
  overflow: hidden;
  border-radius: 1.25rem;
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #7f1d1d;
}

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

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

.poster-gradient {
  position: absolute;
  inset: auto 0 0 0;
  height: 48%;
  background: linear-gradient(0deg, rgba(69, 10, 10, 0.88), transparent);
}

.type-badge,
.year-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  color: #fff7ed;
  background: rgba(127, 29, 29, 0.82);
  font-size: 0.76rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.type-badge {
  left: 0.6rem;
  top: 0.6rem;
}

.year-badge {
  right: 0.6rem;
  bottom: 0.6rem;
  background: rgba(251, 191, 36, 0.88);
  color: #451a03;
}

.movie-card-body {
  display: block;
  padding: 0.95rem;
}

.movie-card strong,
.movie-card h3 {
  display: block;
  margin: 0;
  color: var(--deep-red);
  font-size: 1rem;
  line-height: 1.45;
}

.movie-meta,
.movie-one-line {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.86rem;
}

.movie-one-line {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.76rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 1.3rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.feature-panel {
  border-radius: 1.6rem;
  padding: 1.25rem;
}

.highlight-panel {
  background: linear-gradient(
    135deg,
    rgba(153, 27, 27, 0.92),
    rgba(69, 10, 10, 0.94)
  );
  color: #fff7ed;
}

.highlight-panel h2,
.highlight-panel .section-kicker {
  color: #fef3c7;
}

.rank-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.rank-row {
  display: grid;
  grid-template-columns: 3rem 4.4rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  border-radius: 1rem;
  padding: 0.65rem;
}

.rank-number {
  color: var(--red);
  font-size: 1.35rem;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  width: 4.4rem;
  height: 6rem;
  border-radius: 0.7rem;
  object-fit: cover;
}

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

.rank-copy strong {
  color: var(--deep-red);
}

.rank-copy em {
  margin-top: 0.3rem;
  color: var(--muted);
  font-style: normal;
  font-size: 0.86rem;
}

.rank-action {
  padding: 0.5rem 0.8rem;
  color: #fff7ed;
  background: var(--red);
  font-size: 0.85rem;
}

.compact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.1rem;
}

.compact-card {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 0.8rem;
  border-radius: 1rem;
  padding: 0.65rem;
  background: rgba(255, 247, 237, 0.12);
  border-color: rgba(251, 191, 36, 0.18);
}

.compact-card img {
  width: 4rem;
  height: 5.5rem;
  border-radius: 0.7rem;
  object-fit: cover;
}

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

.compact-card em {
  margin-top: 0.3rem;
  color: rgba(255, 247, 237, 0.74);
  font-style: normal;
  font-size: 0.86rem;
}

.page-hero,
.detail-hero {
  color: #fff7ed;
  background:
    linear-gradient(135deg, rgba(69, 10, 10, 0.96), rgba(127, 29, 29, 0.92)),
    radial-gradient(
      circle at 80% 12%,
      rgba(251, 191, 36, 0.3),
      transparent 26rem
    );
  box-shadow: var(--shadow);
}

.page-hero {
  margin-top: 1.2rem;
  border-radius: 1.7rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.small-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.filter-box {
  max-width: 760px;
  margin-top: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.filter-box input {
  color: #fff7ed;
}

.filter-box input::placeholder {
  color: rgba(255, 247, 237, 0.72);
}

.wide-filter {
  max-width: 900px;
}

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

.ranking-shell {
  padding-top: 2rem;
}

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

.detail-hero {
  margin-top: 1.2rem;
  border-radius: 1.7rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
}

.detail-poster {
  overflow: hidden;
  border-radius: 1.4rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

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

.detail-copy h1 {
  font-size: clamp(2rem, 5vw, 4.7rem);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.detail-meta span {
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.14);
}

.player-section {
  padding-top: 2rem;
}

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: 1.6rem;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 0;
  color: #fff7ed;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.18),
    rgba(69, 10, 10, 0.62)
  );
  cursor: pointer;
  pointer-events: auto;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

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

.play-ring {
  width: 5rem;
  height: 5rem;
  border: 2px solid rgba(255, 247, 237, 0.72);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 0.25rem;
  color: #fbbf24;
  font-size: 2rem;
  background: rgba(127, 29, 29, 0.48);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.32);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.35fr);
  gap: 1.3rem;
}

.detail-article,
.detail-side {
  border-radius: 1.4rem;
  padding: 1.4rem;
}

.detail-article p {
  color: #374151;
  line-height: 2;
  font-size: 1.04rem;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.detail-side dt {
  color: var(--muted);
  font-weight: 700;
}

.detail-side dd {
  margin: 0;
  color: var(--deep-red);
  font-weight: 800;
}

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

.site-footer {
  margin-top: 4rem;
  color: #fef3c7;
  background: linear-gradient(135deg, #450a0a, #7f1d1d);
}

.footer-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.4rem 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 2rem;
}

.footer-brand {
  color: #fff7ed;
  font-size: 1.35rem;
}

.footer-shell p {
  max-width: 620px;
  color: rgba(254, 243, 199, 0.78);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-content: start;
}

.footer-links a {
  border-radius: 999px;
  padding: 0.42rem 0.75rem;
  color: rgba(254, 243, 199, 0.88);
  background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  border-top: 1px solid rgba(254, 243, 199, 0.14);
  padding: 1rem;
  text-align: center;
  color: rgba(254, 243, 199, 0.68);
}

.search-results:empty::before {
  content: "输入关键词即可显示匹配内容";
  grid-column: 1 / -1;
  border-radius: 1.2rem;
  padding: 2rem;
  color: var(--muted);
  background: rgba(255, 251, 235, 0.84);
  text-align: center;
}

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

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

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

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.4rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid rgba(153, 27, 27, 0.16);
    border-radius: 1.2rem;
    padding: 0.7rem;
    background: rgba(255, 247, 237, 0.98);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 0.78rem;
  }

  .hero-content,
  .search-band,
  .feature-split,
  .detail-hero,
  .detail-layout,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .hero-content {
    gap: 2rem;
    padding-top: 5.5rem;
  }

  .hero-poster {
    width: min(68vw, 340px);
    margin: 0 auto;
  }

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

@media (max-width: 680px) {
  .brand-text {
    font-size: 1.05rem;
  }

  .hero-slider,
  .hero-slide,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    padding-bottom: 5rem;
  }

  .hero-actions {
    display: grid;
    gap: 0.75rem;
  }

  .ghost-btn {
    margin-left: 0;
  }

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

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

  .rank-row {
    grid-template-columns: 2.4rem 3.6rem minmax(0, 1fr);
  }

  .rank-action {
    display: none;
  }

  .rank-row img {
    width: 3.6rem;
    height: 5rem;
  }

  .page-hero,
  .detail-hero {
    border-radius: 0;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 430px) {
  .movie-grid,
  .category-movie-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }
}
