* {
  box-sizing: border-box;
}

:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --red: #ef4444;
  --orange: #f97316;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #fff1f2;
  --line: #fbcfe8;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(219, 39, 119, 0.13);
}

html {
  scroll-behavior: smooth;
}

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, #ffffff 0%, rgba(253, 242, 248, 0.78) 36%, #ffffff 100%);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(253, 242, 248, 0.95), rgba(255, 241, 242, 0.95), rgba(255, 247, 237, 0.95));
  border-bottom: 1px solid rgba(251, 207, 232, 0.75);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.08);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--pink), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--red));
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.28);
  font-size: 14px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-link,
.mobile-link {
  font-size: 14px;
  font-weight: 650;
  color: #4b5563;
  transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover {
  color: var(--pink-dark);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  border: 0;
  border-radius: 14px;
  background: rgba(252, 231, 243, 0.82);
  color: var(--pink-dark);
  font-size: 24px;
  padding: 8px 12px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

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

.mobile-link {
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(251, 207, 232, 0.72);
}

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background: linear-gradient(135deg, #fce7f3 0%, #fff1f2 45%, #ffedd5 100%);
}

.hero-track {
  position: relative;
  min-height: 620px;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 241, 242, 0.74) 42%, rgba(255, 255, 255, 0.12) 100%),
    radial-gradient(circle at 78% 16%, rgba(236, 72, 153, 0.28), transparent 34%),
    radial-gradient(circle at 22% 70%, rgba(249, 115, 22, 0.25), transparent 36%);
}

.hero-bg img {
  width: 50%;
  height: 100%;
  object-fit: cover;
  margin-left: auto;
  opacity: 0.48;
  filter: saturate(1.2) contrast(1.08);
}

.hero-bg img.image-missing {
  opacity: 0;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(252, 231, 243, 0.86);
  color: var(--pink-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-content h1 {
  margin: 22px 0 16px;
  font-size: clamp(42px, 8vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: #111827;
}

.hero-content p {
  max-width: 680px;
  margin: 0;
  color: #4b5563;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(251, 207, 232, 0.72);
  color: var(--pink-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
}

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

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

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--red));
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.28);
}

.ghost-btn {
  color: var(--pink-dark);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(251, 207, 232, 0.78);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(236, 72, 153, 0.24);
}

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

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(219, 39, 119, 0.22);
  cursor: pointer;
}

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--pink), var(--red));
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(6px);
  opacity: 0.25;
  animation: pulse 3s ease-in-out infinite;
}

.hero-glow-one {
  width: 120px;
  height: 120px;
  left: 8%;
  top: 12%;
  background: var(--pink);
}

.hero-glow-two {
  width: 180px;
  height: 180px;
  right: 12%;
  bottom: 18%;
  background: var(--orange);
  animation-delay: 0.4s;
}

@keyframes pulse {
  50% {
    opacity: 0.45;
    transform: scale(1.05);
  }
}

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

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

.section-head h2,
.feature-panel h2,
.mini-rank h2,
.side-card h2,
.prose-card h2,
.sitemap-card h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
}

.section-head p,
.feature-panel p,
.sitemap-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.section-more {
  flex: 0 0 auto;
  color: var(--pink-dark);
  font-weight: 800;
}

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 9px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(251, 207, 232, 0.72);
  box-shadow: 0 8px 22px rgba(236, 72, 153, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(236, 72, 153, 0.48);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 24% 18%, rgba(236, 72, 153, 0.42), transparent 36%),
    linear-gradient(135deg, #fce7f3, #fff7ed);
}

.poster-wrap img,
.rank-item img,
.poster-side img,
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.movie-card:hover .poster-wrap img,
.category-card:hover img {
  transform: scale(1.06);
}

.image-missing {
  opacity: 0;
}

.poster-wrap em,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  padding: 5px 9px;
  backdrop-filter: blur(8px);
}

.poster-wrap em {
  right: 10px;
  bottom: 10px;
  background: rgba(17, 24, 39, 0.72);
}

.rank-badge {
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, var(--pink), var(--red));
}

.movie-card strong {
  display: -webkit-box;
  min-height: 46px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #111827;
  font-size: 16px;
  line-height: 1.45;
}

.movie-card small,
.rank-info small,
.poster-side small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  color: var(--muted);
  font-size: 12px;
}

.movie-card p {
  display: -webkit-box;
  min-height: 42px;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.6;
}

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

.category-card {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #fce7f3, #ffedd5);
  box-shadow: 0 14px 38px rgba(236, 72, 153, 0.12);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.02), rgba(17, 24, 39, 0.74));
}

.category-card span {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 16px;
  color: #ffffff;
}

.category-card strong,
.category-card small,
.category-card em {
  display: block;
}

.category-card strong {
  font-size: 20px;
  line-height: 1.2;
}

.category-card small,
.category-card em {
  margin-top: 4px;
  opacity: 0.88;
  font-size: 12px;
  font-style: normal;
}

.split-section {
  padding-top: 20px;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
}

.feature-panel,
.mini-rank,
.detail-card,
.side-card,
.sitemap-card {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(251, 207, 232, 0.72);
  box-shadow: var(--shadow);
}

.feature-panel {
  padding: 38px;
  background:
    radial-gradient(circle at 18% 18%, rgba(236, 72, 153, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 237, 0.86));
}

.mini-rank,
.side-card {
  padding: 22px;
}

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

.full-rank-list {
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 44px 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(251, 207, 232, 0.62);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.13);
}

.rank-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pink), var(--red));
  color: #ffffff;
  font-weight: 900;
}

.rank-item img {
  width: 74px;
  height: 92px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fce7f3, #fff7ed);
}

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

.rank-info strong,
.poster-side strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #111827;
  font-weight: 800;
}

.rank-info em {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #4b5563;
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

.rank-views {
  color: var(--pink-dark);
  font-size: 13px;
  font-weight: 800;
}

.page-hero {
  padding: 78px 0 42px;
  background:
    radial-gradient(circle at 82% 20%, rgba(236, 72, 153, 0.20), transparent 30%),
    linear-gradient(135deg, #fce7f3, #fff7ed);
}

.page-hero h1 {
  margin: 18px 0 12px;
  color: #111827;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
  margin-top: 26px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(251, 207, 232, 0.82);
}

.search-box input,
.filter-bar select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #374151;
  font: inherit;
}

.filter-bar select {
  min-height: 50px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(251, 207, 232, 0.82);
}

.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.category-links a {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(251, 207, 232, 0.82);
  color: var(--pink-dark);
  font-size: 13px;
  font-weight: 800;
}

.category-links a.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--red));
}

.detail-layout {
  padding: 42px 0 20px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  align-items: start;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #6b7280;
  font-size: 13px;
}

.breadcrumb a {
  color: var(--pink-dark);
  font-weight: 700;
}

.breadcrumb em {
  font-style: normal;
}

.player-card {
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 22px 60px rgba(17, 24, 39, 0.2);
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.24), transparent 28%),
    #000000;
}

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

.detail-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.detail-title-row h1 {
  margin: 16px 0 0;
  color: #111827;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.one-line {
  margin: 22px 0;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.meta-list div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(253, 242, 248, 0.8);
}

.meta-list dt {
  margin-bottom: 4px;
  color: #9ca3af;
  font-size: 12px;
}

.meta-list dd {
  margin: 0;
  color: #374151;
  font-weight: 800;
}

.prose-card p {
  margin: 0 0 22px;
  color: #374151;
  font-size: 16px;
  line-height: 2;
}

.prose-card h2:not(:first-child) {
  margin-top: 26px;
}

.poster-side {
  overflow: hidden;
}

.poster-side img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  background: linear-gradient(135deg, #fce7f3, #fff7ed);
}

.poster-side strong {
  margin-top: 14px;
  font-size: 20px;
}

.detail-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 20px;
}

.side-related {
  display: grid;
  gap: 10px;
}

.related-section {
  padding-top: 30px;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.sitemap-card {
  padding: 24px;
}

.sitemap-card ul {
  display: grid;
  gap: 8px;
  max-height: 680px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.sitemap-card a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(253, 242, 248, 0.72);
  color: #374151;
}

.sitemap-card a:hover {
  color: var(--pink-dark);
  background: #ffffff;
}

.sitemap-card span {
  flex: 0 0 auto;
  color: #9ca3af;
  font-size: 12px;
}

.site-footer {
  margin-top: 50px;
  border-top: 1px solid rgba(251, 207, 232, 0.74);
  background: linear-gradient(135deg, #fff7fb, #fff7ed);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 28px;
  padding: 38px 0;
}

.footer-grid h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 16px;
}

.footer-grid p {
  margin: 12px 0 0;
  color: #6b7280;
  line-height: 1.8;
}

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

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid rgba(251, 207, 232, 0.62);
  color: #9ca3af;
  text-align: center;
  font-size: 13px;
}

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

@media (max-width: 1080px) {
  .movie-grid,
  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .detail-grid,
  .split-grid,
  .sitemap-grid {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }
}

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

  .menu-button {
    display: inline-flex;
  }

  .hero-slider,
  .hero-track,
  .hero-content {
    min-height: 560px;
  }

  .hero-bg img {
    width: 100%;
    opacity: 0.20;
  }

  .section-head,
  .detail-title-row {
    align-items: start;
    flex-direction: column;
  }

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

  .filter-bar,
  .meta-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 36px 58px minmax(0, 1fr);
  }

  .rank-views {
    display: none;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .movie-grid,
  .category-grid {
    gap: 12px;
  }

  .movie-card {
    padding: 9px;
    border-radius: 18px;
  }

  .movie-card strong {
    font-size: 14px;
  }

  .movie-card p {
    display: none;
  }

  .hero-actions,
  .feature-actions {
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .detail-card,
  .feature-panel,
  .mini-rank,
  .side-card,
  .sitemap-card {
    padding: 18px;
    border-radius: 22px;
  }
}
