:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --ink: #1f2937;
  --muted: #6b7280;
  --paper: #ffffff;
  --soft: #fff7ed;
  --line: rgba(146, 64, 14, 0.18);
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.22), transparent 34rem),
    linear-gradient(180deg, var(--amber-50), #ffffff 24rem, var(--soft));
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96), rgba(254, 243, 199, 0.96));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 26px rgba(120, 53, 15, 0.1);
}

.header-inner {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--amber-800);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--amber-600), #ea580c);
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.28);
}

.brand-text {
  font-size: 26px;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--amber-800), #ea580c, var(--amber-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link,
.mobile-link {
  color: var(--amber-800);
  font-weight: 700;
  border-radius: 12px;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

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

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: white;
  background: var(--amber-600);
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.24);
}

.menu-button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--amber-100);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--amber-800);
}

.menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  padding: 10px 18px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 251, 235, 0.98);
}

.mobile-link {
  display: block;
  padding: 12px 14px;
  margin: 4px 0;
}

main {
  min-height: 70vh;
}

.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: white;
  background: #3b2108;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  background-image: linear-gradient(90deg, rgba(15, 8, 2, 0.9), rgba(64, 35, 8, 0.78), rgba(120, 53, 15, 0.38)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(251, 191, 36, 0.28), transparent 28rem),
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 52%);
}

.hero-content {
  position: relative;
  max-width: 1280px;
  min-height: 620px;
  margin: 0 auto;
  padding: 90px 24px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 46px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 13px;
  color: var(--amber-900);
  background: var(--amber-200);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy .eyebrow,
.detail-copy .eyebrow,
.page-hero .eyebrow {
  color: var(--amber-100);
  background: rgba(217, 119, 6, 0.72);
  border: 1px solid rgba(253, 230, 138, 0.35);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.07em;
  text-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 720px;
  margin: 0;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.8;
  color: rgba(255, 251, 235, 0.92);
}

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 800;
  color: var(--amber-900);
  background: var(--amber-100);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button {
  color: white;
  background: var(--amber-600);
  box-shadow: 0 18px 38px rgba(217, 119, 6, 0.34);
}

.ghost-button {
  color: var(--amber-100);
  border: 1px solid rgba(253, 230, 138, 0.5);
  background: rgba(0, 0, 0, 0.26);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-3px) scale(1.02);
}

.hero-poster {
  display: block;
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(253, 230, 138, 0.35);
}

.hero-poster img {
  aspect-ratio: 3 / 4;
  height: 520px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

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

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 56px;
  background: var(--amber-300);
}

.quick-entry {
  max-width: 1280px;
  margin: -28px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  position: relative;
  z-index: 5;
}

.quick-entry a {
  padding: 22px 18px;
  border-radius: 20px;
  background: white;
  color: var(--amber-800);
  font-weight: 900;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.quick-entry a:hover,
.movie-card:hover,
.category-tile:hover,
.category-card:hover,
.horizontal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(120, 53, 15, 0.2);
}

.section-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 76px 24px 0;
}

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

.section-heading h2 {
  margin: 10px 0 0;
  color: var(--amber-900);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

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

.compact-heading {
  margin-bottom: 18px;
}

.filter-panel {
  margin: 0 0 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(120, 53, 15, 0.08);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
}

.search-box,
.select-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  background: var(--amber-50);
  border: 1px solid var(--line);
  padding: 0 14px;
  min-height: 52px;
}

.search-box span,
.select-box span {
  color: var(--amber-800);
  font-weight: 900;
}

.search-box input,
.select-box select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.poster-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--amber-100), var(--amber-300));
}

.poster-wrap img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-gradient {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent);
}

.type-pill,
.duration-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.type-pill {
  top: 12px;
  right: 12px;
  color: white;
  background: var(--amber-600);
}

.duration-pill {
  right: 12px;
  bottom: 12px;
  color: var(--amber-100);
  background: rgba(0, 0, 0, 0.72);
}

.rank-badge {
  top: 12px;
  left: 12px;
  color: white;
  background: linear-gradient(135deg, #ef4444, var(--amber-600));
}

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

.movie-title {
  display: block;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.35;
  font-weight: 900;
  transition: color 0.2s ease;
}

.movie-title:hover {
  color: var(--amber-700);
}

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

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--amber-800);
  font-size: 13px;
  font-weight: 800;
}

.meta-row span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: var(--amber-400);
}

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

.tag-row span {
  color: var(--amber-800);
  background: var(--amber-50);
  border: 1px solid var(--line);
}

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

.category-tile,
.category-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, white, var(--amber-50));
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile {
  padding: 24px;
}

.category-tile span,
.category-name {
  display: block;
  color: var(--amber-900);
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.category-tile p,
.category-card p {
  color: var(--muted);
  line-height: 1.7;
  margin: 10px 0 0;
}

.category-card {
  overflow: hidden;
}

.category-card > div:last-child {
  padding: 20px;
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 148px;
  background: var(--amber-100);
}

.category-thumbs img {
  height: 148px;
  object-fit: cover;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 32px;
  align-items: start;
  padding-bottom: 86px;
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border-radius: 20px;
  padding: 12px;
  background: white;
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.horizontal-poster {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--amber-100);
}

.horizontal-poster img {
  aspect-ratio: 16 / 10;
  height: 92px;
  object-fit: cover;
}

.horizontal-card strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  margin-bottom: 5px;
}

.horizontal-card span,
.horizontal-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.horizontal-card p {
  margin: 6px 0 0;
}

.mini-rank {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: var(--amber-600);
  font-weight: 950;
}

.ranking-box,
.ranking-panel {
  position: sticky;
  top: 92px;
  border-radius: 26px;
  padding: 22px;
  background: linear-gradient(180deg, white, var(--amber-50));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.page-hero,
.detail-hero {
  position: relative;
  color: white;
  overflow: hidden;
}

.page-hero {
  min-height: 360px;
  padding: 96px 24px;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 24% 30%, rgba(251, 191, 36, 0.34), transparent 22rem),
    linear-gradient(135deg, var(--amber-900), #431407 58%, #111827);
}

.soft-hero {
  background:
    radial-gradient(circle at 80% 24%, rgba(253, 230, 138, 0.22), transparent 20rem),
    linear-gradient(135deg, #78350f, #451a03 62%, #0f172a);
}

.ranking-hero {
  background:
    radial-gradient(circle at 14% 28%, rgba(239, 68, 68, 0.26), transparent 22rem),
    linear-gradient(135deg, #451a03, #7c2d12 56%, #111827);
}

.ranking-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.ranking-rows {
  display: grid;
  gap: 10px;
}

.ranking-panel h2 {
  margin: 0 0 16px;
  color: var(--amber-900);
  font-size: 26px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 34px 54px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  padding: 8px;
  background: white;
}

.ranking-row > span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: var(--amber-600);
  font-weight: 950;
}

.ranking-row img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-row strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-row em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.detail-hero {
  min-height: 560px;
  background-image: linear-gradient(90deg, rgba(20, 10, 2, 0.95), rgba(67, 20, 7, 0.82), rgba(120, 53, 15, 0.32)), var(--detail-image);
  background-size: cover;
  background-position: center;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(251, 191, 36, 0.22), transparent 30rem),
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 58%);
}

.detail-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px 78px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(255, 251, 235, 0.78);
  font-weight: 800;
  margin-bottom: 42px;
}

.breadcrumb a:hover {
  color: var(--amber-200);
}

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

.detail-cover {
  height: 430px;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(253, 230, 138, 0.32);
}

.detail-copy h1 {
  font-size: clamp(42px, 6.4vw, 76px);
}

.detail-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 28px;
}

.player-card,
.content-card {
  border-radius: 26px;
  padding: 16px;
  background: white;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: black;
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-symbol {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding-left: 6px;
  background: var(--amber-600);
  box-shadow: 0 18px 45px rgba(217, 119, 6, 0.48);
  font-size: 34px;
}

.content-card {
  padding: 28px;
}

.content-card h2 {
  margin: 0 0 12px;
  color: var(--amber-900);
  font-size: 24px;
}

.content-card h2:not(:first-child) {
  margin-top: 28px;
}

.content-card p {
  color: #4b5563;
  line-height: 1.9;
  margin: 0;
}

.info-grid {
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.info-grid div {
  border-radius: 16px;
  padding: 14px;
  background: var(--amber-50);
  border: 1px solid var(--line);
}

.info-grid dt {
  color: var(--amber-800);
  font-weight: 950;
  font-size: 13px;
}

.info-grid dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.related-grid {
  padding-bottom: 82px;
}

.site-footer {
  color: var(--amber-50);
  background: linear-gradient(180deg, var(--amber-900), #451a03 72%, #2a1204);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr;
  gap: 28px;
}

.footer-brand {
  color: var(--amber-100);
  font-size: 24px;
}

.site-footer p {
  max-width: 440px;
  margin: 12px 0 0;
  color: var(--amber-200);
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-content: flex-start;
}

.footer-links a {
  color: var(--amber-200);
  font-weight: 800;
}

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

.is-filtered-out {
  display: none !important;
}

@media (max-width: 1120px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: flex;
  }

  .mobile-nav.open {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr 280px;
  }

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

  .split-layout,
  .detail-section,
  .ranking-layout {
    grid-template-columns: 1fr;
  }

  .ranking-box,
  .ranking-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .header-inner {
    height: 62px;
  }

  .brand-text {
    font-size: 22px;
  }

  .hero-slider,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    padding-top: 66px;
  }

  .hero-poster {
    max-width: 270px;
  }

  .hero-poster img {
    height: 360px;
  }

  .quick-entry,
  .movie-grid,
  .category-grid,
  .category-card-grid,
  .footer-inner,
  .filter-panel,
  .detail-main,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .quick-entry {
    margin-top: 18px;
  }

  .section-wrap {
    padding-top: 54px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .horizontal-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .detail-cover {
    width: 220px;
    height: 310px;
  }

  .detail-section {
    gap: 18px;
  }
}

@media (max-width: 540px) {
  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 40px;
  }

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

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .horizontal-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .horizontal-poster img {
    height: 82px;
  }

  .content-card {
    padding: 20px;
  }
}
