/* Geist, self-hosted like the y2k faces. One variable file per subset, so every
   weight on the page costs a single request. */
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../assets/fonts/geist-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../assets/fonts/geist-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0e0e10;
  --line: #26262b;
  --fg: #e9e9ec;
  --dim: #85858f;
  --acid: #f42c7f;
  --ok: #3fcf74;
  --card: var(--bg); /* only the y2k skin makes these two differ */
  --skel-hi: #4a3244;
  --font: Geist, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

[data-theme="light"] {
  --bg: #fbfbf9;
  --skel-hi: #ecd4dc;
  --line: #e0e0da;
  --fg: #16161a;
  --dim: #6b6b73;
  --acid: #c4006e;
  --ok: #17914b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--fg);
  font: 14.5px/1.6 var(--font);
}

a {
  color: inherit;
}

.wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 22px 64px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
}

#header-status-dot {
  color: var(--dim);
}

.top-btns {
  display: flex;
  gap: 7px;
}

.lang-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  padding: 5px 9px;
  line-height: 1;
  cursor: pointer;
}

.lang-btn:hover {
  border-color: var(--dim);
  color: var(--fg);
}

.hero {
  padding: 44px 0 40px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 8vw, 54px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.015em;
}

.hero h1 .dot {
  color: var(--acid);
}

.hero .tag {
  margin-top: 2px;
  color: var(--dim);
}

/* the name belongs to the headline lockup, so it keeps the serif */
.hero .tag b {
  font-family: var(--serif);
  font-size: 1.15em;
  font-weight: 400;
  font-style: italic;
  color: var(--fg);
}

.hero-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  font-size: 14.5px;
}

.hero-socials a {
  color: var(--dim);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.hero-socials a:hover {
  color: var(--acid);
  text-decoration-color: var(--acid);
}

/* one column, sections separated by air rather than boxes */
.grid {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

a.card {
  color: inherit;
  text-decoration: none;
  display: block;
}

.card .lbl {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 11px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--dim);
}

.skel {
  background:
    linear-gradient(90deg, var(--line) 0%, var(--skel-hi) 50%, var(--line) 100%)
    0 0 / 200% 100%;
  animation: skel 1.5s ease-in-out calc(var(--i, 0) * .09s) infinite;
  border-radius: 3px;
}

@keyframes skel {
  from { background-position: 200% 0 }
  to   { background-position: -200% 0 }
}

.skel-line {
  display: inline-block;
  height: .72em;
  vertical-align: -.02em;
}

.skel-img {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 2px;
  flex: none;
}

.pl-tile.is-skel {
  cursor: default;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .skel { animation: none }
}

/* loading / empty / failed lines */
.ta-list > i,
.pl-grid > i {
  font-size: 14px;
  color: var(--dim);
}

.np {
  display: flex;
  gap: 12px;
  align-items: center;
}

.np .art {
  width: 56px;
  height: 56px;
  border-radius: 3px;
  flex: none;
  background: var(--line) center/cover no-repeat;
}

.np .track {
  font-weight: 700;
}

.np .artist {
  color: var(--dim);
  font-size: 14px;
}

#np-time {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  margin-left: auto;
  flex: none;
  padding-left: 8px;
}

.eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
  margin-top: 5px;
}

.eq i {
  width: 3px;
  background: var(--acid);
  animation: eq .9s ease-in-out infinite;
}

.eq i:nth-child(2) { animation-delay: .2s }
.eq i:nth-child(3) { animation-delay: .4s }
.eq i:nth-child(4) { animation-delay: .1s }
.eq i:nth-child(5) { animation-delay: .3s }

@keyframes eq {
  0%, 100% { height: 3px }
  50% { height: 11px }
}

.wall {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.wall .t {
  display: flex;
  align-items: center;
  gap: 9px;
}

.wall .t-art {
  width: 28px;
  height: 28px;
  border-radius: 2px;
  flex: none;
  background: var(--line) center/cover no-repeat;
}

.wall .t-info {
  min-width: 0;
  line-height: 1.35;
}

.wall .t-name,
.wall .t-artist {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wall .t-name {
  font-size: 14px;
}

.wall .t-artist {
  font-size: 12.5px;
  color: var(--dim);
}

.wall .t-time {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  margin-left: auto;
  flex: none;
  padding-left: 8px;
}

.ta-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ta-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
  text-decoration: none;
}

.ta-rank,
.ta-plays {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
  flex: none;
}

.ta-name {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ta-row:hover .ta-name {
  color: var(--acid);
}

.ta-dots {
  flex: 1;
  min-width: 12px;
  border-bottom: 1px dotted var(--line);
  transform: translateY(-4px);
}

.status {
  display: flex;
  align-items: center;
  gap: 9px;
}

.dot-online {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dim);
  flex: none;
}

.sub {
  margin-top: 6px;
  font-size: 14px;
  color: var(--dim);
}

.rpc {
  gap: 10px;
  align-items: flex-start;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.rpc-imgs {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
}

.rpc-large {
  width: 44px;
  height: 44px;
  border-radius: 3px;
  object-fit: cover;
  display: block;
}

.rpc-small {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--card);
  object-fit: cover;
}

.rpc-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 13px;
  line-height: 1.4;
}

.rpc-name,
.rpc-detail,
.rpc-state {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rpc-name {
  font-weight: 700;
}

.rpc-detail,
.rpc-state {
  color: var(--dim);
}

.pl-grid {
  display: flex;
  flex-direction: column;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.pl-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 4px 0;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  flex-shrink: 0;
}

.pl-tile img {
  width: 30px;
  height: 30px;
  border-radius: 2px;
  flex: none;
  object-fit: cover;
  background: var(--line);
}

.pl-tile-name {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.pl-tile:hover .pl-tile-name {
  color: var(--acid);
}

.pl-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, .7);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .15s ease;
}

.pl-overlay.visible {
  opacity: 1;
}

.pl-modal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  max-width: 660px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pl-modal-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.pl-cover {
  width: 70px;
  height: 70px;
  border-radius: 3px;
  object-fit: cover;
  flex: none;
  background: var(--line);
}

.pl-info {
  min-width: 0;
}

.pl-name {
  font-size: 17px;
  font-weight: 700;
}

.pl-desc {
  margin-top: 4px;
  font-size: 14px;
  color: var(--dim);
}

.pl-iframe {
  width: 100%;
  height: 352px;
  border: none;
  border-radius: 4px;
  display: block;
}

.pl-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pl-open-btn {
  background: var(--acid);
  color: var(--bg);
  border-radius: 3px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.pl-close-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--dim);
  font-size: 18px;
  line-height: 1;
  padding: 4px 10px;
  cursor: pointer;
}

.pl-close-btn:hover {
  color: var(--fg);
}

footer {
  margin-top: 44px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
}

.dark-egg {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s ease;
  background: rgba(0, 0, 0, .9);
  user-select: none;
  -webkit-user-select: none;
}

.dark-egg.visible {
  opacity: 1;
  pointer-events: all;
}

.dark-triquetra {
  width: 170px;
  height: 165px;
  color: var(--acid);
}

/* pathLength="1" lets one rule draw every shape proportionally, so each ribbon
   stays in step with its weave-gap */
.dark-triquetra circle,
.dark-triquetra path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.dark-egg.visible .dark-triquetra circle { animation: dark-draw 1.8s cubic-bezier(.4, 0, .2, 1) forwards }

.dark-egg.visible .dark-triquetra path:nth-of-type(1),
.dark-egg.visible .dark-triquetra path:nth-of-type(2) { animation: dark-draw 2s cubic-bezier(.4, 0, .2, 1) 1s forwards }

.dark-egg.visible .dark-triquetra path:nth-of-type(3),
.dark-egg.visible .dark-triquetra path:nth-of-type(4) { animation: dark-draw 1s cubic-bezier(.4, 0, .2, 1) 2.6s forwards }

@keyframes dark-draw { to { stroke-dashoffset: 0 } }

.dark-quote {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--acid);
  text-align: center;
  opacity: 0;
  transition: opacity .4s ease;
}

.dark-egg.visible .dark-quote {
  opacity: .8;
  transition: opacity .8s ease 3.6s;
}

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

  .dark-egg.visible .dark-triquetra circle,
  .dark-egg.visible .dark-triquetra path { stroke-dashoffset: 0 !important }

  .dark-egg.visible .dark-quote { opacity: .8 !important }
}
