:root {
  --dark-900: #060708;
  --dark-850: #080a0d;
  --dark-800: #0b0d10;
  --dark-700: #101419;
  --dark-650: #12171e;
  --dark-600: #151a21;
  --dark-500: #232a33;
  --gray-100: #f5f7fb;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --primary: #f5871f;
  --primary-light: #f79f3f;
  --primary-soft: rgba(245, 135, 31, 0.16);
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-200);
  background: radial-gradient(circle at 20% 0%, rgba(245, 135, 31, 0.12), transparent 34rem), var(--dark-800);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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: 50;
  background: rgba(21, 26, 33, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

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

.nav-wrap {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #ffbd67);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(245, 135, 31, 0.28);
  font-size: 14px;
}

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

.nav-link,
.mobile-link {
  color: var(--gray-300);
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--primary);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: var(--dark-700);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.mobile-link {
  padding: 12px 14px;
  background: var(--dark-700);
  border-radius: 12px;
}

.hero {
  position: relative;
  height: min(800px, 72vh);
  min-height: 520px;
  overflow: hidden;
  background: var(--dark-900);
}

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

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--dark-900) 0%, rgba(11, 13, 16, 0.92) 38%, rgba(11, 13, 16, 0.24) 72%, rgba(11, 13, 16, 0.06) 100%);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 42%;
  background: linear-gradient(0deg, var(--dark-800), transparent);
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(660px, 100%);
  padding-top: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 24px;
  color: var(--gray-300);
  font-size: clamp(16px, 2vw, 20px);
  max-width: 58ch;
}

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

.tag-pill,
.category-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  color: var(--primary-light);
  background: var(--primary-soft);
  border: 1px solid rgba(245, 135, 31, 0.22);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 14px 30px rgba(245, 135, 31, 0.24);
}

.btn-primary:hover {
  background: var(--primary-light);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.hero-controls {
  position: absolute;
  z-index: 6;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 52px;
  display: flex;
  gap: 10px;
}

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

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

main {
  display: block;
}

.section {
  padding: 68px 0 0;
}

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

.section-head h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.2;
}

.section-head h2 span {
  color: var(--primary);
}

.section-head p {
  margin: 6px 0 0;
  color: var(--gray-400);
}

.section-more {
  color: var(--primary);
  font-weight: 800;
  white-space: nowrap;
}

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

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

.movie-card {
  overflow: hidden;
  background: var(--dark-600);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 135, 31, 0.36);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--dark-900);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 56%);
  opacity: 0.78;
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(245, 135, 31, 0.92);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card:hover .play-dot {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.year-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: 10px;
  right: auto;
  background: var(--primary);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 17px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--primary);
}

.card-body p {
  margin: 0 0 12px;
  color: var(--gray-400);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.2em;
}

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.mini-tags span {
  padding: 4px 8px;
  color: var(--gray-300);
  background: var(--dark-700);
  border-radius: 8px;
  font-size: 12px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 13px;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 140px 1fr;
}

.horizontal-card .poster-link {
  aspect-ratio: auto;
  min-height: 210px;
}

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

.category-card {
  padding: 22px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, var(--dark-600), var(--dark-700));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 135, 31, 0.4);
}

.category-card h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 20px;
}

.category-card p {
  margin: 0;
  color: var(--gray-400);
  font-size: 14px;
}

.category-card strong {
  color: var(--primary);
  font-size: 15px;
}

.page-hero {
  padding: 72px 0 36px;
  background: linear-gradient(180deg, rgba(245, 135, 31, 0.08), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-hero h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.03em;
}

.page-hero p {
  margin: 0;
  max-width: 760px;
  color: var(--gray-400);
  font-size: 18px;
}

.filter-bar {
  margin: 32px 0 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  height: 48px;
  color: #fff;
  background: var(--dark-600);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(245, 135, 31, 0.58);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0;
  color: var(--gray-400);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--primary);
}

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

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.22));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-start {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--primary);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(245, 135, 31, 0.32);
  font-size: 28px;
}

.detail-card,
.side-card {
  margin-top: 22px;
  padding: 24px;
  background: var(--dark-700);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
}

.detail-card h1 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--gray-400);
}

.detail-intro {
  color: var(--gray-200);
  font-size: 18px;
}

.prose h2,
.side-card h2 {
  margin: 22px 0 10px;
  color: #fff;
  font-size: 22px;
}

.prose p {
  color: var(--gray-300);
  margin: 0 0 14px;
}

.side-card {
  margin-top: 0;
  position: sticky;
  top: 92px;
}

.side-poster {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--dark-900);
}

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

.info-list {
  display: grid;
  gap: 10px;
  color: var(--gray-300);
  font-size: 14px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.info-list span:first-child {
  color: var(--gray-500);
}

.related-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.related-list a {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
}

.related-list img {
  width: 56px;
  height: 78px;
  object-fit: cover;
  border-radius: 8px;
}

.related-list strong {
  display: block;
  color: #fff;
  font-size: 14px;
}

.related-list small {
  color: var(--gray-500);
}

.empty-state {
  display: none;
  padding: 34px;
  text-align: center;
  color: var(--gray-400);
  background: var(--dark-700);
  border-radius: var(--radius);
}

.site-footer {
  margin-top: 80px;
  padding: 44px 0 28px;
  background: var(--dark-700);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 36px;
}

.footer-main p {
  max-width: 640px;
  color: var(--gray-400);
}

.footer-links h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

.footer-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a {
  color: var(--gray-400);
}

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

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 0;
  padding-top: 24px;
  color: var(--gray-500);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
  text-align: center;
}

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

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

  .side-card {
    position: static;
  }
}

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

  .menu-button {
    display: block;
  }

  .hero {
    height: auto;
    min-height: 620px;
  }

  .hero-slide::before {
    background: linear-gradient(0deg, var(--dark-900) 0%, rgba(11, 13, 16, 0.82) 65%, rgba(11, 13, 16, 0.28) 100%);
  }

  .hero-inner {
    align-items: end;
    padding: 120px 0 90px;
  }

  .hero-controls {
    left: 16px;
    right: auto;
    bottom: 34px;
  }

  .section {
    padding-top: 48px;
  }

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

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

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

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

  .horizontal-card .poster-link {
    min-height: 166px;
  }

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

@media (max-width: 480px) {
  .movie-grid,
  .movie-grid.wide-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .brand,
  .footer-brand {
    font-size: 18px;
  }

  .card-body p {
    min-height: 0;
  }
}
