@font-face {
  font-family: Outfit;
  src: url("/static/fonts/Outfit-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url("/static/fonts/Outfit-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Yellowtail;
  src: url("/static/fonts/Yellowtail-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #f4f7fb;
  --paper: #070d1a;
  --card: #121a2e;
  --line: #2a3b5a;
  --orange: #ff7a1a;
  --orange-deep: #ff9347;
  --muted: #93a3bf;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  min-height: 100vh;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 122, 26, 0.22) 0, transparent 26rem),
    var(--paper);
  color: var(--ink);
  font-family: Outfit, sans-serif;
  line-height: 1.6;
}
a { color: var(--orange-deep); text-underline-offset: 0.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.top {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 6vw;
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(7, 13, 26, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.back {
  width: 2.25rem; height: 2.25rem; padding: 0; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: var(--ink); background: transparent; border: 1px solid var(--line);
}
.back[hidden] { display: none; }
.back svg { width: 1.15rem; height: 1.15rem; display: block; }
.logo {
  color: #fff;
  text-decoration: none;
  font-family: Yellowtail, cursive;
  font-weight: 400;
  font-size: 2.15rem;
  line-height: 1;
  letter-spacing: 0.01em;
  padding: 0.28rem 0 0.08rem;
  flex: none;
}
.tag { margin: 0; color: var(--muted); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#account { display: flex; gap: 0.8rem; align-items: center; }
#account a, .text-button, .ghost, button { border-radius: 999px; }
#account a { text-decoration: none; color: var(--ink); }
.solid, .ghost, button, .text-button {
  border: 1px solid var(--line);
  background: transparent;
  padding: 0.35rem 0.9rem;
}
.solid {
  background: var(--orange);
  color: #1a0e06;
  border-color: var(--orange);
  text-decoration: none;
  display: inline-block;
  font-weight: 700;
}
.solid.big { padding: 0.7rem 1.2rem; white-space: nowrap; }
.ghost { background: transparent; color: var(--orange-deep); border-color: var(--orange); }
.text-button { background: none; border: 0; padding: 0; color: var(--ink); }
.hero, .panel, .playlist-head { margin: 1.2rem 6vw; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.hero {
  display: grid;
  justify-items: start;
  gap: 1rem;
  padding: 1.2rem 0 0.4rem;
}
.hero .home-search { justify-self: stretch; width: 100%; }
h1 { font-size: clamp(1.8rem, 4vw, 3.1rem); line-height: 1.2; margin: 0.2rem 0; letter-spacing: -0.03em; }
h2 { margin: 0 0 0.6rem; }
.eyebrow { margin: 0; color: var(--orange); font-weight: 700; }
.lede { max-width: 42rem; color: var(--muted); }
.home-search { position: relative; margin: 0; }
.home-field {
  display: flex; align-items: center; gap: 0.7rem;
  background: #121a2e;
  border: 2px solid var(--orange);
  border-radius: 999px;
  padding: 0.15rem 1.15rem;
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.14);
}
.search-icon { width: 1.35rem; height: 1.35rem; flex: none; color: var(--orange); }
.home-query {
  flex: 1; min-width: 0; width: auto;
  border: 0; background: transparent; border-radius: 0;
  padding: 0.85rem 0; font-size: 1.08rem;
}
.home-query:focus { outline: none; }
.home-query::-webkit-search-cancel-button { -webkit-appearance: none; }
.home-results {
  position: absolute; z-index: 8; top: calc(100% + 0.3rem); left: 0; right: 0;
  background: #121a2e; border: 1px solid var(--line); border-radius: 0.8rem;
  max-height: 20rem; overflow: auto;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
}
.home-results[hidden] { display: none; }
.home-kind { margin: 0.55rem 0.8rem 0.15rem; color: var(--orange); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.home-hit {
  display: grid; gap: 0.1rem; padding: 0.55rem 0.8rem; text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--line);
}
button.home-hit {
  width: 100%; text-align: left; border: 0; border-radius: 0; background: transparent;
  border-bottom: 1px solid var(--line); color: inherit;
  grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.7rem;
}
button.home-hit > span:first-child { display: grid; min-width: 0; }
button.home-hit strong, button.home-hit em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hit-play {
  width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--orange); color: #1a0e06;
  display: grid; place-items: center;
}
.hit-play svg { width: 0.8rem; height: 0.8rem; display: block; transform: translateX(1px); }
.home-hit em { color: var(--muted); font-style: normal; font-size: 0.85rem; }
.section-head { margin: 0 6vw 0.6rem; }
.cards, .plain, .tracks, .comments { list-style: none; padding: 0; margin: 0; }
.cards { margin: 0 6vw 7rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.8rem; }
.card {
  display: block;
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 1rem;
  color: inherit;
  min-height: 8rem;
}
.card-open {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
}
.card-user { display: inline-block; margin-top: 0.45rem; font-weight: 700; text-decoration: none; }
.card-delete { position: absolute; top: 0.55rem; right: 0.55rem; }
.card-delete .icon-delete {
  width: 2.3rem; height: 2.3rem; padding: 0; border-radius: 50%;
  display: grid; place-items: center; color: var(--orange); background: transparent; border: 1px solid #3d5278;
}
.catalog-search { display: grid; gap: 0.35rem; }
.catalog-label { font-weight: 700; }
.catalog-field { position: relative; }
.catalog-results {
  position: absolute; z-index: 8; top: calc(100% + 0.3rem); left: 0; right: 0;
  list-style: none; margin: 0; padding: 0.2rem 0.7rem;
  display: grid; gap: 0;
  background: #121a2e; border: 1px solid var(--line); border-radius: 0.8rem;
  max-height: 16rem; overflow: auto;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
}
.catalog-results[hidden] { display: none; }
.catalog-results li {
  display: flex; justify-content: space-between; gap: 0.6rem; align-items: center;
  padding: 0.55rem 0; border-bottom: 1px solid var(--line);
}
.drop-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.7rem; }
.drop-row.single { grid-template-columns: 1fr; }
.upload-wait {
  display: grid; justify-items: center; gap: 0.45rem; text-align: center;
  padding: 0.9rem 0.4rem 0.2rem;
}
.upload-wait[hidden] { display: none; }
.upload-wait p { margin: 0; }
.upload-wait .meter { width: 100%; margin: 0.2rem 0 0; }
.upload-spin {
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: 3px solid #243049; border-top-color: var(--orange);
  animation: upload-spin 0.8s linear infinite;
}
@keyframes upload-spin { to { transform: rotate(360deg); } }
.upload-wait .meter span.is-wait {
  width: 35%;
  animation: upload-slide 1.1s ease-in-out infinite;
}
@keyframes upload-slide {
  0% { margin-left: 0; }
  50% { margin-left: 65%; }
  100% { margin-left: 0; }
}
#upload-form.is-busy .drop,
#upload-form.is-busy button[type="submit"] { opacity: 0.45; pointer-events: none; }
.drop {
  position: relative; min-width: 0; max-width: 100%; min-height: 8.5rem; margin: 0; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem;
  text-align: center; padding: 0.8rem;
  border: 1.5px dashed #3d5278; border-radius: 1rem; background: #0b1222; cursor: pointer;
}
.drop input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: pointer;
}
.drop strong, .drop span, .drop-name { max-width: 100%; overflow-wrap: anywhere; }
.drop strong { font-size: 1.05rem; }
.drop span { color: var(--muted); font-size: 0.9rem; }
.drop-name {
  color: var(--orange); font-style: normal; font-size: 0.85rem; min-height: 1.1rem;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.drop.over { border-color: var(--orange); background: rgba(255, 122, 26, 0.14); }
.drop.has-file { border-style: solid; border-color: var(--orange); }
.catalog-results strong, .catalog-results em { display: block; }
.catalog-results em { color: var(--muted); font-style: normal; font-size: 0.85rem; }
.profile { margin: 1.4rem 6vw 2rem; }
.profile h1 { margin-bottom: 1rem; }
.profile .cards { margin-inline: 0; }
.card strong, .card em { display: block; }
.card em { color: var(--muted); font-style: normal; }
.stats { grid-column: 1 / -1; color: var(--orange); font-weight: 700; }
.mark {
  width: 3rem; height: 3rem; border-radius: 1rem;
  display: grid; place-items: center;
  background: var(--orange); color: #1a0e06; font-weight: 700; font-size: 1.3rem;
}
.mark.big { width: 6rem; height: 6rem; font-size: 2.4rem; border-radius: 1.6rem; }
.panel, .playlist-head {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 1.1rem 1.2rem;
}
.playlist-head { display: flex; gap: 1rem; align-items: center; }
.panel.narrow { max-width: 32rem; margin-inline: auto; }
.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.7rem;
  text-decoration: none; color: var(--ink); font-weight: 700;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.7rem 1rem; background: #10192c;
}
.google-btn:hover { border-color: var(--orange); }
.google-g { width: 1.15rem; height: 1.15rem; flex: none; }
.or-line {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.7rem; align-items: center;
  color: var(--muted); margin: 0;
}
.or-line::before, .or-line::after { content: ""; height: 1px; background: var(--line); }
.username-status { min-height: 1.2rem; margin: -0.2rem 0 0; font-size: 0.92rem; }
.username-status.is-taken, .username-status.is-invalid { color: #ff8b7a; }
.redirect-uri { overflow-wrap: anywhere; }
.redirect-uri code { color: var(--orange); }
.username-status.is-free { color: #7dcea0; }
form { display: grid; gap: 0.8rem; }
label { display: grid; gap: 0.3rem; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #0b1222;
  color: var(--ink);
  border-radius: 0.8rem;
  padding: 0.65rem 0.8rem;
}
fieldset { border: 1px solid var(--line); border-radius: 0.8rem; }
.choice { display: flex; align-items: center; gap: 0.4rem; }
.choice input { width: auto; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin: 0 6vw; }
.split .panel { margin: 0; }
.meter { height: 0.7rem; background: #243049; border-radius: 99px; overflow: hidden; margin-bottom: 1rem; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, #c45a0a, var(--orange)); }
.plain li, .tracks li, .comments li {
  display: flex; gap: 0.7rem; align-items: center; justify-content: space-between;
  padding: 0.7rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.tracks li { justify-content: flex-start; }
.tracks li > a, .plain li > a, .track-copy, .track-copy a {
  min-width: 0; max-width: 100%; overflow-wrap: anywhere;
}
.tracks li > a { flex: 1; }
.library-list { max-height: 36rem; overflow: auto; }
.comments li { display: block; }
.comments p { margin: 0.2rem 0; }
.empty, .aside, .meta-line { color: var(--muted); }
.flash {
  margin: 1rem 6vw 0;
  background: #1d2436;
  border: 1px solid var(--orange);
  color: var(--ink);
  border-radius: 0.8rem;
  padding: 0.7rem 1rem;
}
.row, .inline { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.stage {
  margin: 1.2rem 6vw 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.stage-bar { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.stage-title { min-width: 0; }
.stage h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0; }
.title-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.75rem; }
.title-stats { font-size: 0.95rem; font-weight: 400; color: var(--muted); }
.track-cover {
  width: 2.7rem; height: 2.7rem; border-radius: 0.45rem; object-fit: cover; flex: none; background: #1a2744;
}
.stage-corner { display: grid; justify-items: end; gap: 0.35rem; }
.corner-react { display: flex; gap: 0.2rem; align-items: center; justify-content: flex-end; }
.corner-react .share-icon {
  width: 2rem; height: 2rem; padding: 0; border-radius: 50%;
  display: inline-grid; place-items: center; color: #fff;
  background: rgba(0,0,0,.55); border: 0;
}
.corner-react button, .corner-react > span {
  display: inline-flex; align-items: center; gap: 0.15rem;
  min-width: 0; padding: 0.05rem 0.28rem;
  border-radius: 999px; border: 1px solid transparent;
  background: transparent; font-size: 0.85rem; line-height: 1.2;
}
.corner-react button.picked { border-color: var(--orange); background: rgba(255, 122, 26, 0.16); }
.corner-react small { color: var(--muted); font-size: 0.65rem; }
.corner-react a { font-size: 0.75rem; }
.big-list {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.15rem 1rem;
  margin: 0;
}
.big-list li { padding: 0.7rem 0; font-size: 1.05rem; }
.big-list .track-row { flex-wrap: nowrap; gap: 0.65rem; min-width: 0; }
.big-list .play-one {
  width: 2.35rem; height: 2.35rem; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background: var(--orange); color: #1a0e06;
}
.big-list .play-one svg { width: 1rem; height: 1rem; display: block; transform: translateX(1px); }
.track-copy { display: grid; min-width: 0; flex: 1; }
.big-list .track-copy a, .big-list .track-copy em {
  display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal;
}
.track-copy em { color: var(--muted); font-style: normal; font-size: 0.85rem; }
.track-time { flex: none; color: var(--muted); font-size: 0.85rem; }
.big-list .track-remove,
.big-list .track-delete { display: flex; flex: none; }
.big-list .track-remove .icon-delete,
.big-list .track-delete .icon-delete {
  width: 2.3rem; height: 2.3rem; padding: 0; border-radius: 50%;
  display: grid; place-items: center; color: var(--orange); background: transparent; border: 1px solid #3d5278;
}
.track-tools { display: flex; gap: 0.35rem; align-items: center; margin-left: auto; }
.track-tools form { display: flex; }
.track-tools button, .queue-tools button {
  color: var(--orange); background: transparent; border: 1px solid #3d5278;
  border-radius: 999px; padding: 0.25rem 0.7rem;
}
.track-editor { flex-basis: 100%; }
.track-editor[hidden] { display: none; }
.queue-tools {
  display: flex; justify-content: flex-end; gap: 0.45rem;
  padding: 0 0.2rem 0.75rem; border-bottom: 1px solid #2a3b5a;
}
.now-list .track-editor { padding: 0.4rem 0.2rem 0.9rem; }
.now-list .track-editor input { background: #0b1222; color: #fff; }
.mine-uploads {
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 1rem;
  padding: 1rem 1.1rem 0.6rem;
}
.mine-uploads h2 { color: var(--ink); }
.upload-filter { margin-bottom: 0.4rem; }
.upload-picks { list-style: none; margin: 0; padding: 0; }
.pick-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem; align-items: center;
  padding: 0.55rem 0; border-bottom: 1px solid var(--line);
}
.pick-row img { width: 3rem; height: 3rem; border-radius: 0.5rem; object-fit: cover; background: #1a2744; }
.pick-copy { display: grid; min-width: 0; }
.pick-copy strong, .pick-copy em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-copy em { color: var(--muted); font-style: normal; font-size: 0.85rem; }
.pick-add {
  color: #1a0e06; background: var(--orange); border-color: var(--orange);
  border-radius: 999px; padding: 0.3rem 0.8rem; font-weight: 700;
}
.pick-add:disabled { background: transparent; color: var(--muted); border-color: #3d5278; }
.upload-more {
  width: 100%; margin: 0.7rem 0 0.3rem; color: var(--orange); background: transparent; border-color: #3d5278;
}
.stage-foot { display: flex; gap: 1rem; flex-wrap: wrap; align-items: end; }
.stage-foot form { grid-template-columns: auto auto; align-items: end; }
.stage-foot form.playlist-delete, .plain .playlist-delete { display: flex; align-items: center; }
.playlist-delete button, #now-playlist-delete {
  color: var(--orange); background: transparent; border: 1px solid #3d5278;
  border-radius: 999px; padding: 0.25rem 0.7rem;
}
#now-playlist-delete[hidden] { display: none; }
.stage-foot select { min-width: 10rem; }
.player {
  position: fixed; inset: auto 0 0 0; z-index: 6;
  display: grid; gap: 0.4rem;
  padding: 0 4vw calc(0.5rem + env(safe-area-inset-bottom));
  background: #050914; color: var(--ink);
}
.player-progress { position: relative; height: 4px; margin: 0 -4vw; background: #243049; }
.player-progress span { display: block; height: 100%; width: 0; background: var(--orange); }
.player-progress input {
  position: absolute; left: 0; right: 0; top: -8px; width: 100%; height: 20px; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: transparent; opacity: 0; cursor: pointer;
}
.player-row { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.player-controls { margin-left: auto; display: flex; align-items: center; gap: 0.45rem; flex: none; }
.player[hidden] { display: none; }
.mini {
  display: flex; align-items: center; gap: 0.6rem;
  flex: 1; min-width: 0; color: inherit; text-align: left;
}
.mini-cover-link { display: block; flex: none; line-height: 0; border-radius: 0.55rem; }
#mini-cover { width: 46px; height: 46px; object-fit: cover; border-radius: 0.55rem; background: #1a2744; }
#open-now {
  display: grid; flex: 1; min-width: 0; padding: 0; border: 0; border-radius: 0;
  background: none; color: inherit; text-align: left;
}
.mini-copy { display: grid; min-width: 0; }
.mini-copy strong, .mini-copy span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-copy span { color: var(--muted); font-size: 0.85rem; }
.mini-copy span:empty { display: none; }
.player-controls button {
  display: grid; place-items: center; padding: 0; line-height: 0; flex: none;
  -webkit-appearance: none; appearance: none;
}
.play {
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--orange); color: #1a0e06; border: 0;
}
.play svg { width: 1.2rem; height: 1.2rem; display: block; }
.play .icon-play { transform: translateX(1px); }
.play .icon-pause { display: none; }
.play.is-playing .icon-play { display: none; }
.play.is-playing .icon-pause { display: block; }
#player-prev, #player-next {
  width: 2.45rem; height: 2.45rem; border-radius: 50%;
  border: 1px solid #3d4e6e; background: #121a2e; color: var(--ink);
}
#player-prev svg, #player-next svg { width: 1.15rem; height: 1.15rem; display: block; }
.player button, .player .volume { color: var(--ink); border-color: #3d4e6e; }
.player .play { color: #1a0e06; border-color: var(--orange); background: var(--orange); }
.volume { display: flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; flex: none; }
.volume input { accent-color: var(--orange); width: 4.5rem; }
.now-playing {
  position: fixed; inset: 0; z-index: 30;
  display: flex; flex-direction: column; color: #fff; background: #000;
}
.now-playing[hidden] { display: none; }
.now-bg { position: absolute; inset: 0; background: #1a120c center/cover no-repeat; }
.now-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,.08) 30%, rgba(0,0,0,.25) 62%, rgba(0,0,0,.82));
}
.now-top, .now-stage, .comment-bar, .now-actions, .now-note { position: relative; z-index: 1; }
.now-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1rem 1rem 0; }
.now-top h2, .now-top p, #now-behind, #now-artist {
  display: table; background: #000; color: #fff; margin: 0 0 0.35rem; padding: 0.12rem 0.45rem; text-decoration: none;
}
.now-top h2 { font-size: 1.15rem; max-width: 18rem; }
.now-tools { display: flex; gap: 0.45rem; flex: none; }
#now-list-open, #now-home, #now-list-close {
  width: 2.7rem; height: 2.7rem; border-radius: 50%; border: 0; background: #111; color: #fff;
  display: grid; place-items: center; padding: 0; font-size: 1.3rem; text-decoration: none;
}
.now-transport { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
#now-prev, #now-next, #now-toggle { pointer-events: auto; position: absolute; top: 50%; border: 0; color: #fff; }
#now-prev, #now-next {
  width: 3.4rem; height: 3.4rem; border-radius: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.45); display: grid; place-items: center; padding: 0;
}
#now-prev { left: 0.7rem; }
#now-next { right: 0.7rem; }
#now-toggle {
  left: 50%; width: 4.4rem; height: 4.4rem; padding: 0; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--orange); color: #1a0e06;
  display: grid; place-items: center; line-height: 0;
  -webkit-appearance: none; appearance: none;
}
#now-toggle svg { width: 1.7rem; height: 1.7rem; display: block; }
#now-toggle .icon-pause { display: none; }
#now-toggle.is-playing .icon-play { display: none; }
#now-toggle.is-playing .icon-pause { display: block; }
.now-stage { flex: 1; display: flex; align-items: flex-end; padding: 1rem; min-height: 0; }
.wave-wrap { width: 100%; }
#wave { width: 100%; height: 96px; display: block; cursor: pointer; touch-action: none; }
.wave-times { display: flex; gap: 0.35rem; margin-top: 0.25rem; }
.wave-times span { background: #000; padding: 0.02rem 0.35rem; font-size: 0.8rem; }
.floaters { position: absolute; left: 0; right: 0; bottom: 7rem; height: 9rem; pointer-events: none; }
.floaters span { position: absolute; bottom: 0; font-size: 1.45rem; animation: float-up 3.2s ease-in infinite; }
@keyframes float-up {
  from { transform: translateY(8px); opacity: 0; }
  25% { opacity: 1; }
  to { transform: translateY(-86px); opacity: 0; }
}
.comment-bar {
  display: flex; align-items: center; gap: 0.35rem;
  margin: 0 0.8rem 0.35rem; padding: 0.4rem 0.7rem;
  border-radius: 999px; background: rgba(18,18,18,.78); border: 1px solid rgba(255,255,255,.14);
}
.comment-bar input { background: transparent; border: 0; color: #fff; padding: 0.35rem 0.2rem; }
.comment-bar input::placeholder { color: rgba(255,255,255,.7); }
.comment-bar button { border: 0; background: transparent; font-size: 1.2rem; padding: 0.1rem 0.2rem; }
.now-react.picked { outline: 2px solid var(--orange); border-radius: 999px; }
.now-note { margin: 0 1rem 0.25rem; min-height: 1.1rem; color: #fff; font-size: 0.8rem; }
.now-actions {
  display: flex; justify-content: space-around; align-items: center;
  background: #000; padding: 0.75rem 0.4rem calc(0.75rem + env(safe-area-inset-bottom));
}
.now-actions a, .now-actions button, .now-actions span { color: #fff; background: none; border: 0; text-decoration: none; font-size: 1rem; }
#now-share { display: grid; place-items: center; padding: 0.2rem; }
.now-list {
  position: absolute; inset: 0; z-index: 6;
  background: #070d1a; color: #fff;
  display: flex; flex-direction: column;
}
.now-list[hidden] { display: none; }
.now-list header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1rem 0.3rem; }
.now-list h3 { margin: 0; }
.now-list ol { list-style: none; margin: 0; padding: 0 0.8rem 1.4rem; overflow: auto; }
.queue-item {
  width: 100%; text-align: left; background: transparent; border: 0; border-radius: 0;
  border-bottom: 1px solid #2a3b5a; color: #fff;
  padding: 0.95rem 0.2rem; display: flex; justify-content: space-between; gap: 0.8rem;
}
.queue-item.current { color: var(--orange); }
#page { padding-bottom: 2rem; }
html.has-player #page { padding-bottom: 6.4rem; }
.fab {
  position: fixed; z-index: 9;
  right: 1.1rem; bottom: calc(1.15rem + env(safe-area-inset-bottom));
  width: 3.5rem; height: 3.5rem; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--orange); color: #1a0e06; text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}
.fab svg { display: block; transition: transform 0.18s ease; }
.fab.is-open svg { transform: rotate(45deg); }
html.has-player .fab { bottom: calc(5.7rem + env(safe-area-inset-bottom)); }
html.playing-open .fab, html.playing-open .sheet { display: none; }
.space {
  display: flex; align-items: center; gap: 1.15rem;
  margin: 1.2rem 6vw 0.8rem; padding: 1.15rem 1.2rem;
  background:
    radial-gradient(circle at 0 0, rgba(255, 122, 26, 0.2), transparent 9rem),
    var(--card);
  border: 1px solid var(--line); border-radius: 1.2rem;
}
.space-ring {
  width: 7.4rem; height: 7.4rem; border-radius: 50%; flex: none;
  display: grid; place-items: center; align-content: center;
  background: conic-gradient(from -90deg, var(--orange) var(--used), #243049 0);
  position: relative;
}
.space-ring::before {
  content: ""; position: absolute; inset: 0.62rem; border-radius: 50%; background: #10182b;
}
.space-ring strong, .space-ring span { position: relative; line-height: 1.1; }
.space-ring strong { font-size: 1.35rem; }
.space-ring span { color: var(--muted); font-size: 0.75rem; text-align: center; }
.space-copy { min-width: 0; flex: 1; }
.space-copy h1 { font-size: 1.45rem; margin: 0 0 0.2rem; }
.space-figures { margin: 0 0 0.7rem; color: var(--muted); }
.space-figures strong { color: var(--ink); }
.space-scale { display: flex; justify-content: space-between; margin: 0.35rem 0 0; color: var(--muted); font-size: 0.8rem; }
.playlist-board { margin: 0 6vw 6.5rem; }
.upload-board { margin-top: 1.2rem; }
.tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem;
  margin: 0 0 0.35rem; padding: 0.22rem;
  background: #0b1222; border-radius: 999px;
}
.playlist-board .tab {
  width: 100%; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted);
  font-weight: 700; padding: 0.55rem 0.35rem;
}
.playlist-board .tab.is-on { background: var(--orange); color: #1a0e06; }
.dash-panel[hidden] { display: none; }
.playlist-board .big-list { background: transparent; border: 0; padding: 0; border-radius: 0; }
.track-cover-link { display: flex; flex: none; line-height: 0; }
.plist { list-style: none; margin: 0; padding: 0; }
.plist li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 0.55rem; align-items: center;
  padding: 0.75rem 0; border-bottom: 1px solid var(--line);
}
.plist a {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-weight: 700; color: var(--ink); text-decoration: none;
}
.pill {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  border-radius: 999px; padding: 0.16rem 0.55rem; border: 1px solid var(--line); color: var(--muted);
}
.pill.public { color: #1a0e06; background: var(--orange); border-color: var(--orange); }
.count { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.playlist-delete .icon-delete {
  width: 2.3rem; height: 2.3rem; padding: 0; border-radius: 50%;
  display: grid; place-items: center; color: var(--orange); background: transparent; border: 1px solid #3d5278;
}
.space .meter { margin: 0; }
.playlist-delete { display: flex; }
.page-back { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.sheet { position: fixed; inset: 0; z-index: 8; }
.sheet[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; border: 0; padding: 0; border-radius: 0; background: rgba(5, 9, 20, 0.55); }
.add-menu {
  position: absolute; right: 1.1rem;
  bottom: calc(5.3rem + env(safe-area-inset-bottom));
  width: min(16.5rem, calc(100vw - 2.2rem));
  display: grid; padding: 0.35rem;
  background: #121a2e; border: 1px solid var(--line); border-radius: 1rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}
html.has-player .add-menu { bottom: calc(9.9rem + env(safe-area-inset-bottom)); }
.add-menu a {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.8rem 0.75rem; border-radius: 0.75rem;
  color: var(--ink); text-decoration: none; font-weight: 700;
}
.add-menu a svg { color: var(--orange); flex: none; }
.add-menu a:hover { background: #1c2742; }
@media (max-width: 800px) {
  .hero, .split, .playlist-head, .stage-bar { display: block; }
  .split { margin: 0 1rem; }
  .split .panel { margin: 0 0 0.8rem; }
  .tag { font-size: 0.78rem; }
  .volume { display: none; }
  #now-toggle { width: 3.6rem; height: 3.6rem; }
  #now-toggle svg { width: 1.35rem; height: 1.35rem; }
  #now-prev, #now-next { width: 2.7rem; height: 2.7rem; }
  #now-prev svg, #now-next svg { width: 1.15rem; height: 1.15rem; }
  #now-prev { left: 0.65rem; }
  #now-next { right: 0.65rem; }
  #now-prev, #now-next, #now-toggle { top: 44%; }
  .stage-corner { justify-items: start; margin-top: 0.6rem; }
  .top { padding-inline: 1rem; }
  .hero, .panel, .playlist-head, .section-head, .cards, .flash, .stage, .profile, .space, .playlist-board { margin-inline: 1rem; }
  .plist li { grid-template-columns: minmax(0, 1fr) auto; }
  .plist .pill, .plist .count { grid-column: 1; justify-self: start; }
  .plist form { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .solid.big { white-space: normal; }
}
