:root {
  --rose: #f43f5e;
  --rose-dark: #e11d48;
  --pink: #ec4899;
  --amber: #fde68a;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff1f2;
  --card: #ffffff;
  --footer: #111827;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f9fafb;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 22px;
}

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

.brand-mark,
.footer-brand span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 12px 26px rgba(244, 63, 94, 0.28);
}

.brand-text {
  font-size: 21px;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #374151;
  font-size: 15px;
}

.desktop-nav a {
  transition: color 0.2s ease;
}

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

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

.nav-search input,
.mobile-search input,
.page-filter input,
.filter-panel input,
.filter-panel select {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 10px 14px;
  outline: none;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.page-filter input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.nav-search button,
.mobile-search button,
.primary-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button,
.mobile-search button,
.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 16px 32px rgba(244, 63, 94, 0.22);
}

.nav-search button,
.mobile-search button {
  padding: 10px 18px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
}

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover,
.nav-search button:hover,
.mobile-search button:hover {
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  border: 0;
  color: #374151;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: #fff;
}

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

.mobile-nav a {
  color: #374151;
  font-weight: 650;
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #f43f5e 0%, #ec4899 42%, #be185d 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.22;
  pointer-events: none;
}

.hero-orb-a {
  top: 60px;
  left: 6%;
  width: 260px;
  height: 260px;
  background: #fff;
}

.hero-orb-b {
  right: 8%;
  bottom: 34px;
  width: 360px;
  height: 360px;
  background: #fde047;
}

.hero-shell {
  position: relative;
  min-height: 560px;
  padding: 76px 0 42px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: center;
  gap: 48px;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeUp 0.55s ease both;
}

.hero-eyebrow,
.section-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-eyebrow {
  padding: 8px 14px;
  color: var(--amber);
  background: rgba(255, 255, 255, 0.12);
}

.section-kicker {
  color: var(--rose);
  font-size: 13px;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-description {
  max-width: 680px;
  margin: 22px 0 0;
  color: #ffe4e6;
  font-size: 20px;
  line-height: 1.8;
}

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

.hero-tags {
  margin: 24px 0 0;
}

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  padding: 8px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

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

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 32px 80px rgba(88, 28, 135, 0.34);
  transform: rotate(1deg);
  transition: transform 0.3s ease;
}

.hero-poster:hover {
  transform: rotate(0) scale(1.02);
}

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

.hero-poster::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 54%);
}

.hero-poster-label {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 1;
  font-size: 26px;
  font-weight: 800;
}

.hero-controls {
  position: absolute;
  right: 0;
  bottom: 96px;
  display: flex;
  gap: 10px;
}

.hero-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  font-size: 28px;
}

.hero-category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 46px;
}

.hero-category-strip a {
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-category-strip a:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

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

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.section-more {
  color: var(--rose);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 60px rgba(244, 63, 94, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

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

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

.poster-year,
.rank-badge,
.poster-play {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
}

.poster-year {
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  background: rgba(17, 24, 39, 0.72);
}

.rank-badge {
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #f59e0b, var(--rose));
}

.poster-play {
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: rgba(244, 63, 94, 0.88);
  box-shadow: 0 14px 30px rgba(244, 63, 94, 0.35);
}

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

.movie-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.movie-meta-line a {
  color: var(--rose);
  font-weight: 800;
}

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

.movie-card p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.tag-row span {
  padding: 6px 10px;
  color: #be123c;
  background: #ffe4e6;
}

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

.is-small h3 {
  font-size: 16px;
}

.is-small p {
  min-height: 42px;
  font-size: 13px;
}

.category-overview {
  background: linear-gradient(180deg, #fff, #fff1f2);
}

.category-grid,
.wide-category-grid {
  display: grid;
  gap: 22px;
}

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

.category-card,
.wide-category-card {
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(244, 63, 94, 0.09);
}

.category-card {
  padding: 24px;
}

.category-card-title,
.wide-category-card h2 {
  color: var(--ink);
  font-size: 22px;
  font-weight: 850;
}

.category-card p,
.wide-category-card p {
  color: var(--muted);
  line-height: 1.8;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.category-chips a {
  padding: 8px 11px;
  border-radius: 999px;
  color: #be123c;
  background: #ffe4e6;
  font-size: 13px;
  font-weight: 700;
}

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

.wide-category-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
}

.page-hero,
.detail-hero {
  color: #fff;
  background: radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.22), transparent 28%), linear-gradient(135deg, #be123c, #ec4899 52%, #881337);
}

.page-hero {
  padding: 72px 0;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  color: #ffe4e6;
  font-size: 18px;
  line-height: 1.8;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 36px;
  align-items: center;
}

.page-filter,
.filter-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
}

.page-filter input,
.filter-panel input,
.filter-panel select {
  width: 100%;
}

.empty-state {
  display: none;
  padding: 42px;
  border-radius: 24px;
  color: var(--muted);
  background: #fff;
  text-align: center;
}

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

.rank-list,
.rank-page-list {
  display: grid;
  gap: 14px;
}

.rank-row,
.rank-page-row {
  display: grid;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover,
.rank-page-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(244, 63, 94, 0.14);
}

.rank-row {
  grid-template-columns: 48px 58px minmax(0, 1fr) 64px;
  gap: 14px;
  padding: 12px 16px;
}

.rank-row span:first-child,
.rank-index {
  color: var(--rose);
  font-size: 20px;
  font-weight: 900;
}

.rank-row img {
  width: 58px;
  height: 78px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-row em,
.rank-score {
  color: var(--rose);
  font-style: normal;
  font-weight: 900;
}

.rank-page-row {
  grid-template-columns: 54px 86px minmax(0, 1fr) 80px;
  gap: 18px;
  padding: 16px;
}

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

.rank-page-row strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.rank-page-row p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.7;
}

.rank-page-row em {
  color: #9ca3af;
  font-style: normal;
}

.detail-hero {
  padding: 34px 0 58px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
  color: #ffe4e6;
}

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

.player-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.44);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.12));
  cursor: pointer;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 22px 50px rgba(244, 63, 94, 0.42);
  font-size: 34px;
  transform: translateX(3px);
}

.play-overlay.is-hidden {
  display: none;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.28);
}

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

.detail-content h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  letter-spacing: -0.04em;
}

.detail-one-line {
  color: #ffe4e6;
  font-size: 19px;
  line-height: 1.8;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.detail-meta div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.detail-meta dt {
  color: #fecdd3;
  font-size: 13px;
}

.detail-meta dd {
  margin: 5px 0 0;
  font-weight: 800;
}

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

.detail-section {
  margin-top: 42px;
  padding: 34px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.detail-section h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.detail-section p {
  margin: 0;
  color: #374151;
  font-size: 17px;
  line-height: 1.95;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding: 52px 0;
}

.footer-brand {
  color: #fff;
  font-size: 22px;
}

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

.site-footer p,
.site-footer li {
  color: #d1d5db;
  line-height: 1.8;
}

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

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

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .hero-slide,
  .split-layout,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-controls {
    position: static;
    margin-top: 20px;
  }

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

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

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

  .hero-shell {
    min-height: auto;
    padding: 48px 0 30px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 38px;
  }

  .hero-description,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .hero-actions,
  .section-heading,
  .wide-category-card {
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .rank-page-row {
    grid-template-columns: 42px 74px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 3;
  }

  .rank-row {
    grid-template-columns: 38px 50px minmax(0, 1fr) 46px;
  }

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