:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan: #06b6d4;
  --blue: #2563eb;
  --gold: #facc15;
  --radius: 1.25rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.site-body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, 0.18), transparent 36rem),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 32rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

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

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

.topbar-inner {
  width: min(1240px, calc(100% - 24px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 35px rgba(6, 182, 212, 0.25);
}

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

.brand-text strong,
.footer-brand {
  font-size: 20px;
  letter-spacing: 0.02em;
  font-weight: 800;
}

.brand-text em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.nav-link,
.nav-cats a,
.mobile-panel a {
  color: #cbd5e1;
  border-radius: 12px;
  transition: 0.2s ease;
}

.nav-link,
.nav-cats a {
  padding: 9px 12px;
  font-size: 14px;
}

.nav-link:hover,
.nav-link.active,
.nav-cats a:hover,
.mobile-panel a:hover {
  color: white;
  background: rgba(51, 65, 85, 0.76);
}

.nav-cats {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
}

.site-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 280px;
}

.site-search input,
.search-hero input,
.inline-filter input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: white;
  outline: none;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.88);
  transition: 0.2s ease;
}

.site-search input {
  padding: 10px 12px;
}

.site-search input:focus,
.search-hero input:focus,
.inline-filter input:focus {
  border-color: rgba(6, 182, 212, 0.75);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.site-search button,
.search-hero button,
.primary-btn,
.ghost-btn,
.list-action {
  border: 0;
  cursor: pointer;
  color: white;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-search button,
.search-hero button,
.primary-btn,
.list-action {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25);
}

.site-search button {
  padding: 10px 14px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
}

.ghost-btn {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.site-search button:hover,
.search-hero button:hover,
.primary-btn:hover,
.ghost-btn:hover,
.list-action:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  color: white;
  font-size: 24px;
  border: 0;
  background: transparent;
}

.mobile-panel {
  display: none;
  width: min(1240px, calc(100% - 24px));
  margin: 0 auto 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-panel a {
  padding: 12px;
  background: rgba(15, 23, 42, 0.82);
}

.hero-wrap {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: black;
}

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

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

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

.hero-layer {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.12)),
    linear-gradient(0deg, var(--bg), transparent 32%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1180px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  color: #67e8f9;
  border-radius: 999px;
  margin-bottom: 20px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 800;
  background: rgba(6, 182, 212, 0.16);
  border: 1px solid rgba(103, 232, 249, 0.18);
}

.hero-content h1,
.hero-content h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.hero-movie {
  margin-top: 14px;
  display: block;
  color: #e0f2fe;
  font-size: clamp(22px, 3vw, 34px);
}

.hero-content p {
  max-width: 720px;
  color: #cbd5e1;
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.8;
}

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

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

.hero-meta span,
.detail-meta span,
.meta-line span {
  color: #cbd5e1;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
  background: rgba(30, 41, 59, 0.72);
}

.hero-meta span:first-child,
.detail-meta span:first-child {
  color: #111827;
  background: var(--gold);
  font-weight: 900;
}

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

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(148, 163, 184, 0.78);
  transition: 0.25s ease;
}

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

.quick-entry,
.section-block,
.page-main {
  padding: 56px 0;
}

.search-hero {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.72));
}

.search-hero h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
}

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

.search-hero input,
.inline-filter input {
  padding: 14px 16px;
}

.search-hero button {
  padding: 0 20px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.chip,
.tag-row span {
  display: inline-flex;
  align-items: center;
  color: #cbd5e1;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.chip {
  padding: 10px 14px;
}

.chip:hover {
  color: #67e8f9;
  border-color: rgba(6, 182, 212, 0.46);
}

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

.section-head h2,
.section-head h3,
.page-hero h1,
.detail-info h1,
.content-section h2,
.player-section h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-head h2,
.page-hero h1,
.detail-info h1 {
  font-size: clamp(30px, 4vw, 48px);
}

.section-head h2::before,
.section-head h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 30px;
  border-radius: 999px;
  margin-right: 12px;
  vertical-align: -5px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.section-head a {
  color: #67e8f9;
  font-weight: 700;
}

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

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

.movie-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.55);
  box-shadow: 0 24px 52px rgba(6, 182, 212, 0.16);
}

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

.large-card .poster-link {
  aspect-ratio: 16 / 9;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.86));
}

.score,
.rank-badge,
.play-mark,
.detail-score {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 900;
}

.score {
  top: 12px;
  right: 12px;
  color: #111827;
  background: var(--gold);
  padding: 5px 9px;
  font-size: 12px;
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.play-mark {
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: white;
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  transition: 0.22s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-info {
  padding: 16px;
}

.card-info h3 {
  min-height: 48px;
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 800;
}

.card-info h3 a:hover,
.list-info h3 a:hover {
  color: #67e8f9;
}

.card-info p,
.page-hero p,
.footer-inner p,
.content-section p,
.lead-text,
.list-info p {
  color: var(--muted);
  line-height: 1.8;
}

.card-info p {
  min-height: 50px;
  margin: 12px 0;
  font-size: 14px;
}

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

.tag-row span {
  padding: 4px 8px;
  font-size: 12px;
}

.glow-panel {
  border-radius: 28px;
  padding: 34px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.8));
  border: 1px solid var(--line);
}

.category-stack {
  display: grid;
  gap: 34px;
}

.category-strip {
  border-bottom: 1px solid var(--line);
  padding-bottom: 30px;
}

.small-head h2,
.small-head h3 {
  font-size: 24px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  align-items: start;
}

.rank-panel {
  position: sticky;
  top: 92px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  background: rgba(15, 23, 42, 0.88);
}

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

.list-card {
  display: grid;
  grid-template-columns: auto 88px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
}

.rank-panel .list-card {
  grid-template-columns: auto 62px minmax(0, 1fr);
}

.list-rank {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.list-poster {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  background: #020617;
}

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

.list-info h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.list-info p {
  margin: 0 0 8px;
  font-size: 14px;
}

.list-action {
  padding: 10px 14px;
}

.page-main {
  min-height: 70vh;
}

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

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

.breadcrumb a::after {
  content: "/";
  margin-left: 8px;
  color: #475569;
}

.page-hero {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 56px);
  margin-bottom: 34px;
  background:
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.16), transparent 32rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.68));
}

.page-hero p {
  max-width: 720px;
  margin: 16px 0 0;
  font-size: 17px;
}

.inline-filter {
  max-width: 560px;
  margin-top: 24px;
}

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

.category-card a {
  position: relative;
  display: block;
  min-height: 260px;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  border: 1px solid var(--line);
}

.category-card img,
.category-card span {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-card img {
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-card span {
  background: linear-gradient(180deg, transparent 15%, rgba(2, 6, 23, 0.94));
}

.category-card div {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
}

.category-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.6;
}

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

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

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: clamp(22px, 4vw, 40px);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 34rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.72));
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

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

.detail-score {
  top: 16px;
  right: 16px;
  color: #111827;
  background: var(--gold);
  padding: 7px 12px;
}

.detail-info .lead-text {
  max-width: 760px;
  margin: 18px 0;
  font-size: 19px;
}

.detail-tags {
  margin: 22px 0 28px;
}

.player-section,
.content-section {
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(15, 23, 42, 0.78);
}

.player-section h2,
.content-section h2 {
  font-size: 28px;
  margin-bottom: 18px;
}

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: black;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.movie-player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: black;
}

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
  transition: opacity 0.2s ease;
}

.player-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-size: 34px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 42px rgba(6, 182, 212, 0.28);
}

.player-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.content-section p {
  margin: 0;
  font-size: 17px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.86);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  padding: 44px 0;
}

.footer-inner p {
  margin: 12px 0 0;
  max-width: 500px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: flex-end;
  align-content: flex-start;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 14px;
}

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

.movie-card.is-hidden,
.list-card.is-hidden {
  display: none;
}

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

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

  .topbar.mobile-open .mobile-panel {
    display: grid;
  }

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

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

  .two-column,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .topbar-inner {
    height: 64px;
  }

  .brand-text em {
    display: none;
  }

  .hero-wrap,
  .hero-content {
    min-height: 560px;
  }

  .hero-layer {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.42), rgba(2, 6, 23, 0.96));
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 88px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .search-hero,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .search-hero form {
    flex-direction: column;
  }

  .search-hero button {
    min-height: 46px;
  }

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

  .glow-panel {
    padding: 22px;
  }

  .card-info {
    padding: 12px;
  }

  .card-info h3 {
    font-size: 15px;
    min-height: 42px;
  }

  .card-info p {
    display: none;
  }

  .list-card,
  .rank-panel .list-card {
    grid-template-columns: auto 72px minmax(0, 1fr);
  }

  .list-action {
    display: none;
  }

  .list-info p {
    display: none;
  }

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

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

  .hero-actions {
    width: 100%;
  }

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