:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --pink: #ec4899;
  --yellow: #f59e0b;
  --green: #22c55e;
  --blue: #0f172a;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --soft-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 10% 0%, rgba(236, 72, 153, 0.10), transparent 28%),
    radial-gradient(circle at 90% 5%, rgba(34, 197, 94, 0.10), transparent 30%),
    var(--bg);
}

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

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

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

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: white;
  font-size: 15px;
  background: linear-gradient(135deg, #facc15, #ec4899 54%, #22c55e);
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.28);
}

.brand-text,
.footer-brand {
  font-size: 20px;
  background: linear-gradient(90deg, #ca8a04, #ec4899, #16a34a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link,
.mobile-link {
  color: #374151;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #f3f4f6;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: #111827;
  margin: 5px 0;
  border-radius: 999px;
}

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

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

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

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(248, 250, 252, 0.98) 0%, rgba(248, 250, 252, 0.84) 42%, rgba(248, 250, 252, 0.20) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.28), rgba(255, 255, 255, 0));
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  min-height: 680px;
  margin: 0 auto;
  padding: 110px 22px 110px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 370px;
  align-items: center;
  gap: 54px;
}

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

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px 14px;
  color: #be185d;
  background: rgba(252, 231, 243, 0.86);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.hero h1,
.hero h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.hero h2 {
  margin-top: 8px;
  background: linear-gradient(90deg, #ca8a04, #ec4899, #16a34a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: #374151;
  font-size: 20px;
  line-height: 1.8;
}

.hero-actions,
.detail-info .primary-btn {
  margin-top: 28px;
}

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

.primary-btn {
  color: white;
  background: linear-gradient(90deg, #ec4899, #f59e0b);
  box-shadow: 0 14px 35px rgba(236, 72, 153, 0.28);
}

.ghost-btn {
  margin-left: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  border: 1px solid rgba(229, 231, 235, 0.9);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow);
}

.hero-poster {
  position: relative;
  border-radius: 34px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
  transform: rotate(2deg);
}

.hero-poster img {
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  right: 30px;
  bottom: 30px;
  padding: 12px 18px;
  border-radius: 999px;
  color: white;
  font-weight: 800;
  background: rgba(17, 24, 39, 0.76);
  backdrop-filter: blur(10px);
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  width: min(1180px, calc(100% - 44px));
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.hero-dot {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.72);
  color: #111827;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.hero-dot.is-active {
  color: white;
  background: linear-gradient(90deg, #ec4899, #f59e0b);
}

.page-shell,
.detail-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

.page-top {
  padding-top: 48px;
}

.page-hero.compact {
  margin-bottom: 28px;
  padding: 54px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(252, 231, 243, 0.76));
  box-shadow: var(--soft-shadow);
}

.page-hero p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.content-section,
.filter-panel,
.article-section,
.player-section {
  margin: 58px 0;
}

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

.section-heading h2,
.filter-panel h2,
.article-section h2,
.player-section h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
  font-weight: 900;
}

.section-heading p,
.article-section p {
  color: var(--muted);
  line-height: 1.85;
}

.filter-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 28px;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--soft-shadow);
}

.filter-tools {
  display: grid;
  gap: 16px;
}

.search-input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 20px;
  font-size: 16px;
  outline: none;
  background: white;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

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

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  border: 1px solid var(--line);
  background: white;
  color: #374151;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 800;
  cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: white;
  border-color: transparent;
  background: linear-gradient(90deg, #ec4899, #f59e0b);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 700;
}

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

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

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

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e5e7eb;
}

.poster-wrap img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.78), transparent);
}

.play-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: white;
  font-weight: 900;
  border-radius: 999px;
}

.play-badge {
  left: 14px;
  bottom: 14px;
  padding: 9px 14px;
  background: rgba(236, 72, 153, 0.92);
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 38px;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.35);
}

.card-body {
  padding: 18px;
}

.card-meta,
.score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.card-meta span {
  padding: 4px 9px;
  border-radius: 999px;
  background: #f3f4f6;
}

.movie-card h3 {
  margin: 13px 0 8px;
  font-size: 19px;
  line-height: 1.3;
}

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

.movie-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #be185d;
  background: #fce7f3;
  font-size: 12px;
  font-weight: 800;
}

.score-row {
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

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

.category-card,
.spotlight-card {
  display: block;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card span,
.spotlight-card h3 {
  display: block;
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 900;
}

.category-card p,
.spotlight-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

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

.mini-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-weight: 800;
  font-size: 13px;
}

.mini-links a:hover {
  color: white;
  background: var(--pink);
}

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

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

.detail-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 34px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(252, 231, 243, 0.76));
  box-shadow: var(--shadow);
}

.detail-poster img {
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.25);
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-one-line {
  color: #374151;
  font-size: 19px;
  line-height: 1.8;
}

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

.detail-meta span {
  padding: 9px 13px;
  border-radius: 999px;
  background: white;
  color: #374151;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.32);
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.44), rgba(2, 6, 23, 0.12));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-size: 34px;
  padding-left: 6px;
  background: linear-gradient(135deg, #ec4899, #f59e0b);
  box-shadow: 0 20px 45px rgba(236, 72, 153, 0.42);
}

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

.article-section {
  padding: 34px;
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--soft-shadow);
}

.article-section p {
  font-size: 17px;
  color: #374151;
}

.article-section h2 + p {
  margin-top: 0;
}

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

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

.movie-card-slim h3 {
  font-size: 17px;
}

.site-footer {
  margin-top: 80px;
  background: white;
  border-top: 1px solid var(--line);
}

.footer-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px 22px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
}

.footer-shell p {
  color: var(--muted);
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.footer-links a {
  color: #4b5563;
  font-weight: 700;
}

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

.footer-bottom {
  text-align: center;
  padding: 18px 22px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

[hidden] {
  display: none !important;
}

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

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

  .hero-inner {
    grid-template-columns: 1fr 300px;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 92px;
  }

  .hero-poster {
    max-width: 260px;
    transform: none;
  }

  .filter-panel,
  .detail-hero,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .detail-poster {
    max-width: 280px;
  }

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

@media (max-width: 640px) {
  .nav-shell,
  .page-shell,
  .detail-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-text {
    font-size: 18px;
  }

  .hero h1,
  .hero h2,
  .page-hero h1 {
    font-size: 38px;
  }

  .hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .ghost-btn {
    margin: 12px 0 0;
  }

  .movie-grid,
  .related-grid,
  .category-grid,
  .spotlight-list {
    grid-template-columns: 1fr;
  }

  .page-hero.compact,
  .detail-hero,
  .article-section,
  .filter-panel {
    padding: 24px;
    border-radius: 22px;
  }

  .play-overlay span {
    width: 70px;
    height: 70px;
    font-size: 26px;
  }
}
