:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --purple: #7c3aed;
  --blue: #2563eb;
  --orange: #f97316;
  --text: #111827;
  --muted: #6b7280;
  --soft: #fdf2f8;
  --surface: #ffffff;
  --line: #e5e7eb;
  --shadow: 0 20px 50px rgba(17, 24, 39, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 8% 10%, rgba(236, 72, 153, 0.15), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(124, 58, 237, 0.12), transparent 32%),
    linear-gradient(180deg, #fff7fb 0%, #ffffff 36%, #f8fbff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

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

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

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 22px;
  min-height: 74px;
}

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

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.32);
}

.brand-text {
  font-size: 19px;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  color: #374151;
  font-weight: 650;
}

.main-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav .nav-active {
  color: var(--pink);
}

.quick-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.quick-search input {
  width: 210px;
  min-width: 0;
  padding: 8px 10px 8px 14px;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

.quick-search button,
.hero-search button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: #ffffff;
  font-weight: 750;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-search button:hover,
.hero-search button:hover,
.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(124, 58, 237, 0.32);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: #ffffff;
  font-weight: 750;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #111827;
  border-radius: 999px;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  background: #111827;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.8s ease;
}

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

.hero-slide::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.62) 42%, rgba(236, 72, 153, 0.22)),
    var(--hero-image),
    linear-gradient(135deg, #ec4899, #7c3aed 50%, #2563eb);
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.hero-slide::after {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  content: "";
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.85), transparent);
}

.hero-overlay,
.detail-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.45), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(37, 99, 235, 0.35), transparent 28%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 420px);
  align-items: center;
  gap: 54px;
  padding: 92px 0 110px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-lead {
  max-width: 700px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.hero-tags a,
.tag-list span,
.detail-meta a,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

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

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 34px;
  background: linear-gradient(135deg, var(--pink), var(--purple) 50%, var(--blue));
  box-shadow: 0 38px 80px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
}

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

.hero-poster-info {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 12px 14px;
  color: #ffffff;
  font-weight: 800;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.68);
  backdrop-filter: blur(10px);
}

.hero-toolbar {
  position: absolute;
  right: 0;
  bottom: 28px;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hero-dots {
  display: flex;
  gap: 10px;
}

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

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

.hero-search {
  display: flex;
  width: min(520px, 100%);
  padding: 8px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 0 18px;
  border: 0;
  background: transparent;
  outline: 0;
}

.section-block {
  padding: 72px 0;
}

.soft-section {
  background: linear-gradient(90deg, rgba(253, 242, 248, 0.86), rgba(245, 243, 255, 0.86), rgba(239, 246, 255, 0.86));
}

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

.section-heading h2 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading p:not(.eyebrow) {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
}

.section-more {
  flex-shrink: 0;
  color: var(--pink);
  font-weight: 800;
}

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

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

.featured-grid,
.compact-list {
  display: grid;
  gap: 20px;
}

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

.movie-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

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

.poster-link,
.poster-frame {
  display: block;
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.28), transparent 30%),
    linear-gradient(135deg, #f9a8d4, #c4b5fd 52%, #93c5fd);
}

.poster-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(17, 24, 39, 0.58));
}

.play-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.88);
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.32);
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.card-meta span:not(:last-child)::after {
  margin-left: 8px;
  color: #cbd5e1;
  content: "·";
}

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

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

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 10px 0 14px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-list span {
  color: var(--pink-dark);
  border-color: rgba(236, 72, 153, 0.14);
  background: #fdf2f8;
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 150px 1fr;
}

.movie-card-wide .poster-frame {
  height: 100%;
  min-height: 190px;
  aspect-ratio: auto;
}

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

.chip-panel > div,
.ranking-panel,
.filter-panel,
.detail-content article {
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.07);
}

.chip-panel > div {
  padding: 24px;
}

.chip-panel h3,
.ranking-panel h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-cloud a,
.category-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  color: #4b5563;
  font-weight: 750;
  border: 1px solid #fbcfe8;
  border-radius: 999px;
  background: #fff7fb;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.chip-cloud a:hover,
.category-card:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  transform: translateY(-2px);
}

.two-column,
.ranking-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

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

.ranking-panel {
  padding: 24px;
}

.ranking-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px 14px;
  padding: 12px;
  border-radius: 16px;
  background: #f9fafb;
}

.ranking-index {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.ranking-title {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.ranking-extra {
  grid-column: 2;
  margin-top: -8px;
  color: var(--muted);
  font-size: 13px;
}

.sub-hero {
  padding: 96px 0 72px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(124, 58, 237, 0.78)),
    radial-gradient(circle at 20% 30%, rgba(236, 72, 153, 0.45), transparent 32%),
    #111827;
}

.compact-hero {
  padding: 72px 0 54px;
}

.sub-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.sub-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

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

.category-card {
  flex-direction: column;
  align-items: flex-start;
  min-height: 96px;
  padding: 18px;
  border-radius: 22px;
}

.category-card span {
  font-size: 18px;
}

.category-card small {
  margin-top: 8px;
  opacity: 0.72;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
  padding: 18px;
}

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  padding: 0 14px;
  color: var(--text);
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
}

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

.empty-state {
  padding: 36px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.detail-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.76), rgba(124, 58, 237, 0.46)),
    var(--hero-image),
    linear-gradient(135deg, #ec4899, #7c3aed 50%, #2563eb);
  background-size: cover;
  background-position: center;
  filter: blur(2px) saturate(1.08);
  transform: scale(1.04);
}

.detail-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 44px;
  align-items: center;
  padding: 82px 0;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 30px;
  background: linear-gradient(135deg, var(--pink), var(--purple) 52%, var(--blue));
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.34);
}

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

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

.detail-copy h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-lead {
  max-width: 790px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.detail-meta {
  margin-top: 22px;
}

.detail-tags span,
.detail-tags a,
.detail-meta a,
.detail-meta span {
  color: #ffffff;
}

.player-section {
  padding-top: 56px;
}

.single-heading {
  align-items: flex-start;
}

.player-box {
  position: relative;
  overflow: hidden;
  background: #020617;
  border-radius: 30px;
  box-shadow: 0 30px 70px rgba(17, 24, 39, 0.22);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.62), rgba(124, 58, 237, 0.32));
  border: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.big-play {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  padding-left: 6px;
  color: #ffffff;
  font-size: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 20px 46px rgba(236, 72, 153, 0.36);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.detail-content article {
  padding: 28px;
}

.detail-content h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.detail-content p {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
}

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

.site-footer {
  padding: 46px 0;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  color: #ffffff;
  font-size: 20px;
}

.site-footer p {
  max-width: 640px;
  margin: 12px 0 0;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 750;
}

.footer-links a:hover {
  color: #ffffff;
}

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-block;
  }

  .main-nav,
  .quick-search {
    display: none;
  }

  .site-header.nav-open .main-nav,
  .site-header.nav-open .quick-search {
    display: flex;
    grid-column: 1 / -1;
    width: 100%;
  }

  .site-header.nav-open .main-nav {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 10px;
  }

  .site-header.nav-open .quick-search input {
    flex: 1;
    width: 100%;
  }

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

  .hero-poster,
  .detail-poster {
    width: min(360px, 80vw);
  }

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

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

  .chip-panel,
  .ranking-columns,
  .two-column,
  .detail-content {
    grid-template-columns: 1fr;
  }
}

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

  .brand-text {
    font-size: 17px;
  }

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

  .hero-grid {
    gap: 28px;
    padding: 60px 0 150px;
  }

  .hero-copy h1,
  .hero-copy h2,
  .detail-copy h1,
  .sub-hero h1 {
    font-size: 38px;
  }

  .hero-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-search {
    width: 100%;
  }

  .section-block {
    padding: 50px 0;
  }

  .section-heading {
    display: block;
  }

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

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

  .movie-card-wide {
    grid-template-columns: 118px 1fr;
  }

  .movie-card-wide .poster-frame {
    min-height: 168px;
  }

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

  .footer-grid {
    display: block;
  }

  .footer-links {
    margin-top: 24px;
  }
}

@media (max-width: 520px) {
  .movie-grid,
  .explore-grid,
  .featured-grid,
  .related-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-search {
    display: grid;
    gap: 8px;
    padding: 10px;
    border-radius: 24px;
  }

  .hero-search input {
    min-height: 44px;
  }

  .movie-card-wide {
    grid-template-columns: 104px 1fr;
  }
}
