:root {
  --pink-50: #fdf2f8;
  --pink-100: #fce7f3;
  --pink-200: #fbcfe8;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --amber-50: #fffbeb;
  --amber-400: #f59e0b;
  --purple-50: #faf5ff;
  --purple-500: #a855f7;
  --sky-50: #f0f9ff;
  --sky-500: #0ea5e9;
  --text: #111827;
  --muted: #6b7280;
  --line: rgba(236, 72, 153, 0.16);
  --shadow: 0 18px 45px rgba(236, 72, 153, 0.13);
  --shadow-strong: 0 25px 70px rgba(17, 24, 39, 0.22);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, var(--pink-50) 0%, #ffffff 46%, var(--amber-50) 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(236, 72, 153, 0.08);
}

.nav-shell,
.footer-grid,
.hero-inner,
.section,
.page-hero,
.detail-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-mark,
.footer-logo span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink-500), var(--amber-400));
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.28);
  font-size: 14px;
}

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

.brand-text strong {
  font-size: 26px;
  background: linear-gradient(90deg, var(--pink-500), var(--amber-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

.nav-link {
  color: #374151;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.nav-dropdown {
  position: relative;
  padding: 24px 0;
}

.dropdown-panel {
  position: absolute;
  top: 68px;
  left: -22px;
  width: 190px;
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  border: 1px solid var(--line);
}

.dropdown-panel a {
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: #4b5563;
}

.dropdown-panel a:hover {
  background: var(--pink-50);
  color: var(--pink-500);
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

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

.mobile-link,
.mobile-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #4b5563;
  font-weight: 600;
}

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

.mobile-group-title {
  display: block;
  margin: 10px 0 4px;
  padding: 0 12px;
  color: #9ca3af;
  font-size: 13px;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(236, 72, 153, 0.18), transparent 26%),
    radial-gradient(circle at 80% 24%, rgba(245, 158, 11, 0.20), transparent 30%),
    linear-gradient(135deg, #fff7fb 0%, #ffffff 54%, #fff7ed 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(236, 72, 153, 0.22) 1px, transparent 0);
  background-size: 34px 34px;
}

.hero-inner {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-copy {
  width: min(100%, 620px);
  animation: fadeIn 0.7s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pink-600);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--pink-200);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.12);
}

.hero h1,
.page-hero h1,
.detail-title h1 {
  margin: 24px 0 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.gradient-text {
  background: linear-gradient(90deg, var(--pink-500), var(--amber-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 21px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 590px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  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;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink-500), var(--pink-600));
  box-shadow: 0 16px 35px rgba(236, 72, 153, 0.28);
}

.btn-secondary {
  color: var(--pink-600);
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid var(--pink-200);
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.12);
}

.hero-posters {
  position: relative;
  width: 500px;
  min-height: 560px;
  display: grid;
  grid-template-columns: repeat(2, 160px);
  gap: 18px;
  align-content: center;
  justify-content: center;
  transform: rotate(12deg);
}

.hero-poster {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--pink-100), #ffffff);
  box-shadow: var(--shadow-strong);
  animation: float 3.5s ease-in-out infinite;
  transition: transform 0.25s ease;
}

.hero-poster:nth-child(2),
.hero-poster:nth-child(4) {
  transform: translateY(40px);
}

.hero-poster:hover {
  transform: translateY(-8px) scale(1.04);
}

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

.hero-poster span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: #ffffff;
  padding: 30px 12px 12px;
  font-weight: 800;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.78), transparent);
  transform: rotate(-12deg);
  transform-origin: left bottom;
}

.search-panel {
  width: min(1200px, calc(100% - 32px));
  margin: -44px auto 0;
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.search-box {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  height: 54px;
  border-radius: 999px;
  background: var(--pink-50);
  color: var(--pink-600);
}

.search-box input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-chip {
  height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  cursor: pointer;
  color: #4b5563;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: all 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink-500), var(--pink-600));
  box-shadow: 0 12px 22px rgba(236, 72, 153, 0.2);
}

.section {
  padding: 76px 0;
}

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

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

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}

.section-head p,
.page-hero p,
.detail-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-more {
  color: var(--pink-600);
  font-weight: 800;
  white-space: nowrap;
}

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

.feature-card,
.category-tile {
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--pink-50), #ffffff);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.82);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:nth-child(2),
.category-tile:nth-child(3n+2) {
  background: linear-gradient(135deg, var(--purple-50), #ffffff);
}

.feature-card:nth-child(3),
.category-tile:nth-child(3n) {
  background: linear-gradient(135deg, var(--amber-50), #ffffff);
}

.feature-card:hover,
.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(236, 72, 153, 0.16);
}

.feature-icon,
.category-icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pink-600);
  background: var(--pink-100);
  font-size: 28px;
  margin-bottom: 18px;
}

.feature-card h3,
.category-tile h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.feature-card p,
.category-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

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

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

.movie-card {
  min-width: 0;
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  border: 1px solid rgba(255, 255, 255, 0.86);
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 55px rgba(236, 72, 153, 0.18);
}

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

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.42);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.play-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pink-600);
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition: all 0.24s ease;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.24);
}

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

.card-ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ffffff;
  background: var(--pink-500);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 800;
}

.card-body {
  display: block;
  padding: 16px;
}

.card-body strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.movie-card:hover .card-body strong {
  color: var(--pink-600);
}

.card-meta,
.card-line {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.card-meta {
  -webkit-line-clamp: 1;
  margin-bottom: 8px;
}

.card-line {
  -webkit-line-clamp: 2;
  min-height: 43px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.card-tags span,
.meta-pill,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--pink-600);
  background: var(--pink-50);
  font-size: 12px;
  font-weight: 700;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-row {
  display: grid;
  grid-template-columns: 52px 58px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateX(5px);
  box-shadow: 0 16px 36px rgba(236, 72, 153, 0.16);
}

.rank-row img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--pink-50);
}

.rank-num {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink-500), var(--amber-400));
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.rank-row strong,
.rank-row em {
  display: block;
}

.rank-row strong {
  font-size: 16px;
  margin-bottom: 6px;
}

.rank-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  line-height: 1.5;
}

.page-hero {
  padding: 82px 0 42px;
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 60px);
}

.page-hero .meta-row,
.detail-title .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.detail-shell {
  padding: 48px 0 76px;
}

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

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

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

.player-card,
.detail-card,
.side-card {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.88);
}

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

.player-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  background: #111827;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-position: center;
  background-size: cover;
  cursor: pointer;
  z-index: 2;
}

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.72), rgba(236, 72, 153, 0.36));
}

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

.player-button {
  position: relative;
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 999px;
  color: var(--pink-600);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 72px rgba(17, 24, 39, 0.35);
  cursor: pointer;
  font-size: 34px;
  padding-left: 8px;
  transition: transform 0.2s ease;
}

.player-button:hover {
  transform: scale(1.06);
}

.detail-title {
  padding: 24px;
}

.detail-title h1 {
  font-size: clamp(30px, 5vw, 48px);
  margin-top: 0;
}

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

.detail-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-card p {
  color: #4b5563;
  line-height: 1.95;
  margin: 0 0 18px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.side-card {
  padding: 18px;
}

.side-card .rank-list {
  gap: 10px;
}

.side-card .rank-row {
  grid-template-columns: 42px 52px 1fr;
  box-shadow: none;
  border: 1px solid var(--line);
}

.side-card .rank-row img {
  width: 52px;
  height: 68px;
}

.side-card .rank-num {
  width: 34px;
  height: 34px;
  font-size: 12px;
}

.site-footer {
  background: linear-gradient(180deg, var(--pink-50), var(--pink-100));
  border-top: 1px solid var(--pink-200);
  padding: 48px 0 0;
}

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

.footer-grid p {
  color: var(--muted);
  line-height: 1.8;
}

.footer-grid h2 {
  font-size: 17px;
  margin: 0 0 16px;
}

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

.footer-grid a {
  color: #4b5563;
}

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

.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 38px auto 0;
  padding: 22px 0;
  border-top: 1px solid rgba(236, 72, 153, 0.18);
  color: var(--muted);
  font-size: 14px;
}

.empty-message {
  display: none;
  padding: 36px;
  border-radius: 24px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

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

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

  .hero-posters {
    width: 420px;
    grid-template-columns: repeat(2, 140px);
  }

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

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-header.is-open .mobile-nav {
    display: block;
  }

  .hero-inner {
    display: block;
    padding: 72px 0 42px;
    min-height: auto;
  }

  .hero-posters {
    width: 100%;
    min-height: 360px;
    margin-top: 40px;
    transform: none;
    grid-template-columns: repeat(2, minmax(120px, 180px));
  }

  .hero-poster {
    height: 220px;
  }

  .hero-poster span {
    transform: none;
  }

  .search-panel,
  .section-head,
  .rank-layout {
    display: block;
  }

  .filter-chips {
    margin-top: 14px;
  }

  .section-more {
    display: inline-flex;
    margin-top: 12px;
  }

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

@media (max-width: 560px) {
  .brand-text strong {
    font-size: 22px;
  }

  .hero h1,
  .page-hero h1,
  .detail-title h1 {
    font-size: 38px;
  }

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

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

  .hero-posters {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 12px;
  }

  .hero-poster {
    height: 188px;
    border-radius: 20px;
  }

  .btn {
    width: 100%;
  }

  .rank-row {
    grid-template-columns: 42px 52px 1fr;
  }

  .rank-row img {
    width: 52px;
    height: 70px;
  }
}
