:root {
  --bg: #f7fbff;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --text: #182033;
  --muted: #687186;
  --line: rgba(113, 128, 150, 0.18);
  --pink: #ec4899;
  --sky: #38bdf8;
  --emerald: #34d399;
  --orange: #fb923c;
  --shadow: 0 18px 50px rgba(31, 41, 55, 0.12);
  --soft-shadow: 0 10px 28px rgba(31, 41, 55, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.14), transparent 28rem),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.20), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #eef7ff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

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

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink), var(--sky), var(--emerald));
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.25);
}

.logo-text,
.footer-logo {
  background: linear-gradient(90deg, var(--pink), var(--sky), var(--emerald));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #4b5563;
  font-weight: 700;
}

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

.nav-link::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--sky));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
  content: "";
}

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

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

.mobile-menu-button {
  display: none;
  border: 0;
  color: var(--text);
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 20px 16px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  margin-top: 28px;
  border: 1px solid rgba(255, 255, 255, 0.70);
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
  box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(4px);
  content: "";
}

.hero::before {
  top: -120px;
  right: 10%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.42), transparent 65%);
}

.hero::after {
  left: -100px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.38), transparent 68%);
}

.hero-slider {
  position: relative;
  z-index: 2;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.72fr);
  gap: 44px;
  align-items: center;
  padding: 64px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-copy {
  color: #ffffff;
}

.section-kicker,
.hero-kicker {
  margin: 0 0 14px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.hero-copy p {
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.80);
  font-size: 18px;
}

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 700;
}

.tag-row span,
.detail-tags span {
  color: #5b6476;
  border-color: rgba(99, 102, 241, 0.12);
  background: rgba(56, 189, 248, 0.10);
}

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

.button-primary,
.button-soft,
.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  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 {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--sky));
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.26);
}

.button-soft,
.filter-button {
  color: #334155;
  background: rgba(255, 255, 255, 0.84);
}

.button-primary:hover,
.button-soft:hover,
.filter-button:hover,
.filter-button.is-active {
  transform: translateY(-2px);
  box-shadow: var(--soft-shadow);
}

.hero-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.hero-poster img {
  transition: transform 0.5s ease;
}

.hero-slide.is-active .hero-poster img {
  transform: scale(1.04);
}

.hero-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 20px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(14px);
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 64px;
  bottom: 42px;
  display: flex;
  gap: 10px;
}

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

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--pink), var(--sky));
}

.search-panel {
  margin-top: 34px;
}

.search-card,
.section-block,
.category-card,
.detail-card,
.player-shell {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.search-card {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 26px;
  align-items: center;
  padding: 28px;
}

.search-card h2,
.section-head h2,
.category-card h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.search-wrap {
  position: relative;
}

.search-wrap input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  background: #ffffff;
  font: inherit;
  font-weight: 700;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-wrap input:focus {
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 20;
  display: none;
  overflow: hidden;
  max-height: 420px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.search-result-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.search-result-item:last-child {
  border-bottom: 0;
}

.search-result-item img {
  height: 70px;
  border-radius: 12px;
}

.search-result-item strong,
.search-result-item em {
  display: block;
}

.search-result-item em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-shell {
  padding: 42px 0 70px;
}

.section-block {
  margin-top: 32px;
  padding: 28px;
}

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

.section-head p,
.page-title p,
.detail-title p,
.category-card p,
.card-content p,
.detail-copy p {
  color: var(--muted);
}

.grid,
.category-grid,
.detail-grid {
  display: grid;
  gap: 22px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px rgba(31, 41, 55, 0.13);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.08), rgba(56, 189, 248, 0.08));
}

.poster-link img {
  transition: transform 0.35s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.card-content {
  padding: 16px;
}

.card-meta {
  display: flex;
  gap: 8px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 800;
}

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

.card-content p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  margin: 0;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
}

.category-card::after {
  position: absolute;
  inset: auto -28px -48px auto;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.18), transparent 68%);
  content: "";
}

.category-card strong {
  display: inline-flex;
  margin-top: 18px;
  color: var(--pink);
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 42px 58px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 88px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  background: #ffffff;
}

.rank-item img {
  width: 58px;
  height: 76px;
  border-radius: 12px;
}

.rank-number {
  color: var(--pink);
  font-size: 22px;
  font-weight: 900;
}

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

.rank-item em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 24px;
}

.detail-head {
  align-items: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-grid {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
}

.detail-cover {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.detail-card,
.player-shell {
  padding: 28px;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.fact {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.fact span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.fact strong {
  display: block;
  margin-top: 4px;
}

.detail-copy h2 {
  margin: 26px 0 10px;
  font-size: 24px;
}

.player-shell {
  margin-top: 32px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(236, 72, 153, 0.26), rgba(2, 6, 23, 0.72));
  cursor: pointer;
}

.play-overlay.is-hidden {
  display: none;
}

.play-overlay span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--sky));
  box-shadow: 0 18px 42px rgba(56, 189, 248, 0.24);
  font-size: 34px;
}

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

.related-grid .movie-card .card-content p {
  display: none;
}

.site-footer {
  margin-top: 34px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
}

.hidden-card {
  display: none !important;
}

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

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

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

  .mobile-menu-button {
    display: block;
  }

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

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 24px 76px;
  }

  .hero-poster {
    max-width: 320px;
  }

  .hero-dots {
    left: 24px;
    bottom: 30px;
  }

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

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

  .rank-list {
    grid-template-columns: 1fr;
  }

  .section-head,
  .page-title,
  .detail-head,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .footer-inner,
  .page-shell,
  .hero,
  .search-panel {
    width: min(100% - 22px, 1180px);
  }

  .hero,
  .search-card,
  .section-block,
  .category-card,
  .detail-card,
  .player-shell {
    border-radius: 22px;
  }

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

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