:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --purple: #a855f7;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --rose: #f43f5e;
  --amber: #f59e0b;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f3e8ff;
  --soft: #fff7fb;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(236, 72, 153, 0.14);
}

* {
  box-sizing: border-box;
}

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

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

img.is-hidden-image {
  opacity: 0;
}

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

main {
  min-height: 68vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(244, 114, 182, 0.16);
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.05);
}

.header-inner {
  max-width: 1180px;
  height: 72px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 12px 25px rgba(236, 72, 153, 0.28);
}

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

.desktop-nav a,
.mobile-nav a {
  color: #4b5563;
  font-weight: 650;
  transition: color .2s ease, transform .2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--pink);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.filter-panel input,
.filter-panel select,
.search-page-form input {
  border: 1px solid #f9a8d4;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  outline: none;
  padding: 10px 16px;
  color: #374151;
  box-shadow: 0 8px 22px rgba(236, 72, 153, 0.08);
}

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

.header-search button,
.search-page-form button {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 12px 22px rgba(236, 72, 153, 0.2);
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 26px;
  color: var(--pink);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px 18px;
  gap: 14px;
  flex-wrap: wrap;
}

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

.hero-shell {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 72px 22px 58px;
  color: #fff;
  background: linear-gradient(135deg, #f472b6 0%, #a855f7 50%, #60a5fa 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(35px);
  opacity: .28;
  background: #fff;
  animation: pulseGlow 5s ease-in-out infinite;
}

.hero-glow-one {
  width: 180px;
  height: 180px;
  left: 8%;
  top: 8%;
}

.hero-glow-two {
  width: 230px;
  height: 230px;
  right: 12%;
  bottom: 10%;
  animation-delay: 1.4s;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: .22; }
  50% { transform: scale(1.18); opacity: .34; }
}

.hero-slider {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  z-index: 2;
}

.hero-slide {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 52px;
  min-height: 430px;
}

.hero-slide.active {
  display: flex;
  animation: fadeUp .52s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.hero-kicker,
.page-hero span,
.section-title span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 800;
  letter-spacing: .03em;
}

.hero-copy h1,
.page-hero h1 {
  margin: 16px 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p {
  max-width: 760px;
  margin: 0 0 24px;
  font-size: 20px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

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

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

.tag-row span {
  background: #fdf2f8;
  color: var(--pink-dark);
}

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

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

.primary-button {
  color: var(--pink);
  background: #fff;
  box-shadow: 0 16px 35px rgba(255, 255, 255, .18);
}

.primary-button:hover,
.ghost-button:hover,
.category-pill:hover,
.movie-card:hover,
.category-card:hover,
.category-overview-card:hover,
.rank-item:hover {
  transform: translateY(-4px);
}

.ghost-button {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.hero-cover {
  position: relative;
  flex: 0 0 320px;
  border-radius: 34px;
  overflow: hidden;
  min-height: 440px;
  background: linear-gradient(145deg, rgba(255,255,255,.28), rgba(255,255,255,.08));
  box-shadow: 0 35px 85px rgba(88, 28, 135, 0.32);
}

.hero-cover::after,
.poster-frame::after,
.detail-poster::after,
.rank-poster::after,
.category-card::after,
.category-overview-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0) 45%, rgba(15,23,42,.42) 100%);
  pointer-events: none;
}

.hero-cover img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

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

.category-strip {
  max-width: 1180px;
  margin: -28px auto 26px;
  padding: 0 22px;
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.category-pill {
  color: #fff;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 800;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.pill-pink { background: linear-gradient(90deg, #f472b6, #ec4899); }
.pill-red { background: linear-gradient(90deg, #fb7185, #f43f5e); }
.pill-rose { background: linear-gradient(90deg, #f43f5e, #ec4899); }
.pill-yellow { background: linear-gradient(90deg, #facc15, #f59e0b); }
.pill-blue { background: linear-gradient(90deg, #60a5fa, #06b6d4); }
.pill-purple { background: linear-gradient(90deg, #c084fc, #a855f7); }
.pill-cyan { background: linear-gradient(90deg, #22d3ee, #3b82f6); }

.content-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 22px;
}

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

.section-title span {
  color: var(--pink);
  font-size: 15px;
}

.section-title h2 {
  margin: 6px 0 0;
  color: #1f2937;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
  font-weight: 900;
}

.section-title a {
  color: var(--pink);
  font-weight: 800;
}

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

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

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

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

.movie-card {
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(31, 41, 55, 0.08);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.movie-card:hover {
  box-shadow: var(--shadow);
}

.movie-card-link {
  display: block;
  height: 100%;
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  margin: 0;
  background: linear-gradient(135deg, #fce7f3, #e0f2fe);
  overflow: hidden;
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .32s ease;
}

.movie-card:hover .poster-frame img {
  transform: scale(1.05);
}

.score-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  box-shadow: 0 10px 20px rgba(249, 115, 22, .28);
}

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

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

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

.movie-meta {
  color: #9ca3af;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

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

.movie-card-small h3 {
  font-size: 16px;
}

.movie-card-small p {
  display: none;
}

.soft-panel,
.cool-panel,
.warm-panel {
  margin: 30px 0;
}

.soft-panel {
  background: linear-gradient(90deg, #fff1f7, #faf5ff);
}

.cool-panel {
  background: linear-gradient(90deg, #eff6ff, #ecfeff);
}

.warm-panel {
  background: linear-gradient(135deg, #fff1f7, #f5f3ff, #eff6ff);
}

.panel-inner {
  padding-top: 64px;
  padding-bottom: 64px;
}

.movie-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 20px;
  scroll-snap-type: x mandatory;
}

.rail-item {
  width: 255px;
  min-width: 255px;
  scroll-snap-align: start;
}

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

.category-card {
  position: relative;
  min-height: 190px;
  border-radius: 28px;
  padding: 24px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #f472b6, #a855f7);
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 2;
}

.category-card span {
  display: block;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 10px;
}

.category-card p {
  max-width: 80%;
  line-height: 1.7;
  color: rgba(255, 255, 255, .9);
}

.category-card img {
  position: absolute;
  right: -10px;
  bottom: -36px;
  width: 150px;
  height: 210px;
  object-fit: cover;
  border-radius: 22px;
  transform: rotate(7deg);
  opacity: .52;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 82px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(31, 41, 55, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}

.rank-number {
  color: var(--pink);
  font-size: 24px;
  font-weight: 950;
  text-align: center;
}

.rank-poster {
  position: relative;
  width: 82px;
  height: 112px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #e0f2fe);
}

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

.rank-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
}

.rank-body p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.6;
}

.rank-score {
  padding: 9px 14px;
  color: #fff;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

.page-hero,
.detail-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, #f472b6, #a855f7 55%, #60a5fa);
}

.compact-hero {
  padding: 82px 22px;
  text-align: center;
}

.compact-hero > * {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  color: rgba(255, 255, 255, .86);
  font-weight: 700;
}

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

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.filter-panel input {
  min-width: min(100%, 360px);
  flex: 1;
}

.filter-panel select {
  min-width: 150px;
}

.category-overview-card {
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(31, 41, 55, .08);
  overflow: hidden;
  transition: transform .2s ease;
}

.category-overview-card a {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 195px;
}

.category-overview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #fce7f3, #e0f2fe);
}

.category-overview-card div {
  padding: 24px;
}

.category-overview-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 900;
}

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

.sample-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sample-line span {
  border-radius: 999px;
  padding: 6px 10px;
  background: #fdf2f8;
  color: var(--pink-dark);
  font-size: 13px;
  font-weight: 750;
}

.detail-hero {
  min-height: 560px;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: .22;
  filter: blur(15px);
  transform: scale(1.04);
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 22px 64px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 42px;
  align-items: center;
  margin-top: 34px;
}

.detail-poster {
  position: relative;
  margin: 0;
  border-radius: 30px;
  overflow: hidden;
  min-height: 420px;
  background: linear-gradient(135deg, #fce7f3, #e0f2fe);
  box-shadow: 0 35px 75px rgba(88, 28, 135, .32);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 14px 0 18px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  font-weight: 950;
}

.detail-copy p {
  max-width: 780px;
  font-size: 20px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .9);
}

.player-section {
  padding-top: 46px;
  padding-bottom: 20px;
}

.player-box {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 35px 85px rgba(15, 23, 42, .24);
  aspect-ratio: 16 / 9;
}

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #0f172a;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(236,72,153,.2), rgba(15,23,42,.55));
  cursor: pointer;
  transition: opacity .22s ease, visibility .22s ease;
}

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

.player-overlay button {
  width: 118px;
  height: 118px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  color: var(--pink);
  background: #fff;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 22px 55px rgba(255, 255, 255, .18);
}

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

.detail-main,
.detail-side {
  border-radius: 30px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(31, 41, 55, .07);
}

.detail-main h2,
.detail-side h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 24px;
  font-weight: 900;
}

.detail-main p {
  margin: 0 0 24px;
  color: #4b5563;
  line-height: 2;
  font-size: 16px;
}

.detail-side ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-side li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #fce7f3;
}

.detail-side li span {
  color: var(--muted);
}

.detail-side li strong {
  text-align: right;
  color: #111827;
}

.detail-nav {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.detail-nav a {
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--pink-dark);
  background: #fdf2f8;
  font-weight: 750;
}

.search-page-form {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.search-page-form input {
  flex: 1;
  border-radius: 24px;
  padding: 16px 20px;
  font-size: 16px;
}

.search-page-form button {
  padding-left: 28px;
  padding-right: 28px;
}

.search-results {
  display: grid;
  gap: 14px;
}

.search-result-card {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(31, 41, 55, .07);
}

.search-result-card img {
  width: 86px;
  height: 116px;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(135deg, #fce7f3, #e0f2fe);
}

.search-result-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
}

.search-result-card p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.6;
}

.search-result-card .primary-link {
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 850;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

.search-empty {
  padding: 26px;
  border-radius: 24px;
  background: #fff;
  color: var(--muted);
  box-shadow: var(--shadow);
}

.site-footer {
  margin-top: 50px;
  background: linear-gradient(90deg, #fff1f7, #f5f3ff, #eff6ff);
  border-top: 1px solid rgba(244, 114, 182, .16);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 22px;
  display: flex;
  justify-content: space-between;
  gap: 34px;
}

.footer-brand p {
  max-width: 520px;
  color: #6b7280;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #4b5563;
  font-weight: 750;
}

.footer-bottom {
  text-align: center;
  color: #6b7280;
  padding: 18px 22px 28px;
}

@media (max-width: 960px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

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

  .hero-slide,
  .detail-layout,
  .detail-content {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-slide.active {
    display: grid;
  }

  .hero-cover {
    width: min(100%, 360px);
    min-height: 420px;
    margin: 0 auto;
  }

  .card-grid,
  .four-grid,
  .compact-grid,
  .tiny-grid,
  .category-card-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-content {
    gap: 20px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 64px;
    padding: 0 16px;
  }

  .site-logo {
    font-size: 20px;
  }

  .hero-shell {
    padding: 50px 16px 42px;
  }

  .hero-copy p,
  .detail-copy p,
  .page-hero p {
    font-size: 16px;
  }

  .content-section {
    padding: 38px 16px;
  }

  .card-grid,
  .four-grid,
  .compact-grid,
  .tiny-grid,
  .category-card-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .category-overview-card a,
  .rank-item,
  .search-result-card {
    grid-template-columns: 1fr;
  }

  .rank-poster,
  .search-result-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .rank-score {
    justify-self: start;
  }

  .detail-inner {
    padding: 36px 16px 48px;
  }

  .detail-poster {
    min-height: 360px;
  }

  .player-overlay button {
    width: 92px;
    height: 92px;
    font-size: 15px;
  }

  .search-page-form {
    flex-direction: column;
  }
}
