:root {
  color-scheme: light;
  --stone-950: #0c0a09;
  --stone-900: #1c1917;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50: #fafaf9;
  --amber-950: #451a03;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-300: #fcd34d;
  --amber-100: #fef3c7;
  --white: #ffffff;
  --shadow-sm: 0 8px 20px rgba(28, 25, 23, 0.08);
  --shadow-md: 0 18px 45px rgba(28, 25, 23, 0.14);
  --shadow-lg: 0 28px 70px rgba(28, 25, 23, 0.22);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: linear-gradient(135deg, var(--stone-50), #fffbeb 55%, var(--stone-100));
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--stone-800);
  background: linear-gradient(135deg, var(--stone-50), #fffbeb 52%, var(--stone-100));
}

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

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

button,
input {
  font: inherit;
}

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

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

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

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

.brand-mark,
.footer-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.25);
}

.brand-name {
  display: block;
  font-size: 21px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--amber-200, #fde68a), var(--amber-400));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-subtitle {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--amber-300);
}

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

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

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover {
  color: var(--white);
  background: var(--amber-700);
  box-shadow: 0 8px 20px rgba(146, 64, 14, 0.35);
}

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

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: scale(1.02);
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-bg,
.detail-backdrop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}

.hero-layer,
.detail-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 78% 20%, rgba(251, 191, 36, 0.26), transparent 32%),
    linear-gradient(90deg, rgba(12, 10, 9, 0.92), rgba(12, 10, 9, 0.58), rgba(12, 10, 9, 0.15));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 1180px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-700);
  background: rgba(251, 191, 36, 0.18);
  border: 1px solid rgba(217, 119, 6, 0.18);
}

.hero .eyebrow {
  color: var(--amber-300);
  background: rgba(251, 191, 36, 0.13);
  border-color: rgba(251, 191, 36, 0.24);
}

.hero h1 {
  max-width: 780px;
  margin: 0 0 22px;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 950;
  text-shadow: 0 20px 40px rgba(0, 0, 0, 0.32);
}

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

.hero-tags,
.tag-row,
.tag-cloud,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span,
.tag-cloud span,
.detail-meta span {
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--amber-900);
  background: var(--amber-100);
  font-size: 12px;
  font-weight: 800;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-600), var(--amber-700));
  box-shadow: 0 16px 30px rgba(217, 119, 6, 0.35);
}

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

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

.hero-dot {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 99px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.35);
  transition: 0.25s ease;
}

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

.section {
  padding: 72px 0;
}

.section-search {
  padding: 28px 0 0;
}

.section-warm {
  background: linear-gradient(135deg, #fffbeb, var(--stone-50));
}

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

.section-head.compact {
  align-items: center;
}

.section-head h2,
.page-hero h1,
.detail-title-block h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
  color: var(--stone-800);
  letter-spacing: -0.04em;
}

.section-head a {
  color: var(--amber-700);
  font-weight: 900;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(214, 211, 209, 0.62);
  backdrop-filter: blur(18px);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 18px;
  background: var(--stone-100);
  color: var(--stone-600);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--stone-800);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-links a {
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  color: var(--amber-800);
  background: var(--amber-100);
}

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

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

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

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

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

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

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

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

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

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

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: rgba(217, 119, 6, 0.92);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: 0.28s ease;
}

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

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

.movie-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.35;
  color: var(--stone-800);
}

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

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

.tag-row span {
  padding: 4px 8px;
  font-size: 11px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
}

.rank-panel,
.side-box,
.detail-panel,
.player-card,
.category-card {
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.rank-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.rank-panel h2,
.side-box h2,
.detail-panel h2 {
  margin: 0 0 20px;
  font-size: 22px;
  color: var(--stone-800);
}

.rank-list,
.rank-wall {
  display: grid;
  gap: 12px;
}

.rank-wall {
  margin-top: 34px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rank-item {
  display: grid;
  grid-template-columns: 42px 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: var(--stone-50);
  transition: 0.25s ease;
}

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

.rank-no {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--amber-800));
  font-weight: 950;
}

.rank-item img {
  width: 64px;
  height: 82px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--stone-200);
}

.rank-content {
  min-width: 0;
}

.rank-content strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--stone-800);
  font-size: 15px;
}

.rank-content em {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--stone-500);
  font-size: 12px;
  font-style: normal;
}

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

.category-tile,
.category-card-main {
  position: relative;
  display: block;
  min-height: 150px;
  padding: 24px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--white);
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.38), transparent 34%),
    linear-gradient(135deg, var(--stone-900), var(--amber-900));
  box-shadow: var(--shadow-sm);
  transition: 0.25s ease;
}

.category-tile:hover,
.category-card-main:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.category-tile strong,
.category-card-main span {
  display: block;
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 950;
}

.category-tile span,
.category-card-main strong {
  display: block;
  color: var(--amber-100);
  line-height: 1.7;
  font-size: 14px;
}

.category-card {
  overflow: hidden;
}

.category-preview {
  display: grid;
  gap: 8px;
  padding: 16px;
  color: var(--stone-600);
  font-size: 14px;
}

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

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

.small-hero {
  padding: 86px 0;
}

.small-hero h1,
.small-hero p {
  max-width: 780px;
  color: var(--white);
}

.small-hero p {
  margin: 18px 0 0;
  color: var(--stone-200);
  font-size: 18px;
  line-height: 1.8;
}

.detail-hero {
  min-height: 520px;
  display: flex;
  align-items: center;
}

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

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 40px 0;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--amber-100);
  font-size: 14px;
  font-weight: 800;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.poster-frame {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--stone-900);
}

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

.detail-title-block h1 {
  color: var(--white);
  font-size: clamp(40px, 7vw, 76px);
  text-shadow: 0 20px 42px rgba(0, 0, 0, 0.35);
}

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

.detail-meta span {
  color: var(--amber-950);
  background: var(--amber-300);
}

.detail-section {
  padding-top: 52px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: start;
}

.detail-main {
  min-width: 0;
}

.player-card {
  position: relative;
  overflow: hidden;
  background: var(--stone-950);
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-lg);
}

.movie-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  cursor: pointer;
  color: var(--white);
  background: linear-gradient(180deg, rgba(12, 10, 9, 0.2), rgba(12, 10, 9, 0.72));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-orb {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  box-shadow: 0 20px 40px rgba(217, 119, 6, 0.4);
  font-size: 28px;
}

.player-overlay strong {
  font-size: 18px;
  letter-spacing: 0.08em;
}

.detail-panel {
  margin-top: 24px;
  padding: 28px;
}

.detail-panel h2::before,
.side-box h2::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 24px;
  margin-right: 12px;
  vertical-align: -5px;
  border-radius: 99px;
  background: var(--amber-600);
}

.detail-panel p {
  margin: 0;
  color: var(--stone-700);
  font-size: 17px;
  line-height: 2;
}

.review-panel {
  background: linear-gradient(135deg, #fffbeb, var(--white));
}

.detail-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 20px;
}

.side-box {
  padding: 24px;
}

.side-box dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px 14px;
  margin: 0;
}

.side-box dt {
  color: var(--stone-500);
  font-weight: 900;
}

.side-box dd {
  margin: 0;
  color: var(--stone-800);
  line-height: 1.6;
}

.side-box a {
  color: var(--amber-700);
  font-weight: 900;
}

.tag-cloud span {
  margin-bottom: 2px;
}

.wide-card .poster-link {
  aspect-ratio: 16 / 10;
}

.site-footer {
  color: var(--stone-400);
  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;
  padding: 48px 0;
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--amber-400);
  font-size: 22px;
  font-weight: 950;
}

.footer-inner p {
  max-width: 720px;
  margin: 0;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  color: var(--amber-300);
  font-weight: 800;
}

.copyright {
  color: var(--stone-500);
  font-size: 13px;
}

[data-search-item].is-hidden {
  display: none !important;
}

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

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

  .rank-panel,
  .detail-side {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 86px;
  }

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

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

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

  .poster-frame {
    width: min(240px, 68vw);
  }
}

@media (max-width: 640px) {
  .nav-shell {
    height: 66px;
  }

  .brand-subtitle {
    display: none;
  }

  .brand-name {
    font-size: 18px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p,
  .detail-title-block p {
    font-size: 16px;
  }

  .featured-grid,
  .latest-grid,
  .four-grid,
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .movie-card h3 {
    font-size: 15px;
  }

  .movie-card p,
  .tag-row {
    display: none;
  }

  .section {
    padding: 46px 0;
  }

  .section-head {
    display: block;
  }

  .section-head a {
    display: inline-block;
    margin-top: 12px;
  }

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

  .rank-item img {
    width: 54px;
    height: 72px;
  }

  .detail-panel,
  .side-box {
    padding: 20px;
  }
}
