:root {
  --bg: #1c1917;
  --bg-soft: #292524;
  --paper: #ffffff;
  --paper-soft: #fafaf9;
  --text: #292524;
  --muted: #78716c;
  --line: #e7e5e4;
  --brand: #f59e0b;
  --brand-dark: #d97706;
  --brand-soft: #fef3c7;
  --shadow: 0 20px 55px rgba(28, 25, 23, 0.16);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(231, 229, 228, 0.9);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #fb7185);
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.32);
}

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

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

.nav-link,
.mobile-link {
  padding: 9px 14px;
  color: #57534e;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #fff;
  background: var(--brand);
}

.category-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding-bottom: 10px;
  overflow-x: auto;
}

.category-strip a {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  color: #57534e;
  background: #f5f5f4;
  font-size: 14px;
  font-weight: 700;
}

.category-strip a:hover {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #f5f5f4;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #44403c;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #1c1917;
}

.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-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.34) 58%, rgba(0, 0, 0, 0.1));
}

.hero-content {
  position: absolute;
  inset: auto 0 0;
  padding: 0 0 72px;
  color: #fff;
}

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

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  margin-bottom: 18px;
  color: #fff;
  background: var(--brand);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

.hero h1,
.hero h2 {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #e7e5e4;
  font-size: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-bottom: 28px;
  color: #d6d3d1;
  font-weight: 700;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition: 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 14px 35px rgba(245, 158, 11, 0.28);
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.24);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

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

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

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

.hero-dot {
  width: 28px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--brand);
}

.page-main {
  padding: 42px 0 68px;
}

.home-section,
.content-section {
  margin-top: 44px;
}

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

.section-head h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.section-head span,
.page-title p {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-more {
  flex: 0 0 auto;
  padding: 9px 14px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 999px;
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(231, 229, 228, 0.9);
  border-radius: var(--radius);
  box-shadow: 0 14px 42px rgba(28, 25, 23, 0.08);
  transition: 0.22s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #44403c, #1c1917);
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.62));
  opacity: 0.78;
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 7px 10px;
  color: #fff;
  background: var(--brand);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  font-weight: 900;
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.movie-meta span {
  padding: 3px 7px;
  background: #f5f5f4;
  border-radius: 999px;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.32;
}

.movie-card h3 a:hover {
  color: var(--brand-dark);
}

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 13px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-list span {
  padding: 4px 8px;
  color: #92400e;
  background: #fef3c7;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
}

.feature-panel {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 28px;
  background: #1c1917;
  box-shadow: var(--shadow);
}

.feature-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-panel-content {
  position: absolute;
  inset: auto 0 0;
  padding: 34px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.86));
}

.feature-panel-content h3 {
  margin: 0 0 10px;
  font-size: 30px;
}

.feature-panel-content p {
  margin: 0 0 18px;
  color: #e7e5e4;
}

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

.mini-card {
  display: grid;
  grid-template-columns: auto 78px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid rgba(231, 229, 228, 0.9);
  border-radius: 18px;
  box-shadow: 0 10px 34px rgba(28, 25, 23, 0.06);
}

.mini-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateX(2px);
}

.mini-card img {
  width: 78px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: #292524;
}

.mini-card strong {
  display: block;
  margin-bottom: 4px;
  line-height: 1.35;
}

.mini-card em {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.mini-rank {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: #292524;
  border-radius: 12px;
  font-weight: 900;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, #292524, #78350f);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 130px;
  height: 130px;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 50%;
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  margin: 0 0 18px;
  color: #e7e5e4;
}

.filter-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  margin: 24px 0;
  background: var(--paper);
  border: 1px solid rgba(231, 229, 228, 0.9);
  border-radius: 24px;
  box-shadow: 0 12px 38px rgba(28, 25, 23, 0.07);
}

.search-field {
  display: grid;
  flex: 1 1 auto;
  gap: 7px;
  color: #57534e;
  font-weight: 900;
}

.search-field input,
.filter-select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--text);
  background: #fafaf9;
  border: 1px solid #e7e5e4;
  border-radius: 14px;
  outline: none;
  font: inherit;
}

.search-field input:focus,
.filter-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.13);
}

.filter-selects {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.filter-select {
  min-width: 132px;
}

.page-title {
  padding: 34px;
  background: linear-gradient(135deg, #fff, #fef3c7);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 30px;
  box-shadow: 0 14px 44px rgba(28, 25, 23, 0.08);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--brand-dark);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: 26px;
  align-items: start;
}

.player-card {
  overflow: hidden;
  background: #0c0a09;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

.video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  color: #fff;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.24), rgba(0, 0, 0, 0.52));
  border: 0;
  cursor: pointer;
}

.player-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 52px;
  padding: 0 22px;
  background: var(--brand);
  border-radius: 999px;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.28);
}

.player-overlay.is-hidden {
  display: none;
}

.detail-side {
  padding: 24px;
  background: var(--paper);
  border: 1px solid rgba(231, 229, 228, 0.9);
  border-radius: 28px;
  box-shadow: 0 14px 42px rgba(28, 25, 23, 0.08);
}

.detail-poster {
  overflow: hidden;
  border-radius: 22px;
  background: #292524;
}

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

.detail-side h1 {
  margin: 18px 0 10px;
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
}

.detail-meta span {
  padding: 10px 12px;
  background: #fafaf9;
  border: 1px solid #e7e5e4;
  border-radius: 14px;
  color: #57534e;
  font-weight: 800;
}

.article-body {
  margin-top: 26px;
  padding: 30px;
  background: var(--paper);
  border: 1px solid rgba(231, 229, 228, 0.9);
  border-radius: 28px;
}

.article-body h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.article-body p {
  margin: 0 0 22px;
  color: #44403c;
  font-size: 17px;
}

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

.empty-state {
  display: none;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: var(--paper);
  border-radius: 22px;
}

.empty-state.is-visible {
  display: block;
}

.site-footer {
  margin-top: 32px;
  padding: 38px 0;
  color: #d6d3d1;
  background: #1c1917;
}

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

.footer-brand {
  color: #fff;
  font-size: 24px;
}

.site-footer p {
  margin: 8px 0 0;
  color: #a8a29e;
}

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

.footer-links a {
  padding: 8px 12px;
  color: #e7e5e4;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

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

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

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

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

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

  .header-inner {
    height: 64px;
  }

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

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

  .category-strip {
    min-height: 38px;
  }

  .hero {
    height: 520px;
  }

  .hero-content {
    padding-bottom: 62px;
  }

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

  .hero-arrow {
    display: none;
  }

  .section-head,
  .filter-panel,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-selects {
    flex-direction: column;
  }

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

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

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

  .mini-card {
    grid-template-columns: auto 66px 1fr;
  }

  .mini-card img {
    width: 66px;
  }

  .page-title,
  .article-body,
  .detail-side {
    padding: 20px;
    border-radius: 22px;
  }

  .detail-side h1 {
    font-size: 25px;
  }
}

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

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

  .hero-meta {
    gap: 8px 14px;
  }
}
