:root {
  --pink: #ec4899;
  --pink-deep: #db2777;
  --orange: #fb923c;
  --blue: #60a5fa;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(229, 231, 235, 0.9);
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 24px 60px rgba(31, 41, 55, 0.14);
  --soft-shadow: 0 12px 30px rgba(236, 72, 153, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(31, 41, 55, 0.08);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.25);
  transition: transform 0.25s ease;
}

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

.brand-text {
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--pink), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  color: #374151;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

.mobile-link {
  display: block;
  padding: 12px 16px;
  border-radius: 16px;
}

.mobile-link:hover,
.mobile-link.active {
  color: var(--pink);
  background: #fdf2f8;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff1f2;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: #374151;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
}

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

.mobile-nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  padding: 64px 0 96px;
}

.hero-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: stretch;
}

.hero-carousel {
  position: relative;
  min-height: 520px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: center;
  padding: 54px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-copy h1 {
  margin: 14px 0 10px;
  font-size: clamp(2.25rem, 5vw, 4.55rem);
  line-height: 1.04;
  letter-spacing: -0.07em;
  color: #111827;
}

.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  color: var(--pink-deep);
}

.hero-copy p {
  max-width: 650px;
  margin: 0;
  color: #4b5563;
  font-size: 1.08rem;
  line-height: 1.85;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--pink-deep);
  background: rgba(253, 242, 248, 0.88);
  box-shadow: inset 0 0 0 1px rgba(244, 114, 182, 0.16);
}

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

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

.hero-tags span,
.tag-row span,
.detail-meta span,
.detail-tags a {
  padding: 7px 12px;
  border-radius: 999px;
  color: #4b5563;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(229, 231, 235, 0.95);
  font-size: 0.82rem;
  font-weight: 650;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 16px 30px rgba(236, 72, 153, 0.28);
}

.btn.ghost {
  color: var(--pink-deep);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(244, 114, 182, 0.24);
}

.btn.text {
  color: var(--pink-deep);
  padding-inline: 6px;
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(31, 41, 55, 0.22);
}

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

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

.hero-rating,
.score-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  color: #111827;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  font-weight: 900;
}

.hero-controls {
  position: absolute;
  left: 54px;
  right: 54px;
  bottom: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

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

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--pink-deep);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
  font-size: 1.75rem;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.28);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 32px;
  background: linear-gradient(90deg, var(--pink), var(--orange));
}

.hero-panel,
.ranking-card,
.content-card,
.search-strip,
.category-tile,
.rank-top-card {
  border-radius: 30px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel {
  padding: 26px;
}

.hero-panel h2,
.ranking-card h2,
.section-heading h2,
.page-hero h1,
.content-card h2 {
  margin: 10px 0 0;
  color: #111827;
  letter-spacing: -0.03em;
}

.rank-mini-item {
  display: grid;
  grid-template-columns: 34px 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.rank-mini-item:last-child {
  border-bottom: 0;
}

.rank-mini-item span {
  color: var(--pink);
  font-weight: 900;
}

.rank-mini-item img {
  width: 54px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-mini-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.94rem;
}

.rank-mini-item em {
  color: #f97316;
  font-style: normal;
  font-weight: 900;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.45;
}

.glow-one {
  width: 340px;
  height: 340px;
  left: 4%;
  top: 8%;
  background: #fbcfe8;
}

.glow-two {
  width: 280px;
  height: 280px;
  right: 7%;
  bottom: 8%;
  background: #bfdbfe;
}

.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 86px;
  fill: rgba(255, 255, 255, 0.74);
}

.section-block {
  padding: 48px 0;
}

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

.section-heading.tight {
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

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

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(31, 41, 55, 0.15);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #fdf2f8;
}

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

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

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

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.movie-card h3 {
  margin: 8px 0;
  color: #111827;
  font-size: 1.05rem;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--pink);
}

.movie-card p {
  min-height: 3.2em;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

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

.compact-card h3 {
  font-size: 0.98rem;
}

.tag-row span {
  padding: 5px 9px;
  font-size: 0.72rem;
}

.search-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  margin-top: -44px;
  position: relative;
  z-index: 8;
}

.search-strip h2 {
  margin: 8px 0 0;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(480px, 100%);
  padding: 14px 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), 0 14px 30px rgba(31, 41, 55, 0.08);
}

.search-box.wide {
  width: min(720px, 100%);
}

.search-box span {
  color: var(--pink);
  font-size: 1.15rem;
  font-weight: 900;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #111827;
  background: transparent;
}

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

.topic-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
  box-shadow: var(--shadow);
}

.topic-card img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  filter: brightness(0.62);
  transition: transform 0.55s ease;
}

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

.topic-card span,
.topic-card strong {
  position: absolute;
  left: 20px;
  right: 20px;
  z-index: 2;
}

.topic-card span {
  bottom: 70px;
  font-size: 1.28rem;
  font-weight: 900;
}

.topic-card strong {
  bottom: 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  line-height: 1.45;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

.ranking-card {
  align-self: start;
  padding: 24px;
}

.page-hero {
  padding: 84px 0 64px;
  background: radial-gradient(circle at 12% 12%, rgba(251, 207, 232, 0.8), transparent 32%), radial-gradient(circle at 90% 18%, rgba(191, 219, 254, 0.9), transparent 34%);
}

.page-hero-inner {
  border-radius: 34px;
  padding: 44px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.page-hero h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.page-hero p {
  max-width: 780px;
  color: #4b5563;
  font-size: 1.08rem;
  line-height: 1.8;
}

.category-tile {
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  padding: 18px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.category-thumbs img {
  height: 118px;
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.category-tile h2 {
  margin: 10px 0 8px;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.listing-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding-bottom: 10px;
}

.filter-chip {
  border: 0;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  color: #4b5563;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 750;
}

.filter-chip:hover,
.filter-chip.active {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.24);
}

.result-state {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.ranking-layout {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 28px;
}

.rank-top-card {
  display: grid;
  gap: 18px;
  overflow: hidden;
}

.rank-top-card img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.rank-top-card div {
  padding: 0 26px 28px;
}

.rank-top-card h2 {
  margin: 12px 0;
  font-size: 2rem;
}

.rank-top-card p {
  color: var(--muted);
  line-height: 1.75;
}

.rank-top-card strong {
  color: #f97316;
  font-size: 2.2rem;
}

.large-rank {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
  padding: 18px 24px;
  border-radius: 30px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.detail-hero {
  padding: 42px 0 54px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
  gap: 28px;
  align-items: center;
}

.player-card,
.video-shell {
  border-radius: 32px;
  overflow: hidden;
}

.player-card {
  padding: 12px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111827;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #fff;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.38), rgba(236, 72, 153, 0.32));
  cursor: pointer;
  z-index: 3;
}

.player-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.play-button {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: var(--pink-deep);
  background: rgba(255, 255, 255, 0.94);
  cursor: pointer;
  font-size: 2rem;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.2);
}

.player-overlay span {
  font-size: 1.1rem;
  font-weight: 900;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.detail-copy {
  padding: 30px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: var(--pink);
}

.detail-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.detail-one-line {
  margin: 0 0 22px;
  color: #4b5563;
  font-size: 1.06rem;
  line-height: 1.8;
}

.detail-meta,
.detail-tags {
  margin: 18px 0;
}

.detail-tags a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 0 0 20px;
}

.content-card {
  padding: 30px;
}

.content-card p {
  color: #4b5563;
  font-size: 1.02rem;
  line-height: 1.95;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
  padding: 48px 0 34px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: rgba(255, 255, 255, 0.68);
}

.footer-grid p {
  max-width: 330px;
  line-height: 1.75;
}

.footer-grid a {
  display: block;
  margin: 9px 0;
  transition: color 0.2s ease;
}

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

.footer-brand {
  color: #fff;
}

.footer-bottom {
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}

.is-filtered-out {
  display: none !important;
}

@media (max-width: 1100px) {
  .hero-shell,
  .two-column,
  .ranking-layout,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
  }

  .hero-panel .eyebrow,
  .hero-panel h2 {
    grid-column: 1 / -1;
  }

  .featured-grid,
  .latest-grid,
  .catalog-grid,
  .related-grid,
  .topic-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .nav-toggle {
    display: block;
  }

  .hero-section {
    padding-top: 32px;
  }

  .hero-carousel {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  .hero-poster {
    max-width: 300px;
    margin: 0 auto 30px;
    grid-row: 1;
  }

  .hero-controls {
    left: 26px;
    right: 26px;
  }

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

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

  .featured-grid,
  .latest-grid,
  .catalog-grid,
  .related-grid,
  .topic-grid,
  .category-grid,
  .large-rank {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .brand-text {
    font-size: 1.15rem;
  }

  .hero-carousel {
    min-height: 740px;
    border-radius: 26px;
  }

  .hero-slide,
  .page-hero-inner,
  .detail-copy,
  .content-card {
    padding: 24px;
  }

  .hero-copy h1 {
    font-size: 2.15rem;
  }

  .hero-copy p {
    font-size: 0.98rem;
  }

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

  .btn {
    width: 100%;
  }

  .featured-grid,
  .latest-grid,
  .catalog-grid,
  .related-grid,
  .topic-grid,
  .category-grid,
  .large-rank {
    grid-template-columns: 1fr;
  }

  .movie-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .poster-link {
    height: 100%;
    min-height: 168px;
  }

  .movie-card p {
    min-height: 0;
  }

  .rank-mini-item {
    grid-template-columns: 28px 48px minmax(0, 1fr) auto;
  }

  .rank-top-card img {
    height: 360px;
  }
}
