:root {
  --pink: #ec4899;
  --pink-dark: #be185d;
  --orange: #f97316;
  --yellow: #facc15;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff7ed;
  --line: #f3e8ff;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark,
.footer-brand span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  background: linear-gradient(135deg, #f472b6, #fb923c);
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.28);
}

.brand-text strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  background: linear-gradient(90deg, var(--pink), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 700;
}

.desktop-nav a,
.mobile-nav a {
  position: relative;
  color: #374151;
  transition: color 0.2s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--pink), var(--orange));
  transition: transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a.active {
  color: var(--pink-dark);
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  color: #374151;
  background: #f9fafb;
}

.mobile-nav {
  display: none;
  padding: 12px 20px 20px;
  border-top: 1px solid #f3f4f6;
  background: #fff;
}

.mobile-nav a {
  display: block;
  padding: 13px 16px;
  border-radius: 14px;
  font-weight: 700;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--orange));
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: linear-gradient(135deg, #f472b6 0%, #fb923c 58%, #facc15 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image: radial-gradient(circle at 20% 20%, #fff 0 3px, transparent 4px), radial-gradient(circle at 80% 40%, #fff 0 4px, transparent 5px);
  background-size: 60px 60px, 90px 90px;
}

.hero-carousel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(to top, #fff7ed, transparent);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 56px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.hero-copy h1 {
  margin: 24px 0 20px;
  color: #fff;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 20px;
  line-height: 1.85;
}

.hero-actions,
.detail-copy .btn {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

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

.btn.primary {
  color: var(--pink-dark);
  background: #fff;
  box-shadow: var(--shadow);
}

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

.hero-poster {
  position: relative;
  justify-self: end;
  width: min(390px, 100%);
  aspect-ratio: 2 / 3;
  border: 10px solid rgba(255, 255, 255, 0.34);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(88, 28, 135, 0.34);
  transform: rotate(2deg);
}

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

.hero-poster span,
.score-badge,
.detail-poster span {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 34px;
  border-radius: 999px;
  color: #7c2d12;
  font-weight: 900;
  background: #fef3c7;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.hero-controls {
  position: absolute;
  left: 0;
  bottom: 96px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 3;
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.hero-prev,
.hero-next {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  opacity: 0.7;
}

.hero-dot.active {
  width: 28px;
  opacity: 1;
  background: #fff;
}

.feature-strip {
  position: relative;
  z-index: 4;
  width: min(1180px, calc(100% - 32px));
  margin: -56px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-strip a {
  padding: 26px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.feature-strip a:hover {
  transform: translateY(-4px);
}

.feature-strip strong {
  display: block;
  margin-bottom: 8px;
  color: #9d174d;
  font-size: 22px;
}

.feature-strip span {
  color: var(--muted);
}

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

.section-shell.narrow {
  width: min(900px, calc(100% - 32px));
}

.soft-bg {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, #fff7ed, #fff);
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading span,
.page-hero span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--pink);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.detail-content h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
}

.section-heading p,
.page-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid #fce7f3;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(236, 72, 153, 0.18);
}

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

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

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

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(236, 72, 153, 0.86);
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover {
  color: var(--pink-dark);
}

.movie-meta {
  margin: 8px 0 10px;
  color: #9ca3af;
  font-size: 13px;
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #9d174d;
  font-size: 12px;
  font-weight: 700;
  background: #fce7f3;
}

.tag-row.large span {
  padding: 8px 12px;
  font-size: 13px;
}

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

.category-card,
.overview-card {
  padding: 22px;
  border: 1px solid #fce7f3;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(236, 72, 153, 0.15);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.category-thumbs img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  object-fit: cover;
}

.category-card h3,
.overview-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-card p,
.overview-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.overview-head span {
  font-size: 22px;
  font-weight: 900;
}

.overview-head strong {
  color: var(--pink-dark);
  font-size: 14px;
}

.overview-card ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.overview-card li + li {
  border-top: 1px solid #fce7f3;
}

.overview-card li a {
  display: block;
  padding: 10px 0;
  color: #374151;
  font-weight: 700;
}

.overview-card li a:hover {
  color: var(--pink-dark);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 36px;
  align-items: start;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-row {
  display: grid;
  grid-template-columns: 48px 58px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid #fce7f3;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: #f9a8d4;
}

.rank-no {
  color: var(--pink-dark);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  width: 58px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
}

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

.rank-info strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score {
  justify-self: end;
  padding: 6px 10px;
  border-radius: 999px;
  color: #7c2d12;
  font-weight: 900;
  background: #fef3c7;
}

.page-hero {
  padding: 88px 16px 64px;
  text-align: center;
  background: linear-gradient(135deg, #fff7ed, #fdf2f8 55%, #fff);
}

.category-hero {
  background: linear-gradient(135deg, #fdf2f8, #fff7ed);
}

.local-search {
  width: min(760px, 100%);
  margin: 28px auto 0;
}

.local-search input {
  width: 100%;
  height: 56px;
  padding: 0 22px;
  border: 2px solid #fbcfe8;
  border-radius: 999px;
  color: #111827;
  background: #fff;
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.1);
  outline: none;
}

.local-search input:focus {
  border-color: var(--pink);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(960px, 100%);
  margin: 22px auto 0;
}

.filter-btn {
  padding: 9px 14px;
  border: 1px solid #fbcfe8;
  border-radius: 999px;
  color: #9d174d;
  font-weight: 800;
  background: #fff;
}

.filter-btn.active,
.filter-btn:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, var(--pink), var(--orange));
}

.detail-top {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  filter: blur(2px);
}

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

.detail-top::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.55)), linear-gradient(to top, #111827, transparent 40%);
}

.detail-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 58px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: #fff;
}

.detail-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 38px;
  align-items: end;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.26);
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

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

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
}

.detail-line {
  max-width: 820px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.8;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.16);
}

.detail-copy .btn {
  margin-top: 24px;
}

.player-section {
  padding: 54px 16px;
  background: #111827;
}

.player-shell {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #000;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.player-cover span {
  position: absolute;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 18px 42px rgba(236, 72, 153, 0.35);
}

.player-cover.is-hidden {
  display: none;
}

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

.detail-content article {
  padding: 30px;
  border: 1px solid #fce7f3;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.07);
}

.detail-content h2 {
  font-size: 30px;
}

.detail-content p {
  margin: 0;
  color: #374151;
  line-height: 2;
}

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

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 32px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand strong {
  font-size: 20px;
}

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

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

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #d1d5db;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f3f4f6;
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, #f472b6, #fb923c);
}

::selection {
  color: #831843;
  background: #fbcfe8;
}

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

  .split-layout,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .mobile-nav.open {
    display: block;
  }

  .brand-text small {
    display: none;
  }

  .hero-carousel,
  .hero-inner {
    min-height: 780px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 24px;
    padding: 34px 0 90px;
  }

  .hero-poster {
    justify-self: start;
    width: min(230px, 72vw);
  }

  .hero-controls {
    bottom: 48px;
  }

  .feature-strip,
  .category-grid,
  .overview-grid,
  .split-layout,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-strip {
    margin-top: -32px;
  }

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

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

  .detail-poster {
    width: min(240px, 70vw);
  }
}

@media (max-width: 560px) {
  .nav-shell {
    height: 66px;
  }

  .brand-mark,
  .footer-brand span {
    width: 40px;
    height: 40px;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .feature-strip {
    width: min(100% - 22px, 1180px);
  }

  .section-shell {
    width: min(100% - 22px, 1180px);
    padding: 54px 0;
  }

  .movie-grid.wide,
  .movie-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 40px 54px minmax(0, 1fr);
  }

  .rank-score {
    display: none;
  }
}
