* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #0f172a;
  --bg-soft: #111827;
  --bg-card: rgba(15, 23, 42, 0.78);
  --bg-card-strong: rgba(15, 23, 42, 0.94);
  --border: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #22d3ee;
  --accent-strong: #60a5fa;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.22), transparent 30rem),
    linear-gradient(180deg, #0f172a 0%, #1e293b 42%, #0f172a 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.92), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.nav-shell {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: white;
  box-shadow: 0 14px 34px rgba(34, 211, 238, 0.28);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.desktop-nav a,
.mobile-menu a {
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.desktop-nav a {
  padding: 24px 0 19px;
  border-bottom: 3px solid transparent;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-menu a:hover,
.mobile-menu a.is-active {
  color: var(--accent);
  border-color: var(--accent);
}

.nav-search,
.mobile-search,
.large-search {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-search input,
.mobile-search input,
.large-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.86);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.nav-search input {
  width: 230px;
  padding: 11px 16px;
}

.nav-search input:focus,
.mobile-search input:focus,
.large-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.nav-search button,
.mobile-search button,
.large-search button,
.primary-btn,
.ghost-btn,
.section-link {
  border: 0;
  cursor: pointer;
  font-weight: 900;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.nav-search button,
.mobile-search button,
.large-search button,
.primary-btn {
  color: #031521;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 14px 30px rgba(34, 211, 238, 0.2);
}

.nav-search button,
.mobile-search button {
  padding: 10px 16px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: white;
  background: transparent;
  font-size: 28px;
}

.mobile-menu {
  display: none;
  padding: 14px 24px 22px;
  border-top: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.98);
}

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

.mobile-menu nav {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.mobile-menu a {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.72);
}

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) brightness(0.82);
}

.hero-shadow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(2, 6, 23, 0.66) 44%, rgba(2, 6, 23, 0.1) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 1) 0%, transparent 42%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 72px 24px 92px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 360px;
  align-items: center;
  gap: 56px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-copy h1,
.hero-copy h2 {
  font-size: clamp(44px, 7vw, 86px);
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.46);
}

.hero-copy p,
.page-hero p,
.detail-copy .lead,
.search-panel p,
.side-panel p,
.section-heading p,
.content-card p,
.ranking-item p,
.movie-card p {
  color: #cbd5e1;
}

.hero-copy p {
  max-width: 720px;
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.85;
}

.hero-tags {
  margin-top: 24px;
}

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

.primary-btn,
.ghost-btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
}

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

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover,
.nav-search button:hover,
.mobile-search button:hover,
.large-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(34, 211, 238, 0.26);
}

.hero-poster {
  display: block;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: white;
  background: rgba(15, 23, 42, 0.58);
  transform: translateY(-50%);
  font-size: 34px;
  line-height: 1;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

.hero-dot.is-active {
  width: 34px;
  background: var(--accent);
}

.section-wrap,
.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px;
}

.page-main {
  padding-top: 46px;
}

.section-heading,
.category-overview-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading h2,
.search-panel h2,
.side-panel h2,
.content-card h2,
.category-overview-head h2 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.section-heading p,
.category-overview-head p {
  margin: 8px 0 0;
  max-width: 780px;
}

.search-panel,
.filter-panel,
.side-panel,
.content-card,
.category-overview-card,
.page-hero,
.detail-hero,
.player-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(30, 41, 59, 0.68));
  box-shadow: var(--shadow);
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: 24px;
  align-items: center;
  margin-top: -34px;
  position: relative;
  z-index: 10;
}

.large-search input {
  min-height: 54px;
  padding: 0 20px;
}

.large-search button {
  min-height: 54px;
  padding: 0 24px;
  white-space: nowrap;
}

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

.category-card {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.7);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

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

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

.category-card span {
  display: block;
  font-size: 22px;
  font-weight: 950;
}

.category-card p {
  max-width: 260px;
  color: #cbd5e1;
  line-height: 1.65;
}

.category-card:hover img {
  opacity: 0.42;
  transform: scale(1.08);
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 20px;
}

.compact-grid {
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
}

.mini-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.movie-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--bg-card);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(34, 211, 238, 0.42);
  transform: translateY(-6px);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
}

.poster-link {
  display: block;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.6);
}

.poster-link img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
}

.movie-card h3,
.ranking-item h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.ranking-item h3 a:hover {
  color: var(--accent);
}

.movie-card p {
  min-height: 58px;
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.55;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-body .tag-list {
  margin-top: 14px;
}

.tag-list span {
  padding: 6px 10px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 999px;
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.split-layout,
.ranking-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
}

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

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

.ranking-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
}

.ranking-poster {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.ranking-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.ranking-poster span {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #031521;
  background: linear-gradient(135deg, var(--accent), #facc15);
  font-weight: 950;
}

.ranking-item p {
  margin: 9px 0 0;
  line-height: 1.6;
}

.side-panel {
  padding: 26px;
}

.side-panel p {
  line-height: 1.75;
}

.sticky-panel {
  position: sticky;
  top: 92px;
}

.page-hero {
  padding: 42px;
  margin-bottom: 20px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.22), transparent 24rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.76));
}

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

.page-hero p {
  max-width: 820px;
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.8;
}

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

.category-overview-card {
  padding: 24px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px 180px;
  gap: 14px;
  margin-bottom: 10px;
}

.filter-panel input,
.filter-panel select {
  min-height: 48px;
  padding: 0 16px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  padding: 28px;
}

.detail-poster {
  overflow: hidden;
  align-self: start;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

.detail-copy {
  align-self: center;
}

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

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

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 62px);
}

.detail-copy .lead {
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.8;
}

.detail-tags {
  margin-top: 20px;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.detail-facts li {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.52);
}

.detail-facts span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.detail-facts strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
}

.player-section {
  padding: 24px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), rgba(2, 6, 23, 0.58));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-cover span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #031521;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  font-size: 34px;
  box-shadow: 0 24px 54px rgba(34, 211, 238, 0.28);
}

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

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

.content-card {
  padding: 26px;
}

.content-card p {
  margin: 14px 0 0;
  line-height: 1.95;
  font-size: 16px;
}

.search-results-empty {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: #cbd5e1;
  background: var(--bg-card);
}

.site-footer {
  margin-top: 34px;
  border-top: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.74);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px;
  align-items: start;
}

.footer-inner strong {
  font-size: 20px;
}

.footer-inner p {
  margin: 8px 0 0;
  color: var(--muted);
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer-inner a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.1);
}

.footer-inner a:hover {
  color: var(--accent);
}

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

  .nav-toggle {
    display: block;
  }

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

  .hero-poster {
    display: none;
  }

  .search-panel,
  .split-layout,
  .ranking-page-layout,
  .detail-content {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 720px) {
  .nav-shell {
    height: 64px;
    padding: 0 16px;
  }

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

  .hero-carousel {
    min-height: 620px;
    height: 82vh;
  }

  .hero-inner {
    padding: 70px 18px 90px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-nav {
    display: none;
  }

  .section-wrap,
  .page-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-heading,
  .category-overview-head {
    display: block;
  }

  .section-link {
    margin-top: 14px;
  }

  .search-panel {
    margin-top: 0;
  }

  .large-search {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .card-body {
    padding: 12px;
  }

  .movie-card h3,
  .ranking-item h3 {
    font-size: 15px;
  }

  .movie-card p {
    display: none;
  }

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

  .page-hero,
  .detail-hero,
  .category-overview-card,
  .player-section,
  .content-card {
    padding: 20px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner nav {
    justify-content: flex-start;
  }
}
