:root {
  color-scheme: light;
  --bg: #fff7fb;
  --panel: #ffffff;
  --panel-soft: #fff1f7;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #f9fafb;
  --line: rgba(244, 114, 182, 0.18);
  --brand: #ec4899;
  --brand-deep: #ef4444;
  --brand-dark: #be123c;
  --orange: #f97316;
  --shadow: 0 20px 50px rgba(190, 18, 60, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.16), transparent 36rem),
    radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.12), transparent 30rem),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.lock-scroll {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

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

.site-logo,
.footer-logo {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  transform: translateY(-1px);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  margin: 28px auto 64px;
  border-radius: 34px;
  color: #ffffff;
  background: linear-gradient(135deg, #ec4899 0%, #ef4444 45%, #f97316 100%);
  box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(2px);
}

.hero::before {
  width: 380px;
  height: 380px;
  left: -120px;
  top: -120px;
}

.hero::after {
  width: 520px;
  height: 520px;
  right: -180px;
  bottom: -220px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

.hero-slide-inner {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: 36px;
  padding: 56px;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

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

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

.btn-primary {
  color: var(--brand-deep);
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.22);
}

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

.btn-soft {
  color: var(--brand-dark);
  background: var(--panel-soft);
}

.btn-primary:hover,
.btn-ghost:hover,
.btn-soft:hover {
  transform: translateY(-2px) scale(1.03);
}

.hero-search {
  display: flex;
  width: min(520px, 100%);
  min-height: 56px;
  margin-top: 30px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.12);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 18px;
  color: var(--ink);
  background: transparent;
}

.hero-search button {
  border: 0;
  color: #ffffff;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}

.hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-tags a,
.hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.15);
}

.hero-visual {
  position: relative;
  min-height: 500px;
}

.hero-poster {
  position: absolute;
  right: 18px;
  top: 22px;
  width: min(360px, 72%);
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.34);
  transform: rotate(3deg);
}

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

.hero-mini {
  position: absolute;
  left: 0;
  bottom: 34px;
  width: min(300px, 72%);
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.93);
  color: var(--ink);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.2);
}

.hero-mini strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.hero-mini p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 56px;
  bottom: 30px;
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 34px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

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

.section {
  margin-bottom: 64px;
}

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

.section-kicker {
  margin: 0 0 6px;
  color: var(--brand);
  font-weight: 900;
}

.section h1,
.section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-desc {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 14px 36px rgba(31, 41, 55, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #fde2ef, #fff7ed);
}

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

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent 54%);
  opacity: 0;
  transition: opacity 0.22s ease;
}

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

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

.poster-year {
  top: 12px;
  right: 12px;
  color: #ffffff;
  padding: 5px 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}

.poster-play {
  left: 50%;
  top: 50%;
  color: var(--brand-deep);
  background: #ffffff;
  padding: 10px 18px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

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

.movie-title {
  display: block;
  min-height: 48px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.4;
  font-weight: 900;
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 8px 0 14px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.movie-meta span,
.tag-list span,
.breadcrumb a,
.breadcrumb span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--panel-soft);
  font-size: 12px;
  font-weight: 800;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 176px;
  padding: 22px;
  border-radius: 26px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: var(--shadow);
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.category-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -56px;
  bottom: -64px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.65;
  font-size: 14px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 48px 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  font-weight: 900;
}

.ranking-item img {
  width: 70px;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-text strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
}

.ranking-text em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.ranking-hot {
  color: var(--brand-deep);
  font-weight: 900;
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 24px 0 30px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.06);
}

.filter-input-wrap {
  flex: 1;
  min-width: 220px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 999px;
  outline: 0;
  padding: 0 16px;
  color: var(--ink);
  background: #ffffff;
}

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

.filter-selects select {
  min-width: 150px;
}

.no-results {
  display: none;
  padding: 28px;
  border-radius: 24px;
  text-align: center;
  color: var(--muted);
  background: var(--panel);
}

.no-results.is-visible {
  display: block;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 28px auto 22px;
}

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

.detail-main,
.detail-side,
.player-panel,
.text-panel {
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 16px 40px rgba(31, 41, 55, 0.08);
}

.player-panel {
  overflow: hidden;
  margin-bottom: 24px;
  background: #08070a;
}

.video-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000000;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.28), rgba(0, 0, 0, 0.48));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 20px 60px rgba(236, 72, 153, 0.38);
  font-size: 34px;
  text-indent: 6px;
}

.text-panel {
  padding: 28px;
}

.detail-title {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.detail-lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.detail-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.detail-info div {
  padding: 14px;
  border-radius: 16px;
  background: var(--soft);
}

.detail-info span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

.detail-info strong {
  color: var(--ink);
}

.article-copy h2 {
  margin: 28px 0 12px;
  font-size: 24px;
}

.article-copy p {
  margin: 0 0 14px;
  color: #374151;
  line-height: 1.9;
}

.tag-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.detail-side {
  padding: 18px;
}

.detail-side h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.side-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.side-card:hover {
  background: var(--panel-soft);
  transform: translateX(3px);
}

.side-card img {
  width: 74px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
}

.side-card strong {
  display: block;
  margin-bottom: 6px;
  line-height: 1.35;
}

.side-card span {
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  margin-top: 72px;
  padding: 46px 0 0;
  color: #e5e7eb;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.site-footer p {
  max-width: 520px;
  color: #9ca3af;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

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

.footer-links a {
  color: #9ca3af;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 36px;
  padding: 18px;
  text-align: center;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.compact-card .movie-card-body p {
  display: none;
}

.search-page-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

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

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

@media (max-width: 860px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .hero-slide-inner {
    grid-template-columns: 1fr;
    padding: 34px 22px 86px;
  }

  .hero,
  .hero-slide-inner {
    min-height: 760px;
  }

  .hero-visual {
    min-height: 360px;
  }

  .hero-poster {
    right: 0;
    width: 64%;
  }

  .hero-mini {
    left: 0;
    bottom: 0;
  }

  .hero-dots {
    left: 22px;
  }

  .movie-grid,
  .category-grid,
  .ranking-list,
  .search-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-panel,
  .footer-grid,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-selects select {
    min-width: 0;
    flex: 1;
  }

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

  .ranking-hot {
    display: none;
  }
}

@media (max-width: 540px) {
  .site-shell {
    width: min(100% - 22px, 1180px);
  }

  .site-logo {
    font-size: 21px;
  }

  .nav-link {
    min-height: 34px;
    padding: 0 12px;
    font-size: 14px;
  }

  .hero {
    border-radius: 22px;
  }

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

  .hero-search {
    border-radius: 22px;
    flex-direction: column;
  }

  .hero-search button {
    min-height: 44px;
  }

  .movie-grid,
  .category-grid,
  .search-page-grid {
    gap: 14px;
  }

  .movie-card {
    border-radius: 18px;
  }

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

  .movie-title {
    min-height: 42px;
    font-size: 15px;
  }

  .detail-info {
    grid-template-columns: 1fr;
  }

  .text-panel {
    padding: 20px;
  }
}
