/* Site-wide player (footer.php .ts26-gp, logic in app.js + v2026-player.js).
   Desktop: one bar along the bottom. Phone: compact bar above the app nav. Minimised: a round disc with a progress ring. */
.ts26-gp{position:fixed;inset-inline:0;bottom:0;z-index:100008;font-family:var(--ts-font);color:var(--ts-text);direction:rtl;--p:0%}
.ts26-gp[aria-hidden="true"]{display:none}
.ts26-gp button{display:grid;place-items:center;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ts26-gp svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ts26-gp :focus-visible{outline:2px solid var(--ts-accent);outline-offset:2px;border-radius:10px}
.ts26-gp [hidden]{display:none!important}

.ts26-gp .gp-shell{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto auto;align-items:center;gap:14px;width:min(1240px,calc(100% - 32px));margin-inline:auto;padding:12px 0 10px}
.ts26-gp::before{content:"";position:absolute;inset:0;z-index:-1;background:color-mix(in srgb,var(--ts-surface) 97%,transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 -1px 0 var(--ts-line),0 -16px 36px -18px rgba(6,40,38,.35)}
body.player-visible{padding-bottom:84px}

/* progress: a thin line along the top edge, thicker on hover; times sit at its ends */
.ts26-gp .gp-progress{position:absolute;inset-inline:0;top:-7px;height:14px;display:flex;align-items:center;direction:ltr}
.ts26-gp .gp-progress input{flex:1;margin:0;height:14px;background:transparent;-webkit-appearance:none;appearance:none;cursor:pointer}
.ts26-gp .gp-progress input::-webkit-slider-runnable-track{height:3px;border-radius:3px;background:linear-gradient(to right,var(--ts-accent) var(--p),var(--ts-line) var(--p));transition:height .15s}
.ts26-gp .gp-progress input::-moz-range-track{height:3px;border-radius:3px;background:linear-gradient(to right,var(--ts-accent) var(--p),var(--ts-line) var(--p))}
.ts26-gp .gp-progress input::-webkit-slider-thumb{-webkit-appearance:none;width:12px;height:12px;margin-top:-4.5px;border-radius:50%;background:var(--ts-accent);box-shadow:0 0 0 3px var(--ts-surface);opacity:0;transition:opacity .15s}
.ts26-gp .gp-progress input::-moz-range-thumb{width:12px;height:12px;border:0;border-radius:50%;background:var(--ts-accent);opacity:0}
.ts26-gp .gp-progress:hover input::-webkit-slider-runnable-track{height:5px}
.ts26-gp .gp-progress:hover input::-webkit-slider-thumb{opacity:1;margin-top:-3.5px}
.ts26-gp .gp-progress:hover input::-moz-range-thumb{opacity:1}
.ts26-gp .gp-times{display:inline-flex;gap:4px;font-size:12px;color:var(--ts-muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.ts26-gp .gp-times i{font-style:normal;opacity:.5}
.ts26-gp .gp-times .time-current{color:var(--ts-text)}

.ts26-gp .gp-cover{width:52px;height:52px;border-radius:14px;object-fit:cover;background:var(--ts-surface2)}
.ts26-gp .gp-copy{display:grid;min-width:0;line-height:1.55;color:inherit;text-decoration:none}
.ts26-gp .gp-copy b{font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ts26-gp .gp-copy small{font-size:12px;color:var(--ts-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ts26-gp .gp-copy:hover b{color:var(--ts-accent)}

.ts26-gp .gp-transport{display:flex;align-items:center;gap:6px;direction:ltr}
.ts26-gp .gp-transport button{width:42px;height:42px;border-radius:50%;color:var(--ts-muted);transition:background .2s,color .2s,transform .15s}
.ts26-gp .gp-transport button:hover{background:var(--ts-surface2);color:var(--ts-text)}
.ts26-gp .gp-transport button:active{transform:scale(.94)}
.ts26-gp .gp-transport svg{width:19px;height:19px}
.ts26-gp .player-main{width:50px!important;height:50px!important;background:var(--ts-accent)!important;color:var(--ts-on-accent)!important;box-shadow:0 10px 22px -10px var(--ts-accent)}
.ts26-gp .player-main:hover{background:var(--ts-accent-hover)!important}
.ts26-gp .player-main svg{width:22px;height:22px;fill:currentColor;stroke:none}

.ts26-gp .gp-tools{display:flex;align-items:center;gap:4px}
.ts26-gp .gp-tools>button,.ts26-gp .gp-mute{position:relative;width:38px;height:38px;border-radius:12px;color:var(--ts-muted);transition:background .2s,color .2s}
.ts26-gp .gp-tools>button:hover,.ts26-gp .gp-mute:hover{background:var(--ts-surface2);color:var(--ts-text)}
.ts26-gp .gp-autoplay.is-active,.ts26-gp .gp-queue-toggle[aria-expanded="true"]{color:var(--ts-accent);background:var(--ts-accent-soft)}
.ts26-gp .gp-queue-count{position:absolute;top:2px;inset-inline-start:2px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:var(--ts-accent);color:var(--ts-on-accent);font-size:10px;font-weight:700;line-height:16px;text-align:center}
.ts26-gp .gp-volume{display:flex;align-items:center;gap:2px;direction:ltr}
.ts26-gp .gp-volume input{width:76px;accent-color:var(--ts-accent);cursor:pointer}
.ts26-gp .gp-mute.is-muted{color:var(--ts-danger,#D64545)}
.ts26-gp .gp-sep{width:1px;height:24px;margin:0 4px;background:var(--ts-line)}
.ts26-gp.is-loading-queue .gp-queue-toggle::after{content:"";position:absolute;inset:3px;border:2px solid transparent;border-top-color:var(--ts-accent);border-radius:10px;animation:ts26-spin .8s linear infinite}

/* queue panel */
.ts26-gp .gp-queue{position:absolute;inset-inline-end:max(16px,calc((100% - 1240px) / 2));bottom:calc(100% + 12px);width:min(380px,calc(100% - 32px));max-height:min(440px,60vh);display:flex;flex-direction:column;padding:12px;border-radius:20px;background:var(--ts-surface);box-shadow:0 24px 60px -20px rgba(6,40,38,.45),0 0 0 1px var(--ts-line)}
.ts26-gp .gp-queue-head{display:flex;align-items:center;justify-content:space-between;padding:2px 4px 10px}
.ts26-gp .gp-queue-head b{font-size:15px}
.ts26-gp .gp-queue-hide{width:32px;height:32px;border-radius:10px;color:var(--ts-muted)}
.ts26-gp .gp-queue-hide:hover{background:var(--ts-surface2)}
.ts26-gp .gp-queue-hide svg{width:16px;height:16px}
.ts26-gp .gp-queue-list{margin:0;padding:0;list-style:none;overflow:auto;scrollbar-width:thin}
.ts26-gp .gp-queue-item{display:grid!important;grid-template-columns:22px 44px minmax(0,1fr);align-items:center;gap:10px;width:100%;padding:7px!important;border-radius:14px;text-align:right;transition:background .2s}
.ts26-gp .gp-queue-item:hover{background:var(--ts-surface2)}
.ts26-gp .gp-queue-item.is-current{background:var(--ts-accent-soft)}
.ts26-gp .gp-queue-item.is-current .gp-queue-copy b{color:var(--ts-accent)}
.ts26-gp .gp-queue-number{font-size:12px;color:var(--ts-muted);text-align:center}
.ts26-gp .gp-queue-item img{width:44px;height:44px;border-radius:10px;object-fit:cover}
.ts26-gp .gp-queue-copy{display:grid;min-width:0;line-height:1.5}
.ts26-gp .gp-queue-copy b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ts26-gp .gp-queue-copy small{font-size:11px;color:var(--ts-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* minimised: only the disc stays */
.ts26-gp .gp-restore,.ts26-gp .gp-disc-pp{display:none}
.ts26-gp.is-minimized{inset:auto auto 20px 20px;width:64px;height:64px}
.ts26-gp.is-minimized::before,.ts26-gp.is-minimized .gp-shell,.ts26-gp.is-minimized .gp-queue{display:none!important}
.ts26-gp.is-minimized .gp-restore{position:relative;display:block;width:64px;height:64px;border-radius:50%;background:var(--ts-surface);box-shadow:0 14px 32px -10px rgba(6,40,38,.5);animation:ts26-gp-pop .3s var(--ts-ease)}
.ts26-gp .gp-ring{position:absolute;inset:0;width:64px;height:64px;transform:rotate(-90deg);stroke-width:3}
.ts26-gp .gp-ring circle{fill:none;stroke:var(--ts-line)}
.ts26-gp .gp-ring .gp-ring__p{stroke:var(--ts-accent);stroke-linecap:round;stroke-dasharray:188.5;stroke-dashoffset:188.5;transition:stroke-dashoffset .3s linear}
.ts26-gp .gp-restore-cover{position:absolute;inset:6px;width:52px;height:52px;border-radius:50%;object-fit:cover}
.ts26-gp.is-playing .gp-restore-cover{animation:ts26-spin 9s linear infinite}
.ts26-gp.is-minimized .gp-disc-pp{position:absolute;inset-inline-end:-4px;bottom:-4px;display:grid;width:26px;height:26px;border-radius:50%;background:var(--ts-accent);color:var(--ts-on-accent);box-shadow:0 0 0 3px var(--ts-surface)}
.ts26-gp .gp-disc-pp svg{width:11px;height:11px}
body.player-visible:has(.ts26-gp.is-minimized){padding-bottom:0}
@keyframes ts26-gp-pop{from{transform:scale(.6);opacity:0}to{transform:none;opacity:1}}
@keyframes ts26-spin{to{transform:rotate(360deg)}}

@media (max-width:980px){
	.ts26-gp .gp-volume,.ts26-gp .gp-autoplay{display:none}
}
@media (max-width:780px){
	.ts26-gp{bottom:env(safe-area-inset-bottom,0px)}
	body:has(.ts-app-nav) .ts26-gp{bottom:calc(58px + env(safe-area-inset-bottom,0px))}
	.ts26-gp .gp-shell{grid-template-columns:auto minmax(0,1fr) auto auto;gap:10px;width:calc(100% - 20px);padding:9px 0 8px}
	.ts26-gp .gp-cover{width:44px;height:44px;border-radius:12px}
	.ts26-gp .gp-copy b{font-size:13px}
	.ts26-gp .gp-copy small{font-size:11px}
	.ts26-gp .gp-times{display:none}
	.ts26-gp .gp-transport{gap:2px}
	.ts26-gp .gp-prev{display:none!important}
	.ts26-gp .gp-transport button{width:38px;height:38px}
	.ts26-gp .player-main{width:44px!important;height:44px!important}
	.ts26-gp .gp-tools{gap:0}
	.ts26-gp .gp-sep{display:none!important}
	.ts26-gp .gp-tools>button{width:36px;height:36px}
	.ts26-gp .gp-queue{inset-inline:10px;width:auto}
	body.player-visible{padding-bottom:140px}
	.ts26-gp.is-minimized{inset:auto auto calc(14px + env(safe-area-inset-bottom,0px)) 14px}
	body:has(.ts-app-nav) .ts26-gp.is-minimized{bottom:calc(72px + env(safe-area-inset-bottom,0px))}
}
@media (max-width:400px){.ts26-gp .gp-queue-toggle{display:none!important}}
@media (prefers-reduced-motion:reduce){.ts26-gp *{transition:none!important;animation:none!important}}

/* play buttons across the site: the old theme painted the playing state pink; use the palette */
html .js-play.is-playing,html .playlist-track-play.is-playing{background:var(--ts-accent)!important;color:var(--ts-on-accent)!important;transform:none}
