: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-600: #059669;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --orange-500: #f97316;
  --blue-600: #2563eb;
  --violet-600: #7c3aed;
  --rose-600: #e11d48;
  --radius-xl: 22px;
  --radius-lg: 16px;
  --shadow-card: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-hover: 0 28px 70px rgba(15, 23, 42, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-800);
  background: linear-gradient(180deg, var(--slate-50), var(--slate-100));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-width: 320px;
}

img {
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--slate-950), var(--slate-900), var(--slate-800));
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.28);
}

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

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
}

.brand-mark,
.footer-logo span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--emerald-400), #a7f3d0);
  box-shadow: 0 0 26px rgba(52, 211, 153, 0.36);
  font-size: 15px;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong,
.footer-logo strong {
  font-size: 21px;
  letter-spacing: -0.03em;
}

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

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

.nav-link {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--emerald-400);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.16);
}

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
  border-radius: 999px;
}

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

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

.hero-carousel {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: var(--slate-900);
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.9s ease;
  pointer-events: none;
}

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

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 72vh;
}

.hero-copy {
  width: min(720px, 100%);
  color: #ffffff;
  padding: 86px 0 110px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--emerald-500);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.eyebrow.dark {
  color: var(--emerald-700, #047857);
  background: rgba(16, 185, 129, 0.12);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-copy .lead {
  max-width: 720px;
  color: rgba(226, 232, 240, 0.92);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.hero-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 24px 0;
}

.hero-meta span,
.card-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-meta span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

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

.primary-btn,
.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 13px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: var(--emerald-500);
  box-shadow: 0 16px 34px rgba(16, 185, 129, 0.26);
}

.primary-btn:hover {
  background: var(--emerald-600);
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(16, 185, 129, 0.3);
}

.primary-btn.small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.ghost-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
}

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

.hero-arrow,
.hero-dots button {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
}

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

.hero-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--emerald-400);
}

.search-panel {
  background: #ffffff;
  border-bottom: 1px solid var(--slate-200);
}

.search-box {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(260px, 1fr);
  gap: 24px;
  align-items: start;
  padding: 36px 0;
}

.search-box h2 {
  margin: 12px 0 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.search-field,
.filter-bar label {
  display: grid;
  gap: 9px;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 800;
}

.search-field input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  color: var(--slate-900);
  background: var(--slate-50);
  outline: none;
}

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

.search-results {
  grid-column: 1 / -1;
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.search-results.is-open {
  display: grid;
}

.search-result {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 13px;
  padding: 12px;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  color: inherit;
  background: #ffffff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.search-result img {
  width: 78px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--slate-200);
}

.search-result strong,
.compact-link strong {
  display: block;
  color: var(--slate-900);
  font-size: 15px;
  line-height: 1.35;
}

.search-result em,
.compact-link em {
  display: block;
  margin-top: 4px;
  color: var(--slate-500);
  font-size: 12px;
  font-style: normal;
}

.category-strip,
.content-section,
.split-section,
.detail-content,
.player-section {
  padding: 64px 0;
}

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

.section-head.compact {
  align-items: center;
}

.section-head span {
  color: var(--emerald-600);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-head h2 {
  margin: 8px 0 0;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--slate-500);
  line-height: 1.7;
}

.section-more {
  color: var(--emerald-700, #047857);
  background: rgba(16, 185, 129, 0.1);
}

.section-more:hover {
  transform: translateY(-2px);
  background: rgba(16, 185, 129, 0.16);
}

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

.category-tile,
.category-detail-card {
  color: inherit;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

.category-tile {
  min-height: 150px;
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.category-tile strong {
  display: block;
  color: var(--slate-900);
  font-size: 22px;
  margin-bottom: 10px;
}

.category-tile span {
  color: var(--slate-500);
  line-height: 1.6;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.movie-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: var(--slate-200);
}

.small-card .movie-cover {
  aspect-ratio: 4 / 3;
}

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

.movie-card:hover .movie-cover img {
  transform: scale(1.06);
  filter: brightness(0.82);
}

.quality,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.quality {
  right: 12px;
  background: var(--emerald-500);
}

.rank-badge {
  left: 12px;
  min-width: 38px;
  background: linear-gradient(135deg, var(--orange-500), var(--rose-600));
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(16, 185, 129, 0.9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.card-body {
  padding: 18px;
}

.card-body h2 {
  margin: 0 0 9px;
  color: var(--slate-900);
  font-size: 19px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.card-body p {
  margin: 0;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.card-meta {
  margin: 14px 0 0;
  gap: 7px;
}

.card-meta span {
  color: var(--slate-600);
  background: var(--slate-100);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span {
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
}

.warm {
  padding: 68px 0;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(16, 185, 129, 0.08));
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

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

.compact-link {
  display: grid;
  grid-template-columns: auto 74px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 15px;
  color: inherit;
  background: var(--slate-50);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-link:hover {
  background: rgba(16, 185, 129, 0.1);
  transform: translateX(4px);
}

.compact-link img {
  width: 74px;
  height: 54px;
  border-radius: 11px;
  object-fit: cover;
  background: var(--slate-200);
}

.small-rank {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--slate-900);
  font-size: 12px;
  font-weight: 900;
}

.page-hero,
.detail-hero {
  color: #ffffff;
  background: linear-gradient(120deg, var(--slate-950), var(--slate-800));
}

.compact-hero {
  padding: 58px 0;
}

.page-hero h1 {
  margin-bottom: 12px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.breadcrumb a {
  color: #ffffff;
  text-decoration: none;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1.2fr 0.5fr 0.5fr;
  gap: 18px;
  padding: 30px 0 0;
}

.empty-state {
  padding: 42px;
  border-radius: var(--radius-lg);
  color: var(--slate-500);
  text-align: center;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

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

.category-detail-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  padding: 24px;
}

.category-detail-copy span {
  color: var(--emerald-600);
  font-size: 13px;
  font-weight: 900;
}

.category-detail-copy h2 {
  margin: 12px 0 22px;
  color: var(--slate-900);
  font-size: 24px;
  line-height: 1.35;
}

.compact-list.mini .compact-link {
  grid-template-columns: 64px minmax(0, 1fr);
}

.compact-list.mini .compact-link .small-rank {
  display: none;
}

.detail-hero {
  min-height: 620px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 70px 0;
}

.detail-poster {
  border-radius: 26px;
  overflow: hidden;
  background: var(--slate-200);
  box-shadow: 0 34px 90px rgba(2, 6, 23, 0.38);
}

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

.detail-copy .lead {
  color: rgba(255, 255, 255, 0.9);
}

.detail-meta span {
  background: rgba(255, 255, 255, 0.16);
}

.detail-tags span {
  color: #ffffff;
  background: rgba(16, 185, 129, 0.28);
}

.player-section {
  padding-bottom: 30px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 34px 90px rgba(2, 6, 23, 0.28);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.22), rgba(2, 6, 23, 0.72));
  cursor: pointer;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding-left: 6px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--emerald-500);
  box-shadow: 0 18px 42px rgba(16, 185, 129, 0.38);
  font-size: 34px;
}

.play-overlay strong {
  font-size: 20px;
  letter-spacing: 0.04em;
}

.player-shell.is-playing .play-overlay {
  display: none;
}

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

.story-card {
  padding: 30px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.story-card h2 {
  margin: 0 0 14px;
  color: var(--slate-900);
  font-size: 28px;
  letter-spacing: -0.04em;
}

.story-card p {
  margin: 0;
  color: var(--slate-600);
  font-size: 16px;
  line-height: 1.9;
}

.site-footer {
  color: var(--slate-300);
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding: 48px 0;
}

.footer-brand p {
  max-width: 520px;
  margin: 16px 0 0;
  color: var(--slate-400, #94a3b8);
  line-height: 1.7;
}

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

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

.footer-links a {
  color: var(--slate-300);
  text-decoration: none;
}

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

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

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

  .mobile-toggle {
    display: block;
  }

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

  .movie-grid.three,
  .search-results,
  .detail-content,
  .footer-grid,
  .category-detail-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }

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

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

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

  .hero-copy {
    padding: 90px 0 120px;
  }

  .hero-actions,
  .section-head,
  .filter-bar,
  .search-box,
  .detail-hero-grid,
  .category-detail-card {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar {
    display: grid;
  }

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

  .detail-hero {
    min-height: auto;
  }

  .detail-hero-grid {
    gap: 26px;
    padding: 44px 0;
  }

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

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

  .footer-grid {
    padding: 38px 0;
  }
}
