:root {
  color-scheme: light;
  --site-pink: #ec4899;
  --site-rose: #f43f5e;
  --site-bg: #fff7fb;
  --site-text: #111827;
  --site-muted: #6b7280;
  --site-card: #ffffff;
  --site-border: rgba(244, 114, 182, 0.16);
  --site-shadow: 0 18px 45px rgba(190, 24, 93, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(244, 114, 182, 0.18);
}

.header-inner {
  width: min(1180px, 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: 800;
  color: #111827;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-pink), var(--site-rose));
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.28);
  font-size: 13px;
}

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

.nav-link,
.mobile-nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #be185d;
  background: #fdf2f8;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f9fafb;
  border: 1px solid #fce7f3;
  border-radius: 999px;
  padding: 5px;
}

.header-search input {
  width: 190px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 8px 10px;
  color: #374151;
}

.header-search button,
.search-box-row button {
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--site-pink), var(--site-rose));
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
  color: #be185d;
  background: #fdf2f8;
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--site-shadow);
}

.mobile-menu.is-open {
  display: grid;
  gap: 8px;
}

.hero-carousel {
  position: relative;
  height: 60vh;
  min-height: 520px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-background,
.hero-background img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-background img {
  object-fit: cover;
  opacity: 0.46;
  transform: scale(1.02);
}

.hero-background::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 18% 50%, rgba(236, 72, 153, 0.42), transparent 32%);
}

.hero-shade {
  z-index: 2;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.56) 44%, rgba(0, 0, 0, 0.14) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-bottom: 86px;
  color: #ffffff;
}

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

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

.hero-content h1 {
  max-width: 760px;
  margin: 16px 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.hero-content p {
  max-width: 700px;
  margin: 0 0 22px;
  color: #f3f4f6;
  font-size: 19px;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta {
  margin-bottom: 24px;
  color: #ffffff;
  font-weight: 600;
}

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

.hero-button,
.side-link,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.hero-button {
  min-width: 150px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--site-pink), var(--site-rose));
  box-shadow: 0 16px 30px rgba(244, 63, 94, 0.34);
}

.hero-button:hover,
.side-link:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.52);
  font-size: 35px;
  line-height: 1;
  cursor: pointer;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

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

.page-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.content-section,
.split-section,
.search-panel,
.ranking-list-section {
  margin-bottom: 64px;
}

.no-top-gap {
  margin-top: 0;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title h2,
.compact-title h2 {
  margin: 0;
  color: #111827;
  font-size: 28px;
  font-weight: 900;
}

.section-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-pink), var(--site-rose));
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.24);
}

.section-more,
.side-link {
  padding: 10px 18px;
  color: #be185d;
  background: #fdf2f8;
}

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--site-card);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: transform 250ms ease, box-shadow 250ms ease;
}

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

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

.card-cover {
  background: linear-gradient(135deg, #ffe4ef, #fff1f7 45%, #fce7f3);
}

.card-cover img.is-missing,
.poster-card img.is-missing,
.hero-background img.is-missing,
.category-tile img.is-missing,
.category-card-image img.is-missing,
.ranking-thumb img.is-missing {
  display: none;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  color: #db2777;
  background: #fdf2f8;
  font-size: 12px;
  font-weight: 700;
}

.large-tag {
  padding: 8px 12px;
  font-size: 13px;
}

.category-grid,
.category-overview-grid {
  display: grid;
  gap: 18px;
}

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

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

.category-tile,
.category-card-large {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(190, 24, 93, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

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

.category-tile {
  min-height: 170px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: #ffffff;
  isolation: isolate;
}

.category-tile img,
.category-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  z-index: -2;
}

.category-tile::before,
.category-card-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.78));
}

.category-tile h3,
.category-card-content h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile p,
.category-card-content p {
  margin: 0;
  line-height: 1.6;
}

.category-card-large {
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 230px;
}

.category-card-image {
  position: relative;
  min-height: 230px;
  background: linear-gradient(135deg, #fce7f3, #fff1f7);
  isolation: isolate;
}

.category-card-content {
  padding: 26px;
}

.category-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-preview span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #be185d;
  background: #fdf2f8;
  font-size: 12px;
  font-weight: 700;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}

.rank-panel,
.detail-card,
.facts-card,
.search-panel,
.filter-panel {
  border: 1px solid var(--site-border);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(190, 24, 93, 0.07);
}

.rank-panel {
  padding: 24px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #fff7fb;
}

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

.rank-row strong {
  display: block;
  font-size: 14px;
}

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

.page-hero {
  margin-bottom: 32px;
  padding: 42px;
  border-radius: 30px;
  color: #ffffff;
  background: radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.24), transparent 24%), linear-gradient(135deg, #db2777, #f43f5e 52%, #fb7185);
  box-shadow: var(--site-shadow);
}

.page-hero h1 {
  margin: 10px 0 10px;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #fff1f2;
  font-size: 18px;
  line-height: 1.8;
}

.eyebrow {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 800;
}

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

.breadcrumb a:hover {
  color: #db2777;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 190px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
}

.filter-panel input,
.filter-panel select,
.search-box-row input,
.search-filter-row select {
  width: 100%;
  border: 1px solid #fbcfe8;
  border-radius: 16px;
  outline: 0;
  background: #fff7fb;
  padding: 13px 14px;
  color: #374151;
}

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: var(--site-shadow);
  aspect-ratio: 16 / 9;
}

.video-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.58));
  transition: opacity 180ms ease, visibility 180ms ease;
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--site-pink), var(--site-rose));
  box-shadow: 0 20px 42px rgba(244, 63, 94, 0.34);
  font-size: 25px;
  padding-left: 4px;
}

.detail-card {
  margin-top: 24px;
  padding: 30px;
}

.detail-title-block h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.detail-meta-line,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-meta-line span {
  color: #6b7280;
  font-weight: 700;
}

.detail-tags {
  margin: 22px 0;
}

.detail-section {
  border-top: 1px solid #fce7f3;
  padding-top: 22px;
  margin-top: 22px;
}

.detail-section h2,
.facts-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 900;
}

.detail-section p {
  margin: 0;
  color: #374151;
  line-height: 2;
  text-align: justify;
}

.lead-text {
  font-size: 18px;
  color: #111827 !important;
}

.review-box {
  border-radius: 20px;
  border-top: 0;
  padding: 24px;
  background: linear-gradient(135deg, #fff1f7, #ffffff);
}

.detail-side {
  display: grid;
  gap: 18px;
}

.poster-card {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #ffe4ef, #fff1f7);
  box-shadow: var(--site-shadow);
}

.poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facts-card {
  padding: 24px;
}

.facts-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.facts-card li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #fce7f3;
}

.facts-card li span {
  color: #6b7280;
}

.facts-card li strong {
  text-align: right;
}

.side-link {
  width: 100%;
  margin-top: 20px;
}

.ranking-list-section {
  display: grid;
  gap: 14px;
}

.ranking-card {
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(190, 24, 93, 0.07);
}

.ranking-link {
  display: grid;
  grid-template-columns: 70px 90px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
}

.ranking-number {
  color: #db2777;
  font-size: 25px;
  font-weight: 900;
}

.ranking-thumb {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 2 / 3;
  background: #fff1f7;
}

.ranking-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-info h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
}

.ranking-info p {
  margin: 0 0 10px;
  color: #4b5563;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ranking-info div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ranking-info span {
  border-radius: 999px;
  padding: 5px 9px;
  color: #be185d;
  background: #fdf2f8;
  font-size: 12px;
  font-weight: 700;
}

.search-panel {
  padding: 22px;
}

.search-box-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 12px;
}

.search-filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.search-results {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.search-empty {
  grid-column: 1 / -1;
  border-radius: 20px;
  padding: 32px;
  color: #6b7280;
  text-align: center;
  background: #fff7fb;
}

.site-footer {
  border-top: 1px solid rgba(244, 114, 182, 0.16);
  background: #ffffff;
}

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

.footer-inner p {
  margin: 8px 0 0;
}

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

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

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

  .mobile-toggle {
    display: inline-flex;
  }

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

  .split-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-side {
    grid-template-columns: 220px 1fr;
  }
}

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

  .hero-carousel {
    min-height: 560px;
    height: 72vh;
  }

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

  .hero-content p {
    font-size: 16px;
  }

  .hero-arrow {
    display: none;
  }

  .page-main {
    width: min(100% - 22px, 1180px);
    padding-top: 28px;
  }

  .page-hero {
    padding: 28px;
    border-radius: 24px;
  }

  .category-grid,
  .category-overview-grid,
  .search-results {
    grid-template-columns: 1fr;
  }

  .filter-panel,
  .search-box-row,
  .search-filter-row,
  .ranking-link,
  .category-card-large,
  .detail-side {
    grid-template-columns: 1fr;
  }

  .ranking-link {
    align-items: start;
  }

  .ranking-thumb,
  .poster-card {
    max-width: 220px;
  }

  .detail-card {
    padding: 22px;
  }

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