* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #292524;
  background: #fafaf9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #78350f, #9a3412 48%, #78350f);
  box-shadow: 0 12px 30px rgba(41, 37, 36, 0.2);
}

.header-inner {
  max-width: 1200px;
  height: 64px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark,
.footer-brand span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff7ed;
  background: #d97706;
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.35);
}

.brand-text strong,
.brand-text em {
  display: block;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-text em {
  margin-top: 3px;
  color: #fde68a;
  font-size: 12px;
  font-style: normal;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link,
.nav-more {
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-more:hover {
  color: #fde68a;
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.nav-menu {
  position: absolute;
  right: 0;
  top: 36px;
  min-width: 170px;
  display: none;
  padding: 10px;
  border-radius: 16px;
  background: rgba(41, 37, 36, 0.96);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu {
  display: grid;
  gap: 4px;
}

.nav-menu a {
  padding: 9px 10px;
  border-radius: 10px;
  color: #f5f5f4;
}

.nav-menu a:hover {
  background: rgba(217, 119, 6, 0.28);
  color: #fde68a;
}

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

.mobile-nav {
  display: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px 18px;
  border-top: 1px solid rgba(253, 230, 138, 0.22);
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: #fff7ed;
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #1c1917;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  background-position: center;
  background-size: cover;
  transition: opacity 0.8s ease;
}

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

.hero-content {
  width: min(720px, calc(100% - 40px));
  margin-left: max(20px, calc((100vw - 1200px) / 2 + 20px));
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fffbeb;
  background: rgba(217, 119, 6, 0.9);
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.24);
}

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow: 0 6px 26px rgba(0, 0, 0, 0.35);
}

.hero p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #e7e5e4;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.hero-meta,
.detail-meta,
.inline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta span,
.detail-meta span,
.inline-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fafaf9;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

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

.primary-btn,
.secondary-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  padding: 14px 24px;
  color: #ffffff;
  background: #d97706;
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.3);
}

.primary-btn:hover,
.secondary-btn:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.primary-btn:hover {
  background: #b45309;
  box-shadow: 0 18px 34px rgba(180, 83, 9, 0.34);
}

.secondary-btn {
  padding: 12px 20px;
  color: #fff7ed;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

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

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

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

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

.hero-arrow:hover {
  background: rgba(217, 119, 6, 0.78);
  transform: translateY(-50%) scale(1.05);
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 20px;
}

.section.compact-section {
  padding-top: 28px;
}

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

.section-title {
  margin: 0;
  color: #1c1917;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
}

.section-lead {
  max-width: 760px;
  margin: 8px 0 0;
  color: #78716c;
  line-height: 1.75;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(41, 37, 36, 0.10);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(41, 37, 36, 0.18);
}

.poster {
  position: relative;
  display: block;
  min-height: 320px;
  background-color: #292524;
  background-position: center;
  background-size: cover;
}

.movie-card.compact .poster {
  min-height: 250px;
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.play-chip {
  right: 14px;
  bottom: 14px;
  padding: 8px 12px;
  background: rgba(217, 119, 6, 0.92);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.26);
}

.rank-badge {
  left: 14px;
  top: 14px;
  padding: 7px 10px;
  background: rgba(120, 53, 15, 0.88);
}

.card-body {
  padding: 16px;
}

.card-title {
  display: block;
  color: #1c1917;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.card-title:hover {
  color: #b45309;
}

.card-body p {
  min-height: 48px;
  margin: 9px 0 12px;
  color: #78716c;
  font-size: 14px;
  line-height: 1.65;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.card-tags span,
.search-chip {
  padding: 5px 9px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 12px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #a8a29e;
  font-size: 13px;
}

.feature-band {
  color: #ffffff;
  background: linear-gradient(135deg, #292524, #78350f 58%, #9a3412);
}

.feature-band .section-title,
.feature-band .section-lead {
  color: #ffffff;
}

.feature-band .section-lead {
  color: #f5f5f4;
}

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

.category-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 230px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(41, 37, 36, 0.1);
}

.category-cover {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 3px;
  background: #292524;
}

.category-cover span {
  min-height: 110px;
  border-radius: 12px;
  background-position: center;
  background-size: cover;
}

.category-body {
  padding: 22px;
}

.category-body h2 {
  margin: 0 0 10px;
  color: #1c1917;
}

.category-body p {
  margin: 0 0 14px;
  color: #78716c;
  line-height: 1.7;
}

.category-body ul {
  margin: 0 0 18px;
  padding-left: 18px;
  color: #57534e;
  line-height: 1.8;
}

.category-body a:hover {
  color: #b45309;
}

.text-link {
  color: #b45309;
  font-weight: 800;
}

.search-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(41, 37, 36, 0.08);
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
}

.search-row input,
.search-row select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #e7e5e4;
  border-radius: 14px;
  color: #292524;
  background: #fafaf9;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-row input:focus,
.search-row select:focus {
  border-color: #d97706;
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

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

.search-chip {
  border: 0;
  cursor: pointer;
}

.search-chip.active {
  color: #ffffff;
  background: #d97706;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #78716c;
  font-size: 14px;
}

.breadcrumb a {
  color: #b45309;
}

.detail-hero {
  color: #ffffff;
  background: linear-gradient(135deg, #1c1917, #78350f);
}

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

.player-card,
.detail-card,
.side-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(41, 37, 36, 0.12);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-position: center;
  background-size: cover;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.36);
}

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

.player-button {
  position: relative;
  z-index: 2;
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(217, 119, 6, 0.94);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
  cursor: pointer;
  font-size: 31px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.player-button:hover {
  transform: scale(1.06);
  background: #b45309;
}

.detail-card {
  margin-top: 24px;
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 14px;
  color: #1c1917;
  font-size: clamp(28px, 4vw, 42px);
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 16px;
  color: #1c1917;
  font-size: 24px;
}

.detail-card p {
  margin: 0 0 18px;
  color: #57534e;
  line-height: 1.9;
}

.detail-meta span {
  color: #78350f;
  background: #fef3c7;
}

.detail-poster {
  min-height: 520px;
  border-radius: 24px;
  background-color: #292524;
  background-position: center;
  background-size: cover;
  box-shadow: 0 16px 42px rgba(41, 37, 36, 0.16);
}

.side-card {
  padding: 22px;
}

.side-list {
  display: grid;
  gap: 14px;
}

.side-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  align-items: center;
}

.side-thumb {
  min-height: 104px;
  border-radius: 14px;
  background-color: #292524;
  background-position: center;
  background-size: cover;
}

.side-item strong {
  display: block;
  margin-bottom: 6px;
  color: #292524;
  line-height: 1.4;
}

.side-item span {
  color: #78716c;
  font-size: 13px;
}

.side-item:hover strong {
  color: #b45309;
}

.rank-list {
  display: grid;
  gap: 14px;
}

.rank-row {
  display: grid;
  grid-template-columns: 64px 86px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(41, 37, 36, 0.08);
}

.rank-num {
  color: #b45309;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.rank-thumb {
  min-height: 112px;
  border-radius: 14px;
  background-color: #292524;
  background-position: center;
  background-size: cover;
}

.rank-info strong {
  display: block;
  margin-bottom: 8px;
  color: #1c1917;
  font-size: 18px;
}

.rank-info p {
  margin: 0;
  color: #78716c;
  line-height: 1.65;
}

.site-footer {
  color: #d6d3d1;
  background: linear-gradient(180deg, #292524, #1c1917);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 46px 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 20px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.site-footer p,
.site-footer li {
  color: #a8a29e;
  line-height: 1.75;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: #fde68a;
}

.footer-bottom {
  padding: 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #a8a29e;
  text-align: center;
}

.empty-state {
  display: none;
  padding: 40px 20px;
  border-radius: 20px;
  color: #78716c;
  background: #ffffff;
  text-align: center;
}

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

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

  .detail-poster {
    min-height: 420px;
  }
}

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

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

  .mobile-nav.open {
    display: block;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 16px;
  }

  .hero-arrow {
    display: none;
  }

  .section {
    padding: 38px 16px;
  }

  .section-head {
    display: block;
  }

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

  .poster,
  .movie-card.compact .poster {
    min-height: 230px;
  }

  .card-body {
    padding: 13px;
  }

  .card-title {
    font-size: 16px;
  }

  .category-card {
    grid-template-columns: 1fr;
  }

  .category-cover {
    min-height: 230px;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 46px 76px 1fr;
  }

  .rank-row .primary-btn {
    grid-column: 1 / -1;
  }

  .detail-card {
    padding: 22px;
  }

  .player-button {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 480px) {
  .brand-text em {
    display: none;
  }

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

  .poster,
  .movie-card.compact .poster {
    min-height: 420px;
  }
}
