
:root {
  --pink: #f472b6;
  --pink-strong: #ec4899;
  --purple: #a855f7;
  --orange: #fb923c;
  --blue: #3b82f6;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #fff7fb;
  --line: #f9a8d4;
  --shadow: 0 18px 45px rgba(236, 72, 153, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #fff7fb 0%, #ffffff 36%, #fdf2f8 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.12);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 22px;
}

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

.brand-text,
.footer-brand span:last-child {
  font-size: 24px;
  line-height: 1;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(236, 72, 153, 0.25);
  font-size: 15px;
}

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

.nav-link,
.mobile-link {
  color: #374151;
  font-weight: 600;
  transition: color 0.25s ease;
}

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

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  border: 2px solid #fbcfe8;
  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;
}

.header-search input,
.mobile-search input {
  width: 240px;
  border: 0;
  outline: 0;
  padding: 10px 14px 10px 18px;
  color: var(--ink);
  background: transparent;
}

.header-search button,
.mobile-search button {
  border: 0;
  padding: 10px 18px;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

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

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

.mobile-panel {
  display: none;
  border-top: 1px solid #fce7f3;
  background: #ffffff;
}

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

.mobile-panel .mobile-search {
  width: min(100% - 32px, 520px);
  margin: 16px auto;
}

.mobile-panel .mobile-search input {
  width: 100%;
}

.mobile-nav {
  display: grid;
  width: min(100% - 32px, 520px);
  margin: 0 auto 18px;
  gap: 12px;
}

.hero {
  position: relative;
  height: 600px;
  margin-top: 68px;
  margin-bottom: 64px;
  overflow: hidden;
  background: #111827;
}

.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;
  transform: scale(1.03);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 0 76px;
  color: #ffffff;
}

.hero-content-inner {
  max-width: 1180px;
}

.hero-kicker {
  display: inline-flex;
  padding: 8px 16px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  font-weight: 700;
}

.hero h1 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.movie-tags,
.detail-tags,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags span,
.movie-tags span,
.detail-tags span,
.chip,
.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
  font-size: 13px;
  font-weight: 700;
}

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

.primary-button,
.ghost-button,
.section-link,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.28);
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover,
.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(236, 72, 153, 0.32);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.section-block {
  padding: 0 0 64px;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
}

.section-heading p,
.lead {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.page-hero {
  margin-top: 68px;
  padding: 72px 0 36px;
  background: radial-gradient(circle at top left, rgba(244, 114, 182, 0.18), transparent 34%), radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.16), transparent 38%);
}

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

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

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

.movie-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #ede9fe);
}

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

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

.movie-card-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.6));
  transition: opacity 0.25s ease;
}

.movie-card:hover .movie-card-mask {
  opacity: 1;
}

.play-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  padding-left: 3px;
  border-radius: 999px;
  color: var(--pink-strong);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

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

.movie-card h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #6b7280;
  font-size: 13px;
}

.movie-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f9fafb;
}

.movie-tags span,
.detail-tags span {
  background: #fdf2f8;
  color: #db2777;
}

.movie-card-large {
  min-height: 420px;
}

.movie-card-large .movie-poster {
  aspect-ratio: 1 / 1.12;
}

.movie-card-large .movie-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: #ffffff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.84));
}

.movie-card-large h3,
.movie-card-large p,
.movie-card-large .movie-meta {
  color: #ffffff;
}

.horizontal-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 300px);
  gap: 18px;
  overflow-x: auto;
  padding: 2px 4px 20px;
  scrollbar-width: none;
}

.horizontal-row::-webkit-scrollbar {
  display: none;
}

.rank-list {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 28px;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink-strong));
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(251, 146, 60, 0.25);
}

.compact-stack {
  display: grid;
  gap: 16px;
}

.compact-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(31, 41, 55, 0.08);
  transition: transform 0.25s ease;
}

.compact-card:hover {
  transform: translateX(4px);
}

.compact-card img {
  width: 132px;
  height: 82px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #fce7f3, #ede9fe);
}

.compact-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 17px;
}

.compact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.category-tile {
  min-height: 180px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(253, 242, 248, 0.98));
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
}

.category-tile h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

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

.category-tile span {
  color: var(--pink-strong);
  font-weight: 800;
}

.chip-row {
  margin: 18px 0 28px;
}

.chip,
.filter-button {
  border: 1px solid #fbcfe8;
  background: #ffffff;
  color: #be185d;
}

.chip:hover,
.chip.active,
.filter-button:hover,
.filter-button.active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

.search-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  margin-bottom: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.search-panel input {
  width: 100%;
  border: 2px solid #fbcfe8;
  border-radius: 999px;
  outline: none;
  padding: 14px 18px;
}

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

.filter-button {
  cursor: pointer;
}

.empty-state {
  display: none;
  padding: 34px;
  border-radius: 20px;
  color: var(--muted);
  background: #ffffff;
  text-align: center;
}

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

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

.breadcrumb a {
  color: var(--pink-strong);
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 30px;
  align-items: start;
}

.player-shell {
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.28);
}

.player-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  cursor: pointer;
}

.player-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.68));
  pointer-events: auto;
  transition: opacity 0.25s ease;
}

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

.player-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  padding-left: 6px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 18px 38px rgba(236, 72, 153, 0.34);
  cursor: pointer;
  font-size: 32px;
}

.player-caption {
  padding: 18px 22px;
  color: #ffffff;
  background: linear-gradient(90deg, #111827, #312e81);
}

.player-caption h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 42px);
}

.player-caption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.detail-side,
.content-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-side {
  overflow: hidden;
}

.detail-side img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, #fce7f3, #ede9fe);
}

.detail-side-body {
  padding: 20px;
}

.detail-side-body dl {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
}

.detail-side-body div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #fce7f3;
  padding-bottom: 10px;
}

.detail-side-body dt {
  color: var(--muted);
}

.detail-side-body dd {
  margin: 0;
  text-align: right;
  font-weight: 800;
}

.content-card {
  padding: 26px;
  margin-top: 28px;
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

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

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

.fade-in {
  animation: fadeIn 0.7s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.site-footer {
  margin-top: 36px;
  padding: 46px 0 0;
  background: linear-gradient(90deg, #fff1f8, #f5f3ff);
  border-top: 1px solid #fce7f3;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
  align-items: start;
}

.site-footer p {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 4px 0 16px;
  font-size: 18px;
}

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

.footer-links a {
  color: #4b5563;
  font-weight: 600;
  transition: color 0.25s ease;
}

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

.footer-bottom {
  margin-top: 38px;
  padding: 20px 16px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid #fbcfe8;
}

@media (max-width: 780px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

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

@media (max-width: 780px) {
  .hero {
    height: 560px;
  }

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

  .hero-arrow {
    display: none;
  }

  .movie-grid,
  .movie-grid.three,
  .movie-grid.two,
  .category-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .brand-text {
    font-size: 20px;
  }

  .hero {
    height: 520px;
  }

  .hero h1 {
    font-size: 40px;
  }

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

  .movie-grid,
  .movie-grid.three,
  .movie-grid.two,
  .category-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .compact-card {
    grid-template-columns: 108px 1fr;
  }

  .compact-card img {
    width: 108px;
    height: 72px;
  }

  .content-card,
  .detail-side-body {
    padding: 20px;
  }
}
