* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background: linear-gradient(135deg, #fdf2f8 0%, #ffffff 45%, #fff1f2 100%);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(244, 114, 182, 0.18);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  box-shadow: 0 14px 30px rgba(244, 63, 94, 0.26);
  transition: transform 0.3s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(4deg);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  font-weight: 700;
  color: #4b5563;
  transition: color 0.25s ease;
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  border-radius: 10px;
  background: #374151;
}

.site-nav {
  display: none;
  border-top: 1px solid #fce7f3;
  background: #ffffff;
}

.mobile-link {
  display: block;
  padding: 12px 24px;
  color: #4b5563;
  font-weight: 700;
}

.mobile-link:hover,
.mobile-link.is-active {
  color: #db2777;
  background: #fdf2f8;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #ffffff;
  background: linear-gradient(120deg, #db2777 0%, #f43f5e 46%, #be185d 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0 54px;
}

.hero-slide {
  display: none;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 44px;
  min-height: 440px;
  animation: fadeIn 0.55s ease both;
}

.hero-slide.is-active {
  display: grid;
}

.hero-copy h1 {
  margin: 0 0 8px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.1;
  color: #ffe4e6;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 22px;
  color: #ffe4ef;
  font-size: clamp(17px, 2vw, 22px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff1f2;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

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

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

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

.button-light {
  color: #db2777;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(136, 19, 55, 0.22);
}

.button-outline {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.button-outline:hover {
  color: #db2777;
  background: #ffffff;
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  box-shadow: 0 16px 34px rgba(244, 63, 94, 0.26);
}

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

.hero-poster:hover {
  transform: rotate(0) scale(1.02);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(255,255,255,0.24), rgba(255,255,255,0.05));
}

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

.hero-poster span {
  position: absolute;
  left: 22px;
  bottom: 20px;
  z-index: 2;
  font-weight: 850;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.3s ease, background 0.3s ease;
}

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

.hero-search {
  display: flex;
  width: min(620px, 100%);
  margin: 30px auto 0;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 18px;
  color: #ffffff;
  background: transparent;
}

.hero-search input::placeholder {
  color: #ffe4ef;
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  color: #db2777;
  background: #ffffff;
  font-weight: 850;
}

.hero-orb {
  position: absolute;
  z-index: 1;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.24;
  mix-blend-mode: screen;
  animation: blob 9s infinite;
}

.hero-orb-one {
  top: 80px;
  left: 8%;
  background: #ffffff;
}

.hero-orb-two {
  top: 190px;
  right: 8%;
  background: #f9a8d4;
  animation-delay: 2s;
}

.hero-orb-three {
  bottom: 70px;
  left: 44%;
  background: #fecdd3;
  animation-delay: 4s;
}

.stats-section {
  background: #ffffff;
  padding: 42px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-card {
  padding: 28px;
  text-align: center;
  border-radius: 24px;
  background: linear-gradient(135deg, #fdf2f8, #fff1f2);
  box-shadow: 0 18px 42px rgba(244, 114, 182, 0.14);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px) scale(1.01);
}

.stat-card strong {
  display: block;
  color: #111827;
  font-size: 26px;
}

.stat-card span {
  display: block;
  color: #6b7280;
  margin-top: 6px;
}

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

.section-blue {
  background: linear-gradient(90deg, #eff6ff, #ecfeff);
}

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

.section-amber {
  background: linear-gradient(90deg, #fffbeb, #fff7ed);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
}

.section-heading p {
  margin: 8px 0 0;
  color: #6b7280;
}

.section-heading a {
  color: #db2777;
  font-weight: 850;
}

.center-heading {
  justify-content: center;
  text-align: center;
}

.card-grid {
  display: grid;
  gap: 22px;
}

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

.grid-medium {
  grid-template-columns: repeat(4, 1fr);
}

.grid-small {
  grid-template-columns: repeat(6, 1fr);
}

.grid-catalog {
  grid-template-columns: repeat(5, 1fr);
}

.movie-card {
  overflow: hidden;
  color: #111827;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-poster {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #fff1f2);
}

.card-poster img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card-square .card-poster img,
.grid-catalog .card-poster img {
  aspect-ratio: 1 / 1.15;
}

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

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

.card-region,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: #ec4899;
  font-size: 12px;
  font-weight: 850;
}

.rank-badge {
  left: 14px;
  right: auto;
  background: #f59e0b;
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
  transition: color 0.2s ease;
}

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

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

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

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

.tag-row span {
  color: #be185d;
  background: #fce7f3;
}

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

.category-tile,
.category-overview {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 28px;
  color: #ffffff;
  border-radius: 28px;
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-tile:hover,
.category-overview:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 28px 58px rgba(15, 23, 42, 0.22);
}

.category-tile span {
  display: block;
  font-size: 46px;
  margin-bottom: 14px;
}

.category-tile strong {
  display: block;
  font-size: 24px;
}

.category-tile em {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-style: normal;
}

.theme-pink {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.theme-blue {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.theme-orange {
  background: linear-gradient(135deg, #f97316, #f59e0b);
}

.theme-rose {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
}

.theme-amber {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.theme-cyan {
  background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.theme-green {
  background: linear-gradient(135deg, #22c55e, #10b981);
}

.theme-purple {
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
}

.compact-grid,
.ranking-preview,
.ranking-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.compact-card {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 16px;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.compact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.13);
}

.compact-poster img {
  width: 116px;
  height: 124px;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(135deg, #fce7f3, #fff1f2);
}

.compact-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.compact-info p {
  margin: 0 0 12px;
  color: #6b7280;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.compact-info div {
  color: #9ca3af;
  font-size: 13px;
}

.compact-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  margin-right: 8px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  font-size: 14px;
}

.page-hero {
  color: #ffffff;
  padding: 78px 0;
  background: linear-gradient(135deg, #db2777, #f43f5e);
}

.soft-hero {
  background: linear-gradient(135deg, #db2777, #be185d);
}

.page-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.category-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.category-head span {
  font-size: 42px;
}

.category-head h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.category-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.category-samples {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 12px;
  margin-top: 24px;
}

.category-samples a {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.94);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-more {
  display: inline-flex;
  margin-top: 22px;
  padding: 10px 18px;
  border-radius: 999px;
  color: #db2777;
  background: #ffffff;
  font-weight: 850;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  margin-bottom: 30px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.filter-search input,
.filter-controls select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #f9a8d4;
  border-radius: 16px;
  outline: 0;
  color: #374151;
  background: #fff7fb;
}

.filter-search input {
  padding: 0 16px;
}

.filter-controls {
  display: flex;
  gap: 12px;
}

.filter-controls select {
  min-width: 132px;
  padding: 0 12px;
}

.no-results {
  margin-top: 24px;
  padding: 36px;
  text-align: center;
  color: #6b7280;
  border-radius: 24px;
  background: #ffffff;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: #6b7280;
}

.breadcrumb a {
  color: #db2777;
  font-weight: 800;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.player-card,
.cover-card,
.side-panel {
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.player-wrap {
  position: relative;
  background: #000000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.28);
}

.player-overlay[hidden] {
  display: none;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding-left: 5px;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.9);
  box-shadow: 0 22px 44px rgba(236, 72, 153, 0.36);
  font-size: 38px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.player-overlay:hover .play-icon {
  transform: scale(1.08);
  background: #ec4899;
}

.detail-body {
  padding: 28px;
}

.detail-body h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
}

.detail-body h2 {
  margin: 28px 0 10px;
  font-size: 24px;
}

.detail-body p {
  margin: 0 0 12px;
  color: #4b5563;
}

.lead-text {
  color: #111827 !important;
  font-size: 19px;
  font-weight: 700;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  color: #be185d;
  background: #fce7f3;
  font-weight: 800;
}

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

.detail-tags span {
  color: #be185d;
  background: #fce7f3;
}

.detail-side {
  display: grid;
  gap: 22px;
}

.cover-card {
  padding: 18px;
}

.cover-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 20px;
  background: linear-gradient(135deg, #fce7f3, #fff1f2);
}

.cover-card .button {
  width: 100%;
  margin-top: 16px;
}

.side-panel {
  padding: 22px;
}

.side-panel h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.side-links {
  display: grid;
  gap: 10px;
}

.side-links a {
  padding: 10px 12px;
  border-radius: 14px;
  color: #4b5563;
  background: #fdf2f8;
  font-weight: 700;
}

.side-links a:hover {
  color: #db2777;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937 52%, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 54px 0;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 19px;
}

.site-footer p {
  margin: 0;
  color: #d1d5db;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin: 8px 0;
}

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

.footer-bottom {
  padding: 22px 16px;
  text-align: center;
  color: #9ca3af;
  border-top: 1px solid rgba(156, 163, 175, 0.25);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blob {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(24px, -36px) scale(1.08);
  }

  66% {
    transform: translate(-22px, 22px) scale(0.92);
  }
}

@media (max-width: 1100px) {
  .grid-catalog {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .grid-small {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav.is-open {
    display: block;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-poster {
    justify-self: center;
    width: min(320px, 82vw);
  }

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

  .stats-grid,
  .grid-large,
  .category-grid,
  .category-overview-grid,
  .compact-grid,
  .ranking-preview,
  .ranking-list,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .filter-controls {
    flex-wrap: wrap;
  }

  .filter-controls select {
    flex: 1 1 160px;
  }
}

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

  .hero-inner {
    padding: 48px 0 36px;
  }

  .hero-search {
    flex-direction: column;
    border-radius: 24px;
  }

  .hero-search input {
    min-height: 46px;
    text-align: center;
  }

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

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

  .grid-medium,
  .grid-small,
  .grid-catalog {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .movie-card {
    border-radius: 18px;
  }

  .card-body {
    padding: 14px;
  }

  .card-body h3 {
    font-size: 16px;
  }

  .compact-card {
    grid-template-columns: 90px 1fr;
  }

  .compact-poster img {
    width: 90px;
    height: 102px;
  }

  .detail-body {
    padding: 20px;
  }

  .play-icon {
    width: 68px;
    height: 68px;
    font-size: 30px;
  }
}
