:root {
  --fog-950: #070b12;
  --fog-900: #0d1117;
  --fog-850: #111827;
  --fog-800: #212529;
  --fog-700: #343a40;
  --fog-600: #495057;
  --fog-300: #ced4da;
  --fog-200: #e9ecef;
  --frost-600: #005ab3;
  --frost-500: #0073e6;
  --frost-400: #1a8cff;
  --mist-800: #243b53;
  --mist-500: #627d98;
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, rgba(0, 115, 230, .22), transparent 35%), linear-gradient(180deg, var(--fog-950), var(--fog-900) 35%, #080b10);
  color: var(--fog-200);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(13, 17, 23, .88);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

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

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--frost-400), var(--frost-600));
  box-shadow: 0 12px 32px rgba(0, 115, 230, .45);
  font-size: 14px;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--fog-300);
  font-size: 14px;
  font-weight: 700;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(0, 115, 230, .22);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  background: rgba(255, 255, 255, .06);
}

.main-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--fog-800);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, .09);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: 30px;
  align-items: center;
  padding: clamp(28px, 5vw, 70px);
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity .8s ease, transform .8s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  height: 100%;
  opacity: .2;
  filter: blur(14px) saturate(1.1);
  transform: scale(1.08);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 17, 23, .96), rgba(13, 17, 23, .72) 42%, rgba(13, 17, 23, .35));
}

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 16px 0;
  max-width: 790px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: .98;
  letter-spacing: -.055em;
  color: #fff;
}

.hero-copy p {
  max-width: 680px;
  color: var(--fog-300);
  font-size: 17px;
  line-height: 1.85;
}

.eyebrow {
  margin: 0;
  color: var(--frost-400);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 800;
  font-size: 12px;
}

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

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--frost-400), var(--frost-600));
  box-shadow: 0 18px 38px rgba(0, 115, 230, .32);
}

.btn-secondary {
  color: var(--fog-200);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
}

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

.hero-poster img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .14);
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: clamp(28px, 5vw, 70px);
  bottom: 30px;
  display: flex;
  gap: 10px;
}

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

.hero-dot.active {
  width: 44px;
  background: var(--frost-400);
}

.content-section {
  padding: 54px 0 0;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 8px 0 8px;
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -.04em;
}

.section-heading p {
  margin: 0;
  max-width: 720px;
  color: var(--fog-300);
  line-height: 1.75;
}

.search-panel {
  margin: 28px 0 8px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
  border-radius: 22px;
  background: rgba(33, 37, 41, .76);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .24);
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(13, 17, 23, .85);
  color: #fff;
  padding: 0 16px;
  outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--frost-400);
  box-shadow: 0 0 0 3px rgba(26, 140, 255, .2);
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(33, 37, 41, .84);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .25);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(26, 140, 255, .62);
  box-shadow: 0 26px 58px rgba(0, 0, 0, .35);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--fog-700), var(--mist-800));
}

.poster-wrap img {
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}

.movie-card:hover .poster-wrap img {
  transform: scale(1.07);
  filter: saturate(1.08);
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 900;
  color: #fff;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  background: rgba(0, 115, 230, .9);
  font-size: 12px;
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffb020, #ff5a3d);
}

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

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-weight: 850;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover {
  color: var(--frost-400);
}

.movie-meta,
.movie-desc {
  color: var(--fog-300);
  font-size: 13px;
}

.movie-meta {
  margin: 7px 0;
}

.movie-desc {
  display: -webkit-box;
  overflow: hidden;
  min-height: 58px;
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.chip-row span,
.detail-chips span,
.hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(0, 115, 230, .16);
  color: #b9ddff;
  border: 1px solid rgba(0, 115, 230, .22);
  font-size: 12px;
  font-weight: 700;
}

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

.category-card,
.feature-card,
.detail-card {
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(36, 59, 83, .8), rgba(33, 37, 41, .9));
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .27);
}

.category-card {
  padding: 24px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-card h2,
.feature-card h2,
.detail-card h2 {
  margin: 0 0 10px;
  color: #fff;
}

.category-card p,
.feature-card p,
.detail-card p {
  color: var(--fog-300);
  line-height: 1.75;
}

.category-card:hover {
  border-color: rgba(26, 140, 255, .55);
  transform: translateY(-4px);
}

.feature-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 26px;
}

.feature-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  align-items: stretch;
}

.feature-card img {
  height: 100%;
  object-fit: cover;
}

.feature-card div {
  padding: 22px 22px 22px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--fog-300);
  font-size: 14px;
  margin-bottom: 22px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, .75fr);
  gap: 24px;
  align-items: start;
}

.player-card {
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: var(--shadow-soft);
}

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

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .74));
  transition: opacity .22s ease, visibility .22s ease;
}

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

.big-play {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--frost-400), var(--frost-600));
  box-shadow: 0 20px 46px rgba(0, 115, 230, .42);
  font-size: 32px;
  cursor: pointer;
}

.detail-panel {
  padding: 24px;
}

.detail-panel h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -.04em;
}

.detail-chips,
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.prose-section {
  margin-top: 22px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(33, 37, 41, .75);
  border: 1px solid rgba(255, 255, 255, .08);
}

.prose-section h2 {
  margin: 0 0 10px;
  color: #fff;
}

.prose-section p {
  color: var(--fog-300);
  line-height: 1.9;
}

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

.side-link {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(33, 37, 41, .72);
  border: 1px solid rgba(255, 255, 255, .08);
}

.side-link:hover {
  border-color: rgba(26, 140, 255, .55);
}

.side-link img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

.side-link b {
  display: block;
  color: #fff;
  margin-bottom: 6px;
}

.side-link span {
  color: var(--fog-300);
  font-size: 13px;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: rgba(7, 11, 18, .72);
  padding: 42px max(16px, calc((100% - 1240px) / 2)) 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr 1fr;
  gap: 28px;
}

.footer-brand {
  margin-bottom: 14px;
}

.site-footer p,
.copyright {
  color: var(--fog-300);
  line-height: 1.75;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 16px;
}

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

.footer-links a {
  color: var(--fog-300);
}

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

.copyright {
  margin-top: 32px;
  font-size: 13px;
}

.hidden-by-filter {
  display: none !important;
}

@media (max-width: 1100px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feature-band,
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 64px;
  }
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }
  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 20px;
    background: rgba(13, 17, 23, .97);
    border: 1px solid rgba(255, 255, 255, .12);
  }
  .site-nav.open {
    display: flex;
  }
  .hero-carousel {
    min-height: 720px;
  }
  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
  }
  .hero-poster img {
    max-height: 280px;
    width: min(70%, 260px);
    margin: 0 auto;
  }
  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .search-panel {
    grid-template-columns: 1fr;
  }
  .feature-card {
    grid-template-columns: 120px 1fr;
  }
}

@media (max-width: 520px) {
  .main-shell {
    width: min(100% - 20px, 1240px);
    padding-top: 16px;
  }
  .brand span:last-child {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .hero-carousel {
    border-radius: 20px;
    min-height: 660px;
  }
  .hero-slide {
    padding: 22px;
  }
  .hero-copy h1,
  .hero-copy h2 {
    font-size: 36px;
  }
  .movie-grid,
  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .feature-card {
    grid-template-columns: 1fr;
  }
  .feature-card div {
    padding: 18px;
  }
}
