:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --line: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --green: #22c55e;
  --yellow: #facc15;
  --red: #ef4444;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  color: #00131a;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.38);
}

.brand-text {
  font-size: 1.15rem;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #cbd5e1;
  font-size: 0.95rem;
  flex: 1;
}

.desktop-nav a,
.mobile-panel a,
.site-footer a,
.text-link,
.section-more {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover,
.site-footer a:hover,
.text-link:hover,
.section-more:hover {
  color: var(--cyan);
}

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

.header-search input,
.mobile-panel input,
.large-search input {
  border: 1px solid rgba(148, 163, 184, 0.16);
  outline: none;
  color: var(--text);
  background: rgba(15, 23, 42, 0.82);
  border-radius: 999px;
}

.header-search input {
  width: 220px;
  padding: 10px 14px;
}

.header-search button,
.mobile-panel button,
.large-search button {
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #0891b2, #2563eb);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.header-search button {
  padding: 10px 16px;
}

.mobile-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.8);
  padding: 8px 12px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 18px;
  border-top: 1px solid var(--line);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel form {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-panel input {
  flex: 1;
  padding: 11px 14px;
}

.mobile-panel button {
  padding: 10px 16px;
}

.mobile-panel nav {
  display: grid;
  gap: 10px;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 540px;
  overflow: hidden;
  background: #020617;
}

.hero-slides,
.hero-slide,
.hero-slide img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-overlay {
  background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.82) 19%, rgba(2, 6, 23, 0.46) 52%, rgba(2, 6, 23, 0.2) 100%), radial-gradient(circle at 18% 42%, rgba(34, 211, 238, 0.24), transparent 32%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-bottom: 76px;
  max-width: min(1180px, calc(100% - 32px));
}

.hero-kicker,
.eyebrow {
  color: var(--cyan);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.hero h1 {
  width: min(760px, 100%);
  margin: 12px 0 16px;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
}

.hero p {
  width: min(680px, 100%);
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

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

.hero-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  padding: 6px 12px;
  color: #a5f3fc;
  background: rgba(8, 47, 73, 0.46);
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: white;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 14px 38px rgba(6, 182, 212, 0.32);
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.52);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.42);
  font-size: 2rem;
  line-height: 1;
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(8, 145, 178, 0.72);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.section-block {
  padding: 64px 0;
}

.intro-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  align-items: center;
  gap: 36px;
}

.intro-block h2,
.section-title-row h2,
.page-hero h1,
.detail-hero h1 {
  margin: 0;
  letter-spacing: -0.04em;
}

.intro-block h2,
.section-title-row h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.intro-block p:not(.eyebrow),
.page-hero p,
.category-overview-card p,
.content-panel p {
  color: #cbd5e1;
}

.large-search {
  display: flex;
  gap: 10px;
}

.large-search input {
  flex: 1;
  min-width: 0;
  padding: 15px 18px;
}

.large-search button {
  padding: 0 22px;
  font-weight: 800;
}

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

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

.section-more,
.text-link {
  color: var(--cyan);
  font-weight: 800;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.94);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 24px 70px rgba(34, 211, 238, 0.16);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.poster-wrap img,
.horizontal-card img,
.detail-poster,
.category-tile img,
.thumb-row img {
  background: linear-gradient(135deg, #0f172a, #111827);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.08));
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.type-badge {
  right: 12px;
  top: 12px;
  padding: 5px 9px;
  background: rgba(15, 23, 42, 0.72);
}

.rank-badge {
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  background: linear-gradient(135deg, var(--red), #f97316);
}

.card-hover-text {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  color: #e2e8f0;
  font-size: 0.9rem;
  transform: translateY(16px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .card-hover-text {
  transform: translateY(0);
  opacity: 1;
}

.movie-card-body {
  padding: 16px;
}

.movie-card h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  line-height: 1.35;
}

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

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.movie-meta a {
  color: var(--cyan);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(8, 47, 73, 0.5);
}

.strip-section {
  background: rgba(15, 23, 42, 0.62);
}

.horizontal-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scroll-snap-type: x proximity;
}

.horizontal-card {
  position: relative;
  flex: 0 0 300px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--panel);
  scroll-snap-align: start;
  box-shadow: var(--shadow);
}

.horizontal-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.horizontal-card span,
.horizontal-card small {
  display: block;
  padding: 0 15px;
}

.horizontal-card span {
  margin-top: 14px;
  font-weight: 800;
}

.horizontal-card small {
  margin: 4px 0 16px;
  color: var(--cyan);
}

.category-grid,
.category-overview-grid {
  display: grid;
  gap: 22px;
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 20px;
  padding: 22px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid var(--line);
  isolation: isolate;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.55);
}

.category-tile span {
  font-size: 2rem;
}

.category-tile strong,
.category-tile small {
  position: relative;
  z-index: 2;
  display: block;
}

.category-tile strong {
  margin: 8px 0;
  font-size: 1.25rem;
}

.category-tile small {
  color: #cbd5e1;
}

.category-tile img {
  position: absolute;
  inset: auto 0 0 auto;
  z-index: -1;
  width: 72%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  mask-image: linear-gradient(90deg, transparent, black);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
}

.rank-panel,
.content-panel,
.category-overview-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: var(--shadow);
}

.rank-panel {
  padding: 24px;
}

.rank-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-list a,
.ranking-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.64);
  padding: 12px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-list a:hover,
.ranking-row:hover {
  transform: translateX(4px);
  color: white;
  background: rgba(8, 145, 178, 0.22);
}

.rank-list span,
.ranking-row span {
  color: var(--yellow);
  font-weight: 900;
}

.rank-list strong,
.ranking-row strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-list em,
.ranking-row em {
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
}

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

.page-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.2), transparent 30%), linear-gradient(135deg, #0f172a, #020617 70%);
}

.simple-hero,
.category-hero {
  padding: 84px 0 72px;
}

.page-hero h1 {
  margin-top: 8px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

.page-hero p {
  width: min(760px, 100%);
  margin: 18px 0 0;
  font-size: 1.08rem;
}

.category-hero .large-search,
.simple-hero .large-search {
  margin-top: 28px;
  max-width: 720px;
}

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

.category-overview-card {
  padding: 22px;
}

.category-overview-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.category-overview-head span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(8, 145, 178, 0.2);
  font-size: 1.8rem;
}

.category-overview-head h2 {
  margin: 0 0 8px;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.thumb-row img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}

.filter-empty {
  display: none;
  margin-bottom: 18px;
  color: #cbd5e1;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.9);
}

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

.ranking-rows {
  display: grid;
  gap: 10px;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

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

.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px) saturate(1.1);
  transform: scale(1.05);
}

.detail-mask {
  background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.86) 32%, rgba(2, 6, 23, 0.42) 100%);
}

.detail-hero-content {
  position: relative;
  padding: 96px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: #cbd5e1;
  font-size: 0.95rem;
}

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

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

.detail-poster {
  width: 260px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.detail-hero h1 {
  margin: 8px 0 16px;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 1.05;
}

.detail-one-line {
  width: min(760px, 100%);
  margin: 0 0 20px;
  color: #dbeafe;
  font-size: 1.1rem;
}

.detail-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  color: #cbd5e1;
}

.detail-meta-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(15, 23, 42, 0.58);
}

.detail-meta-list a {
  color: var(--cyan);
}

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

.player-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 24px;
  background: black;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.42);
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.12));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #00131a;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 44px rgba(34, 211, 238, 0.45);
  font-size: 2rem;
  transform: translateX(3px);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 24px;
}

.content-panel {
  padding: 26px;
}

.content-panel h2 {
  margin: 0 0 14px;
}

.content-panel p {
  margin: 0;
}

.compact-card .poster-wrap {
  aspect-ratio: 16 / 10;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #0f172a;
  color: #cbd5e1;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 0.6fr 0.6fr;
  gap: 34px;
  padding: 46px 0;
}

.footer-brand {
  margin-bottom: 14px;
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: white;
}

.site-footer p {
  max-width: 560px;
  margin: 0;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.is-hidden-card {
  display: none;
}

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

  .header-search {
    margin-left: auto;
  }

  .mobile-toggle {
    display: inline-flex;
  }

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

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

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

@media (max-width: 760px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    height: auto;
    min-height: 64px;
    gap: 12px;
  }

  .brand-text {
    font-size: 1rem;
  }

  .header-search {
    display: none;
  }

  .hero {
    min-height: 560px;
    height: 78vh;
  }

  .hero-content {
    padding-bottom: 72px;
  }

  .hero-arrow {
    display: none;
  }

  .intro-block,
  .detail-layout,
  .footer-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .large-search {
    flex-direction: column;
  }

  .large-search button {
    min-height: 48px;
  }

  .movie-grid,
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .section-block {
    padding: 42px 0;
  }

  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .horizontal-card {
    flex-basis: 260px;
  }

  .rank-list a,
  .ranking-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .rank-list em,
  .ranking-row em {
    grid-column: 2;
  }

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

  .detail-poster {
    width: 190px;
  }
}

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

  .hero h1,
  .detail-hero h1,
  .page-hero h1 {
    font-size: 2.2rem;
  }

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