:root {
  --stone-950: #1c1917;
  --stone-900: #292524;
  --stone-800: #44403c;
  --stone-700: #57534e;
  --stone-600: #78716c;
  --stone-500: #a8a29e;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-200: #fde68a;
  --paper: #fffaf0;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(41, 37, 36, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--stone-900);
  background: linear-gradient(180deg, #fff7ed 0%, #fafaf9 46%, #f5f5f4 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, rgba(28, 25, 23, 0.98), rgba(120, 53, 15, 0.96), rgba(28, 25, 23, 0.98));
  box-shadow: 0 12px 32px rgba(28, 25, 23, 0.28);
  backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--amber-200);
}

.brand-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 12px 26px rgba(217, 119, 6, 0.32);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-text em {
  font-size: 12px;
  color: var(--amber-400);
  font-style: normal;
  margin-top: 3px;
}

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

.desktop-nav a,
.mobile-nav a {
  color: var(--amber-100, #fef3c7);
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  background: var(--amber-600);
  color: var(--white);
  transform: translateY(-1px);
}

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

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  gap: 8px;
  flex-direction: column;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(251, 191, 36, 0.24), transparent 32%), linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.18));
}

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

.hero-content > * {
  max-width: 690px;
}

.hero-kicker,
.page-hero span,
.section-heading span,
.category-overview-head span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--amber-300, #fcd34d);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker a {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0;
}

.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero h2 {
  margin: 18px 0 0;
  font-size: clamp(24px, 3vw, 42px);
  color: var(--amber-200);
}

.hero p,
.page-hero p,
.section-heading p {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.16);
  color: var(--amber-200);
  font-size: 12px;
  font-weight: 700;
}

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

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

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

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

.ghost-btn {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.ghost-dark-btn {
  color: var(--stone-900);
  background: var(--white);
  border: 1px solid var(--stone-200);
}

.primary-btn.small {
  min-height: 44px;
}

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

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

.hero-dots button.active {
  background: var(--amber-400);
}

.section-panel,
.category-overview-block {
  width: min(1180px, calc(100% - 32px));
  margin: 56px auto;
}

.quick-search {
  margin-top: -36px;
  position: relative;
  z-index: 8;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2,
.category-overview-head h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  color: var(--stone-900);
}

.section-heading p,
.category-overview-head p {
  color: var(--stone-600);
  max-width: 760px;
}

.compact-heading {
  margin-bottom: 16px;
}

.split-heading,
.category-overview-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.search-shell {
  display: flex;
  gap: 14px;
  align-items: center;
}

.site-search {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(168, 162, 158, 0.5);
  border-radius: 16px;
  padding: 0 18px;
  background: var(--white);
  color: var(--stone-900);
  outline: none;
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.site-search:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(68, 64, 60, 0.12);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 54px rgba(68, 64, 60, 0.22);
}

.poster-link {
  position: relative;
  display: block;
  height: 300px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--stone-900), var(--amber-900));
}

.compact-card .poster-link {
  height: 220px;
}

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

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent);
}

.movie-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.movie-meta {
  display: flex;
  gap: 8px;
  color: var(--amber-700);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 8px 0 8px;
  font-size: 19px;
  line-height: 1.35;
  color: var(--stone-900);
}

.compact-card h3 {
  font-size: 16px;
}

.movie-card p {
  margin: 0;
  color: var(--stone-600);
  line-height: 1.7;
  font-size: 14px;
}

.movie-card .tag-row {
  margin-top: auto;
  padding-top: 14px;
}

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

.category-section {
  padding: 64px 0;
  background: linear-gradient(135deg, var(--stone-900), var(--amber-900));
}

.light-heading,
.light-heading h2,
.light-heading p {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
  color: var(--white);
}

.category-grid,
.category-link-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.category-link-grid {
  width: 100%;
}

.category-card {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: 22px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: var(--white);
  background: var(--stone-900);
  box-shadow: 0 18px 40px rgba(28, 25, 23, 0.22);
}

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

.category-card:hover img {
  opacity: 0.46;
  transform: scale(1.08);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 72%);
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 2;
}

.category-card span {
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 75% 10%, rgba(251, 191, 36, 0.23), transparent 30%), linear-gradient(135deg, var(--stone-950), var(--amber-900), var(--stone-800));
  color: var(--white);
}

.page-hero > div {
  width: min(1180px, calc(100% - 32px));
  min-height: 360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.small-hero > div {
  min-height: 280px;
}

.page-hero h1 {
  margin: 12px 0 0;
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.03em;
}

.list-search {
  margin-bottom: 28px;
}

.category-overview-block {
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 45px rgba(68, 64, 60, 0.12);
}

.ranking-panel {
  max-width: 980px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 22px;
  padding: 18px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 14px 30px rgba(68, 64, 60, 0.1);
}

.ranking-cover {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--stone-900);
}

.ranking-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-cover strong {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  color: var(--white);
  background: var(--amber-600);
}

.ranking-item span {
  color: var(--amber-700);
  font-weight: 800;
}

.ranking-item h2 {
  margin: 8px 0;
  font-size: 26px;
}

.ranking-item p {
  color: var(--stone-600);
  line-height: 1.8;
}

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

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

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: blur(2px);
}

.detail-backdrop span {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.42));
}

.detail-layout {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 520px;
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: center;
  gap: 42px;
  padding: 42px 0;
}

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

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--amber-200);
  font-size: 14px;
  font-weight: 700;
}

.detail-summary h1 {
  margin: 16px 0 12px;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -0.04em;
}

.detail-summary p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-weight: 800;
}

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

.player-section h2 {
  margin: 0 0 18px;
  font-size: 34px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(28, 25, 23, 0.28);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2), rgba(0, 0, 0, 0.44));
  cursor: pointer;
}

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

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

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

.detail-text-block,
.detail-side-card {
  border-radius: 24px;
  background: var(--white);
  padding: 28px;
  box-shadow: 0 16px 36px rgba(68, 64, 60, 0.12);
}

.detail-text-block h2,
.detail-side-card h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

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

.detail-side-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
}

.detail-side-card dt {
  color: var(--stone-500);
  font-weight: 800;
}

.detail-side-card dd {
  margin: 0;
  color: var(--stone-900);
  line-height: 1.6;
}

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

.index-group {
  padding: 24px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(68, 64, 60, 0.1);
}

.index-group h2 {
  margin: 0 0 14px;
  color: var(--amber-800);
}

.index-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 20px;
}

.index-group li {
  break-inside: avoid;
  margin: 0 0 10px;
}

.index-group a {
  display: block;
  color: var(--stone-900);
  font-weight: 700;
}

.index-group span {
  display: block;
  margin-top: 3px;
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 600;
}

.site-footer {
  margin-top: 72px;
  background: var(--stone-950);
  color: var(--stone-200);
}

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

.footer-brand {
  color: var(--amber-400);
  font-size: 22px;
  font-weight: 900;
}

.site-footer p {
  color: var(--stone-500);
  line-height: 1.8;
}

.site-footer h3 {
  color: var(--amber-400);
  margin: 0 0 16px;
}

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

.footer-links a {
  color: var(--stone-400, #a8a29e);
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 32px;
  border-top: 1px solid rgba(168, 162, 158, 0.18);
  color: var(--stone-500);
  text-align: center;
}

.searchable.is-hidden {
  display: none;
}

@media (max-width: 1080px) {
  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .menu-toggle {
    display: block;
  }

  body.menu-open .mobile-nav {
    display: flex;
  }

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

  .hero-content {
    padding: 42px 0 76px;
  }

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

  .search-shell,
  .split-heading,
  .category-overview-head {
    align-items: stretch;
    flex-direction: column;
  }

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

  .poster-link,
  .compact-card .poster-link {
    height: 240px;
  }

  .ranking-item,
  .detail-layout,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .index-group ul {
    columns: 1;
  }
}

@media (max-width: 520px) {
  .header-inner {
    min-height: 68px;
  }

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

  .brand-text em {
    display: none;
  }

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

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

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

  .poster-link,
  .compact-card .poster-link {
    height: 330px;
  }

  .ranking-cover {
    height: 300px;
  }

  .section-panel,
  .category-overview-block,
  .player-section {
    margin-top: 36px;
    margin-bottom: 36px;
  }
}
