:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-200: #fecdd3;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-500: #ec4899;
  --orange-400: #fb923c;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow-soft: 0 18px 48px rgba(225, 29, 72, 0.16);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius-large: 28px;
  --radius-card: 22px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-900);
  background: linear-gradient(180deg, var(--rose-50) 0%, #ffffff 34%, #fff7f8 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

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

.header-inner {
  max-width: 1200px;
  height: 78px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500), var(--orange-400));
  box-shadow: 0 14px 30px rgba(244, 63, 94, 0.34);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--slate-500);
  transition: color 0.22s ease;
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--rose-50);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--rose-500);
}

.mobile-nav {
  display: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px 18px;
  gap: 12px;
}

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

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--slate-700);
  background: var(--rose-50);
  font-weight: 700;
}

.hero-slider {
  position: relative;
  max-width: 1200px;
  min-height: 640px;
  margin: 28px auto 0;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow-soft);
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
}

.hero-backdrop img {
  height: 100%;
  object-fit: cover;
  filter: blur(16px) saturate(1.05);
  transform: scale(1.08);
  opacity: 0.52;
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 32%, rgba(244, 63, 94, 0.52), transparent 34%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.92));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 640px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1.05fr 0.62fr;
  align-items: center;
  gap: 54px;
  color: var(--white);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rose-500);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy .eyebrow,
.page-hero .eyebrow,
.detail-copy .eyebrow {
  color: #fecdd3;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 7vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  margin: 0;
  font-size: 17px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.84);
}

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

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

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

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

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

.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 16px 30px rgba(236, 72, 153, 0.3);
}

.ghost-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

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

.hero-poster {
  position: relative;
  width: min(360px, 100%);
  justify-self: end;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(14px);
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  font-size: 25px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  transition: width 0.22s ease, background 0.22s ease;
}

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

.section-wrap {
  max-width: 1200px;
  margin: 42px auto;
  padding: 0 22px;
}

.intro-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  border-radius: var(--radius-large);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.intro-strip h2,
.section-heading h2,
.article-section h2 {
  margin: 8px 0 0;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -0.04em;
}

.intro-strip p {
  margin: 12px 0 0;
  color: var(--slate-500);
  line-height: 1.8;
}

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

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

.compact-heading {
  margin-bottom: 16px;
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  background: var(--slate-900);
  isolation: isolate;
}

.category-tile img {
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.86));
  z-index: 1;
}

.category-tile span,
.category-tile small {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 2;
  color: var(--white);
}

.category-tile span {
  bottom: 56px;
  font-size: 21px;
  font-weight: 900;
}

.category-tile small {
  bottom: 18px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.category-tile:hover img {
  transform: scale(1.06);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 26px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
}

.rank-num {
  font-size: 20px;
  font-weight: 900;
  color: var(--rose-500);
}

.rank-title {
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-meta {
  color: var(--slate-500);
  font-size: 13px;
}

.movie-grid,
.compact-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.13);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--slate-100);
}

.poster-link img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.78));
}

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.year-badge {
  right: 12px;
  background: rgba(15, 23, 42, 0.62);
}

.rank-badge {
  left: 12px;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
}

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

.movie-meta-line {
  margin-bottom: 8px;
  color: var(--rose-500);
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.movie-title {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.movie-title a:hover {
  color: var(--rose-500);
}

.movie-card-body p {
  min-height: 54px;
  margin: 10px 0 14px;
  color: var(--slate-500);
  font-size: 14px;
  line-height: 1.7;
}

.tag-row span {
  background: var(--rose-50);
  color: var(--rose-600);
}

.compact .movie-title {
  font-size: 16px;
}

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

.compact .movie-card-body p {
  display: none;
}

.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.search-box {
  display: grid;
  gap: 8px;
  color: var(--slate-700);
  font-weight: 800;
}

.search-box input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--rose-100);
  border-radius: 16px;
  color: var(--slate-900);
  background: var(--rose-50);
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.search-box input:focus {
  border-color: var(--rose-400);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.1);
}

.filter-lines {
  display: grid;
  gap: 12px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--slate-700);
  background: var(--slate-100);
  cursor: pointer;
  font-weight: 800;
}

.filter-button.active,
.filter-button:hover {
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
}

.empty-state {
  margin: 0;
  padding: 18px;
  border-radius: 18px;
  text-align: center;
  color: var(--slate-500);
  background: var(--slate-50);
}

.page-hero,
.detail-hero {
  max-width: 1200px;
  margin: 28px auto 0;
  border-radius: 34px;
  color: var(--white);
  background:
    radial-gradient(circle at 22% 20%, rgba(236, 72, 153, 0.48), transparent 34%),
    linear-gradient(135deg, #111827, #3f0d24 52%, #111827);
  box-shadow: var(--shadow-soft);
}

.page-hero {
  padding: 62px 48px;
  text-align: center;
}

.small-hero h1,
.category-hero h1 {
  margin-left: auto;
  margin-right: auto;
}

.small-hero p,
.category-hero p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.centered-actions {
  justify-content: center;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  padding: 18px;
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.category-cover {
  overflow: hidden;
  border-radius: 20px;
}

.category-cover img {
  height: 180px;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 6px 0 10px;
  font-size: 28px;
}

.category-overview-card p {
  margin: 0 0 14px;
  color: var(--slate-500);
  line-height: 1.8;
}

.mini-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mini-link-row a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--rose-600);
  background: var(--rose-50);
  font-size: 13px;
  font-weight: 800;
}

.breadcrumb {
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--slate-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--rose-500);
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 42px;
  padding: 42px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

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

.detail-copy {
  align-self: center;
}

.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 18px;
}

.detail-facts span {
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.13);
  font-weight: 800;
}

.large-tags {
  margin-top: 8px;
}

.player-section {
  scroll-margin-top: 96px;
}

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

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

.player-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.32), rgba(15, 23, 42, 0.86)),
    radial-gradient(circle at center, rgba(244, 63, 94, 0.32), transparent 42%);
  display: grid;
  place-content: center;
  gap: 18px;
  cursor: pointer;
  text-align: center;
}

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

.play-ring {
  width: 84px;
  height: 84px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.44);
}

.play-triangle {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 24px solid var(--white);
}

.player-shade strong {
  font-size: 22px;
}

.article-section {
  padding: 34px;
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.article-section h2 {
  margin-top: 0;
}

.article-section h2 + p {
  margin-top: 12px;
}

.article-section p {
  color: var(--slate-700);
  font-size: 16px;
  line-height: 2;
}

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

.site-footer {
  margin-top: 68px;
  padding: 44px 22px 26px;
  background: rgba(255, 255, 255, 0.74);
  border-top: 1px solid var(--rose-100);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand p {
  max-width: 480px;
  color: var(--slate-500);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer-links a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--rose-600);
  background: var(--rose-50);
  font-weight: 800;
}

.footer-bottom {
  max-width: 1200px;
  margin: 28px auto 0;
  color: var(--slate-500);
  font-size: 13px;
}

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

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

  .split-layout {
    grid-template-columns: 1fr;
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .header-inner {
    height: 68px;
  }

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

  .hero-slider {
    margin: 14px 14px 0;
    border-radius: 26px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 36px 24px 92px;
  }

  .hero-poster {
    width: min(260px, 75%);
    justify-self: start;
    transform: none;
  }

  .section-wrap {
    margin: 32px auto;
  }

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

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

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

  .category-overview-card,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    margin: 18px 14px 0;
    padding: 24px;
  }

  .detail-poster {
    max-width: 280px;
  }

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

  .rank-meta {
    grid-column: 2;
  }
}

@media (max-width: 540px) {
  .brand-text {
    font-size: 17px;
  }

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

  .page-hero {
    margin: 18px 14px 0;
    padding: 42px 22px;
    border-radius: 26px;
  }

  .hero-controls {
    width: calc(100% - 38px);
    justify-content: space-between;
  }

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

  .section-wrap {
    padding: 0 14px;
  }

  .intro-strip,
  .article-section {
    padding: 24px;
  }
}
