* {
  box-sizing: border-box;
}

:root {
  --canyon-50: #faf8f5;
  --canyon-100: #f5f0e8;
  --canyon-200: #e8dbc8;
  --canyon-500: #b8895a;
  --canyon-700: #8a5c3f;
  --canyon-800: #704c37;
  --canyon-900: #5c3f2f;
  --earth-600: #7a6752;
  --earth-700: #655545;
  --earth-800: #56483c;
  --forest-50: #f4f6f4;
  --forest-600: #65795f;
  --forest-700: #52664e;
  --gold-400: #ffc94a;
  --gold-500: #ffb41e;
  --gold-600: #f09200;
  --sand-50: #fdfcfa;
  --sand-100: #faf7f0;
  --text: #2f241c;
  --muted: #766858;
  --white: #ffffff;
  --shadow: 0 10px 15px -3px rgba(138, 92, 63, 0.10), 0 4px 6px -2px rgba(138, 92, 63, 0.05);
  --shadow-lg: 0 20px 45px rgba(92, 63, 47, 0.18);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--canyon-50), var(--white), var(--sand-50));
  min-height: 100vh;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--canyon-800), var(--earth-800));
  box-shadow: var(--shadow);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--gold-500);
  color: var(--canyon-900);
  box-shadow: 0 0 0 6px rgba(255, 180, 30, 0.18);
}

.brand-text {
  font-size: 22px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 600;
}

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

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--gold-400);
  opacity: 1;
}

.nav-search {
  display: flex;
  flex: 1;
  max-width: 380px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.nav-search input,
.mobile-nav input,
.filter-panel input,
.filter-panel select {
  min-width: 0;
  border: 0;
  outline: 0;
  color: inherit;
  font: inherit;
}

.nav-search input {
  flex: 1;
  padding: 11px 14px;
  color: var(--white);
  background: transparent;
}

.nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.nav-search button,
.mobile-nav button,
.filter-panel button,
.btn,
.player-button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button {
  padding: 0 18px;
  color: var(--canyon-900);
  background: var(--gold-500);
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 22px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  background: rgba(0, 0, 0, 0.12);
}

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

.mobile-nav a {
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-nav form {
  display: flex;
  gap: 8px;
}

.mobile-nav input {
  flex: 1;
  padding: 12px;
  border-radius: 999px;
  color: var(--text);
}

.mobile-nav button {
  padding: 0 16px;
  color: var(--canyon-900);
  background: var(--gold-500);
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: #000;
}

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

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

.hero-slide img {
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.02);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.10));
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 72px 0;
  color: var(--white);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-title {
  max-width: 850px;
  margin: 0 0 16px;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-desc {
  max-width: 720px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2.1vw, 22px);
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
}

.btn-primary {
  color: var(--canyon-900);
  background: var(--gold-500);
  box-shadow: 0 15px 30px rgba(255, 180, 30, 0.25);
}

.btn-secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.btn:hover,
.player-button:hover,
.filter-panel button:hover {
  transform: translateY(-2px);
}

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.48);
  cursor: pointer;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  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.55);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
  width: 32px;
  background: var(--gold-500);
}

main {
  padding: 54px 0 70px;
}

.content-section {
  margin-bottom: 64px;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: var(--canyon-900);
}

.section-heading h1 {
  font-size: clamp(32px, 5vw, 52px);
}

.section-heading h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.section-heading p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

.section-more {
  color: var(--canyon-700);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(184, 137, 90, 0.18);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--canyon-100), var(--sand-100));
}

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

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

.poster-link img.image-missing {
  opacity: 0.18;
}

.play-dot {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--canyon-900);
  background: var(--gold-500);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--canyon-900);
  background: var(--gold-500);
}

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

.movie-card h3 {
  margin: 0 0 8px;
  color: var(--canyon-900);
  font-size: 19px;
  line-height: 1.35;
}

.movie-meta {
  margin: 0 0 8px;
  color: var(--earth-600);
  font-size: 14px;
}

.movie-desc {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card-small h3 {
  font-size: 16px;
}

.movie-card-small .movie-desc {
  display: none;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-list span,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--forest-700);
  background: var(--forest-50);
  font-size: 12px;
  font-weight: 700;
}

.category-panel {
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--forest-50), var(--canyon-50));
}

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

.category-card {
  padding: 22px;
  border: 1px solid rgba(184, 137, 90, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
}

.category-card strong {
  display: block;
  color: var(--canyon-900);
  font-size: 20px;
  margin-bottom: 8px;
}

.category-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}

.category-card span {
  color: var(--canyon-700);
  font-weight: 800;
}

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

.list-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 16px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.list-card img {
  height: 112px;
  border-radius: 12px;
  object-fit: cover;
}

.list-card h3 {
  margin: 0 0 8px;
}

.breadcrumb {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--canyon-700);
  font-weight: 700;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(250px, 360px) 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 42px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  background: var(--canyon-100);
  box-shadow: var(--shadow-lg);
}

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

.detail-info h1 {
  margin: 0 0 16px;
  color: var(--canyon-900);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.detail-info .summary {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.player-wrap {
  overflow: hidden;
  margin-bottom: 42px;
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow-lg);
}

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

.player-box video,
.player-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-box video {
  display: none;
}

.player-box.playing video {
  display: block;
}

.player-box.playing .player-poster,
.player-box.playing .player-overlay {
  display: none;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.18));
}

.player-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  color: var(--canyon-900);
  background: var(--gold-500);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.player-note {
  padding: 14px 18px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.article-panel {
  padding: 30px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.article-panel h2 {
  margin-top: 0;
  color: var(--canyon-900);
}

.article-panel p {
  color: var(--muted);
  line-height: 1.95;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 160px 160px auto;
  gap: 12px;
  padding: 18px;
  margin-bottom: 30px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.filter-panel input,
.filter-panel select {
  padding: 13px 14px;
  border: 1px solid var(--canyon-200);
  border-radius: 12px;
  background: var(--sand-50);
}

.filter-panel button {
  padding: 0 20px;
  color: var(--canyon-900);
  background: var(--gold-500);
}

.site-footer {
  padding: 36px 0;
  color: rgba(255, 255, 255, 0.84);
  background: linear-gradient(90deg, var(--canyon-900), var(--earth-800));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
}

.site-footer p {
  max-width: 620px;
  margin: 8px 0 0;
  line-height: 1.7;
}

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

.footer-links a {
  color: var(--gold-400);
  font-weight: 700;
}

.footer-count {
  font-weight: 800;
}

.sitemap-list {
  columns: 4 240px;
  column-gap: 32px;
}

.sitemap-list a {
  display: inline-block;
  width: 100%;
  padding: 6px 0;
  color: var(--canyon-800);
  break-inside: avoid;
}

.empty-state {
  padding: 42px;
  border-radius: 24px;
  text-align: center;
  background: var(--white);
  box-shadow: var(--shadow);
}

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

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

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

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

  .brand-text {
    font-size: 18px;
  }

  .hero {
    min-height: 520px;
  }

  .hero-content {
    padding: 56px 0 64px;
  }

  .hero-control {
    display: none;
  }

  main {
    padding-top: 36px;
  }

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

  .section-heading {
    display: block;
  }

  .category-panel,
  .article-panel {
    padding: 20px;
  }

  .list-card,
  .detail-hero,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .list-card img {
    height: 180px;
  }

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

@media (max-width: 460px) {
  .movie-grid,
  .movie-grid-small,
  .category-grid {
    grid-template-columns: 1fr;
  }
}
