:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.86);
  --panel-strong: #0f172a;
  --line: rgba(148, 163, 184, 0.16);
  --muted: #94a3b8;
  --text: #e5e7eb;
  --white: #ffffff;
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.18);
  --orange: #f97316;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  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(245, 158, 11, 0.14), transparent 34rem),
    radial-gradient(circle at 80% 0%, rgba(249, 115, 22, 0.12), transparent 26rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  z-index: -1;
}

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

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

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

.nav-wrap {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.42);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, #fbbf24, #fb923c);
  -webkit-background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #cbd5e1;
  font-size: 15px;
}

.nav-link {
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--white);
}

.menu-toggle {
  display: none;
  border: 0;
  color: white;
  font-size: 24px;
  background: transparent;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 24px 18px;
  background: rgba(2, 6, 23, 0.96);
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
  color: #cbd5e1;
}

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

.hero-shell {
  max-width: 1280px;
  margin: 28px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
}

.hero-slider {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
  background: #0f172a;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.74) 46%, rgba(2, 6, 23, 0.22)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.96), transparent 46%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: center;
  gap: 40px;
  padding: 74px 64px;
}

.hero-copy h1 {
  max-width: 780px;
  margin: 10px 0 20px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  color: var(--white);
  letter-spacing: -0.06em;
}

.eyebrow {
  margin: 0;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-text {
  max-width: 700px;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.quick-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-row span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 999px;
  padding: 6px 12px;
  color: #fde68a;
  background: var(--amber-soft);
  font-size: 12px;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.28);
}

.ghost-btn {
  border: 1px solid var(--line);
  color: var(--white);
  background: rgba(15, 23, 42, 0.52);
}

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

.ghost-btn:hover {
  border-color: rgba(245, 158, 11, 0.5);
}

.hero-poster {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.5);
  transform: rotate(2deg);
}

.hero-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  left: 64px;
  bottom: 34px;
  display: flex;
  gap: 10px;
  z-index: 4;
}

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

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

.hero-rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-search,
.hero-mini-list,
.hero-category-links {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
}

.hero-search {
  padding: 18px;
}

.hero-search span {
  display: block;
  margin-bottom: 10px;
  color: var(--white);
  font-weight: 800;
}

.hero-search input,
.search-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--white);
  outline: none;
  background: rgba(2, 6, 23, 0.58);
}

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

.hero-mini {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  padding: 8px;
  color: #e2e8f0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-mini:hover {
  background: rgba(245, 158, 11, 0.12);
  transform: translateX(2px);
}

.hero-mini img {
  height: 82px;
  object-fit: cover;
  border-radius: 14px;
}

.hero-mini span {
  overflow: hidden;
  font-weight: 700;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hero-category-links {
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-category-links a {
  border-radius: 999px;
  padding: 8px 12px;
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.1);
  font-size: 13px;
}

.hero-category-links a:hover {
  color: #111827;
  background: #f59e0b;
}

.main-wrap,
.content-section,
.category-header,
.detail-wrap,
.site-footer {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

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

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

.section-head h2,
.category-header h1,
.detail-title h1 {
  margin: 6px 0 8px;
  color: var(--white);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head span,
.category-header p,
.detail-title p {
  color: var(--muted);
  line-height: 1.8;
}

.search-panel {
  margin: 26px 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.74);
}

.quick-filters {
  margin-top: 12px;
}

.filter-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  color: #cbd5e1;
  cursor: pointer;
  background: rgba(148, 163, 184, 0.08);
}

.filter-btn.is-active,
.filter-btn:hover {
  color: #111827;
  border-color: transparent;
  background: linear-gradient(135deg, #fbbf24, #f97316);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.6));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(245, 158, 11, 0.44);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.34);
}

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

.poster-link img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.poster-shine {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.92), transparent);
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  min-width: 36px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #111827;
  font-weight: 900;
  background: linear-gradient(135deg, #fbbf24, #f97316);
}

.card-body {
  padding: 15px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #94a3b8;
  font-size: 12px;
}

.card-body h2 {
  min-height: 48px;
  margin: 9px 0 8px;
  color: var(--white);
  font-size: 17px;
  line-height: 1.4;
}

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

.card-body p {
  min-height: 64px;
  margin: 0 0 12px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.65;
}

.tag-row span {
  padding: 4px 8px;
  font-size: 11px;
}

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

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

.category-tile img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.45s ease;
}

.category-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.28));
}

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

.category-tile strong {
  color: var(--white);
  font-size: 22px;
}

.category-tile em {
  margin-top: 8px;
  color: #cbd5e1;
  font-style: normal;
  line-height: 1.65;
  font-size: 13px;
}

.breadcrumb {
  margin: 26px 0 18px;
  color: #94a3b8;
  font-size: 14px;
}

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

.detail-wrap {
  padding-top: 1px;
}

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

.player-card,
.detail-side,
.text-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
}

.video-shell {
  position: relative;
  background: #020617;
}

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

.play-cover {
  position: absolute;
  inset: 0;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(2, 6, 23, 0.28);
}

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

.play-cover span {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #111827;
  font-size: 34px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 0 42px rgba(245, 158, 11, 0.44);
}

.player-info {
  padding: 24px;
}

.detail-title h1 {
  font-size: clamp(32px, 5vw, 56px);
}

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

.detail-side {
  overflow: hidden;
}

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

.side-body {
  padding: 18px;
}

.side-body h2 {
  margin: 0 0 12px;
  color: var(--white);
}

.text-panel {
  margin-top: 28px;
  padding: 28px;
}

.text-panel h2 {
  margin: 0 0 12px;
  color: var(--white);
}

.text-panel p {
  color: #cbd5e1;
  line-height: 1.95;
}

.site-footer {
  margin-top: 68px;
  padding-top: 36px;
  padding-bottom: 38px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 34px;
}

.site-footer p,
.site-footer a {
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

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

@media (max-width: 1120px) {
  .hero-shell,
  .detail-hero {
    grid-template-columns: 1fr;
  }

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero-slider {
    min-height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 46px 28px 80px;
  }

  .hero-poster {
    max-width: 220px;
    transform: none;
  }

  .hero-dots {
    left: 28px;
  }

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

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

@media (max-width: 560px) {
  .nav-wrap,
  .main-wrap,
  .content-section,
  .category-header,
  .detail-wrap,
  .site-footer,
  .hero-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .hero-shell {
    margin-top: 16px;
  }

  .hero-slider {
    min-height: 650px;
    border-radius: 24px;
  }

  .movie-grid,
  .category-grid {
    gap: 14px;
  }

  .card-body {
    padding: 12px;
  }

  .card-body h2 {
    font-size: 15px;
  }

  .card-body p {
    display: none;
  }
}
