:root {
  color-scheme: light;
  --stone-950: #1c1917;
  --stone-900: #292524;
  --stone-800: #44403c;
  --stone-700: #57534e;
  --stone-600: #78716c;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --amber-950: #451a03;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-300: #fcd34d;
  --amber-100: #fef3c7;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(28, 25, 23, 0.18);
  --soft-shadow: 0 12px 32px rgba(68, 64, 60, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--stone-800);
  background: linear-gradient(135deg, #fafaf9 0%, #fff7ed 48%, #f5f5f4 100%);
}

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

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

.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 30px rgba(28, 25, 23, 0.22);
}

.site-nav {
  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;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--amber-800));
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.35);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 14px 30px rgba(217, 119, 6, 0.48);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong,
.footer-brand {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: transparent;
  background: linear-gradient(90deg, #fde68a, var(--amber-300));
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-copy em {
  font-size: 12px;
  color: var(--amber-300);
  font-style: normal;
}

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

.nav-link,
.mobile-link {
  color: var(--amber-100);
  font-weight: 700;
  border-radius: 12px;
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.nav-link {
  padding: 10px 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--white);
  background: var(--amber-600);
  box-shadow: 0 8px 18px rgba(180, 83, 9, 0.28);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  border: 0;
  color: var(--white);
  background: var(--amber-700);
  border-radius: 12px;
  padding: 10px 13px;
  font-size: 20px;
}

.mobile-menu {
  display: none;
  padding: 12px 20px 18px;
  background: var(--stone-900);
  border-top: 1px solid rgba(252, 211, 77, 0.25);
}

.mobile-menu.open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
}

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

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

.hero-bg img,
.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  transform: scale(1.02);
}

.hero-overlay,
.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.14));
}

.hero-inner,
.detail-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  min-height: 600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: center;
  gap: 42px;
  padding: 70px 0;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-300);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber-400, #fbbf24);
  box-shadow: 0 0 0 6px rgba(251, 191, 36, 0.16);
}

.eyebrow.dark {
  color: var(--amber-700);
}

.hero-copy h1,
.detail-copy h1,
.page-hero h1 {
  margin: 0 0 22px;
  color: var(--white);
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-summary,
.detail-copy p,
.page-hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.4vw, 23px);
  line-height: 1.75;
  margin: 0 0 26px;
}

.hero-meta,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span,
.meta-row span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-meta span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  box-shadow: 0 16px 34px rgba(217, 119, 6, 0.35);
}

.ghost-button {
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(180, 83, 9, 0.34);
}

.hero-card {
  padding: 24px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-card h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

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

.hero-mini {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.hero-mini:hover {
  background: rgba(245, 158, 11, 0.28);
  transform: translateX(3px);
}

.hero-mini img {
  width: 82px;
  height: 108px;
  object-fit: cover;
  border-radius: 14px;
}

.hero-mini strong,
.hero-mini em {
  display: block;
}

.hero-mini strong {
  margin-bottom: 8px;
  color: var(--white);
  font-size: 16px;
}

.hero-mini em {
  color: var(--amber-100);
  font-size: 13px;
  font-style: normal;
}

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

.section-block {
  padding: 64px 0;
}

.section-block.warm {
  width: 100%;
  padding: 64px max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.62), rgba(255, 255, 255, 0.78));
}

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

.section-head.compact {
  align-items: center;
  margin-bottom: 20px;
}

.section-head h2,
.category-overview-card h2,
.detail-article h2,
.rank-panel h2,
.category-panel h2 {
  margin: 0;
  color: var(--stone-800);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

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

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

.text-link:hover {
  color: var(--amber-900);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, 180px);
  gap: 14px;
  margin: 0 0 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(146, 64, 14, 0.12);
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
}

.filter-panel label {
  display: grid;
  gap: 8px;
}

.filter-panel span {
  color: var(--stone-600);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(120, 113, 108, 0.2);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--stone-800);
  background: var(--white);
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

.movie-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(146, 64, 14, 0.1);
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 24px 54px rgba(68, 64, 60, 0.22);
}

.poster-link,
.poster-frame {
  display: block;
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--stone-200);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.75));
  transition: opacity 0.25s ease;
}

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

.play-chip {
  position: absolute;
  left: 14px;
  bottom: 14px;
  opacity: 0;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rank-number {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-800));
  box-shadow: 0 10px 22px rgba(146, 64, 14, 0.32);
}

.card-body {
  padding: 16px;
}

.card-body h2 {
  margin: 0 0 8px;
  color: var(--stone-800);
  font-size: 17px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body h2 a:hover {
  color: var(--amber-700);
}

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

.meta-row {
  margin-bottom: 12px;
}

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

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

.tag-row span {
  color: var(--amber-900);
  background: var(--amber-100);
}

.tag-row.large span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.18);
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  padding: 64px 0;
}

.category-panel,
.rank-panel {
  padding: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(146, 64, 14, 0.1);
  border-radius: 28px;
  box-shadow: var(--soft-shadow);
}

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

.category-tile {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  display: flex;
  align-items: end;
  border-radius: 22px;
  background: var(--stone-900);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.category-tile:hover img {
  opacity: 0.68;
  transform: scale(1.06);
}

.category-tile span {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 18px;
}

.category-tile strong {
  color: var(--white);
  font-size: 22px;
}

.category-tile em {
  color: var(--amber-100);
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 247, 237, 0.82);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.rank-item:hover {
  background: var(--amber-100);
  transform: translateX(3px);
}

.rank-item span {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-800));
}

.rank-item strong {
  color: var(--stone-800);
}

.rank-item em {
  color: var(--stone-600);
  font-size: 13px;
  font-style: normal;
}

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

.page-hero.slim {
  min-height: 330px;
  display: grid;
  place-items: center;
  padding: 70px 16px;
  text-align: center;
}

.page-hero > div {
  width: min(900px, 100%);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  padding: 18px;
  background: var(--white);
  border: 1px solid rgba(146, 64, 14, 0.1);
  border-radius: 26px;
  box-shadow: var(--soft-shadow);
}

.category-cover {
  overflow: hidden;
  border-radius: 20px;
  background: var(--stone-200);
}

.category-cover img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-overview-card:hover .category-cover img {
  transform: scale(1.06);
}

.category-overview-card h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.category-overview-card p {
  margin: 0 0 12px;
  color: var(--stone-600);
  line-height: 1.8;
}

.category-overview-card ul {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.category-overview-card li a {
  color: var(--stone-700);
}

.category-overview-card li a:hover {
  color: var(--amber-700);
}

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

.detail-inner {
  grid-template-columns: 330px 1fr;
  min-height: 560px;
}

.detail-poster {
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--amber-100);
  font-weight: 700;
}

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

.detail-copy h1 {
  font-size: clamp(38px, 6vw, 66px);
}

.detail-meta {
  margin-bottom: 20px;
}

.detail-section {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 28px;
  align-items: start;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 24px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.68));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-ring {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 50%;
  color: var(--white);
  font-size: 34px;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  box-shadow: 0 18px 45px rgba(217, 119, 6, 0.42);
}

.player-overlay strong {
  font-size: clamp(20px, 3vw, 30px);
}

.detail-article {
  padding: 26px;
  background: var(--white);
  border: 1px solid rgba(146, 64, 14, 0.1);
  border-radius: 26px;
  box-shadow: var(--soft-shadow);
}

.detail-article h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.detail-article h2:not(:first-child) {
  margin-top: 26px;
}

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

.empty-state {
  display: none;
  margin: 26px 0 0;
  padding: 24px;
  text-align: center;
  color: var(--stone-600);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
}

.empty-state.show {
  display: block;
}

.site-footer {
  color: var(--stone-200);
  background: linear-gradient(90deg, var(--stone-900), var(--amber-950), var(--stone-900));
  border-top: 2px solid var(--amber-800);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 34px;
  padding: 44px 0;
}

.footer-inner p {
  color: #c7c1bc;
  line-height: 1.8;
}

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

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

.footer-links a {
  color: #d6d3d1;
}

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

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: #a8a29e;
  border-top: 1px solid rgba(245, 158, 11, 0.18);
  text-align: center;
}

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

  .hero-card {
    max-width: 680px;
  }

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

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

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

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

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

  .hero-section,
  .detail-hero,
  .hero-inner,
  .detail-inner {
    min-height: auto;
  }

  .hero-inner,
  .detail-inner {
    padding: 52px 0;
  }

  .hero-copy h1,
  .detail-copy h1,
  .page-hero h1 {
    font-size: 40px;
  }

  .hero-summary,
  .detail-copy p,
  .page-hero p {
    font-size: 17px;
  }

  .hero-card {
    padding: 18px;
  }

  .hero-mini {
    grid-template-columns: 68px 1fr;
  }

  .hero-mini img {
    width: 68px;
    height: 90px;
  }

  .section-head {
    display: grid;
    align-items: start;
  }

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

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

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

  .category-cover img {
    min-height: 260px;
  }

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

  .detail-section {
    gap: 20px;
  }

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

@media (max-width: 460px) {
  .site-nav {
    width: calc(100% - 20px);
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .section-block,
  .split-section {
    width: min(100% - 20px, 1180px);
  }

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

  .card-body p {
    min-height: auto;
  }
}
