:root {
  color-scheme: light;
  --rose: #e11d48;
  --rose-dark: #be123c;
  --pink: #db2777;
  --purple: #7e22ce;
  --indigo: #4f46e5;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #fff1f2;
  --paper: #ffffff;
  --line: #ffe4e6;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(250, 245, 255, 0.95), rgba(253, 242, 248, 0.95));
  border-bottom: 1px solid rgba(255, 228, 230, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

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

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

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--purple));
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(225, 29, 72, 0.25);
}

.brand strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

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

.nav-link {
  display: inline-flex;
  height: 68px;
  align-items: center;
  color: #4b5563;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--rose);
  border-color: var(--rose);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: #fff;
  color: var(--rose);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid var(--line);
}

.mobile-nav.open {
  display: grid;
  gap: 12px;
}

.mobile-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 6px;
}

.mobile-category-links a {
  padding: 8px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--rose-dark);
  font-size: 13px;
}

.hero {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: linear-gradient(120deg, var(--rose), var(--pink));
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 28%, rgba(255, 255, 255, 0.22), transparent 22%), linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.12) 48%, rgba(0, 0, 0, 0.32));
}

.hero-content {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 340px;
  align-items: center;
  gap: 48px;
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffe4e6;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.02;
  max-width: 820px;
}

.hero h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 40px);
}

.hero p {
  max-width: 710px;
  margin: 0 0 30px;
  color: #ffe4e6;
  font-size: 20px;
  line-height: 1.8;
}

.hero-actions,
.detail-actions,
.search-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.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 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 18px 34px rgba(225, 29, 72, 0.26);
}

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

.primary-button.small {
  min-height: 42px;
  padding: 0 18px;
}

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-poster {
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
}

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

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

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

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

.search-panel {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.8fr);
  gap: 24px;
  align-items: center;
  margin-top: -42px;
  position: relative;
  z-index: 5;
  padding: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search-panel strong {
  display: block;
  font-size: 22px;
  margin-bottom: 4px;
}

.search-panel span,
.page-title-block span {
  color: var(--muted);
}

.search-row input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0 14px;
  outline: none;
  color: var(--ink);
}

.search-row input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

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

.soft-block {
  padding: 44px;
  margin-top: 70px;
  border-radius: 34px;
  background: linear-gradient(120deg, rgba(255, 228, 230, 0.9), rgba(243, 232, 255, 0.86));
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.section-head h2 {
  margin: 0;
  font-size: 32px;
}

.section-more {
  color: var(--rose);
  font-weight: 800;
}

.section-head.light h2,
.section-head.light .section-more {
  color: #fff;
}

.movie-grid {
  display: grid;
  gap: 18px;
}

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: block;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(255, 228, 230, 0.9);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card-link:hover {
  transform: translateY(-5px);
  border-color: rgba(225, 29, 72, 0.35);
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.14);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fdf2f8, #f5f3ff);
}

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

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

.badge-year,
.badge-type,
.rank-mark {
  position: absolute;
  top: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.badge-year {
  right: 10px;
  background: rgba(0, 0, 0, 0.68);
}

.badge-type {
  left: 10px;
  background: var(--rose);
}

.rank-mark {
  left: 10px;
  bottom: 10px;
  top: auto;
  min-width: 32px;
  text-align: center;
  background: linear-gradient(135deg, #f59e0b, var(--rose));
}

.movie-info {
  padding: 14px;
}

.meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.movie-info h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
  min-height: 43px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff1f2;
  color: var(--rose-dark);
  font-size: 12px;
}

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

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

.category-card {
  display: block;
  padding: 16px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.category-covers img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  width: 100%;
  border-radius: 12px;
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

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

.ranking-strip {
  margin-top: 70px;
  padding: 44px;
  border-radius: 34px;
  color: #fff;
  background: linear-gradient(120deg, var(--rose), var(--pink) 55%, var(--purple));
  box-shadow: var(--shadow);
}

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

.ranking-list-home a {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
}

.ranking-list-home span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--rose);
  border-radius: 10px;
  font-weight: 900;
}

.ranking-list-home em {
  color: #ffe4e6;
  font-style: normal;
}

.inner-page {
  padding: 42px 0 90px;
}

.page-title-block {
  margin-bottom: 26px;
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(120deg, rgba(255, 241, 242, 0.96), rgba(250, 245, 255, 0.96));
  border: 1px solid var(--line);
}

.page-title-block p {
  margin: 0 0 6px;
  color: var(--rose);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-title-block h1 {
  margin: 0 0 8px;
  font-size: 42px;
}

.rank-title {
  color: #fff;
  background: linear-gradient(120deg, var(--rose), var(--pink), var(--purple));
}

.rank-title p,
.rank-title span {
  color: #ffe4e6;
}

.filter-bar {
  position: sticky;
  top: 84px;
  z-index: 12;
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

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

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

.breadcrumb.light,
.breadcrumb.light a {
  color: #ffe4e6;
}

.detail-hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.36;
}

.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 1), rgba(17, 24, 39, 0.36) 54%, rgba(17, 24, 39, 0.74));
}

.detail-hero-inner {
  position: relative;
  padding: 36px 0 58px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  padding-top: 28px;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

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

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.05;
}

.detail-copy .lead {
  max-width: 860px;
  margin: 0 0 28px;
  color: #fce7f3;
  font-size: 20px;
  line-height: 1.8;
}

.detail-main {
  margin-top: -82px;
  position: relative;
  z-index: 3;
  padding-bottom: 80px;
}

.player-card {
  padding: 12px;
  border-radius: 30px;
  background: #111827;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.32);
}

.video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
}

.video-el {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.play-button {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.18), rgba(0, 0, 0, 0.42));
  transition: opacity 0.2s ease;
}

.play-button span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 18px 50px rgba(225, 29, 72, 0.38);
  font-size: 36px;
}

.video-player.playing .play-button {
  opacity: 0;
  pointer-events: none;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px;
  gap: 18px;
  margin-top: 26px;
}

.content-box {
  padding: 26px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.content-box h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.content-box p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

.side-meta dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 8px 12px;
  margin: 0 0 18px;
}

.side-meta dt {
  color: var(--muted);
}

.side-meta dd {
  margin: 0;
  font-weight: 700;
}

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

.site-footer {
  color: #d1d5db;
  background: linear-gradient(90deg, #111827, #1f2937);
  padding: 54px 0;
}

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

.footer-logo {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 12px;
}

.site-footer p {
  margin: 0;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
}

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

.footer-links a {
  color: #fda4af;
}

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

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

  .detail-content-grid {
    grid-template-columns: 1fr 1fr;
  }

  .side-meta {
    grid-column: span 2;
  }
}

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

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 26px;
    padding: 48px 0 76px;
  }

  .hero-poster {
    width: 180px;
    transform: none;
  }

  .hero-poster img {
    height: 250px;
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

  .movie-grid.six-col,
  .movie-grid.four-col,
  .category-grid,
  .category-grid.large,
  .ranking-list-home,
  .footer-grid,
  .detail-layout,
  .detail-content-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail-layout {
    align-items: start;
  }

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

  .filter-bar {
    grid-template-columns: 1fr;
    position: static;
  }

  .side-meta {
    grid-column: span 2;
  }
}

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

  .brand strong {
    font-size: 17px;
  }

  .brand small {
    font-size: 11px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero h2 {
    font-size: 25px;
  }

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

  .soft-block,
  .ranking-strip,
  .page-title-block {
    padding: 22px;
    border-radius: 24px;
  }

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

  .section-head h2,
  .page-title-block h1 {
    font-size: 30px;
  }

  .movie-grid.six-col,
  .movie-grid.four-col,
  .category-grid,
  .category-grid.large,
  .ranking-list-home,
  .footer-grid,
  .detail-layout,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .side-meta {
    grid-column: auto;
  }

  .detail-main {
    margin-top: -42px;
  }
}
