:root {
  --page-bg: #030712;
  --panel-bg: rgba(17, 24, 39, 0.78);
  --panel-strong: rgba(31, 41, 55, 0.88);
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(96, 165, 250, 0.32);
  --text: #ffffff;
  --muted: #9ca3af;
  --soft: #d1d5db;
  --accent: #2563eb;
  --accent-light: #60a5fa;
  --accent-deep: #1d4ed8;
  --gold: #facc15;
  --radius: 20px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(37, 99, 235, 0.25), transparent 32rem),
    radial-gradient(circle at 88% 16%, rgba(14, 165, 233, 0.12), transparent 34rem),
    linear-gradient(180deg, #030712 0%, #0b1120 52%, #030712 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
}

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

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.78), rgba(3, 7, 18, 0));
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled,
.site-header.menu-open {
  border-color: rgba(31, 41, 55, 0.92);
  background: rgba(3, 7, 18, 0.94);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.35);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.logo-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav,
.mobile-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 12px;
  color: var(--soft);
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(37, 99, 235, 0.92);
  color: #ffffff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.72);
  color: #ffffff;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  align-items: stretch;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 18px;
}

.main-page {
  min-height: 100vh;
  padding-top: 76px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  position: relative;
  height: min(780px, 82vh);
  min-height: 560px;
  margin-top: -76px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.96) 0%, rgba(3, 7, 18, 0.72) 38%, rgba(3, 7, 18, 0.28) 72%, rgba(3, 7, 18, 0.62) 100%),
    linear-gradient(0deg, #030712 0%, rgba(3, 7, 18, 0.18) 46%, rgba(3, 7, 18, 0.72) 100%);
}

.hero-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  padding: 160px 0 86px;
}

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

.hero-kicker,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.92);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.badge.soft {
  background: rgba(31, 41, 55, 0.82);
  color: var(--soft);
}

.hero h1,
.hero h2 {
  margin: 20px 0 16px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.hero p {
  max-width: 670px;
  margin: 0 0 30px;
  color: #d1d5db;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.72;
}

.hero-actions,
.section-actions,
.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(17, 24, 39, 0.74);
  backdrop-filter: blur(14px);
}

.button.secondary:hover {
  background: rgba(31, 41, 55, 0.92);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: #ffffff;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

.hero-control:hover {
  background: rgba(37, 99, 235, 0.76);
}

.hero-prev {
  left: 28px;
}

.hero-next {
  right: 28px;
}

.hero-dots {
  position: absolute;
  right: 0;
  bottom: 34px;
  left: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 34px;
  background: #ffffff;
}

.section {
  padding: 74px 0;
}

.section.compact {
  padding: 42px 0;
}

.section.dark-band {
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.68), rgba(31, 41, 55, 0.76), rgba(17, 24, 39, 0.68));
}

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.section-desc {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

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

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

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

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 22px;
}

.movie-card {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(31, 41, 55, 0.78), rgba(17, 24, 39, 0.72));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #111827;
}

.poster-wrap.wide {
  aspect-ratio: 16 / 9;
}

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

.movie-card:hover .poster-wrap img {
  transform: scale(1.07);
}

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.72));
}

.card-badge,
.score-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.card-badge {
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  background: rgba(37, 99, 235, 0.92);
}

.score-badge {
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.66);
  color: var(--gold);
}

.rank-badge {
  top: 12px;
  right: 12px;
  min-width: 36px;
  padding: 7px 10px;
  background: rgba(250, 204, 21, 0.95);
  color: #111827;
  text-align: center;
}

.card-body {
  padding: 16px;
}

.card-title {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-desc {
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card.horizontal {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  min-height: 150px;
}

.movie-card.horizontal .poster-wrap {
  height: 100%;
  aspect-ratio: auto;
}

.movie-card.large {
  height: 100%;
}

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

.movie-card.large .card-title {
  font-size: 24px;
}

.scroll-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 24px 20px;
  scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar {
  display: none;
}

.scroll-card {
  flex: 0 0 280px;
}

.category-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 15%, rgba(96, 165, 250, 0.24), transparent 14rem),
    linear-gradient(135deg, rgba(31, 41, 55, 0.92), rgba(17, 24, 39, 0.78));
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.7;
}

.category-card span {
  margin-top: auto;
  color: var(--accent-light);
  font-weight: 800;
}

.search-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(17, 24, 39, 0.72);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.search-input {
  width: min(100%, 520px);
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  outline: none;
  background: rgba(3, 7, 18, 0.72);
  color: #ffffff;
}

.search-input:focus {
  border-color: rgba(96, 165, 250, 0.72);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.filter-chip {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.72);
  color: #d1d5db;
}

.filter-chip.active,
.filter-chip:hover {
  border-color: rgba(96, 165, 250, 0.48);
  background: rgba(37, 99, 235, 0.9);
  color: #ffffff;
}

.page-hero {
  padding: 70px 0 38px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

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

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

.page-title {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.page-desc {
  max-width: 820px;
  margin: 16px 0 0;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.75;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 76px 128px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(17, 24, 39, 0.72);
}

.ranking-number {
  color: var(--gold);
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.ranking-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: #111827;
}

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

.ranking-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
}

.ranking-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.9fr);
  gap: 30px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.26);
  border-radius: 24px;
  background: #000000;
  box-shadow: var(--shadow);
  cursor: pointer;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.24), rgba(0, 0, 0, 0.58));
  color: #ffffff;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  padding-left: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  font-size: 38px;
  box-shadow: 0 20px 48px rgba(37, 99, 235, 0.45);
}

.play-label {
  font-size: 20px;
  font-weight: 900;
}

.info-panel,
.related-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel-bg);
}

.info-panel h2,
.related-panel h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 900;
}

.info-panel p {
  margin: 0 0 18px;
  color: #d1d5db;
  line-height: 1.85;
}

.detail-title {
  margin: 18px 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 900;
}

.detail-one-line {
  margin: 0 0 20px;
  color: var(--accent-light);
  font-size: 18px;
  line-height: 1.7;
  font-style: italic;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.88);
  color: #d1d5db;
  font-size: 13px;
}

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

.footer {
  margin-top: 70px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(3, 7, 18, 0.72);
}

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

.footer h2,
.footer h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 900;
}

.footer p,
.footer a {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

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

.empty-state {
  display: none;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
}

.no-results .empty-state {
  display: block;
}

.hidden-by-filter {
  display: none !important;
}

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

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-header.menu-open .mobile-nav {
    display: flex;
  }

  .hero {
    min-height: 640px;
    height: auto;
  }

  .hero-content {
    padding: 170px 0 78px;
  }

  .hero-control {
    display: none;
  }

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

  .feature-layout,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    grid-template-columns: 54px 96px minmax(0, 1fr);
  }

  .ranking-item .button {
    grid-column: 2 / -1;
    width: max-content;
  }
}

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

  .logo-title {
    font-size: 17px;
  }

  .logo-subtitle {
    display: none;
  }

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

  .hero {
    margin-top: -68px;
    min-height: 620px;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 50px 0;
  }

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

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

  .movie-card.horizontal {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .card-body {
    padding: 13px;
  }

  .scroll-card {
    flex-basis: 236px;
  }

  .ranking-item {
    grid-template-columns: 48px 84px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .ranking-title {
    font-size: 18px;
  }

  .play-icon {
    width: 70px;
    height: 70px;
    font-size: 30px;
  }
}
