:root {
  --pink: #ec4899;
  --pink-deep: #db2777;
  --purple: #a855f7;
  --blue: #60a5fa;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #fff7fb;
  --line: #f3d4e8;
  --shadow: 0 20px 45px rgba(236, 72, 153, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #fff1f8 0%, #ffffff 34%, #eff6ff 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(148, 163, 184, 0.18);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  white-space: nowrap;
}

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

.brand-name {
  font-size: 1.45rem;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-weight: 700;
  color: #4b5563;
}

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

.main-nav a:hover,
.mobile-nav a:hover {
  color: var(--pink);
  transform: translateY(-1px);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid #f6c7df;
  border-radius: 999px;
  background: #ffffff;
}

.top-search input {
  width: 190px;
  border: 0;
  outline: 0;
  padding: 8px 10px;
  background: transparent;
}

.top-search button,
.search-panel button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 9px 16px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  flex-direction: column;
  gap: 10px;
  font-weight: 700;
}

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

.hero-carousel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, #f9a8d4, #c4b5fd, #93c5fd);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.76), rgba(17, 24, 39, 0.36)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 38%, rgba(255, 255, 255, 0.2), transparent 28%), linear-gradient(0deg, rgba(0, 0, 0, 0.34), transparent 45%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 48px;
  padding: 64px 0 92px;
}

.hero-copy {
  max-width: 720px;
}

.hero-eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--pink-deep);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-eyebrow {
  color: #ffe4f1;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(2.25rem, 6vw, 4.8rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero-copy h2 + p,
.hero-copy p {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  line-height: 1.8;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 16px 35px rgba(236, 72, 153, 0.36);
}

.ghost-button {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

.ghost-button.light {
  color: #ffffff;
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #be185d;
  background: #ffe4f1;
  font-size: 0.78rem;
  font-weight: 800;
}

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

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

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-controls button {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  padding: 0;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 30px;
  background: #ffffff;
}

.hero-category-bar {
  position: absolute;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 26px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 520px;
}

.hero-category-bar a {
  padding: 9px 14px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

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

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 54px 0 22px;
}

.feature-strip article,
.text-panel,
.category-card-large,
.category-tile,
.movie-card,
.search-panel {
  border: 1px solid rgba(244, 114, 182, 0.22);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.feature-strip article {
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-strip article:hover,
.category-tile:hover,
.movie-card:hover,
.category-card-large:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(168, 85, 247, 0.18);
}

.feature-strip span {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 18px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--blue));
}

.feature-strip h2,
.section-head h2,
.page-hero h1,
.text-panel h2,
.category-card-large h2 {
  margin: 0;
  color: #111827;
}

.feature-strip p,
.category-tile span,
.category-card-large p,
.page-hero p,
.text-panel p,
.movie-one-line {
  color: var(--muted);
  line-height: 1.75;
}

.content-section {
  padding: 58px 0;
}

.content-section.soft-panel {
  width: 100%;
  padding: 70px max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(90deg, #fce7f3, #f3e8ff, #dbeafe);
}

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

.section-head.compact {
  align-items: center;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.3vw, 2.35rem);
}

.section-head > a,
.tool-link {
  color: var(--pink-deep);
  font-weight: 900;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #dbeafe);
}

.poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s ease;
}

.movie-card:hover .poster {
  transform: scale(1.08);
  filter: brightness(0.78);
}

.type-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--pink);
  font-size: 0.75rem;
  font-weight: 900;
}

.rank-badge {
  left: auto;
  right: 10px;
  background: #7c3aed;
}

.hover-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 2.5rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .hover-play {
  opacity: 1;
}

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

.movie-card h2 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  line-height: 1.45;
}

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

.movie-meta {
  margin: 0 0 8px;
  color: #9ca3af;
  font-size: 0.78rem;
}

.movie-one-line {
  display: -webkit-box;
  min-height: 3.2em;
  margin: 0 0 12px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 0.86rem;
}

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

.category-tile {
  display: flex;
  min-height: 168px;
  padding: 24px;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile strong {
  color: #111827;
  font-size: 1.25rem;
}

.category-tile small {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.category-tile small a {
  color: var(--pink-deep);
  font-weight: 700;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 40px 58px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(148, 163, 184, 0.16);
}

.rank-number {
  color: var(--pink-deep);
  font-size: 1.2rem;
  font-weight: 900;
  text-align: center;
}

.rank-item img {
  width: 58px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
}

.rank-text {
  min-width: 0;
}

.rank-text strong,
.rank-text em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-text em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

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

.page-hero {
  position: relative;
  color: #ffffff;
  background: linear-gradient(120deg, #f472b6, #a78bfa, #60a5fa);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.28), transparent 32%);
}

.slim-hero > div {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0;
}

.page-hero .section-kicker {
  color: #fff1f8;
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 4rem);
}

.page-hero p {
  max-width: 780px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
}

.category-card-large {
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card-large h2 {
  margin-bottom: 12px;
}

.category-card-large ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.category-card-large li a {
  color: var(--pink-deep);
  font-weight: 700;
}

.page-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.page-filter,
.search-panel input {
  width: min(520px, 100%);
  min-height: 48px;
  border: 1px solid #f3c5dd;
  border-radius: 999px;
  outline: none;
  padding: 0 18px;
  background: #ffffff;
  font-size: 1rem;
}

.search-panel {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 30px;
  padding: 18px;
}

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

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  filter: blur(10px) saturate(1.2);
  transform: scale(1.04);
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.46)), var(--detail-image);
  background-size: cover;
  background-position: center;
}

.detail-wrap {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

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

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

.video-box {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  object-fit: cover;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.18));
}

.site-player.is-playing .player-cover {
  opacity: 0;
  pointer-events: none;
}

.play-circle {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  padding-left: 4px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.4);
  font-size: 2rem;
}

.player-cover strong {
  font-size: 1.12rem;
}

.detail-info h1 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.1;
}

.detail-info .section-kicker {
  color: #ffe4f1;
}

.detail-one-line {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
  font-size: 1.1rem;
}

.detail-tags {
  margin-bottom: 24px;
}

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

.text-panel {
  padding: 30px;
}

.text-panel h2 {
  margin-bottom: 16px;
}

.text-panel p {
  margin: 0;
  color: #374151;
  font-size: 1.03rem;
}

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

.site-footer {
  margin-top: 40px;
  background: linear-gradient(180deg, #f9fafb, #f3f4f6);
  border-top: 1px solid #e5e7eb;
}

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

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

.footer-logo {
  margin-bottom: 16px;
}

.site-footer h2 {
  margin: 0 0 16px;
  font-size: 1.05rem;
}

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

.footer-links a {
  color: var(--muted);
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--pink-deep);
}

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

.footer-bottom {
  padding: 20px 16px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid #e5e7eb;
}

.is-hidden-by-filter {
  display: none !important;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 32px;
  border-radius: 24px;
  color: var(--muted);
  background: #ffffff;
  text-align: center;
}

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

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

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

  .hero-category-bar {
    display: none;
  }
}

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

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

  .hero-inner,
  .detail-grid,
  .split-layout,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

  .movie-grid,
  .home-grid,
  .related-grid,
  .mini-grid,
  .ranking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 540px) {
  .nav-wrap {
    height: 64px;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .hero-carousel,
  .hero-inner {
    min-height: 620px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 2.35rem;
  }

  .hero-controls {
    bottom: 18px;
  }

  .movie-grid,
  .home-grid,
  .related-grid,
  .mini-grid,
  .ranking-grid {
    gap: 14px;
  }

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

  .footer-inner {
    padding: 34px 0;
  }
}
