:root {
  --amber-950: #451a03;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --orange-600: #ea580c;
  --yellow-50: #fefce8;
  --amber-50: #fffbeb;
  --stone-950: #0c0a09;
  --text: #27272a;
  --muted: #6b7280;
  --line: rgba(146, 64, 14, 0.16);
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 48%, #fefce8 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: #fff;
  background: linear-gradient(90deg, #78350f, #854d0e 50%, #78350f);
  box-shadow: 0 12px 35px rgba(69, 26, 3, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

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

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 999px;
  font-size: 24px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 10px 24px rgba(234, 88, 12, 0.24);
  transition: transform 0.28s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-4deg);
}

.brand-text strong {
  display: block;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.1;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #fde68a, #fff7ed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  display: block;
  margin-top: 3px;
  color: #fde68a;
  font-size: 12px;
  font-style: normal;
}

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

.nav-link,
.mobile-nav-link {
  border-radius: 999px;
  color: #ffedd5;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

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

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

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

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: #fff;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(253, 230, 138, 0.22);
}

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

.mobile-nav-link {
  padding: 12px 16px;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 15% 20%, rgba(251, 191, 36, 0.36), transparent 30%),
    radial-gradient(circle at 85% 30%, rgba(249, 115, 22, 0.28), transparent 35%),
    linear-gradient(135deg, #451a03 0%, #7c2d12 48%, #78350f 100%);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: heroPulse 7s ease-in-out infinite alternate;
}

.hero-inner {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero-slides {
  position: relative;
  width: 100%;
  min-height: 500px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.65fr);
  gap: 48px;
  align-items: center;
  opacity: 0;
  transform: translateY(22px) scale(0.99);
  pointer-events: none;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: #fde68a;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.hero h2,
.page-hero h1,
.detail-heading h1 {
  margin: 0;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero h1,
.hero h2 {
  max-width: 820px;
  font-size: clamp(42px, 7vw, 74px);
  background: linear-gradient(90deg, #fde68a, #fff7ed, #fef3c7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  max-width: 720px;
  margin: 24px 0 0;
  color: #ffedd5;
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.78;
}

.hero-tags,
.card-meta,
.tag-row,
.chip-row,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags {
  margin-top: 24px;
}

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

.hero-tags span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hero-actions {
  margin-top: 32px;
}

.primary-button,
.ghost-button,
.outline-button,
.section-more,
.category-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.primary-button {
  padding: 13px 26px;
  color: #fff;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  box-shadow: 0 15px 32px rgba(234, 88, 12, 0.32);
}

.primary-button:hover,
.category-enter:hover,
.outline-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.ghost-button {
  padding: 12px 22px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.hero-poster,
.rank-hero-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hero-poster img,
.rank-hero-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.5s ease;
}

.hero-poster:hover img,
.rank-hero-card:hover img {
  transform: scale(1.08);
}

.hero-poster span,
.rank-hero-card span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(12px);
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 44px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

.hero-dot.is-active {
  width: 34px;
  background: #fbbf24;
}

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

.section-white {
  background: #fff;
}

.section-warm {
  background: linear-gradient(135deg, #fef3c7, #ffedd5);
}

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

.section-heading h2 {
  margin: 0;
  color: #27272a;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
}

.section-more {
  padding: 9px 15px;
  color: #b45309;
  background: #fff7ed;
  box-shadow: inset 0 0 0 1px rgba(180, 83, 9, 0.2);
}

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(120, 53, 15, 0.12);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 55px rgba(120, 53, 15, 0.2);
}

.movie-card.is-hidden,
.rank-row.is-hidden {
  display: none;
}

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

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: #451a03;
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-wrap img {
  transform: scale(1.09);
}

.poster-wrap::after {
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  content: "";
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.62));
}

.duration,
.category-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
}

.duration {
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.76);
}

.category-pill {
  left: 10px;
  top: 10px;
  padding: 5px 10px;
  font-size: 12px;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
}

.rank-badge {
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: linear-gradient(135deg, #fbbf24, #ea580c);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-body {
  padding: 17px;
}

.card-body h3 {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.35;
  color: #27272a;
}

.card-body h3 a:hover,
.rank-info h2 a:hover,
.compact-link:hover strong {
  color: #b45309;
}

.card-body p {
  display: -webkit-box;
  min-height: 45px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #5f5f66;
  font-size: 14px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  color: #78716c;
  font-size: 12px;
}

.card-meta span:not(:last-child)::after {
  margin-left: 10px;
  color: #d6d3d1;
  content: "·";
}

.tag-row {
  margin-top: 12px;
}

.tag-row span,
.tag-cloud a {
  color: #b45309;
  background: #fffbeb;
  box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.18);
}

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

.category-entry,
.category-panel,
.sidebar-card,
.article-block,
.filter-panel,
.player-card {
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.category-entry,
.category-panel {
  padding: 24px;
}

.category-entry h3,
.category-panel h2,
.sidebar-card h2,
.article-block h2 {
  margin: 0 0 12px;
  color: #27272a;
  font-size: 23px;
  font-weight: 900;
}

.category-entry p,
.category-panel p,
.article-block p,
.detail-heading p,
.page-hero p,
.cta-section p {
  color: #5f5f66;
  line-height: 1.85;
}

.category-mini-list {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.category-mini-list a {
  color: #92400e;
  font-weight: 700;
}

.category-enter {
  padding: 10px 18px;
  color: #fff;
  background: linear-gradient(90deg, #d97706, #ea580c);
}

.cta-section {
  padding: 76px 0;
  color: #fff;
  text-align: center;
  background: linear-gradient(90deg, #78350f, #9a3412, #713f12);
}

.cta-section h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
}

.cta-section p {
  max-width: 780px;
  margin: 0 auto 28px;
  color: #ffedd5;
  font-size: 18px;
}

.primary-button.light {
  color: #78350f;
  background: #fff;
}

.page-hero {
  padding: 82px 0;
  color: #fff;
  background:
    radial-gradient(circle at 12% 20%, rgba(251, 191, 36, 0.28), transparent 30%),
    linear-gradient(135deg, #451a03, #7c2d12 55%, #92400e);
}

.page-hero.compact {
  padding: 70px 0;
}

.page-hero h1 {
  max-width: 850px;
  font-size: clamp(34px, 5vw, 56px);
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #ffedd5;
  font-size: 18px;
}

.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
  padding: 20px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffbeb;
}

.search-box input,
.filter-panel select {
  width: 100%;
  border: 0;
  outline: 0;
  color: #27272a;
  background: transparent;
}

.filter-panel select {
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf7;
}

.chip-row {
  gap: 8px;
}

.chip {
  min-height: 36px;
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  color: #92400e;
  background: #fffbeb;
  box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.16);
}

.chip.is-active,
.chip:hover {
  color: #fff;
  background: linear-gradient(90deg, #d97706, #ea580c);
}

.category-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.category-panel-head a {
  color: #b45309;
  font-weight: 800;
}

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

.compact-link {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
}

.compact-link img {
  width: 112px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
}

.compact-link strong {
  display: -webkit-box;
  overflow: hidden;
  color: #27272a;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.compact-link em {
  display: block;
  margin-top: 5px;
  color: #78716c;
  font-size: 12px;
  font-style: normal;
}

.rank-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 46px;
  align-items: center;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 160px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
}

.rank-number {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.rank-thumb img {
  width: 160px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-info h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.rank-info p {
  margin: 0 0 10px;
  color: #5f5f66;
  line-height: 1.65;
}

.outline-button {
  padding: 10px 16px;
  color: #b45309;
  background: #fffbeb;
  box-shadow: inset 0 0 0 1px rgba(180, 83, 9, 0.24);
}

.detail-hero {
  padding: 48px 0;
  color: #fff;
  background:
    radial-gradient(circle at 15% 15%, rgba(251, 191, 36, 0.3), transparent 30%),
    linear-gradient(135deg, #451a03, #78350f 52%, #9a3412);
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #fde68a;
  font-size: 14px;
}

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

.detail-heading p {
  max-width: 780px;
  margin: 18px 0 0;
  color: #ffedd5;
  font-size: 18px;
}

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

.detail-content {
  display: grid;
  gap: 24px;
}

.player-card {
  padding: 16px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #0c0a09;
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0c0a09;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: #0c0a09;
  cursor: pointer;
  z-index: 2;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.play-circle {
  position: absolute;
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
  transform: translateZ(0);
}

.article-block {
  padding: 26px;
}

.article-block p {
  margin: 0;
  font-size: 16px;
}

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

.info-list div {
  padding: 14px 16px;
  border-radius: 14px;
  background: #fffbeb;
}

.info-list dt {
  color: #92400e;
  font-size: 12px;
  font-weight: 900;
}

.info-list dd {
  margin: 6px 0 0;
  color: #27272a;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  padding: 20px;
}

.site-footer {
  color: #ffedd5;
  background: linear-gradient(135deg, #1c1917, #451a03 55%, #1c1917);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 28px;
  padding: 50px 0;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: #fde68a;
}

.site-footer p {
  margin: 0;
  color: #fed7aa;
  line-height: 1.8;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #ffedd5;
}

.site-footer a:hover {
  color: #fbbf24;
}

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid rgba(253, 230, 138, 0.16);
  color: #fed7aa;
  text-align: center;
}

@keyframes heroPulse {
  from {
    transform: translate3d(0, 0, 0);
    opacity: 0.26;
  }
  to {
    transform: translate3d(-16px, 10px, 0);
    opacity: 0.46;
  }
}

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

  .mobile-menu-button {
    display: block;
  }

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

  .hero-slide,
  .rank-hero-inner,
  .detail-hero-grid,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-slide {
    gap: 28px;
  }

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

  .movie-card-featured {
    grid-column: span 1;
  }

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

  .detail-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-container {
    width: min(100% - 22px, 1180px);
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

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

  .brand-text em {
    display: none;
  }

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

  .hero h1,
  .hero h2 {
    font-size: 38px;
  }

  .hero-description,
  .page-hero p,
  .detail-heading p {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-poster span,
  .rank-hero-card span {
    font-size: 16px;
  }

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

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .rank-row {
    grid-template-columns: 44px 94px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-number {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .rank-thumb img {
    width: 94px;
    height: 68px;
  }

  .rank-row .outline-button {
    grid-column: 2 / 4;
    justify-self: start;
  }

  .info-list {
    grid-template-columns: 1fr;
  }

  .compact-link {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .compact-link img {
    width: 96px;
    height: 64px;
  }
}
