* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: #f8fafc;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.28), transparent 34rem),
    linear-gradient(135deg, #020617 0%, #0f172a 48%, #172554 100%);
  min-height: 100vh;
}

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

img {
  display: block;
  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;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.24);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1280px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #9333ea);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.38);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #cbd5e1;
  font-size: 15px;
}

.nav-links a {
  padding: 9px 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: #60a5fa;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 10px;
  color: #f8fafc;
  background: rgba(51, 65, 85, 0.75);
  padding: 8px 11px;
}

.hero-shell {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 380px;
  align-items: center;
  gap: 42px;
  padding: 82px max(32px, calc((100vw - 1180px) / 2)) 92px;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.25;
}

.hero-bg img {
  height: 100%;
  object-fit: cover;
  filter: blur(8px) saturate(1.25);
  transform: scale(1.06);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 30%, rgba(59, 130, 246, 0.28), transparent 26rem),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.83), rgba(2, 6, 23, 0.95));
}

.hero-content {
  max-width: 760px;
  animation: rise 0.7s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #93c5fd;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 16px 0;
  font-size: clamp(34px, 5.6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p,
.lead {
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.detail-meta,
.movie-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

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

.hero-tags span,
.detail-meta span,
.tag-row span,
.movie-meta span {
  border: 1px solid rgba(147, 197, 253, 0.25);
  background: rgba(15, 23, 42, 0.56);
  color: #dbeafe;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
  background: linear-gradient(135deg, #2563eb, #9333ea);
  box-shadow: 0 16px 38px rgba(37, 99, 235, 0.36);
}

.btn.ghost {
  border: 1px solid rgba(191, 219, 254, 0.24);
  background: rgba(15, 23, 42, 0.54);
  color: #dbeafe;
}

.hero-poster {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(2, 6, 23, 0.62);
  transform: rotate(1.5deg);
  transition: transform 0.25s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) translateY(-4px);
}

.hero-poster img {
  height: 520px;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  left: max(32px, calc((100vw - 1180px) / 2));
  bottom: 38px;
  display: flex;
  gap: 10px;
  z-index: 4;
}

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.45);
  cursor: pointer;
}

.hero-dot.active {
  background: #60a5fa;
}

.search-panel {
  margin-top: -44px;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 540px);
  gap: 24px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.84);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(18px);
}

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

.search-bar,
.filter-bar {
  display: flex;
  gap: 12px;
}

.search-bar input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  color: #f8fafc;
  background: rgba(2, 6, 23, 0.62);
  padding: 14px 16px;
  outline: none;
}

.search-bar button {
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: #2563eb;
  padding: 0 22px;
  font-weight: 800;
  cursor: pointer;
}

section.container {
  padding: 58px 0;
}

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

.section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(26px, 3.8vw, 44px);
  line-height: 1.12;
}

.section-more {
  color: #93c5fd;
  font-weight: 800;
}

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

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

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(96, 165, 250, 0.42);
  box-shadow: 0 24px 64px rgba(37, 99, 235, 0.2);
}

.movie-poster {
  position: relative;
  display: block;
  background: linear-gradient(135deg, #111827, #1e3a8a);
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.movie-poster img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

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

.movie-poster strong {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.82);
  color: #fde68a;
  font-size: 13px;
}

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

.movie-title {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.movie-card-body p {
  min-height: 66px;
  margin: 0 0 12px;
  color: #cbd5e1;
  line-height: 1.65;
  font-size: 14px;
}

.movie-meta {
  margin-bottom: 12px;
}

.tag-row span {
  font-size: 12px;
  padding: 5px 9px;
}

.tag-row.large span {
  font-size: 13px;
  padding: 7px 11px;
}

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

.small-card {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.62);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.small-card:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.36);
}

.small-card img {
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
}

.small-card strong,
.small-card em {
  display: block;
}

.small-card strong {
  line-height: 1.35;
  margin-bottom: 8px;
}

.small-card em {
  color: #93c5fd;
  font-style: normal;
  font-size: 13px;
  line-height: 1.4;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.rank-box,
.side-panel,
.detail-article {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 20px 58px rgba(2, 6, 23, 0.24);
}

.rank-box {
  padding: 20px;
  position: sticky;
  top: 92px;
}

.section-head.compact {
  margin-bottom: 14px;
}

.section-head.compact h2 {
  font-size: 28px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.42);
}

.rank-row b {
  color: #fde68a;
}

.rank-row span,
.rank-row em {
  display: block;
}

.rank-row em {
  grid-column: 2;
  color: #93c5fd;
  font-size: 12px;
  font-style: normal;
}

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

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

.category-tile {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  border: 1px solid rgba(147, 197, 253, 0.2);
  border-radius: 24px;
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.38), transparent 10rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.78));
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.55);
}

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile strong {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
}

.page-main {
  padding-bottom: 50px;
}

.page-hero {
  padding: 72px 0 26px;
}

.page-hero h1 {
  max-width: 920px;
}

.page-hero p {
  max-width: 780px;
}

.filter-section {
  padding-top: 24px !important;
}

.filter-bar {
  margin-bottom: 24px;
}

.filter-bar.wide {
  display: grid;
  grid-template-columns: 1fr 220px;
}

.rank-grid .movie-poster strong {
  color: #fff;
  background: linear-gradient(135deg, #f97316, #dc2626);
}

.heat-line {
  color: #fde68a;
  font-size: 13px;
  font-weight: 700;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.2;
}

.detail-backdrop img {
  height: 100%;
  object-fit: cover;
  filter: blur(10px) saturate(1.22);
  transform: scale(1.04);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.88));
}

.detail-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-cover {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(2, 6, 23, 0.58);
}

.detail-cover img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #93c5fd;
  margin-bottom: 14px;
}

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

.player-section {
  padding-top: 34px !important;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(147, 197, 253, 0.2);
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.42);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2), rgba(2, 6, 23, 0.62));
  cursor: pointer;
}

.player-cover span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #9333ea);
  box-shadow: 0 20px 48px rgba(37, 99, 235, 0.38);
  font-size: 30px;
  padding-left: 4px;
}

.player-shell.is-playing .player-cover {
  opacity: 0;
  pointer-events: none;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.detail-article {
  padding: 28px;
}

.detail-article h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.detail-article p {
  color: #dbeafe;
  line-height: 1.92;
  margin: 0 0 28px;
  font-size: 16px;
}

.side-panel {
  padding: 20px;
  position: sticky;
  top: 92px;
}

.side-list {
  display: grid;
  gap: 12px;
}

.site-footer {
  margin-top: 54px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(2, 6, 23, 0.52);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #cbd5e1;
}

.footer-grid strong {
  display: block;
  color: #f8fafc;
  font-size: 20px;
  margin-bottom: 8px;
}

.footer-grid p {
  margin: 0;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  color: #93c5fd;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .hero-slide,
  .detail-grid,
  .split-layout,
  .article-layout,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 360px;
  }

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

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

  .rank-box,
  .side-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.98);
  }

  .nav-links.open {
    display: flex;
  }

  .hero-shell {
    min-height: 780px;
  }

  .hero-slide {
    padding: 44px 16px 70px;
  }

  .hero-poster img {
    height: 380px;
  }

  .hero-dots {
    left: 16px;
    bottom: 24px;
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-grid.large,
  .filter-bar.wide {
    grid-template-columns: 1fr;
  }

  .filter-bar,
  .search-bar {
    flex-direction: column;
  }

  .detail-grid {
    gap: 22px;
  }

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

  .footer-grid {
    flex-direction: column;
  }
}
