:root {
  --bg: #fff7ed;
  --panel: #ffffff;
  --text: #1f1306;
  --muted: #766654;
  --line: rgba(146, 64, 14, 0.16);
  --amber: #d97706;
  --amber-dark: #92400e;
  --orange: #ea580c;
  --gold: #f59e0b;
  --deep: #451a03;
  --shadow: 0 24px 70px rgba(69, 26, 3, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.65;
}

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: 80;
  background: rgba(255, 251, 235, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 74px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  -webkit-background-clip: text;
  color: transparent;
}

.logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.32);
  color: #fff;
  font-size: 14px;
}

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

.nav-link {
  position: relative;
  color: #5f4a35;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  content: "";
  opacity: 0;
  transform: scaleX(0.3);
  transition: 0.2s ease;
}

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

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

.site-search {
  display: flex;
  align-items: center;
  min-width: 250px;
  border: 2px solid rgba(217, 119, 6, 0.2);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}

.site-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 10px 14px 10px 18px;
  color: var(--text);
}

.site-search button,
.inline-filter button {
  border: 0;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: #fff;
  font-weight: 800;
  padding: 10px 18px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 13px;
  background: rgba(217, 119, 6, 0.12);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--amber-dark);
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
  background: #fffaf0;
}

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

.mobile-nav a {
  border-radius: 14px;
  padding: 12px 14px;
  color: #5f4a35;
  font-weight: 800;
}

.mobile-nav a:hover {
  background: rgba(217, 119, 6, 0.12);
}

.mobile-search {
  width: 100%;
  margin-top: 12px;
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #1c0f04;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 68% 28%, rgba(245, 158, 11, 0.34), transparent 30%), linear-gradient(0deg, rgba(24, 12, 4, 0.56), transparent 40%);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 70px;
}

.eyebrow,
.section-kicker {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.hero h2 {
  width: min(760px, 100%);
  margin: 14px 0;
  color: #fff;
  font-size: clamp(46px, 8vw, 92px);
  font-weight: 1000;
  line-height: 0.96;
  letter-spacing: -0.08em;
}

.hero p {
  width: min(650px, 100%);
  margin: 0 0 24px;
  color: rgba(255, 247, 237, 0.88);
  font-size: 20px;
}

.hero-tags,
.tag-row,
.movie-meta,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-tags span,
.tag-row span {
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 999px;
  background: rgba(255, 251, 235, 0.12);
  color: #ffedd5;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

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

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

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 16px 34px rgba(234, 88, 12, 0.34);
  color: #fff;
}

.btn-ghost {
  border: 1px solid rgba(255, 237, 213, 0.34);
  background: rgba(255, 247, 237, 0.12);
  color: #fff7ed;
  backdrop-filter: blur(14px);
}

.btn-plain {
  color: #fed7aa;
}

.hero-panel {
  position: absolute;
  right: 0;
  bottom: 42px;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hero-search {
  width: min(520px, 100%);
  border-color: rgba(255, 237, 213, 0.32);
  background: rgba(255, 247, 237, 0.92);
  box-shadow: var(--shadow);
}

.hero-dots {
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 44px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 237, 213, 0.42);
  cursor: pointer;
}

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--gold), var(--orange));
}

.section-block {
  padding: 74px 0;
}

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

.section-heading h2,
.inner-hero h1,
.detail-heading h1 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 1000;
  letter-spacing: -0.06em;
  line-height: 1.08;
}

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

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 14px 40px rgba(69, 26, 3, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

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

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

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

.poster-link::after {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), transparent);
  content: "";
}

.score-pill,
.rank-badge {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
}

.score-pill {
  right: 12px;
  bottom: 12px;
  background: rgba(245, 158, 11, 0.94);
  padding: 5px 10px;
  font-size: 13px;
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 10px 20px rgba(234, 88, 12, 0.32);
}

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

.movie-card h2,
.movie-list-card h2,
.category-overview-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
}

.movie-card h2 a:hover,
.movie-list-card h2 a:hover,
.category-overview-card h2 a:hover {
  color: var(--amber-dark);
}

.movie-card p,
.movie-list-card p,
.category-overview-card p {
  display: -webkit-box;
  min-height: 3.3em;
  margin: 8px 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  color: #96785c;
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card .tag-row span {
  border-color: rgba(217, 119, 6, 0.16);
  background: #fff7ed;
  color: var(--amber-dark);
  padding: 5px 9px;
  font-size: 12px;
}

.is-compact .movie-card-body {
  padding: 12px;
}

.is-compact h2 {
  font-size: 15px;
}

.is-compact p,
.is-compact .tag-row {
  display: none;
}

.section-band {
  background: linear-gradient(135deg, #78350f, #c2410c 55%, #431407);
}

.section-heading.light h2,
.section-heading.light .section-kicker,
.section-heading.light a {
  color: #fff7ed;
}

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

.category-tile {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 237, 213, 0.18);
  border-radius: 24px;
  padding: 22px;
  color: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  transition: 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-5px) scale(1.02);
}

.category-tile span {
  font-size: 22px;
  font-weight: 1000;
}

.category-tile strong {
  color: rgba(255, 247, 237, 0.82);
  font-size: 14px;
}

.sunset { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.ember { background: linear-gradient(135deg, #fb923c, #b45309); }
.gold { background: linear-gradient(135deg, #fbbf24, #d97706); }
.rose { background: linear-gradient(135deg, #fb7185, #ea580c); }
.bronze { background: linear-gradient(135deg, #a16207, #7c2d12); }

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

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

.movie-list-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 12px 32px rgba(69, 26, 3, 0.06);
}

.list-poster {
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #78350f, #f59e0b);
}

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

.list-content {
  min-width: 0;
  align-self: center;
}

.list-heading {
  display: flex;
  gap: 12px;
  align-items: center;
}

.list-rank {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: #fff7ed;
  color: var(--amber-dark);
  font-weight: 1000;
}

.inner-hero {
  padding: 88px 0 64px;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.24), transparent 34%), linear-gradient(135deg, #fff7ed, #ffedd5);
}

.inner-hero p {
  width: min(760px, 100%);
  color: var(--muted);
  font-size: 18px;
}

.inline-filter {
  display: flex;
  width: min(680px, 100%);
  margin-top: 24px;
  overflow: hidden;
  border: 2px solid rgba(217, 119, 6, 0.18);
  border-radius: 999px;
  background: #fff;
}

.inline-filter input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 13px 18px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.filter-chips button {
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 999px;
  background: #fff;
  color: var(--amber-dark);
  cursor: pointer;
  font-weight: 800;
  padding: 8px 13px;
}

.filter-chips button:hover,
.filter-chips button.is-active {
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: #fff;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 14px 36px rgba(69, 26, 3, 0.08);
}

.category-cover {
  display: flex;
  align-items: flex-end;
  min-height: 220px;
  border-radius: 22px;
  background-position: center;
  background-size: cover;
  padding: 20px;
  color: #fff;
  font-size: 24px;
  font-weight: 1000;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-samples a {
  border-radius: 999px;
  background: #fff7ed;
  color: var(--amber-dark);
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 800;
}

.movie-detail-hero {
  position: relative;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  padding: 76px 0 68px;
}

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

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 237, 213, 0.24);
  border-radius: 28px;
  background: linear-gradient(135deg, #78350f, #f59e0b);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: rgba(255, 237, 213, 0.78);
  font-weight: 800;
}

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

.detail-heading h1 {
  color: #fff;
  font-size: clamp(42px, 6vw, 76px);
}

.detail-heading p {
  width: min(740px, 100%);
  color: rgba(255, 247, 237, 0.88);
  font-size: 20px;
}

.large-tags span {
  background: rgba(255, 247, 237, 0.12);
  color: #ffedd5;
}

.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.player-start {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.18));
  color: #fff;
  cursor: pointer;
}

.player-start.is-hidden {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.player-start span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 18px 36px rgba(234, 88, 12, 0.45);
  font-size: 32px;
}

.player-start strong {
  margin-top: 110px;
  font-size: 20px;
}

.play-aside,
.prose-card,
.side-list {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(69, 26, 3, 0.07);
}

.play-aside {
  padding: 24px;
}

.play-aside h2,
.prose-card h2,
.side-list h2 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 24px;
  font-weight: 1000;
  letter-spacing: -0.04em;
}

.play-aside dl {
  margin: 0;
}

.play-aside div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.play-aside div:last-child {
  border-bottom: 0;
}

.play-aside dt {
  color: #a16207;
  font-weight: 900;
}

.play-aside dd {
  margin: 0;
  color: var(--muted);
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 26px;
  padding-bottom: 18px;
}

.prose-card,
.side-list {
  padding: 28px;
}

.prose-card p {
  margin: 0 0 24px;
  color: #5f4a35;
  font-size: 17px;
}

.side-list {
  display: grid;
  align-content: start;
  gap: 14px;
}

.side-list .movie-list-card {
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  padding: 8px;
  box-shadow: none;
}

.side-list .movie-list-card p,
.side-list .movie-meta {
  display: none;
}

.site-footer {
  margin-top: 40px;
  background: linear-gradient(180deg, #78350f, #451a03);
  color: #ffedd5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 54px 0 38px;
}

.footer-grid p {
  color: rgba(255, 237, 213, 0.72);
}

.footer-grid h2 {
  margin: 0 0 12px;
  color: #fcd34d;
  font-size: 17px;
}

.footer-grid a:not(.footer-logo) {
  display: block;
  color: rgba(255, 237, 213, 0.82);
  margin: 7px 0;
  font-size: 14px;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 237, 213, 0.14);
  color: rgba(255, 237, 213, 0.64);
  padding: 18px;
  text-align: center;
}

[data-card].is-hidden {
  display: none;
}

@media (max-width: 1100px) {
  .desktop-nav,
  .nav-shell > .site-search {
    display: none;
  }

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

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

  .rank-grid,
  .category-overview-grid,
  .player-layout,
  .detail-content {
    grid-template-columns: 1fr;
  }
}

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

  .site-logo,
  .footer-logo {
    font-size: 20px;
  }

  .hero {
    min-height: 650px;
  }

  .hero p,
  .detail-heading p,
  .inner-hero p {
    font-size: 16px;
  }

  .hero-panel {
    display: grid;
  }

  .hero-dots {
    justify-content: center;
  }

  .section-heading {
    display: grid;
  }

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

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

  .rank-grid,
  .ranking-list {
    gap: 12px;
  }

  .movie-list-card,
  .category-overview-card,
  .detail-hero-grid {
    grid-template-columns: 1fr;
  }

  .list-poster {
    max-height: 220px;
  }

  .category-cover {
    min-height: 180px;
  }

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

  .player-shell {
    border-radius: 18px;
  }

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

@media (max-width: 460px) {
  .movie-grid,
  .archive-grid,
  .compact-grid,
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .movie-card p,
  .movie-meta,
  .tag-row {
    display: none;
  }

  .inner-hero,
  .movie-detail-hero {
    padding: 54px 0 44px;
  }
}
