/* song page: «پلی‌لیست» chip and the add sheet (bottom sheet on phones, small dialog on desktop) */
.ts26-counts button.tspl-btn{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 12px;border:0;border-radius:10px;background:var(--ts-surface);color:var(--ts-muted);font:400 13px var(--ts-font);cursor:pointer;transition:background .2s,color .2s}
.ts26-counts button.tspl-btn:hover{color:var(--ts-text)}
.ts26-counts button.tspl-btn:disabled{opacity:.6}
.ts26-counts .tspl-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.tspl-lock,.tspl-lock body{overflow:hidden}
.tspl{position:fixed;inset:0;z-index:100000;display:flex;align-items:flex-end;justify-content:center;font-family:var(--ts-font,Vazirmatn,Tahoma,sans-serif);direction:rtl}
.tspl[hidden]{display:none}
.tspl__bg{position:absolute;inset:0;background:rgba(6,10,16,.55);opacity:0;transition:opacity .18s}
.tspl__sheet{position:relative;width:100%;max-height:82vh;display:flex;flex-direction:column;gap:10px;padding:14px 16px calc(16px + env(safe-area-inset-bottom));background:var(--ts-surface,#fff);color:var(--ts-text,#0B0F1A);border-start-start-radius:22px;border-start-end-radius:22px;box-shadow:0 -18px 40px -18px rgba(0,0,0,.4);transform:translateY(24px);opacity:0;transition:transform .22s var(--ts-ease,ease),opacity .18s}
.tspl.is-open .tspl__bg{opacity:1}
.tspl.is-open .tspl__sheet{transform:none;opacity:1}
.tspl__sheet::before{content:"";align-self:center;width:40px;height:4px;border-radius:4px;background:var(--ts-line,#E2EAEA)}
.tspl__head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tspl__head b{font-size:16px;font-weight:700}
.tspl__x{display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:50%;background:var(--ts-surface2,#EEF3F3);color:var(--ts-text,#0B0F1A);cursor:pointer}
.tspl__x svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.tspl__list{list-style:none;margin:0;padding:0;overflow-y:auto;display:flex;flex-direction:column;gap:6px;min-height:0}
.tspl__it{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:8px 12px;border:1px solid var(--ts-line,#E2EAEA);border-radius:14px;background:transparent;color:inherit;font:inherit;text-align:start;cursor:pointer;transition:background .15s,border-color .15s}
.tspl__it:hover{background:var(--ts-surface2,#EEF3F3)}
.tspl__it[aria-pressed=true]{border-color:var(--ts-accent,#245451);background:var(--ts-accent-soft,#E3EEEC)}
.tspl__box{flex:none;width:22px;height:22px;border-radius:7px;border:2px solid var(--ts-muted,#5B6773);display:grid;place-items:center;transition:background .15s,border-color .15s}
.tspl__it[aria-pressed=true] .tspl__box{background:var(--ts-accent,#245451);border-color:var(--ts-accent,#245451)}
.tspl__it[aria-pressed=true] .tspl__box::after{content:"";width:10px;height:5px;border:2px solid var(--ts-on-accent,#fff);border-top:0;border-right:0;transform:translateY(-1px) rotate(-45deg)}
.tspl__tx{display:flex;flex-direction:column;min-width:0}
.tspl__tx b{font-size:14.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tspl__tx small{font-size:12px;color:var(--ts-muted,#5B6773)}
.tspl__empty{margin:4px 0;font-size:13.5px;line-height:1.9;color:var(--ts-muted,#5B6773)}
.tspl__new{display:flex;gap:8px}
.tspl__new input{flex:1;min-width:0;height:46px;padding:0 14px;border:1px solid var(--ts-line,#E2EAEA);border-radius:12px;background:var(--ts-bg,#F4F7F7);color:inherit;font:inherit;font-size:16px}
.tspl__new input:focus{outline:2px solid var(--ts-accent,#245451);outline-offset:1px}
.tspl__go{flex:none;height:46px;padding:0 16px;border:0;border-radius:12px;background:var(--ts-accent,#245451);color:var(--ts-on-accent,#fff);font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.tspl__go:disabled,.tspl__it:disabled{opacity:.6}
.tspl__msg{margin:0;min-height:1.6em;font-size:13px;color:#B23A48}
.tspl__msg.is-ok{color:var(--ts-accent,#245451)}
.tspl__all{align-self:center;font-size:13px;color:var(--ts-muted,#5B6773)}
@media (min-width:700px){
	.tspl{align-items:center}
	.tspl__sheet{width:420px;max-height:70vh;border-radius:22px;padding:18px 20px 16px;transform:scale(.97)}
	.tspl__sheet::before{display:none}
}
@media (prefers-reduced-motion:reduce){.tspl__bg,.tspl__sheet{transition:none}}
