:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(148, 163, 184, 0.18);
  --muted: #94a3b8;
  --text: #e2e8f0;
  --white: #ffffff;
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --amber: #facc15;
  --danger: #f87171;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.14), transparent 34rem),
    linear-gradient(180deg, #0f172a 0%, #020617 38rem, #020617 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(18px);
}

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

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

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-strong));
  color: #001018;
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.36);
}

.brand-text {
  font-size: 20px;
  color: var(--white);
}

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

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: #cbd5e1;
  font-weight: 650;
  transition: color 180ms ease, background 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
}

.search-wrap {
  position: relative;
  margin-left: auto;
  width: min(320px, 32vw);
}

.site-search-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 15px;
  outline: none;
  background: rgba(15, 23, 42, 0.78);
  color: var(--text);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-search-input:focus {
  border-color: rgba(34, 211, 238, 0.68);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}

.search-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  width: min(420px, 92vw);
  max-height: 440px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  padding: 10px;
}

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

.search-result {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 9px;
  border-radius: 14px;
  color: #cbd5e1;
}

.search-result:hover {
  background: rgba(148, 163, 184, 0.09);
}

.search-result img {
  width: 52px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
  background: #0f172a;
}

.search-result strong {
  display: block;
  overflow: hidden;
  color: var(--white);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.search-empty {
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.7);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: var(--white);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 16px 16px;
  background: rgba(2, 6, 23, 0.96);
}

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

.mobile-nav a {
  display: block;
  padding: 12px 4px;
  color: #cbd5e1;
  font-weight: 700;
}

.mobile-search {
  position: relative;
  padding-top: 6px;
}

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

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

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.74) 43%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, #020617 0%, transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  min-height: 100%;
  padding: 120px 0 90px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.eyebrow span {
  border: 1px solid rgba(34, 211, 238, 0.34);
  border-radius: 999px;
  padding: 5px 12px;
  background: rgba(34, 211, 238, 0.1);
  color: #a5f3fc;
  font-size: 14px;
  font-weight: 750;
}

.hero h1 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-shadow: 0 16px 40px rgba(0, 0, 0, 0.46);
}

.hero-lead {
  max-width: 660px;
  margin: 0 0 16px;
  color: #e2e8f0;
  font-size: clamp(18px, 2.1vw, 24px);
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.56);
}

.hero-desc {
  max-width: 700px;
  margin: 0 0 28px;
  color: #cbd5e1;
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px 20px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-strong));
  color: #001018;
  box-shadow: 0 18px 40px rgba(6, 182, 212, 0.26);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(15, 23, 42, 0.62);
  color: #e2e8f0;
}

.btn-ghost:hover {
  border-color: rgba(34, 211, 238, 0.42);
  color: var(--cyan);
}

.hero-controls {
  position: absolute;
  right: max(20px, calc((100vw - 1180px) / 2));
  bottom: 42px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-controls button,
.hero-dot {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.62);
  color: var(--white);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.hero-controls button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
}

.hero-controls button:hover {
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(6, 182, 212, 0.25);
}

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

.hero-dot {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  padding: 0;
  opacity: 0.6;
}

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

main {
  display: block;
}

.section {
  padding: 56px 0;
}

.section.compact {
  padding: 36px 0;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-heading p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  flex: 0 0 auto;
  color: var(--cyan);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.56);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(15, 23, 42, 0.82);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0f172a;
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), transparent 50%);
  opacity: 0;
  transition: opacity 180ms ease;
}

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

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(34, 211, 238, 0.92);
  color: #001018;
  font-size: 13px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.card-body {
  padding: 14px;
}

.card-body h2,
.card-body h3 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 17px;
  line-height: 1.35;
}

.card-body h2 a,
.card-body h3 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.card-desc {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 10px;
  overflow: hidden;
  color: #a8b3c7;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta,
.rank-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.card-meta span,
.rank-meta span,
.detail-meta span {
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(148, 163, 184, 0.08);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-row span {
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 999px;
  padding: 3px 8px;
  color: #a5f3fc;
  font-size: 12px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.17), transparent 11rem),
    rgba(15, 23, 42, 0.68);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease, border-color 180ms ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.42);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 22px;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.mini-links {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.mini-links a {
  overflow: hidden;
  color: #cbd5e1;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-links a:hover {
  color: var(--cyan);
}

.page-hero {
  padding: 68px 0 28px;
  background:
    radial-gradient(circle at 12% 20%, rgba(34, 211, 238, 0.16), transparent 28rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.44), transparent);
}

.page-hero h1 {
  max-width: 960px;
  margin: 0;
  color: var(--white);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: #cbd5e1;
  font-size: 18px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.54);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 11px 13px;
  outline: none;
  background: rgba(2, 6, 23, 0.54);
  color: var(--text);
}

.rank-list {
  display: grid;
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 62px 88px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.56);
  transition: transform 180ms ease, border-color 180ms ease;
}

.rank-item:hover {
  transform: translateX(3px);
  border-color: rgba(34, 211, 238, 0.4);
}

.rank-number {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
  font-size: 22px;
  font-weight: 900;
}

.rank-poster {
  overflow: hidden;
  width: 88px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  background: #0f172a;
}

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

.rank-info h2 {
  margin: 0 0 6px;
  color: var(--white);
  font-size: 20px;
}

.rank-info p {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  color: #a8b3c7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.detail-wrap {
  padding: 36px 0 60px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: #cbd5e1;
}

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

.player-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
}

.video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: #000;
}

.video-cover.is-hidden {
  display: none;
}

.video-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
  filter: saturate(1.12);
}

.video-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.18), transparent 20rem),
    linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 60%);
}

.big-play {
  position: relative;
  z-index: 3;
  display: inline-grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 50%;
  padding-left: 6px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-strong));
  color: #001018;
  font-size: 42px;
  box-shadow: 0 20px 70px rgba(6, 182, 212, 0.34);
  cursor: pointer;
}

.player-caption {
  padding: 16px 18px;
  background: rgba(15, 23, 42, 0.96);
  color: #cbd5e1;
}

.detail-panel {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  background: rgba(15, 23, 42, 0.62);
}

.detail-panel h1 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.detail-one {
  margin: 0 0 18px;
  color: #a5f3fc;
  font-size: 20px;
}

.detail-meta {
  margin-bottom: 22px;
}

.content-block {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}

.content-block h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 24px;
}

.content-block p {
  margin: 0;
  color: #cbd5e1;
}

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

.compact-card {
  display: grid;
  gap: 8px;
  color: #e2e8f0;
}

.compact-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
  background: #0f172a;
  transition: transform 180ms ease;
}

.compact-card:hover img {
  transform: translateY(-3px);
}

.compact-card span {
  display: -webkit-box;
  overflow: hidden;
  color: #cbd5e1;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.empty-filter {
  display: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  background: rgba(15, 23, 42, 0.48);
}

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

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

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

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

@media (max-width: 820px) {
  .desktop-nav,
  .search-wrap {
    display: none;
  }

  .menu-button {
    display: block;
    margin-left: auto;
  }

  .hero {
    height: auto;
    min-height: 620px;
  }

  .hero-content {
    align-items: flex-end;
    padding: 120px 0 110px;
  }

  .hero-controls {
    right: 18px;
    bottom: 28px;
  }

  .hero-dots {
    left: 18px;
    bottom: 44px;
    transform: none;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    display: inline-block;
    margin-top: 12px;
  }

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

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

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 48px 74px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .rank-number {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 18px;
  }

  .rank-poster {
    width: 74px;
  }

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

  .detail-panel {
    padding: 20px;
  }

  .big-play {
    width: 74px;
    height: 74px;
    font-size: 34px;
  }
}

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

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

  .hero h1 {
    font-size: 42px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-desc {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .section {
    padding: 42px 0;
  }

  .card-body {
    padding: 12px;
  }

  .card-desc {
    min-height: 38px;
    font-size: 13px;
  }

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

  .rank-info h2 {
    font-size: 16px;
  }

  .rank-info p {
    font-size: 13px;
  }
}
