:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --amber-50: #fffbeb;
  --amber-400: #fbbf24;
  --green-400: #4ade80;
  --blue-500: #3b82f6;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 12px 34px rgba(17, 24, 39, 0.12);
  --shadow-lg: 0 24px 70px rgba(17, 24, 39, 0.22);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--rose-50) 0%, var(--white) 34%, var(--white) 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 10px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(14px);
}

.nav-shell {
  max-width: 1280px;
  height: 66px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark,
.footer-logo span {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.28);
  font-size: 14px;
}

.brand-name {
  font-size: 22px;
  color: var(--gray-900);
  transition: color 0.2s ease;
}

.brand:hover .brand-name {
  color: var(--rose-600);
}

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

.nav-link,
.mobile-link {
  color: var(--gray-700);
  font-weight: 650;
  transition: color 0.2s ease;
}

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

.nav-toggle {
  width: 42px;
  height: 42px;
  border: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  border-radius: 12px;
  background: var(--gray-100);
}

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

.mobile-nav {
  display: none;
  padding: 14px 22px 20px;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}

.mobile-nav.is-open {
  display: grid;
  gap: 12px;
}

.page-main {
  min-height: 70vh;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.75s ease, transform 1.2s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.34) 45%, rgba(0, 0, 0, 0.72));
}

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

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  min-height: 70vh;
  margin: 0 auto;
  padding: 92px 22px 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  max-width: 860px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--rose-50);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.hero-content h1 {
  margin: 18px 0 12px;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-content h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 850;
}

.hero-content p {
  max-width: 780px;
  margin: 0 auto 26px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 22px);
}

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

.hero-badges {
  margin-top: 22px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  font-weight: 700;
}

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

.hero-dot {
  width: 36px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  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-600));
  box-shadow: 0 16px 34px rgba(244, 63, 94, 0.34);
}

.btn-light {
  color: var(--gray-900);
  background: rgba(255, 255, 255, 0.92);
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 22px;
}

.content-section.compact {
  padding-top: 42px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 30px;
}

.section-heading > span {
  grid-column: 1 / -1;
  width: max-content;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--rose-600);
  background: var(--rose-100);
  font-weight: 800;
}

.section-heading h1,
.section-heading h2 {
  margin: 0 0 6px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  color: var(--gray-600);
  max-width: 760px;
}

.section-link {
  color: var(--rose-600);
  font-weight: 800;
}

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

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

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

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

.movie-card.large {
  grid-column: span 2;
}

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

.movie-card.large .poster-wrap {
  aspect-ratio: 16 / 9;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.06), rgba(17, 24, 39, 0.72));
  transition: opacity 0.25s ease;
}

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

.play-float {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--rose-500);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%) scale(0.3);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.type-pill,
.rank-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--white);
  background: var(--rose-500);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.22);
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: auto;
  right: 14px;
  background: var(--gray-900);
}

.card-body {
  padding: 18px;
}

.card-body h2,
.card-body h3 {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 19px;
  line-height: 1.35;
  font-weight: 850;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body h2 a:hover,
.card-body h3 a:hover {
  color: var(--rose-600);
}

.meta-line,
.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 14px;
}

.tag-row {
  margin: 10px 0;
}

.tag-row span,
.detail-tags span {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--rose-600);
  background: var(--rose-100);
  font-weight: 750;
  font-size: 12px;
}

.card-body p {
  margin: 0;
  color: var(--gray-700);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius);
  color: var(--gray-900);
  background: linear-gradient(135deg, var(--white), var(--amber-50));
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--gray-600);
}

.category-card span {
  color: var(--rose-600);
  font-weight: 850;
}

.feature-band {
  background: linear-gradient(90deg, var(--amber-50), var(--rose-50));
}

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

.compact-link {
  display: grid;
  grid-template-columns: 44px 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.compact-rank {
  color: var(--rose-600);
  font-size: 18px;
  font-weight: 900;
}

.compact-link img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
}

.compact-link strong {
  display: block;
  font-size: 16px;
  line-height: 1.3;
}

.compact-link em {
  display: block;
  color: var(--gray-500);
  font-size: 13px;
  font-style: normal;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 22px;
  align-items: end;
  margin-bottom: 26px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.filter-panel h2 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 900;
}

.filter-panel p {
  margin: 0;
  color: var(--gray-600);
}

.filter-grid,
.search-row {
  display: grid;
  grid-template-columns: 1fr 160px 160px;
  gap: 12px;
}

input[type="search"],
select {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  color: var(--gray-900);
  background: var(--gray-50);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input[type="search"]:focus,
select:focus {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.empty-state {
  display: none;
  margin: 20px 0;
  padding: 30px;
  border-radius: var(--radius);
  text-align: center;
  color: var(--gray-600);
  background: var(--white);
  box-shadow: var(--shadow);
}

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

.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 22px 0;
  color: var(--gray-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--rose-600);
  font-weight: 750;
}

.detail-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 22px 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 30px;
}

.player-card,
.detail-card,
.article-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.movie-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--gray-900);
}

.movie-player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--gray-900);
  z-index: 1;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  cursor: pointer;
  color: var(--white);
  background: var(--gray-900);
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

.player-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.55));
}

.player-overlay span {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--rose-500);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  font-size: 28px;
}

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

.player-title {
  padding: 22px 24px;
}

.player-title h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.player-title p {
  margin: 0;
  color: var(--gray-600);
}

.detail-card {
  padding: 24px;
}

.detail-cover {
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 18px;
  aspect-ratio: 2 / 3;
  background: var(--gray-200);
}

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

.detail-meta {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px 14px;
  color: var(--gray-700);
}

.detail-meta strong {
  color: var(--gray-900);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.article-card {
  max-width: 1280px;
  margin: 0 auto 70px;
  padding: 34px;
}

.article-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 900;
}

.article-card p {
  margin: 0 0 20px;
  color: var(--gray-700);
  font-size: 17px;
}

.related-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px 70px;
}

.search-shell {
  max-width: 960px;
  margin: 0 auto 30px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.search-shell h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
  font-weight: 900;
}

.search-shell p {
  margin: 0 0 20px;
  color: var(--gray-600);
}

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

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

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

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

  .detail-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
  }

  .detail-cover {
    margin-bottom: 0;
  }
}

@media (max-width: 780px) {
  .desktop-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-section,
  .hero-inner {
    min-height: 72vh;
  }

  .hero-inner {
    padding: 82px 18px 78px;
  }

  .content-section {
    padding: 46px 18px;
  }

  .section-heading,
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

  .movie-grid,
  .movie-grid.featured,
  .compact-list,
  .category-grid,
  .search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .movie-card.large {
    grid-column: span 2;
  }

  .detail-card {
    display: block;
  }

  .detail-cover {
    margin-bottom: 20px;
  }

  .article-card {
    margin: 0 18px 46px;
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .brand-name {
    font-size: 19px;
  }

  .movie-grid,
  .movie-grid.featured,
  .compact-list,
  .category-grid,
  .search-results {
    grid-template-columns: 1fr;
  }

  .movie-card.large {
    grid-column: auto;
  }

  .movie-card.large .poster-wrap {
    aspect-ratio: 2 / 3;
  }

  .compact-link {
    grid-template-columns: 38px 54px 1fr;
  }

  .detail-hero {
    padding: 28px 18px 46px;
  }
}
