:root {
  --bg: #fff7ed;
  --panel: #ffffff;
  --ink: #1c1917;
  --muted: #6b5f55;
  --soft: #ffedd5;
  --line: #fed7aa;
  --brand: #f59e0b;
  --brand-dark: #b45309;
  --brand-hot: #ea580c;
  --shadow: 0 22px 60px rgba(146, 64, 14, 0.16);
  --radius: 24px;
  --max: 1240px;
}

* {
  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(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fffbeb 100%);
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 237, 0.92);
  border-bottom: 1px solid rgba(251, 191, 36, 0.35);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(146, 64, 14, 0.08);
}

.nav-shell {
  width: min(var(--max), calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-hot));
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.32);
}

.brand-text {
  font-size: 1.45rem;
  background: linear-gradient(90deg, #92400e, #ea580c);
  -webkit-background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.nav-search {
  position: relative;
  flex: 1;
  max-width: 520px;
  margin-left: auto;
}

.nav-search input,
.mobile-search input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 2px solid #fcd9a5;
  border-radius: 999px;
  padding: 11px 48px 11px 18px;
  outline: none;
  color: #3b2a1a;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.nav-search button {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  cursor: pointer;
}

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

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

.desktop-nav a:hover {
  color: var(--brand-hot);
}

.mobile-toggle {
  display: none;
  border: 0;
  color: #7c2d12;
  background: transparent;
  font-size: 1.7rem;
}

.mobile-panel {
  display: none;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid rgba(251, 191, 36, 0.32);
}

.mobile-panel.is-open {
  display: grid;
  gap: 12px;
}

.mobile-panel a {
  color: #7c2d12;
  font-weight: 800;
}

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 14px;
}

.mobile-search input {
  padding-right: 18px;
}

.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #fff;
  background: var(--brand);
}

.hero-carousel {
  position: relative;
  height: 72vh;
  min-height: 560px;
  overflow: hidden;
  background: #180d05;
}

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(1.05) contrast(1.04);
}

.hero-shade,
.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 24%, rgba(245, 158, 11, 0.34), transparent 36%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.54) 42%, rgba(0, 0, 0, 0.24) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, transparent 54%);
}

.hero-content {
  position: absolute;
  left: max(32px, calc((100vw - var(--max)) / 2));
  bottom: 11vh;
  width: min(780px, calc(100% - 64px));
  color: #fff;
}

.eyebrow,
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f59e0b;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-label {
  padding: 8px 16px;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-hot));
  box-shadow: 0 18px 30px rgba(234, 88, 12, 0.28);
}

.hero-content h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
  text-shadow: 0 8px 36px rgba(0, 0, 0, 0.45);
}

.hero-content p {
  width: min(680px, 100%);
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 2vw, 1.28rem);
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-meta span,
.detail-meta span {
  padding: 7px 12px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-actions,
.section-heading,
.intro-strip,
.detail-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-hot));
  box-shadow: 0 15px 30px rgba(245, 158, 11, 0.28);
}

.btn-glass {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  font-size: 2rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-50%) scale(1.04);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: #fff;
}

.section-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 60px 0 0;
}

.intro-strip {
  margin-top: -42px;
  padding: 28px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.intro-strip h2,
.section-heading h2,
.rank-panel h2,
.content-card h2,
.info-panel h2 {
  margin: 4px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.intro-strip p {
  margin: 10px 0 0;
  color: var(--muted);
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading.compact {
  align-items: flex-end;
}

.section-heading.no-padding {
  margin-bottom: 20px;
}

.section-heading a {
  color: var(--brand-dark);
  font-weight: 900;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #7c2d12;
  font-size: 0.86rem;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  border-radius: 16px;
  padding: 10px 14px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.34);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(146, 64, 14, 0.08);
  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.72);
  box-shadow: var(--shadow);
}

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

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  color: #fff;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.64);
  font-size: 0.78rem;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

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

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.movie-card h2 {
  margin: 8px 0 8px;
  font-size: 1.18rem;
  line-height: 1.24;
}

.movie-card p {
  display: -webkit-box;
  min-height: 3.1em;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-row span {
  padding: 4px 9px;
  color: #92400e;
  border-radius: 999px;
  background: #ffedd5;
  font-size: 0.76rem;
  font-weight: 800;
}

.chip-row.large span {
  padding: 7px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

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

.rank-panel,
.info-panel,
.content-card,
.player-card {
  border: 1px solid rgba(251, 191, 36, 0.38);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 40px rgba(146, 64, 14, 0.08);
}

.rank-panel,
.info-panel,
.content-card {
  padding: 24px;
}

.rank-panel ol {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.rank-panel li a {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border-radius: 16px;
  background: #fff7ed;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-panel li a:hover {
  background: #ffedd5;
  transform: translateX(3px);
}

.rank-num {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-hot));
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-year {
  color: var(--muted);
  font-size: 0.86rem;
}

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

.category-tile,
.category-overview-card {
  border: 1px solid rgba(251, 191, 36, 0.38);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #fff, #fff7ed);
  box-shadow: 0 14px 36px rgba(146, 64, 14, 0.08);
}

.category-tile a,
.category-overview-main {
  display: block;
  padding: 24px;
}

.category-tile span,
.category-overview-card h2 {
  color: #7c2d12;
  font-size: 1.35rem;
  font-weight: 900;
}

.category-tile strong,
.category-overview-main strong {
  display: inline-flex;
  margin: 12px 0;
  color: var(--brand-hot);
  font-size: 2rem;
  line-height: 1;
}

.category-tile p,
.category-overview-main p {
  margin: 0;
  color: var(--muted);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 24px 24px;
}

.category-samples a {
  padding: 5px 10px;
  color: #92400e;
  border-radius: 999px;
  background: #ffedd5;
  font-size: 0.82rem;
  font-weight: 800;
}

.sub-hero {
  position: relative;
  overflow: hidden;
  padding: 96px max(24px, calc((100vw - var(--max)) / 2)) 76px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.42), transparent 36%),
    linear-gradient(135deg, #431407, #9a3412 48%, #f59e0b);
}

.sub-hero h1 {
  width: min(920px, 100%);
  margin: 8px 0 12px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.sub-hero p {
  width: min(760px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.detail-hero {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  color: #fff;
  background: #160b05;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(5px) saturate(1.1);
  transform: scale(1.04);
  opacity: 0.78;
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 32px));
  min-height: 540px;
  margin: 0 auto;
  justify-content: flex-start;
  padding: 56px 0;
}

.detail-poster {
  flex: 0 0 260px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-intro {
  width: min(780px, 100%);
}

.detail-intro h1 {
  margin: 10px 0 14px;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.detail-one-line {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.16rem;
}

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

.detail-main {
  display: grid;
  gap: 24px;
}

.player-card {
  overflow: hidden;
  padding: 0;
  background: #090909;
}

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

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

.big-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.52));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.big-play span {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-hot));
  box-shadow: 0 20px 50px rgba(234, 88, 12, 0.42);
  font-size: 2rem;
}

.big-play.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.player-status {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 12px;
  color: #fff;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 0.82rem;
  backdrop-filter: blur(10px);
}

.content-card p {
  margin: 12px 0 0;
  color: #3f3328;
  font-size: 1.04rem;
}

.detail-sidebar {
  display: grid;
  gap: 24px;
}

.info-panel dl {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px 14px;
  margin: 18px 0 0;
}

.info-panel dt {
  color: var(--muted);
}

.info-panel dd {
  margin: 0;
  font-weight: 900;
}

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

.movie-card-wide {
  display: grid;
  grid-template-columns: 132px 1fr;
}

.movie-card-wide .poster-link {
  aspect-ratio: auto;
  min-height: 198px;
}

.movie-card-wide .movie-card-body {
  align-self: center;
}

.search-page-form {
  display: grid;
  grid-template-columns: minmax(0, 520px) auto;
  gap: 12px;
  margin-top: 26px;
}

.search-page-form input {
  padding-right: 18px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.pagination a,
.pagination span {
  display: grid;
  min-width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-weight: 900;
}

.pagination .current {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-hot));
}

.site-footer {
  margin-top: 70px;
  color: #fffbeb;
  background: linear-gradient(180deg, #7c2d12, #431407);
}

.footer-grid {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 50px 0 34px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 34px;
}

.footer-grid h2 {
  margin: 0 0 12px;
  color: #fed7aa;
  font-size: 1.08rem;
}

.footer-grid p {
  color: #fed7aa;
}

.footer-grid a {
  display: inline-flex;
  margin: 0 12px 10px 0;
  color: #fff7ed;
  font-weight: 800;
}

.footer-brand {
  color: #fff;
  font-size: 1.7rem;
}

.footer-bottom {
  padding: 18px;
  text-align: center;
  color: #fed7aa;
  border-top: 1px solid rgba(254, 215, 170, 0.18);
}

[data-movie-card].is-hidden {
  display: none;
}

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

  .mobile-toggle {
    display: block;
  }

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

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

  .sticky-panel {
    position: static;
  }
}

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

  .hero-carousel {
    height: 76vh;
    min-height: 540px;
  }

  .hero-content {
    left: 20px;
    bottom: 84px;
    width: calc(100% - 40px);
  }

  .hero-actions,
  .intro-strip,
  .section-heading,
  .detail-hero-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-arrow {
    display: none;
  }

  .filter-panel,
  .footer-grid,
  .category-grid,
  .category-overview-grid,
  .movie-list-grid,
  .search-page-form {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    flex-basis: auto;
    width: 190px;
  }
}

@media (max-width: 540px) {
  .nav-shell {
    height: 62px;
  }

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

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

  .movie-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-wide {
    grid-template-columns: 104px 1fr;
  }

  .movie-card-wide .poster-link {
    min-height: 156px;
  }

  .section-shell {
    width: min(100% - 24px, var(--max));
    padding-top: 42px;
  }

  .sub-hero {
    padding: 70px 18px 54px;
  }

  .detail-hero-inner {
    width: min(100% - 24px, var(--max));
  }

  .detail-intro h1,
  .hero-content h1 {
    letter-spacing: -0.05em;
  }
}
