:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --blue-600: #2563eb;
  --white: #ffffff;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.13);
  --shadow-hover: 0 26px 70px rgba(8, 47, 73, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 52%, #0f172a 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.28);
}

.nav-inner {
  width: min(1240px, calc(100% - 32px));
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.34);
}

.brand strong,
.footer-brand {
  display: block;
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand em {
  display: block;
  color: var(--cyan-400);
  font-size: 12px;
  font-style: normal;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.nav-links a,
.mobile-menu a {
  color: var(--slate-300);
  font-weight: 650;
  white-space: nowrap;
  transition: color 0.22s ease;
}

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

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

.nav-search input {
  width: 188px;
  padding: 10px 12px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  outline: none;
}

.nav-search input:focus {
  border-color: var(--cyan-400);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}

.nav-search button,
.primary-btn,
.search-panel button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-600));
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.nav-search button:hover,
.primary-btn:hover,
.search-panel button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(8, 145, 178, 0.34);
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  color: #ffffff;
  background: transparent;
  border: 0;
  font-size: 28px;
}

.mobile-menu {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  gap: 12px;
  flex-direction: column;
}

.mobile-menu.is-open {
  display: flex;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 16% 18%, rgba(34, 211, 238, 0.28), transparent 34%), linear-gradient(135deg, #0f172a 0%, #172554 48%, #083344 100%);
}

.hero-grid-bg,
.page-hero::before,
.detail-hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image: linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-inner {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  padding: 70px 0 88px;
}

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.55fr);
  align-items: center;
  gap: 54px;
  position: absolute;
  inset: 70px 0 88px 0;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.hero-kicker,
.page-hero span {
  display: inline-flex;
  align-items: center;
  color: var(--cyan-400);
  background: rgba(8, 47, 73, 0.5);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 14px;
  font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 20px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero p,
.page-hero p,
.detail-one-line {
  max-width: 760px;
  color: #cffafe;
  font-size: clamp(18px, 2.1vw, 25px);
  margin: 0 0 26px;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span,
.meta-line span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.28), rgba(30, 41, 59, 0.9));
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.42);
}

.hero-poster img,
.poster-wrap img,
.detail-poster img,
.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster span,
.play-mark {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(8, 145, 178, 0.42);
}

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

.hero-dot {
  width: 34px;
  height: 7px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.26);
}

.hero-dot.is-active {
  background: var(--cyan-400);
}

.content-section {
  padding: 72px max(16px, calc((100vw - 1240px) / 2));
}

.white-section {
  background: #ffffff;
}

.soft-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

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

.section-head h2 {
  margin: 0 0 7px;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 0;
  color: var(--slate-600);
  font-size: 17px;
}

.section-link {
  color: var(--cyan-500);
  font-weight: 850;
}

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

.category-card,
.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 172px;
  padding: 28px;
  color: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:nth-child(4n + 1),
.category-overview-card:nth-child(4n + 1) {
  background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.category-card:nth-child(4n + 2),
.category-overview-card:nth-child(4n + 2) {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.category-card:nth-child(4n + 3),
.category-overview-card:nth-child(4n + 3) {
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.category-card:nth-child(4n + 4),
.category-overview-card:nth-child(4n + 4) {
  background: linear-gradient(135deg, #10b981, #0f766e);
}

.category-card:hover,
.category-overview-card:hover,
.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-hover);
}

.category-card strong,
.category-title {
  display: block;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
}

.category-card span,
.category-overview-card p {
  display: block;
  color: rgba(255, 255, 255, 0.88);
}

.category-card em,
.category-overview-card strong {
  display: inline-flex;
  margin-top: 18px;
  color: #ffffff;
  font-style: normal;
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 42% 1fr;
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.28), transparent 32%), linear-gradient(135deg, #0f172a, #1e293b);
}

.movie-card-wide .poster-wrap {
  aspect-ratio: auto;
  min-height: 250px;
}

.poster-wrap::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.72) 100%);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.movie-card:hover .poster-wrap::after {
  opacity: 1;
}

.poster-wrap img {
  transition: transform 0.45s ease;
}

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

.play-mark {
  width: 54px;
  height: 54px;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
  transform: scale(1.04);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  color: #ffffff;
  background: linear-gradient(90deg, #f97316, #ef4444);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 18px;
}

.meta-line,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 11px;
}

.meta-line span,
.detail-meta span {
  color: #0891b2;
  background: #ecfeff;
}

.movie-card h3 {
  margin: 0 0 10px;
  color: var(--slate-900);
  font-size: 20px;
  line-height: 1.25;
}

.movie-card h3 a:hover {
  color: var(--cyan-500);
}

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

.tag-row span {
  color: var(--slate-600);
  background: var(--slate-100);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.25), transparent 35%), linear-gradient(135deg, #0f172a 0%, #172554 48%, #083344 100%);
}

.page-hero > div {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.filter-panel,
.search-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
}

.filter-input,
.search-panel input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  outline: none;
}

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

.filter-count,
.search-count {
  color: var(--slate-600);
  font-weight: 800;
}

.detail-hero {
  min-height: 620px;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  filter: blur(4px);
}

.detail-inner {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 34px;
  color: var(--slate-300);
}

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

.breadcrumb em {
  color: #ffffff;
  font-style: normal;
}

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

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.detail-copy h1 {
  color: #ffffff;
}

.player-section {
  padding: 54px max(16px, calc((100vw - 1120px) / 2));
  background: #020617;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #ffffff;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.22), rgba(2, 6, 23, 0.78));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  font-size: 30px;
}

.player-overlay strong {
  font-size: 22px;
}

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

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

.article-block {
  padding: 30px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.article-block h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.article-block p {
  margin: 0;
  color: var(--slate-600);
  font-size: 17px;
}

.category-overview-card {
  color: #ffffff;
}

.mini-links {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

.mini-links a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.sitemap-list {
  columns: 4 260px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitemap-list li {
  break-inside: avoid;
  margin-bottom: 9px;
}

.sitemap-list a {
  color: var(--slate-700);
}

.sitemap-list a:hover {
  color: var(--cyan-500);
}

.site-footer {
  color: var(--slate-300);
  background: #0f172a;
  padding: 54px 16px;
}

.footer-inner {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 34px;
}

.site-footer h3 {
  color: #ffffff;
  margin: 0 0 14px;
}

.site-footer p {
  margin: 10px 0 0;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 8px;
}

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

.back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  z-index: 30;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(8, 145, 178, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1120px) {
  .nav-links,
  .nav-search {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

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

  .hero-poster {
    display: none;
  }

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

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

@media (max-width: 760px) {
  .nav-inner {
    height: 70px;
  }

  .brand strong {
    font-size: 20px;
  }

  .hero-inner {
    min-height: 590px;
    padding: 52px 0 80px;
  }

  .hero-slide {
    inset: 52px 0 80px 0;
  }

  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 38px;
  }

  .hero p,
  .page-hero p,
  .detail-one-line {
    font-size: 17px;
  }

  .section-head,
  .filter-panel,
  .search-panel {
    align-items: stretch;
    flex-direction: column;
  }

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

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

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

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

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .content-section {
    padding-top: 46px;
    padding-bottom: 46px;
  }

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

  .player-shell {
    border-radius: 16px;
  }
}
