:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --panel: rgba(30, 41, 59, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --blue: #3b82f6;
  --orange: #fb923c;
  --shadow: 0 24px 70px rgba(8, 15, 30, 0.45);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 28rem),
    linear-gradient(180deg, #0f172a 0%, #111827 45%, #0f172a 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94));
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 26px rgba(34, 211, 238, 0.22);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 22px;
  letter-spacing: 0.02em;
}

.brand-text small {
  margin-top: 5px;
  color: #cbd5e1;
  font-size: 12px;
}

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

.nav-link {
  position: relative;
  color: #dbeafe;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.22s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--cyan);
  transition: width 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(51, 65, 85, 0.84);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: #e2e8f0;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: #dbeafe;
  background: rgba(51, 65, 85, 0.36);
}

.mobile-nav-link.is-active,
.mobile-nav-link:hover {
  color: #ffffff;
  background: rgba(14, 165, 233, 0.22);
}

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

.hero {
  position: relative;
  height: 600px;
  min-height: 560px;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  transition: opacity 0.75s ease, transform 4s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.78) 46%, rgba(15, 23, 42, 0.18) 100%),
    linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.1) 45%, rgba(15, 23, 42, 0.32) 100%);
}

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

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

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  background: rgba(6, 182, 212, 0.9);
  box-shadow: 0 14px 30px rgba(6, 182, 212, 0.16);
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
}

.hero p {
  max-width: 680px;
  margin: 0 0 26px;
  color: #dbeafe;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.75;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.34);
}

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

.hero-meta span,
.detail-meta span,
.movie-meta span {
  color: #cbd5e1;
}

.hero-meta span,
.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

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

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan-strong), var(--blue));
  box-shadow: 0 18px 42px rgba(59, 130, 246, 0.22);
}

.btn-secondary {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(226, 232, 240, 0.18);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(34, 211, 238, 0.2);
}

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

.hero-dot {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.36);
  cursor: pointer;
}

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

.hero-quick {
  position: absolute;
  right: calc((100% - min(1180px, calc(100% - 32px))) / 2);
  bottom: 76px;
  z-index: 4;
  width: min(420px, 34vw);
  display: grid;
  gap: 12px;
}

.hero-quick a {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.12);
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(18px);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.hero-quick a:hover {
  transform: translateX(-4px);
  border-color: rgba(34, 211, 238, 0.44);
}

.hero-quick img {
  width: 78px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
}

.hero-quick strong {
  display: block;
  color: #ffffff;
  line-height: 1.3;
}

.hero-quick span {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
}

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

.section-block.tight {
  padding-top: 36px;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

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

.movie-grid.compact {
  gap: 16px;
}

.movie-card {
  min-width: 0;
}

.movie-card > a,
.category-card,
.stat-card,
.panel-card,
.info-panel,
.horizontal-card > a {
  display: block;
  height: 100%;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(30, 41, 59, 0.42);
  box-shadow: 0 15px 35px rgba(2, 6, 23, 0.16);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.movie-card > a:hover,
.category-card:hover,
.horizontal-card > a:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.36);
  background: rgba(30, 41, 59, 0.72);
  box-shadow: 0 26px 52px rgba(8, 145, 178, 0.12);
}

.poster-wrap {
  position: relative;
  margin: 0;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.94);
}

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

.movie-card > a:hover img {
  transform: scale(1.06);
}

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.72));
}

.poster-label,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border-radius: 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(12px);
}

.rank-badge {
  left: auto;
  right: 10px;
  background: rgba(251, 146, 60, 0.92);
}

.play-hover {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  font-size: 19px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

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

.movie-card h3,
.horizontal-card h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card p,
.horizontal-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  justify-content: space-between;
  gap: 8px;
  color: var(--muted-2);
  font-size: 12px;
}

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

.category-card {
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(59, 130, 246, 0.05)),
    rgba(30, 41, 59, 0.48);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  min-height: 56px;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.category-card .chip-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-row span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 12px;
  background: rgba(51, 65, 85, 0.76);
}

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

.search-box {
  display: grid;
  gap: 8px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 800;
}

.filter-selects {
  display: flex;
  align-items: end;
  gap: 10px;
}

.search-box input,
.filter-selects select {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  color: #f8fafc;
  outline: none;
  background: rgba(30, 41, 59, 0.86);
  padding: 0 14px;
}

.filter-selects select {
  min-width: 130px;
}

.filter-result {
  min-height: 22px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 26px;
}

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

.horizontal-card > a {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 12px;
}

.horizontal-card figure {
  position: relative;
  margin: 0;
  height: 96px;
  overflow: hidden;
  border-radius: 16px;
}

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

.horizontal-card figure span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.28);
}

.horizontal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.rank-number {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), #ef4444);
}

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

.panel-card h2,
.info-panel h2,
.detail-section h2 {
  margin: 0 0 16px;
  color: #ffffff;
}

.panel-card p,
.info-panel p,
.detail-section p {
  color: #cbd5e1;
  line-height: 1.8;
}

.detail-hero {
  padding: 42px 0 30px;
}

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

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.player-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
}

.player-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.12), rgba(15, 23, 42, 0.72)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.42), rgba(2, 6, 23, 0.18));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-layer.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-button-core {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  color: #0f172a;
  font-size: 34px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  transition: transform 0.22s ease;
}

.player-layer:hover .player-button-core {
  transform: scale(1.06);
}

.detail-card {
  margin-top: 22px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(30, 41, 59, 0.58);
}

.detail-card h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4.8vw, 46px);
  line-height: 1.18;
}

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

.detail-section {
  margin-top: 24px;
}

.detail-section p {
  margin: 0;
}

.info-table {
  display: grid;
  gap: 0;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

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

.info-row span:first-child {
  color: var(--muted);
}

.info-row span:last-child {
  color: #ffffff;
  text-align: right;
  font-weight: 700;
}

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

.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.42), rgba(2, 6, 23, 0.92));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 28px;
}

.footer-main {
  display: grid;
  gap: 12px;
  max-width: 620px;
  margin-bottom: 30px;
}

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

.footer-brand {
  font-size: 22px;
  font-weight: 900;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 16px;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-grid a,
.footer-grid li {
  color: var(--muted);
  font-size: 14px;
}

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

.footer-bottom {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--muted-2);
  text-align: center;
  font-size: 13px;
}

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

  .mobile-menu-button {
    display: block;
  }

  .hero-quick {
    display: none;
  }

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

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

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

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

  .brand-text small {
    display: none;
  }

  .hero {
    height: 620px;
  }

  .hero-content {
    align-items: end;
    padding-bottom: 96px;
  }

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

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

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

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

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

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

  .horizontal-card > a {
    grid-template-columns: 116px 1fr;
  }

  .horizontal-card figure {
    height: 84px;
  }

  .detail-card,
  .panel-card,
  .info-panel {
    padding: 20px;
  }

  .player-button-core {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }
}

@media (max-width: 430px) {
  .main-shell,
  .hero-content,
  .header-inner,
  .footer-inner,
  .mobile-nav {
    width: min(100% - 24px, 1180px);
  }

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

  .movie-grid,
  .related-grid {
    gap: 12px;
  }

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