:root {
  --amber: #f59e0b;
  --amber-dark: #92400e;
  --orange: #ea580c;
  --ink: #1f2937;
  --muted: #6b7280;
  --paper: #fff7ed;
  --card: #ffffff;
  --line: rgba(146, 64, 14, 0.14);
  --shadow: 0 22px 50px rgba(120, 53, 15, 0.18);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.28), transparent 32rem),
    linear-gradient(180deg, #fff7ed 0%, #fffbeb 38%, #ffffff 100%);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.98), rgba(154, 52, 18, 0.98), rgba(120, 53, 15, 0.98));
  color: #fff7ed;
  box-shadow: 0 12px 36px rgba(120, 53, 15, 0.26);
  backdrop-filter: blur(16px);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #78350f;
  background: linear-gradient(135deg, #fde68a, #f97316);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.42), 0 10px 22px rgba(0, 0, 0, 0.2);
}

.logo-text {
  font-size: 1.35rem;
}

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

.nav-link,
.mobile-link {
  border-radius: 999px;
  padding: 10px 16px;
  color: #fde68a;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #fff7ed;
}

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

.hero-carousel {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #451a03;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  background-image:
    linear-gradient(90deg, rgba(69, 26, 3, 0.96) 0%, rgba(120, 53, 15, 0.76) 42%, rgba(0, 0, 0, 0.35) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 30%, rgba(251, 191, 36, 0.32), transparent 24rem),
    linear-gradient(180deg, transparent 0%, rgba(69, 26, 3, 0.84) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 54px;
  padding: 72px 0;
}

.eyebrow {
  color: #f59e0b;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
  color: #ffffff;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero-copy h2 {
  margin-top: 14px;
  color: #fde68a;
  font-size: clamp(1.6rem, 3vw, 3rem);
}

.hero-summary {
  max-width: 760px;
  margin-top: 24px;
  color: #ffedd5;
  font-size: 1.12rem;
  line-height: 1.9;
}

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

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

.hero-tags span,
.detail-meta span,
.detail-tags span,
.movie-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff7ed;
  font-size: 0.88rem;
  backdrop-filter: blur(10px);
}

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

.primary-btn,
.glass-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #451a03;
  background: linear-gradient(135deg, #fde68a, #f59e0b, #f97316);
  box-shadow: 0 14px 32px rgba(249, 115, 22, 0.34);
}

.glass-btn {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.glass-btn.dark {
  color: #7c2d12;
  background: rgba(255, 247, 237, 0.72);
  border-color: rgba(249, 115, 22, 0.16);
}

.primary-btn:hover,
.glass-btn:hover,
.section-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.28);
}

.hero-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
  background: #78350f;
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff7ed;
  background: rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(10px);
}

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

.hero-dot {
  width: 42px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.2s ease, width 0.2s ease;
}

.hero-dot.is-active {
  width: 64px;
  background: #f59e0b;
}

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

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

.section-heading.compact {
  margin-bottom: 18px;
}

.section-heading.left {
  margin-left: 0;
}

.section-heading h2,
.search-section h2,
.ranking-side h2,
.prose-card h2 {
  color: #1f2937;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-heading p:not(.eyebrow),
.page-hero p,
.footer-grid p {
  margin-top: 10px;
  color: #6b7280;
  line-height: 1.8;
}

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

.category-tile,
.category-card-large {
  display: flex;
  flex-direction: column;
  min-height: 170px;
  border-radius: 24px;
  padding: 22px;
  background: linear-gradient(145deg, #ffffff 0%, #fff7ed 100%);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(120, 53, 15, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-card-large:hover,
.movie-card:hover,
.compact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-tile span,
.category-card-large span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  font-weight: 950;
}

.category-tile strong,
.category-card-large h2 {
  margin-top: 18px;
  color: #7c2d12;
  font-size: 1.2rem;
  font-weight: 950;
}

.category-tile small,
.category-card-large p {
  margin-top: 10px;
  color: #6b7280;
  line-height: 1.7;
}

.category-card-large em {
  margin-top: auto;
  color: #ea580c;
  font-style: normal;
  font-weight: 900;
}

.search-section {
  margin-bottom: 34px;
  border-radius: 28px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(120, 53, 15, 0.08);
}

.search-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr;
  gap: 12px;
}

.search-grid input,
.search-grid select {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(146, 64, 14, 0.18);
  background: #ffffff;
  padding: 0 16px;
  color: #1f2937;
  outline: none;
}

.search-grid input:focus,
.search-grid select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(146, 64, 14, 0.12);
  box-shadow: 0 14px 34px rgba(120, 53, 15, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #78350f, #f59e0b);
}

.movie-poster img {
  transition: transform 0.35s ease, filter 0.35s ease;
}

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

.poster-year,
.poster-play {
  position: absolute;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
  font-weight: 850;
}

.poster-year {
  top: 12px;
  left: 12px;
  padding: 5px 10px;
}

.poster-play {
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
}

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

.movie-title {
  display: block;
  color: #1f2937;
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.35;
}

.movie-title:hover,
.movie-category-link:hover,
.rank-row a:hover {
  color: #ea580c;
}

.movie-meta,
.movie-line {
  margin-top: 8px;
  color: #6b7280;
  line-height: 1.65;
}

.movie-line {
  display: -webkit-box;
  min-height: 3.3em;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-tags {
  margin-top: 14px;
}

.movie-tags span,
.detail-tags span {
  color: #9a3412;
  background: #ffedd5;
}

.movie-category-link {
  display: inline-flex;
  margin-top: 14px;
  color: #f97316;
  font-weight: 900;
}

.split-section,
.ranking-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: start;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border-radius: 18px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
}

.rank-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  font-weight: 950;
}

.rank-row a {
  font-weight: 900;
  color: #1f2937;
}

.rank-row small {
  color: #6b7280;
}

.section-more {
  margin-top: 18px;
  color: #ffffff;
  background: #ea580c;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 20px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card img {
  width: 74px;
  height: 98px;
  border-radius: 16px;
}

.compact-card span,
.compact-card small {
  grid-column: 2;
}

.compact-card span {
  font-weight: 950;
  color: #1f2937;
}

.compact-card small {
  color: #6b7280;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  border-radius: 34px;
  padding: clamp(42px, 7vw, 82px);
  color: #ffffff;
  background:
    radial-gradient(circle at top left, rgba(253, 230, 138, 0.36), transparent 28rem),
    linear-gradient(135deg, #78350f, #9a3412 50%, #f97316);
  box-shadow: var(--shadow);
}

.page-hero.small-hero,
.page-hero.rank-hero,
.page-hero.category-hero {
  min-height: 280px;
}

.page-hero p {
  max-width: 760px;
  color: #ffedd5;
  font-size: 1.08rem;
}

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

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #9a3412;
  font-weight: 800;
}

.breadcrumb a:hover {
  color: #ea580c;
}

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 36px;
  align-items: center;
  border-radius: 34px;
  padding: 32px;
  background:
    radial-gradient(circle at 30% 30%, rgba(245, 158, 11, 0.26), transparent 26rem),
    linear-gradient(135deg, #451a03, #7c2d12 48%, #111827);
  box-shadow: var(--shadow);
}

.detail-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
  background: #78350f;
}

.detail-lead {
  max-width: 760px;
  margin-top: 18px;
  color: #ffedd5;
  font-size: 1.12rem;
  line-height: 1.9;
}

.detail-meta,
.detail-tags {
  margin-top: 20px;
}

.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  border-radius: 30px;
  padding: 26px;
  background: #111827;
  box-shadow: 0 22px 52px rgba(17, 24, 39, 0.22);
}

.player-section .section-heading h2 {
  color: #ffffff;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.movie-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #ffffff;
  background-image:
    linear-gradient(135deg, rgba(0, 0, 0, 0.76), rgba(120, 53, 15, 0.52)),
    var(--poster-image);
  background-size: cover;
  background-position: center;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #451a03;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.32);
  font-size: 2rem;
}

.player-cover strong {
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

.detail-content {
  padding-top: 40px;
  padding-bottom: 30px;
}

.prose-card {
  border-radius: 28px;
  padding: clamp(24px, 4vw, 42px);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(120, 53, 15, 0.08);
}

.prose-card h2 + p {
  margin-top: 12px;
}

.prose-card p + h2 {
  margin-top: 30px;
}

.prose-card p {
  color: #374151;
  line-height: 2;
  font-size: 1.04rem;
}

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

.ranking-side {
  position: sticky;
  top: 104px;
  border-radius: 26px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(120, 53, 15, 0.08);
}

.site-footer {
  margin-top: 70px;
  color: #ffedd5;
  background: linear-gradient(135deg, #451a03, #7c2d12 48%, #111827);
}

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

.footer-logo {
  color: #ffffff;
  font-size: 1.4rem;
}

.footer-grid h2 {
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 950;
  margin-bottom: 14px;
}

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

.footer-links a {
  color: #fde68a;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.1);
}

.footer-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 34px;
  color: #fed7aa;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

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

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

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

  .mobile-toggle {
    display: inline-flex;
  }

  .mobile-nav.is-open {
    display: flex;
  }

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

  .hero-inner {
    min-height: 720px;
    gap: 28px;
    padding: 48px 0 82px;
  }

  .hero-poster {
    width: min(280px, 70vw);
    margin: 0 auto;
    transform: rotate(0deg);
  }

  .category-grid,
  .category-large-grid,
  .movie-grid,
  .movie-grid.wide-grid,
  .related-grid,
  .compact-scroll {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-hero {
    padding: 22px;
  }

  .detail-poster {
    width: min(300px, 100%);
    margin: 0 auto;
  }

  .ranking-side {
    position: static;
  }
}

@media (max-width: 560px) {
  .hero-carousel,
  .hero-inner {
    min-height: 760px;
  }

  .section {
    padding: 44px 0;
  }

  .category-grid,
  .category-large-grid,
  .movie-grid,
  .movie-grid.wide-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 44px 1fr;
  }

  .rank-row small {
    grid-column: 2;
  }

  .page-hero,
  .detail-hero,
  .player-section {
    border-radius: 22px;
  }

  .video-shell {
    border-radius: 16px;
  }
}
