:root {
  --site-pink: #db2777;
  --site-rose: #f43f5e;
  --site-pink-soft: #fdf2f8;
  --site-ink: #1f2937;
  --site-muted: #6b7280;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: #fff7fb;
  color: var(--site-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  display: block;
}

.site-header {
  backdrop-filter: blur(16px);
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--site-pink), var(--site-rose));
  color: #fff;
  font-size: .8rem;
  box-shadow: 0 10px 20px rgba(219, 39, 119, .25);
}

.footer-logo {
  width: 1.7rem;
  height: 1.7rem;
}

.site-search {
  border: 1px solid #fbcfe8;
  background: rgba(255, 255, 255, .85);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(244, 63, 94, .08);
}

.site-search input,
.local-filter input,
.hero-search-form input {
  outline: none;
  border: 0;
  background: transparent;
  color: #374151;
}

.site-search input {
  width: 15rem;
  padding: .65rem 1rem;
  font-size: .9rem;
}

.site-search button,
.local-filter button,
.hero-search-form button {
  border: 0;
  background: linear-gradient(135deg, var(--site-pink), var(--site-rose));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.site-search button {
  padding: .65rem 1rem;
}

.site-search button:hover,
.local-filter button:hover,
.hero-search-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(219, 39, 119, .2);
}

.mobile-toggle {
  color: #374151;
  font-size: 1.6rem;
  line-height: 1;
}

.mobile-menu {
  display: none;
}

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

.mobile-search {
  width: 100%;
}

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

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  padding: 5rem 0 4rem;
  background: linear-gradient(115deg, #ffe4ef, #fff1f2 48%, #fdf2f8);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: .38;
}

.hero-glow-one {
  width: 18rem;
  height: 18rem;
  background: #f9a8d4;
  left: 4rem;
  top: 3rem;
}

.hero-glow-two {
  width: 24rem;
  height: 24rem;
  background: #fb7185;
  right: -6rem;
  bottom: 2rem;
}

.hero-frame {
  position: relative;
  min-height: 440px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 3rem;
  align-items: center;
  opacity: 0;
  transform: translateY(16px) scale(.98);
  pointer-events: none;
  transition: opacity .6s ease, transform .6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.hero-copy {
  max-width: 720px;
}

.hero-kicker,
.sub-kicker {
  display: inline-flex;
  align-items: center;
  padding: .45rem .9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  color: var(--site-pink);
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(219, 39, 119, .08);
  margin-bottom: 1.2rem;
}

.hero-copy h1,
.sub-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 1.05;
  font-weight: 900;
  color: #1f2937;
  letter-spacing: -.04em;
  margin-bottom: 1.25rem;
}

.hero-desc,
.sub-hero p {
  color: #4b5563;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.85;
  max-width: 720px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1.4rem 0 2rem;
}

.hero-tags span {
  padding: .45rem .75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: #9d174d;
  font-size: .9rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-primary,
.hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.6rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .25s ease, box-shadow .25s ease;
}

.hero-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--site-pink), var(--site-rose));
  box-shadow: 0 16px 30px rgba(219, 39, 119, .25);
}

.hero-secondary {
  color: #be185d;
  background: rgba(255, 255, 255, .85);
  border: 1px solid #fbcfe8;
}

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

.hero-poster {
  position: relative;
  display: block;
  width: min(100%, 360px);
  justify-self: center;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 35px 80px rgba(136, 19, 55, .25);
  transform: rotate(2deg);
}

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

.hero-poster:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent 50%);
}

.hero-play,
.related-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 4.2rem;
  height: 4.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(219, 39, 119, .9);
  color: #fff;
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
}

.related-play {
  width: 2.2rem;
  height: 2.2rem;
  font-size: .8rem;
  opacity: 0;
  transition: opacity .25s ease;
}

.group:hover .related-play {
  opacity: 1;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: .55rem;
  margin-top: 1.5rem;
}

.hero-dot {
  width: .75rem;
  height: .75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(219, 39, 119, .25);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.hero-dot.is-active {
  width: 2.4rem;
  background: var(--site-pink);
}

.hero-search-panel {
  max-width: 900px;
  margin: 2rem auto 0;
  padding: 1rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(251, 207, 232, .9);
  box-shadow: 0 20px 60px rgba(219, 39, 119, .12);
  backdrop-filter: blur(16px);
}

.hero-search-form,
.local-filter {
  display: flex;
  gap: .75rem;
}

.hero-search-form input,
.local-filter input {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid #fbcfe8;
  border-radius: 999px;
  padding: .9rem 1.2rem;
}

.hero-search-form button,
.local-filter button {
  border-radius: 999px;
  padding: .9rem 1.4rem;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: .9rem;
}

.hero-links a {
  color: #be185d;
  font-weight: 700;
  font-size: .92rem;
}

.section-dot {
  color: var(--site-pink);
}

.category-tile {
  min-height: 10rem;
}

.category-icon {
  color: #fff;
}

.card-poster img {
  background: linear-gradient(135deg, #fce7f3, #ffe4e6);
}

.card-playline {
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
}

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

.rank-badge {
  position: absolute;
  left: .5rem;
  top: .5rem;
  z-index: 2;
  min-width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #e11d48);
  color: #fff;
  font-weight: 900;
  font-size: .78rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .24);
}

.ranking-panel {
  display: grid;
  gap: .6rem;
}

.ranking-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, .75);
  color: #374151;
  transition: transform .2s ease, background .2s ease;
}

.ranking-row:hover {
  transform: translateX(4px);
  background: #fff;
}

.ranking-num {
  color: var(--site-pink);
  font-weight: 900;
}

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

.ranking-meta {
  color: #6b7280;
  font-size: .86rem;
}

.sub-hero {
  position: relative;
  padding: 5rem 0 4rem;
  background: linear-gradient(115deg, #ffe4ef, #fff1f2 48%, #fdf2f8);
  overflow: hidden;
}

.sub-hero:before,
.sub-hero:after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: .22;
}

.sub-hero:before {
  width: 18rem;
  height: 18rem;
  left: 5%;
  top: 15%;
  background: #f472b6;
}

.sub-hero:after {
  width: 22rem;
  height: 22rem;
  right: -5%;
  bottom: -10%;
  background: #fb7185;
}

.sub-hero .container {
  position: relative;
  z-index: 1;
}

.local-filter {
  max-width: 760px;
  margin-top: 2rem;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 15px 45px rgba(244, 63, 94, .08);
  border: 1px solid #fce7f3;
}

.category-cover {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(135deg, #db2777, #fb7185);
  color: #fff;
  font-weight: 900;
  font-size: 1.25rem;
  text-align: center;
}

.category-overview-body {
  padding: 1.25rem;
}

.category-overview-body h2 {
  font-size: 1.25rem;
  font-weight: 900;
  color: #1f2937;
  margin-bottom: .5rem;
}

.category-overview-body p {
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.category-samples a {
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: .35rem .65rem;
  border-radius: 999px;
  background: #fdf2f8;
  color: #be185d;
  font-size: .82rem;
  font-weight: 700;
}

.detail-main {
  color: #e5e7eb;
}

.detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  color: #9ca3af;
  margin-bottom: 1.25rem;
  font-size: .95rem;
}

.detail-breadcrumb a {
  color: #f9a8d4;
}

.player-shell {
  border: 1px solid rgba(255, 255, 255, .08);
}

.movie-player video {
  display: block;
  background: #000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, .08), rgba(0, 0, 0, .5));
  cursor: pointer;
  transition: opacity .25s ease, visibility .25s ease;
}

.player-overlay span {
  width: 5rem;
  height: 5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--site-pink), var(--site-rose));
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, .38);
  padding-left: .2rem;
}

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

.detail-article h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  font-weight: 900;
  margin-bottom: 1rem;
}

.detail-article h2 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 1.6rem 0 .65rem;
}

.detail-article p {
  color: #d1d5db;
  line-height: 1.9;
}

.detail-article .detail-one {
  color: #fbcfe8;
  font-size: 1.08rem;
}

.detail-article span {
  padding: .4rem .7rem;
  border-radius: 999px;
  background: rgba(219, 39, 119, .18);
  color: #fbcfe8;
  font-size: .86rem;
  font-weight: 700;
}

.related-box {
  border: 1px solid rgba(255, 255, 255, .08);
}

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

@media (max-width: 1024px) {
  .hero-slide {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-frame {
    min-height: 760px;
  }

  .hero-copy {
    margin: 0 auto;
  }

  .hero-tags,
  .hero-actions {
    justify-content: center;
  }

  .hero-poster {
    width: min(78vw, 320px);
  }

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

@media (max-width: 640px) {
  .hero-carousel {
    min-height: 760px;
    padding-top: 3rem;
  }

  .hero-frame {
    min-height: 670px;
  }

  .hero-search-form,
  .local-filter {
    flex-direction: column;
  }

  .hero-search-form button,
  .local-filter button {
    width: 100%;
  }

  .ranking-row {
    grid-template-columns: 2.5rem minmax(0, 1fr);
  }

  .ranking-meta {
    grid-column: 2;
  }

  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .category-cover {
    min-height: 110px;
  }

  .player-overlay span {
    width: 4rem;
    height: 4rem;
    font-size: 1.5rem;
  }
}
