:root {
  --cyan-50: #ecfeff;
  --cyan-100: #cffafe;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --cyan-700: #0e7490;
  --blue-600: #2563eb;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-600: #475569;
  --slate-200: #e2e8f0;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 10px 30px rgba(8, 47, 73, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--slate-900);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 34rem),
    linear-gradient(180deg, #f8fdff 0%, #eef8ff 48%, #ffffff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(8, 145, 178, 0.14);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 30px rgba(8, 47, 73, 0.06);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-600), var(--blue-600));
  box-shadow: 0 12px 25px rgba(8, 145, 178, 0.32);
}

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

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

.nav-link {
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--slate-600);
  font-weight: 700;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan-700);
  background: var(--cyan-50);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--cyan-50);
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--cyan-700);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

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

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--slate-600);
  font-weight: 700;
}

.mobile-nav a:hover {
  color: var(--cyan-700);
  background: var(--cyan-50);
}

.hero {
  padding: 26px 0 0;
}

.hero-stage {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 610px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 36px;
  background: var(--slate-900);
  box-shadow: 0 28px 80px rgba(8, 47, 73, 0.28);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  min-height: 610px;
  padding: clamp(28px, 6vw, 76px);
  opacity: 0;
  visibility: hidden;
  background-size: cover;
  background-position: center;
  transform: scale(1.015);
  transition: opacity 0.65s ease, transform 0.65s ease, visibility 0.65s ease;
}

.hero-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-copy {
  max-width: 720px;
  color: var(--white);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #0369a1;
  background: rgba(207, 250, 254, 0.92);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0 0 14px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero-copy h2 {
  margin: 0 0 18px;
  color: var(--cyan-100);
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 900;
}

.hero-copy p {
  max-width: 640px;
  margin: 0 0 22px;
  color: #e0f7ff;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #075985;
  background: rgba(236, 254, 255, 0.92);
  font-size: 12px;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-btn {
  min-height: 46px;
  padding: 0 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-600), var(--blue-600));
  box-shadow: 0 12px 28px rgba(8, 145, 178, 0.28);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.ghost-btn {
  min-height: 46px;
  padding: 0 22px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.text-link {
  color: var(--cyan-700);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
  font-size: 34px;
  transform: translateY(-50%);
  transition: 0.22s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.32);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: 0.22s ease;
}

.hero-dot.active {
  width: 34px;
  background: var(--white);
}

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

.section-raised {
  margin-top: -20px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-head.between {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-head.compact {
  margin-bottom: 18px;
}

.section-head h2,
.page-hero h1,
.detail-copy h1,
.content-main h2,
.content-side h2 {
  margin: 0 0 10px;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

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

.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(8, 145, 178, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-card);
}

.search-box {
  display: grid;
  gap: 8px;
  color: var(--slate-600);
  font-weight: 900;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(8, 145, 178, 0.18);
  border-radius: 16px;
  outline: none;
  color: var(--slate-900);
  background: var(--white);
  font-size: 16px;
}

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

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-chip {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--cyan-700);
  background: var(--cyan-50);
  font-weight: 900;
}

.filter-chip.active,
.filter-chip:hover {
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-600), var(--blue-600));
}

.filter-empty {
  display: none;
  margin: 0;
  color: var(--slate-600);
  font-weight: 800;
}

.filter-empty.show {
  display: block;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(8, 145, 178, 0.12);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(8, 47, 73, 0.18);
}

.poster-link,
.poster-frame {
  position: relative;
  display: block;
}

.poster-frame {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cyan-50), #dbeafe);
}

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

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

.score-badge,
.play-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.score-badge {
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  background: rgba(14, 116, 144, 0.9);
}

.play-badge {
  left: 10px;
  bottom: 10px;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.74);
}

.movie-info {
  padding: 14px;
}

.movie-title {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: var(--slate-900);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 9px 0;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 800;
}

.movie-info p {
  display: -webkit-box;
  min-height: 56px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

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

.category-tile {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 24px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: var(--white);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 55px rgba(8, 47, 73, 0.22);
}

.category-tile span {
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 900;
}

.category-tile strong {
  color: var(--cyan-50);
  font-size: 14px;
  line-height: 1.7;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 28px;
  align-items: start;
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: var(--slate-950);
  box-shadow: 0 22px 60px rgba(2, 6, 23, 0.24);
}

.rank-panel h2,
.rank-panel .section-kicker {
  color: var(--white);
}

.rank-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.rank-item,
.mini-card {
  display: grid;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  transition: 0.22s ease;
}

.rank-item {
  grid-template-columns: 34px 52px minmax(0, 1fr) auto;
  padding: 10px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.rank-item:hover,
.mini-card:hover {
  transform: translateX(4px);
}

.rank-no,
.rank-score {
  color: var(--cyan-100);
  font-weight: 900;
}

.rank-item img,
.mini-card img {
  width: 52px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-title strong,
.mini-card strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.rank-title em,
.mini-card em {
  display: block;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-btn.full {
  width: 100%;
}

.page-hero,
.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto 0;
  border-radius: 36px;
  color: var(--white);
  background-size: cover;
  background-position: center;
  box-shadow: 0 25px 70px rgba(8, 47, 73, 0.22);
}

.page-hero {
  padding: clamp(34px, 6vw, 70px);
  background: linear-gradient(135deg, var(--cyan-700), var(--blue-600));
}

.page-hero.slim {
  min-height: 260px;
}

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

.category-hero {
  min-height: 360px;
}

.overview-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.overview-cover {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  height: 190px;
  background: var(--cyan-50);
}

.overview-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overview-content {
  padding: 22px;
}

.overview-content h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.overview-content p {
  min-height: 72px;
  margin: 0 0 14px;
  color: var(--slate-600);
  line-height: 1.7;
}

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

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

.mini-card {
  grid-template-columns: 52px minmax(0, 1fr);
  padding: 10px;
  border: 1px solid rgba(8, 145, 178, 0.12);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.mini-card em {
  color: var(--slate-600);
}

.ranking-grid {
  display: grid;
  gap: 16px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
}

.ranking-poster {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.ranking-poster img {
  width: 120px;
  height: 170px;
  object-fit: cover;
}

.ranking-number {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(2, 6, 23, 0.78);
  font-weight: 900;
}

.ranking-content h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.ranking-content p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.8;
}

.detail-hero {
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.detail-inner {
  padding: clamp(24px, 6vw, 58px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 800;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.34);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-copy h1,
.detail-copy .lead,
.detail-copy .detail-meta,
.detail-copy a {
  color: var(--white);
}

.detail-copy h1 {
  font-size: clamp(38px, 6vw, 68px);
}

.detail-copy .lead {
  max-width: 760px;
  margin: 0 0 16px;
  color: #e0f7ff;
  font-size: 18px;
  line-height: 1.85;
}

.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.12);
}

.tag-row.large span {
  font-size: 13px;
}

.player-section {
  padding-bottom: 24px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.3);
}

.main-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(8, 145, 178, 0.28), rgba(2, 6, 23, 0.72));
  font-size: 18px;
  font-weight: 900;
}

.player-overlay.is-hidden {
  display: none;
}

.play-circle {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-600), var(--blue-600));
  box-shadow: 0 18px 38px rgba(8, 145, 178, 0.36);
  font-size: 34px;
}

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

.content-main,
.content-side {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.content-main h2,
.content-side h2 {
  font-size: 28px;
}

.content-main p {
  margin: 0 0 26px;
  color: var(--slate-600);
  font-size: 17px;
  line-height: 1.95;
}

.site-footer {
  margin-top: 36px;
  padding: 42px 0;
  color: rgba(255, 255, 255, 0.78);
  background: var(--slate-950);
}

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

.footer-brand {
  color: var(--white);
  font-size: 24px;
}

.footer-inner p {
  max-width: 620px;
  margin: 12px 0 0;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}

.footer-links a {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1180px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .mobile-toggle {
    display: block;
  }

  .hero-stage,
  .hero-slide {
    min-height: 540px;
  }

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

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

  .rank-panel {
    position: static;
  }

  .detail-poster {
    width: min(260px, 80vw);
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .hero-stage,
  .page-hero,
  .detail-hero {
    width: calc(100% - 20px);
    border-radius: 24px;
  }

  .hero-stage,
  .hero-slide {
    min-height: 610px;
  }

  .hero-arrow {
    display: none;
  }

  .section {
    width: calc(100% - 20px);
    padding: 42px 0;
  }

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

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

  .ranking-poster img {
    width: 88px;
    height: 128px;
  }

  .section-head.between {
    align-items: start;
    flex-direction: column;
  }

  .content-main,
  .content-side {
    padding: 20px;
  }
}
