.sheet { padding: 8px 8px 10px; }
.sec-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 8px;
  font: 500 11px var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
}
.sec-head i { flex: 1; height: 1px; background: var(--line); }
.sec-n { color: var(--faint); }

.list { display: grid; list-style: none; }
.row {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  text-align: left;
  transition: background .25s;
}
.row + .row, li + li .row { box-shadow: 0 -1px 0 var(--line); }
.row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 0;
  border-radius: 2px;
  background: var(--a1);
  transform: translateY(-50%);
  transition: height .35s var(--ease);
}
a.row:hover, button.row:hover { background: rgba(255, 255, 255, .035); }
a.row:hover::before, button.row:hover::before, .is-current .row::before { height: 22px; }
.row-main { min-width: 0; display: grid; }
.row-main b, .row-main small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main b { font-weight: 500; color: #fff; }
.row-main small { font: 400 12px var(--mono); color: var(--dim); }
.row-meta { font: 400 12px var(--mono); color: var(--dim); white-space: nowrap; }
.row-meta b { color: var(--fg); font-weight: 500; }
.row-go { font: 400 14px var(--mono); color: var(--faint); transition: transform .35s var(--ease), color .25s; }
a.row:hover .row-go { color: #fff; transform: translateX(3px); }

.server-icon { width: 46px; height: 46px; display: grid; place-items: center; }
.server-icon img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 0 calc(var(--beat) * 14px) color-mix(in srgb, var(--a1) 70%, transparent)); }
.server-icon.letter { border: 1px solid var(--line-2); border-radius: 12px; font: 600 18px var(--sans); }
.dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; vertical-align: 1px; background: #80848e; }
.dot.on { background: #23a55a; }

.site { grid-template-columns: auto 1fr auto; }
.site .link-icon { width: 26px; height: 22px; }
.site .link-icon img { width: 26px; height: 22px; object-fit: contain; border-radius: 4px; opacity: 1; }
.site .link-icon.letter { width: 20px; height: 20px; border: 1px solid var(--line-2); border-radius: 5px; color: var(--fg); font-size: 11px; }
.links { grid-template-columns: 1fr 1fr; column-gap: 4px; }
.links .row { grid-template-columns: auto 1fr auto; padding: 11px 14px; }
.links .row + .row { box-shadow: none; }
.links .row:nth-child(n + 3) { box-shadow: 0 -1px 0 var(--line); }
.link-icon { width: 18px; height: 18px; display: grid; place-items: center; font: 600 11px var(--mono); color: var(--dim); }
.link-icon img { width: 18px; height: 18px; opacity: .85; }

.track { grid-template-columns: 22px 40px 1fr auto; }
.track .prog { position: absolute; left: 14px; right: 14px; bottom: 0; height: 1px; opacity: 0; transition: opacity .3s; }
.is-current .track .prog { opacity: 1; }
.track .prog i { display: block; height: 100%; width: 0; background: var(--a1); }
.is-current .track .row-main b { color: var(--a1); }
.track .idx { font: 400 12px var(--mono); color: var(--faint); }
.track .idx .eq { display: none; color: var(--a1); }
.is-current .track .idx span { display: none; }
.is-current .track .idx .eq { display: inline-flex; }
body:not(.is-playing) .track .eq i { animation-play-state: paused; }
.track img, .track .ph { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: #111; }
.empty { padding: 18px 14px; color: var(--dim); font-size: 14px; }
#spotifyNow:not(:empty) { padding: 0 6px 6px; }
#spotifyEmbed iframe { display: block; width: 100%; border: 0; border-radius: 10px; margin-top: 8px; }

.act {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  transition: border-color .25s;
}
a.act:hover { border-color: var(--line-2); }
.act-art { position: relative; width: 56px; height: 56px; flex: none; }
.act-art .big { width: 100%; height: 100%; border-radius: 8px; object-fit: cover; background: #111; display: grid; place-items: center; font: 600 18px var(--mono); color: var(--dim); }
.act-art .small { position: absolute; right: -5px; bottom: -5px; width: 22px; height: 22px; border-radius: 50%; border: 3px solid #000; background: #000; }
.act-info { flex: 1; min-width: 0; display: grid; }
.act-label { display: flex; align-items: center; gap: 7px; font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 2px; }
.act-spotify .act-label { color: #1ed760; }
.act-title, .act-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-title { font-weight: 500; color: #fff; }
.act-sub { color: var(--dim); font-size: 13px; }
.act-time { font: 400 11.5px var(--mono); color: var(--dim); margin-top: 2px; }
.bar { height: 2px; margin-top: 8px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: #1ed760; transition: width 1s linear; }
.times { display: flex; justify-content: space-between; margin-top: 4px; font: 400 10.5px var(--mono); color: var(--dim); }

.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.eq i { width: 2px; height: 100%; background: currentColor; animation: eq .8s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -.3s; }
.eq i:nth-child(3) { animation-delay: -.55s; }

.dock {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 20;
  width: min(580px, calc(100% - 24px));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 9px 10px 9px 9px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .78);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  isolation: isolate;
  transform: translate(-50%, 160%);
  transition: transform 1.1s .9s var(--ease);
}
body.is-in .dock.has-tracks { transform: translate(-50%, 0); }
.dock-viz { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .28; pointer-events: none; }
.dock-cover { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #111; }
.dock-mid { min-width: 0; display: grid; gap: 4px; }
.dock-meta { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.dock-meta strong { font-weight: 500; font-size: 13.5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-meta span { color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-seek { display: flex; align-items: center; gap: 9px; font: 400 10.5px var(--mono); color: var(--dim); }
.dock-ctrl { display: flex; align-items: center; gap: 2px; }
.ctrl { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #bdbdbd; transition: background .2s, color .2s, transform .2s; }
.ctrl:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.ctrl svg { width: 17px; height: 17px; fill: currentColor; }
.ctrl.play { width: 38px; height: 38px; margin: 0 2px; background: #fff; color: #000; }
.ctrl.play:hover { background: #fff; transform: scale(1.06); }
.ctrl.play .i-pause, body.is-playing .ctrl.play .i-play { display: none; }
body.is-playing .ctrl.play .i-pause { display: block; }
.vol { display: flex; align-items: center; gap: 4px; margin-left: 4px; }
.vol input { width: 72px; flex: none; }
.vol.is-muted .wave { opacity: .2; }

input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  min-width: 0;
  height: 2px;
  background: linear-gradient(90deg, #fff var(--p, 0%), rgba(255, 255, 255, .14) var(--p, 0%));
  outline: none;
  cursor: pointer;
}
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; border-radius: 50%; background: #fff; opacity: 0; transition: opacity .2s; }
input[type=range]:hover::-webkit-slider-thumb { opacity: 1; }
input[type=range]::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: #fff; }

.cursor { display: none; mix-blend-mode: difference; }
body.has-cursor .cursor { display: block; }
.cursor i { position: fixed; left: 0; top: 0; z-index: 100; border-radius: 50%; pointer-events: none; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.cursor-ring { width: 30px; height: 30px; margin: -15px 0 0 -15px; border: 1px solid #fff; opacity: .5; transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), opacity .3s; }
body.is-hovering .cursor-ring { width: 46px; height: 46px; margin: -23px 0 0 -23px; opacity: 1; }
body.is-pressing .cursor-ring { width: 22px; height: 22px; margin: -11px 0 0 -11px; }
body.cursor-out .cursor { opacity: 0; }

.spark { position: fixed; z-index: 99; pointer-events: none; font-size: 14px; line-height: 1; }

.toast {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 60;
  padding: 8px 14px;
  border-radius: 8px;
  background: #fff;
  color: #000;
  font: 500 13px var(--sans);
  transform: translate(-50%, -120%);
  transition: transform .5s var(--ease);
}
.toast.is-on { transform: translate(-50%, 18px); }

.sound-hint {
  position: fixed;
  left: 50%;
  bottom: calc(max(14px, env(safe-area-inset-bottom)) + 74px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px 8px 11px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font: 500 12px var(--mono);
  white-space: nowrap;
  translate: -50% 0;
  animation: rise .6s var(--ease) 1.4s both, bob 2.4s ease-in-out 2s infinite;
}
.sound-hint svg { width: 16px; height: 16px; fill: currentColor; }

.np {
  position: fixed;
  left: 28px;
  top: 26px;
  z-index: 15;
  display: grid;
  gap: 2px;
  max-width: min(420px, 40vw);
  padding: 14px 18px 15px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s;
}
.np.is-on { opacity: 1; animation: np-hide .5s 3.6s forwards; }
.np > * { opacity: 0; transform: translateY(14px); clip-path: inset(0 0 100% 0); }
.np.is-on > * { animation: np-in .9s var(--ease) forwards, np-out .6s var(--ease) 3.4s forwards; }
.np.is-on > :nth-child(2) { animation-delay: .08s, 3.45s; }
.np.is-on > :nth-child(3) { animation-delay: .16s, 3.5s; }
.np-k { font: 400 11px var(--mono); letter-spacing: .14em; color: var(--a1); }
.np b { font: 600 clamp(24px, 2.6vw, 38px)/1.05 var(--sans); letter-spacing: -.045em; color: #fff; }
.np span:last-child { font-size: 14px; color: #d0d0d0; }

body.party .card, body.party .sheet, body.party .dock { animation: hue 3s linear infinite; }

@keyframes bob { 50% { transform: translateY(-4px); } }
@keyframes np-in { to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
@keyframes np-hide { to { opacity: 0; } }
@keyframes np-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes eq { from { height: 20%; } to { height: 100%; } }

@media (max-width: 560px) {
  .banner { height: 120px; }
  .card-in { padding: 0 18px 18px; }
  .profile { margin-top: -42px; align-items: flex-end; }
  .avatar-wrap { width: 84px; height: 84px; }
  .badges img { width: 19px; height: 19px; }
  .name { font-size: 25px; }
  .np { display: none; }
  .links { grid-template-columns: 1fr; }
  .links .row:nth-child(n + 2) { box-shadow: 0 -1px 0 var(--line); }
  .row { gap: 12px; padding: 12px 10px; }
  .server { grid-template-columns: auto 1fr auto; row-gap: 2px; }
  .server .server-icon { grid-row: 1 / span 2; }
  .server .row-meta { grid-column: 2; grid-row: 2; }
  .server .row-go { grid-column: 3; grid-row: 1 / span 2; }
  .vol, #dur { display: none; }
  .dock { gap: 10px; }
  .dock-cover { width: 40px; height: 40px; }
  .ctrl { width: 32px; height: 32px; }
}
