html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: #1f2937;
  background: linear-gradient(180deg, #fdf2f8 0%, #ffffff 36%, #eff6ff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 10% 10%, rgba(244, 114, 182, 0.18), transparent 30%),
    radial-gradient(circle at 90% 5%, rgba(96, 165, 250, 0.18), transparent 32%),
    radial-gradient(circle at 50% 90%, rgba(192, 132, 252, 0.16), transparent 30%);
}

a {
  color: inherit;
}

img {
  background: linear-gradient(135deg, #fce7f3, #dbeafe);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 12px 40px rgba(31, 41, 55, 0.08);
  backdrop-filter: blur(16px);
}

.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f472b6, #60a5fa);
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.28);
}

.brand-text {
  font-size: 24px;
  line-height: 1;
  color: transparent;
  background: linear-gradient(135deg, #f472b6, #60a5fa);
  background-clip: text;
  -webkit-background-clip: text;
}

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

.nav-link {
  position: relative;
  color: #4b5563;
  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, #f472b6, #60a5fa);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ec4899;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fdf2f8;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #db2777;
  border-radius: 99px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  padding: 0 20px 16px;
  border-top: 1px solid #f3f4f6;
}

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

.mobile-nav-link {
  padding: 12px 8px;
  color: #4b5563;
  font-weight: 700;
}

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

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  background: linear-gradient(120deg, #f9a8d4 0%, #c4b5fd 48%, #93c5fd 100%);
}

.hero-bg-orb {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.3;
  background: rgba(255, 255, 255, 0.75);
}

.hero-orb-a {
  top: -100px;
  left: -90px;
}

.hero-orb-b {
  right: -120px;
  bottom: 60px;
}

.hero-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: center;
  gap: 50px;
  padding: 40px 0 80px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-copy {
  color: #ffffff;
  text-shadow: 0 10px 30px rgba(31, 41, 55, 0.16);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #ec4899;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy .eyebrow,
.page-hero .eyebrow,
.light-heading .eyebrow {
  color: rgba(255, 255, 255, 0.92);
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.96;
  font-weight: 900;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 26px;
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

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

.hero-tags {
  margin-bottom: 30px;
}

.hero-tags span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #be185d;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 20px rgba(31, 41, 55, 0.08);
}

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

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

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  box-shadow: 0 16px 30px rgba(236, 72, 153, 0.3);
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.global-search button:hover,
.search-page-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(31, 41, 55, 0.14);
}

.hero-visual {
  position: relative;
  display: block;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(31, 41, 55, 0.3);
  transform: rotate(2deg);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.5));
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.hero-play,
.poster-play,
.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-play {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  width: 64px;
  height: 64px;
  color: #ffffff;
  background: rgba(236, 72, 153, 0.9);
  border-radius: 999px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.26);
}

.hero-controls {
  position: absolute;
  left: 0;
  bottom: 32px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-arrow,
.hero-dot {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.12);
}

.hero-arrow {
  width: 44px;
  height: 44px;
  color: #be185d;
  border-radius: 16px;
  font-size: 28px;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #ec4899;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 90px;
  fill: #ffffff;
}

.search-strip,
.feature-band {
  padding: 54px 0;
  background: rgba(255, 255, 255, 0.72);
}

.search-strip-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 500px);
  align-items: center;
  gap: 28px;
}

.search-strip h2,
.section-heading h2,
.content-card h2,
.footer-block h2 {
  margin: 0;
  color: #111827;
  font-weight: 900;
}

.search-strip h2,
.section-heading h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.search-strip p,
.page-hero p,
.category-card p,
.movie-card-body p,
.content-card p,
.footer-brand p {
  color: #6b7280;
  line-height: 1.7;
}

.global-search,
.search-page-form,
.local-search {
  display: flex;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #fbcfe8;
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(236, 72, 153, 0.12);
}

.global-search input,
.search-page-form input,
.local-search input {
  width: 100%;
  min-height: 54px;
  padding: 0 20px;
  color: #374151;
  outline: none;
}

.global-search button,
.search-page-form button {
  min-width: 112px;
  color: #ffffff;
  background: linear-gradient(135deg, #ec4899, #60a5fa);
  border-radius: 999px;
  margin: 5px;
}

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

.section-more {
  color: #ec4899;
  background: #ffffff;
  border: 1px solid #fbcfe8;
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.1);
}

.category-section,
.movie-section,
.ranking-section,
.detail-content,
.filter-panel,
.top-ranking {
  padding: 64px 0;
}

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

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 185px;
  padding: 28px;
  border-radius: 30px;
  background: linear-gradient(135deg, #fce7f3, #dbeafe);
  box-shadow: 0 20px 50px rgba(31, 41, 55, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(31, 41, 55, 0.14);
}

.category-card strong {
  position: relative;
  z-index: 2;
  display: block;
  margin-bottom: 12px;
  color: #111827;
  font-size: 24px;
  font-weight: 900;
}

.category-card p,
.category-sample {
  position: relative;
  z-index: 2;
}

.category-sample {
  display: inline-flex;
  margin-top: 16px;
  padding: 6px 12px;
  color: #be185d;
  background: rgba(255, 255, 255, 0.66);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.category-glow {
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

.tone-blue {
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
}

.tone-purple {
  background: linear-gradient(135deg, #ede9fe, #fce7f3);
}

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(251, 207, 232, 0.65);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(31, 41, 55, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-card[hidden] {
  display: none;
}

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

.movie-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.poster-play {
  position: absolute;
  inset: 0;
  color: #ffffff;
  font-size: 34px;
  opacity: 0;
  background: rgba(0, 0, 0, 0.28);
  transition: opacity 0.2s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #ec4899);
  border-radius: 12px;
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.25);
}

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

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: #ec4899;
  font-size: 12px;
  font-weight: 900;
}

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

.movie-card h3 a:hover {
  color: #ec4899;
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 47px;
  margin: 0 0 12px;
  overflow: hidden;
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row span {
  color: #7e22ce;
  background: #f3e8ff;
  box-shadow: none;
}

.feature-band {
  background: linear-gradient(90deg, rgba(243, 232, 255, 0.78), rgba(252, 231, 243, 0.78), rgba(219, 234, 254, 0.78));
}

.light-heading .section-more {
  background: rgba(255, 255, 255, 0.72);
}

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

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

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

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

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0;
  color: #ffffff;
  background: linear-gradient(120deg, #f9a8d4, #c4b5fd 45%, #93c5fd);
}

.page-hero::before,
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.24), transparent 28%),
    radial-gradient(circle at 85% 0%, rgba(255, 255, 255, 0.18), transparent 30%);
}

.page-hero .section-inner,
.detail-layout {
  position: relative;
  z-index: 2;
}

.page-hero h1,
.detail-intro h1 {
  max-width: 900px;
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1;
  font-weight: 900;
}

.page-hero p,
.detail-intro p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.filter-panel {
  padding-bottom: 20px;
}

.local-search {
  max-width: 660px;
  margin-bottom: 18px;
}

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

.filter-chip {
  min-height: 36px;
  padding: 0 14px;
  color: #6b7280;
  background: #ffffff;
  border: 1px solid #fbcfe8;
  border-radius: 999px;
  font-weight: 800;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
  color: #ffffff;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  transform: translateY(-1px);
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(31, 41, 55, 0.28);
  transform: rotate(-2deg);
}

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

.detail-intro p {
  margin-bottom: 22px;
  line-height: 1.8;
}

.detail-meta {
  margin-bottom: 16px;
}

.large-tags {
  margin-bottom: 24px;
}

.player-section {
  padding: 58px 0 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #000000;
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(31, 41, 55, 0.18);
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.04), rgba(17, 24, 39, 0.54));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay.is-hidden,
.player-shell.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.watch-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 26px;
  color: #ffffff;
  background: linear-gradient(135deg, #ec4899, #60a5fa);
  border-radius: 999px;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.play-icon {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 14px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  pointer-events: none;
}

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

.content-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #fbcfe8;
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(31, 41, 55, 0.08);
}

.content-card h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.search-page-form {
  max-width: 720px;
  margin-top: 24px;
}

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

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

.site-footer {
  margin-top: 60px;
  background: linear-gradient(180deg, #ffffff, #f3f4f6);
  border-top: 1px solid #e5e7eb;
}

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

.footer-logo {
  margin-bottom: 16px;
}

.footer-block {
  display: grid;
  gap: 10px;
}

.footer-block h2 {
  font-size: 18px;
}

.footer-block a {
  color: #6b7280;
  font-weight: 700;
}

.footer-block a:hover {
  color: #ec4899;
}

.footer-bottom {
  padding: 18px;
  color: #6b7280;
  text-align: center;
  border-top: 1px solid #e5e7eb;
}

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

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

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

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

  .menu-toggle {
    display: block;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 34px 0 100px;
  }

  .hero-visual {
    width: min(300px, 84vw);
    margin: 0 auto;
  }

  .hero-controls {
    left: 50%;
    transform: translateX(-50%);
  }

  .search-strip-inner,
  .detail-layout,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(280px, 80vw);
    margin: 0 auto;
  }

  .movie-grid,
  .ranking-grid,
  .ranking-grid-full,
  .top-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 560px) {
  .site-header-inner,
  .section-inner,
  .hero-shell,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

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

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

  .hero-copy p,
  .page-hero p,
  .detail-intro p {
    font-size: 16px;
  }

  .global-search,
  .search-page-form {
    border-radius: 26px;
    flex-direction: column;
  }

  .global-search button,
  .search-page-form button {
    width: calc(100% - 10px);
  }

  .movie-grid,
  .ranking-grid,
  .ranking-grid-full,
  .top-three {
    grid-template-columns: 1fr;
  }

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

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