:root {
  --rose-900: #881337;
  --rose-700: #be123c;
  --rose-600: #e11d48;
  --rose-500: #f43f5e;
  --rose-100: #ffe4e6;
  --rose-50: #fff1f2;
  --orange-700: #c2410c;
  --orange-600: #ea580c;
  --orange-100: #ffedd5;
  --orange-50: #fff7ed;
  --gray-950: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 10px 25px rgba(17, 24, 39, 0.10);
  --shadow-lg: 0 20px 45px rgba(17, 24, 39, 0.18);
  --radius-lg: 18px;
  --radius-xl: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-950);
  background: linear-gradient(180deg, var(--orange-50), var(--rose-50) 28%, #ffffff 70%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--rose-600);
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose-600), var(--orange-600));
  box-shadow: 0 12px 30px rgba(225, 29, 72, 0.25);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--gray-700);
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--rose-600);
  background: var(--rose-50);
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--rose-600);
  background: var(--rose-50);
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--rose-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(190, 18, 60, 0.96), rgba(234, 88, 12, 0.82) 50%, rgba(17, 24, 39, 0.55));
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 140px;
  background: linear-gradient(0deg, var(--orange-50), rgba(255, 247, 237, 0));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  color: var(--white);
}

.hero-copy {
  max-width: 640px;
}

.hero-kicker,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rose-600);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-kicker {
  color: var(--rose-100);
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-lead {
  margin: 0 0 26px;
  max-width: 600px;
  color: var(--rose-100);
  font-size: 20px;
  line-height: 1.75;
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--rose-600);
  background: var(--rose-50);
  font-size: 13px;
  font-weight: 700;
}

.hero .tag-pill {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-600), var(--orange-600));
  box-shadow: 0 20px 40px rgba(225, 29, 72, 0.25);
}

.primary-button.light {
  color: var(--rose-600);
  background: var(--white);
}

.ghost-button {
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.78);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-feature-card {
  width: min(320px, 30vw);
  padding: 14px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}

.hero-feature-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
}

.hero-feature-card span {
  display: block;
  padding: 14px 6px 4px;
  font-weight: 800;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

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

.search-panel,
.section-block,
.page-main {
  padding-top: 56px;
  padding-bottom: 32px;
}

.search-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.6fr;
  gap: 26px;
  align-items: end;
}

.search-panel h2,
.section-heading h2,
.ranking-panel h2,
.page-title-panel h1,
.rank-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 150px 150px;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(225, 29, 72, 0.13);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-md);
}

.filter-bar label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 800;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--gray-800);
  background: var(--white);
  outline: 0;
}

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

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

.section-heading a {
  color: var(--rose-600);
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card-link {
  display: block;
  height: 100%;
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--rose-100), var(--orange-100));
}

.card-compact .poster-wrap,
.category-movie-grid .poster-wrap {
  aspect-ratio: 3 / 4;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.02));
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-wrap::after {
  opacity: 1;
}

.poster-play {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--rose-600);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  color: var(--white);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose-600), var(--orange-600));
  font-weight: 900;
}

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

.eyebrow {
  display: inline-flex;
  color: var(--rose-600);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.card-compact h3,
.category-movie-grid h3 {
  font-size: 16px;
}

.movie-card p {
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 800;
}

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

.category-tile,
.category-overview {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  border-radius: 24px;
  background: var(--rose-900);
  box-shadow: var(--shadow-md);
}

.category-tile img,
.category-overview img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  opacity: 0.65;
  transition: transform 0.5s ease;
}

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

.category-tile span,
.category-overview-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0));
}

.category-tile strong,
.category-overview strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.category-tile small,
.category-overview small {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

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

.ranking-panel,
.side-card,
.detail-card,
.page-title-panel {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(225, 29, 72, 0.10);
}

.ranking-panel {
  padding: 24px;
}

.sticky-panel {
  position: sticky;
  top: 94px;
}

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

.tall-list {
  max-height: 850px;
  overflow: auto;
  padding-right: 6px;
}

.ranking-item {
  display: grid;
  grid-template-columns: auto 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: var(--rose-50);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-item:hover {
  background: var(--orange-50);
  transform: translateX(4px);
}

.ranking-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--white);
  border-radius: 999px;
  background: var(--rose-600);
  font-weight: 900;
  font-size: 13px;
}

.ranking-item img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
}

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

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

.ranking-copy small {
  margin-top: 4px;
  color: var(--gray-500);
}

.cta-band {
  margin-top: 48px;
  padding: 70px 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-600), var(--orange-600));
}

.cta-inner {
  text-align: center;
}

.cta-inner h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 50px);
}

.cta-inner p {
  max-width: 760px;
  margin: 0 auto 24px;
  color: var(--rose-100);
  font-size: 18px;
  line-height: 1.7;
}

.page-main {
  min-height: 70vh;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--gray-500);
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--rose-600);
}

.breadcrumb span::before,
.breadcrumb a + span::before,
.breadcrumb a + a::before {
  content: "/";
  margin-right: 10px;
  color: var(--gray-500);
}

.breadcrumb.inverse,
.breadcrumb.inverse a,
.breadcrumb.inverse span::before {
  color: rgba(255, 255, 255, 0.78);
}

.page-title-panel {
  padding: 36px;
  margin-bottom: 26px;
}

.page-title-panel p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--gray-600);
  font-size: 18px;
  line-height: 1.7;
}

.rank-hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  color: var(--white);
  background: var(--gray-950);
}

.rank-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(136, 19, 55, 0.95), rgba(234, 88, 12, 0.78), rgba(17, 24, 39, 0.6));
}

.rank-hero-copy {
  position: relative;
  z-index: 1;
  padding: 70px 0;
}

.rank-hero p {
  max-width: 680px;
  margin: 18px 0 26px;
  color: var(--rose-100);
  font-size: 19px;
  line-height: 1.7;
}

.light-label {
  color: var(--rose-100);
}

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

.detail-primary {
  display: grid;
  gap: 22px;
}

.player {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow-lg);
}

.player-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: rgba(0, 0, 0, 0.35);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-ring {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  color: var(--rose-600);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  font-size: 30px;
}

.detail-card {
  padding: 28px;
}

.detail-card h1 {
  margin: 12px 0 12px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.15;
}

.detail-lead {
  margin: 0;
  color: var(--gray-600);
  font-size: 19px;
  line-height: 1.7;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
  padding: 18px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--gray-700);
  background: var(--orange-50);
  font-size: 13px;
  font-weight: 800;
}

.detail-card h2 {
  margin: 28px 0 12px;
  font-size: 22px;
}

.detail-card p {
  color: var(--gray-700);
  font-size: 17px;
  line-height: 1.9;
  white-space: pre-line;
}

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

.side-card {
  padding: 18px;
}

.cover-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  object-fit: cover;
  margin-bottom: 14px;
}

.cover-card strong,
.cover-card small {
  display: block;
}

.cover-card small {
  color: var(--gray-500);
  margin-top: 6px;
}

.side-links {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.site-footer {
  margin-top: 56px;
  padding: 38px 0;
  color: var(--gray-600);
  background: #ffffff;
  border-top: 1px solid var(--gray-200);
}

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

.footer-grid p {
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  gap: 16px;
  font-weight: 800;
  color: var(--rose-600);
}

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

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

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

  .two-column-block,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .sticky-panel {
    position: static;
  }

  .hero-feature-card {
    display: none;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    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-lg);
  }

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

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

  .hero {
    height: 560px;
  }

  .hero-content {
    align-items: flex-end;
    padding-bottom: 78px;
  }

  .hero-lead {
    font-size: 17px;
  }

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

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

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

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

  .movie-card h3 {
    font-size: 15px;
  }

  .movie-card p {
    -webkit-line-clamp: 2;
    font-size: 13px;
  }

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

  .detail-card,
  .page-title-panel,
  .ranking-panel {
    padding: 20px;
    border-radius: 22px;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .small-grid,
  .category-movie-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }
}
