:root {
  --pink: #ec4899;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --yellow: #facc15;
  --ink: #111827;
  --muted: #6b7280;
  --line: rgba(255, 255, 255, 0.24);
  --card: rgba(255, 255, 255, 0.86);
  --shadow: 0 24px 70px rgba(79, 70, 229, 0.18);
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #fdf2f8 0%, #f5f3ff 48%, #eff6ff 100%);
  color: var(--ink);
}

img {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(59, 130, 246, 0.22));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.94), rgba(139, 92, 246, 0.94), rgba(59, 130, 246, 0.94));
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(139, 92, 246, 0.25);
  backdrop-filter: blur(18px);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.logo-mark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

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

.nav-link,
.mobile-nav-link {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover {
  transform: translateY(-1px);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.header-search input,
.mobile-search input {
  width: 180px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffffff;
  padding: 10px 14px;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.header-search button,
.mobile-search button {
  padding: 10px 16px;
  background: rgba(250, 204, 21, 0.92);
  color: #4c1d95;
  font-weight: 700;
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

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

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

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

.hero-banner {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(90deg, #ec4899, #8b5cf6, #3b82f6);
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, rgba(253, 242, 248, 0.96));
  z-index: 4;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 420px);
  gap: 48px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0 120px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
  z-index: 5;
}

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

.hero-bg {
  position: fixed;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(22px) saturate(1.2);
  transform: scale(1.1);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  padding: 8px 16px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 700;
}

.hero-copy h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-shadow: 0 16px 50px rgba(0, 0, 0, 0.24);
}

.hero-copy p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  line-height: 1.9;
}

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-list span,
.detail-tags span,
.movie-card-meta span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.12);
  color: #be185d;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.primary-button,
.secondary-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  background: #facc15;
  color: #581c87;
  box-shadow: 0 16px 40px rgba(250, 204, 21, 0.26);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
}

.outline-button {
  color: #be185d;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(236, 72, 153, 0.2);
}

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

.hero-poster {
  position: relative;
  z-index: 3;
  width: min(100%, 390px);
  aspect-ratio: 3 / 4;
  justify-self: end;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 26px 80px rgba(17, 24, 39, 0.34);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.82);
  color: #ec4899;
  font-size: 2rem;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

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

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

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

.stars-background {
  z-index: 2;
}

.section-block {
  padding: 58px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-heading h2,
.page-title h1,
.detail-title h1 {
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.section-heading p,
.page-title p {
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 16px 42px rgba(79, 70, 229, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.72);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.movie-card-large .movie-thumb {
  aspect-ratio: 16 / 9;
}

.movie-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #ec4899;
  opacity: 0;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-year {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
}

.movie-card-body {
  padding: 18px;
}

.movie-card h3 {
  margin: 12px 0 8px;
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 850;
  color: #111827;
}

.movie-card p {
  min-height: 48px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.93rem;
}

.tag-list {
  margin-top: 12px;
}

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

.category-card {
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 46px rgba(79, 70, 229, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.68);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 126px;
  background: linear-gradient(135deg, #fce7f3, #ede9fe);
}

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

.category-card-body {
  padding: 18px;
}

.category-card h2 {
  font-size: 1.22rem;
  font-weight: 850;
}

.category-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 56px 86px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 34px rgba(79, 70, 229, 0.1);
}

.rank-number {
  display: inline-flex;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 900;
  color: #ec4899;
}

.rank-item img {
  width: 86px;
  height: 64px;
  object-fit: cover;
  border-radius: 16px;
}

.rank-content strong,
.rank-content em {
  display: block;
}

.rank-content strong {
  font-weight: 850;
  color: #111827;
}

.rank-content em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 56px;
  color: #ffffff;
  background: linear-gradient(110deg, rgba(236, 72, 153, 0.96), rgba(139, 92, 246, 0.95), rgba(59, 130, 246, 0.92));
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 32%), radial-gradient(circle at 10% 80%, rgba(250, 204, 21, 0.16), transparent 28%);
}

.page-title {
  position: relative;
  z-index: 2;
}

.page-title h1 {
  color: #ffffff;
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.page-title p {
  max-width: 760px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.86);
}

.filter-panel {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 42px rgba(79, 70, 229, 0.1);
}

.filter-search {
  flex: 1 1 280px;
}

.filter-search input,
.filter-selects select {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  outline: 0;
  background: #ffffff;
  border: 1px solid rgba(236, 72, 153, 0.18);
}

.filter-selects {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  flex: 1 1 420px;
}

.empty-state {
  display: none;
  padding: 38px;
  border-radius: 24px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.75);
}

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

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto 0;
  color: #6b7280;
  font-size: 0.92rem;
}

.breadcrumb a {
  color: #be185d;
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 360px;
  gap: 34px;
  align-items: start;
  padding: 34px 0 70px;
}

.player-card,
.detail-side-card,
.content-card {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.player-frame {
  position: relative;
  background: #020617;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.26), rgba(2, 6, 23, 0.62));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 4;
}

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

.player-button {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #ec4899;
  font-size: 2.15rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.player-info {
  padding: 24px;
}

.detail-title h1 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.12;
}

.detail-title p {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.9;
}

.detail-side-card {
  padding: 18px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 3 / 4;
}

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

.detail-meta-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.detail-meta-list p {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
}

.detail-meta-list strong {
  color: #111827;
}

.content-card {
  margin-top: 24px;
  padding: 26px;
}

.content-card h2,
.related-section h2 {
  margin-bottom: 14px;
  font-size: 1.45rem;
  font-weight: 900;
}

.content-card p {
  color: #374151;
  line-height: 1.95;
}

.related-section {
  padding: 0 0 76px;
}

.site-footer {
  color: #ffffff;
  background: linear-gradient(90deg, #111827, #581c87, #831843);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

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

.footer-inner p {
  color: rgba(255, 255, 255, 0.72);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(139, 92, 246, 0.32);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 1060px) {
  .movie-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
  }

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

  .detail-side-card {
    max-width: 460px;
  }
}

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

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-inner {
    min-height: 64px;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 54px 0 118px;
  }

  .hero-poster {
    justify-self: start;
    width: min(100%, 300px);
  }

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

  .filter-panel,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

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

@media (max-width: 560px) {
  .movie-grid,
  .category-grid,
  .ranking-layout {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 44px 76px minmax(0, 1fr);
  }

  .rank-item img {
    width: 76px;
    height: 58px;
  }

  .hero-banner {
    min-height: 710px;
  }

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

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