:root {
  --bg: #08080d;
  --surface: #111119;
  --surface-2: #171722;
  --line: #242432;
  --text: #eef0f6;
  --muted: #9aa0b5;
  --accent: #8b5cf6;
  --accent-2: #f43f8e;
  --gold: #fbbf24;
  --radius: 16px;
  --wrap: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 650; }

p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--accent);
  color: #fff; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 8, 13, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; gap: 20px; height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12), 0 0 18px rgba(244, 63, 142, 0.45);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 5px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.brand-name { font-size: 1.05rem; }
.brand-name span { color: var(--accent); }

.nav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.nav a {
  padding: 8px 12px; border-radius: 9px; color: var(--muted);
  font-size: 0.92rem; font-weight: 500; transition: color .18s, background .18s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }

.nav-toggle {
  display: none; margin-left: auto; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 9px; padding: 7px 12px;
  font: inherit; font-size: 0.88rem; cursor: pointer;
}

.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 64px);
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(139, 92, 246, 0.26), transparent 70%),
    radial-gradient(760px 420px at 88% 8%, rgba(244, 63, 142, 0.18), transparent 70%),
    var(--bg);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 100% 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #a78bfa, #f472b6 60%, #fbbf24);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem;
  font-weight: 700; color: var(--accent);
  margin: 0 0 14px;
}
.hero-sub { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.14rem); max-width: 600px; margin-top: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 11px; font-weight: 650; font-size: 0.95rem;
  border: 1px solid transparent; transition: transform .16s, box-shadow .16s, background .16s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; box-shadow: 0 10px 30px -12px rgba(139, 92, 246, 0.8);
}
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { background: var(--surface-2); }

.stats { display: flex; flex-wrap: wrap; gap: 40px; margin: 40px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.stats dt { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.03em; }
.stats dd { margin: 2px 0 0; color: var(--muted); font-size: 0.84rem; }

.band { padding: clamp(44px, 6vw, 72px) 0; }
.band--alt { background: var(--surface); border-block: 1px solid var(--line); }
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.band-head h2 { margin: 0; }
.text-link { color: var(--accent); font-size: 0.9rem; font-weight: 600; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }
.section-sub { color: var(--muted); max-width: 620px; margin-bottom: 28px; }

.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 22px 46px -28px rgba(139, 92, 246, 0.75);
}
.card-link { display: block; height: 100%; }
.cover {
  position: relative; aspect-ratio: 16 / 10;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px; overflow: hidden; isolation: isolate;
}
.cover::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 120% at 80% 0%, rgba(255,255,255,0.22), transparent 55%);
}
.cover-title {
  font-size: 1.16rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em;
  text-shadow: 0 2px 14px rgba(0,0,0,0.45); max-width: 92%;
}
.cover-genre {
  position: absolute; top: 12px; left: 12px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(8, 8, 13, 0.5); border: 1px solid rgba(255,255,255,0.18);
  padding: 4px 9px; border-radius: 100px; backdrop-filter: blur(6px);
}
.cover-rating {
  position: absolute; top: 12px; right: 12px;
  font-size: 0.74rem; font-weight: 700; color: #0b0b12;
  background: var(--gold); padding: 4px 9px; border-radius: 100px;
}
.cover--rose { background: linear-gradient(150deg, #4c1d3d, #f43f8e 55%, #fb7185); }
.cover--violet { background: linear-gradient(150deg, #2a1a5e, #8b5cf6 55%, #c4b5fd); }
.cover--teal { background: linear-gradient(150deg, #0b3b3c, #14b8a6 55%, #67e8f9); }
.cover--amber { background: linear-gradient(150deg, #4a2c07, #f59e0b 55%, #fcd34d); }

.card-body { padding: 16px 18px 20px; }
.card-body h3 { margin-bottom: 6px; font-size: 1rem; }
.card-meta { color: var(--muted); font-size: 0.78rem; margin-bottom: 10px; }
.card-blurb { color: #c3c7d6; font-size: 0.88rem; margin-bottom: 14px; }
.platform {
  display: inline-block; font-size: 0.75rem; font-weight: 650;
  padding: 5px 11px; border-radius: 100px;
  border: 1px solid var(--line); color: var(--muted); background: var(--surface-2);
}
.platform--rose { color: #fda4af; border-color: rgba(244, 63, 142, 0.35); }
.platform--violet { color: #c4b5fd; border-color: rgba(139, 92, 246, 0.35); }
.platform--teal { color: #5eead4; border-color: rgba(20, 184, 166, 0.35); }
.platform--amber { color: #fcd34d; border-color: rgba(245, 158, 11, 0.35); }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-block; font-size: 0.84rem; font-weight: 550;
  padding: 8px 14px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--muted);
  cursor: pointer; transition: .16s; font-family: inherit;
}
.chip:hover { color: var(--text); border-color: rgba(139, 92, 246, 0.55); }
.chip.is-active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; }
.chip--static { cursor: default; }
.chip--static:hover { color: var(--muted); border-color: var(--line); }

.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { border-left: 2px solid var(--line); padding-left: 18px; }
.step span { font-size: 0.76rem; font-weight: 800; color: var(--accent); letter-spacing: 0.1em; }
.step h3 { margin: 8px 0 6px; }
.step p { color: var(--muted); font-size: 0.9rem; margin: 0; }

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 1rem; list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); font-size: 0.92rem; margin: 10px 0 0; }

.page-head {
  padding: clamp(44px, 6vw, 72px) 0 8px;
  background: radial-gradient(700px 300px at 20% -20%, rgba(139, 92, 246, 0.18), transparent 70%);
}
.page-head h1 { margin-bottom: 10px; }
.toolbar { display: grid; gap: 16px; margin: 26px 0 18px; }
.search input {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: inherit; font-size: 0.95rem;
}
.search input:focus { outline: 2px solid rgba(139, 92, 246, 0.5); outline-offset: 1px; }
.result-count { color: var(--muted); font-size: 0.85rem; margin-bottom: 18px; }
.empty { color: var(--muted); padding: 40px 0 60px; }
#grid { padding-bottom: 12px; }

.detail { padding-bottom: 40px; }
.crumbs { color: var(--muted); font-size: 0.82rem; padding: 24px 0 20px; }
.crumbs a:hover { color: var(--accent); }
.detail-head { display: grid; gap: 28px; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); align-items: start; }
.cover--lg { aspect-ratio: 4 / 3; border-radius: var(--radius); border: 1px solid var(--line); }
.cover--lg .cover-title { font-size: 1.7rem; }
.detail-info h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: 10px; }
.detail-logline { color: var(--muted); font-size: 1.02rem; margin-bottom: 18px; }
.facts { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; font-size: 0.9rem; }
.facts li { display: flex; gap: 12px; }
.facts span { color: var(--muted); min-width: 84px; }
.fineprint { color: var(--muted); font-size: 0.78rem; margin: 10px 0 0; }
.detail-body { max-width: 820px; padding-top: 34px; }
.detail-body h2 { font-size: 1.3rem; margin-top: 34px; }
.detail-body p { color: #ccd0dd; }
.bullets { padding-left: 20px; color: #ccd0dd; }
.bullets li { margin-bottom: 8px; }
.related-head { margin-top: 56px; }

.prose { max-width: 760px; padding-bottom: 40px; }
.prose h2 { font-size: 1.28rem; margin-top: 36px; }
.prose p, .prose li { color: #c3c7d6; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose code { background: var(--surface-2); padding: 2px 6px; border-radius: 5px; font-size: 0.85em; }

.ad-slot {
  min-height: 100px; margin: 34px auto; max-width: 970px;
  border: 1px dashed var(--line); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.015);
}
.ad-slot.is-filled { border: 0; background: none; min-height: 0; }
.ad-label { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: #5d6379; }

.site-foot { border-top: 1px solid var(--line); background: var(--surface); padding: 48px 0 28px; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: 2fr 1fr 1fr; }
.foot-brand { font-weight: 800; font-size: 1.05rem; margin-bottom: 10px; }
.foot-note { color: var(--muted); font-size: 0.86rem; max-width: 420px; margin: 0; }
.foot-head { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: #6f7590; margin-bottom: 12px; }
.foot-grid a { display: block; color: var(--muted); font-size: 0.88rem; padding: 4px 0; }
.foot-grid a:hover { color: var(--text); }
.foot-base {
  border-top: 1px solid var(--line); margin-top: 34px; padding-top: 20px;
  color: #6f7590; font-size: 0.79rem;
}
.foot-base p { margin: 4px 0; }

.notfound { min-height: 70vh; display: grid; align-content: center; justify-items: start; max-width: 700px; padding: 60px 20px; margin: 0 auto; }

@media (max-width: 860px) {
  .detail-head { grid-template-columns: 1fr; }
  .cover--lg { max-width: 420px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 64px; right: 12px; left: 12px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 14px; padding: 8px; display: none;
    box-shadow: 0 24px 50px -20px rgba(0,0,0,0.8);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 11px 12px; }
  .stats { gap: 26px; }
  .band-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .foot-base { font-size: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
