:root {
  --bg: #030712;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --text: #ffffff;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --blue: #38bdf8;
  --cyan: #22d3ee;
  --indigo: #6366f1;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.55);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 32rem),
    radial-gradient(circle at 80% 10%, rgba(99, 102, 241, 0.13), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  background: rgba(15, 23, 42, 0.52);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled,
body:not(.home-page) .site-header {
  background: rgba(3, 7, 18, 0.92);
  border-color: var(--line);
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.38);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  height: 76px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #ffffff;
}

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

.brand-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(34, 211, 238, 0.88));
  color: #eff6ff;
  font-size: 14px;
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.25);
}

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

.nav-link,
.mobile-link {
  color: #cbd5e1;
  font-weight: 700;
  font-size: 14px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #38bdf8;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: rgba(15, 23, 42, 0.7);
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: #e2e8f0;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 18px;
}

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

.mobile-link {
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.74);
}

.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: #020617;
}

.hero-track,
.hero-slide {
  min-height: 100vh;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
  align-items: center;
  gap: 56px;
  padding: 120px max(24px, calc((100vw - 1280px) / 2 + 24px)) 80px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.75s ease, transform 1.3s ease;
}

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

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

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-hero h1 {
  font-size: clamp(40px, 6vw, 78px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.08em;
  max-width: 980px;
}

.hero h2 {
  margin-top: 24px;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero p,
.page-hero p,
.detail-hero p {
  margin-top: 18px;
  max-width: 720px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(2, 6, 23, 0.76));
}

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

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

.primary-button,
.secondary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.25);
}

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

.secondary-button,
.ghost-button {
  color: #dbeafe;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(16px);
}

.primary-button.small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

.text-link {
  color: #67e8f9;
  padding: 0;
  min-height: auto;
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.64);
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #38bdf8;
}

.content-section,
.category-overview-grid,
.detail-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 24px;
}

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

.section-head.slim {
  margin-bottom: 18px;
}

.section-head h2,
.article-block h2,
.category-overview-card h2 {
  color: #ffffff;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.section-head p,
.category-overview-card p,
.article-block p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.68));
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.22);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.42);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.36);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.movie-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .movie-poster {
  transform: scale(1.08);
  filter: saturate(1.12) contrast(1.04);
}

.movie-year,
.rank-mark {
  position: absolute;
  top: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: #e0f2fe;
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.movie-year {
  left: 14px;
}

.rank-mark {
  right: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(6, 182, 212, 0.82));
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
}

.movie-meta-line span,
.movie-category {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.78);
}

.movie-category {
  color: #67e8f9;
}

.movie-card h3,
.rank-info h3 {
  margin-top: 12px;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-card p,
.rank-info p {
  margin-top: 10px;
  color: #aab6c8;
  line-height: 1.72;
  font-size: 14px;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(8, 47, 73, 0.38);
  font-size: 12px;
  font-weight: 800;
}

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

.category-tile {
  min-height: 260px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.22);
}

.category-tile span,
.category-overview-card h2 {
  display: block;
  color: #ffffff;
  font-weight: 950;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.category-tile strong {
  display: block;
  margin-top: 10px;
  color: #dbeafe;
  line-height: 1.65;
  font-size: 14px;
}

.category-samples {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.category-samples a {
  color: #bae6fd;
  font-size: 13px;
  font-weight: 800;
}

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

.page-hero {
  min-height: 420px;
  padding: 88px max(24px, calc((100vw - 1280px) / 2 + 24px));
  display: flex;
  justify-content: center;
  flex-direction: column;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}

.compact-hero {
  min-height: 340px;
  background:
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.18), transparent 34rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(8, 47, 73, 0.72));
}

.filter-panel {
  margin-bottom: 24px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(260px, 1.8fr) repeat(3, minmax(140px, 1fr)) auto;
  gap: 12px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.18);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.56);
  color: #e5f3ff;
  outline: none;
}

.empty-state {
  display: none;
  padding: 42px;
  text-align: center;
  border-radius: 24px;
  color: #bfdbfe;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid var(--line);
}

.empty-state.is-visible {
  display: block;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.76);
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-cover-stack img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}

.category-samples-light {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.rank-list {
  display: grid;
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 74px 104px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.rank-number {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #e0f2fe;
  font-size: 20px;
  font-weight: 950;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.88), rgba(6, 182, 212, 0.72));
}

.rank-cover img {
  width: 104px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
}

.detail-page {
  padding-top: 0;
}

.detail-hero {
  min-height: 620px;
  padding: 136px max(24px, calc((100vw - 1280px) / 2 + 24px)) 72px;
  display: flex;
  align-items: end;
  background-size: cover;
  background-position: center;
}

.detail-hero-inner {
  max-width: 880px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  color: #bae6fd;
  font-size: 14px;
  font-weight: 800;
}

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

.detail-poster-panel {
  position: sticky;
  top: 100px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.78);
}

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

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

.detail-meta-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.detail-meta-list span {
  color: #94a3b8;
}

.detail-meta-list strong {
  color: #e0f2fe;
  text-align: right;
}

.detail-content {
  display: grid;
  gap: 26px;
}

.player-section,
.article-block {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.2);
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #020617;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.movie-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.18), rgba(2, 6, 23, 0.64));
  font-size: 18px;
  font-weight: 950;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 24px 48px rgba(14, 165, 233, 0.28);
}

.article-block p {
  color: #cbd5e1;
  font-size: 16px;
}

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

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}

.footer-inner p {
  max-width: 560px;
  margin-top: 14px;
  color: #94a3b8;
  line-height: 1.75;
}

.footer-inner h2 {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
}

.footer-inner a:not(.footer-brand) {
  display: block;
  margin-top: 10px;
  color: #94a3b8;
  font-weight: 700;
}

.footer-inner a:hover {
  color: #38bdf8;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 32px;
  color: #64748b;
  font-size: 14px;
}

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

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

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

  .category-overview-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-poster-panel {
    position: static;
    max-width: 420px;
  }
}

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

  .nav-toggle {
    display: flex;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 112px;
  }

  .hero-poster {
    max-width: 280px;
    transform: none;
  }

  .hero-arrow {
    display: none;
  }

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

  .rank-item {
    grid-template-columns: 52px 84px minmax(0, 1fr);
  }

  .rank-number {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 16px;
  }

  .rank-cover img {
    width: 84px;
  }
}

@media (max-width: 620px) {
  .header-inner {
    height: 66px;
    padding: 0 16px;
  }

  .brand span:last-child {
    font-size: 20px;
  }

  .hero h1,
  .page-hero h1,
  .detail-hero h1 {
    font-size: 38px;
  }

  .hero h2 {
    font-size: 30px;
  }

  .hero p,
  .page-hero p,
  .detail-hero p {
    font-size: 15px;
  }

  .content-section,
  .category-overview-grid,
  .detail-layout {
    padding: 46px 16px;
  }

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

  .page-hero,
  .detail-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .movie-grid,
  .category-grid,
  .footer-inner,
  .filter-panel,
  .category-overview-card,
  .category-samples-light {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .rank-item {
    grid-template-columns: 42px 74px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-cover img {
    width: 74px;
  }

  .player-section,
  .article-block {
    padding: 16px;
  }
}
