:root {
  --bg: #fffaf3;
  --surface: #ffffff;
  --surface-soft: #fff7ed;
  --text: #211713;
  --muted: #7c6f64;
  --line: rgba(120, 64, 20, 0.14);
  --brand: #d97706;
  --brand-dark: #92400e;
  --rose: #fb7185;
  --amber: #fbbf24;
  --shadow: 0 24px 70px rgba(146, 64, 14, 0.16);
  --radius: 28px;
  --radius-sm: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.22), transparent 34rem),
    radial-gradient(circle at top right, rgba(251, 113, 133, 0.18), transparent 34rem),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 250, 243, 0.82);
  backdrop-filter: blur(22px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--rose));
  box-shadow: 0 14px 34px rgba(217, 119, 6, 0.28);
}

.brand-text {
  font-size: 1.18rem;
}

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

.nav-link {
  position: relative;
  padding: 26px 0;
  color: #4b4037;
  font-weight: 650;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 20px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--brand);
  transition: width 0.28s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(146, 64, 14, 0.12);
}

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

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.1s ease;
}

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.15);
}

.hero-shade,
.detail-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(29, 18, 12, 0.94), rgba(29, 18, 12, 0.58), rgba(29, 18, 12, 0.86)),
    radial-gradient(circle at 25% 25%, rgba(251, 191, 36, 0.24), transparent 28rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 58px;
  min-height: 720px;
  padding: 108px 0 92px;
}

.hero-copy {
  max-width: 760px;
  padding: 42px;
  color: #fffaf3;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.silk-shine {
  position: relative;
  overflow: hidden;
}

.silk-shine::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  animation: silk-shine 4.8s infinite;
}

.silk-overlay {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.38), rgba(251, 113, 133, 0.28), rgba(251, 191, 36, 0.24));
  background-size: 320% 320%;
  animation: silk-flow 9s ease infinite;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-dark);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy .eyebrow,
.detail-info .eyebrow {
  color: #fcd34d;
}

.hero-copy h1,
.detail-info h1,
.page-hero h1 {
  margin: 14px 0 18px;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-copy p,
.detail-info p,
.page-hero p {
  max-width: 760px;
  color: rgba(255, 250, 243, 0.86);
  font-size: 1.08rem;
  line-height: 1.86;
}

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

.hero-tags {
  margin: 24px 0 30px;
}

.hero-tags span,
.movie-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 11px;
  border: 1px solid rgba(251, 191, 36, 0.34);
  border-radius: 999px;
  color: #7c2d12;
  background: rgba(255, 247, 237, 0.86);
  font-size: 0.76rem;
  font-weight: 700;
}

.hero-actions,
.detail-actions,
.center-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--rose));
  box-shadow: 0 18px 34px rgba(217, 119, 6, 0.24);
}

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

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

.hero-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 34px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
  transform: rotate(2deg);
}

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

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

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

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

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

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

.section-title span {
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.section-title p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.75;
}

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.category-card span,
.category-card strong {
  position: relative;
  z-index: 2;
  display: block;
  padding: 0 20px;
}

.category-card span {
  padding-top: 128px;
  color: #431407;
  font-size: 1.28rem;
  font-weight: 900;
}

.category-card strong {
  margin-top: 8px;
  color: #6b3b17;
  font-size: 0.86rem;
  line-height: 1.5;
}

.category-card:hover img,
.movie-card:hover img,
.hero-poster:hover img {
  transform: scale(1.06);
}

.filter-panel {
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 44px rgba(146, 64, 14, 0.08);
}

.filter-fields {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.8fr 0.9fr;
  gap: 14px;
}

.filter-fields label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.filter-fields input,
.filter-fields select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--text);
  border: 1px solid rgba(146, 64, 14, 0.16);
  border-radius: 16px;
  outline: none;
  background: #ffffff;
}

.filter-fields input:focus,
.filter-fields select:focus {
  border-color: rgba(217, 119, 6, 0.55);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.16);
}

.filter-count {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 50px rgba(146, 64, 14, 0.09);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #3b2416;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.36s ease;
}

.poster-year,
.poster-play {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
}

.poster-year {
  top: 12px;
  left: 12px;
  min-height: 28px;
  padding: 0 11px;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(12px);
}

.poster-play {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--brand), var(--rose));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

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

.movie-card h3 {
  margin: 12px 0 10px;
  font-size: 1.06rem;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--brand-dark);
}

.movie-card p {
  min-height: 66px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.62;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  color: #8a5b2c;
  font-size: 0.82rem;
  font-weight: 700;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 48px 70px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 34px rgba(146, 64, 14, 0.08);
}

.rank-card img,
.ranking-row img {
  width: 64px;
  height: 84px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-no {
  color: var(--brand);
  font-size: 1.1rem;
  font-weight: 900;
}

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

.rank-card em,
.heat-score {
  color: #b45309;
  font-style: normal;
  font-weight: 900;
}

.center-action {
  justify-content: center;
  margin-top: 30px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fffaf3;
  background: linear-gradient(135deg, #2a170e, #7c2d12 58%, #9f1239);
}

.page-hero {
  padding: 104px 0;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero p {
  color: rgba(255, 250, 243, 0.88);
}

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

.overview-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.overview-poster {
  overflow: hidden;
  border-radius: 22px;
}

.overview-poster img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.overview-card h2 {
  margin: 10px 0;
  font-size: 1.6rem;
}

.overview-card p {
  color: var(--muted);
  line-height: 1.7;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.mini-links a {
  padding: 7px 10px;
  border-radius: 999px;
  color: #7c2d12;
  background: #fff7ed;
  font-size: 0.82rem;
  font-weight: 700;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 60px 76px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
}

.ranking-index {
  color: var(--brand);
  font-size: 1.35rem;
  font-weight: 900;
}

.ranking-main strong,
.ranking-main em {
  display: block;
}

.ranking-main strong {
  font-size: 1.05rem;
}

.ranking-main em {
  margin-top: 5px;
  color: var(--muted);
  font-style: normal;
  font-size: 0.9rem;
}

.detail-hero {
  min-height: 640px;
}

.detail-head {
  position: relative;
  z-index: 2;
  padding: 46px 0 74px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 34px;
  color: rgba(255, 250, 243, 0.72);
  font-size: 0.92rem;
}

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

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

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 34px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.player-section {
  margin-top: -86px;
  position: relative;
  z-index: 4;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 34px;
  background: #140c08;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.25);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--rose));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
}

.video-play span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.video-play.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.detail-main {
  display: grid;
  gap: 22px;
}

.article-card,
.detail-meta-grid div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 50px rgba(146, 64, 14, 0.08);
}

.article-card {
  padding: 28px;
}

.article-card h2 {
  margin: 0 0 14px;
  font-size: 1.55rem;
}

.article-card p {
  margin: 0;
  color: #50443b;
  font-size: 1.02rem;
  line-height: 1.92;
}

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

.detail-meta-grid div {
  padding: 20px;
}

.detail-meta-grid span,
.detail-meta-grid strong {
  display: block;
}

.detail-meta-grid span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.detail-meta-grid strong {
  margin-top: 8px;
  line-height: 1.5;
}

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

.related-grid .movie-card p,
.compact-card p {
  min-height: auto;
}

.pager-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.pager-links a {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.site-footer {
  margin-top: 50px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 247, 237, 0.72);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

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

.site-footer p {
  margin: 0;
  color: var(--muted);
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #7c2d12;
  background: #ffffff;
  font-weight: 700;
}

.catalog-item[hidden] {
  display: none;
}

@keyframes silk-shine {
  0% {
    left: -120%;
  }
  52%,
  100% {
    left: 135%;
  }
}

@keyframes silk-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (max-width: 1080px) {
  .hero-content,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-poster {
    max-width: 360px;
  }

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

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

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

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    padding: 14px 10px;
  }

  .nav-link::after {
    bottom: 8px;
  }

  .hero-carousel,
  .hero-content {
    min-height: 680px;
  }

  .hero-copy {
    padding: 28px;
  }

  .section-title,
  .footer-grid {
    display: block;
  }

  .filter-fields,
  .detail-meta-grid,
  .pager-links {
    grid-template-columns: 1fr;
  }

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

  .overview-card,
  .ranking-row {
    grid-template-columns: 1fr;
  }

  .overview-poster img {
    height: 260px;
  }

  .footer-links {
    justify-content: flex-start;
    margin-top: 20px;
  }
}

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

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

  .hero-content {
    padding: 86px 0 78px;
  }

  .hero-copy {
    padding: 22px;
    border-radius: 26px;
  }

  .hero-copy h1,
  .detail-info h1,
  .page-hero h1 {
    font-size: 2.4rem;
  }

  .hero-poster,
  .detail-poster {
    max-width: 260px;
  }

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

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

  .rank-card {
    grid-template-columns: 42px 60px minmax(0, 1fr);
  }

  .rank-card em {
    grid-column: 3;
  }

  .video-play {
    min-height: 50px;
    padding: 0 18px;
  }
}
