:root {
  --bg: #fff7fb;
  --panel: rgba(255, 255, 255, 0.88);
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #ffe4ed;
  --line: rgba(244, 114, 182, 0.2);
  --pink: #ec4899;
  --red: #ef4444;
  --orange: #f97316;
  --shadow: 0 18px 55px rgba(236, 72, 153, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 12%, rgba(236, 72, 153, 0.16), transparent 32%),
    radial-gradient(circle at 82% 4%, rgba(249, 115, 22, 0.16), transparent 30%),
    radial-gradient(circle at 60% 84%, rgba(239, 68, 68, 0.10), transparent 34%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 247, 251, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(236, 72, 153, 0.08);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #111827;
}

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

.brand-mark svg,
.primary-btn svg,
.play-badge svg,
.menu-btn svg,
.filter-bar svg,
.search-form svg,
.rank-list svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark svg,
.play-badge svg,
.player-overlay svg {
  fill: currentColor;
  stroke: none;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.desktop-nav a,
.mobile-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--pink);
  background: rgba(236, 72, 153, 0.10);
  transform: translateY(-1px);
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: var(--pink);
  background: rgba(236, 72, 153, 0.10);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  gap: 8px;
  flex-wrap: wrap;
}

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

.hero {
  position: relative;
  overflow: hidden;
}

.hero-stage {
  position: relative;
  min-height: 720px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-bg,
.detail-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px) saturate(1.1);
  transform: scale(1.08);
  opacity: 0.34;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 247, 251, 0.98), rgba(255, 247, 251, 0.70) 48%, rgba(255, 247, 251, 0.88)),
    radial-gradient(circle at 84% 22%, rgba(236, 72, 153, 0.20), transparent 30%),
    radial-gradient(circle at 70% 75%, rgba(249, 115, 22, 0.18), transparent 34%);
}

.hero-content {
  position: relative;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 54px;
  padding: 76px 0 156px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 13px;
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 999px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.76);
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 16px;
  max-width: 780px;
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, #111827 8%, var(--pink) 48%, var(--orange) 94%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

.hero-tags span,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #be185d;
  font-size: 12px;
  font-weight: 800;
  background: rgba(252, 231, 243, 0.90);
}

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

.primary-btn,
.ghost-btn,
.search-form button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.search-form button {
  color: #ffffff;
  border: 0;
  background: linear-gradient(135deg, var(--pink), var(--red), var(--orange));
  box-shadow: 0 14px 34px rgba(236, 72, 153, 0.25);
}

.ghost-btn,
.text-link {
  color: #be185d;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(236, 72, 153, 0.18);
}

.primary-btn:hover,
.ghost-btn:hover,
.search-form button:hover,
.text-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.20);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 34px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 32px -18px -18px 32px;
  z-index: -1;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.24), rgba(249, 115, 22, 0.24));
  filter: blur(8px);
}

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

.hero-thumbs {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: -118px;
  padding-bottom: 44px;
}

.hero-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(236, 72, 153, 0.14);
  border-radius: 18px;
  color: #374151;
  background: rgba(255, 255, 255, 0.80);
  box-shadow: 0 12px 32px rgba(236, 72, 153, 0.10);
  cursor: pointer;
}

.hero-thumb img {
  width: 44px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
}

.hero-thumb span {
  overflow: hidden;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-thumb.is-active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--pink), var(--red), var(--orange));
}

.quick-search-panel {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: center;
  gap: 26px;
  margin-top: 30px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.quick-search-panel h2,
.section-head h2,
.ranking-copy h2,
.story-card h2,
.floating-rank h2 {
  margin: 10px 0 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.search-form,
.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-form label,
.filter-bar label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 999px;
  color: var(--pink);
  background: rgba(255, 255, 255, 0.82);
}

.search-form input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.filter-bar select {
  min-height: 50px;
  width: auto;
  padding: 0 18px;
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

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

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

.section-head a {
  color: var(--pink);
  font-weight: 900;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  border-radius: 24px;
  color: #ffffff;
  background: #111827;
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.12);
}

.category-tile img,
.tile-cover,
.category-card-cover img,
.category-card-cover span {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-cover,
.category-card-cover span {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 2;
}

.category-tile strong {
  font-size: 20px;
  font-weight: 950;
}

.category-tile em {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.86;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 40px rgba(236, 72, 153, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(236, 72, 153, 0.18);
}

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

.poster-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(17, 24, 39, 0.74));
}

.play-badge,
.year-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 950;
}

.play-badge {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.32);
}

.year-badge {
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  font-size: 12px;
  background: rgba(17, 24, 39, 0.70);
  backdrop-filter: blur(10px);
}

.movie-info {
  padding: 15px;
}

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

.movie-info h2 {
  margin: 8px 0 7px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-info p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ranking-band {
  margin-top: 72px;
  padding: 76px 0;
  background:
    linear-gradient(135deg, rgba(253, 242, 248, 0.94), rgba(255, 247, 237, 0.94)),
    radial-gradient(circle at 15% 35%, rgba(236, 72, 153, 0.18), transparent 28%);
}

.ranking-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 36px;
  align-items: start;
}

.ranking-copy p {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.8;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 46px 54px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  box-shadow: 0 14px 32px rgba(236, 72, 153, 0.14);
}

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

.rank-item img {
  width: 54px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.rank-main strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.rank-heat {
  padding: 5px 8px;
  border-radius: 999px;
  color: #be185d;
  font-weight: 900;
  background: rgba(252, 231, 243, 0.92);
}

.page-hero,
.detail-top {
  position: relative;
  overflow: hidden;
  padding: 84px 0 56px;
  background: linear-gradient(135deg, rgba(253, 242, 248, 0.95), rgba(255, 247, 237, 0.95));
}

.two-col-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 34px;
  align-items: start;
}

.floating-rank,
.story-card,
.category-card,
.detail-poster,
.player-box {
  border: 1px solid rgba(236, 72, 153, 0.14);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.floating-rank {
  padding: 20px;
}

.floating-rank h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 22px;
}

.small-rank .rank-item {
  grid-template-columns: 34px 42px 1fr;
}

.small-rank .rank-item img {
  width: 42px;
  height: 56px;
}

.small-rank .rank-heat {
  display: none;
}

.filter-bar {
  margin-bottom: 24px;
}

.wide-filter {
  max-width: 980px;
  margin-top: 26px;
}

.categories-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 56px 0 0;
}

.category-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  padding: 14px;
}

.category-card-cover {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: 20px;
  background: #111827;
}

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

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

.category-mini-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.category-mini-list span {
  overflow: hidden;
  color: #4b5563;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-top {
  min-height: 520px;
  padding: 78px 0 58px;
}

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

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 247, 251, 0.98), rgba(255, 247, 251, 0.78));
}

.detail-grid {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  padding: 12px;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.detail-stats span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #374151;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.75);
}

.watch-section {
  margin-top: -28px;
  position: relative;
  z-index: 4;
}

.player-box {
  position: relative;
  overflow: hidden;
  background: #020617;
}

.player-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(236, 72, 153, 0.26), rgba(2, 6, 23, 0.54));
  cursor: pointer;
}

.player-overlay.is-hidden {
  display: none;
}

.player-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 18px 45px rgba(236, 72, 153, 0.34);
}

.player-overlay svg {
  width: 34px;
  height: 34px;
  margin-left: 4px;
}

.detail-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 32px;
}

.story-card {
  padding: 24px;
}

.story-card p {
  color: #4b5563;
  line-height: 1.9;
}

.full-rank {
  max-width: 980px;
  margin: 0 auto;
}

.site-footer {
  margin-top: 78px;
  padding: 54px 0 28px;
  border-top: 1px solid var(--line);
  background: rgba(255, 247, 251, 0.88);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 0.8fr;
  gap: 34px;
}

.footer-grid p,
.footer-bottom {
  color: var(--muted);
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 16px;
  font-size: 16px;
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.70);
}

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

.footer-bottom {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
}

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

@media (max-width: 1120px) {
  .desktop-nav {
    max-width: 64vw;
  }

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

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

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

  .menu-btn {
    display: grid;
    place-items: center;
  }

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

  .hero-slide {
    position: relative;
    display: none;
  }

  .hero-slide.is-active {
    display: block;
  }

  .hero-content,
  .quick-search-panel,
  .ranking-layout,
  .two-col-hero,
  .detail-grid,
  .detail-body,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 56px 0 132px;
  }

  .hero-poster {
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: -86px;
  }

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

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

  .filter-bar,
  .search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar select {
    width: 100%;
  }

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

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

  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 36px;
  }

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

  .hero-thumbs,
  .category-grid,
  .movie-grid,
  .compact-grid,
  .categories-overview {
    grid-template-columns: 1fr;
  }

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

  .category-card-cover {
    min-height: 260px;
  }

  .rank-item {
    grid-template-columns: 34px 46px 1fr;
  }

  .rank-heat {
    display: none;
  }

  .detail-grid {
    gap: 24px;
  }

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