:root {
  --dark-950: #0d0f12;
  --dark-900: #141618;
  --dark-850: #1a1d23;
  --dark-800: #24272c;
  --dark-700: #353940;
  --dark-600: #464c56;
  --primary-600: #096dd9;
  --primary-500: #1890ff;
  --primary-400: #40a9ff;
  --primary-300: #69c0ff;
  --secondary-500: #13c2c2;
  --secondary-400: #36cfc9;
  --text-main: #ffffff;
  --text-soft: #d1d5db;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --border-soft: rgba(255, 255, 255, 0.08);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--dark-900);
  color: var(--text-main);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: rgba(20, 22, 24, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(20, 22, 24, 0.94);
  border-color: var(--border-soft);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  box-shadow: 0 12px 30px rgba(24, 144, 255, 0.28);
}

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

.brand-text strong {
  font-size: 22px;
  letter-spacing: 0.02em;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 15px;
}

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

.desktop-nav a:hover {
  color: var(--primary-400);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  background: var(--dark-800);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: var(--dark-800);
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--text-soft);
}

.mobile-nav a:hover {
  background: var(--dark-700);
  color: var(--primary-400);
}

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

.hero {
  position: relative;
  min-height: 80vh;
  overflow: hidden;
  background: var(--dark-950);
}

.hero-stage {
  position: relative;
  min-height: 80vh;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  min-height: 80vh;
  object-fit: cover;
  background: radial-gradient(circle at 25% 25%, rgba(24, 144, 255, 0.45), transparent 35%), linear-gradient(135deg, #151a22, #252a33);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--dark-900) 0%, rgba(20, 22, 24, 0.7) 45%, rgba(20, 22, 24, 0.05) 100%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100% - 1180px) / 2));
  bottom: 18vh;
  width: min(660px, calc(100% - 48px));
  animation: slideUp 0.7s ease both;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 13px;
  border: 1px solid rgba(24, 144, 255, 0.5);
  border-radius: 999px;
  color: var(--primary-300);
  background: rgba(24, 144, 255, 0.16);
  font-size: 14px;
  font-weight: 700;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 18px 0 16px;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p,
.detail-info .lead {
  margin: 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
}

.hero-meta {
  margin-top: 22px;
}

.hero-meta span:first-child,
.rating {
  color: #facc15;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--primary-500);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(24, 144, 255, 0.28);
}

.btn-primary:hover {
  background: var(--primary-600);
}

.btn-ghost {
  border-color: var(--border-soft);
  background: rgba(20, 22, 24, 0.62);
  color: #ffffff;
}

.btn-ghost:hover {
  border-color: rgba(64, 169, 255, 0.5);
  background: rgba(36, 39, 44, 0.82);
}

.btn.full {
  width: 100%;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(20, 22, 24, 0.6);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(20, 22, 24, 0.9);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dots button.is-active {
  width: 32px;
  background: var(--primary-500);
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 86px;
  z-index: 4;
  display: flex;
  width: min(560px, calc(100% - 48px));
  padding: 8px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: rgba(20, 22, 24, 0.78);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.hero-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  outline: 0;
  color: #ffffff;
  background: var(--dark-850);
}

.hero-search input {
  padding: 0 14px;
  border: 0;
  background: transparent;
}

.hero-search button {
  min-width: 96px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: var(--primary-500);
  font-weight: 800;
  cursor: pointer;
}

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

.page-main {
  min-height: 70vh;
  padding-top: 92px;
}

.page-hero,
.detail-head {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 22px;
}

.small-hero,
.category-hero {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
}

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

.section-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--primary-400);
  font-size: 14px;
  font-weight: 900;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.section-head p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.section-link {
  color: var(--primary-400);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--dark-800);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  animation: fadeIn 0.5s ease both;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(64, 169, 255, 0.28);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px) scale(1.01);
}

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: radial-gradient(circle at 25% 20%, rgba(24, 144, 255, 0.38), transparent 40%), linear-gradient(135deg, #1a1d23, #303743);
}

.card-media img,
.overview-media img,
.category-tile img,
.rank-cover img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: radial-gradient(circle at 30% 25%, rgba(24, 144, 255, 0.35), transparent 35%), linear-gradient(135deg, #141618, #2d3540);
  transition: transform 0.45s ease;
}

.movie-card:hover .card-media img,
.category-tile:hover img,
.category-overview-card:hover img {
  transform: scale(1.08);
}

.card-gradient,
.tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent 60%);
}

.play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(24, 144, 255, 0.9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.duration-badge,
.category-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(20, 22, 24, 0.82);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.duration-badge {
  right: 12px;
}

.category-badge {
  left: 12px;
  background: rgba(24, 144, 255, 0.86);
}

.rank-badge {
  right: 12px;
  bottom: 12px;
  top: auto;
  background: rgba(19, 194, 194, 0.88);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover,
.rank-content h3 a:hover,
.overview-links a:hover {
  color: var(--primary-400);
}

.card-body p {
  min-height: 44px;
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.card-meta {
  font-size: 13px;
}

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

.category-tile {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--dark-800);
}

.tile-label,
.tile-desc {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 2;
}

.tile-label {
  bottom: 50px;
  font-size: 22px;
  font-weight: 900;
}

.tile-desc {
  bottom: 18px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
}

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

.stack-list,
.rank-list {
  display: grid;
  gap: 14px;
}

.rank-row {
  display: grid;
  grid-template-columns: 54px 150px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--dark-800);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
  background: var(--dark-700);
  transform: translateY(-2px);
}

.rank-number {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  font-weight: 900;
}

.rank-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: var(--dark-700);
}

.rank-content h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.rank-content p {
  margin: 0 0 10px;
  color: var(--text-muted);
  line-height: 1.6;
}

.side-rank {
  position: sticky;
  top: 92px;
  padding: 24px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(24, 144, 255, 0.12), rgba(36, 39, 44, 0.92));
}

.side-rank h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.side-rank p {
  color: var(--text-muted);
  line-height: 1.7;
}

.mini-rank {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.mini-rank a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  color: var(--text-soft);
}

.mini-rank span {
  color: var(--secondary-400);
  font-weight: 900;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 20px;
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--dark-800);
}

.overview-media {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 10;
}

.overview-media span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  font-weight: 900;
}

.category-overview-card h2 {
  margin: 0 0 10px;
}

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

.overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.overview-links a,
.tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--primary-300);
  background: rgba(24, 144, 255, 0.12);
  font-size: 13px;
}

.filter-panel {
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--dark-800);
}

.filter-title {
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 900;
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 180px 220px;
  gap: 14px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.filter-panel input,
.filter-panel select {
  padding: 0 12px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--text-muted);
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  aspect-ratio: 3 / 4;
  background: var(--dark-800);
  box-shadow: var(--shadow-lg);
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 26px;
}

.player-section {
  padding-top: 32px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: #000000;
  box-shadow: var(--shadow-lg);
}

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

.video-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(24, 144, 255, 0.25), rgba(0, 0, 0, 0.74));
  cursor: pointer;
}

.video-start span {
  display: inline-flex;
  width: 82px;
  height: 82px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--primary-500);
  font-size: 34px;
  box-shadow: 0 18px 42px rgba(24, 144, 255, 0.35);
}

.video-start strong {
  font-size: 20px;
}

.player-shell.is-playing .video-start {
  opacity: 0;
  pointer-events: none;
}

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

.article-panel {
  padding: 26px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--dark-800);
}

.article-panel h2 {
  margin: 0 0 14px;
}

.article-panel p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.9;
}

.movie-card-compact .card-body p {
  min-height: 0;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--border-soft);
  background: var(--dark-950);
}

.footer-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  color: var(--text-muted);
}

.footer-brand {
  display: inline-flex;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.footer-container p {
  max-width: 560px;
  margin: 0;
  line-height: 1.7;
}

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

.footer-links a:hover {
  color: var(--primary-400);
}

[data-card].is-hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .menu-button {
    display: block;
  }

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

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

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

  .side-rank {
    position: static;
  }
}

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

  .brand-text small {
    display: none;
  }

  .hero,
  .hero-stage,
  .hero-slide img {
    min-height: 74vh;
  }

  .hero-content {
    bottom: 22vh;
  }

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

  .hero-search {
    bottom: 78px;
  }

  .hero-arrow {
    display: none;
  }

  .content-section {
    padding-top: 44px;
  }

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

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

  .card-body {
    padding: 12px;
  }

  .card-body h3 {
    font-size: 16px;
  }

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

  .rank-row {
    grid-template-columns: 42px 104px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-content p {
    display: none;
  }

  .category-overview-card,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

  .footer-container {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .card-grid,
  .card-grid-featured,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-search {
    flex-direction: column;
  }

  .hero-search button {
    min-height: 42px;
  }

  .rank-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .rank-cover {
    display: none;
  }
}
