:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.22);
  --accent: #38bdf8;
  --accent-strong: #0284c7;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow-xl: 0 24px 80px rgba(2, 6, 23, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

img {
  display: block;
  width: 100%;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(18px);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #e0f2fe;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 30%, #7dd3fc, #0284c7 65%, #075985);
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.48);
}

.logo-text {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #7dd3fc, #38bdf8, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 650;
  padding: 23px 0;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 999px;
  background: var(--accent);
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.site-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(300px, 30vw);
}

.site-search input {
  width: 100%;
  height: 40px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.8);
  outline: none;
  padding: 0 116px 0 16px;
}

.site-search input:focus {
  border-color: rgba(56, 189, 248, 0.75);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.site-search button {
  position: absolute;
  right: 4px;
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #082f49;
  background: linear-gradient(90deg, #7dd3fc, #38bdf8);
  font-weight: 800;
  cursor: pointer;
}

.search-results {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(460px, 92vw);
  max-height: 540px;
  overflow: auto;
  display: none;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow-xl);
}

.search-results.is-open {
  display: grid;
  gap: 8px;
}

.search-result-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  padding: 8px;
  border-radius: 14px;
  color: #e2e8f0;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: rgba(56, 189, 248, 0.12);
}

.search-result-item img {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  background: #0f172a;
}

.search-result-item strong {
  display: block;
  margin-bottom: 4px;
}

.search-result-item small {
  display: block;
  color: var(--muted);
  line-height: 1.4;
}

.mobile-menu-button {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.8);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

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

.mobile-nav-link {
  padding: 10px 12px;
  color: #cbd5e1;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
}

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

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

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

.hero-slide img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.96)),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.45), rgba(2, 6, 23, 0.36));
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0 0 82px;
}

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

.hero h1 {
  max-width: 760px;
  margin: 12px 0 16px;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-shadow: 0 20px 70px rgba(0, 0, 0, 0.55);
}

.hero p {
  max-width: 720px;
  margin: 0;
  color: #cbd5e1;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.pill-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin: 20px 0 26px;
}

.hero-tags span,
.tag-row span,
.pill-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(14, 116, 144, 0.16);
  font-size: 12px;
  font-weight: 700;
}

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

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

.primary-button {
  color: #082f49;
  background: linear-gradient(90deg, #7dd3fc, #38bdf8, #2563eb);
  box-shadow: 0 18px 42px rgba(56, 189, 248, 0.32);
}

.ghost-button {
  color: #e0f2fe;
  border: 1px solid rgba(125, 211, 252, 0.32);
  background: rgba(15, 23, 42, 0.54);
}

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

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

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

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

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

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

.section-overlap {
  position: relative;
  z-index: 4;
  margin-top: -32px;
}

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

.section-heading h2,
.page-hero h1,
.detail-content h1,
.text-panel h2 {
  margin: 8px 0 0;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading h2 {
  font-size: clamp(26px, 4vw, 38px);
}

.section-heading > a,
.filter-bar > a {
  color: #7dd3fc;
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-md);
  background: #0f172a;
  box-shadow: 0 16px 38px rgba(2, 6, 23, 0.28);
}

.category-tile img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.92));
}

.category-tile-content {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 15px;
}

.category-tile-content strong {
  display: block;
  font-size: 19px;
  font-weight: 900;
}

.category-tile-content em {
  display: block;
  margin-top: 5px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.45;
  font-style: normal;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.32);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.42);
  box-shadow: 0 24px 70px rgba(14, 116, 144, 0.26);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.1;
  overflow: hidden;
  background: #0f172a;
}

.movie-poster img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .movie-poster img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

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

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #082f49;
  background: linear-gradient(135deg, #fde68a, #38bdf8);
  font-weight: 900;
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}

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

.movie-card h3 {
  margin: 12px 0 8px;
  color: #f8fafc;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-card p {
  min-height: 48px;
  margin: 0 0 14px;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.7;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: start;
}

.ranking-panel {
  position: sticky;
  top: 88px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.84);
  box-shadow: var(--shadow-xl);
}

.small-heading {
  margin-bottom: 12px;
}

.mini-list {
  display: grid;
  gap: 12px;
}

.mini-movie {
  display: grid;
  grid-template-columns: 28px 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.55);
  transition: background 0.2s ease;
}

.mini-movie:hover {
  background: rgba(56, 189, 248, 0.12);
}

.mini-movie img {
  width: 54px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
}

.mini-rank,
.mini-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  color: #082f49;
  background: #7dd3fc;
  font-size: 13px;
  font-weight: 900;
}

.mini-dot {
  width: 10px;
  height: 10px;
  margin-left: 9px;
}

.mini-movie strong,
.mini-movie small {
  display: block;
}

.mini-movie strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-movie small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.page-hero {
  min-height: 340px;
  display: grid;
  align-items: end;
  padding: 80px max(16px, calc((100% - 1180px) / 2)) 48px;
  background:
    radial-gradient(circle at 20% 10%, rgba(56, 189, 248, 0.28), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.28), transparent 30%),
    linear-gradient(180deg, #0f172a, #020617);
}

.slim-hero {
  min-height: 280px;
}

.page-hero h1 {
  max-width: 840px;
  font-size: clamp(36px, 5vw, 60px);
}

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

.pill-nav {
  max-width: 980px;
  margin-top: 22px;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.filter-bar input {
  width: min(540px, 100%);
  height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.82);
  outline: none;
  padding: 0 18px;
}

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

.category-overview-card {
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.28);
}

.category-overview-title {
  display: inline-flex;
  margin-bottom: 10px;
  color: #f8fafc;
  font-size: 22px;
  font-weight: 900;
}

.category-overview-card p {
  margin: 0 0 16px;
  color: #cbd5e1;
  line-height: 1.7;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-samples a {
  padding: 7px 10px;
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(14, 116, 144, 0.15);
  font-size: 13px;
  font-weight: 700;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 54px 86px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.82);
}

.ranking-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: #082f49;
  background: linear-gradient(135deg, #fde68a, #38bdf8);
  font-size: 18px;
  font-weight: 950;
}

.ranking-thumb img {
  width: 86px;
  height: 112px;
  border-radius: 14px;
  object-fit: cover;
}

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

.ranking-info p {
  margin: 0 0 10px;
  color: #cbd5e1;
  line-height: 1.65;
}

.detail-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a {
  color: #7dd3fc;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: var(--shadow-xl);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background: radial-gradient(circle, rgba(14, 116, 144, 0.22), rgba(2, 6, 23, 0.58));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 999px;
  color: #082f49;
  background: linear-gradient(135deg, #e0f2fe, #38bdf8);
  box-shadow: 0 20px 60px rgba(56, 189, 248, 0.38);
  font-size: 34px;
}

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

.detail-card {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 22px 60px rgba(2, 6, 23, 0.3);
}

.detail-cover img {
  aspect-ratio: 3 / 4.1;
  border-radius: 18px;
  object-fit: cover;
}

.detail-content h1 {
  font-size: clamp(30px, 5vw, 52px);
}

.detail-meta {
  margin: 16px 0 18px;
}

.lead-text {
  margin: 0 0 20px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.85;
}

.detail-tags {
  margin-top: 14px;
}

.text-panel {
  margin-top: 22px;
  padding: 26px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.72);
}

.text-panel h2 {
  font-size: 26px;
}

.text-panel p {
  margin: 14px 0 0;
  color: #dbeafe;
  font-size: 16px;
  line-height: 1.9;
}

.related-block {
  width: 100%;
  padding-bottom: 0;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
}

.footer-inner p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: flex-start;
}

.footer-links a {
  color: #bae6fd;
  font-weight: 800;
}

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

  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
  }

  .header-inner {
    gap: 12px;
  }

  .site-search {
    width: min(360px, 48vw);
    margin-left: auto;
  }

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

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

  .split-section {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .site-logo {
    width: calc(100% - 52px);
  }

  .site-search {
    order: 3;
    width: 100%;
  }

  .hero {
    min-height: 76vh;
  }

  .hero-content {
    padding-bottom: 70px;
  }

  .section-heading,
  .filter-bar,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .category-tile {
    min-height: 170px;
  }

  .ranking-row {
    grid-template-columns: 46px 72px minmax(0, 1fr);
  }

  .ranking-row .ghost-button {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .ranking-thumb img {
    width: 72px;
    height: 96px;
  }

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

  .detail-cover {
    max-width: 260px;
  }
}

@media (max-width: 520px) {
  .category-grid,
  .movie-grid,
  .compact-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .movie-poster {
    aspect-ratio: 16 / 10;
  }

  .play-overlay span {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
