:root {
  color-scheme: dark;
  --stone-950: #0c0a09;
  --stone-925: #13100e;
  --stone-900: #1c1917;
  --stone-850: #221d1a;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-500: #78716c;
  --stone-400: #a8a29e;
  --stone-300: #d6d3d1;
  --white: #ffffff;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-300: #fcd34d;
  --copper: #c66a28;
  --ring: rgba(245, 158, 11, 0.32);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --soft-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--stone-300);
  background:
    radial-gradient(circle at 16% 0%, rgba(245, 158, 11, 0.16), transparent 32rem),
    linear-gradient(180deg, var(--stone-950), var(--stone-900) 48%, var(--stone-950));
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(68, 64, 60, 0.72);
  background: rgba(28, 25, 23, 0.88);
  backdrop-filter: blur(16px);
}

.navbar {
  width: min(1500px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--amber-500), var(--copper));
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.24);
}

.logo-text {
  background: linear-gradient(90deg, var(--amber-300), #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--stone-300);
  font-size: 15px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--amber-400);
  transform: translateY(-1px);
}

.nav-search {
  width: min(340px, 30vw);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(120, 113, 108, 0.38);
  border-radius: 999px;
  background: rgba(12, 10, 9, 0.62);
}

.nav-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
}

.nav-search button {
  border: 0;
  color: #1c1917;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(120, 113, 108, 0.42);
  border-radius: 12px;
  color: var(--amber-300);
  background: rgba(12, 10, 9, 0.48);
  padding: 8px 11px;
}

.main-shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  height: min(760px, 72vh);
  min-height: 560px;
  overflow: hidden;
  background: var(--stone-950);
}

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

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

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 10, 9, 0.96) 0%, rgba(12, 10, 9, 0.72) 42%, rgba(12, 10, 9, 0.36) 78%),
    linear-gradient(0deg, rgba(12, 10, 9, 0.98) 0%, rgba(12, 10, 9, 0.08) 46%, rgba(12, 10, 9, 0.52) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1500px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  align-items: end;
  padding: 72px 0 82px;
}

.hero-copy {
  max-width: 780px;
  animation: fadeUp 0.7s ease both;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  color: #23170a;
  background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
  font-size: 13px;
  font-weight: 800;
}

.pill-soft {
  color: var(--amber-300);
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.1);
}

.hero h1 {
  margin: 18px 0 16px;
  color: var(--white);
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 28px;
  color: var(--stone-300);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #1c1917;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.24);
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 22px 52px rgba(245, 158, 11, 0.32);
}

.btn-ghost {
  color: var(--stone-200, #e7e5e4);
  background: rgba(28, 25, 23, 0.64);
  border-color: rgba(120, 113, 108, 0.38);
  box-shadow: none;
}

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

.hero-dot {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(214, 211, 209, 0.32);
}

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

.section {
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
}

.section-full {
  padding: 74px 0;
  background: linear-gradient(135deg, rgba(28, 25, 23, 0.78), rgba(41, 37, 36, 0.72));
  border-top: 1px solid rgba(68, 64, 60, 0.36);
  border-bottom: 1px solid rgba(68, 64, 60, 0.36);
}

.section-full .section {
  padding: 0;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--amber-400);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section h2,
.page-title h1,
.detail-title {
  margin: 0;
  color: var(--white);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-desc,
.page-title p {
  max-width: 820px;
  color: var(--stone-400);
  font-size: 17px;
  line-height: 1.8;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

.movie-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(68, 64, 60, 0.72);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(41, 37, 36, 0.88), rgba(28, 25, 23, 0.94));
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.48);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44), 0 0 0 4px var(--ring);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #292524, #0c0a09);
}

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: #1c1917;
  background: var(--amber-400);
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 17px;
}

.card-title {
  display: block;
  color: var(--white);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}

.card-title:hover {
  color: var(--amber-300);
}

.card-meta {
  margin-top: 10px;
  color: var(--stone-400);
  font-size: 13px;
}

.card-desc {
  margin: 12px 0 0;
  color: var(--stone-400);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--stone-300);
  background: rgba(120, 113, 108, 0.18);
  font-size: 12px;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: -30px;
  position: relative;
  z-index: 5;
}

.category-card {
  display: block;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  background: rgba(28, 25, 23, 0.88);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.52);
}

.category-card strong {
  display: block;
  color: var(--white);
  font-size: 20px;
}

.category-card span {
  display: block;
  margin-top: 8px;
  color: var(--stone-400);
  font-size: 14px;
  line-height: 1.6;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 76px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(68, 64, 60, 0.68);
  border-radius: 18px;
  background: rgba(28, 25, 23, 0.72);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  transform: translateX(3px);
  border-color: rgba(245, 158, 11, 0.44);
}

.rank-num {
  color: var(--amber-400);
  font-size: 26px;
  font-weight: 950;
  text-align: center;
}

.rank-poster {
  width: 76px;
  height: 104px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--stone-800);
}

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

.rank-title {
  color: var(--white);
  font-weight: 900;
}

.rank-meta {
  margin-top: 7px;
  color: var(--stone-400);
  font-size: 13px;
}

.rank-score {
  color: var(--amber-300);
  font-weight: 950;
}

.page-hero {
  padding: 68px 0 34px;
  border-bottom: 1px solid rgba(68, 64, 60, 0.45);
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.13), transparent 34rem);
}

.page-title {
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

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

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(120, 113, 108, 0.42);
  outline: 0;
  border-radius: 16px;
  padding: 15px 16px;
  color: var(--white);
  background: rgba(12, 10, 9, 0.56);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(68, 64, 60, 0.5);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.26;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.1);
  transform: scale(1.08);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 10, 9, 0.6), var(--stone-950));
}

.detail-wrap {
  position: relative;
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 48px;
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 36px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: var(--shadow);
  aspect-ratio: 2 / 3;
  background: var(--stone-800);
}

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

.detail-title {
  font-size: clamp(38px, 6vw, 74px);
}

.detail-intro {
  max-width: 900px;
  margin: 18px 0 0;
  color: var(--stone-300);
  font-size: 19px;
  line-height: 1.8;
}

.player-panel {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(68, 64, 60, 0.72);
  background: rgba(28, 25, 23, 0.78);
  box-shadow: var(--shadow);
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(12, 10, 9, 0.16), rgba(12, 10, 9, 0.68));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-button {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: #1c1917;
  background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
  box-shadow: 0 22px 54px rgba(245, 158, 11, 0.36);
  font-size: 30px;
  transform: translateZ(0);
  transition: transform 0.2s ease;
}

.play-button:hover {
  transform: scale(1.07);
}

.player-caption {
  padding: 20px 24px;
}

.player-caption h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 24px;
}

.player-caption p {
  margin: 0;
  color: var(--stone-400);
  line-height: 1.8;
}

.article-block {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 28px;
  align-items: start;
}

.content-card {
  padding: 28px;
  border: 1px solid rgba(68, 64, 60, 0.72);
  border-radius: 26px;
  background: rgba(28, 25, 23, 0.72);
}

.content-card h2,
.content-card h3 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 26px;
}

.content-card p {
  margin: 0 0 18px;
  color: var(--stone-300);
  line-height: 1.9;
}

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

.side-link {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(68, 64, 60, 0.58);
  background: rgba(12, 10, 9, 0.36);
}

.side-link:hover {
  border-color: rgba(245, 158, 11, 0.44);
}

.side-link img {
  width: 58px;
  height: 78px;
  border-radius: 10px;
  object-fit: cover;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(68, 64, 60, 0.62);
  background: rgba(12, 10, 9, 0.74);
}

.footer-inner {
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 28px;
}

.footer-inner h2,
.footer-inner h3 {
  margin: 0 0 12px;
  color: var(--amber-300);
  font-size: 18px;
}

.footer-inner p,
.footer-inner a {
  color: var(--stone-400);
  line-height: 1.8;
  font-size: 14px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--amber-400);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .rank-list,
  .article-block {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .navbar {
    height: auto;
    min-height: 68px;
    padding: 12px 0;
    flex-wrap: wrap;
  }

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

  .nav-links,
  .nav-search {
    display: none;
    width: 100%;
  }

  .site-header.is-open .nav-links,
  .site-header.is-open .nav-search {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 12px;
  }

  .nav-search {
    max-width: none;
  }

  .hero {
    min-height: 620px;
    height: 74vh;
  }

  .hero-bg::after {
    background:
      linear-gradient(180deg, rgba(12, 10, 9, 0.26), rgba(12, 10, 9, 0.94)),
      linear-gradient(90deg, rgba(12, 10, 9, 0.85), rgba(12, 10, 9, 0.22));
  }

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

  .grid-6,
  .grid-4,
  .grid-3,
  .grid-2,
  .category-strip,
  .filter-panel,
  .detail-wrap,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-wrap {
    align-items: start;
  }

  .detail-poster {
    max-width: 260px;
  }

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

  .rank-score {
    grid-column: 3;
  }
}
