body {
  min-height: 100vh;
  background: #f9fafb;
  color: #1f2937;
}

.site-header {
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
}

.logo-mark {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #ec4899, #f97316);
  color: #ffffff;
  font-size: 0.95rem;
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.25);
}

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

.nav-link:hover,
.nav-link.is-active {
  color: #ec4899;
}

.mobile-menu-button {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem;
  border-radius: 0.75rem;
  background: #f3f4f6;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: #374151;
}

.mobile-nav {
  padding: 0.75rem 1rem 1rem;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}

.mobile-nav a {
  display: block;
  padding: 0.85rem 0;
  font-weight: 600;
  color: #374151;
}

.home-hero {
  min-height: 580px;
  background: #111827;
}

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
}

.hero-gradient {
  mix-blend-mode: multiply;
  opacity: 0.88;
}

.hero-mask {
  opacity: 0.52;
}

.hero-inner {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.55fr);
  gap: 2rem;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 6rem;
}

.hero-copy {
  max-width: 58rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(12px);
}

.hero-title-line {
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 700;
  margin-top: -0.75rem;
  margin-bottom: 1rem;
}

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

.hero-rank-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-rank-link:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.hero-poster-card {
  display: block;
  position: relative;
  width: min(100%, 310px);
  justify-self: end;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}

.hero-poster-card:hover {
  transform: rotate(0deg) scale(1.03);
}

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

.hero-poster-card span {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.92);
  color: #1f2937;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-weight: 700;
  font-size: 0.875rem;
}

.hero-search-card {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  z-index: 4;
  width: min(92%, 880px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.22);
  backdrop-filter: blur(18px);
}

.hero-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
}

.hero-search-form input {
  height: 3rem;
  border-radius: 999px;
  padding: 0 1.15rem;
  background: #ffffff;
  color: #111827;
  outline: none;
  border: 1px solid #f3f4f6;
}

.hero-search-form button {
  height: 3rem;
  padding: 0 1.35rem;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #ec4899, #f97316);
  font-weight: 700;
}

.hero-mini-links {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.hero-mini-links a {
  color: #4b5563;
  font-weight: 700;
  white-space: nowrap;
}

.hero-mini-links a:hover {
  color: #ec4899;
}

.hero-dots {
  position: absolute;
  right: 2rem;
  bottom: 8.4rem;
  z-index: 5;
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 2rem;
  background: #ffffff;
}

.wave-wrap {
  z-index: 3;
  pointer-events: none;
}

.page-hero {
  padding: 4rem 0;
  color: #ffffff;
}

.page-hero h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.page-hero p {
  max-width: 56rem;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.breadcrumb-light,
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.breadcrumb-light {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.5rem;
}

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

.breadcrumb {
  color: #6b7280;
}

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

.section-icon {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #ec4899, #f97316);
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.28);
}

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

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

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

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

.movie-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.14);
}

.poster-frame {
  height: 20rem;
  background: linear-gradient(135deg, #fce7f3, #ffedd5);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 55%);
  opacity: 0.75;
}

.poster-badges {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  right: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.type-badge,
.year-badge,
.rank-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.type-badge,
.rank-badge {
  color: #be185d;
  background: rgba(255, 255, 255, 0.9);
}

.year-badge {
  color: #ffffff;
  background: rgba(17, 24, 39, 0.55);
}

.card-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: #6b7280;
  font-size: 0.78rem;
}

.card-meta span {
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: #f3f4f6;
}

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

.category-main-link {
  display: block;
}

.category-main-link h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 0.65rem;
}

.category-main-link p {
  color: #6b7280;
  line-height: 1.7;
}

.category-icon {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  color: #ffffff;
  background: linear-gradient(135deg, #ec4899, #f97316);
  margin-bottom: 1rem;
}

.category-sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.category-sample-links a {
  display: inline-flex;
  max-width: 100%;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: #be185d;
  background: #fce7f3;
  font-size: 0.85rem;
}

.category-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  color: #ffffff;
}

.category-overview-head span {
  font-size: 1.35rem;
  font-weight: 800;
}

.category-overview-head strong {
  white-space: nowrap;
}

.home-ranking {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
}

.home-ranking-cover {
  color: #ffffff;
  padding: 2.5rem;
}

.home-ranking-cover h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.home-ranking-cover p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.home-ranking-cover a {
  display: inline-flex;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: #ffffff;
  color: #ec4899;
  font-weight: 800;
}

.ranking-list {
  padding: 1.25rem;
}

.ranking-list li + li {
  border-top: 1px solid #f3f4f6;
}

.ranking-list a {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0.5rem;
}

.ranking-list span {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #ec4899, #f97316);
  font-weight: 800;
}

.ranking-list strong {
  color: #1f2937;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-list em {
  color: #6b7280;
  font-style: normal;
  font-size: 0.875rem;
}

.cta-panel {
  position: relative;
  overflow: hidden;
}

.filter-panel label span {
  display: block;
  color: #374151;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.5fr) minmax(180px, 0.5fr);
  gap: 1rem;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 3rem;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: #ffffff;
  color: #111827;
  padding: 0 1rem;
  outline: none;
}

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

.empty-state {
  padding: 3rem;
  text-align: center;
  color: #6b7280;
  background: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.player-shell {
  position: relative;
  background: #000000;
  overflow: hidden;
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.05));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-shell.is-started .player-start {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon-large {
  display: inline-flex;
  width: 5rem;
  height: 5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ec4899;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.35);
  font-size: 2rem;
  padding-left: 0.2rem;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.detail-tags span {
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  color: #4b5563;
  background: #f3f4f6;
  font-size: 0.875rem;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 1rem;
  background: linear-gradient(135deg, #fce7f3, #ffedd5);
}

.compact-link {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.compact-link img {
  width: 5rem;
  height: 6.5rem;
  border-radius: 0.75rem;
  object-fit: cover;
  background: linear-gradient(135deg, #fce7f3, #ffedd5);
}

.compact-link h3 {
  color: #1f2937;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-link p {
  color: #6b7280;
  font-size: 0.82rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.footer-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.5fr) minmax(220px, 0.8fr);
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.footer-tags a {
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d1d5db;
  font-size: 0.85rem;
}

.footer-tags a:hover {
  color: #ffffff;
  background: rgba(236, 72, 153, 0.45);
}

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

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .hero-poster-card {
    display: none;
  }

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

  .detail-grid,
  .home-ranking {
    grid-template-columns: 1fr;
  }

  .detail-side .sticky {
    position: static;
  }
}

@media (max-width: 768px) {
  .home-hero {
    min-height: 660px;
  }

  .hero-inner {
    min-height: 580px;
    padding-bottom: 8.5rem;
  }

  .hero-search-card {
    grid-template-columns: 1fr;
    bottom: 1.2rem;
  }

  .hero-search-form {
    grid-template-columns: 1fr;
  }

  .hero-dots {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 10.2rem;
  }

  .movie-grid,
  .featured-grid,
  .hot-grid,
  .ranking-grid,
  .category-movie-grid,
  .all-movie-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .ranking-list em {
    grid-column: 2;
  }
}

@media (max-width: 520px) {
  .movie-grid,
  .featured-grid,
  .hot-grid,
  .ranking-grid,
  .category-movie-grid,
  .all-movie-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .poster-frame {
    height: 22rem;
  }

  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }
}
