:root {
  --brand: #dc2626;
  --brand-dark: #991b1b;
  --brand-soft: #fff1f2;
  --ink: #171717;
  --muted: #6b7280;
  --line: #fee2e2;
  --panel: #ffffff;
  --shadow: 0 20px 50px rgba(127, 29, 29, 0.15);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7f7 0%, #ffffff 42%, #fff7f7 100%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(220, 38, 38, 0.12);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #7f1d1d;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.3);
}

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

.nav-link {
  padding: 10px 16px;
  color: #7f1d1d;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 14px 28px rgba(220, 38, 38, 0.2);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: #fee2e2;
  border-radius: 12px;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #991b1b;
  border-radius: 4px;
}

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

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.8s ease;
  background-image: linear-gradient(90deg, rgba(127, 29, 29, 0.96), rgba(220, 38, 38, 0.76), rgba(0, 0, 0, 0.42)), var(--hero-bg);
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  position: relative;
  opacity: 1;
  transform: scale(1);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.22), transparent 0 12%, transparent 30%),
    radial-gradient(circle at 82% 36%, rgba(255, 255, 255, 0.15), transparent 0 16%, transparent 33%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 54px;
  padding: 92px 0;
  color: #ffffff;
}

.hero-text {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fee2e2;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.red {
  color: var(--brand);
}

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

.hero-text p {
  max-width: 680px;
  color: #ffe4e6;
  font-size: 20px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 6px 10px;
  color: #7f1d1d;
  background: #ffe4e6;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.quick-search button,
.search-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn,
.quick-search button,
.search-panel button {
  color: #dc2626;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.15);
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.primary-btn:hover,
.ghost-btn:hover,
.quick-search button:hover,
.search-panel button:hover {
  transform: translateY(-2px);
}

.small-actions .primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.small-actions .ghost-btn {
  color: #7f1d1d;
  background: #fee2e2;
  border-color: transparent;
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.4);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 14px;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.92);
  border-radius: 999px;
  font-weight: 800;
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

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

.section {
  padding: 72px 0;
}

.soft-bg {
  background: linear-gradient(180deg, #fffafa, #fff1f2);
}

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

.section-head.simple {
  align-items: center;
}

.section-head h2,
.search-panel h2 {
  margin: 6px 0 0;
  color: #7f1d1d;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
}

.text-link {
  color: var(--brand);
  font-weight: 800;
}

.search-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px;
  margin-bottom: 26px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.search-panel.wide {
  justify-content: space-between;
  gap: 26px;
}

.search-panel input,
.quick-search input {
  width: min(460px, 100%);
  min-height: 46px;
  padding: 0 18px;
  color: #7f1d1d;
  background: #fff7f7;
  border: 1px solid #fecaca;
  border-radius: 999px;
  outline: none;
}

.quick-search {
  display: flex;
  gap: 10px;
  flex: 0 1 560px;
}

.search-panel button,
.quick-search button {
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

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

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

.category-chip {
  min-height: 136px;
  padding: 22px;
  background: linear-gradient(135deg, #ffffff, #fff1f2);
  border: 1px solid #fecaca;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(127, 29, 29, 0.1);
  transition: 0.2s ease;
}

.category-chip:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(127, 29, 29, 0.16);
}

.category-chip strong {
  display: block;
  color: #991b1b;
  font-size: 20px;
  margin-bottom: 8px;
}

.category-chip span {
  color: var(--muted);
  font-size: 14px;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #fee2e2;
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(127, 29, 29, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 58px rgba(127, 29, 29, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #7f1d1d;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.play-chip,
.rank-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.94);
  border-radius: 999px;
  font-weight: 900;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  min-height: 32px;
  padding: 0 12px;
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 36px;
  min-height: 36px;
  font-style: normal;
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: #7f1d1d;
  font-size: 18px;
  line-height: 1.35;
}

.card-body p {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #991b1b;
  font-size: 13px;
  font-weight: 800;
}

.meta-row span {
  padding: 4px 8px;
  background: #fff1f2;
  border-radius: 999px;
}

.card-body .tag-row {
  margin-top: 12px;
}

.card-body .tag-row span {
  color: #991b1b;
  background: #fef2f2;
  font-size: 12px;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.rank-list,
.vertical-cards {
  display: grid;
  gap: 14px;
}

.compact-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  min-height: 150px;
}

.compact-card .poster-link img {
  height: 100%;
  aspect-ratio: auto;
}

.compact-card .card-body p {
  min-height: auto;
}

.compact-card .tag-row {
  display: none;
}

.page-hero,
.detail-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.22), transparent 0 12%, transparent 30%),
    linear-gradient(135deg, #991b1b 0%, #dc2626 48%, #ef4444 100%);
}

.page-hero .container {
  padding: 76px 0;
}

.page-hero p {
  max-width: 760px;
  color: #ffe4e6;
  font-size: 19px;
}

.category-hero,
.ranking-hero,
.search-hero {
  background:
    radial-gradient(circle at 80% 14%, rgba(255, 255, 255, 0.2), transparent 0 14%, transparent 30%),
    linear-gradient(135deg, #7f1d1d 0%, #b91c1c 52%, #f97316 100%);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.filter-bar button {
  min-height: 40px;
  padding: 0 16px;
  color: #7f1d1d;
  background: #fff1f2;
  border: 1px solid #fecaca;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.filter-bar button.active,
.filter-bar button:hover {
  color: #ffffff;
  background: #dc2626;
}

.detail-hero {
  padding: 36px 0 64px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
  color: #fee2e2;
  font-weight: 700;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
  align-items: start;
}

.player-panel h1 {
  margin-bottom: 12px;
}

.detail-one-line {
  max-width: 860px;
  color: #ffe4e6;
  font-size: 19px;
}

.video-box {
  position: relative;
  overflow: hidden;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.36);
}

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

.video-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.58));
  cursor: pointer;
}

.video-start span {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dc2626;
  background: #ffffff;
  border-radius: 999px;
  font-size: 34px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}

.video-box.is-playing .video-start {
  display: none;
}

.detail-side {
  display: grid;
  gap: 18px;
}

.detail-cover {
  width: 100%;
  border-radius: 26px;
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.3);
}

.detail-meta-card,
.article-card {
  background: #ffffff;
  border: 1px solid #fee2e2;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.detail-meta-card {
  padding: 22px;
  color: var(--ink);
}

.detail-meta-card h2,
.article-card h2 {
  margin: 0 0 16px;
  color: #7f1d1d;
}

.detail-meta-card dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.detail-meta-card dl div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  border-bottom: 1px solid #fee2e2;
  padding-bottom: 10px;
}

.detail-meta-card dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-meta-card dd {
  margin: 0;
  color: #7f1d1d;
  font-weight: 800;
}

.detail-tags {
  margin-top: 16px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.article-card {
  padding: 28px;
}

.article-card p {
  color: #374151;
  font-size: 17px;
}

.small-card .compact-card {
  grid-template-columns: 94px 1fr;
}

.site-footer {
  padding: 46px 0;
  color: #ffe4e6;
  background: #7f1d1d;
}

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

.footer-brand {
  color: #ffffff;
}

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

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

[data-search-card].is-hidden {
  display: none;
}

@media (max-width: 1024px) {
  .hero-content,
  .detail-layout,
  .detail-content-grid,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 360px;
  }

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

  .detail-side {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-nav.open {
    display: grid;
    gap: 8px;
  }

  .mobile-nav .nav-link {
    display: block;
    background: #fff1f2;
  }

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

  .hero-slide {
    background-image: linear-gradient(180deg, rgba(127, 29, 29, 0.96), rgba(185, 28, 28, 0.82)), var(--hero-bg);
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 60px 0 86px;
  }

  .hero-poster {
    transform: none;
    max-width: 280px;
  }

  .hero-actions,
  .search-panel,
  .search-panel.wide,
  .quick-search,
  .section-head,
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
  }

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

  .detail-side,
  .compact-card {
    grid-template-columns: 1fr;
  }

  .compact-card .poster-link img {
    aspect-ratio: 3 / 4;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
