:root {
  --pink-50: #fdf2f8;
  --pink-100: #fce7f3;
  --pink-200: #fbcfe8;
  --pink-300: #f9a8d4;
  --pink-400: #f472b6;
  --pink-500: #ec4899;
  --rose-500: #f43f5e;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.10);
  --shadow-strong: 0 24px 60px rgba(236, 72, 153, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--pink-50), var(--white) 38%, var(--pink-50));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

img {
  background: linear-gradient(135deg, var(--pink-100), var(--pink-300));
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--pink-500), var(--pink-400), var(--rose-500));
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

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

.brand {
  color: var(--white);
  font-size: 24px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--pink-500);
  background: var(--white);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.22);
  font-size: 14px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--white);
  font-weight: 600;
}

.main-nav a {
  opacity: 0.94;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: var(--white);
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--gray-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

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

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

.hero-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding-bottom: 72px;
  color: var(--white);
}

.hero-kicker {
  margin: 0 0 14px;
  color: var(--pink-200);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero h1,
.hero h2,
.detail-copy h1 {
  max-width: 850px;
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.06;
  font-weight: 900;
}

.hero-movie-title {
  max-width: 760px;
  color: var(--pink-100);
}

.hero p,
.detail-copy p {
  max-width: 720px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  line-height: 1.8;
}

.tag-row,
.chip-row,
.category-chip-grid,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-row {
  margin: 18px 0 24px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 700;
}

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

.primary-button {
  color: var(--white);
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
  box-shadow: var(--shadow-strong);
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.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: var(--white);
  background: rgba(0, 0, 0, 0.45);
  font-size: 36px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.52);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 32px;
  background: var(--white);
}

.page-sections,
.listing-content {
  padding: 56px 0;
}

.page-sections {
  display: grid;
  gap: 64px;
}

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

.section-heading.compact {
  margin-bottom: 18px;
}

.section-dot {
  width: 12px;
  height: 28px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--pink-500), var(--rose-500));
}

.section-heading h2 {
  margin: 0;
  color: var(--gray-800);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--pink-300), rgba(249, 168, 212, 0));
}

.section-link {
  color: var(--pink-500);
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(236, 72, 153, 0.18);
}

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

.movie-card-large .poster-link {
  aspect-ratio: 16 / 10;
}

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

.movie-card:hover img,
.horizontal-card:hover img {
  transform: scale(1.07);
}

.badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.badge-category {
  top: 12px;
  left: 12px;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
}

.badge-year {
  right: 12px;
  bottom: 12px;
  background: rgba(17, 24, 39, 0.72);
}

.poster-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  color: var(--pink-500);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-card h3,
.horizontal-card h3 {
  margin: 0 0 10px;
  color: var(--gray-800);
  font-size: 17px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.horizontal-card h3 a:hover,
.rank-title:hover {
  color: var(--pink-500);
}

.movie-card p,
.horizontal-card p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.movie-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--pink-50);
}

.feature-band {
  padding: 32px;
  border-radius: 32px;
  background: linear-gradient(90deg, var(--pink-100), #ffe4e6);
  box-shadow: inset 0 0 0 1px rgba(236, 72, 153, 0.08);
}

.feature-band.soft {
  background: linear-gradient(135deg, #fff1f2, var(--pink-100));
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  width: 390px;
  flex: 0 0 auto;
  padding: 12px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.horizontal-cover {
  position: relative;
  height: 130px;
  overflow: hidden;
  border-radius: 16px;
}

.horizontal-cover span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--pink-500);
  background: rgba(255, 255, 255, 0.9);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  gap: 32px;
}

.ranking-panel,
.ranking-list-card,
.content-card,
.player-card,
.meta-card {
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.ranking-panel,
.ranking-list-card,
.content-card,
.player-card,
.meta-card {
  padding: 24px;
}

.ranking-panel h2,
.ranking-list-card h2,
.content-card h2,
.mini-title {
  margin: 0 0 18px;
  color: var(--gray-800);
  font-size: 24px;
}

.mini-title {
  margin: 28px 0 14px;
  color: var(--white);
}

.ranking-item {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--gray-100);
}

.ranking-item:last-child {
  border-bottom: 0;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: var(--gray-600);
  background: var(--gray-100);
  font-weight: 900;
}

.top-rank .rank-number {
  color: var(--white);
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
}

.rank-title {
  overflow: hidden;
  color: var(--gray-800);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-heat {
  color: var(--gray-500);
  font-size: 12px;
}

.sub-hero {
  padding: 70px 0 54px;
  color: var(--white);
  background: radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.28), transparent 30%), linear-gradient(100deg, var(--pink-500), var(--rose-500));
}

.sub-hero p {
  margin: 0 0 12px;
  color: var(--pink-100);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.sub-hero h1 {
  max-width: 820px;
  margin: 0 0 24px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.search-box {
  max-width: 620px;
  margin-bottom: 20px;
}

.search-box input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 18px;
  color: var(--gray-800);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.14);
  outline: none;
}

.chip,
.category-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--white);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.sub-hero .chip,
.sub-hero .category-chip {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.chip.is-active,
.category-chip:hover,
.chip:hover {
  color: var(--white);
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
}

.listing-page .listing-content {
  min-height: 50vh;
}

.empty-state {
  display: none;
  padding: 80px 0;
  color: var(--gray-500);
  text-align: center;
  font-size: 20px;
}

.empty-state.is-visible {
  display: block;
}

.ranking-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 48px 0 18px;
}

.detail-hero {
  padding: 70px 0;
  color: var(--white);
  background-position: center;
  background-size: cover;
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

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

.detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  padding: 48px 0 64px;
}

.detail-content {
  display: grid;
  gap: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.56));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  color: var(--pink-500);
  background: rgba(255, 255, 255, 0.94);
  font-size: 28px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.26);
}

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

.player-message {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: none;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--white);
  background: rgba(17, 24, 39, 0.78);
  font-size: 14px;
}

.player-message.is-visible {
  display: block;
}

.content-card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
  line-height: 1.9;
}

.prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.prev-next a {
  padding: 18px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.prev-next span {
  display: block;
  margin-bottom: 8px;
  color: var(--gray-500);
  font-size: 13px;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 22px;
}

.meta-card {
  display: grid;
  gap: 14px;
}

.meta-card div {
  display: grid;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-100);
}

.meta-card div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.meta-card span {
  color: var(--gray-500);
  font-size: 13px;
}

.ranking-panel.small .ranking-item {
  grid-template-columns: 34px 1fr;
}

.ranking-panel.small .rank-heat {
  display: none;
}

.site-footer {
  padding-top: 48px;
  background: linear-gradient(180deg, var(--pink-50), var(--pink-100));
  border-top: 1px solid var(--pink-200);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 34px;
}

.footer-brand {
  margin-bottom: 14px;
  color: var(--gray-800);
  font-size: 22px;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
  color: var(--gray-600);
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--gray-800);
}

.site-footer a {
  display: block;
  margin: 10px 0;
  color: var(--gray-600);
}

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

.footer-bottom {
  padding: 20px 0;
  color: var(--gray-600);
  text-align: center;
  border-top: 1px solid var(--pink-200);
}

@media (max-width: 1080px) {
  .five-columns,
  .four-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ranking-columns,
  .detail-main,
  .split-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 64px;
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border-radius: 18px;
    background: linear-gradient(120deg, var(--pink-500), var(--rose-500));
    box-shadow: var(--shadow-strong);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .hero {
    height: 540px;
  }

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

  .hero-arrow {
    display: none;
  }

  .three-columns,
  .four-columns,
  .five-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .feature-band {
    padding: 20px;
    border-radius: 24px;
  }

  .horizontal-card {
    grid-template-columns: 120px 1fr;
    width: 320px;
  }

  .detail-hero-inner,
  .prev-next,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .hero {
    height: 520px;
  }

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

  .three-columns,
  .four-columns,
  .five-columns {
    grid-template-columns: 1fr;
  }

  .movie-card p {
    min-height: 0;
  }

  .sub-hero {
    padding: 48px 0 38px;
  }
}
