:root {
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --teal: #14b8a6;
  --blue-soft: #eff6ff;
  --cyan-soft: #ecfeff;
  --ink: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --card: #ffffff;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--cyan-soft), #ffffff 38%, var(--blue-soft));
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(240, 253, 250, 0.92);
  border-bottom: 1px solid rgba(14, 165, 233, 0.16);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.nav-wrap {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 20px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 10px 20px rgba(6, 182, 212, 0.28);
  font-size: 13px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: #334155;
  font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
  color: var(--cyan-dark);
  background: rgba(6, 182, 212, 0.1);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.12);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--cyan-dark);
}

.spotlight {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: #020617;
}

.spotlight-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.9s ease, transform 1.2s ease;
  pointer-events: none;
}

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

.spotlight-slide img {
  height: 100%;
  object-fit: cover;
}

.spotlight-shade,
.tile-shade,
.category-card span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.86), rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.08));
}

.spotlight-content {
  position: absolute;
  inset: 0;
  max-width: 1180px;
  margin: 0 auto;
  padding: 90px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  color: var(--cyan-dark);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.spotlight-content .eyebrow,
.detail-copy .eyebrow {
  color: #67e8f9;
}

.spotlight-content h1 {
  max-width: 760px;
  margin: 14px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.spotlight-content p {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.8;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta {
  margin: 22px 0 12px;
}

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

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

.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.12);
  color: var(--cyan-dark);
  font-size: 12px;
  font-weight: 700;
}

.tag-row.large span {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  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: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 16px 35px rgba(6, 182, 212, 0.32);
}

.btn.soft {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

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

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

.spotlight-dot.is-active {
  width: 34px;
  background: var(--cyan);
}

.section-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 58px 20px;
}

.intro-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding-top: 44px;
  padding-bottom: 28px;
}

.intro-strip h2,
.section-head h2,
.page-title h1 {
  margin: 8px 0 0;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.intro-strip p,
.page-title p {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.85;
}

.quick-search,
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.quick-search input,
.filter-bar input,
.filter-bar select {
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #0f172a;
}

.quick-search input {
  width: min(340px, 44vw);
  padding: 0 8px;
}

.quick-search button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
}

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

.section-head a {
  color: var(--cyan-dark);
  font-weight: 800;
}

.compact-head {
  align-items: center;
}

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

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

.movie-card {
  min-width: 0;
  background: var(--card);
  border: 1px solid rgba(14, 165, 233, 0.12);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card figure {
  position: relative;
  margin: 0;
  height: 260px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #164e63);
}

.movie-card.compact figure {
  height: 210px;
}

.movie-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.score-badge,
.year-badge {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  font-size: 12px;
  backdrop-filter: blur(8px);
}

.score-badge {
  left: 12px;
  background: rgba(234, 179, 8, 0.9);
}

.year-badge {
  right: 12px;
  background: rgba(15, 23, 42, 0.72);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.36;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p {
  min-height: 48px;
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  color: #475569;
  font-size: 13px;
  margin-bottom: 12px;
}

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

.category-tile,
.category-card {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  background: #0f172a;
}

.category-card {
  min-height: 230px;
}

.category-tile img,
.category-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-tile:hover img,
.category-card:hover img {
  transform: scale(1.08);
}

.category-tile strong,
.category-tile em,
.category-card strong,
.category-card em {
  position: absolute;
  left: 18px;
  right: 18px;
  color: #ffffff;
  z-index: 2;
}

.category-tile strong,
.category-card strong {
  bottom: 58px;
  font-size: 20px;
}

.category-tile em,
.category-card em {
  bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.split-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: start;
}

.rank-panel,
.rank-list.wide {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(14, 165, 233, 0.12);
  border-radius: 26px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.rank-list {
  display: grid;
  gap: 0;
}

.rank-row {
  display: grid;
  grid-template-columns: 46px 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-no {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #64748b;
  background: #e2e8f0;
  font-weight: 900;
}

.rank-row.top-one .rank-no {
  color: #ffffff;
  background: #eab308;
}

.rank-row.top-two .rank-no {
  color: #ffffff;
  background: #94a3b8;
}

.rank-row.top-three .rank-no {
  color: #ffffff;
  background: #f97316;
}

.rank-row img {
  height: 54px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info em {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-info strong {
  color: #0f172a;
}

.rank-info em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

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

.page-title {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.28), transparent 34%), linear-gradient(135deg, #f0fdfa, #eff6ff);
  border-bottom: 1px solid rgba(14, 165, 233, 0.12);
}

.page-title > div {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 20px;
}

.channel-filter,
.search-panel {
  padding-top: 28px;
  padding-bottom: 18px;
}

.filter-bar {
  max-width: 760px;
  border-radius: 24px;
  justify-content: space-between;
}

.filter-bar input {
  flex: 1;
  padding: 10px 12px;
}

.filter-bar select {
  padding: 10px 12px;
  border-left: 1px solid var(--line);
  color: #334155;
}

.large-filter {
  max-width: none;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.mini-links a {
  color: var(--cyan-dark);
  background: rgba(6, 182, 212, 0.1);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
}

.empty-state {
  display: none;
  margin: 26px 0;
  padding: 28px;
  border-radius: 20px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
}

.empty-state.is-visible {
  display: block;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

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

.detail-bg img {
  height: 100%;
  object-fit: cover;
  filter: blur(20px) saturate(1.1);
  transform: scale(1.1);
  opacity: 0.34;
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(8, 47, 73, 0.72));
}

.detail-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px 20px 58px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #67e8f9;
}

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

.detail-poster {
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.detail-poster img {
  height: 390px;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 12px 0 16px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-copy .lead {
  max-width: 760px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.85;
}

.detail-copy .btn {
  margin-top: 28px;
}

.watch-section {
  padding-bottom: 28px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: var(--shadow);
}

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

.play-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.74));
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.play-start span {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 18px 38px rgba(6, 182, 212, 0.34);
  font-size: 28px;
  padding-left: 4px;
}

.play-start strong {
  font-size: 18px;
}

.play-start.is-hidden {
  opacity: 0;
  pointer-events: none;
}

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

.text-card {
  padding: 28px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(14, 165, 233, 0.12);
  box-shadow: var(--shadow-soft);
}

.text-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.text-card p {
  margin: 0;
  color: #334155;
  line-height: 1.95;
}

.text-card p + p {
  margin-top: 12px;
}

.site-footer {
  margin-top: 48px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #111827, #0f172a 56%, #082f49);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer-brand {
  color: #ffffff;
  font-size: 20px;
}

.footer-inner p {
  max-width: 640px;
  margin: 10px 0 0;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

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

.copyright {
  grid-column: 1 / -1;
  font-size: 13px;
}

.is-filtered-out {
  display: none;
}

@media (max-width: 1080px) {
  .movie-grid,
  .category-grid,
  .category-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 72px;
    display: none;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spotlight {
    height: 560px;
  }

  .spotlight-content {
    padding-top: 72px;
  }

  .intro-strip,
  .section-head,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    display: flex;
  }

  .quick-search,
  .filter-bar {
    width: 100%;
    border-radius: 20px;
  }

  .quick-search input {
    width: 100%;
  }

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

  .movie-card figure {
    height: 220px;
  }

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

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

  .rank-row {
    grid-template-columns: 38px 64px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 3;
  }
}

@media (max-width: 520px) {
  .movie-grid,
  .movie-grid.narrow,
  .category-grid,
  .category-overview {
    grid-template-columns: 1fr;
  }

  .spotlight {
    height: 610px;
  }

  .spotlight-content h1 {
    font-size: 38px;
  }

  .hero-actions,
  .hero-meta,
  .detail-meta {
    align-items: stretch;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar select {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
