:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --orange-50: #fff7ed;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --text: #3f2608;
  --muted: #8a5a18;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(120, 53, 15, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, var(--amber-50), var(--orange-50), var(--amber-50));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

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;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96), rgba(255, 251, 235, 0.96));
  border-bottom: 2px solid var(--amber-200);
  box-shadow: 0 12px 24px rgba(146, 64, 14, 0.1);
  backdrop-filter: blur(12px);
}

.header-inner {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand-mark,
.footer-brand span {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-700), var(--orange-600));
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(180, 83, 9, 0.28);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--amber-900);
}

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

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

.nav-link,
.mobile-link {
  color: var(--amber-800);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--amber-950, #451a03);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--amber-800);
  background: rgba(254, 243, 199, 0.8);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.icon-button:hover {
  background: var(--amber-200);
  transform: translateY(-1px);
}

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

.search-panel {
  display: none;
  padding: 0 0 18px;
}

.search-panel.is-open {
  display: block;
}

.search-wrap {
  position: relative;
}

.site-search-input,
.catalog-search-input {
  width: 100%;
  border: 2px solid var(--amber-300);
  border-radius: 16px;
  background: var(--white);
  color: var(--text);
  padding: 15px 18px;
  outline: none;
  box-shadow: inset 0 2px 8px rgba(120, 53, 15, 0.04);
}

.site-search-input:focus,
.catalog-search-input:focus {
  border-color: var(--amber-500);
}

.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  z-index: 60;
  display: none;
  max-height: 420px;
  overflow: auto;
  background: var(--white);
  border: 2px solid var(--amber-200);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.search-results.is-open {
  display: block;
}

.search-result-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  padding: 12px;
  border-bottom: 1px solid var(--amber-100);
}

.search-result-item:hover {
  background: var(--amber-50);
}

.search-result-item img {
  width: 80px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}

.search-result-item strong {
  display: block;
  color: var(--amber-900);
}

.search-result-item small {
  color: var(--muted);
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--amber-200);
  background: var(--white);
}

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

.mobile-link {
  padding: 10px 0;
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  color: var(--white);
  background: linear-gradient(120deg, var(--amber-900), var(--orange-700), var(--amber-900));
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
}

.hero-slide.is-active {
  display: flex;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.32;
  transform: scale(1.04);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(252, 211, 77, 0.35), transparent 32%), linear-gradient(90deg, rgba(69, 26, 3, 0.94), rgba(120, 53, 15, 0.78), rgba(69, 26, 3, 0.9));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 60px;
  padding: 96px 0 150px;
}

.hero-kicker,
.section-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(253, 230, 138, 0.38);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.section-kicker,
.detail-kicker {
  color: var(--amber-700);
  background: var(--amber-100);
  border-color: var(--amber-200);
}

.hero-copy h1 {
  margin: 22px 0 18px;
  max-width: 820px;
  font-size: clamp(44px, 8vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 740px;
  margin: 0 0 34px;
  font-size: clamp(18px, 2.4vw, 25px);
  color: var(--amber-100);
  line-height: 1.7;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

.primary-button {
  color: var(--amber-900);
  background: var(--white);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

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

.ghost-button {
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.65);
}

.text-link {
  color: var(--amber-800);
  background: var(--amber-100);
}

.hero-poster-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 8px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

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

.hero-poster-card span,
.play-circle,
.big-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-900);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  font-size: 28px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

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

.hero-dots button {
  width: 42px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: var(--white);
}

.overlap-grid {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: -86px;
}

.section-block {
  margin-top: 78px;
}

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

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.detail-copy h2,
.panel-title h2,
.side-card h2,
.footer-grid h2 {
  margin: 8px 0 0;
  color: var(--amber-950, #451a03);
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
}

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

.card-grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--amber-100);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: var(--amber-300);
  box-shadow: var(--shadow);
}

.movie-card-link {
  display: block;
  height: 100%;
}

.card-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--amber-100);
}

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

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.5));
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.play-circle {
  z-index: 2;
  width: 54px;
  height: 54px;
  font-size: 20px;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-circle {
  opacity: 1;
}

.duration-badge,
.rank-badge {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  color: var(--white);
  font-weight: 800;
  background: rgba(0, 0, 0, 0.68);
}

.duration-badge {
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  font-size: 12px;
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.card-body {
  padding: 18px;
}

.card-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 10px;
  color: var(--amber-900);
  background: var(--amber-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.movie-card h2,
.movie-card h3 {
  margin: 0 0 8px;
  color: var(--amber-950, #451a03);
  font-size: 19px;
  line-height: 1.35;
}

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

.movie-card-large h2 {
  font-size: 24px;
}

.tag-row,
.tag-cloud,
.detail-meta,
.card-meta,
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span,
.tag-cloud span {
  padding: 5px 9px;
  color: var(--amber-800);
  background: var(--amber-50);
  border: 1px solid var(--amber-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.card-meta {
  justify-content: space-between;
  margin-top: 14px;
  color: var(--amber-600);
  font-size: 13px;
  font-weight: 700;
}

.movie-card-horizontal .movie-card-link {
  display: grid;
  grid-template-columns: 220px 1fr;
}

.movie-card-horizontal .card-cover {
  height: 100%;
  aspect-ratio: auto;
}

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

.horizontal-list {
  display: grid;
  gap: 18px;
}

.ranking-panel,
.side-card,
.poster-panel,
.category-overview-card,
.filter-panel,
.detail-copy {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--amber-100);
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(120, 53, 15, 0.11);
}

.ranking-panel {
  position: sticky;
  top: 102px;
  padding: 22px;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

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

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

.compact-link:hover {
  background: var(--amber-50);
}

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

.compact-link strong {
  display: block;
  color: var(--amber-950, #451a03);
  line-height: 1.35;
}

.compact-link small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

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

.category-tile {
  display: grid;
  min-height: 150px;
  gap: 8px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--amber-100);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(120, 53, 15, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-tile span {
  font-size: 34px;
}

.category-tile strong {
  color: var(--amber-950, #451a03);
  font-size: 20px;
}

.category-tile small,
.category-overview-card p {
  color: var(--muted);
  line-height: 1.6;
}

.cta-panel {
  margin: 86px auto;
  padding: 46px;
  text-align: center;
  color: var(--white);
  background: linear-gradient(120deg, var(--amber-800), var(--orange-700));
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 48px);
}

.cta-panel p {
  max-width: 720px;
  margin: 0 auto 24px;
  color: var(--amber-100);
  font-size: 18px;
  line-height: 1.7;
}

.sub-page,
.detail-page {
  min-height: 70vh;
}

.page-hero {
  padding: 76px 0;
  color: var(--white);
  background: radial-gradient(circle at 10% 10%, rgba(252, 211, 77, 0.28), transparent 32%), linear-gradient(120deg, var(--amber-900), var(--orange-700));
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(38px, 6vw, 64px);
}

.page-hero p {
  max-width: 780px;
  color: var(--amber-100);
  font-size: 19px;
  line-height: 1.8;
}

.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
  margin-bottom: 82px;
}

.category-overview-card {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.category-overview-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--amber-950, #451a03);
  font-size: 24px;
}

.category-overview-title span {
  font-size: 32px;
}

.mini-list .compact-link:nth-child(n + 4) {
  display: none;
}

.filter-panel {
  display: grid;
  gap: 16px;
  margin-top: -30px;
  padding: 20px;
  position: relative;
  z-index: 3;
}

.filter-chip {
  border: 1px solid var(--amber-200);
  border-radius: 999px;
  padding: 9px 15px;
  color: var(--amber-800);
  background: var(--white);
  cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: var(--white);
  background: var(--amber-700);
}

.catalog-grid .movie-card.is-hidden {
  display: none;
}

.detail-shell {
  padding-top: 32px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--muted);
  font-weight: 700;
}

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

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

.player-card {
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #000000;
  cursor: pointer;
  overflow: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

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

.big-play {
  z-index: 2;
  width: 94px;
  height: 94px;
  font-size: 38px;
}

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

.detail-copy h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
}

.detail-meta {
  margin: 18px 0;
}

.detail-meta span {
  padding: 7px 11px;
  color: var(--amber-800);
  background: var(--amber-100);
  border-radius: 999px;
  font-weight: 800;
}

.lead-text {
  font-size: 20px;
  color: var(--amber-700);
  font-weight: 700;
}

.detail-copy p {
  color: var(--text);
  line-height: 1.9;
  font-size: 17px;
}

.detail-copy h2 {
  margin-top: 30px;
  margin-bottom: 12px;
  font-size: 24px;
}

.detail-sidebar {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 20px;
}

.poster-panel,
.side-card {
  padding: 18px;
}

.poster-panel img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 16px;
}

.full-button {
  width: 100%;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  color: var(--white);
}

.site-footer {
  margin-top: 92px;
  color: var(--amber-100);
  background: linear-gradient(180deg, var(--amber-900), #451a03);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 38px;
  padding: 48px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 900;
}

.footer-grid p {
  color: var(--amber-200);
  line-height: 1.8;
}

.footer-grid h2 {
  color: var(--white);
  font-size: 20px;
}

.footer-links {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

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

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

.footer-bottom {
  padding: 18px;
  text-align: center;
  color: var(--amber-200);
  border-top: 1px solid rgba(253, 230, 138, 0.18);
}

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

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

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

  .hero-poster-card {
    display: none;
  }

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

  .three-cols,
  .overlap-grid {
    grid-template-columns: 1fr;
  }

  .ranking-panel,
  .detail-sidebar {
    position: static;
  }
}

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

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

  .brand-subtitle {
    display: none;
  }

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

  .hero-content {
    padding: 82px 0 120px;
  }

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

  .hero-actions {
    display: grid;
  }

  .four-cols,
  .three-cols,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal .movie-card-link {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal .card-cover {
    aspect-ratio: 16 / 10;
  }

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

  .cta-panel,
  .detail-copy {
    padding: 24px;
  }
}
