:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --purple: #7c3aed;
  --blue: #3b82f6;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff7fb;
  --paper: rgba(255, 255, 255, 0.92);
  --shadow: 0 18px 45px rgba(124, 58, 237, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.14), transparent 34rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 30rem),
    linear-gradient(180deg, #fff7fb 0%, #ffffff 45%, #f8fafc 100%);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(148, 163, 184, 0.12);
}

.top-ribbon {
  height: 4px;
  background: linear-gradient(90deg, #f472b6, #a78bfa, #60a5fa);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

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

.brand-copy strong,
.footer-logo {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-link,
.mobile-link {
  color: #374151;
  font-size: 15px;
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

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

.header-search input,
.mobile-search input,
.large-search input,
.inline-search input {
  border: 0;
  outline: 0;
  min-width: 0;
  color: var(--text);
  background: transparent;
}

.header-search input {
  width: 190px;
  padding: 8px 8px 8px 12px;
}

.header-search button,
.mobile-search button,
.large-search button,
.inline-search button {
  border: 0;
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 10px 20px rgba(236, 72, 153, 0.18);
}

.header-search button {
  padding: 8px 14px;
}

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

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
  border-top: 1px solid var(--line);
}

.mobile-panel.is-open {
  display: grid;
  gap: 12px;
}

.mobile-search {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 18px;
  background: #f9fafb;
}

.mobile-search input {
  flex: 1;
  padding: 10px;
}

.mobile-search button {
  padding: 10px 16px;
}

.hero-carousel {
  padding: 28px 0 42px;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  width: min(1180px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  border-radius: 34px;
  background: #111827;
  box-shadow: 0 28px 70px rgba(79, 70, 229, 0.22);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 36px;
  padding: 64px;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(20px) saturate(1.15);
  transform: scale(1.1);
  opacity: 0.42;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.9), rgba(88, 28, 135, 0.66), rgba(236, 72, 153, 0.28)),
    radial-gradient(circle at 82% 12%, rgba(96, 165, 250, 0.34), transparent 30rem);
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--pink-dark);
  font-size: 13px;
  font-weight: 800;
  background: rgba(252, 231, 243, 0.86);
}

.hero-content .eyebrow {
  color: #fdf2f8;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-content h1 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

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

.hero-tags,
.detail-tags,
.movie-meta,
.genre-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags span,
.movie-meta span,
.genre-line span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.movie-meta span,
.genre-line span {
  color: var(--pink-dark);
  background: #fce7f3;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.ghost-button,
.more-link,
.text-link,
.chip-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.primary-button {
  padding: 0 22px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 14px 28px rgba(236, 72, 153, 0.3);
}

.ghost-button {
  padding: 0 20px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover,
.more-link:hover,
.text-link:hover,
.chip-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 10px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.36);
}

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

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

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

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

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

.soft-bg {
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(12px);
}

.gradient-band {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(124, 58, 237, 0.1), rgba(59, 130, 246, 0.12));
}

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

.section-head h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.light-head h2 {
  color: #111827;
}

.more-link,
.text-link {
  color: var(--pink-dark);
}

.more-link {
  padding: 0 18px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(148, 163, 184, 0.16);
}

.home-search-block {
  padding: 18px 0 44px;
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.split-panel h2,
.split-panel p {
  margin: 0;
}

.split-panel h2 {
  margin-bottom: 8px;
  font-size: 30px;
}

.split-panel p {
  color: var(--muted);
  line-height: 1.8;
}

.large-search,
.inline-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.large-search input,
.inline-search input {
  flex: 1;
  padding: 14px 16px;
}

.large-search button,
.inline-search button {
  padding: 0 22px;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(148, 163, 184, 0.14);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(236, 72, 153, 0.32);
  box-shadow: 0 22px 50px rgba(236, 72, 153, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 2.78;
  background: linear-gradient(135deg, #fce7f3, #ede9fe);
}

.poster-link img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease, filter 0.32s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.05);
  filter: saturate(1.12);
}

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

.rank-no {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  font-size: 14px;
  background: linear-gradient(135deg, #f97316, var(--pink));
  box-shadow: 0 10px 18px rgba(249, 115, 22, 0.3);
}

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

.movie-card h3 {
  margin: 12px 0 10px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

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

.movie-card p {
  min-height: 72px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.chip-link {
  min-height: 34px;
  padding: 0 12px;
  color: var(--purple);
  font-size: 13px;
  background: #ede9fe;
}

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

.category-tile,
.category-overview-card {
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(148, 163, 184, 0.12);
}

.category-tile {
  overflow: hidden;
  display: grid;
  gap: 10px;
  padding: 12px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 42px rgba(124, 58, 237, 0.16);
}

.category-tile img {
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  object-fit: cover;
}

.category-tile span {
  font-size: 18px;
  font-weight: 800;
}

.category-tile small {
  color: var(--muted);
  line-height: 1.6;
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  position: relative;
  padding: 70px 0 44px;
  background:
    linear-gradient(135deg, rgba(252, 231, 243, 0.95), rgba(237, 233, 254, 0.82)),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 26rem);
}

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

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

.page-hero .breadcrumbs {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--pink);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.filter-row button {
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--pink-dark);
  cursor: pointer;
  background: #ffffff;
}

.filter-row button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

.overview-grid {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 16px;
}

.category-cover {
  overflow: hidden;
  border-radius: 18px;
}

.category-cover img {
  height: 100%;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 4px 0 8px;
}

.category-overview-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.8;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.mini-links a {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--purple);
  font-size: 13px;
  background: #ede9fe;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 28px;
  align-items: start;
}

.rank-side {
  position: sticky;
  top: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.rank-side h2 {
  margin: 0 0 14px;
}

.rank-mini {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.rank-mini img {
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
}

.rank-mini span {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.inline-search {
  max-width: 720px;
  margin-top: 22px;
}

.empty-state {
  display: none;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.detail-main {
  background: #ffffff;
}

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

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(24px) saturate(1.12);
  transform: scale(1.12);
  opacity: 0.32;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(88, 28, 135, 0.72), rgba(236, 72, 153, 0.32));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  padding: 46px 0 54px;
}

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

.detail-poster {
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.32);
}

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

.detail-copy h1 {
  color: #ffffff;
  font-size: clamp(34px, 5vw, 62px);
}

.lead-text {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.9;
}

.player-section {
  padding: 48px 0 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.06), rgba(15, 23, 42, 0.62));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.32);
}

.play-overlay strong {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.player-shell.is-playing .play-overlay,
.player-shell.is-ready .play-overlay {
  opacity: 0;
  visibility: hidden;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px;
  gap: 22px;
  padding: 22px 0 20px;
}

.story-card,
.info-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(148, 163, 184, 0.12);
}

.story-card h2,
.info-card h2 {
  margin: 0 0 12px;
}

.story-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

.info-card dl {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
}

.info-card dt {
  color: var(--muted);
}

.info-card dd {
  margin: 0;
  font-weight: 700;
}

.site-footer {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding: 42px 0;
}

.footer-brand p {
  max-width: 440px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-group {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-group h3 {
  margin: 0 0 6px;
}

.footer-group a {
  color: var(--muted);
}

.footer-group a:hover {
  color: var(--pink-dark);
}

.footer-bottom {
  padding: 18px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
}

@media (max-width: 1050px) {
  .header-search {
    display: none;
  }

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

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

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

  .info-card {
    grid-column: 1 / -1;
  }
}

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

  .menu-button {
    display: block;
    margin-left: auto;
  }

  .header-inner {
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .hero-shell {
    min-height: 680px;
    border-radius: 24px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 22px;
    padding: 34px 24px 78px;
  }

  .hero-poster {
    width: min(250px, 70vw);
    margin: 0 auto;
    order: -1;
  }

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

  .split-panel,
  .detail-grid,
  .rank-layout,
  .footer-inner,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

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

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

  .rank-side {
    position: static;
  }

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

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

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

  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .hero-shell {
    min-height: 650px;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .hero-content p,
  .lead-text,
  .page-hero p {
    font-size: 16px;
  }

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

  .three-col,
  .four-col,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .large-search,
  .inline-search {
    border-radius: 20px;
    flex-direction: column;
  }

  .large-search button,
  .inline-search button {
    min-height: 44px;
  }
}
