:root {
  color-scheme: dark;
  --page: #020617;
  --panel: #0f172a;
  --panel-soft: rgba(15, 23, 42, 0.74);
  --line: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --muted: #94a3b8;
  --blue: #60a5fa;
  --cyan: #22d3ee;
  --orange: #fb923c;
  --green: #34d399;
  --red: #f87171;
  --shadow: 0 26px 80px rgba(2, 6, 23, 0.42);
}

* {
  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(37, 99, 235, 0.16), transparent 32rem),
    radial-gradient(circle at top right, rgba(8, 145, 178, 0.18), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.96));
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.28);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 10px 28px rgba(14, 165, 233, 0.26);
}

.brand-text {
  font-size: 20px;
  background: linear-gradient(90deg, #93c5fd, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #93c5fd;
}

.nav-search {
  position: relative;
  width: 250px;
}

.nav-search input,
.search-panel input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  outline: none;
  border-radius: 999px;
  color: var(--text);
  background: rgba(30, 41, 59, 0.86);
  padding: 10px 44px 10px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input:focus,
.search-panel input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(96, 165, 250, 0.72);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.24);
  background: rgba(15, 23, 42, 0.98);
}

.nav-search button {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  cursor: pointer;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  color: white;
  background: rgba(15, 23, 42, 0.74);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 0 0 18px;
}

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

.mobile-panel a {
  display: block;
  padding: 12px 0;
  color: #cbd5e1;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.main-content {
  padding: 30px 0 54px;
}

.hero {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(120deg, #2563eb, #0891b2, #0f766e);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 28px;
  padding: 46px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.58), rgba(2, 6, 23, 0.74)),
    var(--hero-image) center / cover no-repeat;
  transform: scale(1.04);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    radial-gradient(circle at 20px 20px, rgba(255, 255, 255, 0.18) 2px, transparent 3px),
    linear-gradient(135deg, rgba(34, 211, 238, 0.32), transparent 42%);
  background-size: 54px 54px, auto;
}

.hero-copy,
.hero-card {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border: 1px solid rgba(147, 197, 253, 0.32);
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(15, 23, 42, 0.52);
}

.hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 660px;
  margin: 18px 0 0;
  color: rgba(248, 250, 252, 0.88);
  font-size: 18px;
}

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

.button,
.button-soft,
.button-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button {
  color: #075985;
  background: white;
}

.button-soft {
  color: white;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.28);
}

.button-line {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.08);
}

.button:hover,
.button-soft:hover,
.button-line:hover {
  transform: translateY(-2px);
}

.hero-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(2, 6, 23, 0.48);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

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

.hero-card-body {
  padding: 18px;
}

.hero-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.hero-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 46px;
  bottom: 32px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 38px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

.hero-dot.is-active {
  background: white;
}

.section {
  margin-top: 54px;
}

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

.section-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
}

.section-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

.movie-card,
.rank-card,
.category-tile,
.panel {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.84), rgba(15, 23, 42, 0.96));
  box-shadow: 0 12px 36px rgba(2, 6, 23, 0.24);
}

.movie-card {
  overflow: hidden;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(96, 165, 250, 0.46);
  box-shadow: 0 22px 50px rgba(37, 99, 235, 0.18);
}

.movie-poster {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(6, 182, 212, 0.14));
}

.movie-poster img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  color: white;
  background: rgba(2, 6, 23, 0.44);
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.play-circle {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #2563eb;
  font-weight: 900;
}

.duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
}

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

.movie-card h3 {
  margin: 0 0 8px;
  min-height: 3.1em;
  color: white;
  font-size: 17px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card p {
  margin: 0 0 12px;
  color: #cbd5e1;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.13);
  font-size: 12px;
}

.badge.orange {
  border-color: rgba(251, 146, 60, 0.28);
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.13);
}

.badge.green {
  border-color: rgba(52, 211, 153, 0.28);
  color: #bbf7d0;
  background: rgba(16, 185, 129, 0.13);
}

.badge.red {
  border-color: rgba(248, 113, 113, 0.28);
  color: #fecaca;
  background: rgba(239, 68, 68, 0.13);
}

.category-tile {
  position: relative;
  overflow: hidden;
  padding: 22px;
  min-height: 164px;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 22px 44px rgba(6, 182, 212, 0.18);
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.8;
  background: linear-gradient(135deg, var(--tile-from), var(--tile-to));
}

.category-tile > * {
  position: relative;
  z-index: 1;
}

.category-icon {
  font-size: 38px;
}

.category-tile h2,
.category-tile h3 {
  margin: 12px 0 8px;
  font-size: 24px;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.from-blue { --tile-from: #2563eb; --tile-to: #06b6d4; }
.from-purple { --tile-from: #7c3aed; --tile-to: #2563eb; }
.from-red { --tile-from: #dc2626; --tile-to: #f97316; }
.from-pink { --tile-from: #db2777; --tile-to: #f43f5e; }
.from-orange { --tile-from: #ea580c; --tile-to: #f59e0b; }
.from-cyan { --tile-from: #0891b2; --tile-to: #14b8a6; }
.from-green { --tile-from: #059669; --tile-to: #22c55e; }
.from-slate { --tile-from: #334155; --tile-to: #0f172a; }

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

.rank-card {
  display: grid;
  grid-template-columns: 70px 170px 1fr;
  align-items: center;
  gap: 18px;
  padding: 12px;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  font-size: 20px;
  font-weight: 900;
}

.rank-card img {
  width: 170px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  object-fit: cover;
}

.rank-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-card p {
  margin: 0 0 10px;
  color: #cbd5e1;
}

.page-hero {
  padding: 46px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 18%, rgba(34, 211, 238, 0.2), transparent 28rem),
    linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(15, 23, 42, 0.92));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: #cbd5e1;
  font-size: 18px;
}

.filter-panel,
.search-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  margin: 26px 0 0;
}

.filter-panel select {
  padding-right: 16px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 18px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #bfdbfe;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 26px;
  align-items: start;
}

.player-panel {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
}

.player-box {
  position: relative;
  background: #000;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: white;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.76));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover .play-circle {
  width: 76px;
  height: 76px;
  font-size: 28px;
}

.detail-copy {
  padding: 22px;
}

.detail-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.14;
}

.detail-copy p {
  color: #cbd5e1;
}

.side-card {
  position: sticky;
  top: 92px;
  overflow: hidden;
}

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

.side-card-body {
  padding: 18px;
}

.article-panel {
  padding: 26px;
}

.article-panel h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.article-panel p {
  margin: 0;
  color: #cbd5e1;
  white-space: pre-line;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: #94a3b8;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), #020617);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(2, 1fr);
  gap: 26px;
  padding: 36px 0;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 12px;
  color: white;
}

.site-footer p {
  margin: 0;
}

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

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

.copyright {
  padding: 18px 0 26px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  text-align: center;
  font-size: 14px;
}

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

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

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

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

  .hero-card {
    display: none;
  }

  .grid.featured,
  .grid.cards,
  .grid.category-grid,
  .grid.two,
  .detail-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .side-card {
    position: static;
  }

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

  .rank-card {
    grid-template-columns: 54px 118px 1fr;
  }

  .rank-card img {
    width: 118px;
  }
}

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

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

  .main-content {
    padding-top: 18px;
  }

  .hero {
    min-height: 470px;
    border-radius: 22px;
  }

  .hero-slide {
    padding: 26px;
  }

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

  .hero-dots {
    left: 26px;
    bottom: 22px;
  }

  .grid.featured,
  .grid.cards,
  .grid.category-grid,
  .grid.two {
    grid-template-columns: 1fr;
  }

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

  .page-hero {
    padding: 28px;
    border-radius: 22px;
  }

  .rank-card {
    grid-template-columns: 46px 1fr;
  }

  .rank-card img {
    display: none;
  }

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