:root {
  color-scheme: light;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --orange-600: #ea580c;
  --orange-900: #7c2d12;
  --rose-600: #e11d48;
  --shadow: 0 18px 45px rgba(28, 25, 23, 0.12);
  --soft-shadow: 0 10px 30px rgba(28, 25, 23, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--stone-50);
  color: var(--stone-800);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, #92400e 0%, #7c2d12 100%);
  box-shadow: 0 10px 26px rgba(28, 25, 23, 0.18);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.28);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
}

.nav-link,
.mobile-link {
  opacity: 0.92;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
  color: #fde68a;
  opacity: 1;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}

.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-button.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-button.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 0 24px 18px;
}

.mobile-link {
  display: block;
  padding: 9px 0;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--stone-900);
}

.hero-track {
  display: flex;
  transition: transform 0.56s ease;
}

.hero-slide {
  position: relative;
  min-width: 100%;
  min-height: clamp(500px, 68vw, 660px);
  display: flex;
  align-items: end;
  overflow: hidden;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(245, 158, 11, 0.3), transparent 28%),
    linear-gradient(90deg, rgba(28, 25, 23, 0.88), rgba(28, 25, 23, 0.48), rgba(28, 25, 23, 0.2)),
    linear-gradient(0deg, rgba(28, 25, 23, 0.96), transparent 62%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 0 74px;
  color: #fff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #fef3c7;
  background: rgba(120, 53, 15, 0.78);
  backdrop-filter: blur(14px);
  font-size: 14px;
  font-weight: 700;
}

.hero-content h1,
.hero-heading,
.page-hero h1,
.detail-title h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 680px;
  color: #e7e5e4;
  font-size: clamp(16px, 2vw, 19px);
}


.hero-heading {
  display: block;
  color: #fff;
  font-weight: 800;
}

.feature-panel .btn-ghost {
  color: var(--amber-700);
  background: #fff;
  border: 1px solid rgba(180, 83, 9, 0.2);
}

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

.hero-meta span,
.meta-line span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber-700);
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 700;
}

.hero-meta span {
  color: #fde68a;
  background: rgba(255, 255, 255, 0.12);
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 16px 30px rgba(217, 119, 6, 0.3);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

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

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

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

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

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

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

.hero-dots button.is-active {
  width: 34px;
  background: var(--amber-500);
}

.content-section {
  padding: 38px 0;
}

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

.section-head h2 {
  margin: 0 0 5px;
  font-size: clamp(24px, 3vw, 34px);
  color: var(--stone-800);
}

.section-head p,
.page-hero p,
.detail-title p {
  margin: 0;
  color: var(--stone-600);
}

.section-more {
  flex: 0 0 auto;
  color: var(--amber-700);
  font-weight: 800;
}

.feature-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 28px;
  background: linear-gradient(90deg, var(--amber-50), #fff7ed);
  box-shadow: var(--shadow);
}

.feature-panel img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
}

.feature-panel h2 {
  margin: 10px 0 12px;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.15;
}

.feature-panel p {
  color: var(--stone-600);
}

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

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

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--stone-200);
}

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

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .poster-link::after {
  opacity: 1;
}

.play-chip {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: #fff;
  background: var(--amber-600);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-chip {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-600), var(--orange-600));
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 10px 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.card-body h3 a:hover,
.rank-info h3 a:hover {
  color: var(--amber-700);
}

.card-body p {
  display: -webkit-box;
  margin: 0 0 13px;
  color: var(--stone-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-row span {
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--stone-600);
  background: var(--stone-100);
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, #92400e, #ea580c);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
  position: relative;
}

.category-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -50px;
  top: -50px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

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

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.page-hero {
  color: #fff;
  background:
    radial-gradient(circle at 75% 25%, rgba(245, 158, 11, 0.36), transparent 28%),
    linear-gradient(90deg, #92400e, #7c2d12);
  padding: 70px 0;
}

.page-hero h1 {
  margin-top: 12px;
}

.page-hero p {
  max-width: 760px;
  color: #fffbeb;
  font-size: 18px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.search-box {
  flex: 1 1 300px;
  min-height: 44px;
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  padding: 0 16px;
  outline: none;
}

.search-box:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.13);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-pills button {
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--stone-700);
  background: var(--stone-100);
  cursor: pointer;
  font-weight: 800;
}

.filter-pills button.is-active,
.filter-pills button:hover {
  color: #fff;
  background: var(--amber-600);
}

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

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

.rank-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  font-weight: 900;
}

.rank-thumb img {
  width: 126px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-info h3 {
  margin: 0 0 6px;
}

.rank-info p {
  display: -webkit-box;
  margin: 0 0 8px;
  color: var(--stone-600);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.score {
  justify-self: end;
  color: var(--amber-700);
  font-size: 26px;
  font-weight: 900;
}

.breadcrumbs {
  margin: 24px auto 0;
  color: var(--stone-500);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: var(--amber-700);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: center;
  padding: 36px 0 26px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

.detail-title h1 {
  color: var(--stone-800);
}

.detail-title p {
  font-size: 17px;
}

.player-section {
  margin: 20px auto 42px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: var(--shadow);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.2));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 18px 42px rgba(217, 119, 6, 0.35);
  font-size: 34px;
}

.article-panel {
  padding: 28px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  margin-bottom: 26px;
}

.article-panel h2 {
  margin: 0 0 12px;
  color: var(--stone-800);
}

.article-panel p {
  color: var(--stone-600);
  margin: 0 0 12px;
}

.no-results {
  display: none;
  margin: 18px 0 0;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  color: var(--stone-600);
  text-align: center;
  box-shadow: var(--soft-shadow);
}

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

.site-footer {
  margin-top: 54px;
  background: var(--stone-800);
  color: var(--stone-300);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding: 42px 0;
}

.site-footer h3 {
  color: #fff;
  margin: 0 0 12px;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: var(--stone-300);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px;
  text-align: center;
  color: var(--stone-300);
  font-size: 14px;
}

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

  .menu-button {
    display: block;
  }

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

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

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

  .rank-row {
    grid-template-columns: 44px 90px 1fr;
  }

  .rank-thumb img {
    width: 90px;
    height: 62px;
  }

  .score {
    grid-column: 3;
    justify-self: start;
    font-size: 20px;
  }

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

@media (max-width: 640px) {
  .shell {
    width: min(100% - 22px, 1180px);
  }

  .hero-slide {
    min-height: 560px;
  }

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

  .hero-control {
    display: none;
  }

  .section-head,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

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

  .page-hero {
    padding: 52px 0;
  }

  .article-panel {
    padding: 22px;
  }
}
