* {
  box-sizing: border-box;
}

:root {
  --pink-50: #fff1f5;
  --pink-100: #ffe4ed;
  --pink-200: #fecddc;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --text: #111827;
  --muted: #6b7280;
  --line: #f3d3df;
  --card: #ffffff;
  --shadow: 0 24px 70px rgba(219, 39, 119, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff7fb 0%, #ffffff 42%, #fff7fb 100%);
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(252, 205, 220, 0.72);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 34px rgba(236, 72, 153, 0.08);
}

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--pink-500), var(--amber-500));
  box-shadow: 0 16px 28px rgba(236, 72, 153, 0.24);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong,
.footer-brand {
  font-size: 25px;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--pink-500), var(--amber-500));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.03em;
}

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

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

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

.nav-menu {
  position: relative;
}

.nav-menu-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-submenu {
  position: absolute;
  top: 32px;
  left: 50%;
  width: 180px;
  padding: 10px;
  border: 1px solid var(--pink-100);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: 0.2s ease;
}

.nav-menu:hover .nav-submenu,
.nav-menu:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-submenu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #4b5563;
}

.nav-submenu a:hover {
  color: var(--pink-600);
  background: var(--pink-50);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--pink-50);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid var(--pink-100);
}

.mobile-nav-link {
  display: block;
  padding: 14px 4px;
}

.hero-section {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  background: radial-gradient(circle at 18% 20%, rgba(255, 228, 237, 0.96), transparent 34%), linear-gradient(135deg, #fff1f5 0%, #faf5ff 44%, #fff7ed 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(rgba(236, 72, 153, 0.18) 1px, transparent 1px);
  background-size: 28px 28px;
}

.hero-container {
  position: relative;
  min-height: 660px;
  display: flex;
  align-items: center;
}

.hero-slider {
  width: 100%;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 64px;
}

.hero-slide.active {
  display: grid;
  animation: fadeIn 0.45s ease both;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--pink-600);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.07em;
}

.hero-copy h1 span {
  display: block;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--pink-500), var(--amber-500));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 680px;
  margin: 22px 0 26px;
  color: #5b6472;
  font-size: 20px;
  line-height: 1.8;
}

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

.hero-tags span,
.detail-tags span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--pink-600);
  background: rgba(255, 228, 237, 0.82);
  font-size: 13px;
  font-weight: 700;
}

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

.hero-actions {
  margin-top: 30px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(90deg, var(--pink-500), var(--pink-600));
  box-shadow: 0 18px 36px rgba(236, 72, 153, 0.28);
}

.secondary-button {
  color: var(--pink-600);
  border: 2px solid var(--pink-200);
  background: #fff;
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.12);
}

.primary-button:hover,
.secondary-button:hover,
.movie-card:hover,
.category-card:hover,
.category-overview-card:hover,
.ranking-item:hover {
  transform: translateY(-3px);
}

.hero-poster {
  position: relative;
  display: block;
  height: 500px;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.78);
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 16px 18px;
  color: #fff;
  border-radius: 20px;
  background: rgba(17, 24, 39, 0.74);
  backdrop-filter: blur(10px);
  font-size: 22px;
  font-weight: 800;
}

.hero-floating {
  position: absolute;
  right: 32px;
  top: 88px;
  display: grid;
  grid-template-columns: repeat(2, 120px);
  gap: 18px;
  transform: rotate(9deg);
  pointer-events: none;
}

.floating-card {
  display: block;
  width: 120px;
  height: 154px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.2);
  animation: floatCard 4.8s ease-in-out infinite;
  animation-delay: var(--delay);
}

.floating-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  left: max(16px, calc((100vw - 1180px) / 2));
  bottom: 54px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-controls button {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--pink-600);
  background: #fff;
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.16);
  font-size: 26px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  background: #f9a8d4;
  opacity: 0.55;
}

.hero-dot.active {
  width: 28px;
  opacity: 1;
  background: var(--pink-500);
}

.feature-section,
.content-section {
  padding: 74px 0;
}

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

.feature-grid article,
.detail-content article {
  padding: 30px;
  border: 1px solid rgba(252, 205, 220, 0.7);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.08);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 18px;
  color: var(--pink-600);
  background: linear-gradient(135deg, var(--pink-100), #fff);
  font-weight: 900;
}

.feature-grid h2,
.detail-content h2,
.site-footer h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.feature-grid p,
.detail-content p,
.site-footer p,
.page-hero p,
.category-overview-card em,
.category-card strong {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-style: normal;
}

.soft-bg {
  background: linear-gradient(180deg, var(--pink-50), #fff);
}

.section-head {
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.05em;
}

.text-link {
  color: var(--pink-600);
  font-weight: 800;
}

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

.category-card {
  min-height: 160px;
  padding: 24px;
  border: 1px solid var(--pink-100);
  border-radius: 28px;
  background: linear-gradient(135deg, #fff, var(--pink-50));
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--pink-600);
  font-size: 24px;
  font-weight: 900;
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(243, 211, 223, 0.82);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 20px 44px rgba(236, 72, 153, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pink-100), var(--purple-100));
}

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

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

.poster-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(17, 24, 39, 0.48);
  font-weight: 900;
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.movie-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.movie-card-body strong {
  min-height: 48px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card-body small,
.movie-card-body em,
.ranking-item small,
.detail-meta span {
  color: var(--muted);
  font-style: normal;
}

.card-tags {
  margin-top: 2px;
}

.card-tags span {
  min-height: 24px;
  padding: 4px 9px;
  font-size: 12px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 44px 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 90px;
  padding: 12px;
  border: 1px solid var(--pink-100);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item img {
  width: 64px;
  height: 72px;
  object-fit: cover;
  border-radius: 16px;
}

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

.ranking-item strong {
  display: block;
  margin-bottom: 6px;
}

.ranking-item em {
  color: var(--amber-500);
  font-size: 18px;
  font-style: normal;
  font-weight: 900;
}

.page-hero {
  padding: 72px 0;
  background: radial-gradient(circle at 18% 20%, rgba(255, 228, 237, 0.95), transparent 34%), linear-gradient(135deg, #fff1f5, #faf5ff 48%, #fff7ed);
}

.page-hero h1 {
  max-width: 840px;
  font-size: clamp(40px, 6vw, 64px);
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 18px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--pink-100);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.08);
}

.search-box,
.select-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #4b5563;
  font-weight: 800;
}

.search-box input,
.select-box select {
  width: 100%;
  height: 52px;
  border: 1px solid var(--pink-200);
  border-radius: 16px;
  padding: 0 16px;
  color: #111827;
  background: #fff;
  outline: none;
}

.search-box input:focus,
.select-box select:focus {
  border-color: var(--pink-500);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

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

.category-overview-card {
  overflow: hidden;
  border: 1px solid var(--pink-100);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.thumb-stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  height: 150px;
  overflow: hidden;
  background: var(--pink-50);
}

.thumb-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overview-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
}

.overview-text strong {
  font-size: 24px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--pink-600);
  font-weight: 800;
}

.detail-section {
  padding: 34px 0 76px;
  background: linear-gradient(135deg, #fff1f5, #ffffff 58%, #fff7ed);
}

.detail-breadcrumb {
  margin-bottom: 26px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 10px solid rgba(255, 255, 255, 0.86);
  border-radius: 32px;
  background: #0f172a;
  box-shadow: 0 28px 80px rgba(17, 24, 39, 0.22);
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0f172a;
  cursor: pointer;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.55));
  cursor: pointer;
}

.player-start span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding-left: 6px;
  border-radius: 50%;
  color: var(--pink-600);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
  font-size: 32px;
}

.player-start.is-hidden {
  display: none;
}

.detail-info {
  padding: 30px;
  border: 1px solid var(--pink-100);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 22px 54px rgba(236, 72, 153, 0.1);
}

.detail-info h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.detail-one-line {
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  margin: 22px 0;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f9fafb;
  font-weight: 700;
}

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

.detail-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.detail-content p {
  color: #374151;
  font-size: 17px;
}

.related-grid .compact .movie-card-body strong {
  min-height: 0;
}

.site-footer {
  padding: 56px 0 0;
  border-top: 1px solid var(--pink-100);
  background: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--pink-600);
}

.category-links {
  flex-flow: row wrap;
}

.footer-bottom {
  margin-top: 40px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--pink-100);
}

.is-filter-hidden {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatCard {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

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

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

  .hero-floating {
    display: none;
  }

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

  .detail-grid {
    grid-template-columns: 1fr;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  body.nav-open .mobile-nav {
    display: block;
  }

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

  .hero-container {
    padding: 56px 0 96px;
  }

  .hero-slide,
  .hero-slide.active {
    display: block;
  }

  .hero-poster {
    height: 360px;
    margin-top: 34px;
  }

  .hero-controls {
    left: 16px;
    bottom: 34px;
  }

  .feature-grid,
  .footer-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

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

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

  .hero-copy h1,
  .page-hero h1,
  .detail-info h1 {
    letter-spacing: -0.05em;
  }

  .hero-text {
    font-size: 17px;
  }

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

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .movie-grid,
  .category-grid,
  .ranking-grid,
  .ranking-list,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    grid-template-columns: 36px 58px minmax(0, 1fr);
  }

  .ranking-item em {
    grid-column: 3;
  }

  .detail-info {
    padding: 22px;
  }

  .player-shell {
    border-width: 5px;
    border-radius: 22px;
  }
}
