/* Shesheshens: dark "stage lights" theme. */
:root {
  color-scheme: dark;
  --bg: #0c0614;
  --panel: rgba(28, 15, 45, .72);
  --panel-solid: #1a0e2b;
  --text: #f7f0ff;
  --muted: #a996c2;
  --border: rgba(190, 145, 255, .16);
  --pink: #ff3d8b;
  --orange: #ff9f43;
  --violet: #9b6bff;
  --grad: linear-gradient(100deg, var(--pink), var(--orange) 55%, var(--violet));
  --danger: #ff6b6b;
  --radius: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  scrollbar-color: rgba(190, 145, 255, .3) transparent;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; display: grid; grid-template-columns: 320px 1fr; height: 100vh; background: var(--bg); color: var(--text); }

/* Slowly drifting coloured spotlights behind everything. */
body::before {
  content: ""; position: fixed; inset: -25%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(35% 30% at 18% 12%, rgba(255, 61, 139, .3), transparent 70%),
    radial-gradient(32% 28% at 85% 18%, rgba(155, 107, 255, .34), transparent 70%),
    radial-gradient(40% 35% at 62% 92%, rgba(255, 159, 67, .2), transparent 70%);
  animation: lights 26s ease-in-out infinite alternate;
}
@keyframes lights {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(4%, -3%) rotate(4deg); }
  100% { transform: translate(-4%, 3%) rotate(-3deg); }
}

/* Animated gradient wordmark. */
.logo {
  margin: 0; font-weight: 900; text-transform: uppercase; letter-spacing: .08em;
  background: linear-gradient(90deg, var(--pink), var(--orange), var(--violet), var(--pink));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 8s linear infinite;
}
.logo a { color: transparent; text-decoration: none; }
@keyframes shimmer { to { background-position: 200% center; } }

#sidebar { display: flex; flex-direction: column; border-right: 1px solid var(--border); background: var(--panel); backdrop-filter: blur(14px); min-height: 0; }
#sidebar header { display: flex; align-items: center; justify-content: space-between; padding: 16px 14px 12px; gap: 8px; }
#sidebar h1 { font-size: 1.2rem; }
#search { margin: 0 14px 10px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 999px; background: rgba(0, 0, 0, .25); color: inherit; font: inherit; transition: border-color .2s, box-shadow .2s; }
#search:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 61, 139, .22); }
/* Folder chips ("crates") */
#folders { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.chip { --c: var(--muted); display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; font-size: .8rem; font-weight: 600; text-decoration: none; cursor: pointer; animation: pop .35s cubic-bezier(.3, 1.6, .5, 1) both; transition: border-color .2s, background .2s, box-shadow .2s, transform .15s; }
.chip:nth-child(2) { animation-delay: 30ms; } .chip:nth-child(3) { animation-delay: 60ms; } .chip:nth-child(4) { animation-delay: 90ms; } .chip:nth-child(n+5) { animation-delay: 120ms; }
.chip:hover { border-color: var(--c); transform: translateY(-1px); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.chip small { color: var(--muted); font-weight: 500; }
.chip.active { border-color: var(--c); background: color-mix(in srgb, var(--c) 22%, transparent); box-shadow: 0 0 16px color-mix(in srgb, var(--c) 40%, transparent); }
.chip.active:not([style]) { --c: var(--pink); }
.chip.unfiled { --c: #8a7aa3; }
.chip.add { --c: var(--orange); border-style: dashed; color: var(--muted); }
.chip-input { width: 140px; padding: 4px 10px; border-radius: 999px; font-size: .8rem; }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }

#song-list { list-style: none; margin: 0; padding: 4px 0; overflow-y: auto; flex: 1; }
#song-list a { display: block; padding: 9px 14px; color: inherit; text-decoration: none; transition: background .2s, transform .2s, box-shadow .2s; }
#song-list a:hover { background: rgba(255, 255, 255, .05); transform: translateX(3px); }
#song-list a.active { background: linear-gradient(90deg, rgba(255, 61, 139, .2), transparent); box-shadow: inset 3px 0 0 var(--pink); }
#song-list a[style] { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--c) 55%, transparent); }
#song-list a[style].active { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 25%, transparent), transparent); box-shadow: inset 3px 0 0 var(--c); }
#song-list small { display: block; color: var(--muted); margin-top: 2px; }
#song-list .none { padding: 14px; color: var(--muted); }

main { overflow-y: auto; padding: 28px 36px; min-width: 0; }
main > * { animation: rise .35s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.empty, .muted { color: var(--muted); }

.btn { display: inline-block; padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255, 255, 255, .04); color: inherit; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .15s, box-shadow .2s, border-color .2s, filter .2s; }
.btn:hover { border-color: rgba(255, 255, 255, .35); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 4px 18px rgba(255, 61, 139, .35); }
.btn.primary:hover { filter: brightness(1.1); box-shadow: 0 6px 24px rgba(255, 61, 139, .5); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.actions { display: flex; gap: 8px; align-items: flex-start; }

/* Song list table */
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.song-table h2 { margin: 0; font-size: 1.9rem; display: flex; align-items: center; gap: 10px; }
.song-table[style] .list-title { color: var(--c); text-shadow: 0 0 24px color-mix(in srgb, var(--c) 50%, transparent); }
.folder-dot { width: 14px; height: 14px; border-radius: 4px; background: var(--c); box-shadow: 0 0 14px var(--c); transform: rotate(45deg); animation: spin-in .5s ease-out both; }
@keyframes spin-in { from { transform: rotate(-135deg) scale(0); } }
.song-table[style] table { border-color: color-mix(in srgb, var(--c) 35%, transparent); }
.pill { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: .7rem; font-weight: 700; color: var(--c) !important; background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); vertical-align: 2px; }
.folder-badge { display: inline-block; margin-top: 10px; padding: 3px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; text-decoration: none; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); transition: box-shadow .2s; }
.folder-badge::before { content: "▣ "; }
.folder-badge:hover { box-shadow: 0 0 14px color-mix(in srgb, var(--c) 45%, transparent); }
.song-table h2 small { color: var(--muted); font-weight: 400; font-size: 1rem; }
table { width: 100%; border-collapse: collapse; background: var(--panel); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
tbody tr { animation: rise .4s ease-out both; animation-delay: min(calc(var(--i, 0) * 40ms), 600ms); transition: background .2s; }
tbody tr:hover { background: rgba(255, 61, 139, .07); }
tbody tr.playing { background: linear-gradient(90deg, rgba(255, 61, 139, .2), rgba(155, 107, 255, .08)); }
tbody tr:last-child td { border-bottom: 0; }
td a { color: inherit; font-weight: 700; text-decoration: none; transition: color .2s; }
td a:hover { color: var(--orange); }
td small { display: block; color: var(--muted); }
td.player { width: 45%; min-width: 240px; }
td.player audio { width: 100%; height: 36px; display: block; }

/* Equalizer shown next to whatever is playing */
.eq { display: none; gap: 2px; height: 13px; width: 15px; align-items: flex-end; margin-left: 8px; vertical-align: -1px; }
.playing .eq { display: inline-flex; }
.eq i { flex: 1; border-radius: 1px; background: var(--pink); animation: eq .8s ease-in-out infinite alternate; }
.eq i:nth-child(2) { background: var(--orange); animation-delay: -.3s; animation-duration: .65s; }
.eq i:nth-child(3) { background: var(--violet); animation-delay: -.55s; animation-duration: .9s; }
@keyframes eq { from { height: 20%; } to { height: 100%; } }

/* Song page */
.song-head { display: flex; justify-content: space-between; gap: 16px; }
.song-head h2 { margin: 0; font-size: 2.4rem; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.artist { margin: 6px 0 0; color: var(--muted); font-size: 1.1rem; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; padding: 0; }
.meta div { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 7px 14px; animation: rise .4s ease-out both; transition: transform .2s, border-color .2s; }
.meta div:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .3); }
.meta div:nth-child(2) { animation-delay: 40ms; } .meta div:nth-child(3) { animation-delay: 80ms; }
.meta div:nth-child(4) { animation-delay: 120ms; } .meta div:nth-child(5) { animation-delay: 160ms; }
.meta div:nth-child(n+6) { animation-delay: 200ms; }
.meta dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.meta dd { margin: 0; font-weight: 700; color: var(--pink); }
.meta div:nth-child(3n+2) dd { color: var(--orange); }
.meta div:nth-child(3n) dd { color: #c3a3ff; }
.audio { padding: 12px 14px; max-width: 900px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); transition: box-shadow .3s, border-color .3s; }
.audio.playing { border-color: rgba(255, 61, 139, .5); box-shadow: 0 0 30px rgba(255, 61, 139, .25); }
.audio audio { width: 100%; display: block; }
.audio h3 { margin: 0 0 8px; }
.video video { width: 100%; max-width: 900px; max-height: 60vh; background: #000; border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--orange); margin: 24px 0 8px; }
pre { white-space: pre-wrap; margin: 0; font: inherit; }
.sheets { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 32px; }
.sheet { position: relative; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 1rem; line-height: 1.55; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; overflow: hidden; }
.sheet.lyrics { font-family: inherit; font-size: 1.05rem; line-height: 1.7; }
.sheet::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--grad); }

/* Forms */
.song-form { max-width: 900px; display: flex; flex-direction: column; gap: 14px; }
.song-form h2 { margin: 0; font-size: 1.8rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.grid .wide { grid-column: span 2; }
label { display: flex; flex-direction: column; gap: 5px; font-size: .85rem; color: var(--muted); }
input, select, textarea { padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; background: rgba(0, 0, 0, .28); color: var(--text); font: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 61, 139, .22); }
select option { background: var(--panel-solid); }
textarea { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; resize: vertical; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; gap: 10px; background: rgba(255, 255, 255, .02); }
legend { color: var(--orange); font-size: .85rem; font-weight: 600; padding: 0 6px; }
input[type=file]::file-selector-button { margin-right: 10px; padding: 5px 12px; border: 0; border-radius: 999px; background: var(--grad); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
progress { width: 100%; height: 8px; accent-color: var(--pink); }
.btn.small { padding: 4px 12px; font-size: .8rem; }
.bpm-tools { display: flex; gap: 4px; }
.bpm-tools button { flex: 1; padding: 3px 0; border: 1px solid var(--border); border-radius: 999px; background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; font-size: .78rem; cursor: pointer; transition: border-color .2s, background .2s; }
.bpm-tools button:hover { border-color: var(--pink); background: rgba(255, 61, 139, .12); }
.analysis { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.analysis-status { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .85rem; color: var(--text); }
.analysis-status.busy { color: var(--orange); animation: pulse .8s ease-in-out infinite alternate; }
.analysis-status.error { color: var(--danger); }
@keyframes pulse { to { opacity: .4; } }
input.flash { animation: flash 1.4s ease-out; }
@keyframes flash { from { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 159, 67, .45); } }
.error { color: var(--danger); }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
a.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 600; color: #c3a3ff; background: rgba(155, 107, 255, .12); border: 1px solid rgba(155, 107, 255, .3); text-decoration: none; transition: background .2s, border-color .2s, color .2s; }
a.tag::before { content: "#"; opacity: .55; margin-right: 1px; }
a.tag:hover { color: #fff; background: rgba(155, 107, 255, .3); border-color: var(--violet); }
.meta dd:has(a.tag) { display: flex; flex-wrap: wrap; gap: 4px; padding-top: 3px; }
.meta dd a.tag { font-size: .8rem; }
.chip.tags-chip, .chip.tags-chip.active { --c: var(--violet); }
.tag-cloud-view h2 { margin: 0 0 20px; font-size: 1.9rem; }
.tag-cloud-view h2 small { color: var(--muted); font-weight: 400; font-size: 1rem; }
.tag-cloud { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 10px 18px; max-width: 900px; padding: 28px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.tag-cloud a.tag { font-size: calc(var(--size) * 1rem); padding: 2px 12px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border-color: color-mix(in srgb, var(--c) 35%, transparent); animation: pop .4s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: min(calc(var(--i) * 25ms), 500ms); }
.tag-cloud a.tag:hover { color: #fff; background: color-mix(in srgb, var(--c) 35%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 45%, transparent); }
.tag-cloud a.tag small { margin-left: 5px; font-size: .6em; color: var(--muted); font-weight: 500; }

/* Votes and emoji reactions */
.song-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -6px 0 20px; }
.votes, .reactions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vote, .rx { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; font-size: .85rem; cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
.vote b, .rx b { font-weight: 700; font-variant-numeric: tabular-nums; }
.vote:hover, .rx:hover { transform: translateY(-1px); }
.vote.up { color: #4ade80; } .vote.up:hover { border-color: #4ade80; background: rgba(74, 222, 128, .12); }
.vote.down { color: var(--danger); } .vote.down:hover { border-color: var(--danger); background: rgba(255, 107, 107, .12); }
.rx .emoji { font-size: 1.05rem; line-height: 1; }
.rx:hover { border-color: var(--orange); background: rgba(255, 159, 67, .12); }
.rx.add { color: var(--muted); border-style: dashed; }
.vote:disabled, .rx:disabled { cursor: progress; transform: none; }
/* Press and hold removes one, so keep phones from selecting text or opening a callout. */
.vote, .rx { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.undo-toast { position: fixed; left: 50%; bottom: 24px; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 16px; transform: translateX(-50%); background: var(--panel-solid); border: 1px solid var(--border); border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); font-size: .9rem; animation: rise .25s ease-out both; }
.bump { animation: bump .35s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes bump { 50% { transform: scale(1.25); } }

.emoji-picker { position: fixed; z-index: 10; width: min(340px, calc(100vw - 16px)); max-height: min(360px, 70vh); display: flex; flex-direction: column; background: var(--panel-solid); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, .55); animation: pop .2s ease-out both; }
.emoji-all { overflow-y: auto; padding: 0 8px 8px; }
.emoji-picker h4 { margin: 10px 4px 4px; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); }
.emoji-grid.quick { padding: 8px; border-bottom: 1px solid var(--border); }
.emoji-grid button { padding: 4px 0; border: 0; border-radius: 8px; background: none; font-size: 1.35rem; line-height: 1.3; cursor: pointer; transition: background .15s, transform .15s; }
.emoji-grid button:hover, .emoji-grid button:focus-visible { background: rgba(255, 255, 255, .1); transform: scale(1.2); outline: none; }

/* Compact counts in the song lists */
.summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .8rem; color: var(--text); }
.summary b { margin-left: 2px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.sum-votes { display: inline-flex; gap: 4px; font-weight: 700; }
.sum-votes .up { color: #4ade80; } .sum-votes .down { color: var(--danger); }
#song-list .summary { margin-top: 4px; }
td.buzz { min-width: 150px; }

/* Comments */
.comments { max-width: 900px; margin-top: 28px; }
.comments h3 { margin-top: 0; }
.composer { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(0, 0, 0, .25); transition: border-color .2s, box-shadow .2s; }
.composer:focus-within { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 61, 139, .22); }
.toolbar { display: flex; gap: 2px; padding: 4px; border-bottom: 1px solid var(--border); }
.tool { min-width: 30px; padding: 3px 6px; border: 0; border-radius: 6px; background: none; color: var(--muted); font: inherit; font-size: .9rem; cursor: pointer; }
.tool:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.tool-bold { font-weight: 800; } .tool-italic { font-style: italic; font-family: Georgia, serif; } .tool-strikeThrough { text-decoration: line-through; }
.editor { position: relative; min-height: 64px; max-height: 300px; overflow-y: auto; padding: 10px 12px; outline: none; line-height: 1.5; overflow-wrap: anywhere; }
.editor.empty::before { content: attr(data-placeholder); color: var(--muted); pointer-events: none; position: absolute; }
.composer-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 6px 8px; }
.composer-actions small { margin-right: auto; font-size: .75rem; }
.btn.primary:disabled { cursor: not-allowed; opacity: .45; }

.comment-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.comment-list.expanded { max-height: 70vh; overflow-y: auto; padding-right: 6px; }
.thread { display: flex; flex-direction: column; gap: 8px; animation: rise .3s ease-out both; }
.thread > .composer { margin-left: 28px; }
.comment { padding: 10px 14px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.comment time { font-size: .75rem; color: var(--muted); }
.replies { display: flex; flex-direction: column; gap: 8px; margin-left: 28px; padding-left: 12px; border-left: 2px solid color-mix(in srgb, var(--violet) 45%, transparent); }
.comment-body, .editor { overflow-wrap: anywhere; }
.comment-body { margin: 4px 0 8px; line-height: 1.5; }
.comment-body > :first-child, .editor > :first-child { margin-top: 0; }
.comment-body > :last-child, .editor > :last-child { margin-bottom: 0; }
.comment-body p, .editor p { margin: 0 0 .5em; }
.comment-body ul, .comment-body ol, .editor ul, .editor ol { margin: .3em 0; padding-left: 1.4em; }
.comment-body blockquote, .editor blockquote { margin: .4em 0; padding: 2px 12px; border-left: 3px solid var(--orange); color: var(--muted); }
.comment-body a, .editor a { color: var(--orange); }
.comment-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.comment-bar .vote, .comment-bar .rx { padding: 2px 8px; font-size: .78rem; }
.link-btn { padding: 2px 4px; border: 0; background: none; color: var(--muted); font: inherit; font-size: .8rem; cursor: pointer; }
.link-btn:first-of-type { margin-left: auto; }
.link-btn:hover { color: var(--text); text-decoration: underline; }
.link-btn.danger:hover { color: var(--danger); }
.show-more { margin-top: 10px; }

/* Login */
.login-page { display: grid; place-items: center; grid-template-columns: 1fr; padding: 20px; }
.login-box { width: min(380px, 100%); display: flex; flex-direction: column; gap: 16px; background: var(--panel); backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: 16px; padding: 32px 28px; animation: rise .5s ease-out both, glow 4s ease-in-out infinite alternate; }
.login-box .logo { font-size: 2rem; text-align: center; }
.tagline { margin: -10px 0 6px; text-align: center; color: var(--muted); font-size: .9rem; letter-spacing: .2em; text-transform: uppercase; }
@keyframes glow {
  from { box-shadow: 0 0 40px rgba(255, 61, 139, .18); }
  to   { box-shadow: 0 0 60px rgba(155, 107, 255, .28); }
}
.logout { display: block; margin: 10px 14px 14px; color: var(--muted); font: inherit; font-size: .85rem; background: none; border: 0; cursor: pointer; text-align: left; padding: 0; transition: color .2s; }
.logout:hover { color: var(--pink); }

@media (max-width: 760px) {
  body { grid-template-columns: 1fr; grid-template-rows: 40vh 1fr; }
  #sidebar { border-right: 0; border-bottom: 1px solid var(--border); }
  main { padding: 18px 16px; }
  .grid .wide { grid-column: 1 / -1; }
  .song-head { flex-direction: column; }
  .song-head h2 { font-size: 1.9rem; }
  th:nth-child(2), td:nth-child(2), th:nth-child(4), td:nth-child(4) { display: none; }
  td.player { min-width: 160px; }
  .replies, .thread > .composer { margin-left: 12px; }
}

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