:root {
  color-scheme:dark;
  --base:#111315;
  --panel:#191b1d;
  --paper:#eff1e9;
  --muted:#a2a6a3;
  --lime:#d6ef87;
  --border:#353837;
  --mono:"SFMono-Regular",Consolas,"Liberation Mono",monospace;
  font-family:"Inter","Helvetica Neue",Arial,sans-serif;
  font-size:16px;
  color:var(--paper);
  background:var(--base);
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

button,input,a {
  font:inherit;
}

button {
  color:inherit;
  background:none;
  border:0;
  cursor:pointer;
}

button,a,input {
  touch-action:manipulation;
}

button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible {
  outline:2px solid var(--lime);
  outline-offset:3px;
}

button:disabled {
  opacity:.4;
  cursor:default;
}

button:hover:not(:disabled) {
  color:white;
}

a {
  color:inherit;
}

button svg,i svg,.statusbar svg {
  display:block;
  width:18px;
  height:18px;
}

i {
  font-style:normal;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

h1,h2,h3,p {
  margin:0;
}

button {
  -webkit-tap-highlight-color:transparent;
}

[hidden] {
  display:none!important;
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
}

.masthead {
  height:74px;
  border-bottom:1px solid #2c2e2e;
  display:flex;
  align-items:center;
  padding:0 clamp(20px,3vw,54px);
  gap:58px;
}

.brand {
  display:inline-flex;
  align-items:center;
  text-decoration:none;
  font-size:26px;
  letter-spacing:-1.4px;
  font-weight:730;
  line-height:1;
}

.brand-stop,h1 span {
  color:var(--lime);
}

.brand-symbol {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  position:relative;
  width:36px;
  height:36px;
  margin-right:11px;
  border-radius:11px;
  background:var(--lime);
  color:#1b2212;
}

.brand-symbol:before,.brand-symbol:after,.brand-symbol i {
  content:"";
  position:absolute;
  border:1.65px solid currentColor;
  border-radius:50%;
  transform:rotate(-30deg);
}

.brand-symbol:before {
  width:24px;
  height:18px;
}

.brand-symbol:after {
  width:17px;
  height:12px;
}

.brand-symbol i {
  width:8px;
  height:5px;
}

.masthead nav {
  display:flex;
  align-items:center;
  gap:7px;
}

.tab,.quiet {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:#a9aca8;
  font-size:14px;
  font-weight:550;
}

.tab {
  padding:10px 14px;
  border:1px solid transparent;
  border-radius:8px;
}

.tab.active {
  color:var(--paper);
  background:#252826;
  border-color:#343834;
}

.tab.active i {
  color:var(--lime);
}

.quiet {
  margin-left:auto;
  padding:8px 0;
}

.quiet svg {
  width:16px;
  height:16px;
}

main {
  max-width:2000px;
  margin:auto;
  padding:0 clamp(18px,3vw,54px) 24px;
}

.page-intro {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:26px;
  padding:30px 0 26px;
}

.page-intro h1 {
  font-size:clamp(34px,3.1vw,52px);
  font-weight:630;
  letter-spacing:-.065em;
  line-height:1.05;
}

.page-intro p {
  font-size:15px;
  color:#a9ada8;
  margin-top:10px;
  line-height:1.4;
}

.search-box {
  width:280px;
  min-width:205px;
  position:relative;
  border:1px solid #383b39;
  background:#1c1e20;
  color:#a8aba8;
  border-radius:9px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 12px;
  height:42px;
  z-index:15;
}

.search-box:focus-within {
  border-color:#869353;
}

.search-box input {
  width:100%;
  min-width:0;
  flex:1;
  background:none;
  border:0;
  outline:none;
  color:#eff1e9;
  font-size:14px;
}

.search-box input:focus-visible {
  outline:none;
}

.search-box input::placeholder {
  color:#999e9a;
}

kbd {
  display:inline-grid;
  place-items:center;
  border-radius:4px;
  border:1px solid #3d413e;
  min-width:18px;
  height:21px;
  font:12px var(--mono);
  color:#a3aaa2;
  background:#222524;
}

#search-results {
  position:absolute;
  top:calc(100% + 6px);
  right:0;
  width:max(100%,320px);
  max-height:50vh;
  overflow:auto;
  background:#212422;
  border:1px solid #42473e;
  border-radius:10px;
  box-shadow:0 14px 42px #0008;
  padding:5px;
}

.result-row {
  display:flex;
  width:100%;
  align-items:center;
  gap:9px;
  padding:10px 8px;
  text-align:left;
  border-radius:5px;
}

.result-row:hover,.result-row:focus {
  background:#333831;
}

.result-row b {
  flex:1;
  font-size:14px;
  font-weight:550;
}

.result-row small {
  font:12px var(--mono);
  color:#aaa;
}

.no-results {
  padding:13px;
  font-size:14px;
  color:var(--muted);
  line-height:1.5;
}

.atlas-shell {
  display:grid;
  grid-template-columns:207px minmax(0,1fr);
  grid-template-rows:minmax(0,1fr) 41px;
  overflow:hidden;
  isolation:isolate;
  height:calc(100svh - 222px);
  min-height:540px;
  max-height:1100px;
  border:1px solid #363a36;
  border-radius:13px;
  background:var(--panel);
}

.atlas-shell.enlarged,.atlas-shell:fullscreen {
  position:fixed;
  inset:0;
  z-index:50;
  width:100%;
  height:100dvh;
  max-height:none;
  min-height:0;
  border-radius:0;
}

.sidebar {
  min-height:0;
  display:flex;
  flex-direction:column;
  padding:21px 12px 15px;
  background:#191b1c;
  border-right:1px solid #333735;
  z-index:5;
}

.side-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:0 8px 15px;
}

.side-heading h2 {
  font-size:15px;
  font-weight:640;
  letter-spacing:-.3px;
}

.side-heading i {
  color:#8e958e;
}

.side-heading svg {
  width:15px;
  height:15px;
}

.family-list {
  display:flex;
  flex-direction:column;
  gap:2px;
  overflow:auto;
  scrollbar-width:thin;
  scrollbar-color:#3d443e transparent;
}

.family-row {
  width:100%;
  display:flex;
  gap:10px;
  align-items:center;
  text-align:left;
  height:32px;
  min-height:32px;
  padding:0 10px;
  color:#bac0ba;
  border:1px solid transparent;
  border-radius:6px;
  font-size:13px;
  letter-spacing:-.04px;
}

.family-row:hover {
  background:#232725;
}

.family-count {
  margin-left:auto;
  font:11px var(--mono);
  color:#8b938c;
}

.family-row.active {
  background:#2a3025;
  color:#e3f2c3;
  border-color:#414a35;
}

.family-row.active .family-count {
  color:#c4d2ae;
}

.family-row:first-child {
  margin-bottom:7px;
}

.family-row:first-child svg {
  width:13px;
  height:13px;
}

.family-dot {
  display:inline-block;
  flex:none;
  width:8px;
  height:8px;
  background:var(--family);
  border-radius:50%;
}

.shuffle-wrap {
  border-top:1px solid #333633;
  margin: auto 4px 0;
  padding-top:14px;
}

.shuffle-wrap button {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  width:100%;
  font-size:14px;
  font-weight:550;
  padding:9px;
  border:1px solid #43483c;
  border-radius:7px;
  background:#282c25;
  color:#deebce;
}

.shuffle-wrap button:hover {
  background:#333a2b;
}

.shuffle-wrap i {
  color:var(--lime);
}

.content-pane {
  position:relative;
  min-width:0;
  min-height:0;
  overflow:hidden;
}

.content-pane>div,.content-pane>section {
  height:100%;
}

#map {
  position:relative;
  contain:paint;
  overflow:hidden;
  outline:none;
  touch-action:none;
  user-select:none;
  cursor:grab;
  background-color:#15191a;
  background-image:radial-gradient(circle at 54% 48%,#272e2630,transparent 66%),radial-gradient(circle,#303735 1px,transparent 1.2px);
  background-size:auto,18px 18px;
}

#map.dragging,#map.dragging .node-cover {
  cursor:grabbing;
}

#world {
  position:absolute;
  left:0;
  top:0;
  transform-origin:0 0;
}

#edges {
  width:1px;
  height:1px;
  position:absolute;
  left:0;
  top:0;
  overflow:visible;
  pointer-events:none;
}

.wire {
  fill:none;
  stroke-width:1.3;
  pointer-events:none;
}

.hit-wire {
  fill:none;
  stroke:transparent;
  stroke-width:13;
  pointer-events:stroke;
  cursor:pointer;
}

.connection:hover .wire {
  stroke-width:3;
  opacity:1!important;
}

.connection:hover .arrow {
  opacity:1!important;
}

.square,.zoom-tools,.minimap {
  border:1px solid #3c423e;
  background:#202423;
  box-shadow:0 3px 12px #0002;
}

.map-fullscreen {
  position:absolute;
  top:16px;
  right:16px;
}

.square,.zoom-tools button {
  width:34px;
  height:34px;
  display:inline-grid;
  place-items:center;
  color:#d7dcd6;
}

.square {
  border-radius:7px;
}

.square svg {
  width:16px;
  height:16px;
}

.square:hover,.zoom-tools button:hover {
  background:#303731;
}

.map-tools {
  display:flex;
  gap:7px;
  position:absolute;
  right:16px;
  bottom:16px;
  align-items:center;
}

.zoom-tools {
  display:flex;
  border-radius:7px;
  overflow:hidden;
}

.zoom-tools button {
  height:32px;
  width:31px;
}

.zoom-tools #zoom-value {
  font:12px var(--mono);
  width:49px;
}

.zoom-tools svg {
  width:14px;
  height:14px;
}

.minimap {
  position:absolute;
  bottom:16px;
  left:16px;
  padding:4px;
  border-radius:7px;
  width:119px;
  height:71px;
  background:#1b201df5;
  cursor:crosshair;
}

.minimap canvas {
  width:100%;
  height:100%;
  display:block;
}

.statusbar {
  grid-column:1/-1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:0 16px;
  background:#191c1c;
  border-top:1px solid #343835;
  color:#a5aba5;
  font-size:12px;
}

.statusbar>span {
  display:flex;
  align-items:center;
  gap:6px;
}

.statusbar svg {
  width:15px;
  height:15px;
  margin-right:3px;
  color:#949c94;
}

.statusbar b {
  font-weight:500;
  color:#d1d6cd;
}

.statusbar em {
  width:3px;
  height:3px;
  border-radius:50%;
  background:#626960;
  margin:0 5px;
}

.statusbar .gestures {
  font-size:12px;
}

.mobile-families {
  display:none;
}

.node {
  position:absolute;
  transform:translate(-50%,-50%);
  width:157px;
  min-height:116px;
  display:grid;
  place-items:center;
  pointer-events:none;
}

.node[hidden] {
  display:none;
}

.node-cover {
  position:relative;
  display:flex;
  align-items:center;
  flex-direction:column;
  max-width:100%;
  padding:0 2px 4px;
  pointer-events:auto;
  cursor:pointer;
  border-radius:8px;
}

.sleeve {
  display:block;
  object-fit:contain;
  width:113px;
  height:86px;
  filter:drop-shadow(0 3px 4px #0007);
  transition:transform .18s,filter .18s;
  pointer-events:none;
}

.node-cover:hover .sleeve,.node-cover:focus-visible .sleeve {
  transform:translateY(-4px) rotate(-3deg);
  filter:drop-shadow(0 6px 7px #000b);
}

.genre-caption {
  position:relative;
  max-width:160px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  color:#edf0e9;
  font-size:17px;
  line-height:1.15;
  letter-spacing:-.55px;
  font-weight:640;
  text-align:center;
  text-shadow:0 1px 4px #131618,2px 1px 3px #131618,-2px 1px 3px #131618;
}

.genre-year {
  font:11px var(--mono);
  letter-spacing:.03em;
  color:#abb6ac;
  margin-top:4px;
  background:#161a19cc;
  border-radius:3px;
  padding:1px 3px;
}

.genre-year:before {
  content:"";
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  margin:0 5px 1px 0;
  background:var(--family);
}

.node.hub .sleeve {
  width:135px;
  height:101px;
}

.node.hub .genre-caption {
  font-size:21px;
}

.node.open {
  z-index:4;
  width:var(--detail-width,365px);
  pointer-events:auto;
  min-height:0;
}

.genre-detail {
  touch-action:pan-y;
  width:100%;
  max-height:var(--detail-height,420px);
  overflow:auto;
  overscroll-behavior:contain;
  border-radius:13px;
  background:#232724;
  border:1px solid color-mix(in srgb,var(--family) 58%,#303331);
  box-shadow:0 16px 50px #0008;
  cursor:default;
  user-select:text;
  scrollbar-width:thin;
  scrollbar-color:#515b4e transparent;
  padding:17px 18px;
}

.detail-top {
  display:flex;
  align-items:center;
  gap:9px;
  font:11px var(--mono);
  letter-spacing:.045em;
  text-transform:uppercase;
  color:var(--family);
}

.detail-top .square {
  margin-left:auto;
  width:25px;
  height:25px;
  border:none;
  box-shadow:none;
  background:#30362f;
}

.detail-intro {
  display:flex;
  gap:11px;
  align-items:center;
  margin:9px 0 8px;
}

.detail-intro img {
  width:71px;
  height:58px;
  object-fit:contain;
}

.detail-intro h2 {
  font-size:26px;
  line-height:1;
  letter-spacing:-1px;
}

.detail-meta {
  margin-top:5px;
  color:#bcc4b8;
  font-size:12px;
}

.genre-detail p {
  font-size:14px;
  line-height:1.46;
  color:#d1d8cf;
}

.genre-detail h3 {
  font-size:13px;
  margin:15px 0 5px;
}

.track {
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 0;
  border-top:1px solid #3c433b;
}

.track-button {
  flex:1;
  min-width:0;
  display:flex;
  align-items:center;
  gap:9px;
  text-align:left;
  text-decoration:none;
}

.play-icon {
  border:1px solid #515d49;
  border-radius:50%;
  width:26px;
  height:26px;
  color:var(--family);
  display:grid;
  place-items:center;
  flex:none;
}

.play-icon svg {
  width:11px;
  height:11px;
}

.track-copy {
  display:flex;
  min-width:0;
  flex-direction:column;
  font-size:13px;
  line-height:1.25;
}

.track-copy b {
  font-weight:600;
}

.track-copy small {
  color:#b2bbae;
  font-size:12px;
}

.direct-link {
  padding:6px;
  color:#b6c0b2;
}

.direct-link svg {
  width:14px;
  height:14px;
}

.player iframe {
  width:100%;
  border:none;
  border-radius:9px;
  display:block;
  margin:8px 0;
}

.player-note {
  font-size:12px!important;
  margin-bottom:7px;
}

.player-note a {
  color:var(--family);
}

.genre-detail details {
  border-top:1px solid #3b423a;
  padding-top:8px;
  margin-top:5px;
  font-size:12px;
  color:#bec8ba;
}

.genre-detail summary {
  cursor:pointer;
}

.genre-detail details a {
  display:block;
  margin:7px 0;
  color:var(--family);
}

.related {
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  margin-top:5px;
}

.related button {
  border:1px solid #4c5549;
  border-radius:4px;
  padding:4px 6px;
  color:#d8e1d4;
  font-size:12px;
}

#index {
  background:#181c1b;
  padding:22px;
  overflow:auto;
  scrollbar-color:#454c44 transparent;
}

#index-heading {
  font-weight:620;
  font-size:19px;
  margin:0 0 15px;
  letter-spacing:-.5px;
}

#index-list {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(210px,1fr));
  gap:8px;
}

.index-card {
  display:flex;
  align-items:center;
  gap:11px;
  background:#202523;
  border:1px solid #343b34;
  border-radius:8px;
  padding:9px 10px;
  text-align:left;
  min-height:64px;
}

.index-card:hover {
  border-color:var(--family);
}

.index-card img {
  width:52px;
  height:43px;
  object-fit:contain;
}

.index-card b {
  display:block;
  font-size:14px;
  font-weight:580;
}

.index-card small {
  display:block;
  color:#abb6a7;
  font:11px var(--mono);
  margin-top:4px;
}

.index-card span {
  min-width:0;
}

.index-card .family-dot {
  width:6px;
  height:6px;
  margin-right:5px;
}

dialog {
  max-width:min(455px,92vw);
  border:1px solid #465040;
  border-radius:15px;
  background:#222621;
  color:#edf1e8;
  padding:25px;
  box-shadow:0 20px 60px #0008;
}

dialog::backdrop {
  background:#080a09b8;
  backdrop-filter:blur(4px);
}

.dialog-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:16px;
}

dialog h2 {
  font-size:27px;
  letter-spacing:-1px;
}

dialog h3 {
  font-size:17px;
  margin:20px 0 6px;
}

dialog p {
  margin:9px 0;
  color:#c5cdc1;
  font-size:15px;
  line-height:1.5;
}

dialog kbd {
  vertical-align:middle;
}

@media(min-height:880px) {
  .family-row {
    height:37px;
    min-height:37px;
  }
  .atlas-shell {
    min-height:630px;
  }
  .sidebar {
    padding-top:25px;
  }
  .side-heading {
    margin-bottom:20px;
  }
}

@media(max-width:1050px) {
  .atlas-shell {
    grid-template-columns:182px minmax(0,1fr);
  }
  .sidebar {
    padding-left:8px;
    padding-right:8px;
  }
  .masthead {
    gap:30px;
  }
  .page-intro p {
    max-width:490px;
  }
  .search-box {
    width:235px;
  }
  .page-intro {
    padding:26px 0 22px;
  }
  .family-row {
    gap:8px;
  }
}

@media(max-width:760px) {
  main {
    padding:0 12px 12px;
  }
  .masthead {
    height:59px;
    gap:10px;
    padding:0 15px;
  }
  .brand {
    font-size:21px;
  }
  .brand-symbol {
    width:30px;
    height:30px;
    margin-right:7px;
  }
  .masthead nav {
    margin-left:auto;
    gap:1px;
  }
  .tab {
    padding:7px 9px;
    font-size:12px;
  }
  .tab i {
    display:none;
  }
  .quiet {
    margin-left:3px;
  }
  .quiet span {
    display:none;
  }
  .page-intro {
    align-items:flex-start;
    flex-direction:column;
    gap:15px;
    padding:22px 3px 17px;
  }
  .page-intro h1 {
    font-size:34px;
  }
  .page-intro p {
    font-size:14px;
    margin-top:6px;
  }
  .search-box {
    width:100%;
    height:38px;
  }
  .atlas-shell {
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:38px minmax(0,1fr) 33px;
    height:calc(100svh - 235px);
    min-height:425px;
    border-radius:10px;
    position:relative;
  }
  .mobile-families {
    display:flex;
    align-items:center;
    gap:8px;
    padding:5px 12px;
    font-size:13px;
    background:#1e221f;
    border-bottom:1px solid #343b33;
  }
  .mobile-families i:last-child {
    margin-left:auto;
  }
  .mobile-families svg {
    width:15px;
    height:15px;
  }
  .sidebar {
    display:none;
    position:absolute;
    top:38px;
    left:0;
    width:195px;
    max-height:calc(100% - 38px);
    border:1px solid #3e453a;
    border-radius:0 0 8px 0;
    box-shadow:0 9px 22px #0005;
    padding:12px 8px 10px;
  }
  .atlas-shell.show-families .sidebar {
    display:flex;
  }
  .side-heading {
    display:none;
  }
  .shuffle-wrap {
    padding-top:7px;
    margin-top:7px;
  }
  .family-row {
    height:28px;
    min-height:28px;
  }
  .statusbar {
    padding:0 10px;
    font-size:11px;
  }
  .statusbar .gestures {
    display:none;
  }
  .map-fullscreen {
    top:10px;
    right:10px;
  }
  .map-tools {
    right:9px;
    bottom:9px;
    gap:4px;
  }
  .minimap {
    width:78px;
    height:44px;
    bottom:9px;
    left:9px;
  }
  .zoom-tools #zoom-value {
    width:43px;
  }
  .square,.zoom-tools button {
    width:30px;
    height:30px;
  }
  .genre-detail {
    padding:13px;
  }
  .map-fullscreen,.minimap,.map-tools {
    transition:opacity .12s;
  }
  #map.has-detail .map-fullscreen,#map.has-detail .minimap {
    opacity:0;
    pointer-events:none;
  }
  #map.has-detail .map-tools {
    opacity:0;
    pointer-events:none;
  }
  #index {
    padding:13px;
  }
  .atlas-shell.enlarged,.atlas-shell:fullscreen {
    height:100dvh;
  }
}

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


main { padding:0; max-width:none; }
body { overflow:hidden; }
main .atlas-shell { height:100vh; height:100dvh; min-height:0; max-height:none; border:0; border-radius:0; grid-template-columns:minmax(0,1fr); grid-template-rows:auto minmax(0,1fr) 36px; }
.toolbar { grid-column:1/-1; display:flex; align-items:center; flex-wrap:wrap; gap:6px; padding:6px 12px; background:#191b1c; border-bottom:1px solid var(--border); }
.toolbar button,.toolbar select { background:#252a26; color:var(--paper); border:1px solid #40483f; border-radius:6px; padding:5px 9px; font:inherit; font-size:14px; min-height:32px; }
.toolbar button:disabled { opacity:.35; }
.toolbar #language { margin-left:auto; }
.toolbar #shuffle { display:inline-flex; align-items:center; gap:6px; }
.toolbar #about-open { line-height:1; }
.toolbar #about-open svg { width:16px; height:16px; }
.sidebar { overflow:auto; }
.node { transition:opacity .5s ease; }
#nodes.edge-hover .node:not(.edge-endpoint) { opacity:.22; transition-duration:1s; }
#map.switching-layout .node { opacity:1; transition:none; }
.connection.linked .wire,.connection:hover .wire { stroke-width:4; }
.connection.linked .arrow { stroke:currentColor; stroke-width:2; }
.track-copy { flex:1; }
.platform { padding:4px; color:var(--family); }
.platform svg { width:22px; height:22px; display:block; }
.platform[aria-expanded="true"] { outline:1px solid currentColor; border-radius:4px; }
@media(max-width:760px) {
  main .atlas-shell { grid-template-rows:auto minmax(0,1fr) 33px; }
  .sidebar { top:82px; max-height:calc(100% - 82px); }
  .toolbar { padding:5px; gap:3px; }
}
