:root {
  --rose-50: #fff1f5;
  --rose-100: #ffe4ec;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-500: #ec4899;
  --purple-500: #8b5cf6;
  --yellow-400: #facc15;
  --text: #1f2937;
  --muted: #6b7280;
  --light: #ffffff;
  --line: rgba(244, 63, 94, 0.16);
  --shadow: 0 20px 45px rgba(225, 29, 72, 0.12);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #fff1f5 0%, #ffffff 45%, #fdf2f8 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 241, 245, 0.96), rgba(253, 242, 248, 0.96), rgba(245, 243, 255, 0.96));
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #fb7185, #ec4899);
  box-shadow: 0 14px 24px rgba(236, 72, 153, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-4deg);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(90deg, #e11d48, #db2777);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
}

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

.nav-link {
  position: relative;
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--rose-600);
  transition: width 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.header-search,
.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.page-filter input,
.big-search input {
  border: 2px solid #fecdd3;
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 220px;
}

.header-search input:focus,
.mobile-search input:focus,
.page-filter input:focus,
.big-search input:focus {
  border-color: #fb7185;
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.16);
}

.header-search button,
.mobile-search button,
.page-filter button,
.big-search button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, #f43f5e, #ec4899);
  padding: 11px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.page-filter button:hover,
.big-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.28);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--rose-600);
  font-size: 32px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid rgba(244, 63, 94, 0.14);
  background: rgba(255, 255, 255, 0.92);
}

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

.mobile-nav-link {
  padding: 10px 0;
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  font-weight: 700;
}

.mobile-nav-link.is-active {
  color: var(--rose-600);
}

.hero-carousel {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.8s ease;
  pointer-events: none;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-text {
  width: min(660px, 100%);
  color: #ffffff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #facc15;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-text h1,
.hero-text h2 {
  margin: 14px 0 18px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-text p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.8;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #be123c;
  background: rgba(255, 228, 236, 0.9);
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

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

.primary-button,
.ghost-button,
.card-action,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.card-action {
  color: #ffffff;
  background: linear-gradient(90deg, #f43f5e, #ec4899);
  box-shadow: 0 16px 32px rgba(236, 72, 153, 0.28);
}

.primary-button {
  padding: 15px 28px;
}

.ghost-button {
  padding: 14px 26px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 34px;
  cursor: pointer;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dots button {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 32px;
  background: #ffffff;
}

.content-section,
.category-strip,
.ranking-preview,
.latest-section {
  padding: 56px 0 0;
}

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

.section-heading h2 {
  margin: 4px 0 0;
  color: #1f2937;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
}

.section-kicker {
  color: var(--rose-500);
}

.section-more {
  padding: 10px 18px;
  color: var(--rose-600);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 20px rgba(244, 63, 94, 0.08);
}

.pill-scroll,
.quick-tags {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 14px;
}

.pill-scroll a,
.quick-tags button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  color: #374151;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.08);
  font-weight: 800;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.pill-scroll a:hover,
.quick-tags button:hover {
  color: #ffffff;
  background: linear-gradient(90deg, #f43f5e, #ec4899);
  transform: translateY(-2px);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 54px rgba(225, 29, 72, 0.18);
}

.card-poster {
  position: relative;
  display: block;
  height: 260px;
  overflow: hidden;
  background: linear-gradient(135deg, #fecdd3, #f5d0fe);
}

.movie-card.is-compact .card-poster {
  height: 220px;
}

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

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

.card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  min-width: 46px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(225, 29, 72, 0.9);
  font-weight: 900;
  text-align: center;
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 18px;
}

.card-meta {
  color: var(--rose-600);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.28;
}

.card-body h3 a:hover {
  color: var(--rose-600);
}

.card-body p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.72;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-action {
  margin-top: 16px;
  padding: 10px 18px;
  font-size: 14px;
}

.horizontal-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 22px;
  overflow-x: auto;
  padding: 6px 4px 24px;
}

.latest-section {
  padding: 40px 30px;
  margin-top: 56px;
  border-radius: 36px;
  background: linear-gradient(90deg, #faf5ff, #fdf2f8);
  box-shadow: var(--shadow);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 10px 20px rgba(31, 41, 55, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
  transform: translateX(6px);
  border-color: rgba(244, 63, 94, 0.35);
}

.rank-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  font-weight: 900;
}

.rank-title {
  font-weight: 900;
}

.rank-info {
  color: var(--muted);
  font-size: 14px;
}

.rank-score {
  color: var(--rose-600);
  font-weight: 900;
}

.page-hero {
  padding: 78px 0;
  background: radial-gradient(circle at top left, rgba(244, 63, 94, 0.18), transparent 34%), linear-gradient(135deg, #fff1f5, #ffffff, #fdf2f8);
}

.compact-hero h1,
.search-hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.compact-hero p,
.search-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

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

.category-card {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: var(--shadow);
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-card:hover img {
  transform: scale(1.07);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.78));
}

.category-card-copy {
  position: absolute;
  inset: auto 18px 18px;
  color: #ffffff;
}

.category-card-copy strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
}

.category-card-copy em {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  line-height: 1.6;
}

.page-filter {
  display: flex;
  gap: 12px;
  max-width: 720px;
  margin-top: 28px;
}

.page-filter input {
  flex: 1;
}

.ranking-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 30px;
  padding: 56px 0;
}

.rank-panel,
.ranking-cards,
.detail-main,
.detail-side,
.search-panel {
  border: 1px solid rgba(244, 63, 94, 0.1);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.rank-panel {
  position: sticky;
  top: 108px;
  align-self: start;
  padding: 24px;
}

.ranking-cards {
  padding: 24px;
}

.rank-panel h2,
.ranking-cards h2,
.detail-main h2,
.detail-side h2 {
  margin: 0 0 18px;
  font-size: 26px;
}

.search-panel {
  padding: 34px;
}

.big-search {
  display: flex;
  gap: 12px;
  max-width: 760px;
  margin-top: 26px;
}

.big-search input {
  flex: 1;
  padding: 15px 22px;
}

.big-search button {
  padding-inline: 30px;
}

.search-results-section {
  min-height: 420px;
}

.detail-hero {
  padding: 48px 0;
  background: radial-gradient(circle at 20% 10%, rgba(244, 63, 94, 0.18), transparent 32%), linear-gradient(135deg, #111827, #4c0519 55%, #831843);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 30px;
  align-items: center;
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.48));
  cursor: pointer;
}

.play-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.play-overlay span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  box-shadow: 0 20px 40px rgba(236, 72, 153, 0.38);
  font-size: 30px;
}

.play-overlay strong {
  font-size: 18px;
}

.detail-copy {
  color: #ffffff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 900;
}

.detail-line {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

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

.large-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding: 56px 0 0;
}

.detail-main,
.detail-side {
  padding: 30px;
}

.detail-main p,
.detail-side p,
.detail-side dd {
  color: #4b5563;
  line-height: 1.9;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  margin: 0 0 26px;
}

.detail-side dt {
  color: var(--rose-600);
  font-weight: 900;
}

.detail-side dd {
  margin: 0;
}

.text-link-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.text-link-list a {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff1f5;
  color: #be123c;
  font-weight: 800;
}

.site-footer {
  margin-top: 72px;
  color: #d1d5db;
  background: linear-gradient(90deg, #111827, #1f2937, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 30px;
  padding: 46px 0;
}

.footer-logo {
  display: block;
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 22px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.site-footer p {
  margin: 0;
  color: #9ca3af;
  line-height: 1.8;
}

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

.site-footer a {
  color: #d1d5db;
}

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

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

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

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

  .rank-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .header-inner {
    min-height: 72px;
  }

  .hero-carousel {
    height: 560px;
  }

  .hero-control {
    display: none;
  }

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

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

  .big-search,
  .page-filter {
    flex-direction: column;
  }
}

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

  .brand-title {
    font-size: 20px;
  }

  .brand-subtitle {
    display: none;
  }

  .hero-carousel {
    height: 600px;
  }

  .hero-text p {
    font-size: 17px;
  }

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

  .rank-row {
    grid-template-columns: 44px 1fr;
  }

  .rank-info,
  .rank-score {
    grid-column: 2;
  }

  .latest-section {
    padding: 30px 18px;
  }

  .detail-main,
  .detail-side,
  .search-panel {
    padding: 22px;
  }
}
