:root {
  --color-slate-950: #020617;
  --color-slate-900: #0f172a;
  --color-slate-800: #1e293b;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-500: #64748b;
  --color-slate-200: #e2e8f0;
  --color-slate-100: #f1f5f9;
  --color-slate-50: #f8fafc;
  --color-white: #ffffff;
  --color-cyan-700: #0e7490;
  --color-cyan-600: #0891b2;
  --color-cyan-500: #06b6d4;
  --color-cyan-400: #22d3ee;
  --color-cyan-100: #cffafe;
  --color-cyan-50: #ecfeff;
  --color-yellow-500: #eab308;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-slate-800);
  background: linear-gradient(180deg, var(--color-slate-50) 0%, var(--color-white) 42%, var(--color-white) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.96);
  color: var(--color-white);
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.26);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--color-cyan-400), var(--color-cyan-700));
  box-shadow: 0 0 26px rgba(34, 211, 238, 0.42);
}

.logo-mark svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #dbeafe;
  font-size: 15px;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--color-cyan-400);
}

.header-search {
  position: relative;
  width: 245px;
}

.header-search input {
  width: 100%;
  border: 0;
  outline: none;
  color: var(--color-white);
  background: var(--color-slate-800);
  border-radius: 12px;
  padding: 10px 14px 10px 38px;
}

.header-search input:focus {
  box-shadow: 0 0 0 2px var(--color-cyan-400);
}

.search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 18px;
  height: 18px;
  color: #94a3b8;
  transform: translateY(-50%);
}

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0 20px;
}

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

.mobile-menu a {
  display: block;
  padding: 10px 0;
  color: #dbeafe;
}

.mobile-menu a:hover,
.mobile-menu a.is-active {
  color: var(--color-cyan-400);
}

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 540px;
  overflow: hidden;
  background: var(--color-slate-950);
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 68% 28%, rgba(34, 211, 238, 0.18), transparent 34%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.68) 48%, rgba(15, 23, 42, 0.12) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 100%;
}

.hero-copy {
  width: min(680px, 100%);
  color: var(--color-white);
}

.hero-badge,
.section-kicker,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.hero-badge {
  margin-bottom: 22px;
  padding: 8px 16px;
  background: var(--color-cyan-500);
  box-shadow: 0 14px 32px rgba(6, 182, 212, 0.32);
}

.hero-title {
  margin: 0 0 20px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow: 0 8px 28px rgba(2, 6, 23, 0.55);
}

.hero-description {
  display: -webkit-box;
  margin: 0 0 24px;
  overflow: hidden;
  color: #e2e8f0;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.78;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
  color: #cbd5e1;
  font-size: 15px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.primary-button,
.secondary-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 13px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  padding: 12px 24px;
  color: var(--color-white);
  background: var(--color-cyan-500);
  box-shadow: 0 16px 34px rgba(6, 182, 212, 0.34);
}

.primary-button:hover {
  background: var(--color-cyan-600);
  transform: translateY(-2px);
}

.secondary-button {
  padding: 11px 22px;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
}

.secondary-button:hover {
  color: var(--color-cyan-100);
  transform: translateY(-2px);
}

.text-button {
  color: var(--color-cyan-700);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  color: var(--color-white);
  background: rgba(2, 6, 23, 0.52);
  border-radius: 999px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(2, 6, 23, 0.74);
  transform: translateY(-50%) scale(1.04);
}

.hero-control.prev {
  left: 24px;
}

.hero-control.next {
  right: 24px;
}

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

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

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

.main-space {
  padding: 56px 0 72px;
}

.section {
  margin-bottom: 70px;
}

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

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--color-cyan-600);
  background: var(--color-cyan-50);
  border-radius: 13px;
}

.section h2,
.page-title {
  margin: 0;
  color: var(--color-slate-800);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
}

.section-subtitle,
.page-description {
  margin: 8px 0 0;
  color: var(--color-slate-500);
}

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

.card-grid.large {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.movie-card {
  position: relative;
  display: block;
  overflow: hidden;
  color: var(--color-slate-800);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-6px);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: var(--color-slate-900);
  aspect-ratio: 3 / 4;
}

.movie-card.wide .poster-wrap,
.related-card .poster-wrap {
  aspect-ratio: 16 / 10;
}

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

.movie-card:hover img,
.related-card:hover img {
  transform: scale(1.08);
}

.poster-gradient {
  position: absolute;
  inset: auto 0 0;
  height: 54%;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.86));
}

.rating-chip,
.year-chip,
.rank-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.rating-chip {
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  color: #78350f;
  background: rgba(254, 243, 199, 0.95);
}

.year-chip {
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  color: var(--color-white);
  background: rgba(15, 23, 42, 0.72);
}

.rank-chip {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-yellow-500), #f97316);
}

.movie-info {
  padding: 14px 14px 16px;
}

.movie-title {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--color-slate-800);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-title {
  color: var(--color-cyan-700);
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
  color: var(--color-slate-500);
  font-size: 12px;
}

.movie-line {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--color-slate-600);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.highlight-panel {
  padding: 30px;
  background: linear-gradient(135deg, #f1f5f9, #ecfeff);
  border-radius: var(--radius-xl);
}

.dark-panel {
  padding: 30px;
  color: var(--color-white);
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.22), transparent 36%),
    var(--color-slate-900);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.dark-panel h2,
.dark-panel .section-subtitle {
  color: var(--color-white);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  padding: 22px;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-slate-900), var(--color-cyan-700));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-5px);
}

.category-card::after {
  position: absolute;
  right: -36px;
  bottom: -36px;
  width: 120px;
  height: 120px;
  content: "";
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 23px;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #e0f2fe;
  font-size: 14px;
}

.page-hero {
  padding: 56px 0 38px;
  color: var(--color-white);
  background:
    radial-gradient(circle at 76% 16%, rgba(34, 211, 238, 0.26), transparent 30%),
    linear-gradient(135deg, var(--color-slate-950), var(--color-slate-800));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: #cbd5e1;
  font-size: 14px;
}

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

.page-hero .page-title,
.page-hero .page-description {
  color: var(--color-white);
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 14px;
  margin: -30px auto 42px;
  padding: 18px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--color-slate-200);
  outline: none;
  color: var(--color-slate-800);
  background: var(--color-white);
  border-radius: 12px;
  padding: 12px 13px;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--color-cyan-500);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.16);
}

.empty-state {
  display: none;
  padding: 44px 20px;
  color: var(--color-slate-500);
  text-align: center;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 72px 96px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.rank-number {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-cyan-500), var(--color-cyan-700));
  border-radius: 14px;
  font-weight: 900;
}

.rank-poster {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
}

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

.rank-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 900;
}

.rank-row:hover .rank-title {
  color: var(--color-cyan-700);
}

.rank-desc {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--color-slate-500);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-score {
  color: var(--color-yellow-500);
  font-size: 20px;
  font-weight: 900;
}

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

.detail-main,
.detail-side,
.content-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: var(--color-slate-950);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.32);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--color-white);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.78));
  cursor: pointer;
}

.player-start span {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  padding-left: 5px;
  color: var(--color-white);
  background: var(--color-cyan-500);
  border-radius: 999px;
  box-shadow: 0 18px 38px rgba(6, 182, 212, 0.38);
  font-size: 34px;
}

.player-start strong {
  font-size: 19px;
}

.player-shell.is-playing .player-start {
  display: none;
}

.detail-main {
  padding: 26px;
}

.detail-title {
  margin: 24px 0 16px;
  color: var(--color-slate-800);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.detail-meta,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  padding: 6px 11px;
  color: var(--color-slate-700);
  background: var(--color-slate-100);
}

.pill.cyan {
  color: var(--color-cyan-700);
  background: var(--color-cyan-50);
}

.pill.yellow {
  color: #92400e;
  background: #fef3c7;
}

.article-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--color-slate-200);
}

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

.article-block p {
  margin: 0;
  color: var(--color-slate-600);
  line-height: 1.9;
}

.detail-side {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.side-title {
  margin: 0 0 18px;
  font-size: 21px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: center;
}

.related-card h3 {
  display: -webkit-box;
  margin: 0 0 6px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-card:hover h3 {
  color: var(--color-cyan-700);
}

.related-meta {
  color: var(--color-slate-500);
  font-size: 12px;
}

.prev-next {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 32px;
}

.prev-next a {
  flex: 1;
  padding: 16px;
  color: var(--color-slate-700);
  background: var(--color-slate-50);
  border-radius: 15px;
}

.prev-next a:hover {
  color: var(--color-cyan-700);
  background: var(--color-cyan-50);
}

.site-footer {
  margin-top: 78px;
  color: #cbd5e1;
  background: var(--color-slate-900);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 48px 0;
}

.footer-inner h3 {
  margin: 0 0 14px;
  color: var(--color-white);
  font-size: 18px;
}

.footer-inner p,
.footer-inner li {
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
}

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

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

.footer-bottom {
  padding: 22px 0;
  color: #94a3b8;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

@media (max-width: 1060px) {
  .header-search {
    display: none;
  }

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

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

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

  .detail-side {
    position: static;
  }

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

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

  .mobile-toggle {
    display: inline-flex;
  }

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

  .hero-control {
    display: none;
  }

  .hero-copy {
    padding: 84px 0 110px;
  }

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

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

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

  .rank-row {
    grid-template-columns: 48px 84px 1fr;
  }

  .rank-score {
    grid-column: 3;
    font-size: 16px;
  }

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

@media (max-width: 520px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .logo {
    font-size: 18px;
  }

  .hero-title {
    font-size: 38px;
  }

  .card-grid,
  .card-grid.large,
  .card-grid.category-grid,
  .category-cards {
    grid-template-columns: 1fr;
  }

  .movie-card {
    display: grid;
    grid-template-columns: 128px 1fr;
  }

  .movie-card .poster-wrap {
    aspect-ratio: 3 / 4;
  }

  .movie-card.wide {
    grid-template-columns: 1fr;
  }

  .movie-title {
    min-height: 0;
  }

  .detail-main,
  .detail-side {
    padding: 18px;
  }

  .related-card {
    grid-template-columns: 96px 1fr;
  }

  .prev-next {
    flex-direction: column;
  }

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