:root {
  --gold-50: #fffbeb;
  --gold-100: #fef3c7;
  --gold-200: #fde68a;
  --gold-300: #fcd34d;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --gold-700: #b45309;
  --gold-800: #92400e;
  --ink: #1f2937;
  --muted: #6b7280;
  --paper: #ffffff;
  --soft: #fff7ed;
  --line: #f1e4d0;
  --shadow: 0 16px 45px rgba(180, 83, 9, 0.16);
  --shadow-strong: 0 24px 70px rgba(146, 64, 14, 0.25);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(251, 191, 36, 0.18), transparent 28rem),
    linear-gradient(135deg, var(--gold-50), #ffffff 48%, #fff7ed);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500), var(--gold-700));
  box-shadow: 0 10px 35px rgba(146, 64, 14, 0.24);
}

.nav-shell {
  max-width: 1280px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.brand-text {
  font-size: 1.2rem;
}

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

.nav-link,
.mobile-nav-link {
  color: rgba(255, 255, 255, 0.86);
  padding: 10px 14px;
  border-radius: 12px;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.nav-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  min-width: 280px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 4px;
  backdrop-filter: blur(8px);
}

.nav-search input,
.mobile-search input,
.hero-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 10px 14px;
}

.nav-search input::placeholder,
.mobile-search input::placeholder,
.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.nav-search button,
.mobile-search button,
.hero-search button {
  border: 0;
  cursor: pointer;
  color: var(--gold-800);
  font-weight: 700;
  background: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 12px 22px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.mobile-search {
  display: flex;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 4px;
}

.page {
  min-height: calc(100vh - 72px);
}

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

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(1.08);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.62) 48%, rgba(146, 64, 14, 0.44)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.78), transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  min-height: 690px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 54px;
  padding: 90px 24px 70px;
  color: #fff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--gold-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--gold-100);
  border: 1px solid var(--gold-200);
  border-radius: 999px;
  padding: 7px 12px;
}

.hero-kicker {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
}

.hero-copy h1 {
  max-width: 820px;
  margin: 22px 0 18px;
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 55px rgba(0, 0, 0, 0.38);
}

.hero-copy p {
  max-width: 740px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.9;
}

.hero-tags,
.card-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.card-tags span,
.tag-row span {
  color: var(--gold-800);
  background: var(--gold-100);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

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

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.center-actions {
  justify-content: center;
}

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

.primary-button {
  color: var(--gold-900, #78350f);
  background: #fff;
  box-shadow: 0 16px 35px rgba(255, 255, 255, 0.18);
}

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.ghost-button.light {
  color: #fff;
}

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

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow-strong);
  transform: rotate(2deg);
  background: rgba(255, 255, 255, 0.12);
  padding: 10px;
}

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

.hero-poster span {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-700));
  box-shadow: 0 12px 30px rgba(146, 64, 14, 0.34);
}

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

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

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

.quick-panel {
  max-width: 1120px;
  margin: -34px auto 30px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 0 22px;
}

.quick-panel a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  color: var(--gold-800);
  font-weight: 900;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

.quick-panel a:hover {
  transform: translateY(-3px);
  color: #fff;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
}

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

.warm-section {
  max-width: 1220px;
  margin-top: 20px;
  border-radius: 32px;
  background: linear-gradient(135deg, #fff7ed, #fed7aa);
  box-shadow: var(--shadow);
}

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

.section-head h2,
.side-rank h2,
.related-categories h2 {
  margin: 10px 0 6px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.1;
  color: #111827;
}

.section-head p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.section-more {
  color: var(--gold-700);
  font-weight: 800;
  white-space: nowrap;
}

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

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

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

.movie-card {
  overflow: hidden;
  color: var(--ink);
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 10px 35px rgba(146, 64, 14, 0.12);
  transition: 0.28s ease;
}

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

.card-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--gold-100), var(--soft));
}

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

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

.card-year {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
}

.card-body {
  padding: 18px;
}

.card-type {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--gold-700);
  font-size: 0.78rem;
  font-weight: 900;
}

.card-body h3 {
  min-height: 2.8em;
  margin: 0 0 8px;
  color: #111827;
  font-size: 1.05rem;
  line-height: 1.4;
}

.card-body p {
  min-height: 3.2em;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

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

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

.category-tile {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  border-radius: 24px;
  color: #fff;
  box-shadow: var(--shadow);
  background: #111827;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18));
}

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

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

.category-tile span,
.category-tile em {
  position: relative;
  z-index: 1;
}

.category-tile span {
  font-size: 1.25rem;
  font-weight: 900;
}

.category-tile em {
  margin-top: 8px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

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

.side-rank,
.ranking-list,
.movie-article,
.detail-side,
.related-categories {
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.side-rank {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.rank-item {
  display: grid;
  grid-template-columns: 42px 76px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.rank-no {
  color: var(--gold-700);
  font-weight: 900;
  font-size: 1.05rem;
}

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

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

.rank-copy strong {
  overflow: hidden;
  color: #111827;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-copy em {
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 0.82rem;
}

.rank-score {
  color: #fff;
  font-weight: 900;
  padding: 6px 9px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-700));
}

.inner-page {
  padding-top: 0;
}

.inner-hero {
  color: #fff;
  text-align: center;
  padding: 92px 24px 70px;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.25), transparent 18rem),
    linear-gradient(135deg, var(--gold-500), var(--gold-700), var(--gold-800));
}

.inner-hero .eyebrow {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.24);
}

.inner-hero h1 {
  margin: 18px auto 14px;
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.inner-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.85;
}

.hero-search {
  max-width: 700px;
  margin: 28px auto 0;
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.ranking-layout {
  padding-top: 34px;
}

.ranking-list {
  padding: 12px 28px;
}

.search-status {
  margin-bottom: 18px;
  color: var(--gold-800);
  font-weight: 900;
}

.detail-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px 60px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 22px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--gold-700);
  font-weight: 800;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
  align-items: stretch;
}

.video-shell {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: 30px;
  background: #030712;
  box-shadow: var(--shadow-strong);
}

.site-video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  cursor: pointer;
  color: #fff;
  display: grid;
  place-content: center;
  gap: 14px;
  text-align: center;
  padding: 22px;
  background:
    radial-gradient(circle, rgba(251, 191, 36, 0.24), transparent 22rem),
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.34));
}

.player-overlay.hidden {
  display: none;
}

.play-icon {
  width: 86px;
  height: 86px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-700));
  box-shadow: 0 18px 55px rgba(146, 64, 14, 0.36);
}

.player-overlay strong {
  max-width: 720px;
  font-size: clamp(1.4rem, 4vw, 2.8rem);
  line-height: 1.15;
}

.detail-side {
  padding: 18px;
}

.detail-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  background: var(--gold-100);
}

.detail-score {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--gold-100), var(--soft));
}

.detail-score span {
  color: var(--muted);
  font-weight: 800;
}

.detail-score strong {
  color: var(--gold-700);
  font-size: 2rem;
}

.movie-article {
  margin-top: 26px;
  padding: 30px;
}

.movie-article h1 {
  margin: 16px 0 12px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.lead-text {
  color: var(--gold-800);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.85;
}

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

.meta-grid div {
  padding: 14px;
  border-radius: 18px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.meta-grid span,
.meta-grid strong {
  display: block;
}

.meta-grid span {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.meta-grid strong {
  color: #111827;
}

.movie-article h2 {
  margin: 30px 0 10px;
  color: #111827;
  font-size: 1.45rem;
}

.movie-article p {
  color: #374151;
  line-height: 2;
}

.detail-related {
  padding-left: 0;
  padding-right: 0;
}

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

.related-card {
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(146, 64, 14, 0.12);
}

.related-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.related-card span {
  display: block;
  padding: 12px;
  color: #111827;
  font-weight: 800;
  line-height: 1.45;
}

.related-categories {
  padding: 24px;
}

.related-categories div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-categories a {
  color: var(--gold-800);
  font-weight: 800;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--gold-100);
}

.site-footer {
  color: #fff;
  background: linear-gradient(135deg, var(--gold-800), #78350f);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.2fr;
  gap: 28px;
  padding: 44px 24px;
}

.footer-brand {
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.footer-inner p,
.footer-inner a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-links,
.footer-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-content: start;
}

.footer-links a,
.footer-cats a {
  transition: color 0.25s ease;
}

.footer-links a:hover,
.footer-cats a:hover {
  color: #fff;
}

@media (max-width: 1100px) {
  .nav-search {
    min-width: 220px;
  }

  .hero-content,
  .detail-grid,
  .two-column-section {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

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

  .detail-side {
    display: none;
  }
}

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

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

  .mobile-nav {
    display: block;
  }

  .mobile-nav[hidden] {
    display: none;
  }

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

  .hero-slider,
  .hero-content {
    min-height: 620px;
  }

  .hero-content {
    padding-top: 70px;
  }

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

  .movie-grid,
  .featured-grid,
  .small-grid,
  .category-movie-grid,
  .category-grid,
  .full-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 560px) {
  .nav-shell {
    height: 64px;
    padding: 0 14px;
  }

  .brand-text {
    font-size: 1rem;
  }

  .hero-copy h1,
  .inner-hero h1,
  .movie-article h1 {
    letter-spacing: -0.03em;
  }

  .hero-slider,
  .hero-content {
    min-height: 560px;
  }

  .hero-content,
  .content-section,
  .detail-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .quick-panel,
  .movie-grid,
  .featured-grid,
  .small-grid,
  .category-movie-grid,
  .category-grid,
  .full-category-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .video-shell,
  .site-video {
    min-height: 260px;
  }

  .movie-article {
    padding: 22px;
  }

  .rank-item {
    grid-template-columns: 34px 64px minmax(0, 1fr);
  }

  .rank-score {
    display: none;
  }
}
