:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(30, 41, 59, 0.86);
  --line: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --orange: #f97316;
  --orange-deep: #ea580c;
  --amber: #f59e0b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at top left,
      rgba(249, 115, 22, 0.18),
      transparent 30%
    ),
    linear-gradient(180deg, #020617 0%, #0f172a 52%, #020617 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.96),
    rgba(30, 41, 59, 0.96),
    rgba(15, 23, 42, 0.96)
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(100% - 32px, var(--max));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(90deg, #fb923c, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
  font-size: 14px;
}

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

.nav-link,
.mobile-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 700;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
  color: #fff;
  background: rgba(249, 115, 22, 0.94);
}

.top-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(30, 41, 59, 0.88);
  color: #fff;
  border-radius: 14px;
  outline: 0;
  transition:
    border 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.top-search input {
  width: 260px;
  padding: 11px 14px;
}

.top-search button,
.mobile-search button {
  border: 0;
  border-radius: 14px;
  padding: 11px 16px;
  color: #fff;
  background: var(--orange);
  cursor: pointer;
}

.top-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(249, 115, 22, 0.75);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(51, 65, 85, 0.8);
}

.mobile-nav {
  display: none;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 0 0 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 8px;
}

.mobile-search input {
  min-width: 0;
  padding: 12px 14px;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  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(0deg, rgba(2, 6, 23, 0.95), transparent 34%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - var(--max)) / 2 + 24px));
  top: 50%;
  width: min(680px, calc(100% - 48px));
  transform: translateY(-50%);
}

.hero-kicker,
.section-kicker {
  color: #fb923c;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 12px 0 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero h2 {
  margin: 16px 0 0;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.1;
}

.hero p {
  max-width: 620px;
  margin: 18px 0 0;
  color: #cbd5e1;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

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

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

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(30, 41, 59, 0.78);
  color: #e2e8f0;
  font-size: 13px;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.hero-tags span:first-child {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

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

.primary-btn,
.ghost-btn,
.intro-actions a,
.category-overview-head a,
.section-head a,
.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border 0.2s ease;
}

.primary-btn,
.intro-actions a:first-child,
.category-overview-head a {
  background: linear-gradient(135deg, var(--orange), var(--amber));
  color: #fff;
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.24);
}

.ghost-btn,
.intro-actions a:last-child,
.section-head a,
.pill-link {
  background: rgba(30, 41, 59, 0.78);
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.primary-btn:hover,
.ghost-btn:hover,
.intro-actions a:hover,
.category-overview-head a:hover,
.section-head a:hover,
.pill-link:hover {
  transform: translateY(-2px);
}

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

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

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

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

.page-main {
  padding: 42px 0 72px;
}

.intro-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-top: 42px;
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 28px;
  background: linear-gradient(
    135deg,
    rgba(30, 41, 59, 0.72),
    rgba(15, 23, 42, 0.78)
  );
  box-shadow: var(--shadow);
}

.intro-copy h2,
.section-head h2,
.page-hero h1,
.category-overview-head h2,
.detail-info h1,
.detail-info h2,
.side-card h2 {
  margin: 0;
  color: #fff;
}

.intro-copy h2,
.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.intro-copy p:last-child,
.page-hero p,
.category-overview-head p,
.side-card p {
  color: var(--muted-strong);
  line-height: 1.8;
}

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

.compact-head {
  margin: 0 0 20px;
}

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

.movie-card,
.compact-card,
.rank-card,
.category-tile,
.side-card,
.filter-panel,
.page-hero,
.category-overview-block,
.ranking-panel,
.side-recommend,
.detail-info {
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: var(--panel);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  background: rgba(30, 41, 59, 0.9);
  box-shadow: 0 24px 60px rgba(249, 115, 22, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.85);
}

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

.movie-card:hover img,
.compact-card:hover img,
.rank-card:hover img {
  transform: scale(1.08);
}

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.poster-badge-primary {
  background: rgba(249, 115, 22, 0.94);
}

.poster-badge-year {
  right: 12px;
  left: auto;
  background: rgba(0, 0, 0, 0.68);
}

.play-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 34px;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
}

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

.movie-title,
.compact-title,
.rank-title {
  display: inline-block;
  color: #fff;
  font-weight: 850;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-title {
  font-size: 18px;
}

.movie-title:hover,
.compact-title:hover,
.rank-title:hover {
  color: #fb923c;
}

.movie-card-body p,
.compact-info p,
.rank-body p {
  color: var(--muted);
  line-height: 1.65;
  margin: 10px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
  color: #94a3b8;
  font-size: 13px;
}

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

.category-section {
  padding: 4px 0;
}

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

.category-tile {
  min-height: 188px;
  border-radius: 24px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  transition:
    transform 0.22s ease,
    border 0.22s ease,
    background 0.22s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -48px;
  bottom: -48px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.18);
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.44);
  background: var(--panel-strong);
}

.category-tile span {
  color: #fb923c;
  font-weight: 900;
}

.category-tile strong {
  font-size: 22px;
}

.category-tile em {
  color: #cbd5e1;
  font-style: normal;
  line-height: 1.65;
}

.split-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  margin-top: 64px;
}

.ranking-panel,
.side-recommend {
  border-radius: 28px;
  padding: 26px;
}

.ranking-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.ranking-list li {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.ranking-list li:last-child {
  border-bottom: 0;
}

.ranking-list span,
.rank-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-weight: 900;
}

.ranking-list a {
  color: #fff;
  font-weight: 800;
}

.ranking-list em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.compact-stack {
  display: grid;
  gap: 14px;
}

.compact-card {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 14px;
  border-radius: 18px;
  padding: 10px;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.compact-card:hover {
  background: rgba(30, 41, 59, 0.88);
  transform: translateX(3px);
}

.compact-poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
}

.compact-year {
  position: absolute;
  right: 6px;
  bottom: 6px;
  border-radius: 8px;
  padding: 3px 7px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 11px;
}

.compact-info {
  min-width: 0;
  align-self: center;
}

.compact-info span {
  color: #64748b;
  font-size: 12px;
}

.page-hero {
  border-radius: 30px;
  padding: clamp(30px, 5vw, 56px);
  background:
    radial-gradient(
      circle at top right,
      rgba(249, 115, 22, 0.18),
      transparent 36%
    ),
    linear-gradient(135deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.9));
}

.page-hero h1 {
  margin-top: 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
}

.overview-list {
  display: grid;
  gap: 28px;
  margin-top: 32px;
}

.category-overview-block {
  border-radius: 28px;
  padding: 26px;
}

.category-overview-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
}

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

.filter-panel {
  margin: 28px 0;
  border-radius: 24px;
  padding: 22px;
}

.filter-title {
  margin-bottom: 14px;
  color: #fff;
  font-weight: 900;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr 210px 180px;
  gap: 14px;
}

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

.empty-result {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(249, 115, 22, 0.12);
  color: #fed7aa;
}

.category-movie-grid,
.search-grid {
  margin-top: 30px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: center;
}

.rank-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-radius: 22px;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.rank-card:hover {
  transform: translateY(-3px);
  background: rgba(30, 41, 59, 0.88);
}

.rank-poster {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.rank-body {
  padding: 18px;
}

.rank-title {
  font-size: 20px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  color: #94a3b8;
  margin-bottom: 22px;
  font-size: 14px;
}

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

.breadcrumb em {
  color: #e2e8f0;
  font-style: normal;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.detail-primary {
  display: grid;
  gap: 24px;
}

.player-card {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
  cursor: pointer;
  transition:
    opacity 0.24s ease,
    visibility 0.24s ease;
}

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

.big-play {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding-left: 5px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 24px 50px rgba(249, 115, 22, 0.32);
  font-size: 32px;
}

.player-overlay strong {
  font-size: clamp(20px, 3vw, 34px);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.detail-info {
  border-radius: 28px;
  padding: 28px;
}

.detail-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.detail-info h1 {
  margin-top: 8px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.detail-meta {
  margin: 18px 0;
}

.detail-tags {
  margin-bottom: 24px;
}

.detail-info section {
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.detail-info h2 {
  font-size: 22px;
}

.detail-info p {
  color: #cbd5e1;
  line-height: 1.95;
  text-align: justify;
}

.detail-side {
  display: grid;
  gap: 22px;
  position: sticky;
  top: 92px;
}

.side-card {
  border-radius: 24px;
  padding: 22px;
}

.side-card h2 {
  margin-bottom: 16px;
  font-size: 22px;
}

.glow-card {
  background:
    radial-gradient(
      circle at top right,
      rgba(249, 115, 22, 0.22),
      transparent 42%
    ),
    var(--panel);
}

.full-btn {
  width: 100%;
  margin-top: 18px;
}

.content-block {
  margin-top: 36px;
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), #020617);
}

.footer-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 42px 0 28px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.2fr;
  gap: 28px;
}

.footer-inner p {
  max-width: 520px;
  color: #94a3b8;
  line-height: 1.8;
}

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

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: #fb923c;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding: 18px;
  text-align: center;
  color: #64748b;
}

[hidden] {
  display: none !important;
}

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

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

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

  .detail-side {
    position: static;
  }
}

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

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

  .hero {
    height: 640px;
  }

  .hero-content {
    left: 20px;
    width: calc(100% - 40px);
  }

  .intro-band,
  .category-overview-head,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

  .rank-card {
    grid-template-columns: 150px 1fr;
  }
}

@media (max-width: 600px) {
  .nav-shell {
    width: min(100% - 24px, var(--max));
  }

  .brand {
    font-size: 19px;
  }

  .content-shell {
    width: min(100% - 24px, var(--max));
  }

  .hero {
    height: 620px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero h2 {
    font-size: 27px;
  }

  .hero-tags span {
    padding: 6px 10px;
  }

  .hero-actions,
  .intro-actions {
    display: grid;
  }

  .movie-grid,
  .category-grid,
  .three-col {
    grid-template-columns: 1fr;
  }

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

  .compact-card {
    grid-template-columns: 110px 1fr;
  }

  .ranking-list li {
    grid-template-columns: 34px 1fr;
  }

  .ranking-list em {
    grid-column: 2;
  }

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

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

  .detail-heading {
    flex-direction: column;
  }

  .detail-info,
  .side-card,
  .page-hero,
  .filter-panel,
  .category-overview-block,
  .ranking-panel,
  .side-recommend,
  .intro-band {
    border-radius: 22px;
    padding: 20px;
  }

  .player-card {
    border-radius: 20px;
  }
}
