:root {
  color-scheme: light;
  --rose: #f43f5e;
  --rose-dark: #e11d48;
  --pink: #ec4899;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff1f2;
  --card: rgba(255, 255, 255, 0.92);
}

body {
  background: linear-gradient(135deg, #f9fafb 0%, rgba(255, 241, 242, 0.75) 45%, rgba(253, 242, 248, 0.75) 100%);
  color: var(--ink);
}

img {
  background: linear-gradient(135deg, #ffe4e6, #fce7f3);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.95);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.header-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.header-row {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--rose), var(--pink), #fb7185);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-weight: 600;
  color: #374151;
}

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

.nav-links a:hover,
.mobile-menu a:hover,
.footer a:hover {
  color: var(--rose);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-form {
  display: none;
  align-items: center;
  position: relative;
}

.search-form input,
.local-filter input,
.local-filter select,
.search-page-box input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  outline: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form input {
  width: 13rem;
  padding: 0.55rem 1rem 0.55rem 2.6rem;
}

.search-form input:focus,
.local-filter input:focus,
.local-filter select:focus,
.search-page-box input:focus {
  border-color: rgba(244, 63, 94, 0.6);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.search-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  width: 1rem;
  height: 1rem;
  transform: translateY(-50%);
  color: #9ca3af;
}

.menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  color: #374151;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.mobile-menu {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid #e5e7eb;
  animation: fadeIn 0.24s ease;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu nav {
  display: grid;
  gap: 0.85rem;
  font-weight: 600;
  color: #374151;
}

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  margin-bottom: 3rem;
  color: #fff;
  background: radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.24), transparent 30%), linear-gradient(115deg, rgba(244, 63, 94, 0.96), rgba(236, 72, 153, 0.92) 55%, rgba(251, 113, 133, 0.94));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.9) 0 2px, transparent 2px);
  background-size: 36px 36px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% 20%;
  height: 340px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(12px);
  transform: rotate(-8deg);
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 500px;
  display: grid;
  align-items: center;
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2.75rem, 6vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 900;
  margin-bottom: 1.25rem;
}

.hero h1 span {
  display: block;
  margin-top: 0.85rem;
  font-size: clamp(1.55rem, 3.5vw, 2.6rem);
  line-height: 1.08;
  color: #ffe4e6;
}

.hero p {
  max-width: 42rem;
  font-size: 1.12rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.92);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #fff;
  color: var(--rose);
  box-shadow: 0 18px 38px rgba(136, 19, 55, 0.22);
}

.btn-primary:hover {
  background: #fff1f2;
  box-shadow: 0 24px 44px rgba(136, 19, 55, 0.3);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero-panel {
  width: 100%;
  max-width: 31rem;
  justify-self: center;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  background: rgba(17, 24, 39, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 34px 70px rgba(88, 28, 60, 0.38);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.hero-slide {
  display: none;
}

.hero-slide.is-active {
  display: block;
  animation: fadeIn 0.45s ease;
}

.hero-poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.82));
}

.hero-slide-body {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.15rem;
  z-index: 2;
}

.hero-slide-body h2 {
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 900;
  margin-bottom: 0.35rem;
}

.hero-slide-body p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.84);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-slide-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.46rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--rose);
  font-weight: 800;
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.05rem;
}

.hero-dots {
  display: flex;
  gap: 0.45rem;
}

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

.hero-dot.is-active {
  width: 1.4rem;
  background: #fff;
}

.hero-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.section {
  margin-bottom: 4rem;
}

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

.section-title {
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #111827;
}

.section-subtitle {
  margin-top: 0.35rem;
  color: #6b7280;
  line-height: 1.75;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--rose);
  font-weight: 800;
}

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

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

.movie-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #ffe4e6, #fce7f3);
}

.poster-link.tall {
  aspect-ratio: 3 / 4;
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.76));
}

.badge,
.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.badge {
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.32rem 0.65rem;
  color: #fff;
  background: linear-gradient(90deg, var(--rose), var(--pink));
}

.year-badge {
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.3rem 0.62rem;
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
}

.rank-badge {
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.32rem 0.65rem;
  color: #fff;
  background: rgba(17, 24, 39, 0.78);
}

.movie-body {
  padding: 1rem;
}

.movie-title {
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 900;
  color: #111827;
  margin-bottom: 0.45rem;
}

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

.movie-desc {
  color: #6b7280;
  font-size: 0.92rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
  color: #6b7280;
  font-size: 0.82rem;
}

.movie-meta span,
.tag-link {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: #fff1f2;
  color: #be123c;
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.tag-link:hover {
  background: #ffe4e6;
}

.feature-strip {
  padding: 2rem;
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.88), rgba(253, 242, 248, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 60px rgba(244, 63, 94, 0.08);
}

.scroll-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.35rem 0.2rem 1.2rem;
  scroll-snap-type: x proximity;
}

.scroll-row .movie-card {
  min-width: 18rem;
  scroll-snap-align: start;
}

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

.category-card {
  display: block;
  padding: 1.35rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 55px rgba(15, 23, 42, 0.13);
}

.category-card h2,
.category-card h3 {
  font-size: 1.22rem;
  font-weight: 900;
  color: #111827;
  margin-bottom: 0.4rem;
}

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

.page-hero {
  padding: 3.5rem 0 2rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: #6b7280;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--rose);
  font-weight: 800;
}

.page-title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.055em;
  color: #111827;
  margin-bottom: 0.85rem;
}

.page-desc {
  max-width: 52rem;
  color: #6b7280;
  line-height: 1.85;
  font-size: 1.05rem;
}

.local-filter,
.search-page-box {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  margin-bottom: 1.5rem;
}

.local-filter input,
.local-filter select,
.search-page-box input {
  padding: 0.75rem 1rem;
}

.detail-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
  padding-bottom: 4rem;
}

.player-card,
.detail-card,
.related-panel {
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.player-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0f172a;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(244, 63, 94, 0.18), rgba(15, 23, 42, 0.62));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 24px 54px rgba(244, 63, 94, 0.42);
  transform: translateZ(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.play-button:hover {
  transform: scale(1.05);
  box-shadow: 0 30px 64px rgba(244, 63, 94, 0.5);
}

.play-button svg {
  margin-left: 0.2rem;
}

.player-caption {
  padding: 1.2rem 1.35rem;
}

.player-caption h1 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1.2;
  font-weight: 900;
  color: #111827;
  margin-bottom: 0.6rem;
}

.player-caption p {
  color: #6b7280;
  line-height: 1.75;
}

.detail-card {
  padding: 1.35rem;
}

.detail-card h2,
.related-panel h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 900;
  color: #111827;
  margin-bottom: 0.85rem;
}

.detail-card p {
  color: #4b5563;
  line-height: 1.9;
  margin-bottom: 1.1rem;
}

.side-poster {
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  background: #fff;
}

.side-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.side-poster-body {
  padding: 1rem;
}

.related-panel {
  padding: 1.2rem;
}

.related-list {
  display: grid;
  gap: 0.85rem;
}

.related-item {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.55rem;
  border-radius: 1rem;
  transition: background 0.2s ease;
}

.related-item:hover {
  background: #fff1f2;
}

.related-item img {
  width: 5.5rem;
  height: 4rem;
  object-fit: cover;
  border-radius: 0.8rem;
}

.related-item h3 {
  font-weight: 900;
  line-height: 1.35;
  color: #111827;
}

.related-item p {
  margin-top: 0.25rem;
  color: #6b7280;
  font-size: 0.84rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-list {
  display: grid;
  gap: 1rem;
}

.rank-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.rank-number {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 15px 30px rgba(244, 63, 94, 0.25);
}

.rank-content h2,
.rank-content h3 {
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 0.35rem;
}

.rank-content p {
  color: #6b7280;
  line-height: 1.65;
}

.no-results {
  display: none;
  padding: 2rem;
  text-align: center;
  color: #6b7280;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.82);
}

.no-results.is-visible {
  display: block;
}

.footer {
  margin-top: 4rem;
  background: rgba(255, 255, 255, 0.86);
  border-top: 1px solid #e5e7eb;
}

.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1rem 2rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer h2,
.footer h3 {
  font-weight: 900;
  color: #111827;
  margin-bottom: 0.8rem;
}

.footer p,
.footer li {
  color: #6b7280;
  line-height: 1.75;
}

.footer ul {
  display: grid;
  gap: 0.4rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 0.9rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (min-width: 640px) {
  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .rank-card {
    grid-template-columns: auto 10rem 1fr;
    align-items: center;
  }
}

@media (min-width: 768px) {
  .nav-links,
  .search-form {
    display: flex;
  }

  .menu-button {
    display: none;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 0.85fr);
  }

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

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

  .local-filter,
  .search-page-box {
    grid-template-columns: minmax(0, 1fr) 13rem 13rem;
    align-items: center;
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 20rem;
  }

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

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

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

@media (max-width: 767px) {
  .hero-panel {
    max-width: none;
  }

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

  .page-hero {
    padding-top: 2.5rem;
  }
}

.btn-primary {
  background: linear-gradient(135deg, var(--rose), var(--pink));
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--rose-dark), #db2777);
}

.btn-ghost {
  color: var(--rose);
  background: #fff1f2;
  border: 1px solid #fecdd3;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.btn-ghost:hover {
  background: #ffe4e6;
}

.hero .btn-primary {
  background: #fff;
  color: var(--rose);
}

.hero .btn-primary:hover {
  background: #fff1f2;
}

.hero .btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.28);
}
