:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: #111827;
  --panel-2: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --line: rgba(148, 163, 184, 0.18);
  --orange: #f97316;
  --red: #dc2626;
  --yellow: #facc15;
  --green: #22c55e;
  --shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(249, 115, 22, 0.14), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.site-logo span:last-child,
.footer-logo span:last-child {
  background: linear-gradient(90deg, #fb923c, #ef4444);
  -webkit-background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.22);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-link {
  color: #cbd5e1;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fb923c;
}

.nav-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input,
.filter-input,
select {
  border: 1px solid var(--line);
  outline: none;
  color: #ffffff;
  background: rgba(30, 41, 59, 0.9);
  border-radius: 999px;
  padding: 11px 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
  width: 220px;
}

.nav-search input:focus,
.mobile-search input:focus,
.filter-input:focus,
select:focus {
  border-color: rgba(249, 115, 22, 0.75);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.nav-search button,
.mobile-search button,
.primary-btn,
.ghost-btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red));
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button:hover,
.mobile-search button:hover,
.primary-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.25);
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(12px);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #ffffff;
  background: rgba(30, 41, 59, 0.9);
}

.mobile-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
}

.mobile-panel nav,
.mobile-categories,
.footer-links {
  display: grid;
  gap: 12px;
}

.mobile-panel .nav-link,
.mobile-categories a,
.footer-links a {
  color: #cbd5e1;
}

.mobile-panel .nav-link:hover,
.mobile-categories a:hover,
.footer-links a:hover {
  color: #fb923c;
}

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18)),
    linear-gradient(180deg, rgba(2, 6, 23, 0), rgba(2, 6, 23, 0.84));
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 68px;
  max-width: 1180px;
}

.hero-content h1,
.hero-content h2 {
  width: min(720px, 100%);
  margin: 14px 0 16px;
  font-size: clamp(2.7rem, 6vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 900;
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  width: min(690px, 100%);
  margin: 0 0 22px;
  color: #e2e8f0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.7;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 15px;
  color: #ffffff;
  background: var(--orange);
  font-size: 0.9rem;
  font-weight: 850;
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.28);
}

.hero-meta,
.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
}

.hero-meta span,
.meta-line span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(148, 163, 184, 0.14);
}

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

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  font-size: 2rem;
  line-height: 1;
  z-index: 4;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-nav:hover {
  background: rgba(249, 115, 22, 0.88);
  transform: translateY(-50%) scale(1.06);
}

.hero-nav.prev {
  left: 24px;
}

.hero-nav.next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 5;
}

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

.hero-dot.is-active {
  width: 34px;
  background: var(--orange);
}

.main-stack {
  display: grid;
  gap: 68px;
  padding: 64px 0 78px;
}

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

.section-head h2,
.page-hero h1,
.detail-main h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.1;
  font-weight: 900;
}

.section-more {
  color: #fb923c;
  font-weight: 800;
}

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

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

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

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

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x proximity;
}

.rail .movie-card {
  min-width: 260px;
  scroll-snap-align: start;
}

.movie-card,
.rank-card,
.overview-card,
.article-card,
.info-card,
.filter-panel {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px) scale(1.015);
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.36);
  background: rgba(30, 41, 59, 0.92);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

.movie-card.large .poster-wrap {
  aspect-ratio: 16 / 9;
}

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

.movie-card:hover .poster-wrap img {
  transform: scale(1.07);
  filter: brightness(0.78);
}

.card-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.92);
  font-size: 0.78rem;
  font-weight: 850;
}

.rank-badge {
  left: auto;
  right: 12px;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
}

.play-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 2.6rem;
  opacity: 0;
  background: rgba(0, 0, 0, 0.32);
  transform: scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-hover {
  opacity: 1;
  transform: scale(1);
}

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

.movie-card h3,
.rank-card h3,
.info-card h2,
.article-card h2 {
  margin: 0;
  font-weight: 850;
}

.movie-card h3 {
  min-height: 3em;
  color: #ffffff;
  line-height: 1.45;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card:hover h3 {
  color: #fb923c;
}

.movie-card p,
.rank-card p,
.page-hero p,
.article-card p,
.footer-grid p,
.overview-body p,
.detail-lead {
  color: var(--muted);
  line-height: 1.75;
}

.movie-card p {
  min-height: 3.5em;
  margin: 8px 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-line {
  gap: 7px;
  font-size: 0.78rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span,
.chip {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 6px 10px;
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.1);
  font-size: 0.78rem;
}

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  background: #111827;
  isolation: isolate;
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
  transition: transform 0.35s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.88));
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-card span {
  font-size: 1.35rem;
  font-weight: 900;
}

.category-card p {
  margin: 8px 0 0;
  color: #cbd5e1;
  line-height: 1.6;
  font-size: 0.92rem;
}

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

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

.rank-card {
  display: grid;
  grid-template-columns: auto 150px 1fr;
  gap: 16px;
  align-items: center;
  border-radius: 18px;
  padding: 14px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.rank-card:hover {
  transform: translateX(4px);
  border-color: rgba(249, 115, 22, 0.42);
  background: rgba(30, 41, 59, 0.92);
}

.rank-number {
  width: 46px;
  height: 64px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.rank-card img {
  width: 150px;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-card h3 {
  margin-bottom: 6px;
  color: #ffffff;
}

.rank-card p {
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-shell {
  padding: 96px 0 78px;
}

.page-hero {
  border-radius: 28px;
  padding: 56px;
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(220, 38, 38, 0.05)),
    rgba(15, 23, 42, 0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.small-hero {
  margin-bottom: 34px;
}

.page-hero h1 {
  margin: 15px 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: #fb923c;
}

.filter-panel {
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 26px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.filter-input {
  flex: 1 1 280px;
  border-radius: 16px;
}

select {
  border-radius: 16px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.chip.is-active,
.chip:hover {
  border-color: rgba(249, 115, 22, 0.6);
  color: #ffffff;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.72), rgba(220, 38, 38, 0.72));
}

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

.overview-card {
  overflow: hidden;
  border-radius: 24px;
}

.overview-link {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  min-height: 220px;
}

.overview-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: #020617;
}

.overview-covers img {
  width: 100%;
  height: 100%;
  min-height: 109px;
  object-fit: cover;
  filter: brightness(0.82);
}

.overview-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.overview-body h2 {
  margin: 0 0 12px;
  font-size: 1.8rem;
}

.overview-body span {
  margin-top: 18px;
  color: #fb923c;
  font-weight: 850;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.detail-main h1 {
  margin-bottom: 12px;
}

.detail-lead {
  margin: 0 0 22px;
  font-size: 1.08rem;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: #000000;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}

.player-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.22), rgba(0, 0, 0, 0.62));
}

.player-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-size: 2.4rem;
  box-shadow: 0 20px 50px rgba(249, 115, 22, 0.35);
}

.detail-side {
  display: grid;
  gap: 18px;
}

.detail-poster,
.info-card,
.article-card {
  border-radius: 24px;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.info-card,
.article-card {
  padding: 24px;
}

.info-card dl {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px 16px;
  margin: 18px 0 0;
}

.info-card dt {
  color: var(--muted-2);
}

.info-card dd {
  margin: 0;
  color: #e2e8f0;
}

.detail-tags {
  margin-top: 18px;
}

.content-section {
  margin-top: 34px;
}

.article-card h2 + p {
  margin-top: 12px;
}

.article-card p + h2 {
  margin-top: 26px;
}

.empty-state {
  margin-top: 28px;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  border-radius: 22px;
  padding: 38px;
  text-align: center;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 1));
  color: #cbd5e1;
  padding: 46px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 36px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 1rem;
}

.footer-grid p {
  margin: 14px 0 0;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted-2);
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

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

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

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

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

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

  .detail-side {
    grid-template-columns: 240px 1fr;
  }
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .hero-carousel {
    min-height: 620px;
    height: 82vh;
  }

  .hero-nav {
    display: none;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: clamp(2.2rem, 12vw, 4rem);
  }

  .four-cols,
  .three-cols,
  .two-cols,
  .rank-grid,
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .overview-covers {
    min-height: 220px;
  }

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

@media (max-width: 640px) {
  .container,
  .nav-container,
  .mobile-panel,
  .hero-content,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .site-logo span:last-child {
    font-size: 0.98rem;
  }

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

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 92px;
  }

  .hero-meta,
  .hero-actions {
    gap: 8px;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
    text-align: center;
  }

  .main-stack {
    padding-top: 44px;
    gap: 48px;
  }

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

  .four-cols,
  .three-cols,
  .two-cols,
  .category-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: auto 96px 1fr;
    gap: 12px;
  }

  .rank-card img {
    width: 96px;
    height: 74px;
  }

  .rank-card p,
  .rank-card .meta-line span:nth-child(3) {
    display: none;
  }

  .page-hero {
    padding: 34px 22px;
  }

  .detail-side {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    aspect-ratio: 16 / 10;
  }

  .filter-row > * {
    width: 100%;
  }

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