:root {
  --site-bg: #faf7f0;
  --site-bg-strong: #fff7ed;
  --ink: #292524;
  --muted: #78716c;
  --soft: #f5efe3;
  --line: rgba(120, 113, 108, 0.18);
  --amber: #d97706;
  --amber-dark: #92400e;
  --orange: #ea580c;
  --stone: #1c1917;
  --card: rgba(255, 255, 255, 0.9);
  --shadow: 0 18px 45px rgba(41, 37, 36, 0.12);
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.24), transparent 34rem),
    radial-gradient(circle at top right, rgba(234, 88, 12, 0.14), transparent 30rem),
    linear-gradient(180deg, #fffaf1 0%, var(--site-bg) 42%, #ffffff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: #fff7ed;
  background: linear-gradient(135deg, rgba(28, 25, 23, 0.98), rgba(120, 53, 15, 0.95));
  box-shadow: 0 12px 32px rgba(28, 25, 23, 0.24);
  backdrop-filter: blur(16px);
}

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

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #451a03;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  box-shadow: 0 14px 24px rgba(251, 146, 60, 0.26);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-size: 1.25rem;
}

.logo-subtitle {
  margin-top: 3px;
  color: #fcd34d;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 700;
}

.main-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: #fff7ed;
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: #451a03;
  background: linear-gradient(135deg, #fcd34d, #fb923c);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 3px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.site-header.is-open .nav-toggle span {
  opacity: 0;
}

.site-header.is-open .nav-toggle::before {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .nav-toggle::after {
  transform: translateY(-7px) rotate(-45deg);
}

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

.hero {
  position: relative;
  margin: 28px auto 56px;
  min-height: 620px;
  overflow: hidden;
  border-radius: 34px;
  color: #fffaf0;
  background: #1c1917;
  box-shadow: 0 28px 80px rgba(41, 37, 36, 0.28);
}

.hero-slider {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 38px;
  padding: 70px clamp(28px, 6vw, 76px);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 0.7s ease, transform 0.9s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(1.08) contrast(1.02);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 25, 23, 0.95), rgba(67, 20, 7, 0.72) 48%, rgba(28, 25, 23, 0.48)),
    radial-gradient(circle at 72% 22%, rgba(251, 191, 36, 0.34), transparent 24rem);
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(252, 211, 77, 0.42);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(120, 53, 15, 0.36);
  backdrop-filter: blur(8px);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(2.45rem, 6vw, 5.7rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.08em;
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
}

.hero-summary {
  max-width: 660px;
  margin-top: 22px;
  color: #ffedd5;
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #451a03;
  background: linear-gradient(135deg, #fde68a, #fdba74);
  font-size: 0.88rem;
  font-weight: 800;
}

.pill.soft {
  color: #7c2d12;
  background: #ffedd5;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 15px;
  border: 1px solid transparent;
  font-weight: 850;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  cursor: pointer;
}

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

.btn-primary {
  color: #451a03;
  background: linear-gradient(135deg, #fcd34d, #fb923c);
  box-shadow: 0 16px 32px rgba(251, 146, 60, 0.26);
}

.btn-ghost {
  color: #fff7ed;
  border-color: rgba(255, 237, 213, 0.28);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.hero-poster-card {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 480px;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255, 237, 213, 0.22);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.hero-poster-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(28, 25, 23, 0.9) 100%);
}

.hero-poster-info {
  position: relative;
  z-index: 2;
  padding: 26px;
}

.hero-poster-info strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.55rem;
}

.hero-poster-info p {
  color: #fed7aa;
  line-height: 1.7;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: clamp(28px, 6vw, 76px);
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: rgba(255, 237, 213, 0.42);
  cursor: pointer;
  transition: width 0.22s ease, background 0.22s ease;
}

.hero-dot.is-active {
  width: 40px;
  background: #fbbf24;
}

.section {
  margin-bottom: 58px;
}

.section-panel {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.section-panel.warm {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.92), rgba(255, 237, 213, 0.88));
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: "";
  width: 6px;
  height: 34px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--amber), var(--orange));
}

.section-title h2,
.page-title h1,
.detail-title h1 {
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.section-link {
  color: var(--amber-dark);
  font-weight: 850;
}

.page-hero {
  margin: 32px 0 42px;
  padding: clamp(28px, 6vw, 58px);
  border-radius: 34px;
  color: #fff7ed;
  background:
    linear-gradient(135deg, rgba(28, 25, 23, 0.96), rgba(120, 53, 15, 0.88)),
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.34), transparent 26rem);
  box-shadow: 0 24px 70px rgba(41, 37, 36, 0.22);
}

.page-title h1 {
  max-width: 860px;
  font-size: clamp(2.25rem, 5vw, 4.2rem);
  line-height: 1.05;
}

.page-title p {
  max-width: 780px;
  margin-top: 16px;
  color: #fed7aa;
  font-size: 1.08rem;
  line-height: 1.8;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(140px, 180px));
  gap: 12px;
  margin-bottom: 26px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(120, 113, 108, 0.22);
  border-radius: 15px;
  padding: 0 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  outline: none;
  box-shadow: 0 10px 24px rgba(41, 37, 36, 0.05);
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(217, 119, 6, 0.58);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.18);
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.chip {
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(217, 119, 6, 0.22);
  padding: 8px 14px;
  color: #7c2d12;
  background: #fff7ed;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.chip:hover,
.chip.is-active {
  color: #451a03;
  background: #fcd34d;
  transform: translateY(-1px);
}

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

.movie-grid.compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(120, 113, 108, 0.16);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 16px 36px rgba(41, 37, 36, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 119, 6, 0.3);
  box-shadow: 0 26px 50px rgba(41, 37, 36, 0.15);
}

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

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

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

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #451a03;
  background: rgba(252, 211, 77, 0.94);
  font-size: 0.78rem;
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.card-title {
  min-height: 2.8em;
  color: #1c1917;
  font-size: 1.04rem;
  line-height: 1.35;
  font-weight: 900;
}

.card-title a:hover {
  color: var(--amber-dark);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.card-desc {
  color: #57534e;
  font-size: 0.9rem;
  line-height: 1.65;
}

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

.tag {
  padding: 5px 8px;
  border-radius: 999px;
  color: #92400e;
  background: #ffedd5;
  font-size: 0.74rem;
  font-weight: 800;
}

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

.movie-card.horizontal {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
}

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

.movie-card.horizontal .card-title {
  min-height: auto;
  font-size: 1.18rem;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 24px;
  border-radius: 26px;
  color: #fff7ed;
  background: linear-gradient(135deg, #292524, #92400e);
  box-shadow: 0 18px 42px rgba(41, 37, 36, 0.16);
}

.category-card:nth-child(2) {
  background: linear-gradient(135deg, #1c1917, #b45309);
}

.category-card:nth-child(3) {
  background: linear-gradient(135deg, #431407, #ea580c);
}

.category-card:nth-child(4) {
  background: linear-gradient(135deg, #44403c, #a16207);
}

.category-card::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -52px;
  top: -44px;
  border-radius: 999px;
  background: rgba(252, 211, 77, 0.18);
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 2;
  font-size: 1.55rem;
  font-weight: 900;
}

.category-card p {
  position: relative;
  z-index: 2;
  margin: 12px 0 22px;
  color: #fed7aa;
  line-height: 1.7;
}

.ranking-list {
  display: grid;
  gap: 12px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 54px 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(120, 113, 108, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(41, 37, 36, 0.06);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  color: #451a03;
  background: linear-gradient(135deg, #fcd34d, #fb923c);
  font-weight: 950;
}

.ranking-item img {
  width: 86px;
  height: 118px;
  object-fit: cover;
  border-radius: 14px;
  background: #fed7aa;
}

.ranking-copy h2,
.ranking-copy h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  font-weight: 900;
}

.ranking-copy p {
  color: #57534e;
  line-height: 1.6;
}

.rank-score {
  color: #92400e;
  font-size: 1.15rem;
  font-weight: 950;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr);
  gap: 34px;
  margin: 34px 0;
  padding: clamp(22px, 5vw, 42px);
  border-radius: 34px;
  color: #fff7ed;
  background: linear-gradient(135deg, #1c1917, #7c2d12);
  box-shadow: 0 24px 70px rgba(41, 37, 36, 0.2);
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.26);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  background: #fed7aa;
}

.detail-title h1 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1.05;
}

.detail-lead {
  max-width: 820px;
  margin-top: 18px;
  color: #fed7aa;
  font-size: 1.1rem;
  line-height: 1.85;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #0c0a09;
  box-shadow: 0 26px 64px rgba(41, 37, 36, 0.25);
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0c0a09;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  color: #fff7ed;
  background: linear-gradient(135deg, rgba(12, 10, 9, 0.48), rgba(120, 53, 15, 0.52));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  color: #451a03;
  background: linear-gradient(135deg, #fde68a, #fb923c);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
  font-size: 2rem;
  transform: scale(1);
  transition: transform 0.2s ease;
}

.player-overlay:hover .play-circle {
  transform: scale(1.08);
}

.content-card {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 42px rgba(41, 37, 36, 0.08);
}

.content-card h2 {
  margin-bottom: 14px;
  color: #1c1917;
  font-size: 1.45rem;
  font-weight: 900;
}

.content-card p {
  color: #44403c;
  font-size: 1rem;
  line-height: 1.9;
}

.side-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 42px rgba(41, 37, 36, 0.08);
}

.side-card h2 {
  margin-bottom: 16px;
  font-size: 1.25rem;
  font-weight: 900;
}

.related-list {
  display: grid;
  gap: 12px;
}

.related-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 74px;
  height: 98px;
  object-fit: cover;
  border-radius: 14px;
  background: #fed7aa;
}

.related-item strong {
  display: block;
  margin-bottom: 6px;
  line-height: 1.35;
}

.related-item span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.site-footer {
  margin-top: 68px;
  color: #d6d3d1;
  background: linear-gradient(135deg, #1c1917, #292524);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.footer-logo {
  color: #fcd34d;
  font-size: 1.2rem;
  font-weight: 900;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 750;
}

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

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

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-poster-card {
    display: none;
  }

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

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-block;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 22px;
    background: rgba(28, 25, 23, 0.98);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  }

  .site-header.is-open .main-nav {
    display: flex;
  }

  .main-nav a {
    border-radius: 14px;
  }

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

  .hero-slide {
    padding: 48px 24px 76px;
  }

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

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

  .movie-card.horizontal {
    display: block;
  }

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

  .detail-poster img {
    min-height: 360px;
  }

  .ranking-item {
    grid-template-columns: 42px 74px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 3;
  }

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

@media (max-width: 560px) {
  .page-main,
  .header-inner,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .logo-subtitle {
    display: none;
  }

  .movie-grid,
  .movie-grid.compact,
  .category-panels,
  .horizontal-list {
    grid-template-columns: 1fr;
  }

  .hero {
    border-radius: 24px;
  }

  .hero h1 {
    letter-spacing: -0.06em;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
