:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-900: #78350f;
  --orange-50: #fff7ed;
  --orange-500: #f97316;
  --orange-800: #9a3412;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(146, 64, 14, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--amber-50), var(--white) 28%, var(--gray-50));
}

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

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

.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));
  border-bottom: 1px solid var(--amber-200);
  box-shadow: 0 8px 24px rgba(180, 83, 9, 0.08);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--amber-700);
}

.logo {
  font-size: 26px;
}

.logo-mark,
.footer-logo span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--gray-700);
  font-weight: 650;
}

.nav-link {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-600);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--amber-500);
  transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--amber-100);
  color: var(--amber-700);
  font-size: 22px;
  cursor: pointer;
}

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

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

.mobile-link {
  padding: 11px 8px;
  color: var(--gray-700);
  font-weight: 650;
  border-radius: 10px;
}

.mobile-link:hover {
  color: var(--amber-700);
  background: var(--amber-100);
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  color: var(--white);
  background: radial-gradient(circle at 18% 18%, rgba(245, 158, 11, 0.7), transparent 34%), linear-gradient(135deg, #451a03, #7c2d12 48%, #111827);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(120, 53, 15, 0.58), rgba(17, 24, 39, 0.92));
}

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

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

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

.hero-copy {
  max-width: 670px;
  padding: 38px 0;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-700);
  background: rgba(254, 243, 199, 0.94);
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 800;
}

.hero-copy .eyebrow {
  color: var(--white);
  background: rgba(245, 158, 11, 0.88);
  border-color: rgba(255, 255, 255, 0.18);
}

.hero-copy h1 {
  margin: 20px 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-lead {
  margin: 0 0 24px;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.4vw, 23px);
  line-height: 1.7;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

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

.primary-button,
.secondary-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  min-height: 48px;
  padding: 0 26px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 14px 32px rgba(249, 115, 22, 0.3);
}

.secondary-button {
  min-height: 48px;
  padding: 0 22px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
}

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

.hero-art {
  position: relative;
  width: min(420px, 100%);
  justify-self: end;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-art::before {
  content: "";
  display: block;
  padding-top: 138%;
}

.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  left: 0;
  bottom: 46px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 42px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dot.active {
  background: var(--amber-500);
}

.search-panel,
.filter-bar {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 440px);
  align-items: center;
  gap: 24px;
  margin-top: -54px;
  padding: 26px;
  position: relative;
  z-index: 4;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search-panel h2,
.section-head h2,
.page-hero h1 {
  margin: 0;
}

.search-panel p,
.section-head p,
.page-hero p {
  margin: 8px 0 0;
  color: var(--gray-500);
  line-height: 1.75;
}

.search-box,
.select-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  color: var(--gray-500);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 15px;
}

.search-box input,
.select-box select {
  width: 100%;
  min-height: 48px;
  border: 0;
  outline: 0;
  color: var(--gray-900);
  background: transparent;
  font: inherit;
}

.filter-bar {
  grid-template-columns: minmax(260px, 1fr) 220px;
  margin-top: 0;
  margin-bottom: 26px;
}

.content-section,
.category-strip,
.prose-section {
  padding: 66px 0;
}

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

.section-head h2 {
  margin-top: 12px;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.03em;
}

.text-link {
  flex: 0 0 auto;
  color: var(--amber-700);
  background: var(--amber-100);
  padding: 12px 16px;
}

.light {
  color: var(--white);
}

.light p {
  color: rgba(255, 255, 255, 0.72);
}

.light-link {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(146, 64, 14, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.44);
  box-shadow: 0 24px 55px rgba(146, 64, 14, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-50));
}

.poster-link::before {
  content: "";
  display: block;
  padding-top: 138%;
}

.poster-link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

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

.type-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  color: var(--white);
  background: rgba(245, 158, 11, 0.92);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.type-badge {
  left: 12px;
}

.rank-badge {
  right: 12px;
  background: rgba(17, 24, 39, 0.82);
}

.movie-info {
  padding: 17px;
}

.movie-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-info h3 a:hover {
  color: var(--amber-700);
}

.meta-line,
.movie-desc {
  margin: 0;
  color: var(--gray-500);
  line-height: 1.62;
  font-size: 14px;
}

.movie-desc {
  margin-top: 9px;
  min-height: 44px;
}

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

.tag-row span,
.detail-tags span {
  color: var(--amber-700);
  background: var(--amber-100);
}

.rank-section {
  padding: 70px 0;
  background: linear-gradient(135deg, var(--amber-900), var(--orange-800));
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 52px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 10px 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.18);
}

.rank-number {
  color: var(--amber-100);
  font-size: 22px;
  font-weight: 900;
}

.rank-item img {
  width: 52px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
}

.rank-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 750;
}

.rank-score {
  color: var(--amber-100);
  font-weight: 850;
}

.category-strip h2 {
  margin: 0 0 18px;
  font-size: 30px;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.category-pill {
  padding: 13px 18px;
  color: var(--amber-700);
  background: var(--white);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(146, 64, 14, 0.08);
  font-weight: 800;
}

.category-pill:hover {
  background: var(--amber-100);
}

.page-hero {
  padding: 78px 0 44px;
}

.page-hero h1 {
  margin-top: 14px;
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: -0.05em;
}

.category-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 42px;
}

.category-card a {
  position: relative;
  min-height: 270px;
  display: flex;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

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

.category-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.88));
}

.category-card div {
  position: relative;
  z-index: 2;
  padding: 22px;
}

.category-card h2 {
  margin: 0 0 10px;
}

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

.category-card span {
  color: var(--amber-100);
  font-weight: 800;
}

.category-card:hover img {
  transform: scale(1.06);
}

.detail-hero {
  color: var(--white);
  background: radial-gradient(circle at 12% 12%, rgba(245, 158, 11, 0.45), transparent 26%), linear-gradient(135deg, #451a03, #111827 72%);
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.detail-copy h1 {
  margin: 18px 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.detail-one-line {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
  line-height: 1.75;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.detail-meta div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.detail-meta dt {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.detail-meta dd {
  margin: 5px 0 0;
  font-weight: 800;
}

.player-section {
  padding: 56px 0 24px;
}

.player-card {
  padding: 16px;
  background: var(--white);
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

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

.player-cover.is-hidden {
  display: none;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  filter: saturate(1.1);
}

.play-button {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
  font-size: 34px;
  line-height: 1;
}

.prose-section {
  max-width: 920px;
}

.prose-section h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.prose-section p {
  margin: 0 0 30px;
  color: var(--gray-700);
  font-size: 18px;
  line-height: 1.9;
}

.site-footer {
  margin-top: 44px;
  color: var(--amber-50);
  background: linear-gradient(135deg, var(--amber-900), var(--orange-800));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 38px;
  padding: 52px 0;
}

.footer-logo {
  color: var(--white);
  font-size: 22px;
}

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

.site-footer h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.site-footer a {
  color: var(--amber-100);
}

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

.footer-bottom {
  padding: 18px;
  text-align: center;
  color: var(--amber-100);
  border-top: 1px solid rgba(254, 243, 199, 0.18);
}

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

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

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 22px;
    align-content: center;
  }

  .hero-art {
    width: min(260px, 72vw);
    justify-self: start;
    order: -1;
  }

  .search-panel,
  .filter-bar,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

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

  .logo {
    font-size: 21px;
  }

  .hero-carousel,
  .hero-container {
    min-height: 700px;
  }

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

  .hero-controls {
    bottom: 22px;
  }

  .search-panel {
    margin-top: -30px;
  }

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

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

  .movie-card.compact {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .movie-card.compact .poster-link::before {
    padding-top: 148%;
  }

  .detail-layout {
    padding: 38px 0;
  }

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

  .play-button {
    width: 68px;
    height: 68px;
    font-size: 27px;
  }
}
