
:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.76);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --muted: #94a3b8;
  --text: #f8fafc;
  --soft: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-dark: #0891b2;
  --blue: #60a5fa;
  --orange: #fb923c;
  --border: rgba(6, 182, 212, 0.2);
  --border-strong: rgba(6, 182, 212, 0.48);
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.55);
  font-family: Inter, 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;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 34rem),
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.1), transparent 30rem),
    var(--bg);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
  z-index: -1;
}

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

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

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

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

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

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

.brand-text {
  display: grid;
  gap: 2px;
}

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

.brand-text small {
  color: var(--muted);
  font-size: 11px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link,
.mobile-link {
  color: var(--soft);
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover {
  color: var(--cyan);
}

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

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
}

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

.mobile-menu-inner {
  display: grid;
  gap: 12px;
  padding-block: 16px;
}

.hero {
  position: relative;
  min-height: min(84vh, 780px);
  overflow: hidden;
  border-bottom: 1px solid rgba(6, 182, 212, 0.12);
}

.hero-track,
.hero-slide {
  min-height: min(84vh, 780px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  align-items: center;
  gap: 56px;
  width: 100%;
  padding: 110px max(32px, calc((100vw - 1180px) / 2)) 78px;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.52)),
    linear-gradient(0deg, rgba(2, 6, 23, 1), transparent 48%),
    var(--hero-image) center / cover no-repeat;
  filter: saturate(1.05);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(34, 211, 238, 0.16), transparent 32%),
    radial-gradient(circle at 70% 28%, rgba(251, 146, 60, 0.12), transparent 28%);
}

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

.hero-kicker,
.movie-meta,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
}

.hero-kicker span,
.movie-meta span,
.detail-meta span,
.rank-meta span {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.1);
  padding: 4px 10px;
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 660px;
  margin: 0;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  font-size: 12px;
  padding: 5px 10px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.primary-button,
.ghost-button,
.text-button,
.section-link,
.card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  padding: 0 22px;
  box-shadow: 0 18px 40px rgba(34, 211, 238, 0.22);
}

.ghost-button,
.card-button {
  border: 1px solid var(--border-strong);
  background: rgba(15, 23, 42, 0.66);
  color: var(--text);
  padding: 0 20px;
}

.text-button,
.section-link {
  color: var(--cyan);
}

.primary-button:hover,
.ghost-button:hover,
.card-button:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.62);
  box-shadow: var(--shadow);
}

.hero-poster::before {
  content: "";
  display: block;
  aspect-ratio: 3 / 4;
}

.hero-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.hero-poster:hover img {
  transform: scale(1.05);
}

.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  color: var(--text);
  font-size: 34px;
  line-height: 1;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 26px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
}

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

.main-section {
  padding: 76px 0;
}

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

.eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.section-heading h1,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p,
.detail-title p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 16px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(14px);
}

.search-panel input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.62);
  color: var(--text);
  outline: none;
  padding: 0 16px;
}

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

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--soft);
  min-height: 38px;
  padding: 0 14px;
  font-weight: 700;
}

.filter-chip.is-active,
.filter-chip:hover {
  border-color: var(--border-strong);
  color: var(--cyan);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.64);
  box-shadow: 0 14px 42px rgba(2, 6, 23, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 22px 58px rgba(6, 182, 212, 0.08);
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.86);
}

.poster::before {
  content: "";
  display: block;
  aspect-ratio: 3 / 4;
}

.poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
  backdrop-filter: blur(8px);
}

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

.movie-card h2,
.related-card h3 {
  margin: 10px 0 8px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.32;
}

.movie-card h2 a:hover,
.related-card h3 a:hover,
.rank-item h2 a:hover {
  color: var(--cyan);
}

.movie-card p,
.related-card p,
.rank-item p {
  display: -webkit-box;
  min-height: 3.2em;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.62;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 182px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.2), transparent 45%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.52));
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.category-tile h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.category-tile span {
  display: inline-flex;
  margin-top: 20px;
  color: var(--cyan);
  font-weight: 800;
}

.page-hero {
  padding: 82px 0 32px;
}

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

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

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

.rank-item {
  display: grid;
  grid-template-columns: 72px 132px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.64);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), var(--orange));
  font-weight: 900;
}

.rank-cover {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.86);
}

.rank-cover::before {
  content: "";
  display: block;
  aspect-ratio: 16 / 10;
}

.rank-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-item h2 {
  margin: 8px 0;
  font-size: 21px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 72px;
}

.player-shell,
.detail-card,
.side-panel {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.68);
  box-shadow: var(--shadow);
}

.player-shell {
  overflow: hidden;
}

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

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  color: var(--text);
  background-image:
    linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.3)),
    var(--poster);
  background-position: center;
  background-size: cover;
  cursor: pointer;
}

.play-layer.is-hidden {
  display: none;
}

.play-core {
  display: grid;
  place-items: center;
  gap: 14px;
  text-align: center;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-size: 30px;
  box-shadow: 0 0 42px rgba(34, 211, 238, 0.38);
}

.play-core strong {
  font-size: 20px;
}

.detail-card,
.side-panel {
  padding: 24px;
}

.detail-title {
  margin: 24px 0;
}

.detail-title h1 {
  margin-top: 12px;
}

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

.content-block {
  margin-top: 22px;
}

.content-block h2 {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 22px;
}

.content-block p {
  margin: 0;
  color: var(--soft);
  line-height: 1.86;
}

.side-panel h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

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

.related-card {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.32);
}

.related-card a:first-child {
  position: relative;
  display: block;
  background: rgba(15, 23, 42, 0.86);
}

.related-card a:first-child::before {
  content: "";
  display: block;
  aspect-ratio: 16 / 9;
}

.related-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.75);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
}

.related-card h3,
.related-card p {
  padding-inline: 14px;
}

.related-card p {
  padding-bottom: 14px;
}

.index-list {
  columns: 4 220px;
  column-gap: 24px;
}

.index-list a {
  display: block;
  break-inside: avoid;
  margin-bottom: 10px;
  color: var(--soft);
}

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

.no-results {
  display: none;
  padding: 28px;
  border: 1px dashed var(--border-strong);
  border-radius: 24px;
  color: var(--muted);
  text-align: center;
}

.no-results.is-visible {
  display: block;
}

.site-footer {
  border-top: 1px solid rgba(6, 182, 212, 0.12);
  background: rgba(2, 6, 23, 0.8);
  padding: 50px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}

.footer-brand {
  color: var(--cyan);
  font-size: 20px;
}

.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a {
  color: var(--muted);
}

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

.footer-bottom {
  margin-top: 34px;
  color: #64748b;
  font-size: 13px;
}

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

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

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

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

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

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

  .hero,
  .hero-track,
  .hero-slide {
    min-height: 720px;
  }

  .hero-slide {
    padding: 96px 22px 88px;
  }

  .hero-nav {
    top: auto;
    bottom: 78px;
  }

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

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

  .rank-item {
    grid-template-columns: 52px 92px 1fr;
  }

  .rank-item .card-button {
    grid-column: 2 / -1;
  }

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

@media (max-width: 480px) {
  .site-container {
    width: min(100% - 22px, 1180px);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .ghost-button,
  .text-button {
    width: 100%;
  }
}
