
:root {
  --bg: #0b1020;
  --bg-2: #121936;
  --panel: rgba(11, 16, 32, 0.72);
  --panel-2: rgba(255, 255, 255, 0.06);
  --text: #eef2ff;
  --muted: #a9b4d0;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #f97316;
  --accent-2: #8b5cf6;
  --accent-3: #22c55e;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --container: min(1280px, calc(100vw - 32px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.16), transparent 22%),
    linear-gradient(180deg, #050814 0%, #0b1020 35%, #0a0f1d 100%);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.page {
  padding-bottom: 56px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(18px);
  background: rgba(5, 8, 20, 0.72);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.24);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-text strong {
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text em {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.hero {
  padding: 28px 0 10px;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(139, 92, 246, 0.14)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
  padding: 26px;
}

.hero-shell::before,
.hero-shell::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.7;
  pointer-events: none;
}

.hero-shell::before {
  width: 280px;
  height: 280px;
  right: -80px;
  top: -90px;
  background: rgba(139, 92, 246, 0.28);
}

.hero-shell::after {
  width: 340px;
  height: 340px;
  left: -120px;
  bottom: -180px;
  background: rgba(249, 115, 22, 0.22);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 22px;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffd9bf;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.hero-title {
  margin: 0;
  font-size: clamp(30px, 5vw, 60px);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.hero-title span {
  display: inline-block;
  background: linear-gradient(90deg, #fff, #ffd5b0 45%, #f9a8d4 70%, #ddd6fe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
  font-size: 16px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-chip b {
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #fb7185);
  color: white;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.08);
}

.search-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

.search-bar input,
.search-bar select,
.control-row input,
.control-row select {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  outline: none;
}

.search-bar input::placeholder,
.control-row input::placeholder {
  color: #94a3b8;
}

.hero-rail {
  display: grid;
  grid-template-rows: auto auto;
  gap: 14px;
}

.spotlight {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 410px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.18), transparent 30%),
    linear-gradient(145deg, rgba(249,115,22,0.30), rgba(139,92,246,0.30));
  box-shadow: 0 18px 50px rgba(0,0,0,0.30);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,8,20,0.0) 10%, rgba(5,8,20,0.35) 55%, rgba(5,8,20,0.78) 100%);
}

.spotlight-inner {
  position: relative;
  z-index: 1;
}

.spotlight-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  color: white;
  font-size: 12px;
}

.spotlight h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.08;
}

.spotlight p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.84);
  max-width: 44ch;
}

.spotlight-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

.mini-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 112px;
  border-radius: 20px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at 25% 20%, hsla(var(--hue), 90%, 64%, 0.38), transparent 35%),
    linear-gradient(145deg, hsla(var(--hue), 88%, 42%, 0.50), hsla(calc(var(--hue) + 30), 88%, 34%, 0.28));
}

.mini-card strong {
  font-size: 15px;
}

.mini-card span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.section {
  padding: 24px 0;
}

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

.section-head h2 {
  margin: 0;
  font-size: 22px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

.section-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.pill-link {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
}

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

.movie-card,
.rank-item {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0,0,0,0.16);
}

.movie-card a {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.poster {
  position: relative;
  min-height: 220px;
  padding: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  background:
    radial-gradient(circle at 20% 18%, hsla(var(--hue), 90%, 64%, 0.45), transparent 30%),
    radial-gradient(circle at 80% 20%, hsla(calc(var(--hue) + 50), 90%, 62%, 0.26), transparent 25%),
    linear-gradient(145deg, hsla(var(--hue), 80%, 38%, 0.88), hsla(calc(var(--hue) + 50), 80%, 24%, 0.92));
}

.poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), transparent 40%),
    linear-gradient(0deg, rgba(5,8,20,0.90), rgba(5,8,20,0.02) 60%);
}

.poster-id {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-weight: 800;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
}

.poster-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.poster-copy strong {
  font-size: 18px;
  line-height: 1.12;
}

.poster-copy span {
  color: rgba(255,255,255,0.82);
  font-size: 12px;
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.meta-tag {
  font-size: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: #dbe4ff;
}

.card-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.card-desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.filters {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  margin-bottom: 16px;
}

.control-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.list-shell,
.detail-shell,
.category-shell,
.search-shell {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(14px);
  border-radius: 30px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.detail-top {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 18px;
  align-items: start;
}

.detail-hero {
  border-radius: 28px;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.16), transparent 30%),
    linear-gradient(135deg, rgba(249,115,22,0.22), rgba(139,92,246,0.22));
  border: 1px solid rgba(255,255,255,0.09);
}

.detail-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
}

.detail-hero .summary {
  color: rgba(255,255,255,0.86);
  margin: 0 0 16px;
}

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

.fact {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.fact small {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}

.player-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.player {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #060913;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}

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

.player-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.player-actions .btn {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

.detail-body {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.panel {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  border-radius: 24px;
  padding: 18px;
}

.panel h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.rich-text {
  color: #d6def4;
}

.rich-text p {
  margin-top: 0;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud a,
.tag-cloud span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #dde6ff;
  font-size: 13px;
}

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

.related-card {
  display: flex;
  gap: 12px;
  align-items: stretch;
  min-height: 110px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.related-thumb {
  width: 78px;
  flex: 0 0 78px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 20%, hsla(var(--hue), 90%, 60%, 0.46), transparent 28%),
    linear-gradient(145deg, hsla(var(--hue), 86%, 38%, 0.92), hsla(calc(var(--hue) + 50), 86%, 22%, 0.90));
}

.related-copy strong {
  display: block;
  margin-bottom: 6px;
}

.related-copy span {
  color: var(--muted);
  font-size: 13px;
}

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

.rank-item a {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
}

.rank-no {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(249,115,22,0.22), rgba(139,92,246,0.22));
  font-weight: 800;
}

.rank-bar {
  height: 10px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.rank-bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.site-footer {
  padding: 34px 0 50px;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.footer-grid h3 {
  margin: 0 0 8px;
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.empty-state {
  padding: 34px;
  text-align: center;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .detail-top,
  .hero-grid,
  .detail-body {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 840px) {
  .header-inner {
    flex-wrap: wrap;
  }

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

  .main-nav {
    display: none;
    width: 100%;
    margin-left: 0;
    padding-bottom: 10px;
  }

  .main-nav.is-open {
    display: flex;
  }

  .hero-shell,
  .list-shell,
  .detail-shell,
  .category-shell,
  .search-shell {
    padding: 16px;
    border-radius: 22px;
  }

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

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

  .mini-strip {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 560px) {
  .container {
    width: min(100vw - 20px, 1280px);
  }

  .brand-text strong {
    white-space: normal;
  }

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

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

  .rank-item a {
    grid-template-columns: 58px 1fr;
  }

  .rank-bar {
    grid-column: 1 / -1;
  }
}
