:root {
  --bg: #061827;
  --bg-soft: #0f2a3d;
  --card: #ffffff;
  --text: #102033;
  --muted: #64748b;
  --line: #e2e8f0;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --amber: #f59e0b;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 20px;
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 12px 28px rgba(20, 184, 166, 0.32);
}

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

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #334155;
  font-weight: 650;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #075985;
  background: #cffafe;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #ecfeff;
  cursor: pointer;
}

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

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #fff;
  background: #061827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.05);
  transform: scale(1.05);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 28%, rgba(34, 211, 238, 0.34), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.72) 44%, rgba(2, 6, 23, 0.35) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0) 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 360px;
  align-items: center;
  gap: 48px;
  padding: 82px 0 70px;
}

.hero-copy h1 {
  max-width: 780px;
  margin: 18px 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 28px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.85;
}

.hero-meta,
.card-meta,
.detail-meta,
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #64748b;
  font-size: 14px;
}

.hero-meta span,
.hero-meta a,
.card-meta span,
.card-meta a,
.detail-meta span,
.breadcrumb a,
.breadcrumb span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
}

.hero-meta span,
.hero-meta a {
  color: #ecfeff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-actions,
.wide-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 16px 32px rgba(20, 184, 166, 0.32);
}

.btn-ghost {
  color: #0f766e;
  background: #ccfbf1;
}

.hero-card {
  position: relative;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px);
}

.hero-card img {
  aspect-ratio: 2 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.hero-card-caption {
  position: absolute;
  right: 26px;
  bottom: 26px;
  left: 26px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(12px);
}

.hero-card-caption strong {
  display: block;
  font-size: 20px;
  margin-bottom: 6px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 36px;
  border-radius: 999px;
  background: #fff;
}

.section {
  padding: 70px 0;
}

.section.alt {
  background: rgba(236, 254, 255, 0.45);
}

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

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

.section-head h1,
.section-head h2,
.page-title h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.section-head p,
.page-title p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-more {
  flex: 0 0 auto;
  color: #0891b2;
  font-weight: 800;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card,
.category-tile,
.wide-card,
.detail-panel,
.player-panel,
.search-box {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.movie-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
}

.poster-badge {
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  background: rgba(8, 145, 178, 0.9);
}

.poster-play {
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 16px;
}

.card-meta span,
.card-meta a,
.detail-meta span,
.breadcrumb a,
.breadcrumb span {
  color: #0f766e;
  background: #f0fdfa;
}

.card-body h2,
.wide-body h2 {
  margin: 12px 0 8px;
  color: #0f172a;
  font-size: 19px;
  line-height: 1.28;
}

.card-body p,
.wide-body p {
  display: -webkit-box;
  min-height: 54px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
  font-size: 12px;
  font-weight: 700;
}

.category-tile {
  display: block;
  padding: 22px;
  min-height: 160px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 34%),
    #ffffff;
}

.category-tile strong {
  display: block;
  margin-bottom: 10px;
  color: #0f172a;
  font-size: 22px;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.category-tile span {
  display: inline-flex;
  margin-top: 16px;
  color: #0891b2;
  font-weight: 800;
}

.wide-list {
  display: grid;
  gap: 18px;
}

.wide-card {
  position: relative;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 16px;
}

.rank-number {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-weight: 900;
}

.wide-poster img {
  width: 108px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 16px;
}

.filter-bar,
.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  align-items: end;
  margin-bottom: 24px;
  padding: 18px;
}

.filter-bar label,
.search-field {
  display: grid;
  gap: 8px;
  color: #0f172a;
  font-weight: 800;
}

.filter-bar input,
.filter-bar select,
.search-box input,
.search-box select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 0 14px;
  color: #0f172a;
  background: #fff;
  font: inherit;
}

.page-hero {
  padding: 70px 0 34px;
  background:
    radial-gradient(circle at 88% 10%, rgba(20, 184, 166, 0.22), transparent 28%),
    linear-gradient(180deg, #ecfeff 0%, rgba(255, 255, 255, 0) 100%);
}

.page-title {
  max-width: 900px;
}

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

.detail-panel,
.player-panel {
  padding: 24px;
}

.detail-panel h1 {
  margin: 16px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.detail-panel h2,
.player-panel h2 {
  margin: 30px 0 12px;
  font-size: 26px;
}

.detail-panel p,
.player-panel p {
  color: #334155;
  line-height: 1.9;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  box-shadow: 0 22px 60px rgba(2, 6, 23, 0.26);
}

.player-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: auto auto 24px 24px;
  border: 0;
  cursor: pointer;
}

.side-card {
  display: grid;
  gap: 16px;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.info-list dt {
  color: var(--muted);
}

.info-list dd {
  margin: 0;
  text-align: right;
  font-weight: 800;
}

.sitemap-list {
  columns: 3 260px;
  column-gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitemap-list li {
  break-inside: avoid;
  margin: 0 0 10px;
}

.site-footer {
  margin-top: 70px;
  padding: 48px 0 26px;
  color: #cbd5e1;
  background: #061827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 32px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

.site-footer p {
  max-width: 520px;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 10px;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 14px;
}

.empty-result {
  display: none;
  padding: 24px;
  border-radius: 18px;
  color: #0f766e;
  background: #ccfbf1;
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero-content,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 360px;
  }

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

@media (max-width: 720px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 70px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid #bae6fd;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero-carousel {
    min-height: 760px;
  }

  .hero-content {
    gap: 26px;
    padding-top: 54px;
  }

  .section-head,
  .filter-bar,
  .search-box {
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .wide-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .wide-poster img {
    width: 86px;
  }
}
