:root {
  --pink-50: #fff1f5;
  --pink-100: #ffe4ec;
  --pink-200: #fecddf;
  --pink-400: #fb719c;
  --pink-500: #ec4899;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --orange-400: #fb923c;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #f8fafc;
  --line: rgba(236, 72, 153, 0.18);
  --shadow: 0 22px 70px rgba(236, 72, 153, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(251, 113, 156, 0.20), transparent 34rem),
    linear-gradient(180deg, #fff7fb 0%, #ffffff 36%, #fff1f5 100%);
}

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

img,
video {
  display: block;
  max-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.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(244, 63, 94, 0.08);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.32);
}

.brand-text {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.main-nav a {
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease;
}

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

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

.header-search input,
.search-console input,
.local-filter {
  border: 1px solid var(--pink-200);
  border-radius: 999px;
  padding: 11px 16px;
  background: #fff;
  outline: none;
  min-width: 220px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.search-console input:focus,
.local-filter:focus {
  border-color: var(--pink-400);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.14);
}

.header-search button,
.search-console button,
.btn,
.year-filter-row button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 800;
  cursor: pointer;
}

.header-search button,
.search-console button,
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 14px 26px rgba(236, 72, 153, 0.28);
}

.btn-ghost,
.year-filter-row button {
  color: var(--pink-500);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--pink-200);
}

.year-filter-row button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  color: var(--pink-500);
  background: var(--pink-50);
}

.mobile-panel {
  display: none;
  width: min(1220px, calc(100% - 28px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--pink-200);
  border-radius: 18px;
  background: #fff;
}

.mobile-panel a {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  color: #4b5563;
  font-weight: 700;
}

.mobile-panel a:hover {
  color: var(--pink-500);
  background: var(--pink-50);
}

.mobile-panel.is-open {
  display: block;
}

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

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transform: scale(1.04);
}

.hero-slide.is-active .hero-bg {
  animation: heroZoom 7s ease both;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.90), rgba(17, 24, 39, 0.48), rgba(244, 63, 94, 0.26)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.92), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 320px;
  gap: 46px;
  align-items: center;
  padding: 76px 0 118px;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 10px;
  color: var(--pink-400);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

.hero-desc {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-actions,
.tag-row,
.detail-stats,
.year-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--rose-600);
  background: var(--pink-50);
  border: 1px solid rgba(251, 113, 156, 0.28);
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.hero-poster {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 3;
  width: min(780px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(20px);
}

.hero-search input {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  outline: none;
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  color: transparent;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 30px;
  border-radius: 999px;
  background: #fff;
}

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

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

.page-hero {
  padding: 62px 0 30px;
}

.page-hero h1,
.section-heading h2,
.rank-head h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero p,
.section-heading p {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.8;
}

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

.section-more {
  color: var(--pink-500);
  font-weight: 900;
}

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

.category-tile {
  min-height: 150px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff, var(--pink-50));
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(244, 63, 94, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.rank-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-tile span,
.category-tile strong,
.category-tile em {
  display: block;
}

.category-tile span {
  color: #111827;
  font-size: 1.2rem;
  font-weight: 900;
}

.category-tile strong {
  margin: 14px 0 8px;
  color: var(--pink-500);
  font-size: 1.8rem;
}

.category-tile em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.5;
}

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

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

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

.movie-card,
.rank-card,
.detail-card,
.side-box,
.category-overview-card,
.rank-panel,
.sitemap-group {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 40px rgba(244, 63, 94, 0.08);
}

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

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(244, 63, 94, 0.20)),
    #fff1f5;
}

.movie-card .poster-wrap {
  aspect-ratio: 3 / 4;
}

.poster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

.movie-card:hover .poster-image,
.rank-card:hover .poster-image {
  transform: scale(1.055);
}

.poster-wrap.poster-missing .poster-image {
  opacity: 0;
}

.poster-wrap.poster-missing::after {
  content: attr(data-title);
  position: absolute;
  inset: 16px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--rose-600);
  font-weight: 900;
  line-height: 1.5;
}

.poster-badge,
.rank-card-no,
.play-chip {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
}

.poster-badge {
  left: 12px;
  top: 12px;
  padding: 6px 10px;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(10px);
}

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

.movie-card h3,
.rank-card h2 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.35;
}

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

.movie-meta,
.movie-line,
.meta-line {
  color: var(--muted);
  line-height: 1.65;
}

.movie-line {
  min-height: 3.2em;
}

.rank-panel {
  position: sticky;
  top: 88px;
  padding: 22px;
}

.rank-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(236, 72, 153, 0.12);
}

.rank-no {
  color: var(--pink-500);
  font-weight: 900;
}

.rank-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.rank-views {
  color: var(--muted);
  font-size: 0.9rem;
}

.rank-more {
  display: block;
  margin-top: 18px;
  text-align: center;
}

.category-overview-list,
.sitemap-list {
  display: grid;
  gap: 24px;
  padding-bottom: 58px;
}

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

.category-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}

.filter-box {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.local-filter {
  width: min(640px, 100%);
}

.rank-list {
  display: grid;
  gap: 16px;
  padding-bottom: 58px;
}

.rank-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 20px;
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-poster {
  aspect-ratio: 3 / 4;
  border-radius: 18px;
}

.rank-card-no {
  left: 10px;
  top: 10px;
  padding: 8px 10px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-top: 26px;
  color: var(--muted);
  font-weight: 700;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--pink-500);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding-top: 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 26px 80px rgba(17, 24, 39, 0.22);
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.34), rgba(17, 24, 39, 0.62));
}

.player-start span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 20px 50px rgba(236, 72, 153, 0.44);
}

.player-shell.is-started .player-start {
  display: none;
}

.detail-card {
  margin-top: 24px;
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
}

.detail-card h2,
.side-box h2 {
  margin-top: 28px;
  color: #111827;
}

.detail-card p {
  color: #374151;
  line-height: 1.9;
}

.detail-one-line {
  font-size: 1.1rem;
  color: var(--rose-600) !important;
  font-weight: 800;
}

.detail-stats span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #4b5563;
  background: var(--soft);
}

.detail-poster {
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.side-box {
  margin-top: 22px;
  padding: 22px;
}

.side-box dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px 14px;
}

.side-box dt {
  color: var(--muted);
  font-weight: 800;
}

.side-box dd {
  margin: 0;
}

.search-console {
  display: flex;
  gap: 10px;
  max-width: 720px;
  margin-top: 24px;
}

.search-console input {
  flex: 1;
}

.search-stats {
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 800;
}

.sitemap-group {
  padding: 22px;
}

.sitemap-group h2 {
  margin: 0 0 12px;
  color: var(--pink-500);
}

.sitemap-group ul {
  margin: 0;
  padding-left: 22px;
  columns: 2;
}

.sitemap-group li {
  break-inside: avoid;
  margin-bottom: 8px;
  color: #4b5563;
}

.site-footer {
  margin-top: 42px;
  background: linear-gradient(135deg, #fff, var(--pink-50));
  border-top: 1px solid var(--line);
}

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

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--rose-600);
  font-size: 1.1rem;
}

.site-footer p,
.site-footer li {
  color: var(--muted);
  line-height: 1.75;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.back-top {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
}

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

@keyframes heroZoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.10);
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-poster,
  .detail-side {
    display: none;
  }

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

  .rank-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .hero-carousel,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    padding: 58px 0 128px;
  }

  .hero-search,
  .search-console,
  .category-overview-head,
  .section-heading,
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
    border-radius: 26px;
  }

  .hero-search button,
  .search-console button {
    width: 100%;
  }

  .category-grid,
  .movie-grid,
  .movie-grid-small {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .sitemap-group ul {
    columns: 1;
  }
}
