:root {
  --bg: #0e0e11;
  --bg2: #17171c;
  --bg3: #222229;
  --bg4: #2d2d36;
  --fg: #f3f3f6;
  --mut: #9b9ba8;
  --acc: #3b82f6;
  --acc2: #06b6d4;
  --danger: #f05252;
  --r: 12px;
  --mini-h: 74px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body {
  font: 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, sans-serif;
  overscroll-behavior-y: none;
  -webkit-text-size-adjust: 100%;
}
body.noscroll { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
input { font: inherit; font-size: 16px; color: var(--fg); }
img { display: block; }
.hidden { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
.muted { color: var(--mut); }
.small { font-size: 13px; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic { width: 24px; height: 24px; fill: currentColor; flex: none; }

/* ---------- przyciski */
.ib { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none; }
.ib:active { background: var(--bg3); }
.ib.on { color: var(--acc); }
.ib.big .ic { width: 34px; height: 34px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 600; background: var(--bg3);
}
.btn:active { filter: brightness(1.2); }
.btn .ic { width: 20px; height: 20px; }
.btn.primary { background: linear-gradient(135deg, var(--acc), var(--acc2)); color: #fff; }
.btn.danger { background: var(--danger); color: #fff; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .5; }

/* ---------- logowanie */
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 12px; text-align: center; }
.login-logo { width: 84px; height: 84px; margin: 0 auto 4px; border-radius: 20px; }
.login-card h1 { margin: 0; font-size: 28px; }
.login-card p { margin: 0 0 12px; }
.login-card input, .modal input[type=text], .modal input[type=password], .modal input[type=email], .modal input[type=number], .modal input[type=date] {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--bg4); background: var(--bg2); outline: none;
}
.login-card input:focus, .modal input[type=text]:focus, .modal input[type=password]:focus,
.modal input[type=email]:focus, .modal input[type=number]:focus, .modal input[type=date]:focus { border-color: var(--acc); }
.modal input[type=date] { color-scheme: dark; }
.err { color: var(--danger); min-height: 1.2em; font-size: 14px; }

/* ---------- górny pasek */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 2px;
  padding: calc(var(--sat) + 4px) 6px 4px; background: rgba(14, 14, 17, .88);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--bg3);
}
.crumbs { flex: 1; min-width: 0; display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; white-space: nowrap; font-weight: 600; }
.crumbs::-webkit-scrollbar { display: none; }
.crumbs a { color: var(--mut); text-decoration: none; padding: 6px 2px; }
.crumbs a:last-child { color: var(--fg); }
.crumbs .sep { color: var(--bg4); padding: 0 4px; }
.searchbar { position: sticky; top: calc(var(--sat) + 53px); z-index: 19; padding: 8px 16px; background: var(--bg); }
.searchbar input { width: 100%; height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--bg4); background: var(--bg2); outline: none; }

main { padding: 0 16px calc(var(--mini-h) + var(--sab) + 32px); max-width: 1200px; margin: 0 auto; }
.loading, .empty { color: var(--mut); text-align: center; padding: 48px 16px; }
.empty.small { padding: 16px; }

.hint {
  display: flex; gap: 10px; align-items: center; margin: 14px 0 0; padding: 12px 14px; border-radius: var(--r);
  background: var(--bg2); border: 1px solid var(--bg4); font-size: 14px;
}
.hint div { flex: 1; }

/* ---------- nagłówek folderu */
.hero {
  display: grid; grid-template-columns: 116px minmax(0, 1fr); grid-template-areas: "cover info" "actions actions";
  gap: 16px; align-items: center; padding: 20px 0 16px;
}
.hero > .hero-cover { grid-area: cover; }
.hero-info { grid-area: info; }
.hero-actions { grid-area: actions; }
.hero-cover { width: 116px; height: 116px; border-radius: var(--r); object-fit: cover; flex: none; background: var(--bg3); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.hero-cover.ph { display: grid; place-items: center; color: var(--mut); }
.hero-cover.ph .ic { width: 56px; height: 56px; }
.hero-info { min-width: 0; flex: 1; }
.hero-kicker { color: var(--mut); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.hero h1 { margin: 2px 0 4px; font-size: 24px; line-height: 1.15; overflow-wrap: anywhere; }
.hero-meta { color: var(--mut); font-size: 13px; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-actions .btn { height: 38px; padding: 0 14px; }

/* ---------- siatka folderów */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin: 8px 0 20px; }
.card { position: relative; min-width: 0; cursor: pointer; border-radius: var(--r); padding: 8px; background: var(--bg2); }
.card:active { background: var(--bg3); }
.card-img { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--bg3); display: grid; place-items: center; color: var(--mut); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .ic { width: 44px; height: 44px; }
.card-title { margin-top: 8px; padding-right: 30px; font-weight: 600; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.card-more { position: absolute; right: 2px; bottom: 2px; width: 36px; height: 36px; display: grid; place-items: center; color: var(--mut); border-radius: 50%; }
.card-more .ic { width: 20px; height: 20px; }

/* ---------- lista utworów */
.sec-h { margin: 18px 0 6px; font-size: 13px; color: var(--mut); text-transform: uppercase; letter-spacing: .06em; }
.tracks { list-style: none; margin: 0; padding: 0; }
.track { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 4px 0 4px 6px; border-radius: 8px; cursor: pointer; }
.track:active { background: var(--bg2); }
.tno { width: 26px; text-align: right; color: var(--mut); font-variant-numeric: tabular-nums; flex: none; font-size: 14px; }
.tmain { flex: 1; min-width: 0; }
.ttitle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tsub { color: var(--mut); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track.playing .ttitle, .track.playing .tno { color: var(--acc); font-weight: 600; }
.tmore { width: 40px; height: 40px; display: grid; place-items: center; color: var(--mut); flex: none; border-radius: 50%; }
.tmore .ic { width: 20px; height: 20px; }
.tthumb { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex: none; background: var(--bg3); }
.tthumb.ph { display: grid; place-items: center; color: var(--mut); }
.tthumb.ph .ic { width: 22px; height: 22px; }
/* ulubione i playlisty */
.tdur { flex: none; min-width: 34px; text-align: right; color: var(--mut); font-size: 13px; font-variant-numeric: tabular-nums; }
.mini-time { flex: none; color: var(--mut); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tfav { width: 40px; height: 40px; display: grid; place-items: center; color: var(--mut); flex: none; border-radius: 50%; opacity: .55; }
.tfav .ic { width: 20px; height: 20px; }
.tfav.on, .fav-btn.on, .btn.icon-btn.on { color: #f43f5e; opacity: 1; }
.track.missing { opacity: .45; }
.card-sub { color: var(--mut); font-size: 12px; margin-top: 2px; padding-right: 30px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-tile { background: linear-gradient(135deg, #f43f5e, #fb923c) !important; color: #fff !important; }
.pl-tile { background: linear-gradient(135deg, var(--acc), var(--acc2)) !important; color: #fff !important; }
.fav-tile .ic, .pl-tile .ic { width: 52px; height: 52px; }
.hero-cover.fav-tile, .hero-cover.pl-tile { display: grid; place-items: center; }
.card-fav { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(0, 0, 0, .45); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.card-fav .ic { width: 19px; height: 19px; }
.card-fav.on { color: #f43f5e; background: rgba(0, 0, 0, .55); }
.card.missing { opacity: .55; }
.heart-mini { color: #f43f5e; margin-right: 4px; }
.heart-mini .ic { width: 14px; height: 14px; vertical-align: -2px; }
.btn.icon-btn { width: 38px; padding: 0; }
.ic.inline { width: 18px; height: 18px; vertical-align: -4px; }
.ticon { width: 26px; display: grid; place-items: center; color: var(--mut); flex: none; }
.ticon .ic { width: 20px; height: 20px; }

/* ---------- mini odtwarzacz */
.mini {
  position: fixed; left: 8px; right: 8px; bottom: calc(var(--sab) + 8px); z-index: 30; height: var(--mini-h);
  display: flex; align-items: center; gap: 10px; padding: 0 6px 0 8px; border-radius: 14px; overflow: hidden;
  background: rgba(26, 38, 60, .96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .5); cursor: pointer; max-width: 720px; margin: 0 auto;
}
.mini { padding-bottom: 12px; }
.mini-prog { position: absolute; left: 12px; right: 12px; bottom: 0; height: 20px; cursor: pointer; touch-action: none; }
.mp-track { position: absolute; left: 0; right: 0; top: 9px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .15); transition: height .12s, top .12s; }
#miniBar { position: relative; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--acc), var(--acc2)); }
#miniBar::after { content: ''; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #fff; transition: transform .12s; }
.mini-prog.drag .mp-track, .mini-prog:hover .mp-track { top: 8px; height: 5px; }
.mini-prog.drag #miniBar::after { transform: scale(1.5); }
#miniCover { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: var(--bg3); flex: none; }
.mini-text { flex: 1; min-width: 0; }
#miniTitle { font-weight: 600; }

/* ---------- pełny odtwarzacz */
.full {
  position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #14284a 0%, var(--bg) 70%);
  padding: calc(var(--sat) + 4px) 0 var(--sab); animation: up .22s ease-out;
}
@keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.full-top { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; }
.full-body { flex: 1; overflow-y: auto; padding: 8px 24px 32px; display: flex; flex-direction: column; align-items: center; }
.full-cover { width: min(100%, 420px, 52vh); aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: var(--bg3); box-shadow: 0 20px 50px rgba(0, 0, 0, .55); margin: 12px 0 22px; }
.full-info { width: 100%; max-width: 420px; display: flex; align-items: center; gap: 8px; }
.full-text { flex: 1; min-width: 0; }
.full-info #fMore { margin-right: -10px; }
.full-title { font-size: 21px; font-weight: 700; overflow-wrap: anywhere; }
.full #seek { width: 100%; max-width: 420px; margin: 18px 0 2px; }
.vol-row { width: 100%; max-width: 420px; display: flex; align-items: center; gap: 8px; color: var(--mut); font-size: 13px; }
.vol-row input { flex: 1; min-width: 0; }
.mini-vol { display: none; width: 110px; flex: none; }
@media (min-width: 700px) and (hover: hover) { .mini-vol { display: block; } }
.times { width: 100%; max-width: 420px; display: flex; justify-content: space-between; color: var(--mut); font-size: 12px; font-variant-numeric: tabular-nums; }
.controls { width: 100%; max-width: 420px; display: flex; align-items: center; justify-content: space-between; margin: 10px 0 8px; }
.play-btn { width: 68px; height: 68px; border-radius: 50%; background: var(--fg); color: #000; display: grid; place-items: center; }
.play-btn .ic { width: 36px; height: 36px; }
.play-btn:active { transform: scale(.96); }
.repeat-one { position: relative; }
.repeat-one::after { content: "1"; position: absolute; top: 9px; right: 8px; font-size: 10px; font-weight: 700; }
.queue-h { width: 100%; max-width: 420px; margin: 26px 0 6px; font-size: 13px; color: var(--mut); text-transform: uppercase; letter-spacing: .06em; }
.queue { width: 100%; max-width: 420px; list-style: none; margin: 0; padding: 0; }
.queue li { display: flex; align-items: center; gap: 10px; padding: 10px 6px; border-radius: 8px; cursor: pointer; }
.queue li:active { background: rgba(255, 255, 255, .06); }
.queue li.cur .ttitle { color: var(--acc); font-weight: 600; }
.queue li .tmain { flex: 1; min-width: 0; }
.queue .tmore { color: var(--mut); margin-right: -6px; }

/* ---------- modal / arkusz akcji */
.modal {
  position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .6);
  display: flex; align-items: flex-end; justify-content: center; animation: fade .15s;
}
@keyframes fade { from { opacity: 0; } }
.modal-card {
  width: 100%; max-width: 480px; max-height: 85vh; overflow-y: auto; background: var(--bg2);
  border-radius: 18px 18px 0 0; padding: 18px 16px calc(var(--sab) + 16px);
}
.modal h3 { margin: 0 0 12px; font-size: 17px; overflow-wrap: anywhere; }
.modal p { margin: 0 0 14px; color: var(--mut); overflow-wrap: anywhere; }
.m-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.m-actions .btn { flex: 1; }
.sheet-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 8px; border-radius: 10px; text-align: left; }
.sheet-item:active { background: var(--bg3); }
.sheet-item.danger { color: var(--danger); }
.pk-path { font-size: 13px; color: var(--mut); margin-bottom: 8px; overflow-wrap: anywhere; }
.pk-list { max-height: 45vh; overflow-y: auto; border: 1px solid var(--bg4); border-radius: 10px; }
.pk-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px; text-align: left; border-bottom: 1px solid var(--bg3); }
.pk-item:last-child { border-bottom: 0; }
.pk-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-tools { display: flex; gap: 8px; margin-top: 10px; }
.pk-tools .btn { height: 36px; font-size: 14px; }
.modal select {
  width: 100%; height: 48px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--bg4); background: var(--bg2);
  color: var(--fg); font: inherit; font-size: 16px;
}
.warn { color: #fbbf24 !important; margin-top: 10px !important; }
.perm.plain { border: 0; padding: 10px 2px 0; }
.modal textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--bg4); background: var(--bg2);
  color: var(--fg); font: inherit; font-size: 16px; resize: vertical; outline: none;
}
.modal textarea:focus { border-color: var(--acc); }
.dl-row { display: flex; gap: 10px; margin-top: 10px; }
.dl-row select { flex: 1; }
.dl-row .btn { height: 48px; }
.up-bar > div { height: 100%; background: linear-gradient(90deg, var(--acc), var(--acc2)); transition: width .3s; }
.u-row .up-bar { margin-top: 6px; }
.badge.src-youtube { background: rgba(239, 68, 68, .18); color: #fca5a5; margin: 0 4px 0 0; }
.badge.src-spotify { background: rgba(34, 197, 94, .18); color: #86efac; margin: 0 4px 0 0; }
.st-done { color: #4ade80; }
.st-error { color: var(--danger); }
.st-running, .st-listing { color: var(--acc); }
.dl-files { max-height: 40vh; overflow-y: auto; }
.dl-files .perm { padding: 6px 4px 6px 12px; }
.dl-files .tmain { display: flex; flex-direction: column; min-width: 0; }
.dl-prev { width: 100%; margin-top: 10px; }
.dl-items { margin-top: 14px; }
.dl-items summary { cursor: pointer; color: var(--mut); font-size: 14px; padding: 6px 0; }
.dl-items ol { margin: 6px 0 0; padding-left: 22px; max-height: 35vh; overflow-y: auto; font-size: 14px; }
.dl-items li { padding: 3px 0; }
.dl-items li small { display: block; color: var(--mut); }
.dl-items li.it-ok::marker { color: #4ade80; }
.dl-items li.it-err { color: #fca5a5; }
.dl-items li.it-run { color: var(--acc); }
.m-actions.wrap { flex-wrap: wrap; }
.btn.small-btn { height: 36px; font-size: 14px; margin-top: 4px; }
.f-label { display: block; margin: 14px 0 6px; font-size: 13px; color: var(--mut); }
.perm-list { border: 1px solid var(--bg4); border-radius: 10px; overflow: hidden; }
.perm { display: flex; align-items: center; gap: 12px; padding: 12px; border-bottom: 1px solid var(--bg3); cursor: pointer; }
.perm:last-child { border-bottom: 0; }
.perm input { width: 22px; height: 22px; accent-color: var(--acc); flex: none; margin: 0; }
.perm input:disabled + span { opacity: .75; }
.perm.adm { background: rgba(59, 130, 246, .08); }
.u-list { border: 1px solid var(--bg4); border-radius: 10px; overflow: hidden; }
.u-row { display: flex; align-items: center; gap: 10px; padding: 10px 6px 10px 10px; border-bottom: 1px solid var(--bg3); }
.u-row:last-child { border-bottom: 0; }
.u-row.click { cursor: pointer; }
.u-row.click:active { background: var(--bg3); }
.badge { display: inline-block; padding: 1px 7px; margin-left: 4px; border-radius: 999px; font-size: 11px; font-weight: 600; background: rgba(59, 130, 246, .2); color: #93c5fd; vertical-align: 1px; }
.m-actions .btn.icon-only { flex: 0 0 auto; width: 46px; padding: 0; }
@media (min-width: 700px) {
  .modal { align-items: center; }
  .modal-card { border-radius: 18px; padding-bottom: 18px; }
}

/* ---------- upload / drop / toast */
.drop {
  position: fixed; inset: 10px; z-index: 70; border: 3px dashed var(--acc); border-radius: 20px;
  background: rgba(14, 14, 17, .88); display: grid; place-items: center; text-align: center; font-size: 20px; pointer-events: none;
}
.uploads {
  position: fixed; right: 12px; left: 12px; bottom: calc(var(--sab) + var(--mini-h) + 20px); z-index: 35;
  max-width: 360px; margin-left: auto; padding: 12px 14px; border-radius: 12px; background: var(--bg3); box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
}
.up-bar { height: 4px; border-radius: 2px; background: var(--bg4); margin-top: 8px; overflow: hidden; }
#upBar { height: 100%; width: 0; background: linear-gradient(90deg, var(--acc), var(--acc2)); transition: width .2s; }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--sab) + var(--mini-h) + 24px); z-index: 80; transform: translate(-50%, 20px);
  max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 10px; background: var(--fg); color: #000; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- strona udostępnionego linku */
.brand { display: flex; align-items: center; gap: 6px; padding: 0 10px 0 6px; font-weight: 700; font-size: 14px; color: var(--mut); flex: none; }
.brand img { width: 22px; height: 22px; border-radius: 6px; }
.share-msg, .share-lock { max-width: 360px; margin: 64px auto 0; text-align: center; }
.share-msg .ic, .share-lock > .ic { width: 48px; height: 48px; color: var(--mut); margin: 0 auto 8px; display: block; }
.share-msg h2, .share-lock h2 { margin: 0 0 6px; overflow-wrap: anywhere; }
.share-file { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 0; }
.share-cover { width: min(78vw, 340px); aspect-ratio: 1; border-radius: 14px; object-fit: cover; background: var(--bg3); box-shadow: 0 20px 50px rgba(0, 0, 0, .55); margin-bottom: 20px; }
.share-cover.ph { display: grid; place-items: center; color: var(--mut); height: auto; }
.share-cover.ph .ic { width: 80px; height: 80px; }
.share-file h1 { margin: 4px 0; font-size: 24px; overflow-wrap: anywhere; }
.hero-actions.center { justify-content: center; margin-top: 18px; }
a.btn, a.tmore { color: inherit; text-decoration: none; }
/* jeden panel odtwarzacza na stronie linku: utwór + przyciski, przewijanie, głośność */
.splayer {
  position: fixed; left: 8px; right: 8px; bottom: calc(var(--sab) + 8px); z-index: 30; max-width: 720px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 6px; border-radius: 16px;
  background: rgba(26, 38, 60, .97); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
}
.sp-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sp-main #miniCover { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: var(--bg3); flex: none; }
.sp-main #miniTitle { font-weight: 600; }
.sp-play { background: var(--fg); color: #000; width: 42px; height: 42px; }
.sp-play:active { background: #ddd; }
.sp-seek, .sp-vol { font-size: 12px; color: var(--mut); font-variant-numeric: tabular-nums; padding: 0 4px; }
.sp-seek input, .sp-vol input { flex: 1; min-width: 0; }
.ib.sm { width: 32px; height: 32px; }
.ib.sm .ic { width: 20px; height: 20px; }
.vol-note { display: flex; align-items: center; gap: 6px; padding: 4px 0; }
.vol-note .ic { width: 16px; height: 16px; }
body.share.has-player main { padding-bottom: calc(var(--sab) + 190px); }
@media (min-width: 700px) {
  .splayer { display: grid; grid-template-columns: 1fr 200px; column-gap: 16px; }
  .sp-main { grid-column: 1 / -1; }
  body.share.has-player main { padding-bottom: calc(var(--sab) + 150px); }
}

/* suwaki (przewijanie, głośność) – wypełnienie w kolorze akcentu */
input.slider, .splayer input[type=range], #seek, #vol, #miniVol {
  -webkit-appearance: none; appearance: none; height: 28px; background: transparent; cursor: pointer; --p: 0%;
}
#seek::-webkit-slider-runnable-track, #vol::-webkit-slider-runnable-track, #miniVol::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--acc) var(--p), rgba(255, 255, 255, .18) var(--p));
}
#seek::-moz-range-track, #vol::-moz-range-track, #miniVol::-moz-range-track {
  height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--acc) var(--p), rgba(255, 255, 255, .18) var(--p));
}
#seek::-webkit-slider-thumb, #vol::-webkit-slider-thumb, #miniVol::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #fff; border: 0;
}
#seek::-moz-range-thumb, #vol::-moz-range-thumb, #miniVol::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }

@media (min-width: 700px) {
  .hero { grid-template-columns: 200px minmax(0, 1fr); grid-template-areas: "cover info" "cover actions"; grid-template-rows: 1fr auto; row-gap: 14px; }
  .hero-info { align-self: end; }
  .hero-actions { align-self: start; }
  .hero-cover { width: 200px; height: 200px; }
  .hero h1 { font-size: 34px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .card-more { opacity: .7; }
}
@media (hover: hover) {
  .track:hover, .card:hover, .queue li:hover { background: var(--bg2); }
  .card:hover { background: var(--bg3); }
}

/* ---------- rejestracja */
.login-switch { margin: 6px 0 0 !important; color: var(--mut); font-size: 14px; }
.linkish { color: var(--acc); font-weight: 600; padding: 4px 2px; }
.reg-card { max-width: 380px; }
.plan-pick { text-align: left; display: flex; flex-direction: column; gap: 8px; }
.plan-pick .f-label { margin: 4px 0 0; }
.plan-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--bg4); border-radius: 10px; cursor: pointer; background: var(--bg2); }
.plan-opt input { width: 20px !important; height: 20px !important; margin: 2px 0 0; accent-color: var(--acc); flex: none; }
.plan-opt:has(input:checked) { border-color: var(--acc); background: rgba(59, 130, 246, .08); }

/* ---------- subskrypcja: baner, miejsce, statusy */
.sub-banner {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 14px;
  background: rgba(251, 191, 36, .12); color: #fde68a; border-bottom: 1px solid rgba(251, 191, 36, .25);
}
.sub-banner span { flex: 1; }
.sub-banner .btn { margin: 0; height: 32px; }
.sub-banner.bad { background: rgba(240, 82, 82, .12); color: #fca5a5; border-color: rgba(240, 82, 82, .3); }
.sub-banner.info { background: rgba(59, 130, 246, .1); color: #bfdbfe; border-color: rgba(59, 130, 246, .25); }
.usage-line { display: flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--mut); font-size: 12px; text-align: left; padding: 0; }
.usage-line .q-bar { width: 120px; margin: 0; }
.q-bar { height: 6px; border-radius: 3px; background: var(--bg4); overflow: hidden; margin: 6px 0; }
.q-bar > div { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--acc), var(--acc2)); }
.q-bar.near > div { background: #f59e0b; }
.q-bar.full > div { background: var(--danger); }
.q-row { display: flex; align-items: center; gap: 10px; }
.q-row .q-bar { flex: 1; max-width: 220px; margin: 4px 0 0; }
.badge.st-ok { background: rgba(34, 197, 94, .18); color: #86efac; }
.badge.st-info { background: rgba(59, 130, 246, .2); color: #93c5fd; }
.badge.st-warn { background: rgba(251, 191, 36, .18); color: #fde68a; }
.badge.st-bad { background: rgba(240, 82, 82, .2); color: #fca5a5; }
.u-row .btn.small-btn { margin: 0; flex: none; }

/* ---------- panel subskrypcji */
.modal-card.wide { max-width: 720px; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.tabs button { padding: 8px 14px; border-radius: 999px; background: var(--bg3); font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--mut); }
.tabs button.on { background: var(--fg); color: #000; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.stats > div { background: var(--bg3); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.stats b { display: block; font-size: 17px; }
.stats span { color: var(--mut); font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 10px; font-size: 13px; }
.chip .badge { margin-left: 0; }
.modal input.filter { height: 42px; margin-bottom: 10px; }
.date-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.date-row input { flex: 1 1 160px; }
.date-row .btn { margin: 0; }
.dim { opacity: .45; }
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .stats > div { display: flex; align-items: baseline; gap: 8px; }
}

/* ---------- strona startowa (Załóż konto / Zaloguj się) */
.welcome { gap: 10px; }
.welcome-pts { list-style: none; margin: 0 0 14px; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.welcome-pts li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--bg2); }
.welcome-pts li::before { content: '✓'; color: var(--acc2); font-weight: 700; }

/* ---------- kod z e-maila (weryfikacja dwuetapowa) */
input.code-input { text-align: center; font-size: 24px !important; letter-spacing: .35em; font-variant-numeric: tabular-nums; }
.remember { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--mut); cursor: pointer; }
.remember input { width: 18px !important; height: 18px !important; accent-color: var(--acc); }
