:root {
  --stone-950: #1c1917;
  --stone-900: #292524;
  --stone-800: #44403c;
  --stone-700: #57534e;
  --stone-600: #78716c;
  --stone-500: #a8a29e;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50: #fafaf9;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-100: #fef3c7;
  --shadow-soft: 0 18px 45px rgba(41, 37, 36, 0.12);
  --shadow-card: 0 10px 24px rgba(41, 37, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--stone-900);
  background: var(--stone-100);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(41, 37, 36, 0.96);
  color: var(--stone-50);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: var(--stone-950);
  background: linear-gradient(135deg, var(--amber-500), var(--amber-100));
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.32);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  color: var(--stone-300);
}

.site-nav a:hover,
.mobile-nav a:hover,
.footer-link:hover {
  color: var(--amber-500);
}

.header-search {
  display: flex;
  align-items: center;
  width: min(280px, 25vw);
  border-radius: 999px;
  background: var(--stone-700);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.header-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--stone-50);
  background: transparent;
  padding: 10px 12px 10px 16px;
}

.header-search input::placeholder {
  color: var(--stone-300);
}

.header-search button {
  border: 0;
  color: var(--stone-100);
  background: transparent;
  padding: 10px 14px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--stone-50);
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--stone-700);
  padding: 14px 0 18px;
}

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

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

.mobile-nav a {
  color: var(--stone-300);
  padding: 8px 0;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  color: var(--stone-50);
  background: linear-gradient(135deg, var(--stone-900), var(--stone-800) 50%, var(--amber-900));
}

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

.hero-slide {
  display: none;
  position: relative;
  min-height: 540px;
}

.hero-slide.is-active {
  display: block;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.28;
}

.hero-bg img {
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 30%, rgba(245, 158, 11, 0.18), transparent 36%), linear-gradient(90deg, rgba(28, 25, 23, 0.94), rgba(28, 25, 23, 0.64), rgba(120, 53, 15, 0.48));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  min-height: 540px;
  max-width: 730px;
  padding: 72px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--amber-100);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero-title-small {
  display: block;
  margin-top: 8px;
  color: var(--amber-100);
  font-size: clamp(28px, 4.5vw, 52px);
}

.hero p {
  margin: 0;
  max-width: 680px;
  color: var(--stone-200);
  font-size: 18px;
}

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

.hero-tags {
  margin: 24px 0 30px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(254, 243, 199, 0.12);
  color: var(--amber-100);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: var(--stone-950);
  background: var(--amber-500);
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.28);
}

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

.btn-ghost {
  color: var(--stone-50);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-controls {
  position: absolute;
  right: max(18px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

.main-section {
  padding: 58px 0;
}

.main-section.alt {
  background: var(--stone-50);
}

.section-head {
  justify-content: space-between;
  margin-bottom: 26px;
}

.section-title {
  margin: 0;
  color: var(--stone-900);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.section-desc {
  margin: 8px 0 0;
  color: var(--stone-600);
}

.section-link {
  color: var(--amber-700);
  font-weight: 800;
}

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

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

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

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

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

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

.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  color: var(--stone-950);
  background: var(--amber-500);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}

.card-content {
  padding: 15px;
}

.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 700;
}

.card-content h3 {
  margin: 0 0 8px;
  color: var(--stone-900);
  font-size: 17px;
  line-height: 1.35;
}

.card-content h3 a:hover {
  color: var(--amber-700);
}

.card-content p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 43px;
  margin: 0 0 12px;
  color: var(--stone-600);
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card .tag-row span {
  color: var(--stone-700);
  background: var(--stone-100);
  padding: 4px 8px;
  font-size: 12px;
}

.watch-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--amber-700);
  font-weight: 900;
  font-size: 14px;
}

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

.category-card {
  display: grid;
  min-height: 170px;
  align-content: space-between;
  border-radius: 22px;
  color: var(--stone-50);
  background: linear-gradient(135deg, var(--stone-800), var(--amber-900));
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.category-card p {
  margin: 0;
  color: var(--stone-200);
}

.page-hero {
  color: var(--stone-50);
  background: linear-gradient(135deg, var(--stone-900), var(--stone-800) 58%, var(--amber-900));
  padding: 70px 0;
}

.page-hero h1 {
  max-width: 860px;
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--stone-200);
  font-size: 18px;
}

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

.breadcrumb a:hover {
  color: var(--amber-500);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 160px;
  gap: 14px;
  margin-bottom: 26px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  outline: 0;
  background: white;
  padding: 13px 15px;
  color: var(--stone-900);
  box-shadow: 0 6px 16px rgba(41, 37, 36, 0.06);
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 60px 96px 1fr auto;
  align-items: center;
  gap: 18px;
  border-radius: 18px;
  background: white;
  padding: 12px 18px 12px 12px;
  box-shadow: var(--shadow-card);
}

.rank-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 999px;
  color: var(--stone-950);
  background: var(--amber-500);
  font-weight: 900;
}

.ranking-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: var(--stone-800);
}

.ranking-poster img {
  height: 100%;
  object-fit: cover;
}

.ranking-item h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.ranking-item p {
  margin: 0;
  color: var(--stone-600);
}

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

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

.player-shell video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
  cursor: pointer;
}

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: white;
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.18), rgba(28, 25, 23, 0.84));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start-icon {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  color: var(--stone-950);
  background: var(--amber-500);
  font-size: 34px;
  box-shadow: 0 18px 36px rgba(245, 158, 11, 0.34);
}

.player-start span:last-child {
  font-size: 18px;
  font-weight: 900;
}

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

.detail-card,
.content-card,
.side-card {
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow-card);
}

.detail-card {
  overflow: hidden;
}

.detail-body,
.content-card,
.side-card {
  padding: 24px;
}

.detail-title {
  margin: 20px 0 10px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

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

.detail-meta span {
  border-radius: 999px;
  color: var(--stone-700);
  background: var(--stone-100);
  padding: 6px 11px;
  font-weight: 800;
  font-size: 13px;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.content-card p {
  margin: 0 0 18px;
  color: var(--stone-700);
}

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

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

.side-link img {
  height: 86px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--stone-800);
}

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

.side-link span {
  color: var(--stone-600);
  font-size: 13px;
}

.empty-results {
  display: none;
  border-radius: 18px;
  background: white;
  padding: 28px;
  color: var(--stone-600);
  box-shadow: var(--shadow-card);
}

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

.site-footer {
  color: var(--stone-300);
  background: var(--stone-900);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 28px;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: var(--stone-50);
}

.site-footer p,
.site-footer li {
  margin: 0;
  color: var(--stone-400);
  font-size: 14px;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-bottom {
  margin-top: 32px;
  border-top: 1px solid var(--stone-800);
  padding-top: 20px;
  color: var(--stone-500);
  font-size: 13px;
}

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

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

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

@media (max-width: 840px) {
  .site-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

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

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

  .ranking-item {
    grid-template-columns: 44px 72px 1fr;
  }

  .ranking-item .btn {
    grid-column: 3;
    width: fit-content;
  }
}

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

  .hero,
  .hero-slider,
  .hero-slide,
  .hero-content {
    min-height: 580px;
  }

  .hero-content {
    padding: 54px 0 86px;
  }

  .hero-controls {
    right: 16px;
    bottom: 22px;
  }

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

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

  .card-content {
    padding: 12px;
  }

  .card-content h3 {
    font-size: 15px;
  }

  .ranking-item {
    grid-template-columns: 38px 64px 1fr;
    gap: 12px;
    padding: 10px;
  }

  .rank-number {
    width: 36px;
    height: 36px;
  }
}
