:root {
  --rose: #f43f5e;
  --rose-dark: #e11d48;
  --pink: #ec4899;
  --orange: #fb923c;
  --yellow: #fde68a;
  --cyan-soft: #ecfeff;
  --purple-soft: #faf5ff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --page: #f9fafb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.10);
  --shadow-soft: 0 10px 25px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--page);
  line-height: 1.6;
}

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

img,
video {
  display: block;
  width: 100%;
  height: auto;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.34);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: flex-end;
}

.nav-link {
  color: #374151;
  font-weight: 650;
  transition: color 0.2s ease;
}

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

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
}

.nav-search input,
.search-hero-form input,
.local-search,
.tag-filter,
.sort-select {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  outline: none;
  min-height: 42px;
}

.nav-search input {
  width: 190px;
  padding: 0 16px;
}

.nav-search button,
.search-hero-form button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: var(--white);
  background: var(--rose);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-search button:hover,
.search-hero-form button:hover {
  background: var(--rose-dark);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff1f2;
  padding: 10px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--rose);
  border-radius: 10px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, #f43f5e 0%, #ec4899 52%, #fb923c 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.28;
  pointer-events: none;
}

.hero-glow-one {
  width: 340px;
  height: 340px;
  left: 7%;
  top: 45px;
  background: var(--white);
}

.hero-glow-two {
  width: 460px;
  height: 460px;
  right: 3%;
  bottom: -140px;
  background: var(--yellow);
}

.hero-inner {
  position: relative;
  max-width: 1180px;
  min-height: 580px;
  margin: 0 auto;
  padding: 82px 20px 90px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  align-items: center;
  gap: 48px;
}

.hero-slide.is-active {
  display: grid;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-kicker {
  padding: 8px 14px;
  color: #9f1239;
  background: rgba(255, 255, 255, 0.90);
}

.hero-copy h1 {
  max-width: 640px;
  margin: 20px 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-lead {
  max-width: 620px;
  margin: 0 0 28px;
  font-size: 20px;
  color: #ffe4e6;
}

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

.hero-tags a,
.hero-tags span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-button,
.ghost-button {
  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-button {
  color: var(--rose);
  background: var(--white);
  box-shadow: 0 16px 28px rgba(136, 19, 55, 0.18);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.ghost-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.16);
}

.hero-feature {
  position: relative;
  overflow: hidden;
  display: block;
  border-radius: 28px;
  min-height: 342px;
  box-shadow: 0 28px 70px rgba(80, 17, 36, 0.36);
  transform: translateZ(0);
}

.hero-feature img {
  height: 380px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-feature:hover img {
  transform: scale(1.06);
}

.hero-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent 62%);
}

.hero-feature span,
.hero-feature p {
  position: absolute;
  z-index: 2;
  left: 26px;
  right: 26px;
}

.hero-feature span {
  bottom: 72px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 900;
}

.hero-feature p {
  bottom: 28px;
  margin: 0;
  color: #e5e7eb;
}

.hero-dots {
  position: absolute;
  left: 20px;
  bottom: 34px;
  display: flex;
  gap: 10px;
}

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

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

.content-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 20px;
}

.slim-section {
  padding-top: 64px;
  padding-bottom: 64px;
}

.alt-section:nth-of-type(even) {
  background: transparent;
}

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

.section-kicker {
  margin-bottom: 8px;
  color: var(--rose);
  background: #fff1f2;
  padding: 6px 12px;
}

.section-head h2,
.page-hero h1,
.detail-content h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.section-head p,
.page-hero p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-head > a {
  color: var(--rose);
  font-weight: 800;
}

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

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

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

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

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #111827;
}

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

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

.movie-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--rose);
  font-size: 12px;
  font-weight: 800;
}

.movie-info {
  padding: 18px;
}

.movie-title {
  display: block;
  min-height: 30px;
  color: #1f2937;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.28;
}

.movie-title:hover {
  color: var(--rose);
}

.movie-info p {
  min-height: 48px;
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #6b7280;
  font-size: 13px;
}

.tag-list {
  margin-top: 12px;
}

.tag-list span,
.detail-tags span,
.detail-tags a {
  padding: 4px 9px;
  border-radius: 999px;
  color: #be123c;
  background: #fff1f2;
  font-size: 12px;
  font-weight: 700;
}

.category-strip,
.rank-section {
  background: linear-gradient(135deg, #fff1f2, #fdf2f8 55%, #fff7ed);
}

.category-grid,
.category-overview-grid {
  display: grid;
  gap: 20px;
}

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

.category-card,
.category-overview-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card img {
  height: 150px;
  object-fit: cover;
}

.category-card span,
.category-card p {
  display: block;
  padding: 0 18px;
}

.category-card span {
  margin-top: 16px;
  color: #1f2937;
  font-size: 18px;
  font-weight: 850;
}

.category-card p {
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.category-overview-card {
  display: block;
  padding: 18px;
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.category-thumbs img {
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
}

.category-overview-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-overview-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 128px minmax(0, 1fr) 88px;
  align-items: center;
  gap: 18px;
  border-radius: 18px;
  background: var(--white);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.rank-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 20px;
  font-weight: 900;
}

.rank-gold {
  color: var(--white);
  background: linear-gradient(135deg, #fbbf24, #f97316);
}

.rank-silver {
  color: var(--white);
  background: linear-gradient(135deg, #cbd5e1, #64748b);
}

.rank-bronze {
  color: var(--white);
  background: linear-gradient(135deg, #fb923c, #b45309);
}

.rank-cover img {
  height: 82px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-content a {
  color: #1f2937;
  font-size: 18px;
  font-weight: 850;
}

.rank-content a:hover {
  color: var(--rose);
}

.rank-content p {
  margin: 4px 0 8px;
  color: var(--muted);
}

.rank-score {
  color: var(--rose);
  text-align: right;
  font-size: 18px;
  font-weight: 900;
}

.page-hero {
  color: var(--white);
  background: linear-gradient(135deg, #f43f5e, #ec4899 58%, #fb923c);
}

.page-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 20px;
}

.page-hero .section-kicker {
  color: #9f1239;
  background: rgba(255, 255, 255, 0.92);
}

.page-hero p {
  max-width: 720px;
  color: #ffe4e6;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 180px 160px;
  gap: 14px;
  margin-bottom: 28px;
  border-radius: 24px;
  background: var(--white);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.local-search,
.tag-filter,
.sort-select {
  width: 100%;
  padding: 0 16px;
}

.detail-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px 0;
}

.detail-wrap .breadcrumb {
  color: #6b7280;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
}

.detail-main,
.side-card {
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.player-card {
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  background: #000;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.10));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-play {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.play-icon {
  display: inline-block;
  margin-left: 7px;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid var(--rose);
}

.detail-content {
  padding: 28px;
}

.detail-content h1 {
  margin-bottom: 12px;
}

.detail-one-line {
  margin: 0 0 18px;
  color: #374151;
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
}

.detail-meta a,
.detail-meta span {
  padding: 5px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 13px;
  font-weight: 750;
}

.detail-meta a {
  color: var(--rose);
  background: #fff1f2;
}

.detail-tags {
  margin-bottom: 24px;
}

.text-block {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 24px;
}

.text-block h2,
.side-card h2 {
  margin: 0 0 14px;
  color: #1f2937;
  font-size: 22px;
}

.text-block p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
}

.review-block {
  border-radius: 18px;
  padding: 24px;
  border: 0;
  background: linear-gradient(135deg, #fff1f2, #fdf2f8);
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 20px;
}

.side-card {
  padding: 20px;
}

.poster-card img {
  border-radius: 18px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 16px;
}

.wide-button {
  width: 100%;
  color: var(--white);
  background: var(--rose);
}

.side-related {
  display: grid;
  gap: 14px;
}

.side-related a {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.side-related img {
  height: 62px;
  border-radius: 12px;
  object-fit: cover;
}

.side-related span {
  color: #1f2937;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.side-related a:hover span {
  color: var(--rose);
}

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

.search-hero-form {
  display: flex;
  max-width: 620px;
  gap: 10px;
  margin-top: 28px;
}

.search-hero-form input {
  flex: 1;
  padding: 0 18px;
}

.site-footer {
  margin-top: 40px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937 55%, #111827);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

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

.footer-brand p {
  max-width: 460px;
  margin: 0;
}

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

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

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

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

.hidden-card {
  display: none;
}

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

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

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

@media (max-width: 780px) {
  .header-inner {
    min-height: 64px;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-radius: 22px;
    background: var(--white);
    padding: 18px;
    box-shadow: var(--shadow);
  }

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

  .nav-search {
    margin-left: 0;
  }

  .nav-search input {
    width: 100%;
    flex: 1;
  }

  .hero-inner {
    min-height: auto;
    padding: 54px 20px 74px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-feature img {
    height: 270px;
  }

  .hero-dots {
    bottom: 24px;
  }

  .section-head,
  .search-hero-form {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .rank-row {
    grid-template-columns: 44px 88px minmax(0, 1fr);
  }

  .rank-score {
    display: none;
  }

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

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

  .content-section {
    padding: 48px 16px;
  }

  .page-hero-inner,
  .detail-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-tags,
  .detail-tags {
    gap: 8px;
  }

  .rank-row {
    padding: 12px;
    gap: 12px;
  }

  .rank-cover img {
    height: 62px;
  }
}
