:root {
  --color-red: #dc2626;
  --color-red-dark: #b91c1c;
  --color-red-soft: #fee2e2;
  --color-sand: #faf8f3;
  --color-sand-strong: #f3eadb;
  --color-ink: #111827;
  --color-muted: #6b7280;
  --color-line: #e5e7eb;
  --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius-lg: 18px;
  --radius-md: 12px;
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-sand);
  color: var(--color-ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.95);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: var(--max-width);
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-red);
  color: #ffffff;
  box-shadow: 0 12px 25px rgba(220, 38, 38, 0.28);
}

.logo-text {
  font-size: 20px;
}

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

.nav-link {
  color: #374151;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.22s ease;
}

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

.menu-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f9fafb;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-button span {
  width: 20px;
  height: 2px;
  background: #374151;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--color-line);
  background: #ffffff;
}

.mobile-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #374151;
  font-weight: 700;
}

.mobile-link:hover,
.mobile-link.active {
  background: #fef2f2;
  color: var(--color-red);
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 850ms ease;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.06));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  min-height: 70vh;
  margin: 0 auto;
  padding: 90px 24px 76px;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
  color: #ffffff;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--color-red);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.hero h1,
.hero h2 {
  margin: 18px 0 18px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 660px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
  color: #f3f4f6;
}

.hero-meta span,
.info-pill,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 700;
}

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

.btn-primary,
.btn-outline,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.btn-primary {
  background: var(--color-red);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.32);
}

.btn-primary:hover {
  background: var(--color-red-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-soft {
  background: #ffffff;
  color: var(--color-red);
  box-shadow: var(--shadow-soft);
}

.btn-soft:hover {
  background: #fff7f7;
  transform: translateY(-2px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(6px);
}

.hero-control.prev {
  left: 22px;
}

.hero-control.next {
  right: 22px;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.32);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.search-panel {
  max-width: var(--max-width);
  margin: -38px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-card);
}

.search-box input,
.filter-select {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  padding: 13px 15px;
  color: #111827;
  background: #ffffff;
  outline: none;
}

.search-box input:focus,
.filter-select:focus {
  border-color: #f87171;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.16);
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px;
}

.section.compact {
  padding-top: 38px;
  padding-bottom: 38px;
}

.section-wide {
  background: #ffffff;
  padding: 64px 0;
}

.section-gradient {
  background: linear-gradient(135deg, #fff7f7, #f8fafc);
  padding: 64px 0;
}

.section-wide .section,
.section-gradient .section {
  padding-top: 0;
  padding-bottom: 0;
}

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

.section-title h2,
.section-title h1 {
  margin: 0;
  color: var(--color-ink);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.section-title p,
.page-lead {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--color-muted);
}

.category-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 5px 0 12px;
}

.category-pill {
  flex: 0 0 auto;
  padding: 13px 20px;
  border-radius: 14px;
  background: #ffffff;
  color: #374151;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.category-pill:hover,
.category-pill.active {
  background: #fef2f2;
  color: var(--color-red);
  transform: translateY(-2px);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  height: 260px;
  overflow: hidden;
  background: #111827;
}

.movie-card.large .poster-link {
  height: 330px;
}

.movie-card.small .poster-link {
  height: 210px;
}

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

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

.year-badge,
.rank-number {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 10px;
  background: var(--color-red);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.rank-number {
  left: 12px;
  right: auto;
  min-width: 40px;
  border-radius: 999px;
}

.hover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .hover-shade {
  opacity: 1;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
}

.card-body h3 a:hover,
.wide-body h3 a:hover,
.detail-copy h1 a:hover {
  color: var(--color-red);
}

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

.card-meta,
.wide-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

.card-meta span,
.wide-meta span,
.wide-meta a,
.detail-meta span,
.detail-meta a {
  padding: 4px 9px;
  border-radius: 999px;
  background: #f3f4f6;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span {
  background: #fef2f2;
  color: var(--color-red-dark);
  font-size: 12px;
  padding: 4px 9px;
}

.horizontal-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 4px 0 18px;
}

.horizontal-row .movie-card {
  flex: 0 0 288px;
}

.wide-list {
  display: grid;
  gap: 18px;
}

.wide-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.wide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.12);
}

.wide-poster {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  background: #111827;
}

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

.wide-body {
  padding: 24px;
}

.wide-body h3 {
  margin: 0 0 8px;
  font-size: 23px;
  font-weight: 900;
}

.wide-body p {
  margin: 0 0 18px;
  color: var(--color-muted);
}

.page-hero {
  background: linear-gradient(135deg, #111827, #7f1d1d);
  color: #ffffff;
  padding: 74px 24px;
}

.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #f3f4f6;
  font-size: 18px;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
  margin: 0 0 28px;
}

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

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #111827;
  color: #ffffff;
  box-shadow: var(--shadow-card);
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  opacity: 0.65;
  transition: transform 0.5s ease;
}

.category-card-content {
  position: absolute;
  inset: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.08));
}

.category-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  color: #e5e7eb;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  background: #111827;
  color: #ffffff;
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  filter: blur(4px);
  transform: scale(1.04);
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #111827 10%, rgba(17, 24, 39, 0.9) 45%, rgba(17, 24, 39, 0.45));
}

.detail-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

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

.breadcrumb {
  margin-bottom: 16px;
  color: #e5e7eb;
  font-size: 14px;
}

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

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.detail-copy .summary-lead {
  margin: 20px 0;
  max-width: 800px;
  color: #f3f4f6;
  font-size: 18px;
}

.detail-meta span,
.detail-meta a {
  background: rgba(255, 255, 255, 0.12);
  color: #f9fafb;
}

.player-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 20px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000000;
  box-shadow: var(--shadow-card);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
  width: 96px;
  height: 96px;
  border: 0;
  border-radius: 999px;
  background: var(--color-red);
  color: #ffffff;
  font-size: 36px;
  cursor: pointer;
  box-shadow: 0 20px 45px rgba(220, 38, 38, 0.36);
  transition: transform 0.22s ease, background 0.22s ease;
}

.play-button:hover {
  background: var(--color-red-dark);
  transform: scale(1.06);
}

.content-block {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 42px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.article-panel,
.side-panel {
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: 30px;
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 18px;
  font-size: 26px;
  font-weight: 900;
}

.article-panel p {
  margin: 0 0 18px;
  color: #374151;
  font-size: 16px;
}

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

.related-link {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: #f9fafb;
  transition: background 0.22s ease, transform 0.22s ease;
}

.related-link:hover {
  background: #fef2f2;
  transform: translateX(3px);
}

.related-link img {
  width: 78px;
  height: 92px;
  border-radius: 10px;
  object-fit: cover;
}

.related-link strong {
  display: block;
  margin-bottom: 5px;
  color: #111827;
}

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

.no-result {
  display: none;
  padding: 24px;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--color-muted);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.no-result.show {
  display: block;
}

.site-footer {
  margin-top: 56px;
  background: #111827;
  color: #f9fafb;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}

.footer-brand p {
  max-width: 520px;
  color: #d1d5db;
}

.footer-links {
  display: grid;
  gap: 9px;
  align-content: start;
}

.footer-links h2 {
  margin: 0 0 8px;
  color: #f87171;
  font-size: 17px;
}

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

.footer-links a:hover {
  color: #fca5a5;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 24px;
  color: #9ca3af;
  text-align: center;
  font-size: 14px;
}

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

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

  .detail-inner {
    grid-template-columns: 280px 1fr;
  }
}

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

  .menu-button {
    display: inline-flex;
  }

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

  .hero-content {
    padding-top: 70px;
  }

  .hero-control {
    display: none;
  }

  .search-box,
  .filter-bar {
    grid-template-columns: 1fr;
  }

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

  .wide-card,
  .detail-inner,
  .content-block,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .wide-poster {
    height: 220px;
  }

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

@media (max-width: 560px) {
  .header-inner {
    padding: 0 16px;
  }

  .hero,
  .hero-content {
    min-height: 76vh;
  }

  .hero-content,
  .section,
  .player-section,
  .content-block,
  .detail-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

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

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

  .poster-link {
    height: 320px;
  }

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

  .play-button {
    width: 74px;
    height: 74px;
    font-size: 28px;
  }
}
