:root {
  --bg: #fff7ed;
  --bg-soft: #fff1f2;
  --card: rgba(255, 255, 255, 0.92);
  --text: #2d1b1b;
  --muted: #7c6262;
  --line: rgba(244, 114, 182, 0.18);
  --orange: #f97316;
  --pink: #db2777;
  --rose: #fb7185;
  --shadow: 0 24px 70px rgba(219, 39, 119, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 4%, rgba(251, 146, 60, 0.24), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(236, 72, 153, 0.20), transparent 30rem),
    linear-gradient(180deg, #fff7ed 0%, #fff1f2 48%, #ffffff 100%);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  user-select: none;
}

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

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.28);
}

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

.main-nav a,
.mobile-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #5f4646;
  font-weight: 700;
  transition: 0.2s ease;
}

.main-nav a:hover,
.mobile-nav a:hover {
  color: var(--pink);
  background: rgba(255, 255, 255, 0.78);
}

.header-search,
.local-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(244, 114, 182, 0.10);
}

.header-search input,
.local-search input {
  width: 230px;
  padding: 9px 12px;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.header-search button,
.local-search button,
.primary-btn,
.ghost-btn,
.text-link,
.menu-toggle,
.hero-prev,
.hero-next,
.filter-chip {
  border: 0;
  text-decoration: none;
  font-weight: 800;
}

.header-search button,
.local-search button,
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 16px 30px rgba(219, 39, 119, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.local-search button:hover,
.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(219, 39, 119, 0.28);
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.menu-toggle {
  display: none;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--pink);
  background: #ffffff;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px 16px;
  gap: 8px;
}

.mobile-nav.open {
  display: flex;
  flex-wrap: wrap;
}

main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px;
}

.hero-carousel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(135deg, #1f1026, #5b1237 50%, #f97316);
  box-shadow: var(--shadow);
}

.hero-track,
.hero-slide,
.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: center;
  padding: 72px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-bg:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(24, 10, 27, 0.92), rgba(71, 16, 52, 0.76), rgba(249, 115, 22, 0.22)),
    radial-gradient(circle at 72% 24%, rgba(255, 255, 255, 0.24), transparent 23rem);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: blur(1px) saturate(1.18);
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin-top: 20px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1;
  color: #ffffff;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-content p,
.page-hero p,
.detail-one-line {
  max-width: 760px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.85;
}

.hero-tags,
.hero-actions,
.tag-row,
.card-bottom,
.movie-meta,
.soft-chip-row,
.filter-chips,
.prev-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags {
  margin: 24px 0;
}

.hero-tags span,
.tag-row span,
.soft-chip,
.movie-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.hero-poster {
  display: block;
  aspect-ratio: 3 / 4.2;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.30);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  transform: rotate(2deg);
}

.hero-poster img,
.poster-link img,
.rank-cover img,
.detail-poster img,
.player-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  left: 72px;
  bottom: 42px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-prev,
.hero-next {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 28px;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  transition: 0.25s ease;
}

.hero-dot.active {
  width: 34px;
  background: #ffffff;
}

.quick-lanes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 38px;
}

.quick-lanes a,
.category-tile,
.movie-card,
.rank-card,
.text-panel,
.filter-panel,
.detail-layout,
.player-frame {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(249, 115, 22, 0.10);
}

.quick-lanes a,
.category-tile {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  border-radius: 24px;
  color: #6b3434;
  font-weight: 900;
  transition: 0.2s ease;
}

.quick-lanes a:hover,
.category-tile:hover,
.movie-card:hover,
.rank-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(219, 39, 119, 0.16);
}

.page-section {
  margin: 42px 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.section-title > span {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.20);
}

.section-title h2 {
  color: #332020;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 950;
  letter-spacing: -0.05em;
}

.section-title p {
  margin-top: 4px;
  color: var(--muted);
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 26px;
  transition: 0.2s ease;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.15;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 15%, rgba(255, 255, 255, 0.52), transparent 7rem),
    linear-gradient(135deg, #fed7aa, #f9a8d4);
}

.poster-link img {
  position: absolute;
  inset: 0;
  transition: transform 0.35s ease;
}

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

.poster-shine {
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.38));
}

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

.movie-meta {
  gap: 6px;
  margin-bottom: 10px;
}

.movie-meta span {
  min-height: 24px;
  color: #9f4b2e;
  background: #ffedd5;
  font-size: 12px;
}

.movie-card h2,
.rank-card h2 {
  margin: 0 0 10px;
  color: #2e1b1b;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 950;
}

.movie-card p,
.rank-card p,
.text-panel p {
  color: var(--muted);
  line-height: 1.8;
}

.card-bottom {
  justify-content: space-between;
  margin-top: 14px;
  color: #a06161;
  font-size: 13px;
}

.genre-pill,
.text-link {
  color: var(--pink);
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.rank-panel {
  position: sticky;
  top: 92px;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border-radius: 24px;
  transition: 0.2s ease;
}

.rank-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #fed7aa, #f9a8d4);
}

.rank-cover span {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  font-weight: 950;
}

.full-btn {
  width: 100%;
  margin-top: 18px;
}

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

.category-tile span,
.category-tile strong,
.category-tile em {
  display: block;
}

.category-tile strong {
  margin-top: 10px;
  font-size: 18px;
  color: #352020;
}

.category-tile em {
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.6;
}

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

.page-hero {
  margin: 8px 0 34px;
  border-radius: 32px;
  padding: 64px;
  color: #ffffff;
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 255, 255, 0.26), transparent 22rem),
    linear-gradient(135deg, #3f143f, #db2777 48%, #f97316);
  box-shadow: var(--shadow);
}

.small-hero h1 {
  max-width: 900px;
  font-size: clamp(34px, 5vw, 62px);
}

.filter-panel {
  position: sticky;
  top: 78px;
  z-index: 20;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 28px;
  backdrop-filter: blur(16px);
}

.local-search {
  width: 100%;
  justify-content: space-between;
  margin-bottom: 14px;
}

.local-search input {
  width: 100%;
}

.filter-chip {
  padding: 9px 13px;
  color: #8a4b4b;
  border-radius: 999px;
  background: #fff7ed;
  transition: 0.2s ease;
}

.filter-chip.active,
.filter-chip:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.empty-result {
  display: none;
  padding: 36px;
  text-align: center;
  color: var(--muted);
}

.no-results .empty-result {
  display: block;
}

.no-results .movie-grid,
.no-results .rank-list {
  display: none;
}

.detail-hero {
  margin-top: 10px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 18px;
  color: #8b6464;
  font-weight: 800;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 34px;
  padding: 28px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 90% 10%, rgba(251, 113, 133, 0.18), transparent 18rem),
    rgba(255, 255, 255, 0.90);
}

.detail-poster {
  aspect-ratio: 3 / 4.2;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #fed7aa, #f9a8d4);
  box-shadow: 0 20px 50px rgba(219, 39, 119, 0.16);
}

.detail-info .hero-eyebrow {
  color: var(--pink);
  background: #fff1f2;
  border-color: rgba(219, 39, 119, 0.12);
}

.detail-info h1 {
  color: #281818;
}

.detail-one-line {
  color: #6c4f4f;
}

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

.detail-meta-grid span {
  padding: 14px 16px;
  border-radius: 18px;
  color: #6e3b3b;
  background: #fff7ed;
  font-weight: 800;
}

.detail-tags span,
.soft-chip {
  color: var(--pink);
  background: #fff1f2;
}

.player-section {
  margin: 42px 0;
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 32px;
  background: #150b18;
}

.player-frame video {
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  border: 0;
  background: radial-gradient(circle at center, rgba(219, 39, 119, 0.20), rgba(0, 0, 0, 0.56));
  transition: 0.2s ease;
}

.play-layer:hover {
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.30), rgba(0, 0, 0, 0.48));
}

.play-layer.hidden {
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 20px 50px rgba(219, 39, 119, 0.38);
  font-size: 30px;
  text-indent: 4px;
}

.play-layer strong {
  font-size: 22px;
}

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

.text-panel {
  padding: 24px;
  border-radius: 28px;
}

.text-panel h2 {
  margin-bottom: 12px;
  color: #2f1d1d;
  font-size: 24px;
  font-weight: 950;
}

.prev-next {
  grid-column: 1 / -1;
  justify-content: space-between;
}

.prev-next a {
  flex: 1 1 260px;
  padding: 16px 18px;
  border-radius: 20px;
  color: #7c3b3b;
  background: #ffffff;
  border: 1px solid var(--line);
  font-weight: 900;
}

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

.site-footer {
  max-width: 1280px;
  margin: 52px auto 0;
  padding: 34px 22px 44px;
  color: #765b5b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  padding: 28px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.80);
  border: 1px solid var(--line);
}

.site-footer h2 {
  margin-bottom: 12px;
  color: #382020;
  font-size: 18px;
  font-weight: 950;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: #8f4f4f;
  font-weight: 800;
}

.site-footer p {
  line-height: 1.8;
}

.copyright {
  margin-top: 20px;
  text-align: center;
}

@media (max-width: 1120px) {
  .header-search {
    display: none;
  }

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

  .split-section,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 280px;
    padding: 50px;
  }
}

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

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .hero-carousel {
    min-height: 680px;
    border-radius: 26px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 34px;
  }

  .hero-poster {
    width: min(260px, 74vw);
    transform: none;
  }

  .hero-controls {
    left: 34px;
    bottom: 26px;
  }

  .quick-lanes,
  .category-grid,
  .overview-grid,
  .movie-grid,
  .catalog-grid,
  .compact-grid,
  .featured-grid,
  .big-rank-list,
  .detail-content {
    grid-template-columns: 1fr;
  }

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

  .page-hero {
    padding: 36px 26px;
  }

  main {
    padding: 16px;
  }
}

@media (max-width: 560px) {
  .header-inner {
    padding: 12px 16px;
  }

  .brand {
    font-size: 19px;
  }

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

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 36px;
  }

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

  .rank-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .filter-panel {
    position: static;
  }
}
