: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-600: #0891b2;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --blue-500: #3b82f6;
  --yellow-400: #facc15;
  --white: #ffffff;
  --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.14);
  --shadow-strong: 0 24px 80px rgba(8, 145, 178, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--slate-900);
  background: linear-gradient(180deg, #f8fafc 0%, #eef7fb 46%, #ffffff 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.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 12px 32px rgba(2, 6, 23, 0.22);
}

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

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

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--cyan-400), var(--blue-500));
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.46);
}

.logo-text {
  font-size: 20px;
  background: linear-gradient(90deg, var(--cyan-400), #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  color: #d1d5db;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

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

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #e5e7eb;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 10px 24px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  background: var(--slate-800);
}

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

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

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

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

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

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

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--slate-900) 0%, rgba(15, 23, 42, 0.72) 46%, rgba(15, 23, 42, 0.14) 100%);
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(760px, 100%);
}

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

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

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

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

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

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

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

.hero-tags span:first-child {
  color: #a5f3fc;
  background: rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.5);
}

.hero-actions,
.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

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

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-500));
  box-shadow: 0 14px 34px rgba(14, 165, 233, 0.34);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.hero-controls {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.hero-control {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.25);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

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

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

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

.section,
.detail-section {
  padding: 70px 0;
}

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

.section-dark {
  color: var(--white);
  background: var(--slate-900);
}

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

.section-heading {
  justify-content: space-between;
  margin-bottom: 30px;
}

.section-title-group {
  display: grid;
  gap: 6px;
}

.section-kicker {
  color: var(--cyan-600);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.section h2,
.page-hero h1,
.detail-title {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.section-dark h2,
.section-dark .section-kicker,
.page-hero h1 {
  color: var(--white);
}

.section-lead,
.page-hero p {
  max-width: 780px;
  margin: 12px 0 0;
  color: var(--slate-600);
  font-size: 17px;
  line-height: 1.8;
}

.section-dark .section-lead,
.page-hero p {
  color: #cbd5e1;
}

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

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

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

.movie-card {
  min-width: 0;
}

.card-link,
.horizontal-link,
.category-card a {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-wrap,
.horizontal-poster,
.recommend-poster {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #cbd5e1, #e0f2fe);
}

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

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

.card-link:hover img,
.horizontal-link:hover img,
.recommend-link:hover img {
  transform: scale(1.08);
}

.duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.7);
  font-size: 12px;
  font-weight: 700;
}

.rank-number {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--yellow-400), #fb923c);
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(251, 146, 60, 0.34);
}

.card-body,
.horizontal-content {
  padding: 18px;
}

.category-pill {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #0e7490;
  background: #cffafe;
  font-size: 12px;
  font-weight: 800;
}

.card-body h3,
.horizontal-content h3,
.recommend-body h4 {
  margin: 0 0 10px;
  color: var(--slate-900);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body h3 {
  min-height: 44px;
  font-size: 17px;
}

.card-body p,
.horizontal-content p {
  margin: 0 0 14px;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span {
  padding: 5px 8px;
  color: var(--slate-500);
  background: #f1f5f9;
}

.horizontal-link {
  display: flex;
  gap: 0;
}

.horizontal-poster {
  width: 210px;
  flex: 0 0 auto;
}

.horizontal-content {
  flex: 1;
  min-width: 0;
}

.meta-line {
  margin: 0 0 12px;
  color: var(--slate-500);
  font-size: 13px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 12px;
  margin: 0 0 28px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.search-box input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: var(--white);
  color: var(--slate-800);
  outline: none;
}

.search-box input {
  border: 0;
  min-height: auto;
}

.filter-bar select {
  padding: 0 14px;
}

.empty-state {
  display: none;
  padding: 36px;
  border-radius: 20px;
  background: var(--white);
  color: var(--slate-600);
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.page-hero {
  color: var(--white);
  background: linear-gradient(120deg, var(--slate-900), #155e75);
  padding: 66px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: #bae6fd;
  font-weight: 700;
}

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

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

.category-card a {
  padding: 26px;
  border: 1px solid #e0f2fe;
}

.category-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.28);
}

.category-card h2 {
  margin: 0 0 12px;
  color: var(--slate-900);
  font-size: 24px;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--slate-600);
  line-height: 1.75;
}

.category-samples {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.category-samples a {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--cyan-600);
  background: transparent;
  box-shadow: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-card strong {
  color: var(--cyan-600);
}

.detail-page {
  padding: 34px 0 70px;
}

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

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

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.18), rgba(2, 6, 23, 0.32) 56%, rgba(0, 0, 0, 0.55));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-start {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--cyan-400), var(--blue-500));
  font-size: 34px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 54px rgba(6, 182, 212, 0.46);
  transition: transform 0.2s ease;
}

.player-start:hover {
  transform: scale(1.06);
}

.detail-card,
.recommend-card {
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.1);
}

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

.detail-title {
  margin: 14px 0 16px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--slate-600);
}

.detail-meta span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 13px;
  font-weight: 700;
}

.detail-tags {
  margin: 18px 0 28px;
}

.detail-tags span {
  padding: 8px 11px;
  color: var(--slate-700);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.article-block {
  margin-top: 26px;
}

.article-block h2 {
  margin: 0 0 12px;
  color: var(--slate-900);
  font-size: 24px;
}

.article-block p {
  margin: 0;
  color: var(--slate-700);
  font-size: 16px;
  line-height: 1.9;
}

.recommend-card {
  position: sticky;
  top: 90px;
  padding: 22px;
}

.recommend-card h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

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

.recommend-link {
  display: flex;
  gap: 12px;
}

.recommend-poster {
  width: 132px;
  height: 82px;
  flex: 0 0 auto;
  border-radius: 12px;
}

.recommend-body {
  min-width: 0;
}

.recommend-body h4 {
  margin-bottom: 6px;
  font-size: 15px;
}

.recommend-body span {
  color: var(--slate-500);
  font-size: 12px;
}

.site-footer {
  color: #cbd5e1;
  background: var(--slate-950);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  gap: 16px;
}

.footer-logo {
  color: var(--cyan-400);
}

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

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero {
    height: 560px;
  }

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

  .hero-dots {
    bottom: 30px;
  }

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

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

  .recommend-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .header-inner {
    width: min(100% - 24px, 1180px);
  }

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

  .hero {
    height: 620px;
  }

  .hero-content,
  .container {
    width: min(100% - 24px, 1180px);
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-controls {
    display: none;
  }

  .section,
  .detail-section {
    padding: 48px 0;
  }

  .section-heading {
    align-items: flex-start;
  }

  .grid,
  .grid.two,
  .grid.three,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .horizontal-link {
    display: block;
  }

  .horizontal-poster {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .detail-card {
    padding: 22px;
  }

  .player-start {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }
}
