:root {
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --orange-600: #ea580c;
  --stone-950: #0c0a09;
  --stone-900: #1c1917;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(120, 53, 15, 0.12);
  --shadow-card: 0 12px 28px rgba(41, 37, 36, 0.12);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--stone-900);
  background: linear-gradient(135deg, #fafaf9 0%, #fffbeb 50%, #fff7ed 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.88);
  border-bottom: 1px solid rgba(217, 119, 6, 0.15);
  backdrop-filter: blur(18px);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  color: var(--amber-900);
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.28);
}

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

.nav-link {
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--stone-700);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-900);
  background: rgba(251, 191, 36, 0.22);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(217, 119, 6, 0.12);
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--amber-900);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.38), transparent 34%), linear-gradient(135deg, #fff7ed, #fffbeb);
}

.hero-stage {
  position: relative;
  min-height: 620px;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.08);
  transform: scale(1.08);
  opacity: 0.23;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 251, 235, 0.76) 48%, rgba(255, 247, 237, 0.72));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 390px);
  align-items: center;
  gap: 54px;
  padding: 74px 0 68px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 13px;
  color: var(--amber-800);
  background: rgba(251, 191, 36, 0.22);
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  color: var(--amber-900);
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.hero-copy p,
.page-hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--stone-700);
  font-size: 18px;
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  color: var(--amber-800);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

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

.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 16px 28px rgba(217, 119, 6, 0.28);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.ghost-button {
  color: var(--amber-900);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(217, 119, 6, 0.22);
}

.primary-button.full {
  width: 100%;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(120, 53, 15, 0.26);
  transform: rotate(1deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
  transition: transform 0.5s ease;
}

.hero-poster:hover img {
  transform: scale(1.04);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 0;
  color: var(--amber-900);
  background: rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  transform: translateY(-50%);
  font-size: 32px;
  line-height: 1;
}

.hero-prev {
  left: max(18px, calc((100vw - 1180px) / 2 - 56px));
}

.hero-next {
  right: max(18px, calc((100vw - 1180px) / 2 - 56px));
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(120, 53, 15, 0.24);
}

.hero-dot.active {
  width: 32px;
  background: var(--amber-700);
}

.search-strip {
  padding: 34px 0;
  background: rgba(255, 255, 255, 0.76);
  border-block: 1px solid rgba(217, 119, 6, 0.13);
}

.search-strip h2 {
  margin: 0 0 8px;
  color: var(--amber-900);
  font-size: 28px;
}

.search-strip p {
  margin: 0 0 18px;
  color: var(--stone-600);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.filter-search input,
.filter-actions select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: 14px;
  outline: none;
  background: var(--white);
  color: var(--stone-800);
}

.filter-search input {
  padding: 0 16px;
}

.filter-actions {
  display: flex;
  gap: 10px;
}

.filter-actions select {
  padding: 0 34px 0 12px;
}

.section {
  padding: 58px 0;
}

.section-warm {
  background: linear-gradient(135deg, rgba(245, 245, 244, 0.84), rgba(255, 251, 235, 0.92));
}

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

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

.section-heading p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--stone-600);
}

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

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

.movie-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(214, 211, 209, 0.72);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 24px rgba(41, 37, 36, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  border-color: rgba(217, 119, 6, 0.34);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.poster-link {
  overflow: hidden;
  display: block;
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

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

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

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 34px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(217, 119, 6, 0.26);
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  padding: 13px;
}

.movie-title {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: var(--stone-900);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.2s ease;
}

.movie-title:hover {
  color: var(--amber-700);
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--stone-500);
  font-size: 12px;
}

.movie-meta span,
.movie-meta a {
  padding: 3px 7px;
  background: var(--stone-100);
  border-radius: 999px;
}

.movie-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--stone-600);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  isolation: isolate;
}

.category-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #d97706, #292524);
  transition: transform 0.45s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.12), rgba(28, 25, 23, 0.78));
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile span {
  font-size: 23px;
  font-weight: 900;
}

.category-tile small {
  max-width: 90%;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}

.plain-page {
  min-height: 68vh;
}

.page-hero {
  padding: 82px 0 46px;
  background: radial-gradient(circle at 12% 0%, rgba(251, 191, 36, 0.35), transparent 32%), linear-gradient(135deg, #fff7ed, #fffbeb);
  border-bottom: 1px solid rgba(217, 119, 6, 0.12);
}

.page-hero.slim {
  padding: 56px 0 36px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--stone-500);
  font-size: 14px;
}

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

.detail-page {
  background: linear-gradient(135deg, #fafaf9, #fffbeb);
}

.detail-shell {
  padding: 34px 0 20px;
}

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

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

.player-card,
.detail-content,
.side-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(214, 211, 209, 0.75);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.movie-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

.movie-player video,
.player-cover,
.player-cover img {
  width: 100%;
  height: 100%;
}

.movie-player video,
.player-cover img {
  object-fit: cover;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: #000;
  opacity: 1;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.42));
}

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

.play-orb {
  position: relative;
  z-index: 2;
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  border-radius: 999px;
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.3);
  font-size: 30px;
}

.detail-content {
  margin-top: 22px;
  padding: 28px;
}

.detail-content h1 {
  margin: 0 0 14px;
  color: var(--stone-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--stone-600);
}

.detail-meta span {
  padding: 6px 10px;
  background: var(--stone-100);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.detail-tags {
  margin-bottom: 28px;
}

.detail-content section {
  margin-top: 25px;
}

.detail-content h2,
.side-card h2 {
  margin: 0 0 10px;
  color: var(--amber-900);
  font-size: 22px;
  line-height: 1.25;
}

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

.lead-text {
  font-size: 18px;
  font-weight: 800;
}

.review-box {
  padding: 22px;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.72), rgba(255, 237, 213, 0.74));
  border-radius: var(--radius-lg);
}

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

.side-card {
  padding: 18px;
}

.poster-side img {
  width: 100%;
  aspect-ratio: 2 / 3;
  margin-bottom: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
  border-radius: 16px;
}

.related-list {
  display: grid;
  gap: 12px;
}

.related-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.related-item:hover {
  background: rgba(251, 191, 36, 0.16);
}

.related-item img {
  width: 78px;
  height: 58px;
  object-fit: cover;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
  border-radius: 11px;
}

.related-item strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--stone-900);
  font-size: 14px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-item small {
  display: block;
  margin-top: 4px;
  color: var(--stone-500);
}

.site-footer {
  padding: 38px 0;
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(135deg, var(--stone-950), var(--stone-800));
}

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

.footer-inner strong {
  color: var(--white);
  font-size: 18px;
}

.footer-inner p {
  margin: 6px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 800;
}

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

[hidden] {
  display: none !important;
}

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

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

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

  .detail-side {
    position: static;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  }
}

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

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

  .mobile-nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-stage,
  .hero-content {
    min-height: auto;
  }

  .hero-slide {
    position: relative;
    display: none;
  }

  .hero-slide.active {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 48px 0 82px;
  }

  .hero-poster {
    max-width: 310px;
    margin: 0 auto;
  }

  .hero-arrow {
    display: none;
  }

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

  .filter-actions {
    flex-direction: column;
  }

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

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

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

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

  .detail-content {
    padding: 22px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .container,
  .header-inner,
  .footer-inner,
  .mobile-nav {
    width: min(100% - 22px, 1180px);
  }

  .site-logo {
    font-size: 17px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

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

  .hero-copy p,
  .page-hero p {
    font-size: 16px;
  }

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

  .movie-title {
    font-size: 14px;
  }

  .play-orb {
    width: 58px;
    height: 58px;
    font-size: 24px;
  }
}
