:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --purple: #8b5cf6;
  --blue: #0ea5e9;
  --green: #10b981;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(236, 72, 153, 0.14);
  --shadow-card: 0 12px 30px rgba(17, 24, 39, 0.10);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--gray-800);
  background: linear-gradient(135deg, #fdf2f8 0%, #ffffff 45%, #fff7ed 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(253, 242, 248, 0.94), rgba(255, 247, 237, 0.94));
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 32px rgba(236, 72, 153, 0.12);
}

.nav-shell {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--gray-900);
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: var(--white);
  box-shadow: 0 10px 20px rgba(236, 72, 153, 0.25);
  font-size: 13px;
}

.logo-text {
  font-size: 23px;
  background: linear-gradient(90deg, var(--pink-dark), var(--orange-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.main-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 700;
  color: var(--gray-700);
}

.main-nav a,
.mobile-nav a,
.footer-links a,
.breadcrumb a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover,
.breadcrumb a:hover {
  color: var(--pink-dark);
}

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

.top-search input,
.mobile-search input,
.search-page-form input,
.page-filter-input,
.page-filter-select {
  border: 1px solid #fbcfe8;
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.86);
  color: var(--gray-800);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.top-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.page-filter-input:focus,
.page-filter-select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.16);
}

.top-search input {
  width: 210px;
}

.top-search button,
.mobile-search button,
.search-page-form button,
.primary-btn,
.ghost-btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink), var(--orange));
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-search button:hover,
.mobile-search button:hover,
.search-page-form button:hover,
.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(236, 72, 153, 0.30);
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  font-size: 28px;
  color: var(--gray-800);
}

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

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

.hero-carousel {
  position: relative;
  height: min(680px, calc(100vh - 70px));
  min-height: 560px;
  overflow: hidden;
  color: var(--white);
  background: var(--gray-900);
}

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

.hero-slide {
  opacity: 0;
  transform: scale(1.04);
  background-size: cover;
  background-position: center;
  transition: opacity 0.8s ease, transform 1.1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 720px;
  padding-right: 420px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-content h2,
.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.96;
  font-weight: 950;
}

.hero-content p,
.page-hero p {
  margin: 0;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags a {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 700;
}

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

.ghost-btn {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.hero-overlay-panel {
  position: absolute;
  right: calc((100% - min(1180px, calc(100% - 32px))) / 2);
  top: 50%;
  width: min(360px, 32vw);
  transform: translateY(-50%);
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

.hero-overlay-panel h1 {
  margin: 0 0 14px;
  font-size: 32px;
  line-height: 1.2;
}

.hero-overlay-panel p {
  margin: 0;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.hero-quick-links {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.hero-quick-links a {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--white);
}

.section {
  padding: 64px 0;
}

.soft-section,
.category-band,
.quick-section {
  padding: 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.72), rgba(253, 242, 248, 0.86));
  box-shadow: var(--shadow-soft);
}

.category-band {
  background: linear-gradient(135deg, rgba(245, 243, 255, 0.92), rgba(253, 242, 248, 0.92));
}

.quick-section {
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.92), rgba(236, 253, 245, 0.92));
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.section-heading > span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  font-size: 26px;
  box-shadow: var(--shadow-card);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  color: var(--gray-900);
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--gray-600);
}

.movie-grid,
.featured-grid,
.category-grid,
.category-overview-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card {
  position: relative;
}

.card-link,
.category-tile,
.category-card-large a,
.detail-card,
.side-card,
.player-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.card-link {
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(17, 24, 39, 0.18);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #fdf2f8, #ffedd5);
}

.featured-card .poster-wrap {
  aspect-ratio: 3 / 4;
}

.poster-wrap img,
.poster-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.poster-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 900;
}

.poster-chip {
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--gray-800);
  backdrop-filter: blur(8px);
  font-size: 12px;
}

.rank-badge {
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, #facc15, var(--orange));
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
}

.card-body {
  padding: 18px;
}

.card-body h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
  color: var(--gray-900);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p {
  margin: 0 0 14px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 13px;
  margin-bottom: 12px;
}

.movie-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--gray-100);
}

.tag-row span {
  background: #fdf2f8;
  color: var(--pink-dark);
}

.category-tile,
.category-card-large a {
  padding: 26px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-card-large a:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(139, 92, 246, 0.18);
}

.category-tile span,
.category-card-large span {
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  font-size: 28px;
}

.category-tile strong,
.category-card-large h2 {
  display: block;
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--gray-900);
}

.category-tile em,
.category-card-large p {
  display: block;
  font-style: normal;
  color: var(--gray-600);
  line-height: 1.6;
}

.category-card-large strong {
  display: inline-flex;
  margin-top: 16px;
  color: var(--pink-dark);
}

.page-hero {
  padding: 92px 0;
  color: var(--white);
  background: radial-gradient(circle at top left, rgba(236, 72, 153, 0.78), transparent 38%), linear-gradient(135deg, #111827, #831843 52%, #ea580c);
}

.page-hero .container {
  max-width: 960px;
}

.filter-box,
.search-page-form {
  margin-top: 26px;
}

.filter-box {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 12px;
  max-width: 800px;
}

.search-page-form {
  max-width: 760px;
}

.search-page-form input {
  flex: 1;
}

.compact-list {
  display: grid;
  gap: 14px;
}

.compact-card a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.78);
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card a:hover {
  background: #fdf2f8;
  transform: translateX(4px);
}

.compact-card img {
  width: 112px;
  height: 72px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 10px;
  background: linear-gradient(135deg, #fdf2f8, #ffedd5);
}

.compact-card strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.compact-card small {
  display: block;
  margin-top: 6px;
  color: var(--gray-500);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0;
  color: var(--gray-600);
  font-size: 14px;
}

.detail-wrap {
  padding-bottom: 70px;
}

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

.detail-main,
.detail-side {
  display: grid;
  gap: 24px;
}

.detail-side {
  position: sticky;
  top: 92px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #000000;
  aspect-ratio: 16 / 9;
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(236, 72, 153, 0.30), rgba(0, 0, 0, 0.62));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 20px 45px rgba(236, 72, 153, 0.35);
  font-size: 28px;
}

.player-start strong {
  font-size: 18px;
}

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

.player-status {
  position: absolute;
  left: 18px;
  bottom: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.detail-card,
.side-card {
  padding: 26px;
}

.detail-card h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  color: var(--gray-900);
}

.detail-card h2,
.side-card h2 {
  margin: 24px 0 12px;
  font-size: 22px;
  color: var(--gray-900);
}

.side-card h2 {
  margin-top: 0;
}

.detail-card p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.86;
  font-size: 16px;
}

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

.detail-meta span {
  padding: 9px 13px;
  border-radius: 999px;
  background: #fdf2f8;
  color: var(--pink-dark);
  font-weight: 800;
}

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

.detail-tags a {
  color: var(--pink-dark);
  background: #fdf2f8;
}

.poster-side {
  padding: 0;
}

.poster-side img {
  aspect-ratio: 3 / 4;
}

.block-btn {
  display: block;
  margin: 16px;
  text-align: center;
}

.site-footer {
  margin-top: 40px;
  padding: 54px 0 24px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 36px;
}

.footer-logo {
  color: var(--white);
  font-size: 20px;
}

.site-footer p {
  margin: 18px 0 0;
  color: #9ca3af;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

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

.footer-links a {
  color: #d1d5db;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
  font-size: 14px;
}

.movie-card.is-hidden {
  display: none;
}

.no-results {
  grid-column: 1 / -1;
  padding: 34px;
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--gray-600);
  text-align: center;
  box-shadow: var(--shadow-card);
}

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

  .mobile-toggle {
    display: block;
  }

  .hero-content {
    padding-right: 0;
    max-width: 690px;
  }

  .hero-overlay-panel {
    display: none;
  }

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

  .featured-grid,
  .category-grid,
  .category-overview-grid,
  .footer-grid,
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail-side {
    position: static;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .nav-shell {
    height: 64px;
  }

  .logo-text {
    font-size: 18px;
  }

  .hero-carousel {
    min-height: 560px;
  }

  .hero-content h2,
  .page-hero h1 {
    font-size: 42px;
  }

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

  .hero-tags span {
    font-size: 12px;
  }

  .section {
    padding: 44px 0;
  }

  .soft-section,
  .category-band,
  .quick-section {
    padding: 26px 16px;
  }

  .movie-grid,
  .featured-grid,
  .category-grid,
  .category-overview-grid,
  .footer-grid,
  .detail-grid,
  .filter-box {
    grid-template-columns: 1fr;
  }

  .rank-grid,
  .category-movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .card-body {
    padding: 14px;
  }

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

  .card-body p,
  .tag-row {
    display: none;
  }

  .movie-meta {
    font-size: 12px;
  }

  .page-hero {
    padding: 64px 0;
  }

  .detail-card,
  .side-card {
    padding: 20px;
  }

  .mobile-search {
    align-items: stretch;
  }

  .mobile-search input {
    min-width: 0;
    flex: 1;
  }
}
