:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.88);
  --bg-card-strong: #111827;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --amber: #f59e0b;
  --orange: #f97316;
  --cyan: #22d3ee;
  --green: #22c55e;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius: 22px;
  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;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(245, 158, 11, 0.14), transparent 34rem),
    radial-gradient(circle at 78% 0%, rgba(249, 115, 22, 0.13), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
  color: var(--text);
}

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: 80;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.94));
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.28);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
  background: linear-gradient(90deg, #fbbf24, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-logo {
  font-size: 25px;
}

.site-logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.35);
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #dbeafe;
  font-weight: 700;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  margin: 4px auto;
  display: block;
  border-radius: 999px;
  background: #e2e8f0;
}

.mobile-nav {
  display: none;
  padding: 10px 24px 20px;
  border-top: 1px solid var(--line);
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: #e2e8f0;
  font-weight: 700;
}

.mobile-nav a:hover {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
}

.page-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.home-main {
  padding-top: 0;
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  background: #020617;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.76) 42%, rgba(15, 23, 42, 0.2) 100%),
    linear-gradient(0deg, #020617 0%, transparent 38%);
  z-index: 2;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

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

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 92px 24px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: end;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #fbbf24;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  background: linear-gradient(90deg, #fef3c7, #fbbf24 40%, #fb923c 75%, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 18px;
  max-width: 700px;
  color: #e2e8f0;
  font-size: clamp(19px, 2.4vw, 27px);
  line-height: 1.58;
}

.hero-text {
  max-width: 720px;
  margin: 0 0 28px;
  color: #aebbd0;
  font-size: 16px;
  line-height: 1.85;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.22s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 18px 45px rgba(234, 88, 12, 0.28);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(12px);
}

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

.hero-panel {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.hero-list {
  display: grid;
  gap: 12px;
}

.hero-mini {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.78);
  transition: 0.22s ease;
}

.hero-mini:hover {
  transform: translateX(4px);
  background: rgba(51, 65, 85, 0.88);
}

.hero-mini img {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 12px;
}

.hero-mini strong {
  display: block;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.32;
}

.hero-mini span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.hero-dots {
  position: absolute;
  left: 24px;
  bottom: 28px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 28px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 48px;
  background: linear-gradient(90deg, #fbbf24, #f97316);
}

.section-block {
  margin-top: 58px;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.section-more {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(245, 158, 11, 0.08);
  font-weight: 900;
}

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

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

.movie-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111827;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent 55%);
  opacity: 0.92;
}

.rank-badge,
.heat-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 42px;
  height: 32px;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f97316);
}

.heat-badge {
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  color: #ffffff;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.72);
}

.card-title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.38;
}

.card-title a:hover {
  color: #fbbf24;
}

.card-text {
  min-height: 3.25em;
  margin: 0 0 14px;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.62;
}

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

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #dbeafe;
  font-size: 12px;
  background: rgba(51, 65, 85, 0.74);
}

.card-category {
  display: inline-flex;
  margin-top: 14px;
  color: #fbbf24;
  font-size: 13px;
  font-weight: 900;
}

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

.category-card a {
  position: relative;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(15, 23, 42, 0.85) 42%),
    rgba(15, 23, 42, 0.78);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
  transition: 0.24s ease;
}

.category-card a:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.5);
}

.category-glow {
  position: absolute;
  right: -60px;
  top: -70px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.24);
  filter: blur(8px);
}

.category-card strong {
  position: relative;
  font-size: 22px;
}

.category-card p {
  position: relative;
  margin: 12px 0;
  color: var(--muted-strong);
  line-height: 1.68;
}

.category-card em {
  position: relative;
  color: #fbbf24;
  font-style: normal;
  font-weight: 900;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 14px;
  margin: 0 0 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  color: #f8fafc;
  background: rgba(2, 6, 23, 0.56);
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(251, 191, 36, 0.68);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.filter-empty {
  display: none;
  padding: 40px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  background: rgba(15, 23, 42, 0.72);
}

.filter-empty.is-visible {
  display: block;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.28;
}

.detail-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px) saturate(1.1);
  transform: scale(1.06);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.72));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 34px;
  padding: 34px;
  align-items: center;
}

.detail-cover {
  border-radius: 24px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #111827;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.42);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.detail-lead {
  margin: 0 0 18px;
  color: #e2e8f0;
  font-size: 20px;
  line-height: 1.72;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(51, 65, 85, 0.78);
  font-weight: 800;
}

.detail-section {
  margin-top: 42px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
}

.detail-section h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.detail-section p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.92;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: var(--shadow);
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  position: relative;
  z-index: 1;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.08em;
  background:
    radial-gradient(circle at center, rgba(249, 115, 22, 0.28), transparent 24rem),
    rgba(2, 6, 23, 0.45);
  cursor: pointer;
}

.player-start span {
  padding: 18px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 18px 46px rgba(249, 115, 22, 0.35);
}

.player-start.is-hidden {
  display: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 24px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
}

.footer-logo {
  font-size: 24px;
}

.site-footer p {
  color: var(--muted);
  line-height: 1.72;
}

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

.footer-links a {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
}

.footer-links a:hover {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.44);
}

[hidden] {
  display: none !important;
}

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

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

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

  .hero-panel {
    max-width: 640px;
  }
}

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

  .nav-toggle {
    display: block;
  }

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

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: 72px;
  }

  .movie-grid,
  .movie-grid.compact,
  .category-grid,
  .filter-panel,
  .detail-hero-inner,
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .filter-panel .search-box,
  .detail-copy,
  .footer-inner > div:first-child {
    grid-column: 1 / -1;
  }

  .detail-hero-inner {
    padding: 22px;
  }

  .detail-cover {
    max-width: 320px;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    margin-top: 14px;
  }

  .footer-links {
    justify-content: start;
  }
}

@media (max-width: 560px) {
  .site-header-inner,
  .page-main,
  .hero-content,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-logo {
    font-size: 20px;
  }

  .movie-grid,
  .movie-grid.compact,
  .category-grid,
  .filter-panel,
  .detail-hero-inner,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-panel,
  .detail-section {
    padding: 20px;
  }

  .hero-dots {
    left: 16px;
    bottom: 16px;
  }
}
