:root {
  --rose: #e11d48;
  --rose-dark: #be123c;
  --purple: #7c3aed;
  --amber: #f59e0b;
  --stone-950: #0c0a09;
  --stone-900: #1c1917;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --sand: #fff7ed;
  --white: #ffffff;
  --shadow-soft: 0 24px 70px rgba(28, 25, 23, .12);
  --shadow-card: 0 18px 45px rgba(68, 64, 60, .13);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--stone-800);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 32%, #fafaf9 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 237, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(231, 229, 228, .72);
  transition: box-shadow .25s ease, background .25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 16px 45px rgba(68, 64, 60, .09);
}

.nav-wrap {
  max-width: var(--max);
  height: 76px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose), var(--purple));
  box-shadow: 0 14px 32px rgba(225, 29, 72, .28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-text strong {
  font-size: 21px;
  letter-spacing: -.03em;
  background: linear-gradient(120deg, var(--rose-dark), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 4px;
  color: var(--stone-600);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 700;
  color: var(--stone-700);
}

.desktop-nav a,
.mobile-nav a {
  position: relative;
  transition: color .2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--rose-dark);
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rose), var(--purple));
  transition: right .2s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  right: 0;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: var(--stone-700);
  font-size: 22px;
  box-shadow: 0 8px 22px rgba(68, 64, 60, .12);
}

.mobile-nav {
  display: none;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(231, 229, 228, .82);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 720px;
  padding: 90px 22px 80px;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at top left, rgba(244, 63, 94, .68), transparent 34%),
              radial-gradient(circle at 86% 16%, rgba(124, 58, 237, .58), transparent 34%),
              linear-gradient(135deg, #1c1917 0%, #3f1d37 48%, #111827 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 10, 9, .78), rgba(12, 10, 9, .52), rgba(12, 10, 9, .78));
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  background-size: cover;
  background-position: center;
  transition: opacity .8s ease, transform 2.2s ease;
}

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

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .11);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, .92);
  font-weight: 800;
  font-size: 14px;
}

.hero h1,
.page-hero h1 {
  margin: 22px 0 20px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: .98;
  letter-spacing: -.06em;
}

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

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

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--rose), var(--purple));
  box-shadow: 0 18px 42px rgba(225, 29, 72, .32);
}

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

.btn-light {
  color: var(--rose-dark);
  background: #fff;
  box-shadow: 0 12px 32px rgba(68, 64, 60, .11);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
}

.hero-stat {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(14px);
}

.hero-stat strong {
  display: block;
  font-size: 28px;
}

.hero-stat span {
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
}

.hero-feature {
  display: grid;
  gap: 18px;
}

.focus-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border-radius: 28px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 26px 72px rgba(0, 0, 0, .24);
  backdrop-filter: blur(18px);
}

.focus-card:first-child {
  grid-template-columns: 210px minmax(0, 1fr);
  padding: 22px;
}

.focus-card h2,
.focus-card h3 {
  margin: 0 0 9px;
  font-size: 24px;
  line-height: 1.25;
}

.focus-card h3 {
  font-size: 19px;
}

.focus-card p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  line-height: 1.6;
}

.poster {
  position: relative;
  min-height: 238px;
  border-radius: 20px;
  overflow: hidden;
  background-color: #3f1d37;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 14px 32px rgba(28, 25, 23, .16);
}

.poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 52%;
  background: linear-gradient(180deg, transparent, rgba(12, 10, 9, .66));
}

.poster-large {
  min-height: 330px;
}

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(12, 10, 9, .58);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: 12px;
  font-weight: 900;
}

.section,
.page-section {
  padding: 74px 22px;
}

.section-white {
  background: #fff;
}

.section-soft {
  background: linear-gradient(180deg, #fff7ed 0%, #fff 100%);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
}

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -.045em;
  color: var(--stone-900);
}

.section-desc {
  max-width: 650px;
  margin: 10px 0 0;
  color: var(--stone-600);
  line-height: 1.8;
}

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

.movie-card {
  background: #fff;
  border: 1px solid rgba(231, 229, 228, .9);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(225, 29, 72, .25);
  box-shadow: 0 24px 62px rgba(225, 29, 72, .13);
}

.movie-poster-link {
  display: block;
}

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

.movie-card-meta,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 800;
}

.movie-card-meta span,
.detail-meta span,
.rank-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--stone-100);
}

.movie-card h3 {
  margin: 12px 0 8px;
  color: var(--stone-900);
  font-size: 19px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--rose-dark);
}

.movie-card p {
  margin: 0 0 14px;
  color: var(--stone-600);
  font-size: 14px;
  line-height: 1.65;
}

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

.tag-row span {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--rose-dark);
  background: #fff1f2;
  font-size: 12px;
  font-weight: 800;
}

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

.category-card {
  min-height: 150px;
  padding: 22px;
  border-radius: 26px;
  color: #fff;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, .28), transparent 34%),
              linear-gradient(135deg, var(--rose), var(--purple));
  box-shadow: 0 24px 60px rgba(124, 58, 237, .18);
  transition: transform .2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.category-card span {
  color: rgba(255, 255, 255, .8);
}

.page-hero {
  padding: 88px 22px 58px;
  color: #fff;
  background: radial-gradient(circle at 18% 20%, rgba(244, 63, 94, .52), transparent 34%),
              radial-gradient(circle at 82% 14%, rgba(124, 58, 237, .48), transparent 36%),
              linear-gradient(135deg, #1c1917, #3f1d37 54%, #111827);
}

.page-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

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

.page-hero p {
  max-width: 790px;
  color: rgba(255, 255, 255, .82);
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  margin-bottom: 26px;
  padding: 20px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(231, 229, 228, .86);
  box-shadow: var(--shadow-card);
}

.search-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 900;
  color: var(--stone-900);
}

.search-row {
  display: flex;
  gap: 10px;
}

.search-row input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--stone-200);
  border-radius: 16px;
  padding: 0 16px;
  font-size: 15px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.search-row input:focus {
  border-color: rgba(225, 29, 72, .45);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, .1);
}

.search-row button {
  flex: 0 0 auto;
  min-width: 86px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: var(--stone-800);
  font-weight: 900;
  cursor: pointer;
}

.filter-count {
  margin: 12px 0 0;
  color: var(--stone-500);
  font-size: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 130px minmax(0, 1fr) 120px;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(231, 229, 228, .88);
  box-shadow: var(--shadow-card);
}

.rank-number {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  background: linear-gradient(135deg, var(--rose), var(--purple));
}

.rank-item .poster {
  min-height: 168px;
  border-radius: 18px;
}

.rank-item h2,
.rank-item h3 {
  margin: 0 0 8px;
  color: var(--stone-900);
}

.rank-score {
  text-align: right;
  font-weight: 900;
  color: var(--rose-dark);
}

.rank-score strong {
  display: block;
  font-size: 28px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(310px, .82fr);
  gap: 28px;
}

.player-card,
.detail-card,
.side-card {
  background: #fff;
  border: 1px solid rgba(231, 229, 228, .9);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

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

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #050505;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(225, 29, 72, .18), rgba(0, 0, 0, .52));
  transition: opacity .22s ease, visibility .22s ease;
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.play-button {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--purple));
  box-shadow: 0 26px 70px rgba(225, 29, 72, .42);
  font-size: 36px;
  cursor: pointer;
}

.player-note {
  padding: 14px 18px;
  color: var(--stone-600);
  background: #fff7ed;
  font-size: 14px;
  line-height: 1.65;
}

.detail-card {
  padding: 26px;
}

.detail-card h1 {
  margin: 14px 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -.04em;
  color: var(--stone-900);
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 16px;
  color: var(--stone-900);
}

.detail-card p {
  color: var(--stone-700);
  line-height: 1.9;
}

.detail-section {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--stone-200);
}

.side-card {
  padding: 20px;
  margin-bottom: 20px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-item .poster {
  min-height: 108px;
  border-radius: 14px;
}

.related-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--stone-900);
  line-height: 1.35;
}

.related-item span {
  color: var(--stone-500);
  font-size: 13px;
}

.breadcrumb {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, .76);
  font-weight: 800;
}

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

.simple-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 36px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-card);
  line-height: 1.9;
}

.simple-content h2 {
  margin-top: 0;
}

.site-footer {
  padding: 58px 22px 26px;
  color: #d6d3d1;
  background: #1c1917;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 1.35fr .85fr;
  gap: 42px;
}

.site-footer p {
  max-width: 430px;
  color: #a8a29e;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 18px;
  color: #fff;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.footer-list.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-list a {
  color: #a8a29e;
  transition: color .2s ease;
}

.footer-list a:hover {
  color: #fb7185;
}

.footer-bottom {
  max-width: var(--max);
  margin: 38px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #78716c;
  font-size: 13px;
}

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

@media (max-width: 1060px) {
  .hero-inner,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
  }

  .hero {
    min-height: auto;
    padding-top: 64px;
  }

  .hero-feature,
  .focus-card,
  .focus-card:first-child {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

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

  .rank-item {
    grid-template-columns: 52px 100px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 2 / -1;
    text-align: left;
  }

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

@media (max-width: 560px) {
  .nav-wrap {
    height: 68px;
    padding: 0 16px;
  }

  .brand-text small {
    display: none;
  }

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

  .hero,
  .page-hero,
  .section,
  .page-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 40px;
  }

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

  .poster {
    min-height: 260px;
  }

  .rank-item {
    grid-template-columns: 1fr;
  }

  .rank-number {
    width: 44px;
    height: 44px;
  }

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