:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.76);
  --panel-solid: #111827;
  --line: rgba(148, 163, 184, 0.16);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --cyan-dark: #0891b2;
  --blue: #2563eb;
  --shadow: 0 24px 80px rgba(8, 145, 178, 0.15);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img.image-missing {
  opacity: 0;
}

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

main {
  min-height: 60vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  box-shadow: 0 16px 36px rgba(34, 211, 238, 0.24);
}

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

.desktop-nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
}

.nav-link {
  color: #cbd5e1;
  font-weight: 700;
  transition: color .2s ease;
}

.nav-link:hover {
  color: var(--cyan);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-panel input,
.big-search input,
.filter-panel input,
.filter-panel select {
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 14px;
  outline: none;
  background: rgba(15, 23, 42, 0.88);
  color: var(--text);
  padding: 0 14px;
}

.header-search button,
.mobile-panel button,
.big-search button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan-dark), var(--blue));
  color: white;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
}

.mobile-menu-button span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: #e2e8f0;
}

.mobile-panel {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-panel.is-open {
  display: grid;
  gap: 12px;
}

.mobile-panel a {
  color: #cbd5e1;
  font-weight: 700;
}

.hero-carousel {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .8s ease, transform 1.4s ease;
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(to top, #020617, transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  text-align: center;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 1.05;
  background: linear-gradient(90deg, #a5f3fc, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-content h2 {
  margin: 18px 0 0;
  font-size: clamp(24px, 4vw, 44px);
}

.hero-content p:not(.hero-kicker) {
  max-width: 760px;
  margin: 20px auto 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.primary-button,
.secondary-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--cyan-dark), var(--blue));
  color: white;
  box-shadow: 0 18px 40px rgba(34, 211, 238, .23);
}

.secondary-button,
.section-more {
  border: 1px solid rgba(148, 163, 184, .22);
  background: rgba(15, 23, 42, .66);
  color: #dbeafe;
}

.primary-button:hover,
.secondary-button:hover,
.section-more:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, .45);
  cursor: pointer;
}

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

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: min(1200px, calc(100% - 32px));
  margin: -34px auto 52px;
  position: relative;
  z-index: 8;
}

.stats-strip div,
.filter-panel,
.story-card,
.ranking-panel,
.category-card,
.podium-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, .76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.stats-strip div {
  padding: 22px;
  text-align: center;
}

.stats-strip strong {
  display: block;
  color: white;
  font-size: 30px;
}

.stats-strip span {
  color: var(--muted);
}

.content-section,
.split-layout,
.podium-grid,
.search-workspace,
.detail-content,
.player-section,
.breadcrumbs,
.filter-panel {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 64px;
}

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

.section-heading h2,
.ranking-panel h2,
.story-card h2 {
  margin: 0;
  color: white;
  font-size: clamp(24px, 3vw, 36px);
}

.section-heading p,
.ranking-panel p,
.story-card p,
.category-card p {
  color: var(--muted);
  line-height: 1.75;
}

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: block;
  height: 100%;
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(15, 23, 42, .78);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(34, 211, 238, .45);
  box-shadow: 0 20px 46px rgba(34, 211, 238, .18);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, .28), rgba(37, 99, 235, .24)),
    #111827;
}

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

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

.poster-badge,
.play-chip {
  position: absolute;
  top: 10px;
  border-radius: 999px;
  background: rgba(2, 6, 23, .74);
  color: #e0f2fe;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 9px;
}

.poster-badge {
  left: 10px;
}

.play-chip {
  right: 10px;
  color: var(--cyan);
}

.movie-card-body {
  padding: 14px;
}

.movie-card-body h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.4;
  color: white;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  color: #67e8f9;
  font-size: 12px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

.ranking-panel {
  align-self: start;
  padding: 24px;
  position: sticky;
  top: 96px;
}

.ranking-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px 14px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: 16px;
  background: rgba(2, 6, 23, .32);
  padding: 12px;
  transition: border-color .2s ease, transform .2s ease;
}

.ranking-row:hover {
  transform: translateX(4px);
  border-color: rgba(34, 211, 238, .42);
}

.rank-number {
  grid-row: span 2;
  color: var(--cyan);
  font-size: 22px;
  font-weight: 900;
}

.rank-title {
  color: white;
  font-weight: 900;
}

.rank-meta {
  color: var(--muted);
  font-size: 13px;
}

.full {
  width: 100%;
  margin-top: 18px;
}

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

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

.category-card {
  display: block;
  padding: 24px;
  transition: transform .2s ease, border-color .2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, .42);
}

.category-kind {
  color: var(--cyan);
  font-weight: 900;
}

.category-card h2 {
  margin: 14px 0 8px;
  font-size: 24px;
}

.page-hero,
.detail-hero {
  width: min(1200px, calc(100% - 32px));
  margin: 36px auto 48px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(8, 145, 178, .28), rgba(37, 99, 235, .16)),
    rgba(15, 23, 42, .78);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.compact-hero {
  padding: clamp(34px, 6vw, 70px);
}

.compact-hero h1 {
  margin: 0;
  color: white;
  font-size: clamp(34px, 6vw, 58px);
}

.compact-hero p:not(.eyebrow) {
  max-width: 760px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.75;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 18px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.filter-count {
  color: var(--muted);
  white-space: nowrap;
  padding-bottom: 10px;
}

.filter-count strong {
  color: var(--cyan);
  font-size: 24px;
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.podium-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.podium-card span {
  color: var(--cyan);
  font-weight: 900;
}

.podium-card h2 {
  margin: 12px 0;
  font-size: 28px;
}

.podium-card p {
  color: #cbd5e1;
  line-height: 1.7;
}

.page-list .ranking-row.large {
  grid-template-columns: 70px 1fr;
}

.big-search {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.big-search input {
  flex: 1;
}

.search-summary {
  color: var(--muted);
  margin-bottom: 24px;
}

.breadcrumbs {
  display: flex;
  gap: 10px;
  color: var(--muted);
  margin-top: 28px;
  margin-bottom: 18px;
}

.breadcrumbs a {
  color: #bae6fd;
}

.detail-hero {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: clamp(22px, 4vw, 48px);
  margin-top: 0;
  min-height: 460px;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(34, 211, 238, .28), rgba(37, 99, 235, .28));
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.1;
}

.detail-one-line {
  color: #cbd5e1;
  font-size: 19px;
  line-height: 1.8;
  max-width: 780px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}

.tag-list span {
  border: 1px solid rgba(34, 211, 238, .28);
  border-radius: 999px;
  background: rgba(8, 145, 178, .12);
  color: #a5f3fc;
  padding: 7px 12px;
  font-weight: 700;
}

.movie-player {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, .22);
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  background: radial-gradient(circle, rgba(8, 145, 178, .22), rgba(2, 6, 23, .72));
  color: white;
  cursor: pointer;
}

.player-overlay.is-hidden {
  display: none;
}

.play-circle {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan-dark), var(--blue));
  box-shadow: 0 20px 50px rgba(34, 211, 238, .24);
}

.player-overlay strong {
  font-size: 24px;
}

.player-overlay em {
  color: #bae6fd;
  font-style: normal;
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: #fef3c7;
  font-size: 14px;
}

.detail-content {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
}

.story-card {
  padding: 24px;
}

.story-card:first-child {
  grid-row: span 2;
}

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

.meta-card dl {
  display: grid;
  gap: 12px;
}

.meta-card div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, .12);
  padding-bottom: 10px;
}

.meta-card dt {
  color: var(--muted);
}

.meta-card dd {
  margin: 0;
  color: white;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, .12);
  background: rgba(2, 6, 23, .76);
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

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

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: var(--muted);
  line-height: 1.7;
}

.footer-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid rgba(148, 163, 184, .10);
  padding: 18px 0 28px;
  font-size: 14px;
}

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

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

  .ranking-panel {
    position: static;
  }

  .filter-panel {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }

  .stats-strip,
  .category-grid,
  .category-grid.expanded,
  .podium-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .section-heading,
  .big-search {
    align-items: stretch;
    flex-direction: column;
  }

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

  .detail-poster {
    width: min(260px, 78vw);
  }
}

@media (max-width: 560px) {
  .hero-slide {
    min-height: 74vh;
    padding: 64px 18px;
  }

  .stats-strip,
  .movie-grid,
  .library-grid,
  .category-grid,
  .category-grid.expanded,
  .podium-grid,
  .footer-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .library-grid {
    gap: 14px;
  }

  .movie-card-body h3 {
    font-size: 15px;
  }

  .compact-hero,
  .story-card,
  .ranking-panel {
    padding: 20px;
  }

  .detail-hero {
    padding: 18px;
    border-radius: 22px;
  }
}
