:root {
  --pink: #ec4899;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --dark: #111827;
  --muted: #6b7280;
  --soft: #fdf2f8;
  --card: #ffffff;
  --line: #ece7f3;
  --shadow: 0 20px 45px rgba(31, 41, 55, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #1f2937;
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.14), transparent 32rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.13), transparent 30rem),
    linear-gradient(180deg, #fff7fb 0%, #ffffff 48%, #f8fbff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 35px rgba(31, 41, 55, 0.09);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark,
.footer-logo span {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.34);
}

.brand-name,
.footer-logo {
  font-size: 26px;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  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;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-search,
.mobile-search {
  position: relative;
  width: 240px;
}

.nav-search input,
.mobile-search input,
.search-panel-box input,
.toolbar-card input,
.toolbar-card select,
.search-panel-box select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.search-panel-box input:focus,
.toolbar-card input:focus,
.toolbar-card select:focus,
.search-panel-box select:focus {
  border-color: rgba(236, 72, 153, 0.65);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  max-height: 380px;
  overflow: auto;
  display: none;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.search-results.is-open {
  display: grid;
  gap: 8px;
}

.search-result-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: #fdf2f8;
}

.search-result-item img {
  width: 46px;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
}

.search-result-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.search-result-item span {
  color: var(--muted);
  font-size: 12px;
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 12px 24px rgba(139, 92, 246, 0.26);
}

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

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

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 14px;
  color: #374151;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.72);
}

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

.hero-carousel {
  padding: 34px 0 24px;
}

.hero-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  border-radius: 36px;
  overflow: hidden;
  background: #111827;
  box-shadow: var(--shadow);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: blur(10px) saturate(1.25);
  transform: scale(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(17, 24, 39, 0.78) 42%, rgba(17, 24, 39, 0.25) 100%),
    radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.35), transparent 32rem),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.28), transparent 28rem);
}

.hero-content {
  position: relative;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 380px;
  align-items: center;
  gap: 48px;
  padding: 64px;
  color: #fff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(236, 72, 153, 0.12);
}

.hero-copy h1 {
  max-width: 800px;
  margin: 0 0 12px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.1;
  background: linear-gradient(90deg, #f9a8d4, #c4b5fd, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
}

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

.primary-button,
.secondary-button,
.ghost-button,
.section-more,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 18px 35px rgba(236, 72, 153, 0.32);
}

.secondary-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.ghost-button {
  color: #fff;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(147, 197, 253, 0.32);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.section-more:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  transform: rotate(2deg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

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

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--pink);
  font-size: 34px;
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%);
}

.hero-dots {
  position: absolute;
  left: 64px;
  bottom: 38px;
  display: flex;
  gap: 10px;
  z-index: 3;
}

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

.hero-dots button.is-active {
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

.search-panel,
.category-strip,
.content-section,
.rank-section,
.page-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 28px;
  align-items: center;
  margin-top: 34px;
  padding: 28px;
  border: 1px solid rgba(236, 72, 153, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.search-panel h2,
.section-head h2,
.page-hero h1,
.detail-card h1,
.detail-article h2 {
  margin: 0;
  color: #111827;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.search-panel h2,
.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.search-panel p,
.section-head p,
.page-hero p,
.category-overview-card p,
.detail-card p,
.detail-article p {
  color: var(--muted);
}

.search-panel-box,
.toolbar-card {
  display: grid;
  grid-template-columns: 1fr 150px 150px;
  gap: 12px;
}

.category-strip,
.content-section,
.rank-section {
  margin-top: 58px;
}

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

.compact-head {
  margin-bottom: 18px;
}

.section-more,
.text-link {
  color: var(--pink);
  background: #fdf2f8;
}

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

.category-chip {
  position: relative;
  min-height: 154px;
  padding: 22px;
  overflow: hidden;
  border-radius: var(--radius);
  color: #fff;
  background: #111827;
  box-shadow: var(--shadow);
}

.category-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.82), rgba(236, 72, 153, 0.35));
}

.category-chip strong,
.category-chip span:not(.chip-image) {
  position: relative;
  z-index: 2;
  display: block;
}

.category-chip strong {
  font-size: 22px;
  margin-bottom: 10px;
}

.category-chip span:not(.chip-image) {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.chip-image {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.5;
  transition: transform 0.35s ease;
}

.category-chip:hover .chip-image {
  transform: scale(1.08);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 16px 40px rgba(31, 41, 55, 0.1);
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(31, 41, 55, 0.16);
}

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

.movie-poster img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.poster-play,
.play-circle {
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60px;
  height: 60px;
  color: var(--pink);
  font-size: 26px;
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.35);
}

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

.movie-card-meta,
.movie-card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

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

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

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #be185d;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(90deg, #fdf2f8, #f5f3ff);
  border: 1px solid rgba(236, 72, 153, 0.12);
}

.movie-card-foot {
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.movie-card-foot strong {
  color: var(--pink);
  font-size: 18px;
}

.movie-card.compact {
  display: grid;
  grid-template-columns: 42% 1fr;
}

.movie-card.compact .movie-poster img {
  height: 100%;
  aspect-ratio: auto;
}

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

.movie-card.compact p {
  min-height: auto;
}

.page-main {
  padding: 34px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

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

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  padding: 46px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(253, 242, 248, 0.9)),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.18), transparent 28rem);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  max-width: 860px;
  font-size: clamp(36px, 5vw, 62px);
}

.page-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  font-size: 18px;
}

.toolbar-card {
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 36px rgba(31, 41, 55, 0.08);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: center;
  padding: 22px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.category-overview-cover {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 180px;
  overflow: hidden;
  border-radius: 20px;
  background: #111827;
}

.category-overview-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 30px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 28px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #050816;
  box-shadow: 0 30px 70px rgba(17, 24, 39, 0.28);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background:
    radial-gradient(circle at center, rgba(236, 72, 153, 0.35), transparent 24rem),
    linear-gradient(180deg, rgba(5, 8, 22, 0.16), rgba(5, 8, 22, 0.72));
  transition: opacity 0.25s ease;
}

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

.play-circle {
  width: 92px;
  height: 92px;
  color: var(--pink);
  font-size: 42px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.play-title {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 900;
  background: rgba(17, 24, 39, 0.52);
  backdrop-filter: blur(10px);
}

.detail-article,
.detail-card,
.next-links {
  margin-top: 22px;
  padding: 26px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-article h2 {
  margin-top: 18px;
  font-size: 28px;
}

.detail-article h2:first-of-type {
  margin-top: 0;
}

.detail-article p {
  margin: 12px 0 0;
  font-size: 17px;
}

.detail-side {
  position: sticky;
  top: 92px;
}

.detail-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.detail-card h1 {
  font-size: 32px;
}

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

.detail-meta div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.detail-meta dt {
  color: var(--muted);
}

.detail-meta dd {
  margin: 0;
  color: #111827;
  font-weight: 800;
}

.next-links {
  display: grid;
  gap: 10px;
}

.next-links a {
  color: var(--pink);
  font-weight: 800;
}

.related-section {
  width: 100%;
}

.site-footer {
  margin-top: 70px;
  color: #fff;
  background: linear-gradient(90deg, #111827, #2e1065, #111827);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
  padding: 48px 0;
}

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

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

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

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
}

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

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

  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
  }

  .hero-content,
  .detail-layout,
  .search-panel,
  .category-overview-card,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 44px;
  }

  .hero-poster {
    max-width: 320px;
    transform: none;
  }

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

  .detail-side {
    position: static;
  }
}

@media (max-width: 680px) {
  .brand-name {
    font-size: 20px;
  }

  .hero-shell,
  .hero-content {
    min-height: 720px;
  }

  .hero-content,
  .page-hero {
    padding: 28px;
  }

  .hero-dots {
    left: 28px;
    bottom: 24px;
  }

  .search-panel-box,
  .toolbar-card,
  .movie-card.compact {
    grid-template-columns: 1fr;
  }

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

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

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

  .detail-card h1 {
    font-size: 26px;
  }

  .footer-inner {
    gap: 22px;
  }
}
