:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --rose-700: #be123c;
  --amber-50: #fffbeb;
  --orange-50: #fff7ed;
  --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-lg: 0 24px 60px rgba(17, 24, 39, 0.18);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--rose-50), var(--white) 38%, var(--white));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

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

.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(229, 231, 235, 0.88);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.navbar {
  width: min(1180px, calc(100% - 32px));
  height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-900);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--rose-700));
  border-radius: 999px;
  box-shadow: 0 12px 22px rgba(225, 29, 72, 0.28);
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--gray-700);
  font-weight: 650;
}

.nav-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--rose-600);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 14px;
  background: var(--gray-100);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--gray-700);
  border-radius: 10px;
}

.hero-slider {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: var(--gray-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.8s ease, transform 3s ease;
  pointer-events: none;
}

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

.hero-cover {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 45%, rgba(244, 63, 94, 0.36), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.36) 42%, rgba(0, 0, 0, 0.72));
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  text-align: center;
  padding: 88px 0;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  color: var(--rose-600);
  background: var(--rose-50);
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.hero-kicker {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-content h1 {
  max-width: 900px;
  margin: 20px auto 14px;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.hero-summary {
  max-width: 760px;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2.4vw, 24px);
}

.hero-feature {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 28px;
}

.hero-feature span {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

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

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--rose-700));
  box-shadow: 0 16px 34px rgba(225, 29, 72, 0.32);
}

.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.btn-soft {
  color: var(--rose-700);
  background: var(--rose-50);
  box-shadow: 0 12px 26px rgba(225, 29, 72, 0.14);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 4;
  display: flex;
  gap: 10px;
  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: 34px;
  background: var(--white);
}

.category-band {
  background: var(--white);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

.category-band-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
}

.category-band-inner > span {
  flex: 0 0 auto;
  color: var(--gray-900);
  font-weight: 900;
}

.category-band-inner div {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.category-band a {
  flex: 0 0 auto;
  padding: 9px 14px;
  color: var(--gray-700);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.category-band a:hover {
  color: var(--rose-700);
  background: var(--rose-50);
}

.content-section {
  padding: 72px 0;
}

.section-head {
  margin: 0 auto 34px;
  text-align: center;
}

.section-head h2 {
  margin: 14px 0 8px;
  color: var(--gray-900);
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.section-head p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--gray-600);
  font-size: 17px;
}

.section-search {
  width: min(540px, 100%);
  margin: 22px auto 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.section-search span,
.global-search-box span {
  color: var(--rose-700);
  font-weight: 900;
}

.section-search input,
.global-search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--gray-900);
  background: transparent;
}

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

.movie-card {
  display: block;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--gray-200);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.74));
  opacity: 0.92;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  color: var(--white);
  background: var(--rose-500);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.78);
  transition: opacity 0.28s ease, transform 0.28s ease;
  box-shadow: 0 18px 38px rgba(244, 63, 94, 0.38);
}

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

.badge {
  position: absolute;
  top: 12px;
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  color: var(--white);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.badge-primary {
  left: 12px;
  background: var(--rose-500);
}

.badge-secondary {
  right: 12px;
  background: #3b82f6;
}

.rank-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(17, 24, 39, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-weight: 900;
}

.movie-info {
  display: block;
  padding: 16px;
}

.movie-info strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-meta,
.movie-genre,
.movie-desc,
.tag-line {
  display: block;
}

.movie-meta {
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 700;
}

.movie-genre {
  margin-top: 4px;
  color: var(--gray-600);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-desc {
  display: -webkit-box;
  min-height: 46px;
  margin-top: 8px;
  color: var(--gray-700);
  font-size: 14px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-line {
  width: fit-content;
  margin-top: 12px;
  padding: 5px 10px;
  color: var(--rose-700);
  background: var(--rose-50);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.movie-card-compact .movie-info strong {
  font-size: 16px;
}

.movie-card-compact .movie-desc {
  min-height: 40px;
  font-size: 13px;
}

.warm-section {
  background: linear-gradient(90deg, var(--amber-50), var(--orange-50));
}

.movie-strip {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 4px 24px;
  scroll-snap-type: x mandatory;
}

.strip-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
}

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

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

.category-card,
.side-card,
.ranking-panel,
.copy-card,
.category-overview-card {
  background: var(--white);
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.category-card {
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-card span {
  color: var(--rose-700);
  font-size: 18px;
  font-weight: 900;
}

.category-card p {
  margin: 8px 0 0;
  color: var(--gray-600);
  font-size: 14px;
}

.ranking-panel,
.side-card {
  position: sticky;
  top: 90px;
  padding: 24px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-weight: 900;
}

.panel-title span,
.side-card h2 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
}

.panel-title a {
  color: var(--rose-700);
  font-size: 14px;
}

.rank-list {
  display: grid;
  gap: 10px;
}

.rank-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: var(--gray-50);
  border-radius: 16px;
  transition: background 0.2s ease;
}

.rank-row:hover {
  background: var(--rose-50);
}

.rank-num {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--rose-600);
  border-radius: 999px;
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

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

.page-shell,
.detail-shell {
  min-height: 80vh;
  background: linear-gradient(180deg, var(--rose-50), var(--white) 34%);
}

.page-hero {
  padding: 76px 0 36px;
  text-align: center;
}

.page-hero h1 {
  margin: 16px 0 10px;
  color: var(--gray-900);
  font-size: clamp(38px, 5.8vw, 64px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--gray-600);
  font-size: 18px;
}

.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 72px;
}

.category-overview-card {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-posters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gray-200);
}

.category-posters img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.category-overview-card div:last-child {
  padding: 20px;
}

.category-overview-card h2 {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 22px;
  font-weight: 900;
}

.category-overview-card p {
  margin: 0 0 14px;
  color: var(--gray-600);
  font-size: 14px;
}

.category-overview-card span {
  color: var(--rose-700);
  font-weight: 900;
}

.side-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.side-links a {
  padding: 8px 12px;
  color: var(--gray-700);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-weight: 800;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 26px 0 0;
  color: var(--gray-500);
  font-size: 14px;
  font-weight: 700;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 32px;
  align-items: center;
  padding: 34px 0 40px;
}

.player-panel {
  overflow: hidden;
  background: var(--gray-900);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

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

.movie-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  object-fit: contain;
  z-index: 1;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

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

.play-start {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--rose-700));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 22px 54px rgba(225, 29, 72, 0.45);
  cursor: pointer;
  font-size: 30px;
  transform: translateZ(0);
  transition: transform 0.2s ease;
}

.play-start:hover {
  transform: scale(1.06);
}

.detail-info {
  padding: 12px 0;
}

.detail-info h1 {
  margin: 14px 0 12px;
  color: var(--gray-900);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.detail-lead {
  color: var(--gray-700);
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span {
  padding: 8px 12px;
  color: var(--gray-700);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-weight: 800;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 24px;
}

.tag-cloud span {
  padding: 6px 10px;
  color: var(--rose-700);
  background: var(--rose-50);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

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

.copy-card {
  padding: 28px;
}

.copy-card h2 {
  margin: 0 0 12px;
  color: var(--gray-900);
  font-size: 26px;
  font-weight: 900;
}

.copy-card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 16px;
}

.global-search-box {
  width: min(720px, 100%);
  margin: 26px auto 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.search-results:empty::before {
  content: "输入关键词后显示匹配结果";
  grid-column: 1 / -1;
  display: block;
  padding: 34px;
  color: var(--gray-500);
  text-align: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

.is-filter-hidden {
  display: none !important;
}

.site-footer {
  color: #d1d5db;
  background: var(--gray-900);
}

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

.footer-logo {
  color: var(--white);
  margin-bottom: 14px;
}

.footer-brand p,
.footer-block p {
  margin: 0;
  color: #9ca3af;
  font-size: 14px;
}

.footer-block h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
}

.footer-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: #9ca3af;
  font-size: 14px;
}

.footer-block a:hover {
  color: #fb7185;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  color: #9ca3af;
  border-top: 1px solid rgba(75, 85, 99, 0.7);
  text-align: center;
  font-size: 14px;
}

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

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

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

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

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

@media (max-width: 720px) {
  .navbar {
    height: 62px;
  }

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
  }

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

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

  .nav-links a:hover {
    background: var(--rose-50);
  }

  .hero-slider {
    min-height: 68vh;
  }

  .hero-content {
    padding: 62px 0;
  }

  .hero-feature {
    gap: 8px;
  }

  .hero-feature span {
    padding: 8px 10px;
    font-size: 13px;
  }

  .category-band-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-section {
    padding: 52px 0;
  }

  .movie-grid,
  .category-overview-grid,
  .detail-content,
  .category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .movie-info {
    padding: 13px;
  }

  .movie-info strong {
    font-size: 16px;
  }

  .movie-desc {
    font-size: 13px;
  }

  .strip-card {
    flex-basis: 230px;
  }

  .section-search,
  .global-search-box {
    border-radius: 18px;
    align-items: stretch;
    flex-direction: column;
  }

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

@media (max-width: 460px) {
  .movie-grid,
  .category-overview-grid,
  .detail-content,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .play-start {
    width: 72px;
    height: 72px;
    font-size: 24px;
  }
}
