:root {
  color-scheme: light;
  --stone-950: #1c1917;
  --stone-900: #292524;
  --stone-800: #44403c;
  --stone-700: #57534e;
  --stone-600: #78716c;
  --stone-500: #a8a29e;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-200: #fde68a;
  --white: #ffffff;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow-soft: 0 18px 45px rgba(28, 25, 23, 0.13);
  --shadow-card: 0 14px 32px rgba(28, 25, 23, 0.12);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--stone-900);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.18), transparent 35%),
    linear-gradient(180deg, #fffaf0 0%, #fafaf9 38%, #f5f5f4 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--stone-800), var(--amber-900), var(--stone-800));
  border-bottom: 2px solid var(--amber-600);
  box-shadow: 0 10px 24px rgba(28, 25, 23, 0.22);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-800));
  color: var(--white);
  font-weight: 900;
  font-size: 22px;
  box-shadow: 0 10px 22px rgba(180, 83, 9, 0.32);
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-name {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: transparent;
  background: linear-gradient(90deg, var(--amber-200), var(--amber-400));
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-subtitle {
  margin-top: 4px;
  color: var(--amber-200);
  font-size: 12px;
}

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

.nav-link {
  padding: 10px 16px;
  border-radius: 12px;
  color: #fffbeb;
  font-weight: 700;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--amber-600);
  color: var(--white);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  color: var(--white);
  background: var(--amber-700);
  cursor: pointer;
}

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

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

.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-backdrop {
  position: absolute;
  inset: 0;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  transform: scale(1.03);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 35%, rgba(251, 191, 36, 0.28), transparent 25%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.12));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--max-width));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.55fr);
  align-items: center;
  gap: 42px;
  padding: 78px 0 96px;
}

.hero-copy {
  max-width: 720px;
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--amber-300);
  font-weight: 800;
}

.hero-copy h1,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 22px 0 0;
  max-width: 640px;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.75;
  color: var(--stone-100);
}

.hero-meta,
.movie-meta,
.detail-meta,
.breadcrumbs,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-meta span,
.movie-meta span,
.detail-meta span,
.rank-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.13);
  color: #fffbeb;
  font-size: 13px;
  font-weight: 700;
}

.hero-meta {
  margin-top: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button-primary,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button-primary {
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-600), var(--amber-800));
  box-shadow: 0 14px 30px rgba(180, 83, 9, 0.35);
}

.button-secondary {
  color: var(--amber-100);
  border: 1px solid rgba(253, 230, 138, 0.46);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.button-ghost {
  color: var(--amber-800);
  background: #fffbeb;
}

.button-primary:hover,
.button-secondary:hover,
.button-ghost:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 34px rgba(120, 53, 15, 0.28);
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(253, 230, 138, 0.22);
  border-radius: var(--radius-xl);
  background: rgba(28, 25, 23, 0.36);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.hero-poster {
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 16 / 20;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

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

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 112px;
  display: flex;
  gap: 8px;
  justify-content: center;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

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

.hero-quick {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 22px;
  width: min(100% - 32px, var(--max-width));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.hero-quick a {
  min-height: 72px;
  padding: 12px;
  border-radius: 18px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(253, 230, 138, 0.16);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.hero-quick strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hero-quick span {
  display: block;
  margin-top: 4px;
  color: var(--amber-200);
  font-size: 12px;
}

.main-shell,
.page-shell {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

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

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  color: var(--stone-900);
}

.section-heading p {
  margin: 10px 0 0;
  max-width: 680px;
  color: var(--stone-600);
  line-height: 1.7;
}

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

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

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

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

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 42px rgba(28, 25, 23, 0.18);
}

.card-featured {
  grid-column: span 2;
}

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

.card-featured .movie-cover {
  aspect-ratio: 16 / 13;
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.movie-cover-gradient {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.78));
  transition: opacity 0.28s ease;
}

.movie-card:hover .movie-cover-gradient {
  opacity: 1;
}

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--white);
  background: rgba(217, 119, 6, 0.92);
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--amber-800));
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(120, 53, 15, 0.32);
}

.movie-card-body {
  padding: 16px;
}

.movie-meta span {
  background: var(--stone-100);
  color: var(--stone-700);
}

.movie-card h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

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

.movie-card p {
  margin: 0;
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: var(--stone-600);
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.chip-row span,
.category-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--amber-800);
  background: #fef3c7;
  font-size: 12px;
  font-weight: 800;
}

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

.category-card {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: var(--radius-lg);
  color: #fffbeb;
  background:
    radial-gradient(circle at top right, rgba(253, 230, 138, 0.26), transparent 32%),
    linear-gradient(135deg, var(--stone-900), var(--amber-900));
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 40px rgba(120, 53, 15, 0.22);
}

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

.category-card p {
  margin: 0;
  color: var(--amber-100);
  line-height: 1.65;
}

.category-card span {
  margin-top: 18px;
  color: var(--amber-300);
  font-weight: 900;
}

.page-hero {
  padding: 70px 0 42px;
  color: #fffbeb;
  background: linear-gradient(135deg, var(--stone-950), var(--amber-900), var(--stone-800));
}

.page-hero .page-shell {
  display: grid;
  gap: 16px;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
  max-width: 800px;
  margin: 0;
  color: var(--stone-100);
  font-size: 18px;
  line-height: 1.75;
}

.breadcrumbs {
  color: var(--amber-200);
  font-size: 14px;
  font-weight: 700;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid rgba(180, 83, 9, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-card);
}

.filter-bar label {
  display: grid;
  gap: 8px;
  color: var(--stone-600);
  font-size: 13px;
  font-weight: 900;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid #e7e5e4;
  border-radius: 13px;
  padding: 12px 13px;
  color: var(--stone-900);
  background: var(--white);
  outline: none;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--stone-950), var(--amber-900), var(--stone-800));
}

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

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.25));
}

.detail-head {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 34px;
  padding: 54px 0;
  color: var(--white);
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 3 / 4;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.36);
}

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

.detail-title {
  display: grid;
  gap: 18px;
  align-content: center;
}

.detail-title h1 {
  font-size: clamp(34px, 5vw, 62px);
}

.detail-title p {
  margin: 0;
  max-width: 780px;
  color: var(--stone-100);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta span {
  background: rgba(255, 255, 255, 0.14);
}

.player-section {
  padding-top: 48px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.26);
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: rgba(0, 0, 0, 0.34);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

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

.play-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--amber-800));
  box-shadow: 0 18px 38px rgba(120, 53, 15, 0.42);
  font-size: 32px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 30px;
  padding: 34px 0 0;
}

.article-panel,
.side-panel {
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.article-panel {
  padding: 28px;
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.article-panel p {
  margin: 0 0 18px;
  color: var(--stone-700);
  line-height: 1.9;
  font-size: 16px;
}

.side-panel {
  padding: 20px;
  align-self: start;
}

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

.side-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.side-item img {
  width: 72px;
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
}

.side-item strong {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.side-item span {
  display: block;
  margin-top: 6px;
  color: var(--stone-500);
  font-size: 13px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 100px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.rank-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--amber-800));
  font-weight: 900;
}

.rank-row img {
  width: 100px;
  height: 128px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-copy h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-copy p {
  margin: 0;
  color: var(--stone-600);
  line-height: 1.65;
}

.rank-link {
  color: var(--amber-700);
  font-weight: 900;
}

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

.no-results .empty-state {
  display: block;
}

.site-footer {
  margin-top: 72px;
  color: var(--stone-300);
  background: linear-gradient(90deg, var(--stone-950), var(--amber-950, #451a03), var(--stone-950));
  border-top: 2px solid var(--amber-800);
}

.footer-inner {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 38px 0;
}

.footer-brand {
  color: var(--amber-400);
  font-size: 24px;
  font-weight: 900;
}

.site-footer p {
  max-width: 620px;
  margin: 10px 0 0;
  line-height: 1.75;
  color: var(--stone-400);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.footer-links a {
  color: var(--amber-200);
  font-weight: 700;
}

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

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

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

  .hero-panel {
    display: none;
  }

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

@media (max-width: 760px) {
  .nav-shell {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 10px 0;
  }

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

  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 4px;
  }

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

  .hero,
  .hero-inner {
    min-height: 560px;
  }

  .hero-inner {
    padding: 60px 0 130px;
  }

  .hero-quick {
    grid-template-columns: 1fr;
    bottom: 16px;
  }

  .hero-dots {
    bottom: 132px;
  }

  .hero-quick a:nth-child(n+3) {
    display: none;
  }

  .movie-grid,
  .movie-grid.compact,
  .category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .card-featured {
    grid-column: span 2;
  }

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

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

  .detail-poster {
    width: min(250px, 72vw);
  }

  .rank-row {
    grid-template-columns: 46px 74px minmax(0, 1fr);
  }

  .rank-row img {
    width: 74px;
    height: 96px;
  }

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

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .brand-subtitle {
    display: none;
  }

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

  .card-featured {
    grid-column: auto;
  }

  .section-heading {
    display: grid;
  }

  .hero-actions {
    display: grid;
  }

  .button-primary,
  .button-secondary,
  .button-ghost {
    width: 100%;
  }
}
