:root {
  --cyan-50: #ecfeff;
  --cyan-100: #cffafe;
  --cyan-200: #a5f3fc;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --slate-900: #0f172a;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --white: #ffffff;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 30px 70px rgba(15, 23, 42, 0.20);
  --radius-lg: 18px;
  --radius-xl: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--cyan-50), #ffffff 34%, #ffffff);
  -webkit-font-smoothing: antialiased;
}

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

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;
  background: linear-gradient(90deg, rgba(236, 254, 255, 0.94), rgba(239, 246, 255, 0.96), rgba(236, 254, 255, 0.94));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(165, 243, 252, 0.75);
  box-shadow: 0 10px 30px rgba(8, 145, 178, 0.12);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.35);
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 24px;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--cyan-600), var(--blue-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--gray-500);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--gray-700);
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: var(--cyan-500);
  box-shadow: 0 12px 24px rgba(6, 182, 212, 0.25);
}

.header-search input,
.filter-input,
.filter-select {
  min-height: 44px;
  border: 2px solid var(--cyan-200);
  border-radius: 999px;
  padding: 0 16px;
  background: #fff;
  color: var(--gray-800);
  outline: none;
  transition: 0.25s ease;
}

.header-search input {
  width: 210px;
}

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

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--gray-700);
  font-size: 28px;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-500));
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: radial-gradient(circle at 20% 30%, #ffffff 0 2px, transparent 3px), radial-gradient(circle at 70% 60%, #ffffff 0 2px, transparent 3px);
  background-size: 72px 72px;
  z-index: 2;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 3;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(0deg, var(--cyan-50), transparent);
}

.hero-content {
  position: relative;
  z-index: 4;
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  color: #fff;
  text-align: center;
  padding: 90px 0 130px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #e0faff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
  font-weight: 700;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero p {
  width: min(760px, 100%);
  margin: 24px auto 0;
  color: #ecfeff;
  font-size: clamp(18px, 2.4vw, 25px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.btn,
.card-action,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.25s ease;
}

.btn {
  min-height: 48px;
  padding: 0 24px;
}

.btn-primary {
  color: var(--cyan-600);
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.btn-primary:hover,
.btn-light:hover,
.card-action:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-ghost {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
}

.btn-light {
  color: var(--cyan-600);
  background: #fff;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 42px;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: 0.25s ease;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 30px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  opacity: 0.75;
}

.hero-dot.is-active,
.hero-arrow:hover,
.hero-dot:hover {
  background: #fff;
  color: var(--cyan-600);
  opacity: 1;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: -44px;
  position: relative;
  z-index: 8;
}

.stat-card,
.prose-card,
.movie-card,
.category-tile,
.compact-card,
.rank-list,
.filter-panel,
.search-panel,
.player-shell {
  background: #fff;
  border: 1px solid rgba(165, 243, 252, 0.52);
  box-shadow: var(--shadow-sm);
}

.stat-card {
  border-radius: 20px;
  padding: 24px;
  text-align: center;
}

.stat-card strong {
  display: block;
  color: var(--gray-800);
  font-size: 34px;
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--gray-500);
  font-weight: 700;
}

.section {
  padding: 70px 0;
}

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

.section-heading h2 {
  margin: 0;
  color: var(--gray-800);
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--gray-500);
}

.section-more {
  color: var(--cyan-600);
}

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

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

.movie-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--cyan-100), #dbeafe);
}

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

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

.card-rating {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 18px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 700;
}

.card-meta span,
.detail-meta span,
.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--cyan-50);
}

.movie-card h3 {
  margin: 12px 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

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

.movie-card p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--gray-500);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.tag-row span {
  color: var(--cyan-600);
  font-size: 12px;
}

.card-action {
  width: 100%;
  min-height: 42px;
  color: #fff;
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-500));
}

.category-band,
.cta-band {
  background: linear-gradient(90deg, #eff6ff, var(--cyan-50));
  padding: 74px 0;
}

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

.category-tile {
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.category-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  font-size: 22px;
  font-weight: 900;
}

.category-tile strong {
  display: block;
  color: var(--gray-800);
  font-size: 22px;
}

.category-tile p {
  margin: 10px 0 16px;
  color: var(--gray-500);
  line-height: 1.65;
}

.category-tile small {
  color: var(--cyan-600);
  font-weight: 800;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 34px;
}

.rank-list {
  display: grid;
  gap: 8px;
  border-radius: var(--radius-lg);
  padding: 18px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 8px 12px;
  border-radius: 12px;
  transition: 0.25s ease;
}

.rank-item:hover {
  color: var(--cyan-600);
  background: var(--cyan-50);
}

.rank-number {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

.rank-score {
  color: #f59e0b;
  font-weight: 900;
}

.compact-list {
  display: grid;
  gap: 12px;
}

.compact-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 102px;
  padding: 12px;
  border-radius: var(--radius-lg);
  transition: 0.25s ease;
}

.compact-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.compact-card img {
  width: 78px;
  height: 78px;
  border-radius: 14px;
  object-fit: cover;
}

.compact-card strong,
.compact-card small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.compact-card small {
  margin-top: 7px;
  color: var(--gray-500);
}

.cta-band {
  color: #fff;
  text-align: center;
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-500));
}

.cta-band h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
}

.cta-band p {
  margin: 0 auto 28px;
  max-width: 780px;
  color: #ecfeff;
  font-size: 18px;
}

.page-hero {
  color: #fff;
  background: linear-gradient(120deg, var(--cyan-500), var(--blue-500));
}

.small-hero {
  padding: 78px 0 74px;
}

.small-hero h1 {
  margin-top: 10px;
  font-size: clamp(38px, 6vw, 64px);
}

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

.filter-panel,
.search-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(150px, 0.24fr)) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: var(--radius-lg);
}

.search-panel {
  grid-template-columns: minmax(260px, 1fr) 160px 160px auto;
}

.filter-input {
  width: 100%;
}

.filter-select {
  width: 100%;
  appearance: none;
}

.filter-count,
.search-summary {
  color: var(--gray-500);
  font-weight: 800;
}

.pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--gray-700);
  background: #fff;
  border: 1px solid rgba(165, 243, 252, 0.8);
  box-shadow: var(--shadow-sm);
  font-weight: 800;
  transition: 0.25s ease;
}

.category-pill:hover {
  color: #fff;
  background: var(--cyan-500);
  transform: translateY(-2px);
}

.category-pill span {
  display: inline-flex;
  min-width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--cyan-600);
  background: var(--cyan-50);
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 14px;
}

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

.detail-hero {
  color: #fff;
  background-size: cover;
  background-position: center;
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  min-height: 560px;
  padding: 64px 0;
}

.detail-poster-wrap {
  padding: 12px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  object-fit: cover;
}

.detail-info h1 {
  max-width: 900px;
}

.detail-one-line {
  max-width: 820px;
  margin: 24px 0;
  color: #ecfeff;
  font-size: 21px;
  line-height: 1.7;
}

.detail-meta span {
  color: #e0faff;
  background: rgba(255, 255, 255, 0.16);
}

.detail-tags {
  margin-top: 22px;
}

.detail-tags span {
  color: #e0faff;
  background: rgba(255, 255, 255, 0.16);
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.28), rgba(2, 6, 23, 0.82));
  cursor: pointer;
  transition: 0.25s ease;
}

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

.play-symbol {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--cyan-600);
  background: #fff;
  font-size: 34px;
  box-shadow: 0 18px 55px rgba(6, 182, 212, 0.34);
}

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

.player-overlay small,
.player-note {
  color: #e0faff;
}

.player-note {
  margin: 12px 0 0;
  color: var(--gray-500);
}

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

.prose-card {
  border-radius: var(--radius-lg);
  padding: 28px;
}

.prose-card h2 {
  margin: 0 0 14px;
  color: var(--gray-800);
  font-size: 26px;
}

.prose-card p {
  margin: 0 0 12px;
  color: var(--gray-500);
  line-height: 1.9;
}

.narrow {
  max-width: 980px;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(180deg, #1f2937, #111827);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 34px;
}

.footer-brand .brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

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

.site-footer p {
  color: #d1d5db;
  line-height: 1.8;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #d1d5db;
  transition: 0.25s ease;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(209, 213, 219, 0.16);
  color: #9ca3af;
}

[hidden] {
  display: none !important;
}

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

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

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

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

@media (max-width: 820px) {
  .header-inner {
    height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-md);
  }

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

  .nav-link {
    padding: 13px 14px;
  }

  .hero {
    min-height: 580px;
  }

  .hero-content {
    padding-top: 82px;
  }

  .stats-strip,
  .movie-grid,
  .featured-grid,
  .related-grid,
  .category-grid,
  .two-column,
  .detail-hero-inner,
  .detail-content-grid,
  .footer-grid,
  .rank-list.extended {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    margin-top: 20px;
  }

  .detail-hero-inner {
    min-height: auto;
  }

  .detail-poster-wrap {
    max-width: 300px;
    margin: 0 auto;
  }

  .section-heading,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand-copy strong {
    font-size: 20px;
  }

  .brand-copy small {
    display: none;
  }

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

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

  .small-hero {
    padding: 56px 0;
  }
}
