:root {
  --rose-950: #4a0413;
  --rose-900: #881337;
  --rose-800: #9f1239;
  --rose-700: #be123c;
  --rose-600: #e11d48;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-200: #fde68a;
  --cream: #fff7ed;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(159, 18, 57, 0.12);
  --shadow: 0 18px 45px rgba(136, 19, 55, 0.18);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(244, 63, 94, 0.12), transparent 32rem),
    linear-gradient(180deg, #fff7ed 0%, #fff 36%, #fff7ed 100%);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.is-locked {
  overflow: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, var(--rose-900), var(--rose-800) 48%, #78350f);
  box-shadow: 0 18px 35px rgba(76, 5, 25, 0.26);
}

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #fb7185, var(--amber-500));
  box-shadow: 0 10px 24px rgba(251, 113, 133, 0.36);
}

.brand-text {
  font-size: 22px;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.desktop-nav a,
.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.nav-dropdown:hover > a {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 190px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 12px;
  min-height: auto;
}

.dropdown-panel a:hover {
  background: #fff1f2;
  color: var(--rose-800);
  transform: none;
}

.global-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.global-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.global-search input,
.mobile-search input {
  width: 220px;
  padding: 10px 14px;
}

.global-search button,
.mobile-search button,
.filter-panel button,
.btn-primary,
.btn-ghost,
.section-link,
.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.global-search button,
.mobile-search button,
.btn-primary,
.rank-action {
  color: #fff;
  background: linear-gradient(135deg, var(--rose-600), var(--amber-600));
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.28);
}

.global-search button,
.mobile-search button {
  padding: 10px 16px;
}

.btn-primary,
.btn-ghost {
  min-height: 48px;
  padding: 0 24px;
}

.btn-primary:hover,
.global-search button:hover,
.mobile-search button:hover,
.rank-action:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-ghost,
.section-link {
  color: var(--rose-900);
  background: rgba(255, 255, 255, 0.86);
}

.btn-ghost:hover,
.section-link:hover {
  background: #fff;
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  place-items: center;
  gap: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.mobile-panel nav a {
  color: #fff;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-slider {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: #111827;
}

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(30, 3, 14, 0.9) 0%, rgba(76, 5, 25, 0.72) 42%, rgba(120, 53, 15, 0.2) 100%),
    radial-gradient(circle at 78% 24%, rgba(245, 158, 11, 0.34), transparent 24rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 46px;
  padding: 76px 0;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: #fde68a;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.hero-copy h1 {
  max-width: 740px;
  margin: 18px 0 18px;
  color: #fff;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.96;
  font-weight: 950;
  text-shadow: 0 18px 38px rgba(0, 0, 0, 0.38);
}

.hero-copy p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 19px;
  line-height: 1.85;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-meta {
  margin: 26px 0;
}

.hero-meta span,
.detail-meta span {
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

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

.hero-poster {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}

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

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

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose-600), var(--amber-600));
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--amber-500);
}

.content-section {
  padding: 70px 0;
}

.content-section:nth-of-type(even) {
  background: linear-gradient(90deg, rgba(255, 241, 242, 0.88), rgba(254, 243, 199, 0.88));
}

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

.section-heading h2,
.page-hero h1,
.detail-title h1 {
  color: var(--ink);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  margin-top: 8px;
  font-size: clamp(28px, 4vw, 44px);
}

.eyebrow {
  color: var(--rose-700);
}

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

.movie-grid.compact-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(136, 19, 55, 0.09);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
  border-color: rgba(225, 29, 72, 0.28);
}

.card-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-900), var(--amber-700));
}

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

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

.card-media::after {
  content: "";
  position: absolute;
  inset: 48% 0 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.58));
}

.card-badge,
.card-play {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
}

.card-badge {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(159, 18, 57, 0.86);
  font-size: 13px;
  font-weight: 900;
}

.card-play {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-600), var(--amber-600));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.card-body {
  padding: 18px;
}

.card-meta {
  color: var(--rose-700);
  font-size: 13px;
  font-weight: 800;
}

.card-body h3,
.rank-content h2 {
  margin-top: 8px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.35;
  font-weight: 900;
}

.card-body h3 a:hover,
.rank-content h2 a:hover,
.detail-text a:hover {
  color: var(--rose-700);
}

.card-body p,
.rank-content p,
.category-card p,
.page-hero p,
.detail-text p,
.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.card-body p {
  margin-top: 9px;
  min-height: 72px;
  font-size: 14px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag-list span {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--rose-800);
  background: #fff1f2;
  font-size: 12px;
  font-weight: 800;
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
}

.movie-card-wide .card-media img {
  height: 100%;
  aspect-ratio: auto;
}

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

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

.category-card {
  position: relative;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 28px;
  padding: 24px;
  color: #fff;
  box-shadow: var(--shadow);
  background: var(--rose-900);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(76, 5, 25, 0.88));
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 2;
}

.category-card span {
  font-size: 24px;
  font-weight: 950;
}

.category-card p {
  color: rgba(255, 255, 255, 0.86);
  margin-top: 10px;
}

.category-card:hover img {
  transform: scale(1.08);
  opacity: 0.72;
}

.page-hero {
  padding: 76px 0 54px;
  background:
    radial-gradient(circle at 82% 16%, rgba(245, 158, 11, 0.3), transparent 22rem),
    linear-gradient(135deg, #fff1f2, #fef3c7);
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
  max-width: 820px;
  margin-top: 14px;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--rose-700);
  font-weight: 800;
}

.breadcrumb a:hover {
  color: var(--amber-700);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 160px 96px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(136, 19, 55, 0.08);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(159, 18, 57, 0.13);
}

.filter-panel button {
  color: #fff;
  background: var(--rose-800);
}

.search-empty {
  display: none;
  padding: 28px;
  text-align: center;
  border-radius: 20px;
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--line);
}

.search-empty.is-visible {
  display: block;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 72px 120px minmax(0, 1fr) 96px;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(136, 19, 55, 0.08);
}

.rank-index {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--rose-600), var(--amber-600));
}

.rank-cover img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 18px;
}

.rank-action {
  min-height: 42px;
}

.detail-shell {
  padding: 38px 0 76px;
}

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

.detail-player {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  aspect-ratio: 16 / 9;
}

.detail-player video {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #111827;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(251, 191, 36, 0.3), transparent 18rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(28, 6, 16, 0.72));
}

.player-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 32px;
  background: linear-gradient(135deg, var(--rose-600), var(--amber-600));
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.34);
}

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

.detail-title {
  margin: 26px 0 24px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
}

.detail-title h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
}

.detail-meta {
  margin-top: 18px;
}

.detail-meta span {
  color: var(--rose-800);
  background: #fff1f2;
}

.detail-text {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(136, 19, 55, 0.08);
}

.detail-text + .detail-text {
  margin-top: 20px;
}

.detail-text h2,
.side-panel h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
}

.side-panel {
  position: sticky;
  top: 96px;
  padding: 20px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(136, 19, 55, 0.08);
}

.side-cover {
  overflow: hidden;
  border-radius: 22px;
  background: var(--rose-900);
}

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

.side-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.side-list a {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: var(--ink);
}

.side-list img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
}

.side-list span {
  font-weight: 900;
  line-height: 1.35;
}

.related-wrap {
  margin-top: 24px;
}

.site-footer {
  color: #e5e7eb;
  background: linear-gradient(180deg, #111827, #030712);
  padding-top: 54px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  font-size: 24px;
  margin-bottom: 14px;
}

.site-footer h2 {
  margin-bottom: 14px;
  color: #fbbf24;
  font-size: 18px;
  font-weight: 900;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #d1d5db;
}

.site-footer a:hover {
  color: #fbbf24;
}

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

@media (max-width: 1060px) {
  .desktop-nav,
  .global-search {
    display: none;
  }

  .menu-toggle {
    display: grid;
    margin-left: auto;
  }

  .hero-content,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .side-panel {
    display: none;
  }

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

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

@media (max-width: 760px) {
  .topbar {
    height: 66px;
  }

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

  .hero-slider,
  .hero-content {
    min-height: 590px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .content-section {
    padding: 48px 0;
  }

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

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

  .card-body {
    padding: 14px;
  }

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

  .movie-card-wide {
    display: block;
  }

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

  .ranking-row {
    grid-template-columns: 48px 78px minmax(0, 1fr);
  }

  .rank-cover img {
    width: 78px;
    height: 104px;
  }

  .rank-action {
    grid-column: 2 / 4;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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

  .brand-mark {
    width: 38px;
    height: 38px;
  }

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

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