:root {
  --amber-950: #431407;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-50: #fff7ed;
  --paper: #ffffff;
  --ink: #171717;
  --muted: #6b7280;
  --line: rgba(120, 53, 15, 0.13);
  --shadow: 0 18px 45px rgba(67, 20, 7, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 34%, #fff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, var(--amber-900), var(--amber-800), #7c2d12);
  box-shadow: 0 10px 30px rgba(67, 20, 7, 0.25);
}

.nav-wrap {
  max-width: 1220px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--amber-900);
  background: #fbbf24;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.22);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
}

.primary-nav a,
.mobile-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.primary-nav a:hover,
.primary-nav .nav-active,
.mobile-nav a:hover,
.mobile-nav .nav-active {
  color: #fde68a;
}

.primary-nav a:hover {
  transform: translateY(-1px);
}

.site-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-search input,
.large-search input {
  width: 220px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  outline: none;
  border-radius: 999px;
  padding: 10px 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.site-search input::placeholder,
.large-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.site-search button,
.large-search button,
.btn-primary,
.btn-ghost,
.more-link,
.intro-actions a,
.category-overview-head a {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 900;
  cursor: pointer;
}

.site-search button,
.btn-primary,
.large-search button {
  color: #7c2d12;
  background: #fbbf24;
  box-shadow: 0 10px 22px rgba(251, 191, 36, 0.24);
}

.menu-toggle {
  display: none;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 22px 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.hero-section {
  min-height: 600px;
  color: #fff;
  background: linear-gradient(90deg, var(--amber-950), var(--amber-800), #7c2d12);
  overflow: hidden;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 52px;
  align-items: center;
  max-width: 1220px;
  margin: 0 auto;
  padding: 76px 22px 88px;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: translateX(26px);
}

.hero-slide::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(90deg, rgba(67, 20, 7, 0.94), rgba(146, 64, 14, 0.74), rgba(124, 45, 18, 0.92)), var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.34), transparent 28%), radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.14), transparent 25%);
}

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

.hero-copy {
  max-width: 780px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fcd34d;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 8vw, 78px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

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

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

.hero-tags span,
.tag-row span,
.detail-category {
  border-radius: 999px;
  padding: 6px 12px;
  color: #92400e;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 800;
}

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

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.hero-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 34px;
  border-radius: 999px;
  background: #fbbf24;
}

.section-wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 56px 22px;
}

.intro-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.intro-panel h2,
.section-head h2,
.page-hero h1,
.detail-content h1 {
  margin: 8px 0 0;
  color: #1f2937;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.intro-panel p,
.page-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
}

.intro-actions,
.section-head,
.category-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.intro-actions a,
.more-link,
.category-overview-head a {
  color: #fff;
  background: linear-gradient(90deg, var(--orange-600), var(--amber-600));
}

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

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

.category-card,
.category-overview-card,
.side-panel,
.detail-content {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.category-card {
  min-height: 190px;
  padding: 24px;
  background: linear-gradient(145deg, #ffffff, #fff7ed);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover,
.movie-card:hover,
.compact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 60px rgba(67, 20, 7, 0.18);
}

.category-card h3,
.category-overview-card h2 {
  margin: 0 0 10px;
  color: #7c2d12;
  font-size: 23px;
}

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

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-samples span {
  border-radius: 999px;
  padding: 5px 10px;
  color: #b45309;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(67, 20, 7, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #7c2d12, #f97316);
}

.poster-link img {
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover img {
  transform: scale(1.06);
  filter: brightness(0.82);
}

.poster-mask {
  position: absolute;
  inset: auto 14px 14px 14px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding: 9px 12px;
  color: #7c2d12;
  background: #fbbf24;
  font-weight: 900;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .poster-mask {
  opacity: 1;
  transform: translateY(0);
}

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

.movie-title {
  display: block;
  color: #1f2937;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}

.movie-line {
  min-height: 46px;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #92400e;
  font-size: 13px;
  font-weight: 800;
}

.movie-meta span,
.detail-meta span {
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff7ed;
}

.tag-row {
  margin-top: 12px;
}

.page-hero {
  color: #fff;
  background: linear-gradient(90deg, #9a3412, #d97706, #92400e);
}

.page-hero-inner h1,
.page-hero-inner p {
  color: #fff;
}

.page-hero-inner p {
  color: rgba(255, 255, 255, 0.9);
}

.category-overview-list {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  padding: 26px;
}

.compact-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.compact-card {
  overflow: hidden;
  border-radius: 16px;
  background: #fff7ed;
  box-shadow: 0 8px 20px rgba(67, 20, 7, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.compact-card img {
  aspect-ratio: 2 / 3;
}

.compact-card span {
  display: block;
  padding: 9px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: #7c2d12;
  background: #fbbf24;
  font-weight: 950;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.large-search {
  display: flex;
  max-width: 720px;
  gap: 12px;
  margin-top: 24px;
}

.large-search input {
  flex: 1;
  width: auto;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-row button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  color: #92400e;
  background: #fff7ed;
  cursor: pointer;
  font-weight: 800;
}

.filter-row button.is-active {
  color: #fff;
  background: #d97706;
}

.empty-state {
  padding: 42px;
  border-radius: 24px;
  color: #92400e;
  text-align: center;
  background: #fff7ed;
  font-weight: 900;
}

.detail-layout {
  padding-top: 32px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  color: #92400e;
  font-weight: 800;
}

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

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #111827;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.video-element {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.72));
  cursor: pointer;
  font-size: 20px;
  font-weight: 950;
  transition: opacity 0.2s ease;
}

.movie-player.is-started .player-cover {
  opacity: 0;
  pointer-events: none;
}

.play-circle {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #7c2d12;
  background: #fbbf24;
  box-shadow: 0 18px 45px rgba(251, 191, 36, 0.35);
}

.detail-content {
  margin-top: 22px;
  padding: 28px;
}

.detail-category {
  display: inline-flex;
  margin-bottom: 12px;
}

.detail-content h1 {
  margin-top: 0;
}

.detail-content h2,
.side-panel h2,
.related-section h2 {
  margin: 28px 0 12px;
  color: #7c2d12;
}

.lead-text {
  color: #374151;
  font-size: 18px;
  font-weight: 700;
}

.detail-tags {
  margin: 18px 0;
}

.detail-side {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 18px;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.side-panel {
  padding: 22px;
}

.side-panel dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px 12px;
  margin: 0;
}

.side-panel dt {
  color: #92400e;
  font-weight: 900;
}

.side-panel dd {
  margin: 0;
  color: #374151;
}

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

.movie-card-small .movie-line {
  min-height: 0;
}

.site-footer {
  margin-top: 42px;
  color: rgba(255, 255, 255, 0.86);
  background: #111827;
}

.footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 34px 22px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.66);
}

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

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

  .menu-toggle {
    display: block;
  }

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

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

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

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

@media (max-width: 860px) {
  .nav-wrap {
    height: auto;
    min-height: 66px;
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .site-search {
    order: 4;
    width: 100%;
  }

  .site-search input {
    flex: 1;
    width: auto;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 26px;
    min-height: 760px;
  }

  .hero-poster {
    max-width: 240px;
    margin: 0 auto;
  }

  .intro-panel,
  .section-head,
  .category-overview-head,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

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

  .detail-side {
    position: static;
  }
}

@media (max-width: 560px) {
  .section-wrap {
    padding: 38px 16px;
  }

  .nav-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-logo {
    font-size: 19px;
  }

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

  .hero-slide {
    min-height: 720px;
    padding: 48px 16px 80px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-copy p {
    font-size: 16px;
  }

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

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

  .large-search {
    flex-direction: column;
  }
}
