:root {
  --bg: #fff8ed;
  --bg-soft: #fffbf3;
  --ink: #24160d;
  --muted: #755f4b;
  --line: rgba(146, 84, 22, 0.18);
  --brand: #b45309;
  --brand-2: #f97316;
  --brand-3: #f59e0b;
  --dark: #111827;
  --shadow: 0 24px 70px rgba(120, 53, 15, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 2%, rgba(251, 191, 36, 0.28), transparent 28rem),
    radial-gradient(circle at 86% 4%, rgba(249, 115, 22, 0.18), transparent 26rem),
    linear-gradient(180deg, #fff7e8 0%, #fffdf8 45%, #fff8ed 100%);
}

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

img {
  display: block;
  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), rgba(255, 251, 235, 0.94));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(120, 53, 15, 0.08);
}

.top-nav {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 30px rgba(234, 88, 12, 0.28);
}

.brand-text strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  background: linear-gradient(90deg, #92400e, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.menu-button {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  position: relative;
  padding: 10px 4px;
  color: #53351d;
  font-weight: 700;
}

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

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

.nav-category-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
}

.nav-category-strip a {
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: #7c3f10;
  background: rgba(255, 247, 237, 0.76);
}

.page-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 22px 60px;
}

.hero-shell {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(43, 25, 12, 0.88), rgba(154, 52, 18, 0.72)),
    radial-gradient(circle at 18% 18%, rgba(251, 191, 36, 0.48), transparent 20rem);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 18% 22%, rgba(251, 191, 36, 0.32), transparent 28rem),
    radial-gradient(circle at 82% 28%, rgba(249, 115, 22, 0.38), transparent 26rem),
    radial-gradient(circle at 52% 100%, rgba(255, 255, 255, 0.18), transparent 24rem);
  z-index: -1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.94fr);
  align-items: center;
  gap: 36px;
  padding: 56px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-copy {
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.9;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  color: #854d0e;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 700;
}

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

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

.button-primary,
.button-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-3), var(--brand-2));
  box-shadow: 0 14px 32px rgba(249, 115, 22, 0.32);
}

.button-soft {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

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

.hero-art {
  position: relative;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  aspect-ratio: 3 / 4;
  box-shadow: 0 32px 70px rgba(17, 24, 39, 0.38);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.62));
}

.hero-rank-card {
  position: absolute;
  right: -18px;
  bottom: 28px;
  width: min(260px, 78%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 22px;
  color: #fff;
  background: rgba(17, 24, 39, 0.58);
  backdrop-filter: blur(18px);
}

.hero-dots {
  position: absolute;
  left: 56px;
  bottom: 38px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

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

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

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 46px 0 20px;
}

.section-title h2,
.filter-head h2,
.category-hero h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.section-title p,
.filter-head p,
.category-hero p,
.detail-title p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.filter-panel,
.category-hero,
.detail-hero,
.detail-section,
.categories-panel,
.rank-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.filter-panel {
  margin-top: 28px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.9fr);
  gap: 22px;
  align-items: end;
}

.filter-controls {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 12px;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(146, 84, 22, 0.18);
  border-radius: 16px;
  padding: 0 14px;
  outline: none;
  color: var(--ink);
  background: #fffaf2;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 45px rgba(120, 53, 15, 0.11);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 54px rgba(120, 53, 15, 0.17);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #f8e6c8;
}

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

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 24, 39, 0.68);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  min-height: 2.6em;
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.movie-card p {
  min-height: 4.9em;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

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

.category-card {
  padding: 24px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(146, 64, 14, 0.96), rgba(249, 115, 22, 0.82)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.25), transparent 12rem);
  box-shadow: 0 20px 44px rgba(146, 64, 14, 0.18);
}

.category-card strong {
  font-size: 24px;
}

.category-card span,
.category-card p {
  color: rgba(255, 255, 255, 0.82);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 74px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.rank-no {
  font-size: 26px;
  font-weight: 900;
  color: #ea580c;
  text-align: center;
}

.rank-thumb {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 3 / 4;
  background: #f8e6c8;
}

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

.rank-title strong {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
}

.rank-title span {
  color: var(--muted);
  font-size: 13px;
}

.category-hero {
  padding: 34px;
  margin-bottom: 28px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 30px;
  padding: 30px;
  margin-bottom: 28px;
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  box-shadow: 0 30px 64px rgba(17, 24, 39, 0.2);
}

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

.detail-title {
  align-self: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #9a3412;
  font-size: 14px;
  font-weight: 700;
}

.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.detail-facts span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #7c2d12;
  background: #ffedd5;
  font-weight: 800;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.24);
}

.player-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.24), rgba(15, 23, 42, 0.48));
}

.play-layer span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-3), var(--brand-2));
  box-shadow: 0 16px 42px rgba(249, 115, 22, 0.38);
  font-size: 34px;
}

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

.detail-section {
  padding: 28px;
  margin-bottom: 28px;
}

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

.detail-section p {
  color: #4b3525;
  line-height: 2;
}

.categories-panel,
.rank-panel {
  padding: 26px;
}

.hidden-card {
  display: none;
}

@media (max-width: 1024px) {
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 42px;
  }

  .hero-art {
    display: none;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .top-nav {
    flex-wrap: wrap;
  }

  .menu-button {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 12px;
  }

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

  .nav-category-strip {
    flex-wrap: wrap;
    border-left: 0;
    padding-left: 0;
  }

  .page-main {
    padding: 20px 14px 48px;
  }

  .hero-shell {
    min-height: 640px;
    border-radius: 26px;
  }

  .hero-slide {
    padding: 30px 24px 70px;
  }

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

  .hero-copy p {
    font-size: 16px;
  }

  .hero-dots {
    left: 26px;
    bottom: 26px;
  }

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

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

  .filter-controls {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 44px 58px 1fr;
  }

  .rank-item .button-primary {
    grid-column: 2 / -1;
  }

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

@media (max-width: 460px) {
  .brand-text strong {
    font-size: 18px;
  }

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