:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --purple: #a855f7;
  --blue: #38bdf8;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(31, 41, 55, 0.12);
  --panel: rgba(255, 255, 255, 0.82);
  --shadow: 0 18px 45px rgba(31, 41, 55, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 8% 6%, rgba(236, 72, 153, 0.14), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(56, 189, 248, 0.18), transparent 30%),
    linear-gradient(180deg, #fff7fb 0%, #ffffff 38%, #f8fbff 100%);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, #fb7185 0%, #c084fc 48%, #60a5fa 100%);
  box-shadow: 0 12px 32px rgba(168, 85, 247, 0.22);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: var(--pink-dark);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 24px rgba(219, 39, 119, 0.22);
}

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

.nav-link {
  border: 0;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.96);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff1f8;
  transform: translateY(-1px);
}

.nav-drop {
  position: relative;
}

.drop-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: 190px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  transform: translate(-50%, 10px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}

.nav-drop:hover .drop-panel,
.nav-drop:focus-within .drop-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.drop-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #374151;
  font-weight: 700;
}

.drop-panel a:hover {
  color: var(--pink-dark);
  background: #fdf2f8;
}

.search-form,
.mobile-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.search-form input,
.mobile-search input {
  width: 250px;
  border: 0;
  outline: 0;
  padding: 12px 16px;
  color: #374151;
  background: transparent;
}

.search-form button,
.mobile-search button {
  border: 0;
  padding: 12px 17px;
  color: #fff;
  background: var(--pink);
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 28px;
}

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

.mobile-panel a {
  display: block;
  padding: 12px 0;
  color: #fff;
  font-weight: 800;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.mobile-cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 18px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  color: #fff;
  background: #111827;
}

.hero-slider {
  position: relative;
  min-height: 660px;
}

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

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #f9a8d4, #c4b5fd, #93c5fd);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.62), rgba(17, 24, 39, 0.16)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(17, 24, 39, 0.78));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  min-height: 660px;
  max-width: 740px;
  padding: 86px 0 96px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(40px, 8vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.9;
}

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--pink-dark);
  background: #fce7f3;
  font-size: 13px;
  font-weight: 800;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.btn-primary,
.btn-ghost,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: var(--pink);
  box-shadow: 0 15px 30px rgba(236, 72, 153, 0.34);
}

.btn-primary:hover,
.btn-soft:hover {
  transform: translateY(-2px) scale(1.01);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.btn-soft {
  color: var(--pink-dark);
  background: #fce7f3;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 34px;
  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;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
  padding: 62px 0;
}

.section-tint {
  background: linear-gradient(90deg, rgba(252, 231, 243, 0.82), rgba(243, 232, 255, 0.78), rgba(224, 242, 254, 0.82));
}

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

.section-kicker {
  margin: 0 0 8px;
  color: var(--pink-dark);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section h2,
.page-title {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.section-subtitle,
.page-desc {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(236, 72, 153, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 36px rgba(31, 41, 55, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(236, 72, 153, 0.16);
}

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

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

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

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.poster-badge {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  background: rgba(17, 24, 39, 0.55);
}

.poster-play {
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  background: rgba(236, 72, 153, 0.86);
}

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

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 8px;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover {
  color: var(--pink-dark);
}

.movie-meta {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.movie-card p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 46px;
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-tile {
  min-height: 130px;
  padding: 24px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, #fb7185, #a855f7 54%, #38bdf8);
  box-shadow: 0 18px 40px rgba(168, 85, 247, 0.2);
}

.category-tile strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 78px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(236, 72, 153, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 28px rgba(31, 41, 55, 0.07);
}

.rank-no {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #fb7185, #a855f7);
  font-weight: 900;
}

.rank-poster {
  overflow: hidden;
  width: 78px;
  height: 104px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f9a8d4, #c4b5fd, #93c5fd);
}

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

.rank-title {
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

.rank-desc {
  margin-top: 6px;
  color: #6b7280;
  line-height: 1.6;
}

.rank-heat {
  color: var(--pink-dark);
  font-weight: 900;
  white-space: nowrap;
}

.page-hero {
  padding: 70px 0 38px;
  background: linear-gradient(135deg, rgba(252, 231, 243, 0.9), rgba(243, 232, 255, 0.9), rgba(224, 242, 254, 0.9));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 800;
}

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

.detail-hero {
  padding: 56px 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.76)),
    linear-gradient(135deg, #fb7185, #a855f7 54%, #38bdf8);
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #f9a8d4, #c4b5fd, #93c5fd);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

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

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.06;
}

.detail-info p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.9;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.player-section {
  padding: 54px 0;
  background: #0f172a;
}

.player-shell {
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.38);
}

.video-box {
  position: relative;
  background: #020617;
}

.video-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.26), rgba(2, 6, 23, 0.52));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.play-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  color: #fff;
  background: var(--pink);
  box-shadow: 0 24px 48px rgba(236, 72, 153, 0.42);
  font-size: 28px;
  font-weight: 900;
}

.player-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  color: rgba(255, 255, 255, 0.86);
}

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

.article-panel,
.side-panel,
.search-panel {
  border: 1px solid rgba(236, 72, 153, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 38px rgba(31, 41, 55, 0.08);
}

.article-panel {
  padding: 32px;
}

.article-panel h2,
.side-panel h3 {
  margin: 0 0 18px;
  color: #111827;
}

.article-panel p {
  margin: 0 0 18px;
  color: #374151;
  line-height: 1.95;
}

.side-panel {
  padding: 22px;
}

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

.side-card {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  align-items: center;
}

.side-card img {
  width: 70px;
  height: 94px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #f9a8d4, #c4b5fd, #93c5fd);
}

.side-card strong {
  display: block;
  margin-bottom: 5px;
  color: #111827;
  line-height: 1.3;
}

.side-card span {
  color: #6b7280;
  font-size: 13px;
}

.search-panel {
  padding: 26px;
}

.search-large {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 22px;
}

.search-large input {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 18px;
  outline: 0;
  font-size: 16px;
}

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

.search-large button {
  border: 0;
  border-radius: 18px;
  padding: 0 24px;
  color: #fff;
  background: var(--pink);
  font-weight: 900;
  cursor: pointer;
}

.empty-state {
  padding: 42px;
  text-align: center;
  color: #6b7280;
}

.alpha-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.alpha-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--pink-dark);
  background: #fce7f3;
  font-weight: 900;
}

@media (max-width: 980px) {
  .desktop-nav,
  .search-form {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-panel.is-open {
    display: block;
  }

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

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

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

  .detail-cover {
    width: min(320px, 100%);
  }
}

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

  .brand {
    font-size: 19px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .hero,
  .hero-slider,
  .hero-content {
    min-height: 600px;
  }

  .hero-content {
    padding-top: 66px;
  }

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

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

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

  .rank-item {
    grid-template-columns: 42px 68px 1fr;
  }

  .rank-heat {
    grid-column: 3;
  }

  .rank-poster {
    width: 68px;
    height: 92px;
  }

  .article-panel {
    padding: 22px;
  }

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

@media (max-width: 460px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }

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