* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #111827;
  background: linear-gradient(180deg, #fdf2f8 0%, #ffffff 46%, #faf5ff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Helvetica, Arial, sans-serif;
}

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

img,
video {
  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);
  backdrop-filter: blur(16px);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #db2777;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #db2777, #9333ea);
  box-shadow: 0 14px 30px rgba(219, 39, 119, 0.24);
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #be185d;
  background: #fce7f3;
}

.header-search {
  width: 300px;
  display: flex;
  align-items: center;
  border: 1px solid #fbcfe8;
  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(219, 39, 119, 0.08);
}

.header-search input {
  width: 100%;
  min-width: 0;
  padding: 10px 14px;
  border: 0;
  outline: 0;
  color: #374151;
}

.header-search button,
.big-search button,
.search-page-form button {
  border: 0;
  color: #ffffff;
  background: #db2777;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fce7f3;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 20px;
  height: 2px;
  background: #be185d;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
}

.mobile-nav a {
  display: block;
  padding: 12px;
  border-radius: 12px;
  color: #374151;
  font-weight: 700;
}

.mobile-nav a:hover {
  background: #fdf2f8;
  color: #db2777;
}

.mobile-nav.open {
  display: block;
}

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

.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-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(190, 24, 93, 0.94), rgba(126, 34, 206, 0.82) 48%, rgba(17, 24, 39, 0.72));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 44px;
  align-items: center;
  color: #ffffff;
}

.hero-copy {
  max-width: 780px;
  animation: fadeUp 0.8s ease both;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #db2777;
  background: #fce7f3;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hero-copy .eyebrow {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-copy h1 {
  margin: 20px 0 12px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 800;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-tags span,
.tag-row span,
.detail-tags a {
  color: #be185d;
  background: #fce7f3;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

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

.primary-button,
.ghost-button,
.page-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #db2777;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.16);
}

.ghost-button,
.page-actions a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.primary-button.full {
  width: 100%;
  color: #ffffff;
  background: linear-gradient(135deg, #db2777, #9333ea);
}

.hero-poster {
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(17, 24, 39, 0.46);
  transform: rotate(2deg);
}

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

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

.hero-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  cursor: pointer;
}

.hero-dots button.active {
  width: 38px;
  background: #ffffff;
}

.content-section {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

.intro-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  gap: 28px;
  align-items: center;
}

.intro-strip h2,
.section-heading h2,
.page-hero h1,
.detail-main h1 {
  margin: 10px 0 0;
  color: #1f2937;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.intro-strip h2,
.section-heading h2 {
  font-size: clamp(26px, 3vw, 42px);
}

.intro-strip p,
.page-hero p,
.detail-lead {
  max-width: 780px;
  color: #6b7280;
  font-size: 17px;
  line-height: 1.85;
}

.big-search,
.search-page-form {
  display: flex;
  border: 1px solid #fbcfe8;
  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(219, 39, 119, 0.12);
}

.big-search input,
.search-page-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 16px 20px;
}

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

.section-heading.centered {
  justify-content: center;
  text-align: center;
}

.section-heading a {
  color: #db2777;
  font-weight: 900;
}

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

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

.movie-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 60px rgba(17, 24, 39, 0.16);
}

.card-link {
  display: block;
  height: 100%;
}

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

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: #ffffff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.poster-shade p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.movie-card:hover .poster-shade {
  opacity: 1;
  transform: translateY(0);
}

.region-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #ffffff;
  background: #ec4899;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.rank-badge {
  left: 12px;
  right: auto;
  background: #9333ea;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  min-height: 48px;
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p {
  min-height: 44px;
  margin: 0 0 12px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.small-card .card-body {
  padding: 14px;
}

.small-card .card-body h3 {
  min-height: 44px;
  font-size: 14px;
}

.soft-section {
  padding-top: 22px;
}

.category-overview {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1280px) / 2));
  padding-right: max(16px, calc((100% - 1280px) / 2));
  background: linear-gradient(90deg, rgba(252, 231, 243, 0.62), rgba(243, 232, 255, 0.62));
}

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

.category-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(17, 24, 39, 0.14);
}

.category-art {
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #fce7f3, #f3e8ff);
}

.category-art img {
  width: 31%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.15);
}

.category-card h3 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 20px;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  color: #6b7280;
  line-height: 1.7;
}

.ranking-section {
  padding-top: 70px;
}

.ranking-panel,
.ranking-highlight {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.rank-row {
  display: grid;
  grid-template-columns: 44px 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.07);
}

.rank-number {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #db2777, #9333ea);
  border-radius: 12px;
  font-weight: 900;
}

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

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

.rank-text strong,
.rank-text em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-text strong {
  color: #1f2937;
  font-weight: 900;
}

.rank-text em {
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
  font-style: normal;
}

.rank-views {
  color: #db2777;
  font-weight: 900;
}

.page-hero {
  min-height: 300px;
  display: flex;
  align-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #db2777, #7e22ce);
}

.page-hero > div {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

.page-hero .section-kicker {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(34px, 4.5vw, 58px);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.9);
}

.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.filter-panel input {
  width: 100%;
  border: 1px solid #fbcfe8;
  border-radius: 999px;
  outline: 0;
  padding: 13px 16px;
}

.filter-buttons,
.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-buttons button,
.quick-tags button {
  border: 0;
  color: #be185d;
  background: #fce7f3;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.filter-buttons button.active,
.quick-tags button:hover {
  color: #ffffff;
  background: #db2777;
}

.search-hero .search-page-form {
  max-width: 720px;
  margin-top: 26px;
}

.search-status {
  margin: 22px 0;
  color: #374151;
  font-size: 22px;
  font-weight: 900;
}

.detail-layout {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
  padding: 34px 0 70px;
}

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

.breadcrumb a {
  color: #db2777;
  font-weight: 800;
}

.detail-main h1 {
  font-size: clamp(32px, 4vw, 54px);
}

.detail-lead {
  margin: 14px 0 24px;
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.25);
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: #000000;
  cursor: pointer;
}

.player-start img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.player-start.hidden {
  display: none;
}

.play-circle {
  position: absolute;
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border-radius: 50%;
  color: #db2777;
  background: #ffffff;
  font-size: 36px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.player-message {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 3;
  transform: translateX(-50%);
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
}

.article-panel,
.side-card {
  margin-top: 26px;
  padding: 24px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.article-panel h2,
.side-card h2 {
  margin: 0 0 14px;
  color: #1f2937;
  font-size: 22px;
  font-weight: 900;
}

.article-panel p {
  margin: 0 0 22px;
  color: #374151;
  font-size: 16px;
  line-height: 1.95;
}

.detail-side {
  align-self: start;
  position: sticky;
  top: 94px;
}

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

.info-list {
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}

.info-list dt {
  color: #9ca3af;
  font-weight: 800;
}

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

.detail-tags {
  margin-top: 16px;
}

.mini-rank .rank-row {
  grid-template-columns: 34px 46px minmax(0, 1fr);
  box-shadow: none;
  border: 1px solid #f3f4f6;
  margin-top: 10px;
}

.mini-rank .rank-row img {
  width: 46px;
  height: 62px;
}

.mini-rank .rank-views {
  display: none;
}

.related-section {
  width: 100%;
  padding-bottom: 0;
}

.site-footer {
  margin-top: 40px;
  background: #111827;
  color: #d1d5db;
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0;
}

.footer-logo {
  color: #f9a8d4;
  font-size: 20px;
}

.footer-inner p {
  margin: 8px 0 0;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 800;
}

.hidden-card {
  display: none !important;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .header-search {
    width: 240px;
  }

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

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

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

  .menu-button {
    display: inline-flex;
    margin-left: auto;
  }

  .hero-carousel {
    height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 38px 0 70px;
  }

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

  .intro-strip,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }

  .ranking-panel,
  .ranking-highlight {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .site-logo span:last-child {
    font-size: 15px;
  }

  .hero-carousel {
    height: 680px;
  }

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

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

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

  .primary-button,
  .ghost-button,
  .page-actions a {
    width: 100%;
  }

  .content-section {
    width: min(100% - 24px, 1280px);
    padding: 38px 0;
  }

  .movie-grid,
  .compact-grid,
  .rank-grid,
  .category-grid,
  .large-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .card-body {
    padding: 12px;
  }

  .card-body h3 {
    min-height: 42px;
    font-size: 14px;
  }

  .card-body p,
  .tag-row {
    display: none;
  }

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

  .rank-row img {
    width: 48px;
    height: 64px;
  }

  .rank-views {
    display: none;
  }

  .page-hero > div,
  .detail-layout {
    width: min(100% - 24px, 1280px);
  }

  .player-frame {
    border-radius: 18px;
  }

  .play-circle {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
