:root {
  color-scheme: light;
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --card: #ffffff;
  --text: #2b1708;
  --muted: #8a5a28;
  --accent: #d97706;
  --accent-deep: #92400e;
  --line: rgba(146, 64, 14, 0.16);
  --shadow: 0 24px 70px rgba(146, 64, 14, 0.16);
  --radius: 24px;
}

* {
  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;
  background:
    radial-gradient(circle at 12% 0%, rgba(251, 191, 36, 0.30), transparent 30rem),
    radial-gradient(circle at 88% 10%, rgba(249, 115, 22, 0.18), transparent 34rem),
    var(--bg);
  color: var(--text);
}

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

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

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

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--accent-deep);
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 12px 32px rgba(217, 119, 6, 0.32);
}

.brand-text {
  font-size: 1.18rem;
  letter-spacing: 0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-menu a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #78350f;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-menu a:hover {
  background: rgba(245, 158, 11, 0.14);
  color: var(--accent-deep);
  transform: translateY(-1px);
}

.nav-search {
  width: min(330px, 28vw);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.nav-search input,
.filter-bar input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 8px 10px;
}

.nav-search button,
.filter-bar button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: white;
  padding: 8px 15px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: rgba(245, 158, 11, 0.14);
  border-radius: 12px;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--accent-deep);
  border-radius: 99px;
}

main,
.page-main,
.detail-main {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(330px, 0.75fr);
  gap: 24px;
  padding: 34px 0 24px;
}

.hero-slider {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: #1c1208;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  padding: clamp(28px, 5vw, 64px);
  background-image:
    linear-gradient(90deg, rgba(28, 18, 8, 0.88), rgba(28, 18, 8, 0.36), rgba(28, 18, 8, 0.68)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  transition: opacity 0.65s ease, transform 0.65s ease;
  transform: scale(1.02);
}

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

.hero-photo {
  position: absolute;
  right: 42px;
  bottom: 40px;
  width: min(42%, 360px);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-photo.image-missing,
.card-poster img.image-missing,
.detail-poster img.image-missing,
.rank-cover img.image-missing {
  display: none;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 24%, rgba(251, 191, 36, 0.24), transparent 28rem),
    linear-gradient(0deg, rgba(28, 18, 8, 0.74), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(640px, 100%);
  color: white;
}

.hero-kicker,
.page-hero span,
.detail-info .crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.18);
  color: #fde68a;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.hero-content h1 {
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 0.95;
  margin: 0 0 18px;
  letter-spacing: -0.06em;
}

.hero-content p {
  width: min(560px, 88%);
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  color: #92400e;
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-content .hero-tags span {
  background: rgba(255, 255, 255, 0.16);
  color: #fef3c7;
}

.hero-actions,
.detail-actions,
.hero-panel-links,
.detail-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.btn-primary,
.btn-ghost,
.hero-panel-links a,
.category-overview-head a,
.rank-head a,
.detail-pager a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 18px 38px rgba(234, 88, 12, 0.35);
}

.btn-primary:hover,
.hero-panel-links a:hover,
.category-overview-head a:hover,
.rank-head a:hover,
.detail-pager a:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(146, 64, 14, 0.24);
}

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

.btn-ghost.dark {
  color: var(--accent-deep);
  background: rgba(245, 158, 11, 0.13);
  border-color: var(--line);
}

.hero-dots {
  position: absolute;
  left: clamp(28px, 5vw, 64px);
  bottom: 26px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

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

.hero-dot.active {
  width: 46px;
  background: #fbbf24;
}

.hero-panel,
.rank-box,
.detail-content aside,
.category-overview {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(146, 64, 14, 0.10);
}

.hero-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-panel h2,
.rank-head h2,
.section-title h2,
.page-hero h1,
.detail-info h1,
.player-section h2,
.detail-content h2 {
  margin: 0;
  color: var(--accent-deep);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-panel h2 {
  font-size: 1.8rem;
}

.hero-panel p,
.section-title p,
.page-hero p,
.category-overview p,
.detail-one-line,
.detail-content p,
.footer-main p {
  color: var(--muted);
  line-height: 1.8;
}

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

.content-section {
  padding: 42px 0;
}

.section-title {
  margin-bottom: 22px;
}

.section-title span {
  display: inline-block;
  width: 52px;
  height: 6px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.section-title h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

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

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

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

.movie-card,
.rank-item {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(146, 64, 14, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover,
.rank-item:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 119, 6, 0.36);
  box-shadow: 0 24px 60px rgba(146, 64, 14, 0.16);
}

.card-poster {
  display: block;
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 25%, rgba(251, 191, 36, 0.42), transparent 9rem),
    linear-gradient(135deg, #7c2d12, #f59e0b);
}

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

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

.card-body {
  display: block;
  padding: 16px;
}

.card-body strong,
.rank-info strong {
  display: block;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.35;
}

.card-body em,
.rank-info em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
}

.card-desc {
  display: block;
  min-height: 3.3em;
  margin: 10px 0 12px;
  color: #7c4a16;
  line-height: 1.65;
  font-size: 0.92rem;
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  min-height: 188px;
}

.movie-card-wide .card-poster {
  height: 100%;
  aspect-ratio: auto;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.55fr);
  gap: 26px;
  align-items: start;
}

.rank-box {
  padding: 22px;
  position: sticky;
  top: 94px;
}

.rank-head,
.category-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.rank-head a,
.category-overview-head a,
.hero-panel-links a,
.detail-pager a {
  color: var(--accent-deep);
  background: rgba(245, 158, 11, 0.13);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
}

.rank-cover {
  width: 58px;
  height: 76px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #f59e0b, #7c2d12);
}

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

.rank-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  font-weight: 900;
}

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

.category-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 22px;
  border-radius: var(--radius);
  overflow: hidden;
  color: white;
  background-image:
    linear-gradient(0deg, rgba(28, 18, 8, 0.86), rgba(28, 18, 8, 0.18)),
    var(--cat-image);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(146, 64, 14, 0.20);
}

.category-card span {
  font-size: 1.35rem;
  font-weight: 950;
}

.category-card strong {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  line-height: 1.7;
}

.page-main {
  padding: 34px 0 60px;
}

.page-hero,
.detail-hero {
  margin: 0 0 38px;
  border-radius: 34px;
  padding: clamp(28px, 5vw, 64px);
  background:
    radial-gradient(circle at 80% 10%, rgba(251, 191, 36, 0.24), transparent 26rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 237, 0.72));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.page-hero span,
.detail-info .crumb {
  color: var(--accent-deep);
  background: rgba(245, 158, 11, 0.14);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 1;
  margin-bottom: 16px;
}

.page-hero p {
  width: min(760px, 100%);
  font-size: 1.05rem;
}

.filter-bar {
  width: min(720px, 100%);
  margin-top: 24px;
  padding: 8px;
  display: flex;
  gap: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.category-overview {
  padding: 24px;
  margin-bottom: 24px;
}

.category-overview h2 {
  margin: 0 0 8px;
  color: var(--accent-deep);
  font-size: 1.8rem;
}

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

.detail-main {
  padding: 34px 0 60px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
}

.detail-poster {
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #7c2d12, #f59e0b);
  box-shadow: 0 22px 66px rgba(146, 64, 14, 0.22);
}

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

.detail-info h1 {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.98;
  margin-bottom: 18px;
}

.detail-one-line {
  font-size: 1.12rem;
  margin: 0 0 18px;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent-deep);
  border: 1px solid var(--line);
  font-weight: 800;
}

.player-section {
  margin-bottom: 38px;
}

.player-section h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  margin-bottom: 16px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
}

.player-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.player-shade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, rgba(245, 158, 11, 0.22), rgba(17, 24, 39, 0.78));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 0;
  border-radius: 999px;
  padding: 16px 24px;
  color: white;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 24px 60px rgba(234, 88, 12, 0.42);
  font-size: 1.05rem;
  font-weight: 950;
  cursor: pointer;
}

.play-button span {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid white;
}

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

.detail-content article {
  padding: clamp(24px, 4vw, 42px);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(146, 64, 14, 0.10);
}

.detail-content article h2 {
  font-size: 1.7rem;
  margin: 10px 0 12px;
}

.detail-content article p {
  margin: 0 0 24px;
  font-size: 1.02rem;
}

.detail-content aside {
  padding: 24px;
  position: sticky;
  top: 94px;
}

.detail-content aside h2 {
  margin-bottom: 16px;
}

dl {
  display: grid;
  gap: 12px;
}

dt {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
  line-height: 1.5;
}

.related-section {
  padding-top: 50px;
}

.site-footer {
  margin-top: 56px;
  background: rgba(120, 53, 15, 0.92);
  color: #fffbeb;
}

.footer-wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 36px;
}

.footer-brand {
  color: #fffbeb;
  margin-bottom: 14px;
}

.footer-main p {
  color: rgba(255, 251, 235, 0.75);
  max-width: 620px;
}

.footer-links h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
}

.copyright {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 26px;
  color: rgba(255, 251, 235, 0.68);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}

@media (max-width: 1080px) {
  .hero-shell,
  .split-section,
  .detail-content,
  .footer-wrap {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .rank-box,
  .detail-content aside {
    position: static;
  }

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

  .nav-search {
    display: none;
  }
}

@media (max-width: 820px) {
  .nav-wrap {
    min-height: 66px;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-menu {
    position: fixed;
    top: 66px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 251, 235, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

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

  .hero-shell {
    padding-top: 20px;
  }

  .hero-slider {
    min-height: 620px;
    border-radius: 26px;
  }

  .hero-slide {
    padding: 28px;
    align-items: flex-end;
  }

  .hero-photo {
    width: 46%;
    right: 22px;
    bottom: 190px;
    opacity: 0.88;
  }

  .hero-content p {
    width: 100%;
  }

  .movie-grid,
  .wide-grid,
  .category-grid,
  .rank-page-list,
  .small-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-poster {
    width: min(320px, 100%);
  }
}

@media (max-width: 560px) {
  main,
  .page-main,
  .detail-main,
  .nav-wrap,
  .footer-wrap,
  .copyright {
    width: min(100% - 22px, 1200px);
  }

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

  .hero-photo {
    display: none;
  }

  .hero-content h1,
  .detail-info h1,
  .page-hero h1 {
    letter-spacing: -0.04em;
  }

  .movie-grid,
  .wide-grid,
  .category-grid,
  .rank-page-list,
  .small-grid {
    grid-template-columns: 1fr;
  }

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

  .filter-bar {
    border-radius: 22px;
    align-items: stretch;
    flex-direction: column;
  }

  .filter-bar button {
    width: 100%;
  }
}
