:root {
  --color-bg: #020617;
  --color-bg-soft: #0f172a;
  --color-panel: rgba(15, 23, 42, 0.82);
  --color-border: rgba(30, 41, 59, 0.72);
  --color-text: #e2e8f0;
  --color-muted: #94a3b8;
  --color-dim: #64748b;
  --color-cyan: #22d3ee;
  --color-blue: #3b82f6;
  --color-pink: #f472b6;
  --shadow-cyan: 0 24px 80px rgba(34, 211, 238, 0.16);
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.14), transparent 34rem),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.12), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #07111f 48%, #020617 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.glass-effect {
  border: 1px solid var(--color-border);
  background: var(--color-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
}

.text-gradient {
  background: linear-gradient(90deg, var(--color-cyan), var(--color-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #00111a;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
  box-shadow: 0 0 36px rgba(34, 211, 238, 0.42);
}

.brand-text strong {
  display: block;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 800;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 600;
  flex-wrap: wrap;
}

.main-nav a {
  position: relative;
  transition: color 0.24s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--color-cyan);
  transition: width 0.24s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--color-cyan);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  width: 100%;
}

.nav-divider {
  width: 1px;
  height: 16px;
  background: rgba(148, 163, 184, 0.28);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
  color: var(--color-text);
  padding: 8px 12px;
}

main {
  padding-top: var(--header-height);
}

.hero-carousel {
  position: relative;
  min-height: clamp(660px, 86vh, 860px);
  overflow: hidden;
  background: #020617;
}

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

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

.hero-slide__bg,
.detail-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.06);
}

.hero-slide__shade,
.detail-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.42)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.4) 36%, rgba(2, 6, 23, 0.2) 100%);
}

.hero-content {
  position: relative;
  min-height: clamp(660px, 86vh, 860px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 420px;
  align-items: center;
  gap: 56px;
  padding: 80px 0 132px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-cyan);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-blue));
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 6.4vw, 86px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.hero-desc {
  max-width: 700px;
  color: #cbd5e1;
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-meta span,
.detail-meta span {
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(15, 23, 42, 0.66);
  color: #cbd5e1;
  font-size: 14px;
}

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

.btn-primary,
.btn-ghost,
.link-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 12px;
  padding: 0 20px;
  font-weight: 800;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.btn-primary {
  color: #00111a;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
  box-shadow: 0 18px 44px rgba(34, 211, 238, 0.24);
}

.btn-ghost,
.link-more {
  color: var(--color-text);
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.56);
}

.btn-primary:hover,
.btn-ghost:hover,
.link-more:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-cyan);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.22);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  transform: perspective(900px) rotateY(-8deg) rotateX(4deg);
}

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

.hero-poster span {
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #00111a;
  background: var(--color-cyan);
  box-shadow: 0 0 42px rgba(34, 211, 238, 0.52);
}

.hero-tools {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hero-dots {
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 38px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.24);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: linear-gradient(90deg, var(--color-cyan), var(--color-blue));
}

.hero-search {
  display: flex;
  min-width: min(520px, 52vw);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(16px);
}

.hero-search input,
.filter-panel input,
.filter-panel select {
  border: 0;
  outline: 0;
  color: var(--color-text);
  background: rgba(2, 6, 23, 0.36);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 15px 18px;
}

.hero-search button {
  border: 0;
  color: #00111a;
  font-weight: 900;
  padding: 0 22px;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
  cursor: pointer;
}

.section-block {
  padding: 68px 0;
}

.section-head {
  margin-bottom: 28px;
}

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

.section-head h2 {
  margin: 10px 0 8px;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.12;
}

.section-head p,
.page-hero p,
.category-overview p,
.site-footer p {
  max-width: 780px;
  color: var(--color-muted);
}

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

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 22px;
  background: var(--color-bg-soft);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  transform: scale(1.05);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.18));
}

.category-card span,
.category-card strong,
.category-card em {
  position: relative;
  z-index: 1;
}

.category-card span {
  font-size: 24px;
  font-weight: 900;
}

.category-card strong {
  color: var(--color-cyan);
  margin-top: 4px;
}

.category-card em {
  color: var(--color-muted);
  font-style: normal;
  font-size: 13px;
  margin-top: 10px;
}

.category-card:hover img {
  opacity: 0.54;
  transform: scale(1.12);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.76);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.52);
  box-shadow: var(--shadow-cyan);
}

.movie-card__cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.movie-card__cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.movie-card__badge,
.movie-card__play {
  position: absolute;
  z-index: 2;
}

.movie-card__badge {
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 4px 10px;
  color: #00111a;
  background: var(--color-cyan);
  font-size: 12px;
  font-weight: 900;
}

.movie-card__play {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #00111a;
  background: rgba(34, 211, 238, 0.9);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.48);
}

.movie-card__body {
  padding: 15px;
}

.movie-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--color-dim);
  font-size: 12px;
}

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

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

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

.tag-row span {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 3px 8px;
  color: #cbd5e1;
  background: rgba(2, 6, 23, 0.4);
  font-size: 12px;
}

.tag-row--large span {
  padding: 6px 11px;
  font-size: 13px;
}

.ranking-list {
  display: grid;
  gap: 14px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 56px 96px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.76);
}

.ranking-row__rank {
  color: var(--color-cyan);
  font-size: 26px;
  font-weight: 900;
  text-align: center;
}

.ranking-row__thumb {
  overflow: hidden;
  border-radius: 13px;
}

.ranking-row__thumb img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.ranking-row__content h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.ranking-row__content p {
  margin: 0 0 5px;
  color: var(--color-muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ranking-row__content span {
  color: var(--color-dim);
  font-size: 12px;
}

.ranking-row__heat {
  color: #00111a;
  border-radius: 999px;
  padding: 6px 10px;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
  text-align: center;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 72px;
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.16), transparent 30rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.95));
}

.page-hero h1 {
  font-size: clamp(38px, 5vw, 66px);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 160px;
  gap: 12px;
  margin-bottom: 26px;
  border-radius: 20px;
  padding: 14px;
}

.filter-panel--large {
  grid-template-columns: 1fr 190px 170px;
}

.mini-filter {
  width: min(500px, 100%);
  grid-template-columns: 1fr 150px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 13px;
  padding: 0 14px;
}

.category-overview-list {
  display: grid;
  gap: 24px;
}

.category-overview {
  border-radius: 24px;
  padding: 22px;
}

.category-overview__head {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
}

.category-overview__image {
  overflow: hidden;
  border-radius: 18px;
}

.category-overview__image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}

.detail-hero__inner {
  position: relative;
  padding: 44px 0 70px;
}

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

.breadcrumb a {
  color: #cbd5e1;
}

.detail-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 26px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.46);
}

.detail-copy p {
  max-width: 860px;
  color: #cbd5e1;
  font-size: 18px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  color: var(--color-text);
  background:
    linear-gradient(0deg, rgba(2, 6, 23, 0.8), rgba(2, 6, 23, 0.3)),
    radial-gradient(circle at center, rgba(34, 211, 238, 0.18), transparent 28rem);
  cursor: pointer;
}

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

.player-start span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #00111a;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
  font-size: 34px;
  box-shadow: 0 0 60px rgba(34, 211, 238, 0.55);
}

.player-start strong {
  font-size: 26px;
}

.player-start em {
  color: var(--color-muted);
  font-style: normal;
}

.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
}

.content-panel,
.info-panel,
.detail-nav {
  border-radius: 24px;
  padding: 26px;
}

.content-panel h2,
.info-panel h2 {
  margin: 0 0 14px;
  color: var(--color-cyan);
}

.content-panel p {
  color: #cbd5e1;
  font-size: 16px;
  margin: 0 0 24px;
}

.info-panel dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px 14px;
  margin: 0;
}

.info-panel dt {
  color: var(--color-dim);
}

.info-panel dd {
  margin: 0;
  color: #cbd5e1;
}

.detail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.detail-nav a {
  color: var(--color-cyan);
}

.site-footer {
  border-top: 1px solid var(--color-border);
  background: rgba(2, 6, 23, 0.92);
  padding: 52px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
}

.footer-brand {
  display: inline-block;
  font-size: 25px;
  font-weight: 900;
  margin-bottom: 12px;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

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

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

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

.is-filtered-out {
  display: none !important;
}

@media (max-width: 1180px) {
  .main-nav {
    gap: 12px;
    font-size: 14px;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

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

  .ranking-list--compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 68px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 11px 12px;
    border-radius: 12px;
  }

  .main-nav a:hover,
  .main-nav a.is-active {
    background: rgba(34, 211, 238, 0.09);
  }

  .main-nav a::after,
  .nav-divider {
    display: none;
  }

  .hero-content,
  .detail-grid,
  .detail-body,
  .footer-grid,
  .category-overview__head {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 52px;
    gap: 28px;
  }

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

  .hero-tools,
  .section-head--between {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-search,
  .mini-filter {
    min-width: 0;
    width: 100%;
  }

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

  .filter-panel,
  .filter-panel--large,
  .mini-filter {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 300px;
  }
}

@media (max-width: 560px) {
  .container-custom {
    width: min(100% - 22px, 1280px);
  }

  .brand {
    min-width: 0;
  }

  .brand-text em {
    display: none;
  }

  .hero-carousel,
  .hero-content {
    min-height: 720px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 38px;
  }

  .hero-tools {
    bottom: 18px;
  }

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

  .ranking-row {
    grid-template-columns: 42px 72px minmax(0, 1fr);
  }

  .ranking-row__heat {
    grid-column: 2 / 4;
    justify-self: start;
  }

  .detail-nav {
    flex-direction: column;
    align-items: flex-start;
  }
}
