:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-ink: #0f172a;
  --color-muted: #64748b;
  --color-line: #e2e8f0;
  --color-blue: #2563eb;
  --color-cyan: #06b6d4;
  --color-deep: #07111f;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 14px 28px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 17, 31, 0.88);
  color: #ffffff;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-blue), var(--color-cyan));
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

.brand-text {
  font-size: 18px;
}

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

.nav-link,
.mobile-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.10);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-section {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.40), transparent 32%),
    radial-gradient(circle at 85% 15%, rgba(6, 182, 212, 0.30), transparent 28%),
    linear-gradient(135deg, #07111f 0%, #0f172a 58%, #0b2a40 100%);
  color: #ffffff;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.55;
}

.hero-glow-one {
  width: 340px;
  height: 340px;
  left: -110px;
  bottom: 60px;
  background: #2563eb;
}

.hero-glow-two {
  width: 280px;
  height: 280px;
  right: -60px;
  top: 100px;
  background: #06b6d4;
}

.hero-slider {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 80px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 52px;
  align-items: center;
  min-height: 520px;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeIn 0.45s ease both;
}

.hero-copy h1 {
  margin: 10px 0 18px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #67e8f9;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-blue), var(--color-cyan));
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.30);
  cursor: pointer;
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

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

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.10);
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.86);
}

.hero-poster {
  position: relative;
  display: block;
}

.hero-poster-shell,
.detail-poster-shell,
.poster-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #1d4ed8, #0891b2 48%, #0f172a);
}

.hero-poster-shell {
  aspect-ratio: 3 / 4;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.40);
  transform: rotate(2deg);
}

.poster-shell {
  aspect-ratio: 3 / 4;
  border-radius: 20px;
}

.detail-poster-shell {
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-soft);
}

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

.poster-image.is-hidden {
  display: none;
}

.poster-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.05em;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(6, 182, 212, 0.82)),
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.32), transparent 34%);
}

.poster-fallback.is-visible {
  display: flex;
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 42px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 38px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #67e8f9;
}

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

.section-heading,
.category-overview-head,
.player-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2,
.category-overview-head h2,
.rank-panel-head h2,
.prose-card h2,
.side-card h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.section-heading p,
.category-overview-head p,
.side-card p {
  margin: 8px 0 0;
  color: var(--color-muted);
}

.section-more {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--color-blue);
  background: #dbeafe;
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
}

.movie-card-cover {
  position: relative;
  display: block;
}

.movie-year {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

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

.movie-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--color-blue);
  font-size: 12px;
  font-weight: 800;
}

.movie-meta-line span {
  color: var(--color-muted);
  font-weight: 700;
}

.movie-card h3 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--color-muted);
  font-size: 14px;
}

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

.category-card {
  min-height: 190px;
  padding: 22px;
  border-radius: 24px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.94), rgba(6, 182, 212, 0.80)),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.45), transparent 32%);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-name {
  display: block;
  font-weight: 900;
}

.category-card strong {
  display: block;
  margin: 12px 0;
  font-size: 34px;
  line-height: 1;
}

.category-card p,
.category-card small {
  color: rgba(255, 255, 255, 0.82);
}

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

.rank-panel,
.side-card,
.prose-card,
.filter-bar,
.search-page-panel,
.sitemap-block {
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 24px;
}

.rank-panel-head {
  margin-bottom: 18px;
}

.rank-panel-head span {
  color: var(--color-cyan);
  font-weight: 900;
  letter-spacing: 0.16em;
}

.rank-row,
.wide-rank-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--color-line);
}

.rank-index,
.wide-rank-index {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-blue), var(--color-cyan));
  font-weight: 900;
}

.rank-title,
.wide-rank-main {
  flex: 1;
  min-width: 0;
}

.rank-score,
.wide-rank-score {
  color: var(--color-blue);
  font-weight: 900;
}

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.28), transparent 30%),
    linear-gradient(135deg, #07111f, #0f2b4b 62%, #0f172a);
}

.small-hero {
  padding: 78px max(16px, calc((100vw - 1180px) / 2)) 70px;
}

.small-hero h1 {
  max-width: 900px;
  margin: 12px 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.small-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.category-overview-block + .category-overview-block {
  margin-top: 46px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  padding: 18px;
  margin-bottom: 24px;
}

.filter-bar label,
.search-large,
.search-filters {
  display: flex;
  gap: 10px;
  align-items: center;
}

.filter-bar label {
  flex: 1 1 240px;
}

.filter-bar span {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 800;
}

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

input:focus,
select:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.detail-hero {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 40px;
  width: min(1180px, calc(100% - 32px));
  margin: 42px auto 34px;
  align-items: center;
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--color-muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--color-blue);
  font-weight: 800;
}

.detail-info h1 {
  margin: 10px 0 14px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-one-line {
  margin: 0 0 22px;
  color: var(--color-muted);
  font-size: 18px;
}

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

.detail-meta div {
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.detail-meta dt {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-meta dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.detail-tags {
  margin-bottom: 24px;
}

.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px;
  border-radius: 28px;
  color: #ffffff;
  background: #07111f;
  box-shadow: var(--shadow-soft);
}

.player-toolbar {
  margin-bottom: 18px;
}

.player-toolbar h2 {
  margin: 4px 0 0;
  font-size: 28px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
}

.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-message {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(15, 23, 42, 0.72);
  font-size: 13px;
  backdrop-filter: blur(12px);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.prose-card {
  padding: 28px;
}

.prose-card p {
  margin: 14px 0 0;
  color: #334155;
  white-space: pre-line;
}

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

.wide-rank-list {
  padding: 10px 24px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.wide-rank-main small {
  display: block;
  color: var(--color-muted);
}

.side-card {
  position: sticky;
  top: 92px;
  padding: 24px;
}

.search-page-panel {
  padding: 24px;
}

.search-large input {
  flex: 1;
  min-height: 54px;
  font-size: 16px;
}

.search-large button {
  min-height: 54px;
  border: 0;
  border-radius: 16px;
  padding: 0 24px;
  color: #ffffff;
  background: var(--color-blue);
  font-weight: 900;
  cursor: pointer;
}

.search-filters {
  margin-top: 14px;
}

.result-count {
  margin: 18px 0;
  color: var(--color-muted);
  font-weight: 800;
}

.sitemap-block {
  padding: 26px;
}

.sitemap-block h2 {
  margin: 24px 0 12px;
}

.sitemap-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitemap-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: #ffffff;
}

.sitemap-list a {
  color: var(--color-blue);
  font-weight: 800;
}

.sitemap-list span {
  color: var(--color-muted);
}

.site-footer {
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.72);
  background: #07111f;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
}

.footer-brand strong {
  display: block;
  margin: 12px 0 8px;
  color: #ffffff;
  font-size: 22px;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.footer-links h3 {
  margin: 0 0 12px;
  color: #ffffff;
}

.footer-links a {
  display: block;
  padding: 4px 0;
}

.footer-links a:hover {
  color: #67e8f9;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .split-section,
  .ranking-layout,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .rank-panel,
  .side-card {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .mobile-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: auto;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-slider {
    padding-top: 56px;
    padding-bottom: 80px;
  }

  .hero-poster-shell {
    max-width: 320px;
    margin: 0 auto;
  }

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

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

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

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

  .footer-inner,
  .footer-links,
  .sitemap-list {
    grid-template-columns: 1fr;
  }
}

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

  .section-heading,
  .category-overview-head,
  .player-toolbar,
  .search-large,
  .search-filters {
    align-items: stretch;
    flex-direction: column;
  }

  .small-hero {
    padding-top: 56px;
    padding-bottom: 54px;
  }

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