.prm-search{--s-bg:var(--rs-bg,#121317);--s-card:color-mix(in srgb,var(--rs-text,#fff) 7%,transparent);--s-line:var(--rs-line,#2b2c32);--s-text:var(--rs-text,#f2f3f6);--s-muted:var(--rs-muted,#8a8f9b);--s-accent:var(--rs-accent,#e9233d);box-sizing:border-box;width:min(720px,calc(100vw - 32px));max-width:none;max-height:none;margin:9vh auto auto;padding:0;border:0;border-radius:18px;background:transparent;color:var(--s-text);overflow:visible}
.prm-search::backdrop{background:#06070acc;backdrop-filter:blur(7px)}
.prm-search[open]{animation:prm-search-in .16s ease-out}
@keyframes prm-search-in{from{opacity:0;transform:translateY(-10px) scale(.985)}to{opacity:1;transform:none}}
.prm-search-box{display:flex;flex-direction:column;max-height:76vh;overflow:hidden;border:1px solid var(--s-line);border-radius:18px;background:var(--s-bg);box-shadow:0 30px 90px #0009}
.prm-search-head{display:flex;align-items:center;gap:13px;padding:16px 18px;border-bottom:1px solid var(--s-line);color:var(--s-muted)}
.prm-search-head>svg{flex:none;width:23px;height:23px}
.prm-search.is-loading .prm-search-head>svg{color:var(--s-accent);animation:prm-search-pulse .8s ease-in-out infinite alternate}
@keyframes prm-search-pulse{to{opacity:.35}}
.prm-search .prm-search-head input{flex:1;min-width:0;width:auto;height:auto;min-height:0;margin:0;padding:4px 0;border:0;outline:0;border-radius:0;background:transparent;box-shadow:none;color:var(--s-text);font:inherit;font-size:19px;font-weight:500;-webkit-appearance:none;appearance:none}
.prm-search .prm-search-head input::placeholder{color:var(--s-muted);font-weight:400}
.prm-search .prm-search-head input::-webkit-search-cancel-button{display:none}
.prm-search .prm-search-close{flex:none;width:auto;min-height:0;padding:5px 9px;border:1px solid var(--s-line);border-radius:7px;background:transparent;box-shadow:none;color:var(--s-muted);font:inherit;font-size:11px;font-weight:600;cursor:pointer}
@media(hover:hover){.prm-search .prm-search-close:hover{background:var(--s-card);border-color:var(--s-line);color:var(--s-text)}}
.prm-search-list{flex:1;min-height:0;overflow-y:auto;padding:8px;scrollbar-width:thin;scrollbar-color:var(--s-line) transparent}
.prm-search-group+.prm-search-group{margin-top:8px}
.prm-search-group h3{margin:8px 10px 6px;padding:0;color:var(--s-muted);font-size:10px;font-weight:700;letter-spacing:.13em;text-transform:uppercase}
.prm-search-row{display:flex;align-items:center;gap:12px;padding:8px 10px;border-radius:11px;color:var(--s-text);text-decoration:none}
.prm-search-row:focus-visible{color:var(--s-text);outline:0}@media(hover:hover){.prm-search-row:hover{color:var(--s-text);outline:0}}
.prm-search-row.is-active{background:var(--s-card)}
.prm-search-thumb{flex:none;display:flex;align-items:center;justify-content:center;width:46px;height:46px;overflow:hidden;border-radius:7px;background:var(--s-card);color:var(--s-muted)}
.prm-search-thumb.is-artist{border-radius:50%}
.prm-search-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.prm-search-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.prm-search-copy strong{overflow:hidden;font-size:15px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.prm-search-copy small{overflow:hidden;color:var(--s-muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.prm-search-copy mark{background:transparent;color:var(--s-accent)}
.prm-search-recent{flex:none;display:flex;color:var(--s-muted);opacity:.6}
.prm-search-recent svg{width:15px;height:15px}
.prm-search-empty{display:flex;flex-direction:column;gap:5px;padding:38px 20px;text-align:center;color:var(--s-muted);font-size:13px}
.prm-search-empty strong{color:var(--s-text);font-size:15px}
.prm-search-foot{display:flex;gap:18px;padding:10px 18px;border-top:1px solid var(--s-line);color:var(--s-muted);font-size:11px}
.prm-search-foot kbd{display:inline-block;min-width:12px;margin-right:4px;padding:2px 5px;border:1px solid var(--s-line);border-radius:5px;background:transparent;color:inherit;font:inherit;font-size:10px;text-align:center}
@media(max-width:700px){
.prm-search{width:100vw;height:100dvh;margin:0;border-radius:0}
.prm-search-box{height:100%;max-height:none;border:0;border-radius:0}
.prm-search-foot{display:none}
.prm-search .prm-search-head input{font-size:16px}
}
@media(prefers-reduced-motion:reduce){.prm-search[open]{animation:none}}
.prm-search .prm-search-row,.prm-search .prm-search-copy strong{color:var(--s-text)!important}@media(hover:hover){.prm-search .prm-search-row:hover{color:var(--s-text)!important}}
.prm-search .prm-search-copy mark{color:var(--s-accent)!important}

/* Suggestions under a search field: same rows as the main search. */
.prm-suggest{--s-bg:var(--rs-bg,#121317);--s-card:color-mix(in srgb,var(--rs-text,#fff) 7%,transparent);--s-line:var(--rs-line,#2b2c32);--s-text:var(--rs-text,#f2f3f6);--s-muted:var(--rs-muted,#8a8f9b);--s-accent:var(--rs-accent,#e9233d);position:absolute;z-index:100100;max-height:min(420px,60vh);overflow-y:auto;box-sizing:border-box;padding:6px;border:1px solid var(--s-line);border-radius:14px;background:var(--s-bg);box-shadow:0 18px 50px #0008;scrollbar-width:thin;scrollbar-color:var(--s-line) transparent}
.prm-suggest[hidden]{display:none}
.prm-suggest .prm-search-row{gap:10px;padding:6px 8px;color:var(--s-text)!important;text-decoration:none}
@media(hover:hover){.prm-suggest .prm-search-row:hover{background:var(--s-card)}}
.prm-suggest .prm-search-copy strong{color:var(--s-text)!important;font-size:14px}
.prm-suggest .prm-search-copy mark{color:var(--s-accent)!important}
.prm-suggest .prm-search-thumb{width:36px;height:36px}
.prm-suggest .prm-search-group h3{margin:6px 8px 4px}
.prm-suggest .prm-search-empty{padding:16px 12px}

/* A value picked from the suggestions: a tick in the field and what was chosen under it. */
input.prm-is-picked,html body input.prm-is-picked{border-color:color-mix(in srgb,var(--rs-accent,#e22638) 60%,var(--rs-line,#303239))!important;padding-right:44px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e22638' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 14px center!important;background-size:18px 18px!important}
.prm-picked-note{display:block;margin-top:7px;color:var(--rs-muted,#9498a4);font-size:12.5px;font-weight:600}

/* Tags field (e.g. "Moja top trójka MC"): picked names as numbered chips, typing box after them. */
.prm-tags{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-height:52px;padding:7px 9px;border:1px solid var(--rs-line,#303239);border-radius:12px;background:var(--rs-bg,#111216);cursor:text;box-sizing:border-box}
.prm-tags:focus-within{border-color:var(--rs-accent,#e22638);box-shadow:0 0 0 3px color-mix(in srgb,var(--rs-accent,#e22638) 18%,transparent)}
.prm-tags-chips{display:contents}
.prm-tag{display:inline-flex;align-items:center;gap:7px;padding:5px 6px 5px 6px;border-radius:999px;background:var(--rs-hover,#26272e);color:var(--rs-text,#f3f4f6);font-size:14px;font-weight:700}
.prm-tag b{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--rs-accent,#e22638);color:#fff;font-size:11px}
.prm-tag button{display:grid;place-items:center;width:22px;height:22px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--rs-muted,#9498a4);font-size:16px;line-height:1;cursor:pointer}
@media(hover:hover){.prm-tag button:hover{background:var(--rs-accent,#e22638);color:#fff}}
html body .prm-tags input.prm-tags-input{flex:1;min-width:160px;min-height:34px;margin:0;padding:4px 6px!important;border:0!important;background:transparent!important;box-shadow:none!important;color:var(--rs-text,#f3f4f6);font:inherit;font-size:15px;outline:0}
.prm-tags input.prm-tags-input[hidden]{display:none}
.prm-tags.is-full::after{content:'Masz komplet. Usuń kogoś, żeby zmienić.';margin-left:4px;color:var(--rs-muted,#9498a4);font-size:12.5px}
html body .prm-tags .prm-tag button{display:grid!important;place-items:center;width:22px!important;height:22px!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:transparent!important;box-shadow:none!important;color:var(--rs-muted,#9498a4)!important;font-size:16px!important;line-height:1!important;vertical-align:middle}
@media(hover:hover){html body .prm-tags .prm-tag button:hover{background:var(--rs-accent,#e22638)!important;color:#fff!important}}
