body {
  min-height: 100vh;
  background: linear-gradient(180deg, #fdf2f8 0%, #ffffff 42%, #faf5ff 100%);
  color: #1f2937;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, rgba(253, 242, 248, 0.95), rgba(255, 255, 255, 0.96), rgba(250, 245, 255, 0.95));
  border-bottom: 1px solid rgba(244, 114, 182, 0.16);
  box-shadow: 0 14px 40px rgba(157, 23, 77, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, #ec4899, #9333ea);
  box-shadow: 0 14px 28px rgba(236, 72, 153, 0.28);
  font-size: 13px;
}

.brand-text,
.footer-brand {
  background: linear-gradient(90deg, #db2777, #7e22ce);
  -webkit-background-clip: text;
  color: transparent;
  font-size: 24px;
}

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

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

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #be185d;
  background: rgba(252, 231, 243, 0.92);
}

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

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid rgba(244, 114, 182, 0.35);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  outline: none;
  color: #374151;
  box-shadow: 0 10px 22px rgba(157, 23, 77, 0.05);
}

.header-search input {
  width: 220px;
  padding: 11px 18px;
}

.header-search button,
.mobile-search button {
  padding: 10px 16px;
  border-radius: 999px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #ec4899, #9333ea);
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #be185d;
  background: rgba(252, 231, 243, 0.85);
  font-size: 21px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-search input {
  flex: 1;
  padding: 12px 16px;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-stage {
  position: relative;
  height: 560px;
  overflow: hidden;
}

.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-slide img,
.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide img {
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(190, 24, 93, 0.92), rgba(126, 34, 206, 0.86) 45%, rgba(17, 24, 39, 0.45));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.eyebrow,
.section-heading span,
.page-hero span,
.wide-strip span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #be185d;
  background: rgba(252, 231, 243, 0.92);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-content .eyebrow {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-content h1 {
  max-width: 860px;
  margin: 18px 0 8px;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.07em;
}

.hero-content h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 900;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 19px;
  line-height: 1.8;
}

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

.hero-tags span,
.detail-tags span {
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.primary-button,
.ghost-button,
.wide-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.22s ease;
}

.primary-button {
  color: #db2777;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.12);
}

.primary-button:hover {
  transform: translateY(-2px) scale(1.02);
  background: #fdf2f8;
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

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

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

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

.hero-category-bar {
  position: relative;
  z-index: 6;
  width: min(1180px, calc(100% - 32px));
  margin: -34px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(157, 23, 77, 0.13);
  backdrop-filter: blur(18px);
}

.hero-category-bar span {
  color: #9d174d;
  font-weight: 950;
}

.hero-category-bar a,
.category-tags a {
  padding: 9px 14px;
  border-radius: 999px;
  background: #fdf2f8;
  color: #be185d;
  font-weight: 800;
}

.section-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0;
}

.no-top-padding {
  padding-top: 30px;
}

.section-heading {
  margin-bottom: 30px;
  text-align: center;
}

.section-heading span {
  margin: 0 auto 14px;
}

.section-heading h2,
.page-hero h1,
.wide-strip h2 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.section-heading p,
.page-hero p,
.wide-strip p {
  max-width: 700px;
  margin: 12px auto 0;
  color: #6b7280;
  font-size: 17px;
  line-height: 1.75;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 36px rgba(157, 23, 77, 0.09);
  transition: 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 54px rgba(157, 23, 77, 0.18);
}

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

.compact-card .card-cover {
  aspect-ratio: 16 / 10;
}

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

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

.card-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.52));
  opacity: 0.7;
}

.card-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  transform: translate(-50%, -50%) scale(0.86);
  border-radius: 999px;
  color: #db2777;
  background: #ffffff;
  opacity: 0;
  transition: 0.22s ease;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
  position: absolute;
  z-index: 3;
  left: 14px;
  top: 14px;
  display: grid;
  min-width: 36px;
  height: 36px;
  place-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #ec4899, #9333ea);
  box-shadow: 0 12px 22px rgba(147, 51, 234, 0.3);
}

.card-body {
  padding: 18px;
}

.card-meta {
  margin-bottom: 10px;
  color: #9d174d;
  font-size: 12px;
  font-weight: 800;
}

.card-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #fdf2f8;
}

.movie-card h3 {
  margin: 0 0 9px;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-card h3 a:hover {
  color: #db2777;
}

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

.tag-row {
  margin-top: 14px;
}

.tag-row span {
  color: #db2777;
  font-size: 12px;
  font-weight: 800;
}

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

.category-tile,
.category-overview-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(157, 23, 77, 0.1);
}

.category-tile {
  min-height: 220px;
  padding: 22px;
  color: #ffffff;
}

.category-tile img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
}

.category-tile::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(180deg, rgba(126, 34, 206, 0.2), rgba(157, 23, 77, 0.88));
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 2;
}

.category-tile span {
  display: block;
  margin-top: 90px;
  font-size: 22px;
  font-weight: 950;
}

.category-tile p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

.ranking-section {
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(253, 242, 248, 0.96), rgba(245, 243, 255, 0.96));
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

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

.center-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.center-actions .primary-button,
.wide-strip a {
  color: #ffffff;
  background: linear-gradient(135deg, #ec4899, #9333ea);
}

.wide-strip {
  width: min(1180px, calc(100% - 32px));
  margin: 20px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 46px;
  border-radius: 32px;
  color: #ffffff;
  background: linear-gradient(135deg, #db2777, #7e22ce);
  box-shadow: 0 22px 50px rgba(126, 34, 206, 0.22);
}

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

.wide-strip h2,
.wide-strip p {
  color: #ffffff;
}

.wide-strip p {
  margin-left: 0;
  margin-right: 0;
  color: rgba(255, 255, 255, 0.86);
}

.wide-strip a {
  flex: 0 0 auto;
  background: #ffffff;
  color: #db2777;
}

.scroll-row {
  display: grid;
  grid-auto-columns: minmax(260px, 1fr);
  grid-auto-flow: column;
  gap: 20px;
  overflow-x: auto;
  padding: 4px 4px 20px;
  scroll-snap-type: x mandatory;
}

.scroll-row .movie-card {
  scroll-snap-align: start;
}

.page-main {
  min-height: 72vh;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: 56px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(252, 231, 243, 0.96), rgba(243, 232, 255, 0.96));
  box-shadow: 0 18px 44px rgba(157, 23, 77, 0.1);
}

.small-hero {
  text-align: center;
}

.small-hero span {
  margin: 0 auto 16px;
}

.category-tags {
  margin-top: 24px;
}

.category-tags a {
  background: #ffffff;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(157, 23, 77, 0.08);
}

.search-filter {
  grid-template-columns: 1fr 170px 170px 170px 150px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  padding: 14px 16px;
}

.category-overview-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 80px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  padding: 18px;
}

.category-image {
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 4 / 3;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 24px;
  font-weight: 950;
}

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

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-links a {
  padding: 7px 10px;
  border-radius: 999px;
  color: #be185d;
  background: #fdf2f8;
  font-size: 13px;
  font-weight: 800;
}

.detail-main {
  background: linear-gradient(180deg, #111827 0, #111827 420px, #fdf2f8 421px, #ffffff 100%);
}

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

.detail-backdrop {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0.32;
  filter: blur(2px) saturate(1.1);
}

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

.detail-layout {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  padding: 58px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.36);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

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

.detail-info h1 {
  margin: 22px 0 14px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 760px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 850;
}

.detail-info .primary-button {
  margin-top: 26px;
}

.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 0;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 30px 70px rgba(17, 24, 39, 0.3);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #db2777;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.48));
  cursor: pointer;
}

.player-cover span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  font-size: 30px;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.32);
}

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

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.story-card {
  padding: 28px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(157, 23, 77, 0.08);
}

.story-card h2 {
  margin: 0 0 14px;
  color: #1f2937;
  font-size: 24px;
  font-weight: 950;
}

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

.tags-card {
  grid-column: 1 / -1;
}

.muted-tags span {
  color: #be185d;
  background: #fdf2f8;
  border: 0;
}

.related-section {
  padding-top: 0;
}

.site-footer {
  margin-top: 34px;
  border-top: 1px solid rgba(244, 114, 182, 0.16);
  background: linear-gradient(135deg, #fdf2f8, #faf5ff);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 46px 0;
}

.footer-inner p {
  max-width: 540px;
  margin: 12px 0 0;
  color: #6b7280;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
  justify-content: flex-end;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #be185d;
  background: #ffffff;
  font-weight: 800;
}

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

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

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

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

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

  .search-filter,
  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 66px;
  }

  .brand-text,
  .footer-brand {
    font-size: 20px;
  }

  .hero-stage {
    height: 640px;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 110px;
  }

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

  .hero-category-bar {
    margin-top: -24px;
  }

  .movie-grid,
  .ranking-grid,
  .large-ranking,
  .category-grid,
  .category-overview-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

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

  .category-image {
    aspect-ratio: 16 / 9;
  }

  .detail-layout {
    padding: 34px 0;
  }

  .detail-poster {
    max-width: 260px;
  }

  .page-hero,
  .wide-strip {
    padding: 30px;
  }

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

  .filter-bar,
  .search-filter {
    grid-template-columns: 1fr;
  }

  .scroll-row {
    grid-auto-columns: minmax(230px, 82vw);
  }
}
