:root {
  color-scheme: dark;
  --bg: #070b12;
  --bg-soft: #111827;
  --bg-panel: rgba(17, 24, 39, 0.84);
  --bg-panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --muted-soft: #94a3b8;
  --brand: #f97316;
  --brand-2: #fb923c;
  --brand-dark: #9a3412;
  --card: rgba(15, 23, 42, 0.92);
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.45);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 35rem),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 36rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #050816 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
}

.navbar {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff7ed;
  background: linear-gradient(135deg, var(--brand), #dc2626);
  box-shadow: 0 14px 34px rgba(249, 115, 22, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nav-links a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  transition: 0.22s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #fff;
  background: rgba(249, 115, 22, 0.16);
}

.nav-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #ef4444);
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(249, 115, 22, 0.25);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.96);
}

.mobile-panel a {
  display: block;
  padding: 13px 14px;
  border-radius: 14px;
  color: var(--muted);
}

.mobile-panel a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  padding: 74px 0 58px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.3)),
    radial-gradient(circle at 72% 26%, rgba(249, 115, 22, 0.24), transparent 26rem);
  pointer-events: none;
  z-index: 1;
}

.hero-track {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s 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.04);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: 46px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(249, 115, 22, 0.36);
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.14);
  font-size: 13px;
  font-weight: 800;
}

.hero-title {
  margin: 22px 0 18px;
  max-width: 820px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: -0.07em;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #dc2626);
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.28);
}

.btn-ghost {
  color: #fff;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 34px;
  background: rgba(15, 23, 42, 0.65);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 16 / 22;
  object-fit: cover;
}

.hero-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.98) 58%);
}

.hero-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.15;
}

.hero-card p {
  color: var(--muted);
  line-height: 1.66;
}

.hero-dots {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
}

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

.hero-dot.is-active {
  background: var(--brand);
}

.search-panel {
  position: relative;
  z-index: 5;
  width: min(860px, 100%);
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(16px);
}

.search-input,
.filter-input,
.filter-select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: #fff;
  background: rgba(2, 6, 23, 0.7);
  outline: none;
}

.search-input {
  min-height: 50px;
  padding: 0 17px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 0.36fr));
  gap: 12px;
  margin: 26px 0 30px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
}

.filter-input,
.filter-select {
  min-height: 46px;
  padding: 0 13px;
}

.section {
  padding: 58px 0;
}

.section-tight {
  padding: 36px 0;
}

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

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

.section-heading p {
  max-width: 620px;
  margin: 9px 0 0;
  color: var(--muted-soft);
  line-height: 1.72;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

.movie-card,
.category-card,
.rank-card,
.detail-panel {
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.23);
}

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 115, 22, 0.42);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

.movie-poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.movie-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.movie-badge,
.rank-index {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(249, 115, 22, 0.94);
  font-size: 12px;
  font-weight: 900;
}

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

.movie-meta,
.detail-meta,
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted-soft);
  font-size: 13px;
}

.movie-card h3 {
  margin: 9px 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-row span,
.detail-tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.12);
  font-size: 12px;
}

.category-card {
  display: block;
  min-height: 184px;
  padding: 22px;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.18), transparent 62%),
    rgba(15, 23, 42, 0.9);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.42);
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.category-card p {
  color: var(--muted);
  line-height: 1.68;
}

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 12px;
  border-radius: 22px;
}

.rank-card img {
  width: 96px;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  object-fit: cover;
}

.rank-card h3 {
  margin: 6px 0 8px;
  font-size: 18px;
}

.rank-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-hero {
  padding: 64px 0 28px;
  background:
    radial-gradient(circle at 18% 10%, rgba(249, 115, 22, 0.18), transparent 28rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
}

.detail-hero {
  padding: 44px 0 34px;
}

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

.detail-cover {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #111827;
  box-shadow: var(--shadow);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-panel {
  padding: 30px;
  border-radius: 30px;
}

.detail-panel h1 {
  margin: 12px 0 14px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.detail-summary {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.info-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.info-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.info-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted-soft);
  font-size: 12px;
}

.info-item strong {
  font-size: 15px;
}

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

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.72)),
    rgba(0, 0, 0, 0.36);
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #dc2626);
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.35);
  font-size: 30px;
}

.text-block {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--bg-panel);
}

.text-block h2 {
  margin: 0 0 13px;
  font-size: 25px;
}

.text-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.88;
}

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

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

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted-soft);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a:hover {
  color: var(--brand-2);
}

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

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

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

  .hero-card {
    max-width: 420px;
  }
}

@media (max-width: 820px) {
  .navbar {
    height: 64px;
  }

  .nav-links,
  .nav-action {
    display: none;
  }

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

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

  .hero {
    min-height: auto;
    padding: 54px 0 42px;
  }

  .hero-content {
    gap: 30px;
  }

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

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

  .detail-panel {
    padding: 22px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

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

  .rank-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .rank-card img {
    width: 82px;
  }

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

  .section {
    padding: 42px 0;
  }
}
