:root {
  --color-bg: #fff7ed;
  --color-bg-soft: #fff1e8;
  --color-card: #ffffff;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-line: rgba(248, 113, 113, 0.22);
  --color-red: #dc2626;
  --color-orange: #f97316;
  --color-amber: #f59e0b;
  --shadow-soft: 0 18px 45px rgba(127, 29, 29, 0.12);
  --shadow-card: 0 12px 30px rgba(31, 41, 55, 0.10);
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--color-text);
  background:
    radial-gradient(circle at 15% 10%, rgba(251, 146, 60, 0.22), transparent 30%),
    radial-gradient(circle at 85% 0%, rgba(248, 113, 113, 0.20), transparent 28%),
    linear-gradient(135deg, #fff7ed 0%, #fff1f2 45%, #fffbeb 100%);
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(127, 29, 29, 0.08);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-red), var(--color-orange), var(--color-amber));
  box-shadow: 0 12px 26px rgba(220, 38, 38, 0.30);
}

.brand-text strong {
  display: block;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--color-red), var(--color-orange), var(--color-amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 12px;
  color: var(--color-muted);
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  color: #374151;
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-red), var(--color-orange));
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(254, 226, 226, 0.85);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--color-red);
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

.mobile-nav a {
  display: block;
  width: min(100%, var(--container));
  margin: 8px auto 0;
  padding: 13px 16px;
  border-radius: 14px;
  font-weight: 700;
  background: #ffffff;
  color: #374151;
}

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

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #7f1d1d;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  filter: saturate(1.1) contrast(1.05);
  transform: scale(1.05);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 72% 48%, rgba(251, 191, 36, 0.32), transparent 28%),
    linear-gradient(90deg, rgba(127, 29, 29, 0.96), rgba(194, 65, 12, 0.78) 42%, rgba(17, 24, 39, 0.55));
}

.hero-bg span {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.14), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 3;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  align-items: center;
  gap: 56px;
  color: #ffffff;
}

.hero-copy {
  max-width: 760px;
  animation: fadeUp 0.65s ease both;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.90);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.hero-tags span,
.tag-cloud span {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

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

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-red), var(--color-orange));
  box-shadow: 0 16px 36px rgba(220, 38, 38, 0.34);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border: 2px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(12px);
}

.btn.light {
  color: var(--color-red);
  background: #ffffff;
}

.hero-poster {
  position: relative;
  height: 470px;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: inherit;
}

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

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

.hero-dot.active {
  background: #ffffff;
}

.section {
  padding: 70px 0;
}

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

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
}

.section-more,
.text-link {
  flex: 0 0 auto;
  font-weight: 900;
  color: var(--color-red);
}

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

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 48px rgba(127, 29, 29, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  height: 245px;
  overflow: hidden;
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

.movie-card.compact .poster-link {
  height: 190px;
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.70), transparent);
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.play-chip {
  right: 14px;
  bottom: 14px;
  min-width: 54px;
  height: 30px;
  padding: 0 12px;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-red), var(--color-orange));
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 42px;
  height: 42px;
  color: #7f1d1d;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.card-body {
  padding: 18px;
}

.card-badges,
.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.card-badges a,
.card-badges span,
.detail-badges a,
.detail-badges span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #991b1b;
  background: #fee2e2;
  font-size: 12px;
  font-weight: 800;
}

.card-body h3 {
  min-height: 52px;
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

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

.card-body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 44px;
  overflow: hidden;
  margin: 0 0 14px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.6;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #6b7280;
  font-size: 13px;
}

.wide-band {
  padding: 66px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 25% 10%, rgba(255, 255, 255, 0.24), transparent 26%),
    linear-gradient(120deg, var(--color-red), var(--color-orange), var(--color-amber));
}

.band-inner {
  max-width: 840px;
  text-align: center;
}

.band-inner h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 48px);
}

.band-inner p {
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.90);
  font-size: 18px;
  line-height: 1.8;
}

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

.category-card {
  position: relative;
  min-height: 185px;
  overflow: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border-radius: var(--radius-md);
  color: #ffffff;
  background: #7f1d1d;
  box-shadow: var(--shadow-card);
}

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

.category-card:hover img {
  transform: scale(1.10);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(127, 29, 29, 0.92), rgba(234, 88, 12, 0.34));
}

.category-card strong,
.category-card em {
  position: relative;
  z-index: 2;
}

.category-card strong {
  margin-bottom: 8px;
  font-size: 21px;
}

.category-card em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.55;
}

.page-main {
  min-height: 60vh;
}

.page-hero {
  position: relative;
  padding: 84px 0;
  color: #ffffff;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(251, 191, 36, 0.30), transparent 28%),
    linear-gradient(120deg, #991b1b, #ea580c, #f59e0b);
}

.compact-hero h1 {
  max-width: 900px;
  margin: 14px 0;
}

.compact-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 24px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
}

.category-cover {
  height: 155px;
  overflow: hidden;
  border-radius: 18px;
}

.category-overview-card h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.category-overview-card p {
  margin: 0 0 14px;
  color: var(--color-muted);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.category-samples a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  align-items: end;
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #374151;
  font-size: 13px;
  font-weight: 900;
}

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

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.empty-result {
  grid-column: 1 / -1;
  padding: 14px;
  border-radius: 14px;
  color: #991b1b;
  background: #fee2e2;
  font-weight: 800;
}

.detail-main {
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.68), rgba(255, 255, 255, 0.52));
}

.detail-hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #ffffff;
  background: #7f1d1d;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  filter: blur(8px) saturate(1.15);
  transform: scale(1.08);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 35%, rgba(251, 191, 36, 0.28), transparent 30%),
    linear-gradient(90deg, rgba(69, 10, 10, 0.97), rgba(154, 52, 18, 0.84), rgba(17, 24, 39, 0.62));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 34px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

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

.detail-cover {
  height: 500px;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 36px 75px rgba(0, 0, 0, 0.42);
}

.detail-copy h1 {
  max-width: 850px;
}

.detail-copy .lead {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.90);
  font-size: 20px;
  line-height: 1.85;
}

.player-card {
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.26);
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.movie-player {
  display: block;
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.34), transparent 33%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 50%;
  color: var(--color-red);
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
  font-size: 34px;
}

.player-cover strong {
  font-size: 22px;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

.prose-card,
.side-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
}

.prose-card h2,
.side-card h2 {
  margin: 0 0 18px;
  font-size: 26px;
}

.prose-card p {
  margin: 0 0 28px;
  color: #374151;
  font-size: 16px;
  line-height: 1.95;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #fff7ed;
}

.info-list dt {
  color: #9a3412;
  font-weight: 900;
}

.info-list dd {
  margin: 0;
  color: #374151;
}

.side-card {
  align-self: start;
  display: grid;
  gap: 12px;
}

.side-card a {
  display: block;
  padding: 14px;
  border-radius: 14px;
  color: #7f1d1d;
  background: #ffedd5;
  font-weight: 800;
}

.site-footer {
  margin-top: 80px;
  color: rgba(255, 255, 255, 0.85);
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 30px;
  padding: 42px 0;
}

.footer-brand strong {
  color: #ffffff;
  font-size: 24px;
}

.footer-brand p {
  max-width: 460px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 12px;
}

.footer-links a {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  padding: 18px 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.58);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[hidden] {
  display: none !important;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-poster {
    display: none;
  }

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

  .category-overview-card {
    grid-template-columns: 180px 1fr;
  }

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

  .footer-links {
    justify-content: start;
  }
}

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

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

  .brand-text em {
    display: none;
  }

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

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

  .hero p,
  .detail-copy .lead {
    font-size: 16px;
  }

  .section {
    padding: 46px 0;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    display: inline-block;
    margin-top: 12px;
  }

  .movie-grid,
  .featured-grid,
  .list-grid,
  .rank-grid,
  .archive-grid,
  .related-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .poster-link,
  .movie-card.compact .poster-link {
    height: 260px;
  }

  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    min-height: auto;
  }

  .detail-cover {
    height: 440px;
  }

  .prose-card,
  .side-card {
    padding: 22px;
  }
}
