/* FarsKids unified download popup (song / album ZIP / album tracks / music video). Loaded last. */
html body .fk-dl,html body .fk-dl *{box-sizing:border-box}
html body .fk-dl{position:fixed!important;inset:0!important;z-index:2147483646!important;display:none!important;pointer-events:none!important;direction:rtl!important}
html body .fk-dl.is-open{display:flex!important;align-items:center;justify-content:center;pointer-events:auto!important;
  padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));overflow:hidden}
html body .fk-dl .fk-dl-backdrop{display:block!important;position:absolute;inset:0;background:rgba(8,6,14,.62);-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);animation:fkDlFade .25s ease both}
html body .fk-dl .fk-dl-dialog{position:relative!important;inset:auto!important;left:auto!important;top:auto!important;transform:none;width:100%!important;max-width:420px!important;min-width:0!important;margin:auto!important;padding:0!important;border:1px solid rgba(255,255,255,.1)!important;border-radius:24px!important;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);color:#fff!important;
  background:radial-gradient(120% 90% at 100% 0%,rgba(168,85,247,.28),transparent 58%),radial-gradient(90% 80% at 0% 100%,rgba(192,38,211,.16),transparent 60%),linear-gradient(180deg,#221b2e,#151219)!important;
  box-shadow:0 30px 80px -10px rgba(0,0,0,.75),0 0 0 1px rgba(168,85,247,.1) inset!important;animation:fkDlPop .38s cubic-bezier(.22,1.15,.36,1) both}
html body .fk-dl .fk-dl-dialog::before{content:"";position:absolute;left:24px;right:24px;top:-1px;height:2px;border-radius:2px;pointer-events:none;background:linear-gradient(90deg,transparent,#c026d3,#7c3aed,transparent)}
html body .fk-dl .fk-dl-inner{position:relative!important;padding:22px 18px 20px;min-width:0}
html body .fk-dl .fk-dl-close{position:absolute!important;display:flex!important;align-items:center;justify-content:center;top:12px;left:12px;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.08);color:#d8d2e6;cursor:pointer;transition:transform .3s ease,background .2s,color .2s;z-index:2}
html body .fk-dl .fk-dl-close:hover{background:rgba(255,255,255,.16);color:#fff;transform:rotate(90deg)}
html body .fk-dl .fk-dl-close svg{width:16px;height:16px;stroke:currentColor;stroke-width:2.2;fill:none;stroke-linecap:round}

html body .fk-dl .fk-dl-head{display:flex;align-items:center;gap:14px;padding:4px 0 18px;margin-bottom:6px;padding-left:40px;min-width:0}
/* Cover shows the WHOLE featured image: the box takes the image's own aspect ratio (--fk-ar), never a forced square crop. */
html body .fk-dl .fk-dl-cover{--fk-ar:1;position:relative;flex:0 0 auto;width:clamp(64px,calc(76px * var(--fk-ar)),136px);max-width:42%;aspect-ratio:var(--fk-ar);height:auto;border-radius:14px;overflow:hidden;background:linear-gradient(135deg,#7c3aed,#c026d3);box-shadow:0 12px 26px -12px rgba(168,85,247,.9);display:grid;place-items:center;color:#fff}
html body .fk-dl .fk-dl-cover.is-icon{width:64px;height:64px;aspect-ratio:1}
html body .fk-dl .fk-dl-cover img{width:100%;height:100%;object-fit:contain;display:block;background:#120e1a}
html body .fk-dl .fk-dl-cover svg{width:28px;height:28px;stroke:#fff;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html body .fk-dl .fk-dl-titles{min-width:0;flex:1 1 0;display:flex;flex-direction:column;gap:3px}
html body .fk-dl .fk-dl-kicker{font-size:11px;color:#c9a8ff;letter-spacing:.2px}
html body .fk-dl h2.fk-dl-name{display:block!important;margin:0!important;font-size:16px!important;line-height:1.5;font-weight:800;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .fk-dl .fk-dl-artist{font-size:12px;color:#a9a3b8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

html body .fk-dl .fk-dl-options{display:flex!important;flex-direction:column!important;gap:10px!important}
html body .fk-dl .fk-dl-opt{position:relative;width:100%!important;min-height:64px!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:14px!important;padding:12px 14px!important;border-radius:18px!important;text-decoration:none!important;color:#fff!important;overflow:hidden;
  background:rgba(255,255,255,.05)!important;border:1px solid rgba(255,255,255,.09)!important;transition:transform .25s cubic-bezier(.22,1.3,.36,1),background .25s,border-color .25s,box-shadow .3s!important;animation:fkDlItem .5s cubic-bezier(.22,1.2,.36,1) both}
html body .fk-dl .fk-dl-opt:nth-child(2){animation-delay:.06s}
html body .fk-dl .fk-dl-opt:hover{transform:translateY(-2px)!important;background:rgba(255,255,255,.09)!important;border-color:rgba(192,132,252,.5)!important;box-shadow:0 14px 28px -16px rgba(168,85,247,.8)!important}
html body .fk-dl .fk-dl-opt:active{transform:scale(.97)!important}
html body .fk-dl .fk-dl-opt-hq{background:linear-gradient(110deg,rgba(124,58,237,.95),rgba(192,38,211,.9))!important;border-color:rgba(255,255,255,.22)!important;box-shadow:0 16px 32px -16px rgba(192,38,211,.9),inset 0 1px 0 rgba(255,255,255,.25)!important}
html body .fk-dl .fk-dl-opt-hq:hover{background:linear-gradient(110deg,#8b4cf7,#d23be4)!important;border-color:rgba(255,255,255,.4)!important;box-shadow:0 18px 36px -14px rgba(192,38,211,1)!important}
html body .fk-dl .fk-dl-opt-hq::after{content:"";position:absolute;top:0;bottom:0;width:60px;left:-80px;background:linear-gradient(100deg,transparent,rgba(255,255,255,.28),transparent);transform:skewX(-18deg);animation:fkDlShine 3.2s 1s ease-in-out infinite}
html body .fk-dl .fk-dl-opt-ico{flex:0 0 42px;width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:rgba(255,255,255,.1)}
html body .fk-dl .fk-dl-opt-hq .fk-dl-opt-ico{background:rgba(255,255,255,.2)}
html body .fk-dl .fk-dl-opt-ico svg{width:22px;height:22px;fill:none;stroke:#fff;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
html body .fk-dl .fk-dl-opt-ico .ar{animation:fkDlArrow 1.4s ease-in-out infinite}
html body .fk-dl .fk-dl-opt:hover .fk-dl-opt-ico .ar{animation-duration:.7s}
html body .fk-dl .fk-dl-opt-txt{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
html body .fk-dl .fk-dl-opt-txt b{font-size:15px!important;font-weight:800!important;color:#fff;line-height:1.2}
html body .fk-dl .fk-dl-opt-txt small{font-size:11.5px!important;color:rgba(255,255,255,.72);font-weight:400!important}
html body .fk-dl .fk-dl-badge{flex:0 0 auto;font-size:10.5px;font-weight:800;padding:4px 9px;border-radius:999px;background:#fff;color:#7c1fb0}
html body .fk-dl .fk-dl-opt.is-disabled{opacity:.38!important;pointer-events:none!important}
html body .fk-dl .fk-dl-opt.is-started{border-color:#34d399!important}
html body .fk-dl .fk-dl-opt.is-started .fk-dl-opt-ico{background:#10b981!important}
html body .fk-dl .fk-dl-opt.is-started .fk-dl-opt-ico svg{display:none}
html body .fk-dl .fk-dl-opt.is-started .fk-dl-opt-ico::before{content:"";width:12px;height:7px;border-left:3px solid #fff;border-bottom:3px solid #fff;transform:rotate(-45deg) translate(1px,-1px);animation:fkDlCheck .35s ease both}
html body .fk-dl .fk-dl-note{margin:14px 2px 0;text-align:center;font-size:11px;color:#8f89a0}

html body.fk-download-modal-open{overflow:hidden!important}

/* small phones */
@media(max-width:380px){
  html body .fk-dl.is-open{padding:max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom))}
  html body .fk-dl .fk-dl-dialog{border-radius:20px!important;max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px)}
  html body .fk-dl .fk-dl-inner{padding:18px 14px 16px}
  html body .fk-dl .fk-dl-head{gap:11px;padding-left:36px}
  html body .fk-dl h2.fk-dl-name{font-size:15px!important}
  html body .fk-dl .fk-dl-opt{gap:10px!important;padding:10px 11px!important;min-height:58px!important}
  html body .fk-dl .fk-dl-opt-ico{flex-basis:38px;width:38px;height:38px;border-radius:12px}
  html body .fk-dl .fk-dl-badge{font-size:10px;padding:3px 8px}
}
/* short screens (landscape phones) */
@media(max-height:460px){
  html body .fk-dl .fk-dl-inner{padding:14px 16px 14px}
  html body .fk-dl .fk-dl-head{padding-bottom:10px}
  html body .fk-dl .fk-dl-cover{width:clamp(48px,calc(56px * var(--fk-ar)),100px)}
}
@keyframes fkDlFade{from{opacity:0}to{opacity:1}}
@keyframes fkDlSheet{from{transform:translateY(100%)}to{transform:none}}
@keyframes fkDlPop{from{opacity:0;transform:translateY(24px) scale(.94)}to{opacity:1;transform:none}}
@keyframes fkDlItem{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes fkDlShine{0%,55%{left:-80px}100%{left:130%}}
@keyframes fkDlArrow{0%,100%{transform:translateY(-1.5px)}50%{transform:translateY(2.5px)}}
@keyframes fkDlCheck{from{opacity:0;transform:rotate(-45deg) translate(1px,-1px) scale(.3)}to{opacity:1;transform:rotate(-45deg) translate(1px,-1px) scale(1)}}
@media(prefers-reduced-motion:reduce){html body .fk-dl *,html body .fk-dl{animation:none!important;transition:none!important}}

/* album track download button (replaces the old tiny dropdown) */
#ajax-content .fk-track-dl-open,.fk-track-dl-open{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border:0;border-radius:50%;background:rgba(68,64,60,.9);color:#fff;cursor:pointer;padding:0;flex-shrink:0;transition:background .2s,transform .25s cubic-bezier(.22,1.3,.36,1),box-shadow .25s}
.fk-track-dl-open:hover{background:linear-gradient(135deg,#7c3aed,#c026d3);transform:translateY(-2px);box-shadow:0 10px 20px -10px rgba(192,38,211,.9)}
.fk-track-dl-open:active{transform:scale(.9)}
.fk-track-dl-open svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
.fk-track-dl-open:hover svg .ar{animation:fkDlArrow .8s ease-in-out infinite}
