:root {
  --rose: #ec4899;
  --rose-dark: #be185d;
  --pink-soft: #fdf2f8;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(236, 72, 153, 0.16);
  --panel: rgba(255, 255, 255, 0.92);
  --shadow: 0 18px 45px rgba(190, 24, 93, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(244, 114, 182, 0.18), transparent 32rem),
    linear-gradient(180deg, #fff7fb 0%, #f9fafb 52%, #fff 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.96), rgba(190, 24, 93, 0.96));
  box-shadow: 0 14px 30px rgba(190, 24, 93, 0.22);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: var(--rose-dark);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.nav-links a {
  position: relative;
  padding: 24px 0;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #fff;
}

.nav-links a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 17px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

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

.header-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-shell {
  position: relative;
  width: 238px;
}

.global-search-input,
.page-search-input {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  padding: 11px 16px;
  backdrop-filter: blur(10px);
}

.global-search-input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.search-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(420px, 88vw);
  max-height: 480px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  padding: 10px;
  display: none;
}

.search-popover.is-open {
  display: block;
}

.search-result {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.search-result:hover {
  background: var(--pink-soft);
  transform: translateY(-1px);
}

.search-result img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
  background: #fce7f3;
}

.search-result strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  color: #111827;
}

.search-result span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 0 0 18px;
}

.mobile-panel a {
  display: block;
  color: #fff;
  padding: 12px 0;
  font-weight: 700;
}

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

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

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

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

.hero-slide::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.74) 42%, rgba(190, 24, 93, 0.22) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.1));
  content: "";
}

.hero-bg {
  width: 100%;
  height: 100%;
  min-height: 660px;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08);
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-items: center;
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 46px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  background: rgba(236, 72, 153, 0.76);
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.32);
  font-size: 14px;
  font-weight: 700;
}

.hero-title {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.hero-desc {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  box-shadow: 0 16px 30px rgba(236, 72, 153, 0.32);
}

.btn-light {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

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

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

.hero-tags span,
.tag-list span,
.meta-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  color: #9d174d;
  background: #fce7f3;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  transform: rotate(2deg);
}

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

.hero-score {
  position: absolute;
  right: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 22px;
  color: #fff;
  background: rgba(236, 72, 153, 0.88);
  box-shadow: 0 18px 34px rgba(236, 72, 153, 0.3);
  font-size: 22px;
  font-weight: 900;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
  padding: 72px 0;
}

.section-tight {
  padding: 46px 0;
}

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

.section-title {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.section-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(236, 72, 153, 0.1);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(236, 72, 153, 0.24);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #fce7f3;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-play {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: #fff;
  background: rgba(236, 72, 153, 0.9);
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.34);
}

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

.meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--rose-dark);
}

.movie-card p {
  min-height: 63px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

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

.category-card {
  min-height: 160px;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(253, 242, 248, 0.88)),
    radial-gradient(circle at right top, rgba(236, 72, 153, 0.2), transparent 18rem);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.08);
  padding: 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

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

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 54px 84px 1fr auto;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
  padding: 12px 16px;
}

.rank-no {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  font-weight: 900;
}

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

.ranking-item h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.ranking-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  min-height: 40px;
  border-radius: 999px;
  color: #9d174d;
  background: #fce7f3;
  font-weight: 900;
}

.page-hero {
  padding: 70px 0 42px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(190, 24, 93, 0.94), rgba(236, 72, 153, 0.84)),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.28), transparent 18rem);
}

.page-hero h1 {
  max-width: 820px;
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.06);
  padding: 16px;
}

.page-search-input {
  color: var(--ink);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(236, 72, 153, 0.14);
}

.page-search-input::placeholder {
  color: #9ca3af;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  color: #9d174d;
  background: #fce7f3;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}

.filter-chip.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
}

.detail-hero {
  padding: 58px 0;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(17, 24, 39, 0.94), rgba(190, 24, 93, 0.74)),
    radial-gradient(circle at 80% 10%, rgba(236, 72, 153, 0.34), transparent 22rem);
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 32px;
  background: #fce7f3;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.detail-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.detail-hero p {
  max-width: 820px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

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

.detail-meta .meta-chip {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.watch-panel {
  margin-top: -22px;
}

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #020617;
  box-shadow: 0 28px 80px rgba(17, 24, 39, 0.24);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.54), rgba(2, 6, 23, 0.18));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.big-play {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.38);
  font-size: 34px;
  padding-left: 4px;
}

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

.content-card,
.side-card {
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.07);
  padding: 28px;
}

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

.content-card p,
.side-card p {
  margin: 0 0 20px;
  color: #4b5563;
  line-height: 1.9;
}

.side-card .tag-list {
  margin-top: 12px;
}

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

.site-footer {
  margin-top: 48px;
  padding: 48px 0 34px;
  color: #fff;
  background: linear-gradient(135deg, #111827, #831843);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 28px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.8;
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.copyright {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
}

.empty-state {
  display: none;
  border: 1px dashed rgba(236, 72, 153, 0.28);
  border-radius: 24px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.8);
  padding: 24px;
  text-align: center;
}

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

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

  .hero-inner,
  .story-panel {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }
}

@media (max-width: 820px) {
  .nav-links,
  .header-actions .search-shell {
    display: none;
  }

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .hero-carousel,
  .hero-track,
  .hero-bg {
    min-height: 560px;
  }

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

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

  .ranking-item {
    grid-template-columns: 44px 72px 1fr;
  }

  .ranking-item .score-pill {
    grid-column: 3;
    justify-self: start;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .filter-chips {
    justify-content: flex-start;
  }
}

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

  .brand {
    font-size: 18px;
  }

  .hero-carousel,
  .hero-track,
  .hero-bg {
    min-height: 520px;
  }

  .hero-title {
    font-size: 34px;
  }

  .section {
    padding: 48px 0;
  }

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

  .movie-card p {
    min-height: auto;
  }

  .detail-poster {
    max-width: 260px;
  }

  .ranking-item {
    grid-template-columns: 38px 1fr;
  }

  .ranking-item img {
    display: none;
  }

  .ranking-item .score-pill {
    grid-column: 2;
  }
}
