* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --panel-strong: #1e293b;
  --text: #ffffff;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --line: rgba(148, 163, 184, 0.18);
  --cyan: #22d3ee;
  --cyan-dark: #0891b2;
  --blue: #3b82f6;
  --yellow: #facc15;
  --red: #ef4444;
  --shadow: 0 20px 60px rgba(8, 145, 178, 0.22);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 32rem), var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.is-locked {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1280px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  gap: 1rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #00111a;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.35);
}

.brand-text,
.footer-brand span:last-child {
  font-size: 1.25rem;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  color: var(--soft);
}

.desktop-nav a,
.nav-menu > a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.nav-menu:hover > a {
  color: var(--cyan);
}

.nav-menu {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.8rem);
  left: 0;
  width: 12rem;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.4rem);
  transition: all 0.2s ease;
}

.nav-menu:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: 0.6rem;
}

.nav-dropdown a:hover {
  background: rgba(30, 41, 59, 0.9);
}

.header-search,
.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.58);
  overflow: hidden;
}

.header-search input,
.mobile-search input,
.local-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.header-search input {
  width: min(18rem, 25vw);
  padding: 0.58rem 2.8rem 0.58rem 1rem;
}

.header-search button {
  position: absolute;
  right: 0.3rem;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 50%;
  color: var(--cyan);
  background: rgba(15, 23, 42, 0.8);
}

.mobile-toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  color: var(--text);
  background: rgba(15, 23, 42, 0.8);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 1rem;
  background: rgba(15, 23, 42, 0.98);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-search {
  margin-bottom: 1rem;
}

.mobile-search input {
  padding: 0.7rem 1rem;
}

.mobile-search button {
  border: 0;
  align-self: stretch;
  padding: 0 1rem;
  color: #00111a;
  background: var(--cyan);
}

.mobile-panel nav {
  display: grid;
  gap: 0.25rem;
}

.mobile-panel nav a {
  padding: 0.7rem 0.8rem;
  border-radius: 0.7rem;
  color: var(--soft);
}

.mobile-panel nav a:hover {
  background: rgba(30, 41, 59, 0.8);
  color: var(--cyan);
}

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--panel);
}

.hero-stage,
.hero-slide,
.hero-slide > img,
.hero-cover {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-cover {
  background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.68) 52%, rgba(2, 6, 23, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 4.5rem;
}

.eyebrow,
.section-heading span,
.page-hero span,
.feature-panel span,
.category-overview-head span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.85rem;
  color: var(--yellow);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
  max-width: 52rem;
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 44rem;
  margin: 0 0 1.5rem;
  color: var(--soft);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-tags,
.detail-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.hero-tags span,
.detail-tag-list span {
  padding: 0.35rem 0.68rem;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(8, 145, 178, 0.12);
  font-size: 0.86rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.78rem 1.45rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #00111a;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.25);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.ghost-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(15, 23, 42, 0.72);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: rgba(0, 0, 0, 0.42);
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  z-index: 3;
  display: flex;
  gap: 0.5rem;
  transform: translateX(-50%);
}

.hero-dot {
  width: 0.6rem;
  height: 0.6rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: all 0.2s ease;
}

.hero-dot.is-active {
  width: 2rem;
  background: var(--cyan);
}

.section-block {
  padding-block: 4rem;
}

.wide-band {
  background: rgba(15, 23, 42, 0.62);
  border-block: 1px solid var(--line);
}

.section-heading,
.page-hero,
.category-overview-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.section-heading h2,
.page-hero h1,
.category-overview-head h2,
.feature-panel h2,
.detail-content h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.18);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

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

.movie-card.is-hidden,
.rank-item.is-hidden,
.compact-card.is-hidden {
  display: none;
}

.movie-link {
  display: block;
  height: 100%;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #111827);
}

.movie-card-large .poster-wrap {
  aspect-ratio: 21 / 9;
}

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

.movie-card:hover .poster-wrap img,
.compact-card:hover img,
.rank-item:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), transparent 62%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.poster-intro {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1rem;
  color: var(--soft);
  font-size: 0.9rem;
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.movie-card:hover .poster-intro {
  transform: translateY(0);
}

.poster-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
}

.movie-info {
  padding: 1rem;
}

.movie-info h3 {
  display: -webkit-box;
  min-height: 3.1rem;
  margin: 0 0 0.55rem;
  overflow: hidden;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-info p {
  display: -webkit-box;
  margin: 0.6rem 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.movie-meta span:first-child {
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(30, 41, 59, 0.96);
}

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

.category-tile,
.category-overview-card,
.feature-panel,
.detail-content article {
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
}

.category-tile {
  padding: 1.2rem;
}

.category-tile > a span {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--cyan);
  font-size: 1.15rem;
  font-weight: 900;
}

.category-tile > a strong {
  display: block;
  min-height: 4.8rem;
  color: var(--soft);
  font-weight: 500;
}

.category-tile div {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.category-tile div a:hover,
.inline-links a:hover,
.footer-links a:hover {
  color: var(--cyan);
}

.split-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.35fr;
  gap: 1.3rem;
}

.feature-panel {
  display: flex;
  min-height: 25rem;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  background: radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 22rem), rgba(15, 23, 42, 0.82);
}

.feature-panel p {
  color: var(--soft);
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.85rem;
  align-items: center;
  min-height: 6.5rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: rgba(15, 23, 42, 0.82);
  overflow: hidden;
}

.compact-card img {
  width: 5.5rem;
  height: 5.1rem;
  border-radius: 0.7rem;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.compact-card strong,
.rank-info strong {
  display: block;
  color: var(--text);
}

.compact-card span,
.rank-info em {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: normal;
}

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

.page-hero {
  padding-top: 4rem;
}

.page-hero p {
  max-width: 52rem;
  margin: 0;
  color: var(--soft);
  font-size: 1.05rem;
}

.small-hero,
.category-hero {
  align-items: center;
  padding-bottom: 1rem;
}

.overview-stack {
  display: grid;
  gap: 1.2rem;
  padding-bottom: 4rem;
}

.category-overview-card {
  padding: 1.3rem;
}

.tools-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.filter-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.52rem 0.8rem;
  color: var(--soft);
  background: rgba(15, 23, 42, 0.82);
  transition: all 0.2s ease;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: rgba(34, 211, 238, 0.62);
  color: #00111a;
  background: var(--cyan);
}

.local-search {
  width: min(24rem, 100%);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  background: rgba(2, 6, 23, 0.6);
}

.rank-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-item {
  border-radius: 1rem;
}

.rank-item a {
  display: grid;
  grid-template-columns: 4rem 8rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem;
}

.rank-number {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 1rem;
  color: #00111a;
  background: linear-gradient(135deg, var(--yellow), var(--cyan));
  font-weight: 900;
}

.rank-item img {
  width: 8rem;
  height: 4.8rem;
  border-radius: 0.75rem;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.rank-info p {
  margin: 0.25rem 0;
  color: var(--soft);
}

.detail-main {
  background: var(--bg);
}

.detail-hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: var(--panel);
}

.detail-hero > img,
.detail-hero-cover {
  position: absolute;
  inset: 0;
}

.detail-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) saturate(1.1);
  transform: scale(1.05);
}

.detail-hero-cover {
  background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.86) 44%, rgba(2, 6, 23, 0.32) 100%);
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(13rem, 19rem) minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.2rem;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.42);
}

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

.detail-copy h1 {
  max-width: 58rem;
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 6vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 56rem;
  color: var(--soft);
  font-size: 1.12rem;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.2rem 0;
}

.detail-tags span {
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: var(--soft);
}

.player-section {
  padding-block: 4rem 2rem;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  background: #000;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--text);
  background: radial-gradient(circle, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.62));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  display: grid;
  width: clamp(4.4rem, 10vw, 6.4rem);
  height: clamp(4.4rem, 10vw, 6.4rem);
  place-items: center;
  border-radius: 50%;
  color: #00111a;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 50px rgba(34, 211, 238, 0.34);
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.player-overlay strong {
  margin-top: -6rem;
  font-size: 1.08rem;
}

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

.detail-content {
  padding-block: 2rem;
}

.detail-content article {
  padding: clamp(1.2rem, 4vw, 2.2rem);
}

.detail-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.detail-content h2:first-child {
  margin-top: 0;
}

.detail-content p {
  color: var(--soft);
  font-size: 1.02rem;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.inline-links a {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.84);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-block: 3rem;
}

.footer-grid p {
  max-width: 38rem;
  color: var(--muted);
}

.footer-grid h2 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.1rem;
  color: var(--muted);
  text-align: center;
}

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

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

@media (max-width: 860px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-toggle {
    display: grid;
    place-items: center;
  }

  .hero-carousel {
    min-height: 500px;
    height: 72vh;
  }

  .hero-arrow {
    display: none;
  }

  .section-heading,
  .page-hero,
  .category-overview-head,
  .tools-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid,
  .dense-grid,
  .category-grid,
  .compact-grid,
  .compact-grid.four,
  .split-layout,
  .footer-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 17rem;
  }

  .rank-item a {
    grid-template-columns: 3.2rem 6rem 1fr;
    gap: 0.75rem;
  }

  .rank-item img {
    width: 6rem;
    height: 4rem;
  }
}

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

  .hero-content {
    padding-bottom: 3.6rem;
  }

  .hero-content h1,
  .hero-content h2,
  .detail-copy h1 {
    font-size: 2.2rem;
  }

  .movie-grid,
  .dense-grid {
    gap: 0.85rem;
  }

  .poster-wrap {
    aspect-ratio: 4 / 3;
  }

  .rank-info p {
    display: none;
  }
}