.bg-gray-950 {
  background-color: #020617;
}

.from-fuchsia-500 {
  --tw-gradient-from: #d946ef var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(217 70 239 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-rose-500 {
  --tw-gradient-to: #f43f5e var(--tw-gradient-to-position);
}

.from-emerald-500 {
  --tw-gradient-from: #10b981 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(16 185 129 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-teal-500 {
  --tw-gradient-to: #14b8a6 var(--tw-gradient-to-position);
}

.from-slate-700 {
  --tw-gradient-from: #334155 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(51 65 85 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-gray-900 {
  --tw-gradient-to: #111827 var(--tw-gradient-to-position);
}

.from-yellow-500 {
  --tw-gradient-from: #eab308 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(234 179 8 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

:root {
  --rose: #f43f5e;
  --pink: #ec4899;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
}

body {
  background: #f9fafb;
  color: var(--ink);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.25);
  font-size: 0.8rem;
}

.logo-text,
.footer-logo span:last-child {
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--rose);
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--rose);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

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

.mobile-menu-button span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--rose);
}

.mobile-nav {
  display: none;
  border-top: 1px solid #ffe4e6;
  background: #fff;
  padding: 0.75rem 1rem 1rem;
}

.mobile-nav.is-open {
  display: grid;
  gap: 0.35rem;
}

.mobile-link {
  display: block;
  padding: 0.7rem 0.9rem;
  border-radius: 0.8rem;
  color: #374151;
  font-weight: 600;
}

.mobile-link:hover,
.mobile-link.active {
  color: var(--rose);
  background: #fff1f2;
}

.hero-section {
  min-height: 600px;
}

.hero-light {
  position: absolute;
  border-radius: 999px;
  filter: blur(64px);
  opacity: 0.35;
  animation: pulse 4s ease-in-out infinite;
}

.hero-light-a {
  width: 18rem;
  height: 18rem;
  top: 2.5rem;
  left: 2.5rem;
  background: #fda4af;
}

.hero-light-b {
  width: 24rem;
  height: 24rem;
  right: 2.5rem;
  bottom: 2.5rem;
  background: #f9a8d4;
  animation-delay: 1s;
}

.hero-slider,
.hero-slide {
  height: 100%;
}

.hero-slide {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  position: absolute;
  inset: 0 1rem;
}

.hero-slide.is-active {
  display: flex;
  animation: heroFade 0.55s ease both;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy {
  max-width: 42rem;
  position: relative;
  z-index: 2;
}

.hero-kicker,
.hero-tags,
.hero-actions,
.detail-meta,
.detail-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.hero-kicker span:first-child,
.page-kicker {
  color: var(--rose);
  font-weight: 800;
}

.hero-kicker span:last-child {
  color: #9f1239;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #ffe4e6;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.hero-copy h1 {
  margin-top: 1rem;
  margin-bottom: 1.2rem;
  color: #111827;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.hero-copy h1 span {
  background: linear-gradient(135deg, var(--rose), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  color: #4b5563;
  font-size: 1.18rem;
  line-height: 1.8;
  margin-bottom: 1.4rem;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  color: #be123c;
  background: #fff1f2;
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-actions {
  margin-top: 2rem;
}

.primary-button,
.secondary-button,
.ghost-button,
.side-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.55rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 18px 36px rgba(244, 63, 94, 0.28);
}

.secondary-button {
  color: #374151;
  background: #fff;
  border: 2px solid #e5e7eb;
}

.ghost-button {
  color: #be123c;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #ffe4e6;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.side-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.12);
}

.secondary-button:hover {
  color: var(--rose);
  border-color: var(--rose);
}

.hero-poster {
  width: min(34vw, 390px);
  min-width: 300px;
  aspect-ratio: 3 / 4;
  position: relative;
  z-index: 2;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 35px 80px rgba(15, 23, 42, 0.22);
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) translateY(-4px);
}

.hero-poster img,
.detail-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.hero-poster-info {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
  color: #fff;
}

.hero-poster-info strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.3rem;
}

.hero-poster-info span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.hero-dots {
  position: absolute;
  left: 1rem;
  bottom: 2.25rem;
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

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

.hero-dot.is-active {
  width: 2.2rem;
  background: var(--rose);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.1;
  font-weight: 900;
  color: #111827;
}

.section-heading p {
  margin-top: 0.5rem;
  color: var(--muted);
}

.section-more {
  color: var(--rose);
  font-weight: 800;
  white-space: nowrap;
}

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

.card-cover {
  background: linear-gradient(135deg, #fff1f2, #fdf2f8);
}

.card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-shade {
  opacity: 1;
}

.card-badge,
.card-meta-line {
  position: absolute;
  z-index: 2;
  color: #fff;
  font-weight: 800;
}

.card-badge {
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--rose);
  font-size: 0.75rem;
}

.card-meta-line {
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.85rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s ease;
}

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

.card-tags {
  margin-top: 0.9rem;
}

.card-tags .tag-pill {
  font-size: 0.72rem;
  min-height: 1.55rem;
  padding: 0.22rem 0.55rem;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 10rem;
  padding: 2rem 1rem;
  border-radius: 1.5rem;
  background: #fff;
  text-align: center;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.12);
}

.category-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.category-card:hover .category-glow {
  opacity: 0.12;
}

.category-icon {
  position: relative;
  display: block;
  font-size: 2.6rem;
  margin-bottom: 0.8rem;
}

.category-card strong {
  position: relative;
  display: block;
  color: #111827;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.category-card small {
  position: relative;
  color: #6b7280;
}

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

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

.ranking-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border: 1px solid #f3f4f6;
  border-radius: 1rem;
  background: #fff;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ranking-link:hover {
  transform: translateY(-3px);
  border-color: #fecdd3;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.ranking-number {
  width: 2.15rem;
  height: 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 0.8rem;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  font-weight: 900;
}

.ranking-link img {
  width: 4.75rem;
  height: 3.4rem;
  flex: 0 0 auto;
  border-radius: 0.75rem;
  object-fit: cover;
  background: #fff1f2;
}

.ranking-info {
  min-width: 0;
}

.ranking-info strong {
  display: block;
  color: #111827;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-info small {
  display: block;
  margin-top: 0.2rem;
  color: #6b7280;
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-title-block h1 {
  margin: 0.45rem 0 0.85rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #111827;
}

.page-title-block p {
  max-width: 46rem;
  margin: 0 auto;
  color: #6b7280;
  line-height: 1.8;
}

.category-overview-card {
  overflow: hidden;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.category-top {
  display: flex;
  min-height: 11rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 1rem;
}

.category-top span {
  font-size: 2.7rem;
  margin-bottom: 0.7rem;
}

.category-top strong {
  font-size: 1.25rem;
  font-weight: 900;
}

.category-top small {
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.84);
}

.category-overview-card p {
  padding: 1.25rem 1.25rem 0;
  color: #4b5563;
  line-height: 1.75;
}

.category-mini-links {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1.25rem 1.25rem;
}

.category-mini-links a {
  color: #6b7280;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-mini-links a:hover {
  color: var(--rose);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  color: #6b7280;
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: var(--rose);
}

.breadcrumb.dark {
  color: #d1d5db;
}

.category-hero {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 2rem;
  border-radius: 1.5rem;
  color: #fff;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
}

.category-hero-icon {
  font-size: 3.5rem;
}

.category-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
}

.category-hero p {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
}

.filter-grid label {
  display: grid;
  gap: 0.4rem;
  color: #374151;
  font-weight: 800;
  font-size: 0.9rem;
}

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

.filter-grid input:focus,
.filter-grid select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.12);
}

.empty-result {
  display: none;
  margin-top: 2rem;
  padding: 2.5rem;
  border-radius: 1.5rem;
  color: #6b7280;
  text-align: center;
  background: #fff;
}

.empty-result.is-visible {
  display: block;
}

.player-wrap {
  color: #fff;
}

.player-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1.35rem;
  background: #020617;
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.35);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #fff;
  background: radial-gradient(circle at center, rgba(244, 63, 94, 0.22), rgba(2, 6, 23, 0.78));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-play-icon {
  width: 5.5rem;
  height: 5.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 20px 45px rgba(244, 63, 94, 0.32);
  font-size: 2rem;
  padding-left: 0.15rem;
}

.player-overlay strong {
  max-width: min(90%, 36rem);
  font-size: clamp(1.2rem, 3vw, 2rem);
  text-align: center;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19rem;
  gap: 1.5rem;
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f3f4f6;
}

.detail-title-row h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #111827;
  line-height: 1.15;
}

.detail-meta {
  margin-top: 0.9rem;
  color: #6b7280;
}

.detail-meta span {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #f9fafb;
}

.detail-category {
  flex: 0 0 auto;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--rose);
  background: #fff1f2;
  font-weight: 800;
}

.detail-tags {
  margin: 1.3rem 0;
}

.content-block {
  padding-top: 1.4rem;
  border-top: 1px solid #f3f4f6;
}

.content-block + .content-block {
  margin-top: 1.5rem;
}

.content-block h2 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  font-weight: 900;
  color: #111827;
}

.content-block p {
  color: #374151;
  line-height: 1.9;
  margin-bottom: 0.85rem;
}

.review-block {
  padding: 1.4rem;
  border: 0;
  border-radius: 1.15rem;
  background: #f9fafb;
}

.detail-side {
  align-self: start;
}

.detail-side img {
  aspect-ratio: 3 / 4;
  border-radius: 1rem;
  background: #fff1f2;
}

.side-button {
  width: 100%;
  margin-top: 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
}

.site-footer h3 {
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 900;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.site-footer ul {
  display: grid;
  gap: 0.55rem;
}

.site-footer a:hover {
  color: #fb7185;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .hero-slide {
    gap: 2rem;
  }

  .hero-poster {
    width: 320px;
    min-width: 260px;
  }

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

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

  .detail-side {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: auto;
    min-height: 760px;
  }

  .hero-slide {
    position: relative;
    inset: auto;
    flex-direction: column;
    justify-content: center;
    padding: 3.5rem 0 5rem;
  }

  .hero-slide:not(.is-active) {
    display: none;
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .hero-poster {
    width: min(100%, 330px);
    min-width: 0;
  }

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

  .category-grid,
  .overview-grid,
  .ranking-grid,
  .ranking-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .category-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-title-row {
    flex-direction: column;
  }

  .player-box {
    border-radius: 1rem;
  }
}
