:root {
  --page-bg: #07111f;
  --panel-bg: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --text-main: #f8fafc;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --accent: #fb923c;
  --accent-2: #fbbf24;
  --accent-3: #38bdf8;
  --line: rgba(148, 163, 184, 0.22);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.22), transparent 34rem),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 32rem),
    linear-gradient(135deg, #07111f 0%, #111827 46%, #0f172a 100%);
  min-height: 100vh;
}

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

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

img.is-missing {
  opacity: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.26);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 28px rgba(251, 146, 60, 0.35);
}

.logo-text {
  font-size: 21px;
  background: linear-gradient(90deg, #fb923c, #facc15, #fed7aa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 10px 13px;
  border-radius: 12px;
  color: var(--text-soft);
  font-weight: 700;
  font-size: 14px;
  transition: 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(251, 146, 60, 0.18);
}

.header-search {
  display: flex;
  align-items: center;
  min-width: 220px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 6px 5px 14px;
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
}

.header-search button,
.btn,
.play-button {
  border: 0;
  cursor: pointer;
  color: #111827;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  padding: 10px 17px;
  box-shadow: 0 14px 30px rgba(251, 146, 60, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.header-search button:hover,
.btn:hover,
.play-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(251, 146, 60, 0.38);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: 1px solid var(--line);
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 22px;
}

.mobile-nav {
  display: none;
  padding: 0 0 16px;
}

.mobile-nav.open {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 54px 0 64px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.08);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.98) 0%, rgba(7, 17, 31, 0.72) 48%, rgba(7, 17, 31, 0.34) 100%),
    linear-gradient(0deg, rgba(7, 17, 31, 0.98) 0%, rgba(7, 17, 31, 0.10) 46%, rgba(7, 17, 31, 0.78) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 34px;
  align-items: center;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 13px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(251, 146, 60, 0.14);
  border: 1px solid rgba(251, 146, 60, 0.28);
  font-weight: 800;
}

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

.gradient-text {
  background: linear-gradient(90deg, #fff 0%, #fed7aa 54%, #fb923c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-summary {
  max-width: 680px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.9;
}

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

.btn.secondary {
  color: #fff;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pill,
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.52);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.focus-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.44);
  border: 1px solid rgba(148, 163, 184, 0.16);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.focus-card:hover {
  transform: translateY(-3px);
  border-color: rgba(251, 146, 60, 0.52);
  background: rgba(30, 41, 59, 0.66);
}

.focus-card img {
  width: 84px;
  height: 116px;
  object-fit: cover;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.14), rgba(56, 189, 248, 0.10));
}

.focus-card h3,
.movie-card h3,
.rank-item h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.focus-card p,
.movie-card p,
.rank-item p {
  margin: 8px 0 0;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 14px;
}

.section {
  padding: 58px 0;
}

.section.compact {
  padding: 36px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.section-desc {
  margin: 8px 0 0;
  color: var(--text-muted);
  max-width: 700px;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.20);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(251, 146, 60, 0.48);
  background: rgba(30, 41, 59, 0.86);
}

.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.18), rgba(56, 189, 248, 0.12));
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

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

.poster-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 900;
  font-size: 12px;
}

.card-body {
  padding: 14px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

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

.category-box {
  min-height: 190px;
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(251, 146, 60, 0.20), rgba(56, 189, 248, 0.08)),
    rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow);
}

.category-box h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.category-box p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
}

.category-count {
  display: inline-flex;
  margin-top: 20px;
  color: #fed7aa;
  font-weight: 900;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 100px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: #111827;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 22px;
  font-weight: 950;
}

.rank-item img {
  width: 100px;
  height: 140px;
  object-fit: cover;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.18), rgba(56, 189, 248, 0.12));
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 0.3fr));
  gap: 12px;
  margin-bottom: 24px;
}

.filters input,
.filters select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 13px 14px;
  color: #fff;
  background: rgba(15, 23, 42, 0.78);
  outline: 0;
}

.page-hero {
  padding: 54px 0 28px;
}

.page-hero-card {
  padding: 32px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(251, 146, 60, 0.20), rgba(56, 189, 248, 0.10)),
    rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow);
}

.page-hero-card h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.04em;
}

.page-hero-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
  max-width: 820px;
}

.breadcrumb {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: start;
}

.player-card,
.detail-card {
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.video-shell {
  position: relative;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.20), rgba(2, 6, 23, 0.68));
  pointer-events: none;
}

.player-overlay.hidden {
  display: none;
}

.player-overlay .play-button {
  pointer-events: auto;
  font-size: 16px;
  padding: 14px 24px;
}

.player-info,
.detail-card {
  padding: 22px;
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.5vw, 52px);
  letter-spacing: -0.04em;
}

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

.info-list span {
  padding: 11px 12px;
  border-radius: 14px;
  color: var(--text-soft);
  background: rgba(148, 163, 184, 0.10);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.article-block {
  margin-top: 22px;
}

.article-block h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.article-block p {
  margin: 0;
  color: var(--text-soft);
  line-height: 2;
}

.footer {
  margin-top: 64px;
  padding: 36px 0;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.36);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.empty-state {
  display: none;
  padding: 26px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  color: var(--text-soft);
}

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

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

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

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

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

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  .hero-panel {
    display: none;
  }

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

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

  .rank-item img {
    display: none;
  }

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

@media (max-width: 520px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .logo-text {
    font-size: 18px;
  }

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

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

  .info-list {
    grid-template-columns: 1fr;
  }
}
