:root { --bg: #0b0e14; --card: #141a26; --txt: #e8ecf3; --mut: #9aa4b5; --acc: #5eead4; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--txt); font: 16px/1.55 system-ui, sans-serif; }
header, main, footer { max-width: 960px; margin: 0 auto; padding: 16px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn { background: var(--acc); color: #04211c; border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 700; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--acc); border: 1px solid var(--acc); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.card { background: var(--card); border-radius: 14px; padding: 14px; }
.mut { color: var(--mut); }
.player { position: sticky; bottom: 0; background: #0f1522; border-top: 1px solid #223; padding: 10px 16px; display: flex; gap: 10px; align-items: center; }
audio { width: 100%; }
.timer { font-size: 28px; font-variant-numeric: tabular-nums; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
input { padding: 9px 10px; border-radius: 8px; border: 1px solid #2a3550; background: #0f1522; color: var(--txt); }
select { background: #0f1522; color: var(--txt); border: 1px solid var(--acc); border-radius: 10px; padding: 10px 12px; font-weight: 600; cursor: pointer; max-width: 100%; }
select:focus { outline: 2px solid var(--acc); outline-offset: 1px; }
select option { background: #0f1522; }
.dl { background: transparent; color: var(--mut); border: 1px solid #2a3550; border-radius: 10px; padding: 8px 10px; font-weight: 700; cursor: pointer; flex: 0 0 auto; }
.dl:hover { color: var(--acc); border-color: var(--acc); }
.dl:disabled { opacity: 0.5; cursor: wait; }
.track { display: flex; gap: 6px; margin: 4px 0; }
.track .btn { flex: 1 1 auto; text-align: left; }
.badge { font-size: 12px; border: 1px solid var(--acc); color: var(--acc); border-radius: 999px; padding: 2px 8px; }
.brand { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
main a, footer a { color: var(--acc); }
#userBadge { overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
#history ul { list-style: none; margin: 0; padding: 0; }
.cookie[hidden] { display: none; }
#history li { padding: 4px 0; }
.cookie { position: fixed; left: 12px; right: 12px; bottom: 76px; max-width: 960px; margin: 0 auto; background: #0f1522; border: 1px solid var(--acc); border-radius: 12px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; justify-content: space-between; z-index: 50; }
@media (max-width: 640px) {
  .top { flex-wrap: wrap; }
  .top .row { width: 100%; }
  .timer { font-size: 24px; }
  header, main, footer { padding: 12px; }
}
