
* {
  box-sizing: border-box;
}

:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --blue: #60a5fa;
  --purple: #a855f7;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fdf2f8;
  --shadow: 0 20px 35px rgba(17, 24, 39, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.nav-inner {
  max-width: 1180px;
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  box-shadow: 0 10px 20px rgba(236, 72, 153, 0.24);
  font-size: 14px;
}

.brand-text,
.footer-brand span:last-child {
  font-size: 24px;
  background: linear-gradient(90deg, #f472b6, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-weight: 650;
  color: #374151;
  transition: color 0.2s ease;
}

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

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fdf2f8;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #374151;
}

.mobile-panel {
  display: none;
  padding: 8px 20px 18px;
  border-top: 1px solid var(--line);
  background: white;
}

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

.mobile-link {
  display: block;
  padding: 12px 4px;
  color: #374151;
  font-weight: 650;
}

.hero-carousel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: linear-gradient(90deg, #f9a8d4, #c4b5fd, #93c5fd);
}

.hero-track {
  min-height: 560px;
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px) saturate(1.06);
  transform: scale(1.04);
}

.hero-overlay,
.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(236, 72, 153, 0.46), transparent 35%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.86), rgba(88, 28, 135, 0.45), rgba(14, 165, 233, 0.24));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  min-height: 560px;
  margin: 0 auto;
  padding: 70px 20px 95px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 46px;
}

.hero-copy {
  max-width: 760px;
  color: white;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--pink-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  padding: 8px 14px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 900;
}

.hero-copy h2 {
  display: inline-block;
  margin: 0 0 18px;
  padding: 8px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  font-size: clamp(24px, 3vw, 38px);
}

.hero-copy p {
  margin: 0 0 22px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.91);
  font-size: 19px;
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: white;
  background: rgba(255, 255, 255, 0.18);
}

.tag-row span,
.detail-tags a {
  color: var(--pink-dark);
  background: #fce7f3;
}

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

.primary-button,
.ghost-button {
  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;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 16px 28px rgba(236, 72, 153, 0.30);
}

.ghost-button {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.14);
}

.primary-button:hover,
.ghost-button:hover,
.category-card:hover,
.movie-card:hover {
  transform: translateY(-5px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.2);
}

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

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  background: rgba(236, 72, 153, 0.92);
  transform: translate(-50%, -50%);
}

.hero-control-row {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.2);
  font-size: 30px;
  line-height: 1;
}

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

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

.hero-dot.active {
  width: 28px;
  background: white;
}

.hero-wave {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 92px;
}

.section-wide,
.section-narrow {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 20px;
}

.section-narrow {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 460px);
  align-items: center;
  gap: 30px;
}

.search-panel,
.filter-bar {
  margin-top: 20px;
}

.search-panel h2,
.section-heading h2,
.page-hero h1,
.content-card h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
}

.search-panel p,
.page-hero p,
.content-card p {
  color: var(--muted);
  line-height: 1.8;
}

.search-box,
.filter-bar {
  display: flex;
  gap: 12px;
}

.search-box input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  outline: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.search-box input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--pink);
}

.search-box button,
.filter-bar button {
  min-width: 96px;
  border: 0;
  border-radius: 16px;
  color: white;
  background: var(--pink);
  cursor: pointer;
  font-weight: 800;
}

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

.section-heading a {
  color: var(--muted);
  font-weight: 750;
}

.section-heading a:hover {
  color: var(--pink);
}

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

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

.category-card {
  min-height: 190px;
  padding: 26px;
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.16);
}

.category-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--blue));
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

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

.tone-pink { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }
.tone-blue { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.tone-orange { background: linear-gradient(135deg, #ffedd5, #fed7aa); }
.tone-purple { background: linear-gradient(135deg, #f3e8ff, #ddd6fe); }
.tone-rose { background: linear-gradient(135deg, #ffe4e6, #fecdd3); }
.tone-yellow { background: linear-gradient(135deg, #fef9c3, #fde68a); }
.tone-red { background: linear-gradient(135deg, #fee2e2, #fecaca); }
.tone-cyan { background: linear-gradient(135deg, #cffafe, #bae6fd); }
.tone-green { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }
.tone-indigo { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); }

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

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

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

.movie-card:hover {
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.15);
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f3f4f6;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.72));
  opacity: 0.85;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  background: rgba(236, 72, 153, 0.88);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rank-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #ef4444, #f97316);
  font-weight: 900;
}

.movie-info {
  padding: 14px;
}

.movie-info h3 {
  margin: 10px 0 8px;
  font-size: 16px;
  line-height: 1.3;
}

.movie-info h3 a:hover {
  color: var(--pink);
}

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

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #6b7280;
  font-size: 12px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  padding: 86px 20px;
  color: #111827;
}

.page-hero > div {
  max-width: 1180px;
  margin: 0 auto;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px 120px;
  align-items: center;
  padding-top: 34px;
  padding-bottom: 24px;
}

.ranking-section {
  padding-top: 30px;
}

.rank-list-section {
  padding-top: 34px;
  padding-bottom: 18px;
}

.rank-list {
  overflow: hidden;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
}

.rank-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(180px, 320px) 72px;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-row:hover {
  background: #fdf2f8;
}

.rank-num {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  font-weight: 900;
}

.rank-title {
  font-weight: 850;
}

.rank-meta {
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-score {
  color: #f59e0b;
  font-weight: 900;
  text-align: right;
}

.detail-hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  color: white;
}

.detail-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  min-height: 520px;
  margin: 0 auto;
  padding: 68px 20px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: center;
  gap: 42px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.35);
  background: rgba(255, 255, 255, 0.18);
}

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: white;
}

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.1;
}

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

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 750;
}

.detail-tags {
  margin-bottom: 26px;
}

.player-section {
  padding-top: 52px;
  padding-bottom: 22px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.25);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #020617;
  display: block;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(236, 72, 153, 0.26), rgba(2, 6, 23, 0.26));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-overlay span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 20px 38px rgba(236, 72, 153, 0.36);
  font-size: 34px;
}

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

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.content-card {
  padding: 28px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.content-card h2 {
  margin-bottom: 14px;
  font-size: 28px;
}

.content-card p {
  margin: 0;
}

.nav-neighbor {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px;
  padding-bottom: 16px;
}

.nav-neighbor a {
  flex: 1;
  padding: 18px 20px;
  border-radius: 18px;
  background: white;
  color: #374151;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  font-weight: 800;
}

.nav-neighbor a:last-child {
  text-align: right;
}

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #f9fafb, #f3f4f6);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 30px;
}

.footer-inner p {
  color: var(--muted);
  line-height: 1.8;
}

.footer-inner h3 {
  margin: 0 0 16px;
}

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

.footer-inner li {
  margin-bottom: 10px;
}

.footer-inner a:hover {
  color: var(--pink);
}

.footer-bottom {
  padding: 18px 20px 28px;
  color: var(--muted);
  text-align: center;
}

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

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

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

  .menu-button {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 50px;
  }

  .hero-poster {
    display: none;
  }

  .section-narrow,
  .detail-content,
  .footer-inner,
  .detail-inner {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    width: min(260px, 72vw);
  }

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

  .rank-meta {
    display: none;
  }
}

@media (max-width: 620px) {
  .brand-text {
    font-size: 20px;
  }

  .hero-carousel,
  .hero-track,
  .hero-content {
    min-height: 620px;
  }

  .hero-control-row {
    bottom: 52px;
  }

  .section-wide,
  .section-narrow {
    padding: 42px 16px;
  }

  .category-grid,
  .category-grid.large {
    grid-template-columns: 1fr;
  }

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

  .search-box {
    flex-direction: column;
  }

  .search-box button,
  .filter-bar button {
    min-height: 48px;
  }

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

  .detail-copy h1 {
    font-size: 34px;
  }

  .detail-inner {
    padding-top: 42px;
  }

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

  .nav-neighbor {
    flex-direction: column;
  }

  .nav-neighbor a:last-child {
    text-align: left;
  }
}
