:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --teal-500: #14b8a6;
  --amber-400: #fbbf24;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--slate-800);
  background: var(--slate-50);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: var(--white);
  background: rgba(15, 23, 42, 0.96);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--emerald-400), var(--teal-500));
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(16, 185, 129, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 22px;
  letter-spacing: 0.02em;
}

.brand-text em {
  color: var(--slate-300);
  font-size: 12px;
  font-style: normal;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--slate-200);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--emerald-400);
  background: rgba(16, 185, 129, 0.1);
}

.global-search {
  display: flex;
  align-items: center;
  width: min(300px, 28vw);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.global-search input {
  width: 100%;
  min-width: 0;
  padding: 10px 14px;
  color: var(--white);
  border: 0;
  outline: 0;
  background: transparent;
}

.global-search input::placeholder {
  color: var(--slate-300);
}

.global-search button {
  padding: 10px 16px;
  color: var(--slate-950);
  border: 0;
  background: var(--emerald-400);
  cursor: pointer;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  border-radius: 999px;
}

.hero-slider {
  position: relative;
  min-height: 640px;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), var(--slate-700) 50%, #064e3b);
  overflow: hidden;
}

.hero-stage {
  position: relative;
  min-height: 640px;
}

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

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

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

.hero-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 78% 24%, rgba(16, 185, 129, 0.26), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.78) 44%, rgba(15, 23, 42, 0.32) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.12));
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 118px;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--emerald-400);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-content h2 {
  margin: 18px 0 12px;
  color: var(--white);
  font-size: clamp(25px, 3vw, 44px);
  line-height: 1.15;
  font-weight: 800;
}

.hero-content p {
  max-width: 700px;
  margin: 0 0 24px;
  color: var(--slate-200);
  font-size: 19px;
}

.hero-tags,
.tag-row,
.detail-meta,
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span,
.detail-meta span,
.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  color: var(--slate-700);
  border-radius: 999px;
  background: var(--slate-100);
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

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

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

.btn-primary {
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--emerald-400), var(--teal-500));
  box-shadow: 0 18px 34px rgba(16, 185, 129, 0.32);
}

.btn-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 92px;
  z-index: 4;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

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

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

.hero-category-strip {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-category-strip a {
  padding: 8px 13px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(10px);
}

.search-band {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 450px);
  gap: 24px;
  align-items: center;
  margin-top: -44px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 10;
}

.search-band h2,
.section-heading h2,
.story-card h2,
.site-footer h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.search-band p,
.section-heading p,
.category-card p,
.story-card p,
.site-footer p,
.page-hero p,
.movie-info p {
  color: var(--slate-600);
}

.big-search,
.filter-panel {
  display: flex;
  gap: 10px;
}

.big-search input,
.page-filter {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  outline: 0;
  background: var(--slate-50);
}

.big-search input:focus,
.page-filter:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.big-search button {
  padding: 0 24px;
  color: var(--white);
  border: 0;
  border-radius: 999px;
  background: var(--emerald-600);
  cursor: pointer;
}

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

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

.section-heading p {
  margin: 7px 0 0;
}

.section-heading a {
  color: var(--emerald-700);
  font-weight: 800;
}

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

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

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

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

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: var(--shadow);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-200), var(--slate-100));
}

.movie-poster img,
.category-cover img,
.category-tile img,
.poster-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.movie-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px;
}

.movie-meta {
  color: var(--emerald-700);
  font-size: 12px;
  font-weight: 800;
}

.movie-info h2 {
  margin: 7px 0 8px;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}

.movie-card-compact .movie-info h2 {
  font-size: 15px;
}

.movie-info p {
  display: -webkit-box;
  margin: 0 0 14px;
  overflow: hidden;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-compact .movie-info p {
  display: none;
}

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

.movie-card-horizontal .movie-poster {
  height: 100%;
  min-height: 154px;
  aspect-ratio: auto;
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  color: var(--slate-950);
  border-radius: 999px;
  background: var(--amber-400);
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.25);
}

.channel-section {
  width: min(1230px, calc(100% - 24px));
  padding: 42px 24px;
  border-radius: 32px;
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
}

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

.category-tile,
.category-card {
  overflow: hidden;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.category-tile {
  position: relative;
  display: block;
  min-height: 210px;
}

.category-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 12%, rgba(2, 6, 23, 0.88));
}

.category-tile img {
  position: absolute;
  inset: 0;
}

.category-tile span,
.category-tile em {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 2;
}

.category-tile span {
  bottom: 55px;
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
}

.category-tile em {
  bottom: 18px;
  color: var(--slate-200);
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-preview,
.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.page-shell {
  min-height: 60vh;
}

.page-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 82% 18%, rgba(16, 185, 129, 0.24), transparent 28%),
    linear-gradient(135deg, var(--slate-900), var(--slate-700) 52%, #064e3b);
}

.compact-hero {
  padding: 62px 0 70px;
}

.page-hero h1 {
  max-width: 850px;
}

.page-hero p {
  max-width: 680px;
  color: var(--slate-200);
  font-size: 18px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: var(--emerald-400);
}

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

.category-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 14px;
}

.category-cover {
  display: block;
  overflow: hidden;
  min-height: 170px;
  border-radius: 15px;
  background: var(--slate-100);
}

.category-card h2 {
  margin: 4px 0 8px;
  color: var(--slate-900);
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  margin: 0 0 12px;
  font-size: 14px;
}

.category-preview-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--emerald-700);
  font-size: 14px;
  font-weight: 700;
}

.listing-section {
  padding: 48px 0 0;
}

.filter-panel {
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.page-filter {
  flex: 1 1 280px;
}

.filter-chips {
  flex: 3 1 480px;
}

.filter-chip {
  border: 0;
  color: var(--slate-700);
  cursor: pointer;
}

.filter-chip.is-active {
  color: var(--slate-950);
  background: var(--emerald-400);
}

.movie-card.is-hidden {
  display: none;
}

.detail-hero {
  position: relative;
  color: var(--white);
  background: var(--slate-900);
  overflow: hidden;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.72)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.28));
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px);
  opacity: 0.62;
  transform: scale(1.04);
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 36px;
  align-items: center;
  padding: 46px 0 72px;
}

.poster-panel {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.5);
}

.detail-copy {
  max-width: 760px;
}

.lead-text {
  max-width: 720px;
  color: var(--slate-200);
  font-size: 20px;
}

.detail-meta span,
.detail-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.detail-tags {
  margin: 16px 0 26px;
}

.player-section {
  margin-top: -42px;
  position: relative;
  z-index: 5;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(226, 232, 240, 0.3);
  border-radius: 26px;
  background: var(--slate-950);
  box-shadow: var(--shadow);
}

.movie-player {
  width: 100%;
  height: 100%;
  background: var(--slate-950);
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 12px;
  color: var(--white);
  border: 0;
  background:
    radial-gradient(circle, rgba(16, 185, 129, 0.22), transparent 36%),
    rgba(2, 6, 23, 0.46);
  cursor: pointer;
}

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

.play-icon {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--emerald-400), var(--teal-500));
  box-shadow: 0 18px 40px rgba(16, 185, 129, 0.35);
  position: relative;
}

.play-icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  content: "";
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 23px solid var(--slate-950);
  transform: translate(-36%, -50%);
}

.player-cover strong {
  font-size: 22px;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 42px;
}

.story-card {
  padding: 28px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.story-card h2 {
  margin-bottom: 14px;
}

.story-card p {
  margin: 0 0 12px;
  font-size: 16px;
}

.site-footer {
  margin-top: 80px;
  color: var(--slate-300);
  background: var(--slate-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  padding: 46px 0 36px;
}

.footer-logo {
  display: block;
  margin-bottom: 12px;
  color: var(--white);
  font-size: 24px;
}

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

.site-footer a {
  display: block;
  margin: 7px 0;
  color: var(--slate-300);
}

.site-footer a:hover {
  color: var(--emerald-400);
}

.footer-bottom {
  padding: 18px 0;
  color: var(--slate-500);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  text-align: center;
}

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

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

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

@media (max-width: 880px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav,
  .global-search {
    display: none;
    width: 100%;
  }

  .site-header.is-open .main-nav,
  .site-header.is-open .global-search {
    display: flex;
  }

  .main-nav {
    flex-wrap: wrap;
    order: 3;
    margin-left: 0;
  }

  .global-search {
    order: 4;
  }

  .hero-slider,
  .hero-stage {
    min-height: 700px;
  }

  .hero-content {
    padding-top: 92px;
  }

  .hero-category-strip {
    bottom: 22px;
  }

  .hero-dots {
    bottom: 126px;
  }

  .search-band,
  .detail-layout,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .poster-panel {
    max-width: 280px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

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

  .brand-text em {
    display: none;
  }

  .hero-slider,
  .hero-stage {
    min-height: 760px;
  }

  .hero-content p,
  .lead-text {
    font-size: 16px;
  }

  .hero-actions,
  .big-search {
    flex-direction: column;
  }

  .big-search button {
    min-height: 46px;
  }

  .section-heading {
    display: block;
  }

  .featured-grid,
  .listing-grid,
  .movie-grid,
  .compact-grid,
  .rank-preview,
  .rank-list,
  .category-grid,
  .category-page-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal,
  .category-card {
    grid-template-columns: 108px 1fr;
  }

  .movie-card-horizontal .movie-poster,
  .category-cover {
    min-height: 150px;
  }

  .detail-layout {
    gap: 22px;
    padding-bottom: 58px;
  }

  .player-section {
    margin-top: -28px;
  }

  .story-card {
    padding: 22px;
  }
}
