:root {
  --bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fff1f2;
  --ink: #171717;
  --muted: #6b7280;
  --line: rgba(15, 23, 42, 0.1);
  --rose: #f43f5e;
  --orange: #f97316;
  --amber: #f59e0b;
  --shadow: 0 24px 60px rgba(88, 28, 38, 0.14);
  --shadow-soft: 0 14px 30px rgba(88, 28, 38, 0.1);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(244, 63, 94, 0.18), transparent 32rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fff7ed 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.28);
}

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

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

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

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.24);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #111827;
  border-radius: 999px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 46px;
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  width: 300px;
  height: 300px;
  border-radius: 999px;
  filter: blur(30px);
  opacity: 0.38;
}

.hero::before {
  top: 8%;
  left: -100px;
  background: #fb7185;
}

.hero::after {
  right: -80px;
  bottom: 4%;
  background: #fbbf24;
}

.hero-stage {
  position: relative;
  min-height: 560px;
  border-radius: 36px;
  overflow: hidden;
  background: #111827;
  box-shadow: 0 40px 90px rgba(111, 34, 51, 0.26);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 30px;
  padding: 58px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

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

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

.hero-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(10, 10, 20, 0.92), rgba(10, 10, 20, 0.58) 48%, rgba(10, 10, 20, 0.2)),
    linear-gradient(0deg, rgba(10, 10, 20, 0.58), transparent 48%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  margin-bottom: 18px;
  color: #fff7ed;
  font-size: 0.9rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  max-width: 760px;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.08em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.83);
  font-size: 1.08rem;
}

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

.hero-meta span,
.tag-row span,
.detail-meta span,
.info-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: #7f1d1d;
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: 999px;
  background: #fff7ed;
}

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

.btn-primary,
.btn-secondary,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  font-weight: 900;
  border-radius: 999px;
  transition: 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.32);
}

.btn-secondary {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
}

.btn-soft {
  color: #9f1239;
  background: #fff1f2;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-soft:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: end;
  width: min(360px, 100%);
}

.hero-poster a {
  display: block;
  border: 8px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
  transition: 0.25s ease;
}

.hero-poster a:hover {
  transform: rotate(0deg) translateY(-8px);
}

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

.hero-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
}

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

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

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 58px;
  bottom: 28px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 30px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dot.is-active {
  background: linear-gradient(135deg, #fff7ed, #fbbf24);
}

.section {
  padding: 58px 0;
}

.section-tight {
  padding: 34px 0;
}

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

.section-kicker {
  margin: 0 0 7px;
  color: var(--rose);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3.4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  transition: 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #7f1d1d);
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.play-pill {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 10px 22px rgba(244, 63, 94, 0.32);
}

.card-body {
  padding: 16px;
}

.meta-row {
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.category-badge {
  color: #be123c;
}

.movie-card h3 {
  margin: 0 0 9px;
  font-size: 1.08rem;
  line-height: 1.34;
}

.movie-card p {
  display: -webkit-box;
  min-height: 3.1em;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.92rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row span {
  color: #9f1239;
  background: #ffe4e6;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  background:
    radial-gradient(circle at right top, rgba(251, 191, 36, 0.28), transparent 12rem),
    linear-gradient(135deg, #ffffff, #fff1f2);
  box-shadow: var(--shadow-soft);
  transition: 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  letter-spacing: -0.04em;
}

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

.category-card span {
  display: inline-flex;
  color: #be123c;
  font-weight: 900;
}

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

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-item {
  display: grid;
  grid-template-columns: 48px 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(88, 28, 38, 0.08);
  transition: 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
}

.rank-num {
  color: #be123c;
  font-size: 1.15rem;
  font-weight: 950;
  text-align: center;
}

.rank-item img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
  background: #111827;
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.rank-copy em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.panel-pad {
  padding: 24px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) repeat(4, minmax(140px, 0.8fr));
  gap: 12px;
  margin: 24px 0 28px;
  padding: 16px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

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

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(244, 63, 94, 0.5);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.empty-state {
  display: none;
  padding: 34px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed rgba(244, 63, 94, 0.26);
  border-radius: 22px;
  background: #fff7ed;
}

.page-hero {
  padding: 58px 0 24px;
}

.page-title {
  max-width: 860px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.breadcrumb a {
  color: #be123c;
}

.detail-hero {
  padding: 46px 0;
}

.detail-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: var(--shadow);
}

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

.detail-title {
  padding: 8px 0 0;
}

.detail-title h1 {
  margin-bottom: 16px;
}

.detail-meta {
  margin: 18px 0 22px;
}

.detail-intro {
  color: #374151;
  font-size: 1.08rem;
}

.player-section {
  padding: 16px 0 52px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #050505;
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.28);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  color: #ffffff;
  border: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.16), rgba(5, 5, 5, 0.7)),
    radial-gradient(circle at center, rgba(244, 63, 94, 0.28), transparent 20rem);
  transition: opacity 0.25s ease;
}

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

.play-trigger {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  color: #ffffff;
  font-size: 2.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 20px 42px rgba(244, 63, 94, 0.4);
}

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

.article-panel {
  padding: 30px;
}

.article-panel h2 {
  margin: 0 0 14px;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

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

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

.inline-cards {
  display: grid;
  gap: 14px;
}

.inline-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.inline-card img {
  width: 70px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  background: #111827;
}

.inline-card strong {
  display: block;
  margin-bottom: 4px;
  line-height: 1.3;
}

.inline-card span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer {
  margin-top: 60px;
  color: #fff7ed;
  background: linear-gradient(135deg, #111827, #7f1d1d 68%, #9a3412);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 42px 0;
}

.footer-brand {
  color: #ffffff;
  font-size: 1.2rem;
}

.site-footer p {
  max-width: 620px;
  margin: 10px 0 0;
  color: rgba(255, 247, 237, 0.72);
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

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

.footer-bottom {
  padding: 16px;
  color: rgba(255, 247, 237, 0.7);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

  .rank-layout,
  .content-grid {
    grid-template-columns: 1fr;
  }

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

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

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    padding: 12px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: grid;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 40px 28px 92px;
  }

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

  .hero-poster {
    justify-self: start;
    width: 220px;
  }

  .hero-dots {
    left: 28px;
  }

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

  .detail-shell {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(280px, 100%);
  }
}

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

  .hero {
    padding-top: 24px;
  }

  .hero-stage {
    min-height: 690px;
    border-radius: 26px;
  }

  .hero-slide {
    padding: 32px 20px 86px;
  }

  .hero-control {
    display: none;
  }

  .section-head,
  .footer-grid {
    display: grid;
    align-items: start;
  }

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

  .card-body,
  .article-panel {
    padding: 18px;
  }

  .play-trigger {
    width: 72px;
    height: 72px;
    font-size: 2.1rem;
  }
}
