:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --cyan-700: #0e7490;
  --cyan-600: #0891b2;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --blue-500: #3b82f6;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.16);
  --shadow-card: 0 14px 30px rgba(15, 23, 42, 0.12);
  --radius-xl: 20px;
  --radius-lg: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--slate-900);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 60%, #f1f5f9 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.35);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  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: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-400);
  border: 1px solid rgba(34, 211, 238, 0.5);
  border-radius: 12px;
  background: rgba(8, 145, 178, 0.18);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.18);
}

.brand-name {
  font-size: 20px;
  background: linear-gradient(90deg, var(--cyan-400), var(--blue-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-menu a {
  color: #cbd5e1;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-toggle {
  display: none;
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-size: 22px;
  padding: 8px 11px;
}

.hero-slider {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), #164e63, var(--slate-900));
}

.hero-bg-list,
.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg {
  opacity: 0;
  transition: opacity 0.65s ease;
}

.hero-bg.active {
  opacity: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  transform: scale(1.02);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 1) 0%, rgba(15, 23, 42, 0.62) 50%, rgba(15, 23, 42, 0.18) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 600px;
  margin: 0 auto;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  padding: 80px 0;
}

.hero-slide {
  display: none;
  max-width: 760px;
}

.hero-slide.active {
  display: block;
  animation: fadeUp 0.55s ease both;
}

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

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--cyan-400);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.kicker::before {
  content: "★";
  color: #facc15;
}

.hero-slide h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-slide p {
  margin: 0 0 24px;
  color: #d1d5db;
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags {
  margin-bottom: 30px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
}

.hero-tags span {
  padding: 10px 14px;
  color: #ecfeff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

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

.btn,
.hero-actions a,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary,
.hero-actions a:first-child {
  color: var(--white);
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-500));
  box-shadow: 0 12px 28px rgba(8, 145, 178, 0.32);
}

.hero-actions a {
  min-height: 46px;
  padding: 0 22px;
}

.hero-actions a:not(:first-child) {
  color: #e2e8f0;
  border: 1px solid rgba(226, 232, 240, 0.26);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.btn:hover,
.hero-actions a:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.hero-panel {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 70px rgba(2, 6, 23, 0.35);
}

.hero-panel h2 {
  margin: 0 0 18px;
  font-size: 20px;
}

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

.hero-rank-list a {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  color: #e2e8f0;
}

.hero-rank-list b {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--cyan-300, #67e8f9);
  background: rgba(8, 145, 178, 0.18);
}

.hero-rank-list span {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  margin-top: 4px;
}

.hero-controls {
  position: absolute;
  right: 34px;
  bottom: 34px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-controls button,
.hero-dots button {
  border: 0;
  cursor: pointer;
}

.hero-controls button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--white);
  font-size: 30px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

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

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
  width: 32px;
  background: var(--cyan-400);
}

.main-section {
  padding: 68px 0;
}

.main-section.alt {
  background: linear-gradient(90deg, #f8fafc, #ecfeff);
}

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

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

.section-head h1,
.section-head h2 {
  margin: 0;
  color: var(--slate-900);
  line-height: 1.15;
}

.section-head h1 {
  font-size: clamp(34px, 5vw, 52px);
}

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

.section-head p {
  margin: 10px 0 0;
  color: var(--slate-600);
  font-size: 16px;
  line-height: 1.7;
}

.section-more {
  min-width: 96px;
  height: 40px;
  padding: 0 18px;
  color: var(--cyan-700);
  background: #ecfeff;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: var(--shadow-card);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--slate-200);
}

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

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

.year-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.year-badge {
  left: 12px;
  padding: 7px 10px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.72);
}

.rank-badge {
  right: 12px;
  padding: 7px 10px;
  color: #0f172a;
  background: rgba(34, 211, 238, 0.92);
}

.movie-body {
  padding: 18px;
}

.movie-title {
  display: block;
  color: var(--slate-900);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 10px;
}

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

.movie-body p {
  min-height: 52px;
  margin: 0 0 14px;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.7;
}

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

.tag-row span {
  padding: 7px 9px;
  color: var(--slate-700);
  background: var(--slate-100);
}

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

.category-card {
  min-height: 170px;
  padding: 22px;
  border-radius: var(--radius-xl);
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), #155e75);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease;
}

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

.category-card strong {
  display: block;
  font-size: 22px;
  margin-bottom: 12px;
}

.category-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.65;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 170px 170px;
  gap: 14px;
  align-items: end;
  margin: 26px 0 28px;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.search-panel label,
.search-box {
  display: grid;
  gap: 8px;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 700;
}

.search-panel input,
.search-panel select {
  width: 100%;
  height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  outline: 0;
  color: var(--slate-900);
  background: var(--white);
  padding: 0 14px;
  font: inherit;
}

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

.page-hero {
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), #164e63, var(--slate-900));
  padding: 76px 0;
}

.page-hero .section-head h1,
.page-hero .section-head p {
  color: var(--white);
}

.page-hero .section-head p {
  color: #cbd5e1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  color: var(--cyan-600);
  font-weight: 700;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: var(--shadow-soft);
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  color: var(--white);
  background: radial-gradient(circle, rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.62));
}

.play-layer span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 34px;
  padding-left: 5px;
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-500));
  box-shadow: 0 18px 45px rgba(6, 182, 212, 0.35);
}

.play-layer.is-hidden {
  display: none;
}

.detail-card,
.sidebar-card {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.detail-card {
  padding: 28px;
  margin-top: 24px;
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.18;
}

.detail-card h2,
.sidebar-card h2 {
  margin: 24px 0 12px;
  font-size: 24px;
}

.detail-card p {
  color: var(--slate-700);
  font-size: 17px;
  line-height: 1.9;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--cyan-700);
  font-size: 13px;
  font-weight: 800;
  background: #ecfeff;
}

.sidebar-card {
  position: sticky;
  top: 88px;
  padding: 20px;
}

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

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

.mini-card img {
  width: 108px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--slate-200);
}

.mini-card strong {
  display: block;
  color: var(--slate-900);
  line-height: 1.35;
}

.mini-card em {
  display: block;
  margin-top: 6px;
  color: var(--slate-500);
  font-size: 12px;
  font-style: normal;
}

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

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

.footer-inner p {
  margin: 10px 0 0;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

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

.empty-state {
  display: none;
  padding: 24px;
  border-radius: var(--radius-lg);
  color: var(--slate-600);
  background: var(--slate-100);
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 20px;
    background: var(--slate-800);
    border-top: 1px solid rgba(148, 163, 184, 0.22);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    padding: 12px 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 70px 0 110px;
  }

  .hero-panel {
    display: none;
  }

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

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

  .sidebar-card {
    position: static;
  }

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

@media (max-width: 620px) {
  .hero-slider,
  .hero-inner {
    min-height: 560px;
  }

  .hero-controls {
    right: 18px;
    bottom: 20px;
  }

  .hero-dots {
    bottom: 31px;
  }

  .movie-grid,
  .movie-grid.small,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-card {
    padding: 20px;
  }

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

  .mini-card img {
    width: 96px;
    height: 64px;
  }
}
