:root {
  --color-ink: #292524;
  --color-muted: #78716c;
  --color-soft: #f5f5f4;
  --color-card: #ffffff;
  --color-line: #e7e5e4;
  --color-primary: #f59e0b;
  --color-primary-dark: #d97706;
  --color-dark: #1c1917;
  --shadow-card: 0 18px 45px rgba(41, 37, 36, 0.10);
  --shadow-soft: 0 10px 30px rgba(41, 37, 36, 0.08);
  --radius-xl: 28px;
  --radius-card: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--color-ink);
  background: linear-gradient(180deg, #fafaf9 0%, #ffffff 58%, #fafaf9 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.82), rgba(28, 25, 23, 0.08));
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.site-header.is-scrolled,
.site-header.light-header {
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 35px rgba(41, 37, 36, 0.10);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #fb923c);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.35);
}

.logo-text {
  font-size: 1.35rem;
}

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

.nav-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 700;
  opacity: 0.88;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  opacity: 1;
  transform: translateY(-1px);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.site-header.is-scrolled .header-search,
.site-header.light-header .header-search,
.mobile-search {
  background: #f5f5f4;
  border-color: #e7e5e4;
}

.header-search input,
.mobile-search input {
  width: 180px;
  min-width: 0;
  border: 0;
  outline: none;
  color: inherit;
  background: transparent;
  padding: 10px 14px;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: currentColor;
  opacity: 0.62;
}

.header-search button,
.mobile-search button {
  border: 0;
  padding: 10px 16px;
  color: #ffffff;
  background: var(--color-primary);
  font-weight: 800;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-ink);
  box-shadow: var(--shadow-soft);
}

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

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 800;
}

.mobile-nav-link:hover {
  color: var(--color-primary-dark);
  background: #fffbeb;
}

.main-offset {
  padding-top: 98px;
}

.hero-slider {
  position: relative;
  min-height: 76vh;
  color: #ffffff;
  overflow: hidden;
  background: #1c1917;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.8s ease;
  pointer-events: none;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28, 25, 23, 0.82), rgba(28, 25, 23, 0.42) 45%, rgba(28, 25, 23, 0.20)), linear-gradient(0deg, rgba(28, 25, 23, 0.84), rgba(28, 25, 23, 0.02) 62%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 76vh;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  padding: 130px 0 76px;
}

.hero-copy {
  width: min(780px, 100%);
}

.hero-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #fde68a;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-tags,
.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.movie-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-tags span {
  padding: 7px 13px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.movie-tags span {
  padding: 5px 9px;
  color: #92400e;
  background: #fffbeb;
}

.hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.7rem, 7vw, 5.7rem);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.06em;
  text-shadow: 0 10px 35px rgba(0, 0, 0, 0.32);
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.90);
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.78;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.30);
}

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

.primary-button,
.secondary-button,
.section-more,
.small-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  padding: 14px 24px;
  color: #ffffff;
  background: var(--color-primary);
  box-shadow: 0 18px 38px rgba(245, 158, 11, 0.34);
}

.primary-button:hover,
.secondary-button:hover,
.section-more:hover,
.small-action:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  background: var(--color-primary-dark);
}

.secondary-button {
  padding: 13px 22px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.hero-dots {
  position: absolute;
  z-index: 3;
  right: max(24px, calc((100% - 1180px) / 2));
  bottom: 34px;
  display: flex;
  gap: 10px;
}

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

.hero-dot.is-active {
  width: 34px;
  background: var(--color-primary);
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.content-stack {
  display: grid;
  gap: 68px;
  padding: 68px 0 92px;
}

.section-heading,
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-heading h2,
.page-heading h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-heading p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--color-muted);
  line-height: 1.8;
}

.section-more,
.small-action {
  color: var(--color-primary-dark);
  background: #fffbeb;
}

.section-more {
  flex: 0 0 auto;
  padding: 10px 18px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: var(--color-card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: var(--shadow-card);
}

.movie-card.large {
  border-radius: 24px;
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #292524, #57534e);
}

.movie-card.large .poster {
  aspect-ratio: 16 / 10;
}

.poster img,
.list-thumb img,
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(28, 25, 23, 0.72), rgba(28, 25, 23, 0.02) 54%);
}

.poster-year {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(28, 25, 23, 0.68);
  font-size: 0.78rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.poster-play {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--color-primary);
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.34);
}

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

.movie-card-content h3,
.list-content h3 {
  margin: 12px 0 8px;
  color: var(--color-ink);
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.35;
}

.movie-card-content h3 a:hover,
.list-content h3 a:hover {
  color: var(--color-primary-dark);
}

.movie-card-content p,
.list-content p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feature-band {
  padding: 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #fff7ed, #fffbeb 55%, #ffffff);
  box-shadow: var(--shadow-soft);
}

.horizontal-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 360px);
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.horizontal-scroll .movie-card {
  scroll-snap-align: start;
}

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

.list-card {
  position: relative;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.rank-num {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #fb923c);
  font-size: 1.1rem;
  font-weight: 950;
}

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

.list-thumb {
  display: block;
  width: 86px;
  height: 112px;
  overflow: hidden;
  border-radius: 14px;
  background: #292524;
}

.small-action {
  padding: 9px 16px;
}

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

.category-card {
  position: relative;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 24px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(28, 25, 23, 0.92), rgba(245, 158, 11, 0.70));
  box-shadow: var(--shadow-card);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 34%);
}

.category-card h2,
.category-card p,
.category-card span {
  position: relative;
  z-index: 1;
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 1.55rem;
  font-weight: 950;
}

.category-card p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.category-card span {
  display: inline-flex;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 900;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(140px, 0.5fr));
  gap: 14px;
  padding: 18px;
  margin-bottom: 28px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  outline: none;
  background: #fafaf9;
  padding: 12px 14px;
  color: var(--color-ink);
}

.empty-state {
  display: none;
  padding: 32px;
  border-radius: 18px;
  color: var(--color-muted);
  background: #ffffff;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.empty-state.is-visible {
  display: block;
}

.detail-hero {
  position: relative;
  color: #ffffff;
  background: #1c1917;
  overflow: hidden;
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  filter: blur(2px);
}

.detail-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28, 25, 23, 0.94), rgba(28, 25, 23, 0.70)), linear-gradient(0deg, rgba(28, 25, 23, 0.95), transparent 70%);
}

.detail-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 38px;
  padding: 132px 0 62px;
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 3 / 4;
  background: #292524;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

.detail-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.detail-copy p {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  line-height: 1.9;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.panel {
  border: 1px solid var(--color-line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.panel-body {
  padding: 24px;
}

.panel h2 {
  margin: 0 0 16px;
  font-size: 1.55rem;
  font-weight: 950;
}

.panel p {
  color: #57534e;
  line-height: 1.9;
}

.player-panel {
  overflow: hidden;
}

.player-frame {
  position: relative;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.player-frame video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 150px;
  border: 0;
  border-radius: 999px;
  padding: 15px 24px;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.96);
  font-size: 1rem;
  font-weight: 950;
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.36);
}

.player-frame.is-ready .player-start {
  opacity: 0;
  pointer-events: none;
}

.side-meta {
  display: grid;
  gap: 12px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f5f5f4;
}

.meta-row span:first-child {
  color: var(--color-muted);
}

.meta-row span:last-child {
  font-weight: 900;
  text-align: right;
}

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

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

.next-prev a {
  padding: 18px;
  border-radius: 18px;
  background: #fffbeb;
  color: #92400e;
  font-weight: 900;
}

.site-footer {
  color: #d6d3d1;
  background: linear-gradient(180deg, #292524, #1c1917);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  padding: 54px 0;
}

.footer-logo {
  color: #ffffff;
}

.footer-brand p {
  max-width: 480px;
  color: #a8a29e;
  line-height: 1.8;
}

.footer-group {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-group h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 1.05rem;
}

.footer-group a {
  color: #a8a29e;
}

.footer-group a:hover {
  color: #fbbf24;
}

.footer-bottom {
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #a8a29e;
  text-align: center;
}

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

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

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

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

  .detail-cover {
    max-width: 320px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    width: min(100% - 24px, 1180px);
    height: 66px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .logo-text {
    font-size: 1.08rem;
  }

  .hero-slider,
  .hero-content {
    min-height: 82vh;
  }

  .hero-content {
    padding-top: 110px;
    padding-bottom: 82px;
  }

  .hero-dots {
    left: 16px;
    right: auto;
  }

  .content-stack {
    gap: 48px;
    padding: 48px 0 70px;
  }

  .section-heading,
  .page-heading {
    display: block;
  }

  .section-more {
    margin-top: 14px;
  }

  .movie-grid,
  .movie-grid.three,
  .category-grid,
  .related-grid,
  .next-prev {
    grid-template-columns: 1fr;
  }

  .feature-band {
    padding: 22px;
  }

  .list-card,
  .list-card:has(.rank-num) {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .rank-num,
  .list-card .small-action {
    display: none;
  }

  .list-thumb {
    width: 72px;
    height: 96px;
  }

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

  .detail-inner {
    padding-top: 100px;
  }

  .detail-cover {
    max-width: 240px;
  }
}
