:root {
  --page: #fffaf3;
  --page-soft: #fff3df;
  --ink: #2b1607;
  --muted: #7a5840;
  --line: rgba(180, 83, 9, 0.18);
  --brand: #d97706;
  --brand-dark: #92400e;
  --rose: #f43f5e;
  --card: rgba(255, 255, 255, 0.88);
  --shadow: 0 24px 60px rgba(120, 53, 15, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.20), transparent 28rem),
    linear-gradient(180deg, #fffaf3 0%, #fff4e2 45%, #fffaf3 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.94), rgba(255, 237, 213, 0.94));
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(146, 64, 14, 0.10);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  color: var(--brand-dark);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, #f59e0b, #f43f5e);
  box-shadow: 0 14px 26px rgba(217, 119, 6, 0.30);
}

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

.main-nav a {
  padding: 10px 15px;
  border-radius: 999px;
  color: #6b3f1d;
  font-weight: 700;
  transition: 0.22s ease;
}

.main-nav a:hover {
  color: white;
  background: linear-gradient(135deg, #d97706, #f43f5e);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff7ed;
  color: var(--brand-dark);
  font-size: 1.2rem;
  box-shadow: inset 0 0 0 1px var(--line);
}

main {
  overflow: hidden;
}

.hero-carousel,
.page-hero,
.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 0;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-carousel {
  position: relative;
  min-height: clamp(560px, 72vh, 760px);
  background: #78350f;
}

.hero-stage,
.hero-slide {
  min-height: inherit;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.62fr);
  gap: 42px;
  align-items: center;
  padding: clamp(30px, 6vw, 78px);
  background-position: center;
  background-size: cover;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-copy,
.detail-intro,
.page-hero > div {
  color: white;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.28);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.section-kicker {
  color: var(--brand-dark);
  background: #ffedd5;
}

.hero-copy h1,
.page-hero h1,
.detail-intro h1 {
  margin: 20px 0 18px;
  font-size: clamp(2.9rem, 8vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.detail-intro h1 {
  font-size: clamp(2.2rem, 6vw, 5rem);
}

.hero-copy p,
.page-hero p,
.detail-intro p {
  max-width: 720px;
  margin: 0 0 24px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
}

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

.hero-tags span,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.hero-tags span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.20);
}

.tag-row span {
  color: #92400e;
  background: #ffedd5;
}

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

.primary-btn,
.ghost-btn,
.text-link,
.sort-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.24s ease;
}

.primary-btn {
  padding: 0 24px;
  color: #92400e;
  background: white;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.20);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-link:hover,
.sort-year:hover {
  transform: translateY(-2px);
}

.ghost-btn {
  padding: 0 24px;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.72);
}

.hero-poster,
.detail-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.32);
  transform: rotate(2deg);
}

.hero-poster img,
.detail-poster img,
.poster img,
.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #fed7aa, #fb7185);
}

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

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

.hero-dot.active {
  width: 34px;
  background: white;
}

.section-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto;
  padding: clamp(22px, 4vw, 36px);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  border: 1px solid rgba(251, 191, 36, 0.22);
}

.soft-panel {
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.88), rgba(255, 237, 213, 0.82));
}

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

.section-head h1,
.section-head h2 {
  margin: 12px 0 8px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.section-head p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.text-link {
  flex: 0 0 auto;
  padding: 0 18px;
  color: white;
  background: linear-gradient(135deg, #d97706, #f43f5e);
}

.tool-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding: 14px;
  border-radius: 22px;
  background: #fff7ed;
  border: 1px solid var(--line);
}

.search-box {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 16px;
  background: white;
  box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.18);
}

.search-box span {
  color: var(--brand-dark);
  font-weight: 900;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: none;
  min-height: 34px;
  font: inherit;
  color: var(--ink);
  background: transparent;
}

.sort-year {
  border: 0;
  padding: 0 18px;
  color: #92400e;
  background: #fed7aa;
  cursor: pointer;
}

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

.movie-card {
  min-width: 0;
}

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

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  background: linear-gradient(135deg, #fed7aa, #fb7185);
  box-shadow: 0 18px 42px rgba(146, 64, 14, 0.16);
}

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

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

.year-badge,
.rank-mark {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.20);
}

.year-badge {
  left: 12px;
  bottom: 12px;
  min-width: 54px;
  height: 30px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
}

.rank-mark {
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #f59e0b, #f43f5e);
}

.movie-card-body {
  padding: 14px 4px 0;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: #9a6844;
  font-size: 0.82rem;
  font-weight: 800;
}

.movie-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 237, 213, 0.82);
}

.movie-card h2,
.rank-info h2 {
  margin: 10px 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.movie-card h2 a:hover,
.rank-info h2 a:hover,
.category-list-card h2 a:hover {
  color: var(--brand);
}

.movie-card p,
.rank-info p,
.category-card p,
.category-list-card p,
.article-text p,
.info-panel dd {
  color: var(--muted);
  line-height: 1.75;
}

.movie-card p {
  min-height: 3.5em;
  margin: 0 0 12px;
  font-size: 0.94rem;
}

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

.category-card,
.category-list-card {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 36px rgba(146, 64, 14, 0.10);
}

.category-card {
  min-height: 180px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.24s ease;
}

.category-card:hover,
.category-list-card:hover,
.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(146, 64, 14, 0.16);
}

.category-card span {
  width: max-content;
  padding: 7px 10px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #d97706, #f43f5e);
  font-weight: 900;
}

.category-card strong {
  margin-top: 20px;
  font-size: 1.2rem;
}

.category-card p {
  margin: 8px 0 0;
  font-size: 0.92rem;
}

.page-hero {
  min-height: 350px;
  display: flex;
  align-items: center;
  padding: clamp(30px, 6vw, 70px);
  background-size: cover;
  background-position: center;
}

.compact-hero {
  min-height: 280px;
  background: linear-gradient(135deg, #92400e, #d97706 55%, #f43f5e);
}

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

.category-list-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  overflow: hidden;
  padding: 16px;
}

.category-cover {
  min-height: 190px;
  border-radius: 20px;
  display: flex;
  align-items: end;
  padding: 18px;
  color: white;
  font-size: 1.4rem;
  font-weight: 900;
  background-size: cover;
  background-position: center;
}

.category-list-card h2 {
  margin: 8px 0;
  font-size: 1.65rem;
}

.category-list-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  padding: 0;
  list-style: none;
}

.category-list-card li a {
  color: #92400e;
  font-weight: 800;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 86px 54px minmax(0, 1fr) 120px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background: white;
  border: 1px solid var(--line);
  transition: 0.24s ease;
}

.rank-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #fed7aa, #fb7185);
}

.rank-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, #d97706, #f43f5e);
  font-weight: 900;
}

.rank-info h2 {
  font-size: 1.2rem;
}

.rank-info p {
  margin: 0 0 8px;
}

.rank-heat {
  text-align: right;
}

.rank-heat strong {
  display: block;
  color: var(--brand-dark);
  font-size: 1.5rem;
}

.rank-heat span {
  color: var(--muted);
  font-size: 0.82rem;
}

.detail-hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: clamp(24px, 6vw, 70px);
  background-size: cover;
  background-position: center;
}

.detail-poster {
  transform: rotate(-2deg);
}

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

.breadcrumb a:hover {
  color: white;
}

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

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #110704;
  box-shadow: 0 24px 70px rgba(80, 32, 5, 0.32);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #110704;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.38));
}

.play-cover span {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  color: #92400e;
  background: rgba(255, 255, 255, 0.92);
  font-size: 2.2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.26);
}

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

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

.article-text,
.info-panel {
  border-radius: 24px;
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
}

.article-text h2,
.info-panel h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

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

.info-panel dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-panel dt {
  color: var(--brand-dark);
  font-weight: 900;
}

.info-panel dd {
  margin: -8px 0 0;
}

.site-footer {
  margin-top: 40px;
  padding: 42px 0 24px;
  color: #ffedd5;
  background: linear-gradient(135deg, #78350f, #b45309 60%, #9f1239);
}

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

.footer-brand {
  color: white;
  margin-bottom: 12px;
}

.site-footer p {
  max-width: 520px;
  color: #ffedd5;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: white;
  font-size: 1rem;
}

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

.footer-links a:hover {
  color: white;
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 237, 213, 0.78);
}

@media (max-width: 980px) {
  .hero-slide,
  .detail-hero,
  .detail-content,
  .category-list-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-poster {
    max-width: 300px;
    margin: 0 auto;
  }

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

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

  .rank-row {
    grid-template-columns: 76px 44px minmax(0, 1fr);
  }

  .rank-heat {
    grid-column: 3;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 247, 237, 0.98);
    box-shadow: 0 20px 44px rgba(146, 64, 14, 0.16);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    text-align: center;
  }

  .hero-carousel,
  .page-hero,
  .detail-hero,
  .section-panel,
  .player-section {
    width: min(100% - 20px, 1180px);
    border-radius: 24px;
  }

  .hero-slide {
    padding: 28px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-intro h1 {
    letter-spacing: -0.06em;
  }

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

  .category-grid,
  .category-list-card ul {
    grid-template-columns: 1fr;
  }

  .section-head,
  .tool-panel {
    align-items: stretch;
    flex-direction: column;
  }

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

  .rank-number {
    position: absolute;
    margin: 8px;
  }

  .rank-heat {
    grid-column: 2;
  }

  .movie-card p {
    min-height: auto;
  }
}

@media (max-width: 440px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }

  .brand {
    font-size: 1.08rem;
  }

  .hero-actions {
    flex-direction: column;
  }
}
