:root {
  --pink-50: #fdf2f8;
  --pink-100: #fce7f3;
  --pink-200: #fbcfe8;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-card: 0 18px 45px rgba(17, 24, 39, 0.10);
  --shadow-soft: 0 10px 30px rgba(236, 72, 153, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--pink-50) 0%, #ffffff 34%, #ffffff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(253, 242, 248, 0.94), rgba(255, 255, 255, 0.96), rgba(255, 241, 242, 0.94));
  border-bottom: 1px solid var(--pink-100);
  box-shadow: 0 4px 24px rgba(17, 24, 39, 0.05);
  backdrop-filter: blur(18px);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.28);
  font-size: 15px;
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: transparent;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
  -webkit-background-clip: text;
  background-clip: text;
  white-space: nowrap;
}

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

.nav-link,
.mobile-link {
  color: var(--gray-700);
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-field,
.filter-input {
  width: 260px;
  height: 42px;
  padding: 0 16px;
  color: var(--gray-800);
  background: #ffffff;
  border: 1px solid var(--pink-200);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.search-submit,
.primary-button {
  border: none;
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
  border-radius: 999px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.search-submit {
  height: 42px;
  padding: 0 18px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
}

.search-submit:hover,
.primary-button:hover {
  transform: translateY(-1px);
  filter: saturate(1.06);
  box-shadow: 0 16px 32px rgba(236, 72, 153, 0.24);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  font-weight: 700;
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  color: var(--gray-700);
  background: rgba(252, 231, 243, 0.75);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

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

.mobile-link {
  padding: 10px 12px;
  border-radius: 12px;
}

.mobile-link:hover,
.mobile-link.is-active {
  background: var(--pink-50);
}

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--gray-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: none;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  display: block;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 35%, rgba(236, 72, 153, 0.36), transparent 34%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 78px;
  max-width: 1240px;
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.hero-content p {
  max-width: 760px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.hero-tags,
.card-tags,
.detail-meta,
.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags {
  margin-bottom: 18px;
}

.hero-tags span {
  padding: 7px 13px;
  color: #ffffff;
  background: rgba(236, 72, 153, 0.9);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
}

.hero-meta {
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.hero-meta span {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
  transform: translateY(-50%) scale(1.04);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
}

.category-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--gray-100);
}

.category-strip-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
}

.category-chip {
  flex: 0 0 auto;
  padding: 10px 15px;
  color: var(--pink-600);
  background: linear-gradient(135deg, var(--pink-50), var(--rose-50));
  border: 1px solid var(--pink-100);
  border-radius: 999px;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-chip:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.content-section,
.page-shell,
.detail-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.content-section {
  padding-top: 58px;
}

.no-top-space {
  padding-top: 0;
}

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

.section-heading h2 {
  display: inline;
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--gray-500);
}

.section-icon {
  margin-right: 9px;
  font-size: 24px;
}

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

.card-grid {
  display: grid;
  gap: 22px;
}

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

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

.all-library-grid {
  align-items: start;
}

.horizontal-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(178px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 14px;
}

.movie-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--gray-100);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  border-color: var(--pink-200);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pink-50), var(--rose-50));
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.movie-card:hover .card-cover img {
  transform: scale(1.055);
}

.card-body {
  padding: 15px 15px 17px;
}

.card-tags span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  color: var(--pink-700, #be185d);
  background: linear-gradient(90deg, var(--pink-100), var(--rose-100));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.card-body h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.compact-card .card-body h3 {
  font-size: 16px;
}

.card-body h3 a:hover {
  color: var(--pink-600);
}

.card-desc {
  display: -webkit-box;
  margin: 0 0 12px;
  min-height: 44px;
  color: var(--gray-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--gray-500);
  font-size: 12px;
}

.card-meta span {
  padding: 3px 8px;
  background: var(--gray-50);
  border-radius: 999px;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.filter-panel {
  margin-bottom: 22px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid var(--pink-100);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(236, 72, 153, 0.06);
}

.large-filter .filter-input {
  width: min(620px, 100%);
}

.filter-count {
  color: var(--gray-500);
  font-weight: 700;
}

.page-shell,
.detail-shell {
  padding-top: 30px;
}

.page-hero {
  margin-bottom: 36px;
  padding: clamp(36px, 6vw, 68px);
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 20%, rgba(236, 72, 153, 0.16), transparent 28%),
    linear-gradient(135deg, #ffffff, var(--pink-50), var(--rose-50));
  border: 1px solid var(--pink-100);
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
}

.compact-page-hero {
  padding: 38px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--pink-600);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--gray-600);
  font-size: 18px;
}

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

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

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

.category-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--pink-100);
  border-radius: 26px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
}

.category-card-main {
  display: block;
  padding: 28px;
  background: linear-gradient(135deg, var(--pink-50), #ffffff);
}

.category-count {
  display: inline-grid;
  min-width: 50px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
  border-radius: 999px;
  font-weight: 900;
}

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

.category-card p {
  margin: 0;
  color: var(--gray-600);
}

.category-samples {
  display: grid;
  gap: 7px;
  padding: 0 28px 28px;
}

.category-samples a {
  color: var(--gray-600);
  font-size: 14px;
}

.category-samples a:hover {
  color: var(--pink-600);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 52px 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--gray-100);
  border-radius: 18px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  border-color: var(--pink-200);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.rank-number {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  border-radius: 999px;
  font-weight: 900;
}

.rank-row img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--pink-50);
}

.rank-title {
  min-width: 0;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info {
  color: var(--gray-500);
  font-size: 14px;
}

.player-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--gray-100);
  border-radius: 30px;
  box-shadow: var(--shadow-card);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.28), transparent 32%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.24));
  border: none;
  cursor: pointer;
  text-align: center;
}

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

.play-circle {
  width: 76px;
  height: 76px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  border-radius: 999px;
  box-shadow: 0 20px 50px rgba(236, 72, 153, 0.35);
  font-size: 28px;
}

.player-overlay strong {
  max-width: 760px;
  font-size: clamp(24px, 4vw, 46px);
  line-height: 1.1;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.player-info {
  padding: clamp(24px, 4vw, 36px);
}

.player-info h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: -0.05em;
}

.player-info p {
  max-width: 920px;
  margin: 0 0 18px;
  color: var(--gray-600);
  font-size: 18px;
}

.detail-meta span {
  padding: 7px 12px;
  color: var(--pink-700, #be185d);
  background: linear-gradient(90deg, var(--pink-100), var(--rose-100));
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
}

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

.poster-panel,
.detail-content {
  background: #ffffff;
  border: 1px solid var(--gray-100);
  border-radius: 26px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
}

.poster-panel {
  overflow: hidden;
}

.poster-panel img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--pink-50);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px;
}

.detail-content {
  padding: clamp(24px, 4vw, 34px);
}

.detail-content section + section {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--gray-100);
}

.detail-content h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.detail-content p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
  text-align: justify;
}

.review-box {
  padding: 22px;
  background: linear-gradient(135deg, var(--pink-50), var(--rose-50));
  border-radius: 20px;
}

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

.site-footer {
  margin-top: 72px;
  background: linear-gradient(180deg, var(--gray-50), var(--gray-100));
  border-top: 1px solid var(--gray-200);
}

.footer-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 34px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.site-footer p {
  margin: 0;
  color: var(--gray-600);
}

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

.footer-links a {
  color: var(--gray-600);
}

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

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--gray-500);
  border-top: 1px solid var(--gray-200);
  font-size: 14px;
}

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

@media (max-width: 1080px) {
  .desktop-nav {
    gap: 14px;
  }

  .header-search .search-field {
    width: 190px;
  }

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

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

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

  .site-header-inner {
    height: 64px;
  }

  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .mobile-search {
    align-items: stretch;
  }

  .mobile-search .search-field {
    width: 100%;
  }

  .hero-slider {
    height: 76vh;
    min-height: 540px;
  }

  .hero-content {
    padding-bottom: 74px;
  }

  .hero-arrow {
    display: none;
  }

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

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

  .poster-panel {
    max-width: 340px;
  }

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

  .rank-info {
    grid-column: 3;
  }
}

@media (max-width: 560px) {
  .site-header-inner,
  .mobile-panel,
  .content-section,
  .page-shell,
  .detail-shell,
  .footer-grid,
  .footer-bottom,
  .category-strip-inner,
  .hero-content {
    width: min(100% - 24px, 1240px);
  }

  .logo-text {
    font-size: 20px;
  }

  .hero-slider {
    min-height: 520px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ghost-button,
  .primary-button {
    justify-content: center;
  }

  .content-section {
    padding-top: 40px;
  }

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

  .card-grid,
  .featured-grid,
  .compact-grid {
    gap: 14px;
  }

  .card-body {
    padding: 12px;
  }

  .card-desc {
    min-height: auto;
  }

  .page-hero,
  .compact-page-hero,
  .player-info,
  .detail-content {
    padding: 24px;
    border-radius: 22px;
  }

  .filter-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-input {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
