:root {
  color-scheme: dark;
  --bg: #0c0a09;
  --panel: rgba(28, 25, 23, 0.78);
  --panel-strong: #1c1917;
  --border: rgba(120, 113, 108, 0.28);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --soft: #94a3b8;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --copper: #b45309;
  --shadow: 0 22px 65px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(180, 83, 9, 0.14), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(12, 10, 9, 0.88);
  backdrop-filter: blur(16px);
}

.site-nav {
  width: min(1500px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff7ed;
  background: linear-gradient(135deg, var(--amber), var(--copper));
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.28);
}

.brand-text {
  font-size: 1.28rem;
  background: linear-gradient(90deg, var(--amber-light), #fed7aa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-weight: 700;
}

.nav-links a {
  padding: 9px 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--amber-light);
  border-color: var(--amber);
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(28, 25, 23, 0.72);
}

.header-search input,
.hero-search input,
.search-panel input,
.filter-panel input,
.search-panel select,
.filter-panel select {
  min-width: 0;
  border: 1px solid var(--border);
  outline: none;
  color: var(--text);
  background: rgba(12, 10, 9, 0.78);
  border-radius: 999px;
}

.header-search input {
  width: 220px;
  padding: 9px 14px;
  border: 0;
  background: transparent;
}

.header-search button,
.hero-search button,
.search-panel button,
.filter-panel button,
.primary-button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: #1c1917;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  box-shadow: 0 14px 28px rgba(245, 158, 11, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.hero-search button:hover,
.search-panel button:hover,
.filter-panel button:hover,
.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(245, 158, 11, 0.3);
}

.menu-button {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  background: rgba(28, 25, 23, 0.84);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 72px));
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #0c0a09;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  align-items: center;
  gap: clamp(24px, 5vw, 78px);
  width: min(1450px, calc(100% - 32px));
  margin: 0 auto;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-slide::before {
  content: "";
  position: fixed;
  inset: 72px 0 auto 0;
  height: min(760px, calc(100vh - 72px));
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12, 10, 9, 0.96), rgba(12, 10, 9, 0.72), rgba(12, 10, 9, 0.98)),
    linear-gradient(180deg, rgba(12, 10, 9, 0.16), #0c0a09),
    var(--hero-image),
    radial-gradient(circle at center, rgba(245, 158, 11, 0.28), rgba(12, 10, 9, 0.92));
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--amber-light);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.8rem, 8vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.hero-content p {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.3rem);
  line-height: 1.85;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  font-size: 0.8rem;
  font-weight: 700;
}

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

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--text);
  font-weight: 900;
  background: rgba(28, 25, 23, 0.72);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ghost-button:hover {
  color: var(--amber-light);
  border-color: rgba(251, 191, 36, 0.56);
  transform: translateY(-1px);
}

.hero-poster {
  align-self: center;
  border-radius: 30px;
  overflow: hidden;
  min-height: 520px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(68, 64, 60, 0.9)),
    #1c1917;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #1c1917;
  font-weight: 1000;
  background: linear-gradient(135deg, #fde68a, var(--amber));
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 36px;
  background: var(--amber-light);
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 5;
  display: flex;
  gap: 10px;
  width: min(760px, calc(100% - 32px));
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(28, 25, 23, 0.82);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.hero-search input {
  flex: 1;
  padding: 14px 18px;
}

.stats-strip {
  width: min(1300px, calc(100% - 32px));
  margin: -34px auto 0;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stats-strip div {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  background: rgba(28, 25, 23, 0.86);
  box-shadow: var(--shadow);
}

.stats-strip strong {
  display: block;
  color: var(--amber-light);
  font-size: 2rem;
  line-height: 1;
}

.stats-strip span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.content-section {
  width: min(1450px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(48px, 7vw, 86px) 0;
}

.dark-panel {
  width: 100%;
  padding-left: max(16px, calc((100% - 1450px) / 2));
  padding-right: max(16px, calc((100% - 1450px) / 2));
  background: rgba(28, 25, 23, 0.34);
  border-block: 1px solid var(--border);
}

.section-heading {
  margin-bottom: 26px;
}

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

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

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

.movie-grid {
  display: grid;
  gap: 22px;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(28, 25, 23, 0.7);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 191, 36, 0.58);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.32);
}

.poster-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.46), transparent 30%),
    linear-gradient(135deg, #292524, #0c0a09);
}

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

.poster-frame img.is-missing {
  opacity: 0;
}

.poster-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 247, 237, 0.78);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

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

.score-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 30px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #1c1917;
  font-size: 0.84rem;
  font-weight: 1000;
  background: linear-gradient(135deg, #fde68a, var(--amber));
}

.score-badge {
  right: 12px;
}

.rank-badge {
  left: 12px;
}

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

.movie-card-body h3 {
  margin: 0;
  min-height: 2.6em;
  color: #fff7ed;
  font-size: 1.12rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-body p {
  min-height: 4.8em;
  margin: 12px 0 0;
  color: var(--soft);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.movie-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: rgba(203, 213, 225, 0.5);
}

.page-hero {
  width: min(1450px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(58px, 9vw, 118px) 0 clamp(32px, 6vw, 70px);
}

.page-hero.compact {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.07em;
}

.page-hero p {
  max-width: 780px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.8;
}

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

.category-card {
  min-height: 238px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(28, 25, 23, 0.84)),
    rgba(28, 25, 23, 0.72);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(251, 191, 36, 0.55);
}

.category-card h3 {
  margin: 10px 0 8px;
  font-size: 1.35rem;
}

.category-card p,
.category-card li {
  color: var(--muted);
}

.category-card ul {
  margin: 12px 0;
  padding-left: 18px;
  line-height: 1.75;
}

.category-card strong {
  margin-top: auto;
  color: var(--amber-light);
}

.category-group {
  color: var(--amber-light);
  font-size: 0.82rem;
  font-weight: 900;
}

.search-panel,
.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: rgba(28, 25, 23, 0.72);
}

.search-panel input,
.filter-panel input,
.search-panel select,
.filter-panel select {
  width: 100%;
  padding: 13px 16px;
}

.filter-count {
  margin: 0 0 22px;
  color: var(--muted);
  font-weight: 700;
}

.detail-hero {
  position: relative;
  width: min(1450px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  padding: 64px 0;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 10, 9, 0.98), rgba(12, 10, 9, 0.72), #0c0a09),
    var(--detail-image),
    radial-gradient(circle at center, rgba(245, 158, 11, 0.22), transparent 52%);
  background-size: cover;
  background-position: center;
  opacity: 0.82;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: linear-gradient(135deg, #292524, #0c0a09);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
}

.detail-poster img.is-missing {
  opacity: 0;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.07em;
}

.detail-info .lead {
  max-width: 860px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.85;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.detail-meta span {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(28, 25, 23, 0.78);
}

.detail-meta strong {
  color: var(--amber-light);
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(251, 191, 36, 0.26);
  border-radius: 30px;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.15), transparent 42%),
    #050505;
  box-shadow: var(--shadow);
}

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

.big-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff7ed;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(12, 10, 9, 0.05), rgba(12, 10, 9, 0.58));
}

.big-play span {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 247, 237, 0.7);
  border-radius: 50%;
  color: #1c1917;
  font-size: 2rem;
  background: linear-gradient(135deg, #fde68a, var(--amber));
  box-shadow: 0 18px 46px rgba(245, 158, 11, 0.35);
}

.video-shell.is-playing .big-play {
  display: none;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 18px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(12, 10, 9, 0.72);
}

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

.copy-grid article,
.text-page {
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 38px);
  background: rgba(28, 25, 23, 0.72);
}

.copy-grid h2,
.text-page h2 {
  margin: 0 0 14px;
  font-size: 1.7rem;
}

.copy-grid p,
.text-page p {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.9;
}

.text-page {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto 80px;
}

.notice-box {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(251, 191, 36, 0.26);
  border-radius: 18px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.1);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(12, 10, 9, 0.92);
}

.footer-grid {
  width: min(1450px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 52px 0;
}

.footer-logo {
  color: var(--amber-light);
  font-size: 1.35rem;
  font-weight: 900;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fff7ed;
}

.site-footer p,
.site-footer a {
  display: block;
  color: var(--soft);
  line-height: 1.8;
}

.site-footer a:hover {
  color: var(--amber-light);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px;
  color: var(--soft);
  text-align: center;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .movie-grid.four,
  .category-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-slide,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

@media (max-width: 820px) {
  .site-nav {
    height: auto;
    min-height: 66px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    order: 4;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(28, 25, 23, 0.95);
  }

  .nav-links.is-open {
    display: flex;
  }

  .header-search {
    width: 100%;
    order: 3;
  }

  .header-search input {
    width: 100%;
  }

  .hero {
    min-height: 720px;
  }

  .hero-slide {
    min-height: 610px;
    align-items: end;
    padding-bottom: 120px;
  }

  .hero-content h1,
  .detail-info h1,
  .page-hero h1 {
    letter-spacing: -0.04em;
  }

  .hero-search {
    bottom: 18px;
    border-radius: 24px;
    flex-direction: column;
  }

  .stats-strip,
  .movie-grid.four,
  .category-grid,
  .copy-grid,
  .footer-grid,
  .search-panel,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    min-height: 420px;
  }

  .detail-poster img {
    min-height: 420px;
  }
}

@media (max-width: 520px) {
  .content-section,
  .page-hero,
  .detail-hero,
  .site-nav,
  .footer-grid {
    width: min(100% - 22px, 1450px);
  }

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

  .stats-strip {
    margin-top: 0;
  }
}
