:root {
  --bg: #050713;
  --panel: rgba(15, 20, 42, 0.86);
  --panel-strong: rgba(22, 29, 58, 0.94);
  --text: #f6f8ff;
  --muted: #aab3d6;
  --line: rgba(255, 255, 255, 0.12);
  --brand: #8b5cf6;
  --brand-2: #06b6d4;
  --gold: #fbbf24;
  --danger: #ef4444;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(139, 92, 246, 0.26), transparent 34rem),
    radial-gradient(circle at 90% 12%, rgba(6, 182, 212, 0.22), transparent 31rem),
    linear-gradient(180deg, #070a18 0%, var(--bg) 42%, #050712 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 19, 0.78);
  backdrop-filter: blur(20px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 34px rgba(139, 92, 246, 0.35);
}

.nav-links,
.mobile-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.mobile-links a {
  padding: 10px 14px;
  color: var(--muted);
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active,
.mobile-links a:hover,
.mobile-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.menu-toggle {
  display: none;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 9px 14px;
}

.mobile-links {
  display: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 16px;
  flex-wrap: wrap;
}

.hero {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 38px 24px 18px;
}

.hero-glow {
  position: absolute;
  inset: 58px 24px auto;
  height: 320px;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.42), rgba(6, 182, 212, 0.28));
  filter: blur(64px);
  opacity: 0.8;
}

.hero-stage {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(130deg, rgba(15, 23, 42, 0.86), rgba(17, 24, 39, 0.7)),
    radial-gradient(circle at 78% 18%, rgba(139, 92, 246, 0.32), transparent 24rem);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.68fr);
  gap: 38px;
  align-items: center;
  padding: 64px;
  opacity: 0;
  transform: translateY(18px) scale(0.99);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.eyebrow,
.section-label {
  display: inline-flex;
  color: #c4b5fd;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 14px 0 10px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy h2 {
  margin: 0 0 16px;
  color: #fef3c7;
  font-size: clamp(28px, 3.3vw, 48px);
  line-height: 1.14;
}

.hero-copy p,
.page-hero p,
.detail-info p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.meta-pills,
.chip-row,
.hero-actions,
.footer-links,
.filter-buttons,
.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.meta-pills span,
.chip,
.mini-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d9def7;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.hero-actions {
  margin-top: 26px;
}

.btn,
.search-strip button,
.filter-buttons button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.24);
  cursor: pointer;
}

.btn.alt,
.filter-buttons button {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.filter-buttons button.active,
.filter-buttons button:hover {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.hero-poster {
  position: relative;
  display: block;
  max-width: 390px;
  justify-self: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-poster img,
.detail-poster img,
.poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.hero-dots {
  position: relative;
  margin: 18px auto 0;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.hero-dots button {
  width: 38px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

main,
.page-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 24px 70px;
}

.quick-panel,
.section-block,
.page-hero,
.detail-hero,
.player-section,
.article-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

.quick-panel {
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: 22px;
  align-items: center;
}

.quick-panel h2,
.section-head h2,
.page-hero h1,
.article-block h2,
.player-section h2 {
  margin: 0;
}

.quick-panel p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.search-strip input,
.filter-line input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  padding: 0 18px;
  outline: none;
}

.section-block {
  margin-top: 28px;
  padding: 28px;
}

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

.section-head a {
  color: #93c5fd;
}

.category-grid,
.movie-grid,
.category-wide-grid {
  display: grid;
  gap: 18px;
}

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

.category-card,
.category-wide {
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04)),
    radial-gradient(circle at 10% 10%, rgba(139, 92, 246, 0.22), transparent 14rem);
  transition: 0.2s ease;
}

.category-card {
  min-height: 132px;
  padding: 18px;
}

.category-card span,
.category-wide h2 {
  display: block;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
}

.category-card strong,
.category-wide p {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.category-card:hover,
.category-wide:hover,
.movie-card:hover,
.rank-item:hover {
  transform: translateY(-4px);
  border-color: rgba(147, 197, 253, 0.55);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
  transition: 0.2s ease;
}

.poster {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.68));
}

.duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  padding: 4px 8px;
  font-size: 12px;
}

.movie-body {
  padding: 15px;
}

.movie-title {
  min-height: 50px;
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-line {
  min-height: 66px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #cbd5e1;
  font-size: 12px;
}

.chip-row {
  margin-top: 12px;
}

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

.rank-item {
  min-height: 82px;
  display: grid;
  grid-template-columns: 52px 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  padding: 12px;
  transition: 0.2s ease;
}

.rank-num {
  color: var(--gold);
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.rank-item img {
  width: 54px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-main strong,
.rank-main em {
  display: block;
}

.rank-main em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.rank-score {
  color: #fecaca;
  white-space: nowrap;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(3, 5, 18, 0.9);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}
