:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --red: #ef4444;
  --orange: #f97316;
  --yellow: #facc15;
  --text: #1f2937;
  --muted: #6b7280;
  --light: #fff7ed;
  --soft: #fff1f2;
  --white: #ffffff;
  --shadow: 0 22px 50px rgba(185, 28, 28, 0.16);
  --card-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  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.12), transparent 30rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 36%, #fff1f2 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f472b6 0%, #ef4444 50%, #f97316 100%);
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.32);
  font-size: 15px;
}

.brand-text {
  font-size: 26px;
  background: linear-gradient(90deg, #ec4899, #ef4444, #f97316);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link,
.mobile-link {
  padding: 10px 14px;
  border-radius: 14px;
  color: #374151;
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover {
  color: var(--pink-dark);
  background: linear-gradient(90deg, #fce7f3, #ffedd5);
  transform: translateY(-1px);
}

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

.header-search input,
.mobile-search input,
.local-search input {
  min-width: 220px;
  border: 2px solid #fbcfe8;
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.88);
  transition: border 0.25s ease, box-shadow 0.25s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.local-search input:focus {
  border-color: #f472b6;
  box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.18);
}

.header-search button,
.mobile-search button,
.primary-button,
.outline-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 800;
}

.header-search button,
.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, #ec4899, #ef4444, #f97316);
  box-shadow: 0 14px 28px rgba(239, 68, 68, 0.25);
}

.primary-button,
.outline-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.outline-button {
  color: var(--pink-dark);
  background: #ffffff;
  border: 2px solid #fbcfe8;
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(8px);
}

.wide {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fce7f3;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #be185d;
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.hero-carousel {
  background: linear-gradient(135deg, #831843, #7f1d1d, #9a3412);
}

.hero-stage {
  position: relative;
  min-height: 560px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 25%, rgba(251, 113, 133, 0.4), transparent 28rem),
    linear-gradient(90deg, rgba(76, 5, 25, 0.94) 0%, rgba(127, 29, 29, 0.7) 52%, rgba(154, 52, 18, 0.42) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
  max-width: 1180px;
  padding-right: 420px;
}

.hero-kicker,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fce7f3;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-eyebrow {
  color: var(--pink-dark);
  font-size: 13px;
}

.hero-content h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1;
  max-width: 780px;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 24px;
  font-size: 18px;
  color: #fff7ed;
}

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

.hero-tags span,
.hero-tags a,
.detail-tags span,
.tag-row span,
.footer-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span,
.hero-tags a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.hero-side-panel {
  position: absolute;
  z-index: 3;
  right: max(24px, calc((100% - 1180px) / 2));
  top: 50%;
  width: 340px;
  transform: translateY(-50%);
  padding: 20px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.side-title {
  margin-bottom: 12px;
  color: #ffffff;
  font-weight: 900;
  font-size: 18px;
}

.hero-mini {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  transition: transform 0.25s ease, background 0.25s ease;
}

.hero-mini:hover {
  transform: translateX(-4px);
  background: rgba(255, 255, 255, 0.24);
}

.hero-mini img {
  width: 76px;
  height: 56px;
  object-fit: cover;
  border-radius: 14px;
}

.hero-mini strong,
.hero-mini em {
  display: block;
}

.hero-mini em {
  margin-top: 2px;
  color: #ffedd5;
  font-size: 12px;
  font-style: normal;
}

.side-more {
  display: block;
  text-align: center;
  color: #ffffff;
  font-weight: 800;
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

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

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

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

.intro-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.intro-strip h2,
.section-heading h2,
.panel-heading h2,
.detail-copy h2 {
  margin: 8px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

.intro-strip p,
.section-heading p,
.panel-heading p,
.category-card p,
.detail-copy p {
  margin: 0;
  color: var(--muted);
}

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

.section-heading a,
.category-meta a {
  color: var(--pink-dark);
  font-weight: 900;
}

.compact-heading {
  align-items: center;
}

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

.category-tile {
  position: relative;
  min-height: 172px;
  overflow: hidden;
  border-radius: 26px;
  color: #ffffff;
  box-shadow: var(--card-shadow);
  isolation: isolate;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.tile-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(126, 34, 206, 0.24), rgba(136, 19, 55, 0.82));
}

.category-tile strong,
.category-tile em {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 2;
}

.category-tile strong {
  bottom: 42px;
  font-size: 21px;
}

.category-tile em {
  bottom: 18px;
  color: #ffe4e6;
  font-style: normal;
  font-size: 13px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
}

.ranking-split {
  grid-template-columns: 390px minmax(0, 1fr);
}

.local-search {
  margin-bottom: 14px;
}

.local-search input {
  width: 100%;
}

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

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 9px 15px;
  color: #9f1239;
  background: #ffe4e6;
  cursor: pointer;
  font-weight: 800;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.filter-chip:hover,
.filter-chip.active {
  color: #ffffff;
  background: linear-gradient(90deg, #ec4899, #f97316);
  transform: translateY(-1px);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 48px rgba(136, 19, 55, 0.18);
}

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

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(136, 19, 55, 0.78));
  transition: opacity 0.3s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #ec4899, #f97316);
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ec4899);
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #be185d;
  font-size: 12px;
  font-weight: 800;
}

.card-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #fce7f3;
}

.card-body h3 {
  margin: 12px 0 8px;
  font-size: 19px;
  line-height: 1.25;
}

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

.card-body p {
  min-height: 50px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.tag-row span,
.detail-tags span,
.footer-tags a {
  color: #be185d;
  background: #fce7f3;
}

.compact-card .card-body h3 {
  font-size: 17px;
}

.ranking-panel,
.category-card,
.detail-copy article,
.video-shell,
.detail-hero {
  border: 1px solid rgba(244, 114, 182, 0.16);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  box-shadow: var(--card-shadow);
}

.ranking-panel {
  position: sticky;
  top: 98px;
  padding: 24px;
}

.highlight-panel {
  position: sticky;
  top: 98px;
}

.ranking-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.ranking-list li + li {
  border-top: 1px solid #ffe4e6;
}

.ranking-list a {
  display: grid;
  grid-template-columns: 34px 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

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

.ranking-list img {
  width: 58px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
}

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

.rank-text strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.ranking-list b {
  color: #f97316;
}

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.25), transparent 24rem),
    linear-gradient(135deg, #831843, #991b1b, #9a3412);
}

.page-hero > div {
  width: min(1180px, calc(100% - 32px));
  min-height: 310px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-hero h1 {
  margin: 12px 0;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #ffedd5;
  font-size: 18px;
}

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

.category-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  padding: 18px;
}

.category-covers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.category-covers img {
  width: 100%;
  aspect-ratio: 1 / 1.18;
  object-fit: cover;
  border-radius: 14px;
}

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

.category-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 800;
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #9f1239;
  font-weight: 800;
}

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto 0;
  padding: 28px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 30px;
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.13), transparent 20rem),
    rgba(255, 255, 255, 0.92);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 4 / 5.3;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.detail-info h1 {
  margin: 10px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.detail-line {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  color: #9f1239;
  background: #ffe4e6;
  font-weight: 800;
}

.detail-tags {
  margin: 18px 0 26px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.site-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.video-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(76, 5, 25, 0.7));
  cursor: pointer;
  z-index: 2;
}

.video-start.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-start span {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #ec4899, #f97316);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
  font-size: 28px;
}

.video-start strong {
  max-width: 80%;
  font-size: clamp(22px, 4vw, 38px);
  text-align: center;
}

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

.detail-copy article {
  padding: 26px;
}

.detail-copy p {
  font-size: 17px;
  color: #374151;
}

.site-footer {
  color: #ffe4e6;
  background: linear-gradient(135deg, #831843, #7f1d1d, #9a3412);
  margin-top: 42px;
}

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

.footer-logo .brand-mark {
  background: #ffffff;
  color: var(--pink);
  box-shadow: none;
}

.footer-brand p {
  max-width: 360px;
  color: #fecdd3;
}

.site-footer h3 {
  color: #ffffff;
  margin-top: 0;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a {
  color: #ffe4e6;
}

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

.footer-tags a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.is-filtered-out {
  display: none !important;
}

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

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

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

  .mobile-search input {
    min-width: 0;
    width: 100%;
  }

  .hero-content {
    padding-right: 0;
  }

  .hero-side-panel {
    display: none;
  }

  .split-layout,
  .ranking-split {
    grid-template-columns: 1fr;
  }

  .ranking-panel,
  .highlight-panel {
    position: static;
  }

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

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

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner {
    height: 64px;
  }

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

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero-stage,
  .hero-content {
    min-height: 590px;
  }

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

  .hero-actions,
  .intro-strip,
  .section-heading,
  .category-meta {
    align-items: stretch;
    flex-direction: column;
  }

  .section-wrap {
    padding: 44px 0;
  }

  .category-grid,
  .movie-grid,
  .related-grid,
  .category-list-grid,
  .detail-copy {
    grid-template-columns: 1fr;
  }

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

  .detail-hero {
    grid-template-columns: 1fr;
    padding: 18px;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
