* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.86);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

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

.brand-name,
.footer-brand span:last-child {
  font-size: 1.45rem;
  line-height: 1;
  background: linear-gradient(90deg, #ec4899, #8b5cf6, #0ea5e9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  position: relative;
  color: #4b5563;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ec4899, #60a5fa);
  transition: width 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: #374151;
}

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

.mobile-link {
  display: block;
  padding: 12px 4px;
  color: #4b5563;
  font-weight: 700;
  border-top: 1px solid #f3f4f6;
}

main {
  min-height: 64vh;
}

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

.hero-track {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(1.12) contrast(1.04);
}

.image-hidden {
  visibility: hidden;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.28), transparent 30%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.18) 52%, rgba(15, 23, 42, 0.42));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 36px;
  align-items: center;
  color: #ffffff;
}

.hero-copy {
  max-width: 690px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 20px;
  font-weight: 800;
  font-size: 0.92rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-lead {
  max-width: 620px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 2vw, 1.36rem);
  line-height: 1.78;
}

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

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

.button-primary,
.hero-button {
  color: #ec4899;
  background: #ffffff;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.18);
}

.button-primary:hover,
.hero-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 36px rgba(15, 23, 42, 0.22);
}

.button-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.button-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.24);
}

.hero-panel {
  align-self: end;
  margin-bottom: 48px;
  padding: 20px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 26px 58px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(16px);
}

.hero-panel h2 {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.hero-picks {
  display: grid;
  gap: 12px;
}

.hero-pick {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-pick:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateX(4px);
}

.hero-pick img {
  width: 64px;
  height: 84px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
}

.hero-pick strong,
.hero-pick small {
  display: block;
}

.hero-pick strong {
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.hero-pick small {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.48;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 3;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

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

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

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

.section.tight {
  padding-top: 36px;
}

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

.section-title {
  margin: 0;
  color: #111827;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
}

.section-subtitle {
  max-width: 680px;
  margin: 8px 0 0;
  color: #6b7280;
  line-height: 1.75;
}

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

.feature-card,
.category-card,
.info-box,
.review-box,
.search-panel {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(10px);
}

.feature-card {
  padding: 30px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:nth-child(1) {
  background: linear-gradient(135deg, #fce7f3, #fbcfe8);
}

.feature-card:nth-child(2) {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.feature-card:nth-child(3) {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}

.feature-card:hover,
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 54px rgba(15, 23, 42, 0.16);
}

.feature-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #ffffff;
  border-radius: 20px;
  background: linear-gradient(135deg, #ec4899, #8b5cf6, #38bdf8);
  font-size: 1.55rem;
  box-shadow: 0 14px 26px rgba(124, 58, 237, 0.22);
}

.feature-card h2,
.category-card h2,
.info-box h2,
.review-box h2,
.sidebar h2 {
  margin: 0 0 12px;
  color: #1f2937;
}

.feature-card p,
.category-card p,
.info-box p,
.review-box p {
  margin: 0;
  color: #4b5563;
  line-height: 1.75;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 54px rgba(15, 23, 42, 0.16);
}

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #f9a8d4, #c4b5fd, #93c5fd);
}

.movie-card.compact .card-poster {
  aspect-ratio: 4 / 3;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 38%, rgba(0,0,0,0.74) 100%);
  opacity: 0.86;
}

.play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 50%;
  background: rgba(236, 72, 153, 0.9);
  box-shadow: 0 18px 36px rgba(236, 72, 153, 0.28);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(90deg, #ec4899, #8b5cf6);
}

.card-body {
  padding: 16px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.card-tags span,
.tag,
.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #db2777;
  background: #fce7f3;
  font-size: 0.75rem;
  font-weight: 800;
}

.movie-card h3 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 1.02rem;
  line-height: 1.36;
}

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

.movie-card p {
  margin: 0 0 12px;
  color: #6b7280;
  font-size: 0.92rem;
  line-height: 1.65;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #6b7280;
  font-size: 0.78rem;
}

.card-meta span:last-child {
  text-align: right;
}

.band {
  background: linear-gradient(90deg, #f3e8ff, #fce7f3, #dbeafe);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 26px;
  align-items: start;
}

.mini-list {
  display: grid;
  gap: 14px;
}

.mini-card {
  position: relative;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 13px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
}

.mini-card:hover {
  transform: translateX(5px);
  background: #ffffff;
}

.mini-poster {
  position: relative;
  width: 74px;
  height: 98px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #f9a8d4, #bfdbfe);
}

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

.mini-rank {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  font-size: 0.74rem;
  font-weight: 900;
}

.mini-info strong,
.mini-info em,
.mini-info small {
  display: block;
}

.mini-info strong {
  color: #1f2937;
  line-height: 1.35;
}

.mini-info em {
  margin: 4px 0;
  color: #8b5cf6;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 800;
}

.mini-info small {
  color: #6b7280;
  line-height: 1.5;
}

.cta-band {
  padding: 76px 16px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(90deg, #f472b6, #a78bfa, #60a5fa);
}

.cta-band h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.cta-band p {
  max-width: 680px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.72;
}

.page-hero {
  padding: 76px 0 46px;
  color: #ffffff;
  background: linear-gradient(120deg, #f472b6, #a78bfa, #60a5fa);
}

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

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

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

.page-hero h1 {
  max-width: 860px;
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.08rem;
  line-height: 1.78;
}

.search-panel {
  padding: 24px;
  margin-bottom: 28px;
}

.search-panel label {
  display: block;
  margin-bottom: 10px;
  color: #374151;
  font-weight: 900;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-row input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  color: #111827;
  outline: none;
  font: inherit;
  box-shadow: inset 0 0 0 1px transparent;
}

.search-row input:focus {
  border-color: #f9a8d4;
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.search-row button {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 16px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(90deg, #ec4899, #8b5cf6);
  cursor: pointer;
}

.empty-state {
  display: none;
  padding: 46px;
  color: #6b7280;
  text-align: center;
  border-radius: 26px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

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

.category-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
}

.category-card h2 {
  font-size: 1.45rem;
}

.category-count {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 6px 12px;
  color: #7c3aed;
  font-size: 0.82rem;
  font-weight: 900;
  border-radius: 999px;
  background: #ede9fe;
}

.category-card .button-secondary {
  align-self: flex-start;
  margin-top: 22px;
  color: #ffffff;
  background: linear-gradient(90deg, #ec4899, #8b5cf6);
}

.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  align-items: start;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.32);
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.28);
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-cover span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  box-shadow: 0 22px 48px rgba(236, 72, 153, 0.34);
  font-size: 2rem;
}

.movie-detail-card,
.sidebar {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.movie-detail-card {
  padding: 28px;
  margin-top: 24px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.movie-detail-card h2,
.related-section h2 {
  margin: 24px 0 12px;
  color: #111827;
}

.detail-text p {
  margin: 0 0 14px;
  color: #374151;
  line-height: 1.86;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.sidebar {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.related-section {
  margin-top: 34px;
}

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

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

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

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: #6b7280;
  line-height: 1.7;
}

.footer-grid ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-grid li + li {
  margin-top: 8px;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  text-align: center;
  border-top: 1px solid #e5e7eb;
}

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

  .player-layout,
  .split-grid,
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    align-self: auto;
    margin-bottom: 72px;
  }

  .sidebar {
    position: static;
  }
}

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

  .menu-button {
    display: block;
  }

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

  .hero,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    padding: 70px 0 82px;
  }

  .hero-panel {
    margin-bottom: 0;
  }

  .section-head {
    display: block;
  }

  .section-actions {
    margin-top: 18px;
  }

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

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

  .player-cover span {
    width: 66px;
    height: 66px;
  }
}

@media (max-width: 520px) {
  .nav-shell,
  .section,
  .page-section,
  .page-hero-inner,
  .footer-grid,
  .footer-bottom,
  .hero-content {
    width: min(100% - 24px, 1180px);
  }

  .brand-name {
    font-size: 1.18rem;
  }

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

  .search-row {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .category-card,
  .movie-detail-card,
  .sidebar,
  .search-panel {
    border-radius: 22px;
  }
}
