:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: #111827;
  --bg-card-strong: #1e293b;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --sky: #38bdf8;
  --sky-deep: #0284c7;
  --blue: #2563eb;
  --orange: #f97316;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.52);
  --radius: 22px;
  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;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 34%),
              linear-gradient(180deg, #020617 0%, #0f172a 44%, #020617 100%);
  color: var(--text);
  min-height: 100vh;
}

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

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

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

.header-inner {
  max-width: 1180px;
  height: 72px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  box-shadow: 0 18px 42px rgba(56, 189, 248, 0.28);
}

.brand-text,
.footer-brand {
  background: linear-gradient(135deg, #7dd3fc, #2563eb);
  -webkit-background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  color: var(--muted-strong);
  font-weight: 650;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover {
  color: #fff;
  background: rgba(56, 189, 248, 0.12);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  border: 0;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.92);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: #fff;
}

.mobile-nav {
  display: none;
  padding: 12px 22px 20px;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.98);
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
}

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

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.68) 46%, rgba(2, 6, 23, 0.14)),
              linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.88));
}

.hero-content {
  position: absolute;
  inset: 0;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
  padding-top: 40px;
}

.eyebrow,
.hero-badge,
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 620px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.75;
}

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

.btn,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border-radius: 13px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.btn {
  color: #fff;
  background: linear-gradient(135deg, var(--sky-deep), var(--blue));
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.34);
}

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

.btn:hover,
.btn-outline:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 30px;
  background: rgba(2, 6, 23, 0.58);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(14, 165, 233, 0.72);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 22px;
  transform: translateY(-50%);
}

.hero-next {
  right: 22px;
  transform: translateY(-50%);
}

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

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

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

main,
.page-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 22px 72px;
}

.section {
  margin-bottom: 72px;
}

.section-head {
  justify-content: space-between;
  margin-bottom: 26px;
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 3.5vw, 38px);
  letter-spacing: -0.05em;
}

.section-desc,
.page-desc {
  color: var(--muted-strong);
  line-height: 1.8;
}

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

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

.movie-card,
.category-card,
.rank-row,
.related-card,
.feature-box,
.info-panel {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.92));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 30px 80px rgba(2, 132, 199, 0.22);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

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

.movie-card:hover img,
.related-card:hover img,
.category-card:hover img {
  transform: scale(1.08);
}

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 58%);
}

.play-hover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 28px;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.play-hover::before {
  content: "";
  position: absolute;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.84);
  box-shadow: 0 16px 36px rgba(14, 165, 233, 0.42);
  z-index: -1;
}

.movie-card:hover .play-hover {
  opacity: 1;
}

.card-year,
.card-category,
.rank-badge {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.card-year {
  top: 10px;
  right: 10px;
  color: #fff;
  background: rgba(2, 6, 23, 0.72);
}

.card-category {
  left: 10px;
  bottom: 10px;
  color: #e0f2fe;
  background: rgba(2, 132, 199, 0.86);
}

.rank-badge {
  top: 10px;
  left: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #ef4444);
}

.card-body {
  padding: 18px;
}

.card-body h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h2 a:hover {
  color: var(--sky);
}

.card-body p {
  min-height: 50px;
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font-size: 13px;
}

.scroller {
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
}

.scroller-inner {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 340px);
  gap: 18px;
}

.feature-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: 28px;
}

.feature-image {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.92));
}

.feature-copy {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-copy h2 {
  margin: 18px 0 16px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.05em;
}

.feature-copy p {
  color: var(--muted-strong);
  line-height: 1.85;
}

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

.category-card {
  position: relative;
  min-height: 176px;
  padding: 24px;
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.25s ease, border 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.42);
}

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

.category-card p {
  color: var(--muted);
  line-height: 1.65;
}

.category-card small {
  color: var(--sky);
  font-weight: 800;
}

.page-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 22px 32px;
}

.page-hero-card {
  border-radius: 30px;
  padding: clamp(28px, 5vw, 58px);
  background: radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.24), transparent 32%),
              linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(2, 6, 23, 0.94));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 64px);
  letter-spacing: -0.06em;
}

.filter-panel {
  margin: 28px 0 34px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--line);
}

.search-label,
.filter-row label {
  display: grid;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 700;
}

.search-label input,
.filter-row select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.82);
  color: #fff;
  outline: none;
}

.search-label input {
  min-height: 48px;
  padding: 0 16px;
  font-size: 16px;
}

.filter-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.filter-row select {
  min-height: 44px;
  padding: 0 12px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 86px 220px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
}

.rank-number {
  font-size: 36px;
  font-weight: 900;
  color: var(--sky);
  text-align: center;
}

.rank-row img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
}

.rank-row h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.rank-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.heat {
  color: #fed7aa;
  font-weight: 900;
  white-space: nowrap;
}

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

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(20px) brightness(0.38);
  transform: scale(1.08);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), #020617 95%);
}

.detail-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 86px 22px 46px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 34px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

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

.breadcrumbs a:hover {
  color: var(--sky);
}

.detail-copy h1 {
  margin: 18px 0;
  font-size: clamp(36px, 6vw, 68px);
  letter-spacing: -0.07em;
  line-height: 1;
}

.detail-copy p {
  color: var(--muted-strong);
  font-size: 17px;
  line-height: 1.8;
}

.meta-list,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list span {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 700;
}

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

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

.play-mask {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.82));
  transition: opacity 0.24s ease;
}

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

.play-mask span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 38px;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  box-shadow: 0 22px 52px rgba(37, 99, 235, 0.45);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
}

.info-panel {
  border-radius: 24px;
  padding: 26px;
  margin-bottom: 22px;
}

.info-panel h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.info-panel p {
  color: var(--muted-strong);
  line-height: 1.9;
}

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

.related-card {
  overflow: hidden;
  border-radius: 18px;
  transition: transform 0.22s ease, border 0.22s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.42);
}

.related-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.42s ease;
}

.related-card span,
.related-card small {
  display: block;
  padding: 0 12px;
}

.related-card span {
  padding-top: 12px;
  font-weight: 800;
}

.related-card small {
  padding-bottom: 12px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
  padding: 48px 22px 32px;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

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

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

.footer-links {
  display: grid;
  gap: 9px;
}

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

.copyright {
  max-width: 1180px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.hidden-card {
  display: none !important;
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-arrow {
    display: none;
  }

  .movie-grid,
  .movie-grid.four,
  .category-grid,
  .footer-grid,
  .feature-box,
  .detail-layout,
  .detail-inner {
    grid-template-columns: 1fr;
  }

  .feature-image {
    min-height: 260px;
  }

  .feature-image::after {
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.9));
  }

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

  .rank-row {
    grid-template-columns: 58px 120px 1fr;
  }

  .rank-row .heat {
    grid-column: 3;
  }

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

@media (max-width: 640px) {
  .header-inner {
    height: 64px;
    padding: 0 16px;
  }

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

  .hero-content,
  main,
  .page-main,
  .page-hero,
  .detail-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-copy {
    padding-top: 82px;
  }

  .hero h1,
  .detail-copy h1 {
    letter-spacing: -0.05em;
  }

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

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

  .rank-row {
    grid-template-columns: 1fr;
  }

  .rank-number {
    text-align: left;
  }

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