* {
  box-sizing: border-box;
}

:root {
  --primary-50: #faf8f5;
  --primary-100: #f5f0e8;
  --primary-500: #b68a56;
  --primary-600: #a67c4a;
  --primary-700: #8c6538;
  --secondary-50: #f0f9ff;
  --accent-50: #fff7ed;
  --neutral-50: #fafaf9;
  --neutral-100: #f5f5f4;
  --neutral-200: #e7e5e4;
  --neutral-500: #78716c;
  --neutral-700: #44403c;
  --neutral-800: #292524;
  --neutral-900: #1c1917;
  --shadow-soft: 0 10px 30px rgba(41, 37, 36, 0.08);
  --shadow-strong: 0 20px 60px rgba(41, 37, 36, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--neutral-800);
  background: var(--neutral-50);
}

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

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

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--neutral-900);
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-600), #d1a364);
  box-shadow: 0 10px 24px rgba(166, 124, 74, 0.28);
  font-size: 14px;
}

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

.desktop-nav a,
.mobile-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--neutral-700);
  font-size: 15px;
  transition: background 0.2s ease, color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  background: var(--primary-100);
  color: var(--primary-700);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--primary-100);
  color: var(--primary-700);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 20px;
}

.mobile-nav {
  display: none;
  padding: 8px 20px 18px;
  border-top: 1px solid var(--neutral-200);
}

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

.mobile-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-100), var(--secondary-50), var(--accent-50));
}

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

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

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

.hero-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.82) 38%, rgba(255,255,255,0.28) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  min-height: 70vh;
  margin: 0 auto;
  padding: 72px 20px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
  gap: 38px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-700);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero h1 {
  margin: 0 0 18px;
  color: var(--neutral-900);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero p {
  margin: 0 0 28px;
  max-width: 760px;
  color: var(--neutral-700);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary-600);
  color: #fff;
  box-shadow: 0 16px 32px rgba(166, 124, 74, 0.26);
}

.btn-primary:hover {
  background: var(--primary-700);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.82);
  color: var(--neutral-800);
  border-color: rgba(166, 124, 74, 0.25);
}

.hero-panel {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  padding: 18px;
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(18px);
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 22px;
}

.hero-panel h2 {
  margin: 18px 0 8px;
  font-size: 25px;
}

.hero-panel p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.7;
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 0;
  background: rgba(166, 124, 74, 0.32);
  cursor: pointer;
}

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

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

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

.section h2,
.section h1 {
  margin: 0;
  color: var(--neutral-900);
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.section-lead {
  margin: 12px 0 0;
  max-width: 820px;
  color: var(--neutral-500);
  line-height: 1.8;
}

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

.movie-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  background: var(--neutral-200);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

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

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

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(28, 25, 23, 0.74);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 700;
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
  color: var(--neutral-900);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.card-title:hover {
  color: var(--primary-700);
}

.card-meta {
  margin: 8px 0;
  color: var(--neutral-500);
  font-size: 13px;
}

.card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
  margin: 0 0 12px;
  color: var(--neutral-700);
  font-size: 14px;
  line-height: 1.55;
}

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

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--primary-50);
  color: var(--primary-700);
  font-size: 12px;
}

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

.category-card {
  min-height: 160px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff, var(--primary-50));
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(231, 229, 228, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-card strong {
  font-size: 22px;
  color: var(--neutral-900);
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 56px 96px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.rank-num {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-600), #d1a364);
  font-weight: 900;
}

.rank-item img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--neutral-200);
}

.rank-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.rank-item p {
  margin: 0;
  color: var(--neutral-500);
  line-height: 1.6;
}

.filter-bar,
.search-box {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 28px;
}

.filter-bar input,
.filter-bar select,
.search-box input {
  flex: 1 1 220px;
  height: 46px;
  border: 1px solid var(--neutral-200);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--neutral-800);
  background: #fff;
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus,
.search-box input:focus {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 4px rgba(166, 124, 74, 0.12);
}

.detail-hero {
  background: linear-gradient(135deg, var(--primary-100), var(--secondary-50), #fff);
}

.detail-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 20px 54px;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 34px;
  align-items: start;
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 28px;
  background: var(--neutral-200);
  box-shadow: var(--shadow-strong);
}

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

.breadcrumb a:hover {
  color: var(--primary-700);
}

.detail-info h1 {
  margin: 0 0 16px;
  color: var(--neutral-900);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--neutral-700);
  box-shadow: var(--shadow-soft);
}

.detail-info p {
  color: var(--neutral-700);
  line-height: 1.9;
}

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

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: var(--shadow-strong);
  aspect-ratio: 16 / 9;
}

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.58));
  cursor: pointer;
}

.play-layer.hidden {
  display: none;
}

.play-button {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  border: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(166, 124, 74, 0.94);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  font-size: 30px;
  cursor: pointer;
}

.article-content {
  max-width: 940px;
  margin: 0 auto;
  padding: 34px 20px 0;
}

.article-content h2 {
  color: var(--neutral-900);
}

.article-content p {
  color: var(--neutral-700);
  line-height: 2;
}

.site-footer {
  margin-top: 56px;
  background: var(--neutral-900);
  color: var(--neutral-200);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}

.footer-logo {
  color: #fff;
}

.footer-brand p {
  max-width: 560px;
  color: #a8a29e;
  line-height: 1.8;
}

.footer-links h3 {
  margin-top: 0;
  color: #fff;
}

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

.footer-links a {
  color: #d6d3d1;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
}

.footer-links a:hover {
  color: #fff;
  background: rgba(166, 124, 74, 0.28);
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px;
  color: #a8a29e;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.empty-state {
  padding: 36px;
  border-radius: 24px;
  background: #fff;
  color: var(--neutral-500);
  box-shadow: var(--shadow-soft);
}

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

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

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

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

  .hero-content,
  .detail-wrap,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    display: none;
  }

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

  .rank-item {
    grid-template-columns: 44px 76px 1fr;
  }

  .rank-item img {
    width: 76px;
    height: 60px;
  }
}

@media (max-width: 560px) {
  .header-inner {
    padding: 12px 14px;
  }

  .brand {
    font-size: 15px;
  }

  .hero-content,
  .section,
  .detail-wrap,
  .player-section,
  .article-content {
    padding-left: 14px;
    padding-right: 14px;
  }

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

  .rank-item {
    grid-template-columns: 42px 82px 1fr;
    gap: 12px;
  }
}
