:root {
  --pink: #ec4899;
  --rose: #f43f5e;
  --soft-pink: #fdf2f8;
  --ink: #111827;
  --muted: #6b7280;
  --line: #f3d5e7;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

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

img {
  max-width: 100%;
}

a {
  text-decoration: none;
}

.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(251, 207, 232, 0.8);
}

.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #111827;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.35);
}

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

.nav-link {
  color: #374151;
  font-size: 15px;
  font-weight: 650;
  transition: color 0.25s ease;
}

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

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #fff1f8;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-button span {
  width: 18px;
  height: 2px;
  background: var(--pink);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 24px 18px;
  gap: 12px;
  flex-direction: column;
}

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

.hero-slider {
  position: relative;
  height: 60vh;
  min-height: 480px;
  overflow: hidden;
  background: #111827;
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.5) 48%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px 78px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.hero-kicker {
  margin: 0 0 8px;
  color: #fbcfe8;
  font-weight: 800;
  letter-spacing: 0.14em;
}

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

.hero-tags {
  margin-bottom: 18px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  padding: 6px 12px;
  color: #ffffff;
  background: rgba(236, 72, 153, 0.92);
}

.hero-content h1,
.hero-content h2 {
  max-width: 760px;
  margin: 0 0 16px;
  color: #ffffff;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.hero-desc {
  max-width: 760px;
  margin: 0 0 22px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 26px;
  color: #ffffff;
  font-weight: 700;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  box-shadow: 0 16px 32px rgba(236, 72, 153, 0.35);
}

.ghost-button {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 42px;
  line-height: 42px;
  background: rgba(0, 0, 0, 0.48);
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-2px);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 3;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

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

.hero-dot.active {
  width: 36px;
  background: #ffffff;
}

.page-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.inner-page {
  padding-top: 54px;
  padding-bottom: 48px;
}

.content-section {
  margin: 56px 0;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
  color: #111827;
}

.section-heading p {
  width: 100%;
  color: #6b7280;
}

.section-icon {
  color: var(--pink);
  font-size: 18px;
}

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.movie-card a {
  display: block;
  color: inherit;
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #f3f4f6;
}

.card-large .poster-frame {
  aspect-ratio: 16 / 9;
}

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

.movie-card:hover .poster-frame img {
  transform: scale(1.09);
}

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), transparent 62%);
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.year-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: var(--pink);
}

.poster-one-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 14px;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.5;
  transform: translateY(100%);
  transition: transform 0.28s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card:hover .poster-one-line {
  transform: translateY(0);
}

.card-body {
  padding: 15px;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s ease;
}

.movie-card:hover .card-body h3 {
  color: var(--pink);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  color: #6b7280;
  font-size: 12px;
}

.tag-row span,
.detail-tags span {
  padding: 5px 8px;
  color: #db2777;
  background: #fdf2f8;
}

.rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.rail .movie-card {
  width: 196px;
  flex: 0 0 auto;
}

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

.category-tile,
.category-overview-card {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-radius: 22px;
  background: #111827;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  transition: transform 0.5s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile span,
.category-tile em {
  position: relative;
  z-index: 2;
  display: block;
  padding: 0 20px;
}

.category-tile span {
  padding-top: 88px;
  font-size: 24px;
  font-style: normal;
  font-weight: 900;
}

.category-tile em {
  margin-top: 6px;
  color: #fce7f3;
  font-size: 13px;
  font-style: normal;
}

.page-title-block {
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffffff, #fff1f8);
  box-shadow: 0 16px 40px rgba(236, 72, 153, 0.1);
}

.page-title-block p {
  margin: 0 0 8px;
  color: #db2777;
  font-weight: 800;
}

.page-title-block h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 950;
}

.title-line {
  width: 80px;
  height: 5px;
  margin-top: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--rose));
}

.category-desc {
  max-width: 760px;
  margin-top: 18px !important;
  color: #4b5563 !important;
  line-height: 1.7;
  font-weight: 500 !important;
}

.category-overview {
  margin-top: 28px;
}

.category-overview-card {
  display: block;
  padding: 18px;
  background: #ffffff;
  color: #111827;
}

.mini-posters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 18px;
}

.mini-posters img {
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
}

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

.category-overview-card p {
  margin: 0;
  color: #6b7280;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-panel {
  margin: 26px 0 10px;
}

.site-search-input {
  width: 100%;
  min-height: 54px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid #fbcfe8;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.08);
  color: #111827;
  outline: none;
}

.site-search-input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.search-empty {
  display: none;
  padding: 18px;
  border-radius: 18px;
  color: #9f1239;
  background: #fff1f2;
  font-weight: 800;
}

.search-empty.show {
  display: block;
}

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

.rank-item {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.rank-item a {
  display: grid;
  grid-template-columns: 58px 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  color: inherit;
}

.rank-number {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 950;
  background: linear-gradient(135deg, var(--pink), var(--rose));
}

.rank-item img {
  width: 92px;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  object-fit: cover;
}

.rank-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
}

.rank-item p {
  margin: 0 0 10px;
  color: #6b7280;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #db2777;
  font-size: 12px;
  font-weight: 800;
}

.detail-page {
  background: #ffffff;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.detail-backdrop,
.detail-backdrop div {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: blur(2px);
}

.detail-backdrop div {
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.98), rgba(17, 24, 39, 0.58));
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 38px;
  padding-bottom: 48px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  color: #fbcfe8;
  font-size: 14px;
}

.breadcrumb a {
  color: #ffffff;
  font-weight: 800;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.38);
}

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

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.08;
  font-weight: 950;
}

.detail-one-line {
  max-width: 860px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.75;
}

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

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

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

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

.player-section h2,
.detail-copy h2 {
  font-size: 28px;
  font-weight: 950;
  margin: 0 0 18px;
}

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

.movie-video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(236, 72, 153, 0.16), rgba(0, 0, 0, 0.42));
  cursor: pointer;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

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

.play-icon {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.42);
}

.detail-copy {
  padding-top: 46px;
}

.detail-copy p {
  margin: 0 0 28px;
  color: #374151;
  font-size: 17px;
  line-height: 1.95;
}

.related-section {
  padding-bottom: 34px;
}

.site-footer {
  margin-top: 70px;
  padding: 48px 24px 24px;
  border-top: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #f9fafb, #f3f4f6);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 900;
}

.site-footer p {
  margin: 0;
  color: #6b7280;
  line-height: 1.7;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  color: #4b5563;
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 13px;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  width: 46px;
  height: 46px;
  display: none;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.35);
}

.back-to-top.show {
  display: block;
}

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

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

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

  .mobile-menu-button {
    display: inline-flex;
  }

  .hero-slider {
    height: 68vh;
    min-height: 560px;
  }

  .hero-content {
    padding-bottom: 72px;
  }

  .hero-arrow {
    display: none;
  }

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

  .category-grid,
  .rank-list,
  .footer-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .nav-wrap,
  .page-container {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .hero-desc {
    font-size: 15px;
  }

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

  .card-body {
    padding: 12px;
  }

  .rank-item a {
    grid-template-columns: 44px 72px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-number {
    width: 36px;
    height: 36px;
  }

  .rank-item img {
    width: 72px;
  }

  .video-shell {
    border-radius: 18px;
  }

  .play-icon {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
}
