:root {
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --stone-950: #0c0a09;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --white: #ffffff;
  --shadow-sm: 0 6px 18px rgba(28, 25, 23, 0.08);
  --shadow-lg: 0 20px 45px rgba(28, 25, 23, 0.16);
  --radius-sm: 0.65rem;
  --radius-md: 0.95rem;
  --radius-lg: 1.35rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: var(--stone-50);
  color: var(--stone-900);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(28, 25, 23, 0.96);
  color: var(--stone-100);
  border-bottom: 1px solid rgba(68, 64, 60, 0.9);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--stone-950);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.28);
}

.brand-copy strong {
  display: block;
  font-size: 1.16rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.brand-copy small {
  display: block;
  margin-top: 3px;
  color: var(--stone-400);
  font-size: 0.75rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--stone-200);
  font-size: 0.95rem;
}

.main-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--amber-400);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--stone-700);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--stone-100);
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: inherit;
  transform: scale(1.04);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 22%, rgba(245, 158, 11, 0.24), transparent 30%),
    linear-gradient(to top, rgba(12, 10, 9, 0.98), rgba(12, 10, 9, 0.64) 48%, rgba(12, 10, 9, 0.18));
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 40px;
  align-items: end;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--amber-500);
  color: var(--stone-950);
  font-size: 0.88rem;
  font-weight: 800;
}

.hero h1,
.page-hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(2.5rem, 6vw, 5.3rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 720px;
  color: var(--stone-200);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--stone-200);
  background: rgba(41, 37, 36, 0.82);
  border: 1px solid rgba(214, 211, 209, 0.12);
  font-size: 0.9rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--amber-500);
  color: var(--stone-950);
}

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

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.hero-panel {
  padding: 18px;
  border-radius: 24px;
  background: rgba(28, 25, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.hero-panel h2 {
  margin: 0 0 14px;
  font-size: 1rem;
  color: var(--stone-200);
}

.hero-picks {
  display: grid;
  gap: 12px;
}

.hero-pick {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  transition: background-color 0.2s ease;
}

.hero-pick:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero-pick img {
  width: 78px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
}

.hero-pick strong {
  display: block;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-pick span {
  display: block;
  color: var(--stone-400);
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.28), transparent 30%),
    linear-gradient(135deg, var(--stone-950), var(--stone-800));
}

.page-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

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

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

.section + .section {
  padding-top: 18px;
}

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

.section-title {
  margin: 0 0 6px;
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  line-height: 1.15;
}

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

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

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

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

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

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--stone-800), var(--stone-700));
}

.poster-wrap.wide {
  aspect-ratio: 16 / 9;
}

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

.movie-card:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 10, 9, 0.82), transparent 58%);
  opacity: 0.92;
}

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

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
  line-height: 1.28;
}

.movie-info p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--stone-600);
  font-size: 0.92rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-info .mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--stone-500);
  font-size: 0.82rem;
}

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

.category-card {
  display: block;
  padding: 24px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

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

.category-preview {
  display: flex;
  margin-top: 16px;
}

.category-preview img {
  width: 58px;
  height: 76px;
  margin-right: -12px;
  border: 3px solid var(--white);
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(28, 25, 23, 0.14);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 14px;
  padding: 18px;
  margin-bottom: 26px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  color: var(--stone-800);
  background: var(--stone-50);
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 56px 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.rank-num {
  color: var(--amber-600);
  font-size: 1.5rem;
  font-weight: 900;
  text-align: center;
}

.rank-item img {
  width: 92px;
  height: 120px;
  border-radius: 14px;
  object-fit: cover;
}

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

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

.detail-hero {
  background:
    radial-gradient(circle at 16% 8%, rgba(245, 158, 11, 0.25), transparent 28%),
    linear-gradient(135deg, var(--stone-950), var(--stone-800));
  color: var(--white);
}

.detail-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.breadcrumb {
  margin-bottom: 16px;
  color: var(--stone-400);
  font-size: 0.92rem;
}

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

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.tag {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--stone-200);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
}

.player-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--stone-950);
  box-shadow: var(--shadow-lg);
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--stone-950);
}

.player-frame video {
  width: 100%;
  height: 100%;
  background: var(--stone-950);
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(to top, rgba(12, 10, 9, 0.82), rgba(12, 10, 9, 0.24));
  cursor: pointer;
  transition: opacity 0.24s ease;
}

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

.play-core {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 150px;
  min-height: 56px;
  padding: 14px 24px;
  border-radius: 999px;
  color: var(--stone-950);
  background: var(--amber-500);
  font-weight: 900;
  box-shadow: 0 20px 45px rgba(245, 158, 11, 0.34);
}

.content-card {
  padding: 28px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.content-card + .content-card {
  margin-top: 22px;
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 1.55rem;
}

.content-card p {
  margin: 0;
  color: var(--stone-700);
  font-size: 1.02rem;
}

.site-footer {
  margin-top: 50px;
  color: var(--stone-400);
  background: var(--stone-950);
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 32px;
  align-items: center;
}

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

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

.empty-state {
  display: none;
  padding: 28px;
  border-radius: 18px;
  color: var(--stone-600);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

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

@media (max-width: 980px) {
  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--stone-700);
    border-radius: 18px;
    background: rgba(28, 25, 23, 0.98);
    box-shadow: var(--shadow-lg);
  }

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

  .main-nav a {
    padding: 12px;
    border-radius: 12px;
  }

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

  .hero-inner,
  .detail-shell {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    max-width: 290px;
  }

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

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

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

  .rank-item {
    grid-template-columns: 44px 76px minmax(0, 1fr);
  }

  .rank-item .btn {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .brand-copy small {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 72px 0 34px;
  }

  .hero-panel {
    display: none;
  }

  .section-head,
  .footer-shell {
    display: block;
  }

  .section-head .btn {
    margin-top: 14px;
  }

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

  .movie-card.horizontal-mobile {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .movie-card.horizontal-mobile .poster-wrap {
    aspect-ratio: auto;
    min-height: 168px;
  }

  .movie-info h3 {
    font-size: 1rem;
  }
}
