:root {
  --brand-red: #ef4444;
  --brand-orange: #f97316;
  --brand-pink: #ec4899;
  --brand-yellow: #facc15;
  --text-main: #24232a;
  --text-muted: #6b7280;
  --line-soft: #f1f1f4;
  --surface: #ffffff;
  --surface-soft: #fff7ed;
  --shadow-soft: 0 18px 45px rgba(22, 18, 28, 0.10);
  --shadow-strong: 0 28px 80px rgba(127, 29, 29, 0.24);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.12), transparent 32rem),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.12), transparent 34rem),
    #fff;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    Arial,
    sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(var(--container), calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange), var(--brand-pink));
  box-shadow: 0 14px 28px rgba(239, 68, 68, 0.28);
}

.brand-text {
  font-size: 1.15rem;
}

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

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

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
  box-shadow: 0 14px 28px rgba(239, 68, 68, 0.22);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff3f3;
  cursor: pointer;
}

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

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #1a1115;
}

.hero-stage {
  position: relative;
  min-height: 650px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 430px);
  align-items: center;
  gap: 64px;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: -44px;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  filter: blur(16px) saturate(1.2);
  transform: scale(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 8, 12, 0.94), rgba(82, 24, 20, 0.72), rgba(20, 8, 12, 0.88)),
    radial-gradient(circle at 75% 40%, rgba(236, 72, 153, 0.36), transparent 30rem),
    radial-gradient(circle at 30% 28%, rgba(249, 115, 22, 0.36), transparent 28rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 72px 0;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  color: #b91c1c;
  background: linear-gradient(135deg, #fff3f3, #ffedd5);
  font-size: 0.88rem;
  font-weight: 800;
}

.hero-content .eyebrow {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(14px);
}

.hero h1 {
  max-width: 780px;
  margin: 22px 0 18px;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-desc {
  max-width: 720px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-tags,
.detail-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-tags span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #7f1d1d;
  background: #fff7ed;
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

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

.btn-light {
  color: var(--brand-red);
  background: #fff;
  box-shadow: 0 18px 42px rgba(255, 255, 255, 0.18);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
}

.hero-poster {
  position: relative;
  z-index: 2;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 34px;
  background: linear-gradient(135deg, #ef4444, #f97316, #ec4899);
  box-shadow: var(--shadow-strong);
  transform: rotate(2deg);
}

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

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: all 0.2s ease;
}

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

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

.section-soft {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - var(--container)) / 2));
  padding-right: max(16px, calc((100% - var(--container)) / 2));
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.9), rgba(255, 255, 255, 0.95));
}

.section-head {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-head.align-left {
  margin-left: 0;
  text-align: left;
}

.section-head h2,
.page-hero h1,
.detail-info h1 {
  margin: 14px 0 8px;
  color: #1f2937;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-head p,
.page-hero p,
.category-overview-card p {
  margin: 0;
  color: var(--text-muted);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(249, 115, 22, 0.10);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 70px rgba(127, 29, 29, 0.16);
}

.poster,
.category-card,
.category-overview-cover,
.detail-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange), var(--brand-pink));
}

.poster {
  aspect-ratio: 3 / 4;
}

.poster img,
.category-card img,
.category-overview-cover img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

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

.poster::after,
.category-card::after,
.category-overview-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

.poster-fallback,
.category-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  font-weight: 900;
  line-height: 1.35;
  z-index: 0;
}

.poster img,
.category-card img,
.category-overview-cover img,
.detail-poster img,
.hero-poster img,
.hero-bg img,
.detail-backdrop img {
  position: relative;
  z-index: 1;
}

.poster-badge,
.poster-type {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
  font-weight: 800;
}

.poster-badge {
  top: 12px;
  left: 12px;
}

.poster-type {
  right: 12px;
  bottom: 12px;
}

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

.movie-card h3 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 1.08rem;
  line-height: 1.35;
}

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

.movie-meta,
.movie-one-line {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

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

.tag-row {
  gap: 7px;
}

.tag-row span {
  min-height: 26px;
  padding: 3px 9px;
  font-size: 0.78rem;
}

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

.category-card {
  min-height: 220px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.category-card div {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  color: #fff;
}

.category-card strong {
  display: block;
  font-size: 1.3rem;
}

.category-card p {
  margin: 4px 0 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.category-card em {
  font-style: normal;
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.65fr);
  gap: 36px;
  align-items: start;
}

.rank-panel {
  overflow: hidden;
  border: 1px solid rgba(249, 115, 22, 0.12);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.rank-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(130px, 0.45fr) 96px;
  gap: 12px;
  align-items: center;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-row:hover {
  background: linear-gradient(90deg, #fff7ed, #fff);
}

.rank-num {
  color: var(--brand-red);
  font-size: 1.05rem;
  font-weight: 950;
}

.rank-title {
  overflow: hidden;
  font-weight: 850;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-tags {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.88rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-heat {
  justify-self: end;
  color: #9a3412;
  font-weight: 850;
}

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

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

.movie-card-compact h3 {
  font-size: 0.98rem;
}

.movie-card-compact .movie-one-line,
.movie-card-compact .tag-row {
  display: none;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 220px;
  gap: 14px;
  margin: 0 0 14px;
  padding: 18px;
  border: 1px solid rgba(249, 115, 22, 0.14);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: #9a3412;
  font-size: 0.84rem;
  font-weight: 850;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 0 14px;
  color: #1f2937;
  background: #fffaf5;
  font: inherit;
  outline: none;
}

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

.filter-count {
  min-height: 28px;
  margin: 0 0 18px;
  color: var(--text-muted);
  font-weight: 700;
}

.page-hero {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0 34px;
}

.page-hero h1 {
  max-width: 850px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.page-hero .breadcrumb {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--brand-red);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid rgba(249, 115, 22, 0.12);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.category-overview-cover {
  min-height: 180px;
  border-radius: var(--radius-lg);
}

.category-overview-card h2 {
  margin: 0 0 8px;
  font-size: 1.65rem;
}

.category-overview-card strong {
  display: inline-flex;
  margin: 14px 0;
  color: var(--brand-red);
}

.sample-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sample-tags span {
  padding: 5px 10px;
  border-radius: 999px;
  color: #9a3412;
  background: #fff7ed;
  font-size: 0.82rem;
  font-weight: 750;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #160c10;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  filter: blur(10px) saturate(1.18);
  transform: scale(1.04);
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 8, 11, 0.96), rgba(87, 33, 18, 0.78), rgba(18, 8, 11, 0.92)),
    radial-gradient(circle at 72% 25%, rgba(236, 72, 153, 0.32), transparent 34rem);
}

.detail-layout {
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 46px;
  align-items: center;
  padding: 64px 0;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  box-shadow: var(--shadow-strong);
}

.detail-info h1 {
  color: #fff;
}

.detail-one-line {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.16rem;
}

.detail-tags span,
.detail-meta span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.detail-info .btn {
  margin-top: 28px;
}

.detail-section {
  padding-bottom: 20px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #080808;
  box-shadow: var(--shadow-strong);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 0;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.74)),
    radial-gradient(circle, rgba(239, 68, 68, 0.35), transparent 26rem);
  cursor: pointer;
  font: inherit;
}

.player-shell.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
  box-shadow: 0 18px 42px rgba(239, 68, 68, 0.38);
  font-size: 2rem;
  text-indent: 4px;
}

.player-overlay strong {
  font-size: 1.32rem;
}

.player-overlay small {
  color: rgba(255, 255, 255, 0.74);
}

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

.content-card {
  padding: 28px;
  border: 1px solid rgba(249, 115, 22, 0.12);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.content-card h2 {
  margin: 12px 0;
  color: #1f2937;
  font-size: 1.55rem;
}

.content-card p {
  margin: 0;
  color: #4b5563;
}

.site-footer {
  margin-top: 40px;
  color: #fff;
  background: linear-gradient(135deg, #1f0d12, #7f1d1d 55%, #9a3412);
}

.footer-inner {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0;
}

.footer-inner p {
  max-width: 680px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

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

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

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

@media (max-width: 980px) {
  .hero,
  .hero-stage {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
    align-content: center;
  }

  .hero-poster {
    width: min(260px, 72vw);
    margin: -30px auto 0;
  }

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

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

  .split-section,
  .detail-text-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(300px, 76vw);
  }

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

  .rank-row {
    grid-template-columns: 46px minmax(0, 1fr) 84px;
  }

  .rank-tags {
    display: none;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
  }

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

  .nav-link {
    text-align: center;
  }

  .hero,
  .hero-stage {
    min-height: 720px;
  }

  .hero-content {
    padding: 42px 0 0;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 46px 0;
  }

  .section-soft {
    padding-left: 16px;
    padding-right: 16px;
  }

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

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

  .movie-card h3 {
    font-size: 0.96rem;
  }

  .movie-meta,
  .movie-one-line {
    font-size: 0.82rem;
  }

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

  .category-card {
    min-height: 180px;
  }

  .footer-inner {
    flex-direction: column;
  }

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

  .detail-layout {
    padding: 42px 0;
  }

  .player-shell {
    border-radius: 20px;
  }
}

@media (max-width: 420px) {
  .movie-grid,
  .movie-grid-featured,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .brand-text {
    font-size: 1rem;
  }

  .rank-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .rank-heat {
    display: none;
  }
}
