:root {
  --color-primary: #d4884b;
  --color-primary-dark: #c6703f;
  --color-accent: #ed7516;
  --color-secondary: #1c1917;
  --color-text: #342f2a;
  --color-muted: #776d64;
  --color-line: #e8e4dc;
  --color-warm: #faf9f7;
  --color-card: #ffffff;
  --shadow-soft: 0 16px 40px rgba(28, 25, 23, 0.10);
  --shadow-hover: 0 22px 55px rgba(28, 25, 23, 0.18);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--color-text);
  background: linear-gradient(180deg, #fffdf9 0%, #f7f3ed 45%, #fffdf9 100%);
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(232, 228, 220, 0.92);
  box-shadow: 0 8px 28px rgba(28, 25, 23, 0.06);
}

.navbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
  color: var(--color-secondary);
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  box-shadow: 0 12px 24px rgba(212, 136, 75, 0.30);
}

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

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #62564d;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--color-primary-dark);
  background: #fff3e7;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: var(--color-secondary);
  background: #fff3e7;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--color-line);
  padding: 12px 0 18px;
}

.mobile-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #62564d;
  font-weight: 700;
}

.mobile-menu a:hover {
  background: #fff3e7;
  color: var(--color-primary-dark);
}

.hero-slider {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  color: #ffffff;
  background: var(--color-secondary);
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transform: scale(1.02);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 22%, rgba(237, 117, 22, 0.28), transparent 36%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.54) 46%, rgba(0, 0, 0, 0.10)),
    linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0.12) 45%, rgba(0, 0, 0, 0.10) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 590px;
  display: flex;
  align-items: center;
  padding: 72px 0;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff4e8;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  font-size: 14px;
  font-weight: 800;
}

.hero-title {
  margin: 0 0 20px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-text {
  max-width: 670px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2.2vw, 21px);
}

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

.hero-meta span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  font-size: 13px;
  font-weight: 800;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  box-shadow: 0 14px 30px rgba(212, 136, 75, 0.28);
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(212, 136, 75, 0.36);
}

.button.secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.button.light {
  color: var(--color-secondary);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(28, 25, 23, 0.10);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.46);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.slider-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
  transform: translateY(-50%) scale(1.05);
}

.slider-arrow.prev {
  left: 22px;
}

.slider-arrow.next {
  right: 22px;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 4;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

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

.slider-dots button.is-active {
  width: 32px;
  background: #ffffff;
}

.page-hero {
  padding: 62px 0 36px;
}

.page-hero h1 {
  margin: 0 0 12px;
  color: var(--color-secondary);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--color-muted);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  color: var(--color-muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--color-primary-dark);
  font-weight: 800;
}

.section {
  padding: 54px 0;
}

.section.compact {
  padding: 30px 0;
}

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

.section-kicker {
  margin: 0 0 8px;
  color: var(--color-primary-dark);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-title {
  margin: 0;
  color: var(--color-secondary);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-desc {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--color-muted);
}

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

.movie-card {
  min-width: 0;
  border: 1px solid rgba(232, 228, 220, 0.95);
  border-radius: var(--radius-md);
  background: var(--color-card);
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(28, 25, 23, 0.07);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 136, 75, 0.55);
  box-shadow: var(--shadow-hover);
}

.card-link {
  display: grid;
  height: 100%;
  grid-template-rows: auto 1fr;
}

.poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #2d2722, #6b4630);
}

.poster.wide {
  aspect-ratio: 16 / 9;
}

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

.movie-card:hover .poster img {
  transform: scale(1.06);
  filter: saturate(1.04) contrast(1.04);
}

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 45%);
  opacity: 0.85;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(212, 136, 75, 0.94);
  font-size: 12px;
  font-weight: 900;
}

.rank-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  min-width: 38px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.62);
  text-align: center;
  font-weight: 900;
}

.card-body {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--color-primary-dark);
  font-size: 12px;
  font-weight: 900;
}

.card-body h3 {
  margin: 0 0 9px;
  color: var(--color-secondary);
  font-size: 19px;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.card-body p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
}

.card-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #7a563d;
  background: #fff3e7;
  font-size: 12px;
  font-weight: 800;
}

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

.category-card {
  position: relative;
  min-height: 190px;
  padding: 24px;
  border: 1px solid rgba(232, 228, 220, 0.96);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 0%, rgba(237, 117, 22, 0.18), transparent 35%),
    #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  color: var(--color-secondary);
  font-size: 25px;
}

.category-card p {
  margin: 0 0 22px;
  color: var(--color-muted);
}

.category-card .count {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  font-size: 13px;
  font-weight: 900;
}

.filter-panel {
  display: grid;
  gap: 14px;
  margin: 0 0 30px;
  padding: 18px;
  border: 1px solid rgba(232, 228, 220, 0.94);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(28, 25, 23, 0.06);
}

.filter-input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  color: var(--color-secondary);
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-input:focus {
  border-color: rgba(212, 136, 75, 0.70);
  box-shadow: 0 0 0 4px rgba(212, 136, 75, 0.14);
}

.filter-hint {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
}

.empty-result {
  display: none;
  padding: 40px 20px;
  border: 1px dashed var(--color-line);
  border-radius: var(--radius-md);
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.detail-shell {
  padding: 42px 0 0;
}

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

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000000;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
}

.player-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 40%, rgba(237, 117, 22, 0.36), transparent 34%),
    rgba(0, 0, 0, 0.42);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-core {
  display: grid;
  place-items: center;
  gap: 14px;
  text-align: center;
}

.play-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  box-shadow: 0 18px 40px rgba(237, 117, 22, 0.38);
  font-size: 30px;
}

.play-title {
  font-size: 22px;
  font-weight: 900;
}

.detail-panel {
  padding: 24px;
  border: 1px solid rgba(232, 228, 220, 0.96);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.detail-panel h1 {
  margin: 0 0 12px;
  color: var(--color-secondary);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #7a563d;
  background: #fff3e7;
  font-size: 13px;
  font-weight: 900;
}

.detail-cover {
  overflow: hidden;
  margin-top: 20px;
  border-radius: 18px;
}

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

.prose-card {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid rgba(232, 228, 220, 0.96);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.prose-card h2 {
  margin: 0 0 14px;
  color: var(--color-secondary);
  font-size: 26px;
}

.prose-card p {
  margin: 0 0 18px;
  color: #4e463f;
  font-size: 17px;
}

.prose-card p:last-child {
  margin-bottom: 0;
}

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

.footer {
  margin-top: 70px;
  padding: 44px 0;
  color: #efe8df;
  background: var(--color-secondary);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer h2,
.footer h3 {
  margin: 0 0 10px;
  color: #ffffff;
}

.footer p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

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

.footer-links a {
  padding: 7px 11px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  font-size: 13px;
  font-weight: 800;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease both;
}

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

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

@media (max-width: 820px) {
  .navbar {
    min-height: 64px;
  }

  .brand {
    font-size: 21px;
  }

  .nav-links {
    display: none;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .mobile-menu.is-open {
    display: block;
  }

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

  .slider-arrow {
    display: none;
  }

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

  .section-head {
    display: block;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

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

  .hero-content {
    align-items: end;
    padding-bottom: 78px;
  }

  .hero-actions,
  .section-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

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

  .card-body {
    min-height: auto;
  }

  .play-icon {
    width: 66px;
    height: 66px;
  }
}
