:root {
  --rose-50: #fff1f5;
  --rose-100: #ffe4ec;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --pink-500: #ec4899;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #ffe1ea;
  --card: #ffffff;
  --shadow: 0 24px 70px rgba(244, 63, 94, 0.16);
}

* {
  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: var(--text);
  background: linear-gradient(180deg, rgba(255, 241, 245, 0.65), #ffffff 38%, rgba(255, 241, 245, 0.45));
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.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.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
}

.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: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--rose-400), var(--pink-500));
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.35);
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong,
.footer-brand {
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500), var(--rose-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  margin-top: 4px;
  font-size: 12px;
  font-style: normal;
  color: var(--muted);
}

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

.nav-link,
.mobile-link {
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--rose-50);
  cursor: pointer;
  place-items: center;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  margin: 3px 0;
  display: block;
  background: var(--rose-500);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
}

.mobile-link:hover,
.mobile-link.active {
  background: var(--rose-50);
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 72px 0 110px;
  background: radial-gradient(circle at top left, rgba(251, 113, 133, 0.24), transparent 34%), linear-gradient(135deg, #fff1f5, #fff7fb 52%, #fff1f5);
}

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(56px);
  opacity: 0.35;
  pointer-events: none;
}

.hero-glow-left {
  left: -160px;
  top: 20px;
  background: #fb7185;
}

.hero-glow-right {
  right: -180px;
  bottom: -120px;
  background: #ec4899;
}

.hero-wrap {
  position: relative;
}

.hero-title-block {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
}

.section-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rose-500);
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 13px;
}

.hero-title-block h1,
.page-hero h1,
.detail-info h1 {
  margin: 12px 0 16px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-title-block h1,
.page-hero h1 {
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500), var(--rose-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title-block p,
.page-hero p,
.section-heading p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

.hero-slider {
  position: relative;
  min-height: 460px;
  border-radius: 30px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero-copy {
  padding: clamp(28px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #ffffff, #fff1f5);
}

.hero-copy h1 {
  margin: 14px 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0;
  max-width: 620px;
  color: #4b5563;
  line-height: 1.8;
  font-size: 17px;
}

.hero-tags,
.tag-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-tags span,
.tag-line span {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--rose-500);
  background: rgba(244, 63, 94, 0.09);
  font-size: 12px;
  font-weight: 800;
}

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

.hero-actions.simple {
  margin-top: 24px;
}

.primary-btn,
.ghost-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 16px 36px rgba(244, 63, 94, 0.26);
}

.ghost-btn {
  color: var(--rose-500);
  background: #ffffff;
  border: 1px solid var(--line);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(244, 63, 94, 0.22);
}

.hero-poster {
  position: relative;
  min-height: 460px;
  overflow: hidden;
}

.hero-poster::after,
.feature-cover a::after,
.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.68));
  pointer-events: none;
}

.hero-poster img,
.feature-cover img,
.poster-link img,
.rank-poster img,
.detail-poster img,
.category-posters img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--rose-50), #ffffff);
}

.hero-dots {
  position: absolute;
  left: clamp(28px, 5vw, 64px);
  bottom: 28px;
  display: flex;
  gap: 10px;
  z-index: 5;
}

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: #fecdd3;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 58px;
  background: var(--rose-500);
}

.feature-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  margin-top: -70px;
  margin-bottom: 72px;
  border-radius: 28px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 3;
}

.feature-cover a {
  min-height: 420px;
  height: 100%;
  display: block;
  position: relative;
  overflow: hidden;
}

.feature-cover img,
.poster-link img,
.category-card img {
  transition: transform 0.55s ease;
}

.feature-cover a:hover img,
.movie-card:hover .poster-link img,
.category-card:hover img {
  transform: scale(1.08);
}

.feature-cover span,
.feature-cover strong {
  position: absolute;
  left: 30px;
  z-index: 2;
  color: #ffffff;
}

.feature-cover span {
  bottom: 84px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--rose-500);
  font-size: 12px;
  font-weight: 900;
}

.feature-cover strong {
  bottom: 34px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.feature-list {
  padding: 34px;
  background: linear-gradient(135deg, var(--rose-50), #ffffff);
}

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

.mini-rank {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mini-rank:hover {
  background: #ffffff;
  transform: translateX(4px);
}

.mini-rank span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-400), var(--pink-500));
  font-weight: 900;
}

.mini-rank strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-rank em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  max-width: 120px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.section-block {
  margin-top: 72px;
  margin-bottom: 72px;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading.tight {
  margin-bottom: 20px;
}

.section-heading span {
  color: var(--rose-500);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.section-heading h2 {
  margin: 8px 0 10px;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.03em;
}

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

.section-heading.with-link > a {
  color: var(--rose-500);
  font-weight: 900;
}

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

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

.category-card {
  min-height: 260px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(244, 63, 94, 0.11);
  border: 1px solid rgba(244, 63, 94, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-posters {
  height: 130px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 18px;
}

.category-posters img {
  border-radius: 12px;
}

.category-card span {
  color: var(--rose-500);
  font-size: 12px;
  font-weight: 900;
}

.category-card h2 {
  margin: 6px 0 8px;
  font-size: 22px;
}

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

.catalog-toolbar {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 36px rgba(244, 63, 94, 0.08);
}

.search-box {
  display: grid;
  gap: 8px;
}

.search-box span {
  color: var(--rose-500);
  font-size: 13px;
  font-weight: 900;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  outline: none;
  color: var(--text);
  background: #ffffff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
  border-color: var(--rose-400);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.1);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  border: 0;
  padding: 9px 14px;
  border-radius: 999px;
  color: #4b5563;
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(244, 63, 94, 0.08);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
  transform: translateY(-1px);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(244, 63, 94, 0.08);
  box-shadow: 0 18px 46px rgba(244, 63, 94, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--rose-50);
}

.play-mark {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  color: var(--rose-500);
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  font-size: 14px;
}

.card-body {
  padding: 16px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.meta-line span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--rose-50);
}

.card-body h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover,
.rank-info h2 a:hover {
  color: var(--rose-500);
}

.card-body p {
  min-height: 50px;
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.7;
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  border-radius: 22px;
  background: #ffffff;
}

.page-hero {
  padding: 74px 0;
  background: radial-gradient(circle at left top, rgba(251, 113, 133, 0.24), transparent 38%), linear-gradient(135deg, #fff1f5, #ffffff);
}

.category-hero {
  padding-bottom: 92px;
}

.detail-hero {
  padding: 54px 0 64px;
  background: radial-gradient(circle at top left, rgba(251, 113, 133, 0.2), transparent 38%), linear-gradient(135deg, #fff1f5, #ffffff);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
  background: #ffffff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-info .lead {
  color: #4b5563;
  font-size: 18px;
  line-height: 1.85;
  margin: 0;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.detail-meta span {
  padding: 9px 12px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--rose-500);
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.08);
}

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

.player-section {
  margin-top: 56px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
  aspect-ratio: 16 / 9;
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.58));
  z-index: 4;
}

.player-start.hidden {
  display: none;
}

.player-start span {
  width: 86px;
  height: 86px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--rose-500);
  background: #ffffff;
  font-size: 34px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.player-start:hover span {
  transform: scale(1.08);
}

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

.story-card {
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(244, 63, 94, 0.08);
  box-shadow: 0 18px 46px rgba(244, 63, 94, 0.09);
}

.story-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.story-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 86px 48px minmax(0, 1fr) 110px;
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.rank-poster {
  width: 86px;
  height: 116px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--rose-50);
}

.rank-index {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
}

.rank-info h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rank-info p {
  margin: 0 0 10px;
  color: #4b5563;
  line-height: 1.7;
}

.rank-score {
  text-align: right;
}

.rank-score strong {
  display: block;
  color: var(--rose-500);
  font-size: 28px;
}

.rank-score span {
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  margin-top: 90px;
  padding: 52px 0;
  background: #111827;
  color: #d1d5db;
}

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

.site-footer p {
  max-width: 520px;
  color: #9ca3af;
  line-height: 1.8;
}

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

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 9px 0;
  color: #d1d5db;
}

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

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

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

  .mobile-toggle {
    display: grid;
  }

  .hero-slide,
  .feature-panel,
  .detail-grid,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    min-height: 760px;
  }

  .hero-poster {
    min-height: 360px;
  }

  .feature-panel {
    margin-top: -52px;
  }

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

  .rank-score {
    grid-column: 3;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .container,
  .header-inner,
  .mobile-nav {
    width: min(100% - 22px, 1180px);
  }

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

  .brand-text em {
    display: none;
  }

  .hero-section,
  .page-hero,
  .detail-hero {
    padding-top: 46px;
  }

  .hero-copy {
    padding: 28px;
  }

  .hero-slider {
    min-height: 700px;
    border-radius: 24px;
  }

  .hero-poster {
    min-height: 320px;
  }

  .hero-dots {
    left: 28px;
    bottom: 22px;
  }

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

  .category-card {
    min-height: auto;
  }

  .category-posters {
    height: 96px;
  }

  .card-body {
    padding: 13px;
  }

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

  .card-body p {
    min-height: auto;
    font-size: 13px;
  }

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

  .detail-poster {
    max-width: 320px;
  }

  .player-start span {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }

  .rank-row {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-poster {
    width: 58px;
    height: 80px;
  }

  .rank-index {
    position: absolute;
    width: 30px;
    height: 30px;
    margin-left: 38px;
    margin-top: -50px;
    font-size: 12px;
  }

  .rank-info h2 {
    font-size: 18px;
  }

  .rank-score {
    grid-column: 2;
  }
}
