:root {
  --sky: #0ea5e9;
  --sky-dark: #0284c7;
  --blue: #2563eb;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --panel: #ffffff;
  --soft: #f0f9ff;
  --radius: 22px;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 45%, #eff6ff 100%);
  min-height: 100vh;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(240, 249, 255, 0.96), rgba(239, 246, 255, 0.94));
  border-bottom: 1px solid rgba(186, 230, 253, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(2, 132, 199, 0.08);
}

.header-inner {
  max-width: 1180px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  box-shadow: 0 12px 26px rgba(14, 165, 233, 0.28);
  font-size: 14px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-text strong,
.footer-brand strong {
  font-size: 21px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--sky-dark), var(--blue));
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-text small {
  color: var(--muted);
  margin-top: 3px;
  font-size: 12px;
}

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

.nav-link {
  padding: 10px 13px;
  color: #334155;
  border-radius: 999px;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--sky-dark);
  background: rgba(14, 165, 233, 0.1);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(14, 165, 233, 0.1);
  color: var(--sky-dark);
  font-size: 21px;
}

.mobile-nav {
  display: none;
  padding: 10px 18px 18px;
  border-top: 1px solid rgba(186, 230, 253, 0.72);
  background: #ffffff;
}

.mobile-nav .nav-link {
  display: block;
  margin: 4px 0;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
  background-image: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.36), rgba(14, 165, 233, 0.12)), var(--cover);
  background-size: cover;
  background-position: center;
}

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

.hero-content {
  max-width: 1180px;
  height: 100%;
  min-height: 600px;
  margin: 0 auto;
  padding: 90px 22px 74px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
}

.hero-kicker {
  width: max-content;
  padding: 7px 16px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.9);
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.25);
  font-size: 14px;
  font-weight: 700;
}

.hero h1,
.hero h2 {
  max-width: 760px;
  margin: 0 0 16px;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 760px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

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

.btn,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 750;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
}

.btn:hover,
.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.24);
}

.btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 28px;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

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

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

.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 22px;
}

.section {
  margin-bottom: 68px;
}

.section-title {
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title h1,
.section-title h2,
.page-head h1 {
  margin: 0;
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-title p,
.page-head p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.title-line {
  height: 4px;
  flex: 1;
  min-width: 120px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sky), rgba(14, 165, 233, 0));
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: 0 22px 50px rgba(14, 165, 233, 0.16);
}

.card-cover,
.poster-cover {
  position: relative;
  display: block;
  background-image: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(37, 99, 235, 0.1)), var(--cover);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.card-cover {
  aspect-ratio: 16 / 10;
}

.card-cover::after,
.poster-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.42), transparent 58%);
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.movie-card:hover .card-cover::after {
  opacity: 0.35;
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%) scale(0.86);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(14, 165, 233, 0.9);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-duration,
.rank-badge {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: 10px;
  right: auto;
  top: 10px;
  bottom: auto;
  background: linear-gradient(135deg, var(--sky), var(--blue));
}

.card-body {
  padding: 16px;
}

.movie-card.compact .card-body {
  padding: 13px;
}

.card-body h2,
.card-body h3 {
  margin: 0 0 9px;
  font-size: 17px;
  line-height: 1.35;
}

.card-body h2 a:hover,
.card-body h3 a:hover {
  color: var(--sky-dark);
}

.card-body p {
  margin: 0 0 12px;
  min-height: 44px;
  color: #52637a;
  line-height: 1.65;
  font-size: 14px;
}

.card-meta,
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.card-meta span,
.detail-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

.tag-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.tag-row span,
.tag-link {
  padding: 5px 9px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 12px;
  font-weight: 700;
}

.feature-band {
  padding: 30px;
  border-radius: 30px;
  background: linear-gradient(90deg, #e0f2fe, #dbeafe);
  box-shadow: var(--shadow);
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding: 6px 4px 18px;
  scrollbar-width: thin;
}

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

.category-tile {
  min-height: 156px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 22px;
  padding: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.92), rgba(37, 99, 235, 0.92));
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 52px rgba(37, 99, 235, 0.26);
}

.category-tile h2,
.category-tile h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
  font-size: 14px;
}

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

.rank-panel,
.side-panel,
.info-panel,
.search-panel,
.copy-panel {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow);
}

.rank-panel,
.side-panel,
.copy-panel {
  padding: 20px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #e2e8f0;
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-item b {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  font-size: 13px;
}

.rank-item span {
  font-weight: 700;
}

.rank-item em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.page-head {
  margin-bottom: 30px;
}

.filters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(120px, 180px));
  gap: 12px;
  margin-bottom: 24px;
}

.filters input,
.filters select {
  width: 100%;
  height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 0 14px;
  color: var(--ink);
  background: #ffffff;
  outline: 0;
}

.filters input:focus,
.filters select:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.detail-hero {
  color: #ffffff;
  background: linear-gradient(180deg, #020617, #0f172a);
}

.detail-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 22px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background-image: linear-gradient(0deg, rgba(2, 6, 23, 0.84), rgba(2, 6, 23, 0.28)), var(--cover);
  background-size: cover;
  background-position: center;
}

.play-overlay strong {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  box-shadow: 0 20px 42px rgba(14, 165, 233, 0.34);
  font-size: 26px;
}

.play-overlay span {
  font-size: 18px;
  font-weight: 800;
}

.player-shell.is-ready .play-overlay {
  display: none;
}

.player-error {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 5;
  display: none;
  max-width: calc(100% - 36px);
  padding: 10px 14px;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.88);
}

.player-error.is-visible {
  display: block;
}

.detail-info {
  margin-top: 24px;
  color: #0f172a;
  background: #ffffff;
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
}

.detail-info p {
  color: #46576e;
  line-height: 1.85;
}

.poster-cover {
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.content-block {
  margin-bottom: 22px;
}

.content-block h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.content-block p {
  margin: 0;
  line-height: 1.9;
  color: #334155;
}

.copy-panel h1,
.copy-panel h2 {
  margin-top: 0;
}

.copy-panel p {
  color: #475569;
  line-height: 1.9;
}

.site-footer {
  margin-top: 52px;
  background: linear-gradient(180deg, #f8fafc, #e0f2fe);
  border-top: 1px solid #dbeafe;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 22px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
}

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

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: #52637a;
  line-height: 1.8;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li + li {
  margin-top: 9px;
}

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

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 22px;
  border-top: 1px solid #cbd5e1;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
}

.hidden-card {
  display: none;
}

.empty-state {
  display: none;
  padding: 40px;
  border-radius: 22px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  border: 1px dashed #bae6fd;
}

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

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

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

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

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

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

  .hero,
  .hero-content {
    min-height: 520px;
  }

  .hero-control {
    display: none;
  }

  .movie-grid,
  .movie-grid.dense,
  .category-list,
  .rank-layout,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }

  .filters {
    grid-template-columns: 1fr;
  }
}

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

  .brand-text small {
    display: none;
  }

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

  .hero-content {
    padding: 74px 16px 64px;
  }

  .feature-band {
    padding: 20px;
  }
}
