:root {
  --pink: #ec4899;
  --rose: #f43f5e;
  --orange: #fb923c;
  --amber: #f59e0b;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #fff7ed;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(244, 63, 94, 0.18);
  --deep-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(135deg, #fdf2f8 0%, #fff1f2 52%, #fff7ed 100%);
  font-family: ui-sans-serif, 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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--pink), #fb7185, var(--orange));
  box-shadow: 0 14px 28px rgba(244, 63, 94, 0.2);
}

.nav-wrap {
  max-width: 1180px;
  height: 64px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--pink);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
  transform: translateZ(0);
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.1) rotate(5deg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link,
.mobile-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #fef3c7;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-search,
.mobile-search,
.hero-search,
.filter-panel {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-search input,
.mobile-search input,
.hero-search input,
.filter-panel input,
.filter-panel select {
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 11px 16px;
  color: #374151;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 0 0 1px rgba(251, 113, 133, 0.16);
}

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

.nav-search button,
.mobile-search button,
.hero-search button,
.filter-panel button,
.primary-action,
.ghost-action,
.tile-action,
.closing-cta a,
.hero-card-copy a,
.category-banner a {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.nav-search button,
.mobile-search button,
.hero-search button,
.primary-action,
.tile-action,
.closing-cta a,
.hero-card-copy a,
.category-banner a {
  color: var(--white);
  background: linear-gradient(90deg, var(--pink), var(--rose), var(--orange));
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.25);
}

.ghost-action {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
}

.nav-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.primary-action:hover,
.ghost-action:hover,
.tile-action:hover,
.closing-cta a:hover,
.hero-card-copy a:hover,
.category-banner a:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 32px rgba(244, 63, 94, 0.32);
}

.menu-button {
  display: none;
  border: 0;
  color: var(--white);
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 16px 20px 20px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(244, 63, 94, 0.2);
}

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

.mobile-link {
  display: block;
  color: #374151;
  padding: 10px 0;
}

.mobile-search {
  margin-top: 12px;
}

.mobile-search input {
  flex: 1;
  background: #fff1f2;
}

.hero-section {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(90deg, #db2777 0%, #f43f5e 48%, #fb923c 100%);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.3), transparent 28%), radial-gradient(circle at 86% 20%, rgba(254, 243, 199, 0.24), transparent 22%), rgba(0, 0, 0, 0.16);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: radial-gradient(rgba(255, 255, 255, 0.42) 1px, transparent 1px);
  background-size: 26px 26px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  min-height: 540px;
  margin: 0 auto;
  padding: 58px 20px 92px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: 44px;
}

.hero-kicker,
.detail-kicker,
.page-hero span,
.section-head span,
.category-banner span,
.category-tile span {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  font-weight: 900;
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-search {
  max-width: 620px;
  padding: 8px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  background: var(--white);
}

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

.hero-cats {
  margin-top: 20px;
}

.hero-cats a {
  padding: 8px 13px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-showcase {
  position: relative;
  min-height: 390px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  gap: 20px;
  align-items: stretch;
  padding: 18px;
  border-radius: 28px;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  pointer-events: none;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: var(--deep-shadow);
  backdrop-filter: blur(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-poster {
  min-height: 348px;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.2);
}

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

.hero-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 10px 18px;
}

.hero-card-copy span {
  width: max-content;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #be123c;
  font-size: 13px;
  font-weight: 800;
  background: #ffe4e6;
}

.hero-card-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
}

.hero-card-copy p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
}

.hero-card-copy a {
  width: max-content;
  color: #be123c;
  background: var(--white);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

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

.content-section,
.featured-row {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 20px;
}

.overlap-row {
  position: relative;
  z-index: 3;
  margin-top: -72px;
  padding-top: 0;
}

.feature-grid,
.movie-grid,
.category-tile-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.poster-wrap {
  position: relative;
  height: 245px;
  overflow: hidden;
  background: linear-gradient(135deg, #fecdd3, #fed7aa);
}

.feature-grid .poster-wrap {
  height: 330px;
}

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

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

.poster-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.poster-badge {
  top: 12px;
  right: 12px;
  padding: 7px 11px;
  color: #be123c;
  background: #ffe4e6;
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 8px 18px rgba(244, 63, 94, 0.28);
}

.card-body {
  padding: 17px;
}

.card-body h2 {
  margin: 0 0 9px;
  font-size: 18px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.movie-card:hover .card-body h2 {
  color: var(--pink);
}

.card-body p {
  min-height: 46px;
  margin: 0 0 14px;
  display: -webkit-box;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 12px;
}

.card-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff1f2;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
}

.section-head span {
  color: var(--rose);
}

.section-head a {
  color: var(--pink);
  font-weight: 800;
}

.wide-band {
  margin: 28px 0;
  background: linear-gradient(90deg, #ffedd5 0%, #fce7f3 48%, #ffe4e6 100%);
}

.band-inner {
  padding-top: 50px;
  padding-bottom: 50px;
}

.list-stack {
  display: grid;
  gap: 18px;
}

.card-list {
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: stretch;
}

.card-list .poster-wrap {
  height: auto;
  min-height: 190px;
}

.card-list .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-list .card-body h2 {
  font-size: 22px;
}

.category-banner,
.closing-cta,
.page-hero,
.article-card,
.filter-panel,
.category-tile {
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.category-banner {
  margin-bottom: 26px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--white);
}

.banner-0,
.category-hero {
  background: linear-gradient(90deg, var(--pink), var(--rose));
}

.banner-1,
.rank-hero {
  background: linear-gradient(90deg, var(--orange), var(--amber));
}

.banner-2,
.search-hero {
  background: linear-gradient(90deg, #f43f5e, #ec4899);
}

.banner-3,
.soft-hero {
  background: linear-gradient(90deg, #fb7185, #fb923c);
}

.category-banner h2,
.closing-cta h2,
.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
}

.category-banner p,
.closing-cta p,
.page-hero p {
  max-width: 760px;
  margin: 0;
  line-height: 1.8;
  opacity: 0.92;
}

.closing-cta {
  max-width: 980px;
  margin: 30px auto 72px;
  padding: 48px 26px;
  color: var(--white);
  text-align: center;
  background: linear-gradient(90deg, #db2777, #f43f5e, #fb923c);
}

.closing-cta a {
  display: inline-flex;
  margin-top: 26px;
  background: var(--white);
  color: #be123c;
}

.page-hero {
  max-width: 1180px;
  margin: 42px auto 0;
  padding: 46px 36px;
  color: var(--white);
}

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

.category-tile {
  padding: 26px;
  background: var(--white);
}

.category-tile span {
  color: var(--pink);
}

.category-tile h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-tile p {
  min-height: 82px;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.75;
}

.tile-links {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.tile-links a {
  color: #be123c;
  font-weight: 700;
}

.tile-action {
  display: inline-flex;
}

.filter-panel {
  margin-bottom: 26px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px);
}

.filter-panel input {
  flex: 1;
  min-width: 240px;
}

.filter-panel select {
  min-width: 150px;
}

.empty-state {
  display: none;
  margin-top: 28px;
  padding: 30px;
  border-radius: 22px;
  color: var(--muted);
  text-align: center;
  background: var(--white);
}

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

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

.detail-hero {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  color: var(--white);
  background: #111827;
}

.detail-bg {
  position: absolute;
  inset: 0;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: blur(3px) saturate(1.05);
  transform: scale(1.04);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(190, 18, 60, 0.58), rgba(251, 146, 60, 0.32));
}

.detail-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px 70px;
}

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

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

.detail-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--deep-shadow);
}

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

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.05;
}

.detail-copy p {
  max-width: 760px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.85;
}

.detail-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.detail-meta span,
.tag-row span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #be123c;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.88);
}

.tag-row span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 26px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: var(--deep-shadow);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  color: var(--white);
  cursor: pointer;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.72));
}

.player-shell.is-playing .player-cover {
  display: none;
}

.play-button {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--pink);
  font-size: 34px;
  background: var(--white);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

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

.article-card {
  padding: 28px;
  background: var(--white);
}

.article-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.article-card h2:not(:first-child) {
  margin-top: 26px;
}

.article-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

.site-footer {
  margin-top: 36px;
  color: #d1d5db;
  background: #111827;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  color: var(--white);
  margin-bottom: 12px;
}

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

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: #9ca3af;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding: 20px;
  border-top: 1px solid rgba(156, 163, 175, 0.18);
  text-align: center;
  color: #9ca3af;
}

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

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

  .hero-showcase {
    min-height: 430px;
  }

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

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

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

  .menu-button {
    display: block;
  }

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

  .hero-inner {
    padding-top: 44px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    min-height: 520px;
  }

  .hero-poster {
    min-height: 300px;
  }

  .feature-grid,
  .movie-grid,
  .compact-grid,
  .category-tile-grid,
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .card-list {
    grid-template-columns: 180px 1fr;
  }

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

@media (max-width: 640px) {
  .nav-wrap {
    height: 60px;
    padding: 0 16px;
  }

  .hero-section,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner,
  .content-section,
  .featured-row {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-search,
  .filter-panel,
  .category-banner,
  .section-head,
  .detail-meta,
  .tag-row {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions,
  .hero-cats {
    flex-direction: column;
  }

  .hero-actions a,
  .hero-cats a,
  .hero-search button,
  .filter-panel button,
  .category-banner a {
    text-align: center;
  }

  .hero-showcase {
    min-height: 500px;
  }

  .feature-grid,
  .movie-grid,
  .compact-grid,
  .category-tile-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .card-list {
    grid-template-columns: 1fr;
  }

  .card-list .poster-wrap {
    height: 230px;
  }

  .page-hero {
    margin: 24px 16px 0;
    padding: 34px 22px;
  }

  .detail-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

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