:root {
  --color-pink: #ec4899;
  --color-rose: #f43f5e;
  --color-soft: #fff1f2;
  --color-soft-2: #fdf2f8;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-border: #f3d5df;
  --shadow-card: 0 18px 45px rgba(244, 63, 94, 0.14);
  --shadow-hover: 0 28px 70px rgba(236, 72, 153, 0.22);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: #ffffff;
}

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

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

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: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.08);
}

.site-header__inner {
  width: min(1180px, calc(100% - 32px));
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-pink), var(--color-rose));
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.32);
}

.brand__text strong,
.footer-brand strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  background: linear-gradient(90deg, var(--color-pink), var(--color-rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--color-pink);
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
}

.header-search input {
  width: 240px;
  border: 0;
  outline: 0;
  padding: 11px 12px 11px 18px;
}

.header-search button,
.mobile-search button {
  border: 0;
  padding: 10px 16px;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(90deg, var(--color-pink), var(--color-rose));
}

.mobile-menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: #374151;
  font-size: 30px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid #f3f4f6;
  padding: 16px;
  background: #ffffff;
}

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

.mobile-search {
  display: flex;
  margin-bottom: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  overflow: hidden;
}

.mobile-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 12px;
}

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

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff7fb;
}

.hero-section {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4ec 0%, #ffffff 48%, #fff1f2 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image: radial-gradient(rgba(236, 72, 153, 0.18) 1px, transparent 1px);
  background-size: 28px 28px;
}

.hero-shell {
  position: relative;
  z-index: 1;
  min-height: 640px;
  display: flex;
  align-items: center;
}

.hero-carousel {
  position: relative;
  width: 100%;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: center;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeIn 0.5s ease both;
}

.hero-slide__content h2 {
  max-width: 760px;
  margin: 16px 0;
  font-size: clamp(42px, 8vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  background: linear-gradient(90deg, var(--color-pink), var(--color-rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-slide__content p {
  max-width: 720px;
  margin: 0 0 26px;
  color: #4b5563;
  font-size: 20px;
  line-height: 1.85;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-pink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-slide__meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-slide__meta span,
.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #9f1239;
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  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;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-ghost {
  color: #be123c;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.hero-slide__poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(135deg, #fce7f3, #fff1f2);
  box-shadow: var(--shadow-hover);
  transform: rotate(2deg);
}

.hero-slide__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.45));
}

.hero-slide__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: -72px;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 42px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  color: transparent;
  cursor: pointer;
  background: rgba(236, 72, 153, 0.22);
}

.hero-dots button.is-active {
  background: linear-gradient(90deg, var(--color-pink), var(--color-rose));
}

.section {
  padding: 72px 0;
}

.section-white {
  background: #ffffff;
}

.section-soft {
  background: linear-gradient(180deg, #ffffff, #fff1f2);
}

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

.section-head h1,
.section-head h2,
.page-hero h1 {
  margin: 8px 0 10px;
  color: #1f2937;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
}

.section-head p,
.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--color-muted);
  line-height: 1.8;
}

.text-link {
  color: var(--color-pink);
  font-weight: 800;
}

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

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff7fb, #ffffff);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card__link {
  display: block;
  height: 100%;
}

.movie-card__cover {
  position: relative;
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #fff1f2);
}

.movie-card--mini .movie-card__cover {
  aspect-ratio: 4 / 3;
}

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

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

.movie-card__type,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--color-pink), var(--color-rose));
}

.movie-card__type {
  right: 12px;
}

.rank-badge {
  left: 12px;
}

.movie-card__body {
  padding: 18px;
}

.movie-card__body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-card__line {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

.movie-card__meta span:first-child {
  color: #f59e0b;
  font-weight: 800;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #be123c;
  font-size: 12px;
  background: #ffe4ec;
}

.tag-row--large span {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
}

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

.category-tile,
.category-overview-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.category-tile__thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: #fff1f2;
}

.category-tile h3,
.category-overview-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

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

.category-tile strong {
  color: var(--color-pink);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 52px 128px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.rank-row__num {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-pink), var(--color-rose));
}

.rank-row img {
  width: 128px;
  height: 86px;
  object-fit: cover;
  border-radius: 14px;
  background: #fff1f2;
}

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

.rank-row__content strong,
.rank-row__content small,
.rank-row__content em {
  display: block;
}

.rank-row__content strong {
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-row__content small {
  color: var(--color-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-row__content em {
  margin-top: 6px;
  color: #9ca3af;
  font-style: normal;
  font-size: 12px;
}

.page-hero {
  padding: 88px 0;
  background: linear-gradient(135deg, #ffe4ec, #ffffff 52%, #fff1f2);
}

.page-hero--compact {
  padding: 54px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #9ca3af;
  font-size: 14px;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 160px auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 26px;
  padding: 16px;
  border-radius: 22px;
  background: #fff7fb;
  border: 1px solid #ffe4ec;
}

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  border: 1px solid #fbcfe8;
  border-radius: 999px;
  outline: 0;
  padding: 0 16px;
  background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--color-pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.filter-count {
  color: #be123c;
  font-weight: 800;
  white-space: nowrap;
}

.category-overview-list {
  display: grid;
  gap: 28px;
  padding: 54px 0;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  filter: blur(16px);
  transform: scale(1.08);
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.58));
}

.detail-hero__inner {
  position: relative;
  z-index: 1;
  padding: 48px 0 60px;
}

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

.detail-poster {
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  background: #fff1f2;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

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

.detail-info h1 {
  margin: 14px 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
}

.detail-one-line {
  max-width: 800px;
  color: #f9fafb;
  font-size: 20px;
  line-height: 1.8;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow-hover);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.36), rgba(0, 0, 0, 0.72));
}

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

.play-icon {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--color-pink), var(--color-rose));
  box-shadow: 0 18px 45px rgba(236, 72, 153, 0.42);
}

.player-overlay strong {
  font-size: 22px;
}

.player-overlay small {
  color: #fecdd3;
}

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

.prose-card,
.info-card {
  padding: 26px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.prose-card h2,
.info-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.prose-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.95;
}

.info-card dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
}

.info-card dt {
  color: #9ca3af;
}

.info-card dd {
  margin: 0;
  font-weight: 700;
}

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

.site-footer {
  color: #e5e7eb;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 40px;
  padding: 48px 0;
}

.footer-desc,
.footer-brand p {
  color: #9ca3af;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
}

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

.footer-links a {
  color: #9ca3af;
}

.footer-links a:hover {
  color: #f9a8d4;
}

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  text-align: center;
  font-size: 14px;
}

[data-movie-card].is-hidden {
  display: none;
}

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

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

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

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

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

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

  .hero-slide,
  .hero-slide.is-active {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 42px 0 96px;
  }

  .hero-slide__poster {
    width: min(320px, 100%);
    margin: 0 auto;
  }

  .hero-dots {
    bottom: 34px;
  }

  .section-head,
  .category-overview-card__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-grid,
  .rank-grid,
  .footer-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(280px, 100%);
  }

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

@media (max-width: 620px) {
  .site-header__inner {
    height: 72px;
  }

  .brand__mark {
    width: 42px;
    height: 42px;
  }

  .brand__text strong {
    font-size: 20px;
  }

  .hero-section,
  .hero-shell {
    min-height: auto;
  }

  .hero-slide__content h2 {
    font-size: 40px;
  }

  .hero-slide__content p,
  .detail-one-line {
    font-size: 17px;
  }

  .movie-grid--featured,
  .movie-grid--all,
  .movie-grid--mini {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 42px 92px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-row__num {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .rank-row img {
    width: 92px;
    height: 66px;
  }

  .section {
    padding: 50px 0;
  }

  .page-hero {
    padding: 52px 0;
  }
}
