:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --pink: #ec4899;
  --red: #ef4444;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff7ed;
  --bg: #f9fafb;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  max-width: 1240px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 128px;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.26);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 700;
  color: #374151;
}

.desktop-nav a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--orange);
}

.nav-search {
  margin-left: auto;
  position: relative;
  width: min(270px, 28vw);
}

.nav-search input,
.local-filter input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 14px;
  outline: none;
  background: #fff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.local-filter input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.search-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(430px, 88vw);
  max-height: 420px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 10px;
  display: none;
}

.search-panel.open {
  display: block;
}

.search-result {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  padding: 8px;
  border-radius: 14px;
}

.search-result:hover {
  background: #fff7ed;
}

.search-result img {
  height: 62px;
  border-radius: 10px;
  object-fit: cover;
}

.search-result strong,
.search-result span {
  display: block;
}

.search-result span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.menu-toggle {
  display: none;
  border: 0;
  background: #fff7ed;
  color: var(--orange);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 24px;
}

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

.mobile-nav a {
  display: block;
  padding: 10px 0;
  font-weight: 700;
}

.mobile-nav.open {
  display: block;
}

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

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(circle at 20px 20px, rgba(255, 255, 255, 0.5) 2px, transparent 0);
  background-size: 54px 54px;
}

.hero-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(0deg, var(--bg), rgba(249, 250, 251, 0));
}

.hero-shell {
  position: relative;
  max-width: 1240px;
  min-height: 680px;
  margin: 0 auto;
  padding: 86px 22px 120px;
  z-index: 2;
}

.hero-slide {
  display: none;
  align-items: center;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.55fr);
  gap: 44px;
}

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

.hero-badge {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 700;
}

.hero-copy h1 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.hero-copy h2 {
  margin: 0 0 18px;
  color: #fef08a;
  font-size: clamp(24px, 4vw, 42px);
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

.primary-btn {
  color: var(--orange);
  background: #fff;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.15);
}

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

.ghost-btn {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.82);
}

.ghost-btn:hover {
  color: var(--orange);
  background: #fff;
}

.ghost-btn.dark {
  color: var(--orange);
  border-color: var(--orange);
}

.ghost-btn.dark:hover {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--pink));
}

.hero-poster {
  position: relative;
  display: block;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
  transform: rotate(2deg);
}

.hero-poster img {
  height: 480px;
  border-radius: 24px;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.65);
  color: #fff;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero-dots {
  display: flex;
  gap: 8px;
  position: absolute;
  left: 22px;
  bottom: 78px;
  z-index: 3;
}

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

.hero-dot.active {
  background: #fff;
}

.feature-strip {
  max-width: 1240px;
  margin: -46px auto 0;
  position: relative;
  z-index: 4;
  padding: 0 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-strip div {
  min-height: 118px;
  padding: 24px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.feature-strip strong,
.feature-strip span {
  display: block;
}

.feature-strip strong {
  font-size: 20px;
  margin-bottom: 8px;
}

.feature-strip span {
  color: var(--muted);
}

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

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

.section-head.compact {
  margin-bottom: 18px;
}

.section-head h2,
.page-hero h1,
.detail-info h1,
.content-card h2,
.rank-panel h2,
.rank-side h2,
.ranking-main h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.section-head h2,
.rank-panel h2,
.rank-side h2,
.ranking-main h2 {
  font-size: 32px;
}

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

.section-head > a,
.text-link {
  color: var(--orange);
  font-weight: 900;
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 28px;
  padding: 24px;
  color: #fff;
  background: #111827;
  box-shadow: var(--shadow);
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.72));
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: transform 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile span,
.category-tile strong {
  position: relative;
  z-index: 2;
  display: block;
}

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile strong {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7ed, #fdf2f8);
}

.poster-link img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 24, 39, 0.72);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 16px;
}

.card-meta {
  color: var(--orange);
  font-weight: 900;
  font-size: 13px;
}

.movie-card h2 {
  margin: 7px 0 9px;
  font-size: 19px;
  line-height: 1.3;
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 700;
}

.rank-panel,
.content-card,
.rank-side,
.ranking-main {
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(229, 231, 235, 0.9);
}

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

.rank-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.rank-item {
  display: grid;
  grid-template-columns: 38px 54px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 8px;
  border-radius: 18px;
  background: #f9fafb;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  background: #fff7ed;
}

.rank-num {
  color: var(--pink);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.rank-item img {
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-text strong,
.rank-text em {
  display: block;
}

.rank-text strong {
  line-height: 1.35;
}

.rank-text em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.primary-btn.full {
  width: 100%;
  margin-top: 18px;
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--pink));
}

.page-hero {
  color: #fff;
  padding: 76px 22px;
  background: linear-gradient(135deg, #fb923c, #ec4899, #ef4444);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 64px);
}

.page-hero p {
  max-width: 760px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
}

.page-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: center;
  max-width: none;
  text-align: left;
}

.page-hero-split > div:first-child {
  max-width: 980px;
  justify-self: end;
  width: 100%;
}

.page-hero-split p {
  margin-left: 0;
}

.local-filter {
  max-width: 360px;
  justify-self: start;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.pill-link {
  padding: 9px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--orange);
  border: 1px solid #fed7aa;
  font-weight: 800;
}

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

.overview-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px;
  padding: 18px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.overview-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.overview-images img {
  height: 130px;
  object-fit: cover;
}

.overview-images img:first-child {
  border-top-left-radius: 18px;
}

.overview-images img:nth-child(2) {
  border-top-right-radius: 18px;
}

.overview-images img:nth-child(3) {
  border-bottom-left-radius: 18px;
}

.overview-images img:nth-child(4) {
  border-bottom-right-radius: 18px;
}

.overview-card h2 {
  margin: 8px 0 10px;
  font-size: 26px;
}

.overview-card p {
  color: var(--muted);
  line-height: 1.7;
}

.category-list .movie-card.hidden,
.search-empty.hidden {
  display: none;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 26px;
  align-items: start;
}

.ranking-main,
.rank-side {
  padding: 24px;
}

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

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 30px;
}

.small-card .card-body {
  padding: 12px;
}

.small-card h2 {
  font-size: 16px;
}

.small-card p {
  display: none;
}

.detail-hero {
  padding: 34px 22px 62px;
  background: radial-gradient(circle at top left, #fff7ed, transparent 34%), linear-gradient(135deg, #111827, #3b0764 48%, #7f1d1d);
}

.breadcrumb {
  max-width: 1240px;
  margin: 0 auto 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.breadcrumb a:hover {
  color: #fff;
}

.detail-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 30px;
  align-items: center;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #000;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  aspect-ratio: 16 / 9;
}

.player-card video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-card video {
  object-fit: contain;
  background: #000;
}

.player-cover {
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #fff;
  background: #000;
  z-index: 4;
}

.player-cover img {
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  filter: blur(1px);
}

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
  font-size: 34px;
}

.detail-info {
  color: #fff;
}

.detail-info h1 {
  margin-top: 8px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
}

.lead-text {
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.detail-tags {
  margin: 20px 0 24px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: start;
}

.content-card {
  padding: 28px;
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.content-card p {
  margin: 0 0 26px;
  color: #374151;
  line-height: 1.9;
  font-size: 17px;
}

.side-card {
  position: sticky;
  top: 92px;
}

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

.movie-fields div {
  padding: 16px;
  border-radius: 18px;
  background: #fff7ed;
}

.movie-fields dt {
  color: var(--orange);
  font-weight: 900;
  margin-bottom: 6px;
}

.movie-fields dd {
  margin: 0;
  color: #374151;
}

.related-grid {
  padding-bottom: 76px;
}

.site-footer {
  margin-top: 76px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 22px;
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr;
  gap: 36px;
}

.footer-brand {
  margin-bottom: 12px;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}

.footer-grid p {
  max-width: 460px;
  line-height: 1.75;
}

.footer-grid h2 {
  color: #fff;
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a:hover {
  color: #fb923c;
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 22px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  font-size: 14px;
}

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

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

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

  .feature-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

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

  .hero-shell {
    min-height: auto;
    padding-top: 58px;
  }

  .hero-slide,
  .hero-slide.active,
  .detail-grid,
  .page-hero-split,
  .footer-grid,
  .overview-card {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 360px;
    margin: 12px auto 0;
  }

  .hero-poster img {
    height: 440px;
  }

  .hero-dots {
    bottom: 60px;
  }

  .feature-strip,
  .overview-grid,
  .rank-list.big,
  .movie-fields {
    grid-template-columns: 1fr;
  }

  .page-hero-split {
    text-align: center;
  }

  .page-hero-split > div:first-child,
  .local-filter {
    justify-self: center;
  }
}

@media (max-width: 620px) {
  .nav-wrap {
    height: 62px;
    padding-inline: 16px;
  }

  .brand {
    font-size: 21px;
  }

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

  .hero-copy p {
    font-size: 16px;
  }

  .hero-actions,
  .detail-actions,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

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

  .movie-card h2 {
    font-size: 16px;
  }

  .movie-card p {
    display: none;
  }

  .card-body {
    padding: 12px;
  }

  .section-wrap {
    padding-top: 48px;
  }

  .detail-hero {
    padding-inline: 14px;
  }

  .content-card {
    padding: 20px;
  }

  .rank-item {
    grid-template-columns: 30px 48px 1fr;
  }
}
