:root {
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-soft: #fff7fb;
  --color-card: #ffffff;
  --color-pink: #ec4899;
  --color-rose: #f43f5e;
  --color-pink-soft: #fdf2f8;
  --shadow-soft: 0 18px 50px rgba(31, 41, 55, 0.12);
  --shadow-card: 0 12px 30px rgba(236, 72, 153, 0.12);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--color-text);
  background: linear-gradient(180deg, #fff7fb 0%, #ffffff 38%, #fff7fb 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(236, 72, 153, 0.12);
  box-shadow: 0 6px 24px rgba(31, 41, 55, 0.08);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-pink), var(--color-rose));
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.32);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 24px;
  line-height: 1;
  background: linear-gradient(90deg, var(--color-pink), var(--color-rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  color: var(--color-muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 300px;
}

.header-search input,
.search-panel input,
.search-panel select {
  width: 100%;
  border: 1px solid #fbcfe8;
  border-radius: 999px;
  background: #ffffff;
  color: var(--color-text);
  padding: 12px 16px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

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

.header-search button,
.btn,
.search-panel button {
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 800;
}

.header-search button {
  padding: 11px 16px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-pink), var(--color-rose));
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--color-pink-soft);
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--color-pink);
  border-radius: 4px;
}

.hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-bg,
.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.hero-bg::after,
.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.42), transparent 30%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.2), rgba(17, 24, 39, 0.74));
}

.hero-content,
.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) 420px;
  gap: 52px;
  align-items: center;
  color: #ffffff;
}

.hero-copy h1,
.detail-title-block h1,
.page-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.04em;
}

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

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

.hero .eyebrow,
.detail-hero .eyebrow,
.page-hero .eyebrow {
  color: #f9a8d4;
}

.hero-tags,
.detail-meta-pills,
.tag-row,
.detail-tags,
.genre-link-cloud,
.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-meta-pills span,
.tag-row span,
.detail-tags a,
.genre-link-cloud a,
.inline-links a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.tag-row span,
.detail-tags a,
.genre-link-cloud a,
.inline-links a {
  color: #be185d;
  background: #fce7f3;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-pink), var(--color-rose));
  box-shadow: 0 14px 28px rgba(236, 72, 153, 0.32);
}

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(244, 63, 94, 0.24)),
    #fce7f3;
  box-shadow: var(--shadow-card);
}

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

.movie-card:hover .poster-frame img,
.hero-poster:hover .poster-frame img {
  transform: scale(1.08) rotate(1deg);
}

.hero-poster-frame {
  border: 8px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
}

.poster-year,
.poster-type {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(10px);
}

.poster-year {
  left: 12px;
}

.poster-type {
  right: 12px;
}

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

.hero-dot {
  width: 42px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

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

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

.section-soft {
  width: 100%;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, rgba(253, 242, 248, 0.8), rgba(255, 255, 255, 0));
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2,
.panel-heading h2,
.content-card h2,
.side-card h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 54px rgba(236, 72, 153, 0.2);
}

.movie-poster-link {
  display: block;
}

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

.movie-card h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 900;
}

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

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

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

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #f9a8d4;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: start;
}

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

.ranking-panel,
.content-card,
.side-card,
.search-panel {
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.ranking-panel {
  position: sticky;
  top: 104px;
  padding: 24px;
}

.ranking-row,
.ranking-list-item,
.mini-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #fce7f3;
}

.ranking-row strong,
.ranking-list-item strong,
.mini-row strong {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-pink), var(--color-rose));
}

.ranking-row span,
.ranking-list-item span,
.mini-row span {
  font-weight: 900;
}

.ranking-row small,
.ranking-list-item small {
  grid-column: 2;
  color: var(--color-muted);
  font-size: 12px;
}

.more-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--color-pink);
  font-weight: 900;
}

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

.category-tile,
.category-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  align-content: center;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffffff, #fdf2f8);
  border: 1px solid #fbcfe8;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border 0.2s ease;
}

.category-tile:hover,
.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-pink);
}

.category-tile span,
.category-card strong {
  color: #111827;
  font-size: 24px;
  font-weight: 950;
}

.category-tile small,
.category-card small {
  color: var(--color-muted);
  line-height: 1.7;
}

.category-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--color-pink), var(--color-rose));
}

.genre-link-cloud {
  justify-content: center;
  margin-top: 26px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 85% 10%, rgba(244, 114, 182, 0.6), transparent 34%),
    linear-gradient(135deg, #111827, #831843 72%, #be123c);
}

.compact-hero {
  padding: 86px max(16px, calc((100% - 1180px) / 2));
}

.compact-hero p {
  max-width: 780px;
}

.category-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.category-toolbar a {
  border-radius: 999px;
  padding: 10px 16px;
  color: #be185d;
  background: #fce7f3;
  font-weight: 900;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 38px;
}

.pagination a,
.pagination strong,
.pagination span {
  min-width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid #fbcfe8;
  color: #be185d;
  font-weight: 900;
}

.pagination strong {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-pink), var(--color-rose));
  border-color: transparent;
}

.ranking-list {
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.ranking-list-item {
  grid-template-columns: 58px minmax(0, 1fr) auto;
}

.ranking-list-item small {
  grid-column: auto;
}

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

.search-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 34px;
  align-items: center;
}

.search-panel {
  padding: 24px;
  display: grid;
  gap: 14px;
}

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

.detail-hero {
  min-height: 560px;
}

.detail-hero-inner {
  min-height: 560px;
  grid-template-columns: 320px minmax(0, 1fr);
}

.detail-poster-frame {
  border: 7px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.detail-meta-pills {
  margin-bottom: 24px;
}

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

.detail-main,
.detail-side {
  display: grid;
  gap: 24px;
}

.player-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #111827;
  box-shadow: var(--shadow-soft);
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 260px;
  background:
    radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.34), transparent 35%),
    #111827;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.42);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding-left: 5px;
  background: linear-gradient(135deg, var(--color-pink), var(--color-rose));
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.36);
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  margin: 0;
  color: #fecdd3;
  font-size: 14px;
}

.content-card,
.side-card {
  padding: 28px;
}

.content-card p,
.content-card blockquote {
  color: #374151;
  font-size: 16px;
  line-height: 1.9;
}

.review-card blockquote {
  margin: 0;
  border-left: 5px solid var(--color-pink);
  border-radius: 0 16px 16px 0;
  padding: 18px 22px;
  background: #fdf2f8;
  font-style: italic;
}

.info-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #fce7f3;
}

.info-list dt {
  color: var(--color-muted);
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  font-weight: 800;
}

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

.side-related-grid {
  display: grid;
  gap: 14px;
}

.side-related-grid .movie-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
}

.side-related-grid .poster-frame {
  border-radius: 18px 0 0 18px;
}

.side-related-grid .movie-card-body {
  padding: 14px;
}

.side-related-grid .movie-card p,
.side-related-grid .tag-row {
  display: none;
}

.prose-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.site-footer {
  margin-top: 40px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 34px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.footer-grid section {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-grid h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 16px;
}

.footer-grid p,
.footer-grid a {
  margin: 0;
  color: #d1d5db;
  font-size: 14px;
  line-height: 1.8;
}

.footer-grid a:hover {
  color: #f9a8d4;
}

.footer-brand {
  color: #ffffff;
  font-size: 22px;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .header-search {
    display: none;
  }

  .hero-content,
  .detail-hero-inner,
  .search-hero {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-poster {
    display: none;
  }

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

  .two-column-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    order: 4;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
  }

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

  .nav-link {
    border-radius: 14px;
    background: #fff7fb;
  }

  .brand-copy strong {
    font-size: 20px;
  }

  .hero,
  .hero-content {
    min-height: 580px;
  }

  .hero-copy h1,
  .detail-title-block h1,
  .page-hero h1 {
    font-size: 40px;
  }

  .hero-copy p,
  .detail-title-block p,
  .page-hero p {
    font-size: 15px;
  }

  .movie-grid,
  .featured-grid,
  .category-tile-grid,
  .category-card-grid,
  .prose-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-hero-inner,
  .detail-hero {
    min-height: 420px;
  }

  .side-related-grid .movie-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .section,
  .section-soft {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .movie-grid,
  .featured-grid,
  .category-tile-grid,
  .category-card-grid,
  .prose-section {
    grid-template-columns: 1fr;
  }

  .ranking-list-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .ranking-list-item small {
    grid-column: 2;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
