:root {
  --page-bg: #fff7fb;
  --text-main: #18181b;
  --text-muted: #6b7280;
  --text-soft: #9ca3af;
  --card-bg: rgba(255, 255, 255, 0.92);
  --line: rgba(244, 114, 182, 0.18);
  --pink: #ec4899;
  --rose: #f43f5e;
  --orange: #f97316;
  --yellow: #facc15;
  --shadow: 0 24px 70px rgba(190, 24, 93, 0.16);
  --soft-shadow: 0 14px 38px rgba(190, 24, 93, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-main);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(244, 114, 182, 0.22), transparent 34rem),
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.18), transparent 30rem),
    linear-gradient(135deg, #fff1f2 0%, #fdf2f8 45%, #fff7ed 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

main {
  min-height: 68vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(244, 114, 182, 0.16);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink), var(--rose), var(--orange));
  box-shadow: 0 12px 26px rgba(244, 63, 94, 0.28);
}

.brand-text,
.footer-brand {
  font-size: 1.35rem;
  background: linear-gradient(90deg, var(--pink), var(--rose), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.nav-link {
  color: #3f3f46;
  font-weight: 700;
  font-size: 0.96rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover {
  transform: translateY(-1px);
}

.header-search,
.mobile-search,
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid rgba(244, 114, 182, 0.26);
  border-radius: 999px;
  color: var(--text-main);
  outline: none;
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input,
.mobile-search input {
  width: 230px;
  padding: 11px 16px;
}

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

.header-search button,
.mobile-search button,
.filter-bar button,
.primary-button,
.text-button {
  border: 0;
  font-weight: 800;
  border-radius: 999px;
  white-space: nowrap;
}

.header-search button,
.mobile-search button,
.primary-button {
  color: white;
  padding: 11px 18px;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  box-shadow: 0 12px 26px rgba(244, 63, 94, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(244, 63, 94, 0.30);
}

.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pink);
  background: rgba(244, 114, 182, 0.12);
  padding: 10px 16px;
}

.text-button:hover {
  background: rgba(244, 114, 182, 0.2);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  color: white;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.ghost-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

.ghost-button.light {
  color: var(--rose);
  border-color: rgba(244, 63, 94, 0.25);
  background: rgba(255, 255, 255, 0.85);
}

.nav-toggle {
  width: 42px;
  height: 42px;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 14px;
  background: rgba(244, 114, 182, 0.12);
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: var(--pink);
}

.mobile-panel {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.mobile-search {
  margin-bottom: 14px;
}

.mobile-search input {
  flex: 1;
}

.mobile-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-nav .nav-link {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.72) 42%, rgba(17, 24, 39, 0.18) 100%),
    radial-gradient(circle at 28% 42%, rgba(236, 72, 153, 0.48), transparent 32rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  color: white;
  max-width: 820px;
  padding: 110px 0 120px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--yellow);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 16px 0;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.8;
}

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

.hero-tags {
  margin: 24px 0 30px;
}

.hero-tags span,
.tag-list span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-tags span {
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

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

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

.hero-dot.active {
  width: 34px;
  background: white;
}

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

.section-tight {
  padding-top: 50px;
}

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

.section-head h2,
.page-hero h1,
.detail-card h1,
.article-card h2,
.side-card h2 {
  margin: 0;
  color: var(--text-main);
  letter-spacing: -0.035em;
}

.section-head h2 {
  margin-top: 6px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.section-head .section-kicker,
.page-hero .section-kicker {
  color: var(--pink);
}

.compact-head {
  margin-bottom: 18px;
}

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

.movie-card,
.category-tile,
.detail-card,
.side-card,
.ranking-panel,
.rank-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(14px);
}

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

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

.movie-thumb {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #831843);
}

.movie-thumb img,
.rank-cover img,
.poster-card img,
.category-cover-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.movie-card:hover .movie-thumb img,
.category-tile:hover .category-cover-stack img {
  transform: scale(1.06);
}

.movie-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.74) 100%);
}

.year-badge,
.play-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.year-badge {
  top: 12px;
  left: 12px;
  color: white;
  padding: 5px 10px;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(10px);
}

.play-badge {
  right: 12px;
  bottom: 12px;
  color: white;
  padding: 7px 12px;
  background: linear-gradient(90deg, var(--pink), var(--rose));
}

.movie-info {
  padding: 18px;
}

.movie-meta-row,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.movie-info h2 {
  margin: 10px 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.movie-info h2 a:hover,
.rank-card h2 a:hover,
.category-tile h2 a:hover,
.side-link-list a:hover span {
  color: var(--pink);
}

.movie-info p {
  min-height: 62px;
  margin: 0 0 14px;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.92rem;
}

.tag-list span,
.detail-tags span {
  color: #be185d;
  background: #fce7f3;
}

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

.category-tile {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 270px;
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: #111827;
}

.category-cover-stack img:first-child {
  grid-row: span 2;
}

.category-tile-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
}

.category-tile h2 {
  margin: 0;
  font-size: 1.35rem;
}

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

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-samples a {
  color: #9f1239;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ffe4e6;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: 30px;
  align-items: start;
}

.ranking-panel {
  position: sticky;
  top: 98px;
  border-radius: var(--radius);
  padding: 24px;
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.92), rgba(253, 242, 248, 0.92));
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rank-card {
  display: grid;
  grid-template-columns: auto 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border-radius: 18px;
  padding: 14px;
}

.tight-rank-list .rank-card {
  grid-template-columns: auto 70px minmax(0, 1fr);
}

.tight-rank-list .rank-card .text-button {
  display: none;
}

.rank-number {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.15rem;
  font-weight: 900;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

.rank-cover {
  height: 86px;
  border-radius: 14px;
  overflow: hidden;
  background: #111827;
}

.tight-rank-list .rank-cover {
  height: 72px;
}

.rank-card h2 {
  margin: 0 0 7px;
  font-size: 1.02rem;
}

.rank-card p {
  margin: 0 0 8px;
  color: var(--text-muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.rank-meta {
  font-size: 0.82rem;
}

.page-hero {
  width: min(1280px, calc(100% - 32px));
  margin: 34px auto 0;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: white;
  padding: 48px;
  border-radius: 34px;
  background:
    linear-gradient(120deg, rgba(131, 24, 67, 0.96), rgba(225, 29, 72, 0.86), rgba(249, 115, 22, 0.78)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 28rem);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  color: white;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  margin: 8px 0 14px;
}

.page-hero p {
  max-width: 740px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.8;
  font-size: 1.08rem;
}

.small-hero {
  min-height: 240px;
}

.filter-bar {
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--soft-shadow);
}

.filter-bar input {
  flex: 1;
  min-width: 240px;
  padding: 13px 16px;
}

.filter-bar select {
  min-width: 150px;
  padding: 13px 16px;
}

.filter-bar button {
  padding: 13px 18px;
  color: #be185d;
  background: #fce7f3;
}

.empty-state {
  display: none;
  padding: 44px 20px;
  text-align: center;
  color: var(--text-muted);
  font-weight: 800;
}

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

.detail-page {
  width: min(1280px, calc(100% - 32px));
  margin: 34px auto 0;
}

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

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

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

.detail-main,
.detail-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.player-panel {
  border-radius: 30px;
  overflow: hidden;
  background: #030712;
  box-shadow: var(--shadow);
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #030712;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: white;
  border: 0;
  background:
    linear-gradient(180deg, rgba(3, 7, 18, 0.12), rgba(3, 7, 18, 0.62)),
    radial-gradient(circle at center, rgba(236, 72, 153, 0.36), transparent 22rem);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 22px 44px rgba(244, 63, 94, 0.36);
  font-size: 2rem;
  padding-left: 5px;
}

.player-overlay strong {
  font-size: 1.1rem;
}

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

.detail-card,
.side-card {
  border-radius: var(--radius);
  padding: 26px;
}

.detail-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.detail-card h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.lead-text {
  margin: 24px 0 18px;
  color: #374151;
  font-size: 1.08rem;
  line-height: 1.8;
}

.article-card h2,
.side-card h2 {
  font-size: 1.45rem;
  margin-bottom: 14px;
}

.article-card p,
.side-card p {
  color: #374151;
  line-height: 1.95;
  margin: 0;
  text-align: justify;
}

.review-card {
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.94), rgba(253, 242, 248, 0.94));
}

.poster-card {
  overflow: hidden;
  padding: 0;
}

.poster-card img {
  aspect-ratio: 2 / 3;
  background: #111827;
}

.poster-card h2,
.poster-card p {
  padding-inline: 22px;
}

.poster-card h2 {
  padding-top: 22px;
}

.poster-card p {
  padding-bottom: 24px;
}

.hot-side-card {
  position: sticky;
  top: 98px;
}

.side-link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-link-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(244, 114, 182, 0.16);
}

.side-link-list a:last-child {
  border-bottom: 0;
}

.side-link-list span {
  font-weight: 800;
  line-height: 1.45;
}

.side-link-list em {
  color: var(--text-soft);
  font-style: normal;
  white-space: nowrap;
}

.related-section {
  padding-top: 48px;
}

.compact-card .movie-info p {
  min-height: auto;
}

.site-footer {
  margin-top: 70px;
  color: white;
  background: linear-gradient(135deg, #831843, #be123c, #ea580c);
}

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

.footer-brand {
  color: white;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.site-footer p {
  max-width: 520px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
}

.site-footer h2 {
  margin: 0 0 16px;
  font-size: 1.08rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

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

  .header-inner {
    justify-content: space-between;
  }

  .nav-toggle {
    display: flex;
  }

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

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

  .ranking-panel,
  .hot-side-card {
    position: static;
  }
}

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

  .hero-shade {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.58));
  }

  .hero-content {
    padding: 82px 0 100px;
  }

  .hero-actions,
  .section-head,
  .page-hero,
  .detail-title-row,
  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .section {
    padding: 44px 0;
  }

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

  .category-tile {
    grid-template-columns: 1fr;
  }

  .category-cover-stack {
    height: 230px;
  }

  .rank-card,
  .tight-rank-list .rank-card {
    grid-template-columns: auto 78px minmax(0, 1fr);
  }

  .rank-card .text-button {
    display: none;
  }

  .page-hero {
    padding: 34px 24px;
    border-radius: 26px;
  }

  .filter-bar input,
  .filter-bar select {
    width: 100%;
    min-width: 0;
  }
}

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

  .hero-content h1 {
    font-size: 2.42rem;
  }

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

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

  .movie-thumb {
    height: 100%;
    min-height: 198px;
  }

  .movie-info p {
    min-height: auto;
  }

  .rank-number {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 1rem;
  }

  .rank-cover {
    height: 68px;
  }

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

  .player-overlay span {
    width: 68px;
    height: 68px;
  }
}
