/* HZPlayer — mini bar + full sheet + word popover. Self-contained (own tokens with site fallbacks) so the app can reuse it. */
.hzp,.hzp-pop,.hzp-toast{
  --p-gold:var(--hz-gold,#E3A852);--p-gold-l:var(--hz-gold-light,#F2D48A);--p-gold-d:var(--hz-gold-deep,#B8862F);
  --p-navy:var(--hz-navy,#0A1F3D);--p-ink0:#04070E;--p-cream:#F4EAD8;--p-muted:#B9B0A0;--p-teal:var(--hz-teal,#1F7F90);--p-teal-l:var(--hz-teal-light,#5FC1CF);
  --p-band:var(--hz-band,linear-gradient(90deg,#B5183A,#E3A852,#0C7F5B,#E3A852,#B5183A));
  --p-ease:cubic-bezier(.2,.8,.2,1);
  font-family:Vazirmatn,Tahoma,system-ui,sans-serif;
}
.hzp[hidden]{display:none!important}
.hzp{position:fixed;inset:auto 0 0 0;z-index:70;color:var(--p-cream);line-height:1.6}
:where(.hzp) button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
:where(.hzp) a{color:inherit;text-decoration:none}
.hzp.is-open{z-index:95}
html.hzp-lock .hzc-fab{visibility:hidden}
.hzp svg{width:22px;height:22px;display:block;flex:none}
.hzp :focus-visible,.hzp-pop :focus-visible{outline:2.5px solid var(--p-gold);outline-offset:2px;border-radius:10px}
html.hzp-on body{padding-bottom:84px}
html.hzp-lock{overflow:hidden}

/* ---------------- mini bar ---------------- */
.hzp-bar{position:relative;background:linear-gradient(180deg,rgba(13,39,72,.97),rgba(7,20,40,.985));-webkit-backdrop-filter:blur(18px) saturate(1.3);backdrop-filter:blur(18px) saturate(1.3);box-shadow:0 -18px 40px -24px rgba(0,0,0,.75);animation:hzp-rise .5s var(--p-ease) both}
@keyframes hzp-rise{from{transform:translateY(100%)}}
.hzp-bar__band{position:absolute;inset:-6px 0 auto;height:6px;background:var(--p-band) repeat-x center/auto 250%;pointer-events:none}
.hzp-bar__line{display:none;position:absolute;inset:0 0 auto;height:3px;background:rgba(255,255,255,.12);direction:ltr}
.hzp-bar__line i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--p-gold-d),var(--p-gold-l));transition:width .25s linear}
.hzp-bar__in{max-width:1400px;margin-inline:auto;height:78px;padding-inline:clamp(12px,2.2vw,32px);display:grid;grid-template-columns:minmax(200px,1.15fr) auto minmax(220px,2fr) auto;align-items:center;gap:clamp(10px,1.6vw,24px)}
.hzp-now{display:flex;align-items:center;gap:12px;min-width:0;text-align:start;border-radius:14px;padding:4px}
.hzp-now:hover .hzp-now__art img{transform:scale(1.04)}
.hzp-now__art{position:relative;width:52px;height:52px;border-radius:12px;overflow:hidden;flex:none;box-shadow:0 0 0 1.5px rgba(242,212,138,.35),0 8px 18px -8px #000;background:#15304f}
.hzp-now__art img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s}
.hzp-now__txt{display:grid;min-width:0}
.hzp-now__txt b{font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#FFF4D8}
.hzp-now__txt small{font-size:12.5px;color:var(--p-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hzp-now__src:not(:empty)::before{content:" · "}
.hzp-eq{position:absolute;inset:auto 0 0;height:60%;display:none;align-items:flex-end;justify-content:center;gap:3px;padding:0 0 7px;background:linear-gradient(transparent,rgba(4,7,14,.72))}
.hzp-eq i{width:4px;border-radius:2px;background:var(--p-gold-l);height:30%;animation:hzp-eq 1s ease-in-out infinite}
.hzp-eq i:nth-child(2){animation-delay:-.35s}.hzp-eq i:nth-child(3){animation-delay:-.7s}
@keyframes hzp-eq{0%,100%{height:22%}50%{height:85%}}
.hzp.is-playing .hzp-eq{display:flex}

.hzp-ctl{display:flex;align-items:center;gap:6px}
.hzp-b{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:50%;transition:background .2s,transform .2s,color .2s;position:relative;flex:none}
.hzp-b:hover{background:rgba(255,255,255,.09)}
.hzp-b:active{transform:scale(.92)}
.hzp-b--sm svg{width:20px;height:20px}
.hzp-b--ghost{color:#DCD2C0}
.hzp-b--ghost:hover{color:#fff}
.hzp-b--play{width:48px;height:48px;color:#2A1A04;background:linear-gradient(180deg,#F7DE9C,#E3A852 55%,#C58E38);box-shadow:0 8px 22px -10px rgba(227,168,82,.9),inset 0 1px 0 rgba(255,255,255,.5)}
.hzp-b--play:hover{background:linear-gradient(180deg,#FFE7AA,#EDB45C 55%,#C58E38)}
.hzp-b--play svg{width:24px;height:24px}
.hzp-b--xl{width:72px;height:72px}
.hzp-b--xl svg{width:32px;height:32px}
.hzp.is-loading .hzp-b--play::after{content:"";position:absolute;inset:-4px;border-radius:50%;border:2.5px solid transparent;border-top-color:var(--p-gold-l);animation:hzp-spin .8s linear infinite}
@keyframes hzp-spin{to{transform:rotate(360deg)}}
.hzp-b[aria-pressed=true]{color:var(--p-gold-l)}
.hzp-b[aria-pressed=true]::before{content:"";position:absolute;bottom:4px;width:4px;height:4px;border-radius:50%;background:currentColor}
.hzp-rep i{position:absolute;top:6px;inset-inline-end:6px;font-style:normal;font-size:10px;font-weight:700;line-height:1;display:none}
.hzp-rep.is-one i{display:block}
.hzp-badge:not(:empty){position:absolute;top:3px;inset-inline-end:2px;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:var(--hz-crimson,#B5183A);color:#fff;font-size:10.5px;font-weight:700;line-height:17px;text-align:center}

.hzp-seek{display:flex;align-items:center;gap:10px;min-width:0}
.hzp-t{font-size:12.5px;color:var(--p-muted);font-variant-numeric:tabular-nums;min-width:38px;text-align:center}
.hzp-range{--p:0%;-webkit-appearance:none;appearance:none;flex:1;min-width:0;height:18px;background:transparent;cursor:pointer;margin:0}
.hzp-range::-webkit-slider-runnable-track{height:5px;border-radius:5px;background:linear-gradient(90deg,var(--p-gold-d),var(--p-gold-l) var(--p),rgba(255,255,255,.17) var(--p))}
.hzp-range::-moz-range-track{height:5px;border-radius:5px;background:linear-gradient(90deg,var(--p-gold-d),var(--p-gold-l) var(--p),rgba(255,255,255,.17) var(--p))}
.hzp-range::-webkit-slider-thumb{-webkit-appearance:none;width:15px;height:15px;margin-top:-5px;border-radius:50%;background:#FFF4D8;box-shadow:0 0 0 3px rgba(227,168,82,.45);opacity:0;transition:opacity .2s}
.hzp-range::-moz-range-thumb{width:14px;height:14px;border:0;border-radius:50%;background:#FFF4D8;box-shadow:0 0 0 3px rgba(227,168,82,.45)}
.hzp-range:hover::-webkit-slider-thumb,.hzp-range:focus-visible::-webkit-slider-thumb{opacity:1}
.hzp-range--vol{flex:none;width:86px}
.hzp-tools{display:flex;align-items:center;gap:2px}
.hzp-vol{display:flex;align-items:center;gap:2px}

@media (max-width:900px){
  .hzp-bar__in{grid-template-columns:minmax(0,1fr) auto auto;height:66px;gap:6px}
  .hzp-hide-m{display:none!important}
  .hzp-bar__line{display:block}
  .hzp-now__art{width:46px;height:46px}
  html.hzp-on body{padding-bottom:72px}
}

/* ---------------- full sheet ---------------- */
.hzp-sheet{position:fixed;inset:0;z-index:90;display:flex;flex-direction:column;background:radial-gradient(120% 90% at 20% 0%,#123862 0%,#0A1F3D 45%,#04070E 100%);color:var(--p-cream);transform:translateY(102%);visibility:hidden;transition:transform .5s var(--p-ease),visibility 0s linear .5s;overflow:hidden}
.hzp.is-open .hzp-sheet{transform:none;visibility:visible;transition:transform .5s var(--p-ease),visibility 0s}
html.admin-bar .hzp-sheet{top:32px}
@media (max-width:782px){html.admin-bar .hzp-sheet{top:46px}}
.hzp-sheet__bg{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.hzp-sheet__bg img{position:absolute;inset:-15%;width:130%;height:130%;object-fit:cover;filter:blur(70px) saturate(1.5);opacity:.32}
.hzp-glow{position:absolute;inset:0;background:radial-gradient(40% 45% at 28% 40%,rgba(242,212,138,.22),transparent 70%),radial-gradient(45% 40% at 75% 75%,rgba(95,193,207,.16),transparent 70%);animation:hzp-glow 9s ease-in-out infinite alternate}
@keyframes hzp-glow{to{transform:scale(1.12) translate(2%,-2%);opacity:.75}}
.hzp-sea{position:absolute;inset:auto 0 0;width:200%;height:110px}
.hzp-sea path:first-child{fill:rgba(31,127,144,.18);animation:hzp-sea 16s linear infinite}
.hzp-sea path:last-child{fill:rgba(31,127,144,.28);animation:hzp-sea 11s linear infinite reverse}
@keyframes hzp-sea{to{transform:translateX(-50%)}}
.hzp-sheet__top{position:relative;z-index:2;display:flex;align-items:center;gap:12px;padding:12px clamp(14px,3vw,36px);border-bottom:1px solid rgba(242,212,138,.1)}
.hzp-sheet__top::after{content:"";position:absolute;inset:auto 0 -4px;height:4px;background:var(--p-band) repeat-x center/auto 250%;opacity:.85}
.hzp-sheet__kick{flex:1;text-align:center;font-weight:700;color:var(--p-gold-l);letter-spacing:.02em}
.hzp-srcchip{display:inline-flex;align-items:center;gap:6px;max-width:44vw;padding:5px 12px;border-radius:99px;background:rgba(255,255,255,.07);border:1px solid rgba(242,212,138,.25);font-size:13px;color:#F2D48A!important}
.hzp-srcchip span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hzp-srcchip svg{width:16px;height:16px}
.hzp-srcchip[hidden]{display:none}
.hzp-sheet__body{position:relative;z-index:1;flex:1;min-height:0;width:100%;max-width:1320px;margin-inline:auto;display:grid;grid-template-columns:minmax(330px,1fr) minmax(360px,1.12fr);gap:clamp(24px,4vw,56px);padding:clamp(14px,2.5vw,32px) clamp(14px,3vw,36px) clamp(18px,3vw,36px)}
.hzp-stage{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:0;text-align:center}
.hzp-art{position:relative;width:min(360px,40vh,78vw);aspect-ratio:1;margin-inline-end:min(70px,12vw);flex:none}
.hzp-art__img{position:relative;z-index:2;width:100%;height:100%;object-fit:cover;border-radius:24px;box-shadow:0 30px 60px -24px rgba(0,0,0,.85),0 0 0 1px rgba(242,212,138,.25);background:#15304f}
.hzp-disc{position:absolute;z-index:1;top:5%;bottom:5%;inset-inline-start:24%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,#0b0b0e 0 17%,transparent 17.5%),repeating-radial-gradient(circle,#16161b 0 2px,#0c0c10 2px 4px);box-shadow:0 20px 40px -18px #000,inset 0 0 0 2px rgba(255,255,255,.04);transition:inset-inline-start .6s var(--p-ease)}
.hzp-disc i{position:absolute;inset:34%;border-radius:50%;background:radial-gradient(circle,#0A1F3D 0 13%,transparent 14%),conic-gradient(from 0deg,#B5183A,#E3A852,#0C7F5B,#E3A852,#B5183A)}
.hzp-disc::after{content:"";position:absolute;inset:0;border-radius:50%;background:linear-gradient(115deg,transparent 35%,rgba(255,255,255,.1) 48%,transparent 60%)}
.hzp.is-playing .hzp-disc{inset-inline-start:34%;animation:hzp-rot 6s linear infinite}
@keyframes hzp-rot{to{transform:rotate(-360deg)}}
.hzp-meta{display:grid;justify-items:center;gap:2px;max-width:100%}
.hzp-meta h2{margin:6px 0 0;font-size:clamp(21px,2.4vw,28px);font-weight:900;line-height:1.4;color:#FFF4D8;overflow-wrap:anywhere}
.hzp-meta__artist{color:var(--p-gold-l)!important;font-weight:600}
.hzp-meta__artist:hover{text-decoration:underline}
.hzp-demo{display:inline-block;margin-top:4px;padding:1px 10px;border-radius:99px;background:rgba(181,24,58,.25);border:1px solid rgba(255,156,203,.4);color:#FFC7DB;font-size:12px}
.hzp-demo[hidden]{display:none}
.hzp-wave{width:100%;max-width:520px;height:58px;cursor:pointer;touch-action:none;border-radius:8px}
.hzp-wave canvas{width:100%;height:100%;display:block}
.hzp-times{display:flex;justify-content:space-between;width:100%;max-width:520px;font-size:12.5px;color:var(--p-muted);font-variant-numeric:tabular-nums;margin-top:-6px}
.hzp-ctl--big{gap:clamp(6px,1.4vw,16px);margin-top:2px}
.hzp-ctl--big .hzp-b:not(.hzp-b--xl){width:50px;height:50px}
.hzp-ctl--big .hzp-b:not(.hzp-b--xl) svg{width:26px;height:26px}
.hzp-extra{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:4px}
.hzp-pill{display:inline-flex;align-items:center;gap:7px;padding:8px 16px;border-radius:99px;background:linear-gradient(180deg,#F7DE9C,#E3A852 55%,#C58E38);color:#2A1A04!important;font-weight:700;font-size:14px}
.hzp-pill svg{width:18px;height:18px}
.hzp-pill--ghost{background:rgba(255,255,255,.07);color:var(--p-cream)!important;border:1px solid rgba(242,212,138,.25);font-weight:600}
.hzp-pill:hover{filter:brightness(1.06)}

.hzp-side{display:flex;flex-direction:column;min-height:0;background:rgba(255,255,255,.045);border:1px solid rgba(242,212,138,.13);border-radius:22px;overflow:hidden;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.hzp-tabs{display:flex;gap:4px;padding:8px 8px 0;border-bottom:1px solid rgba(242,212,138,.12)}
.hzp-tab{display:inline-flex;align-items:center;gap:7px;padding:10px 14px;border-radius:12px 12px 0 0;color:#CFC5B3;font-weight:600;font-size:14.5px;position:relative}
.hzp-tab svg{width:18px;height:18px}
.hzp-tab[aria-selected=true]{color:#FFF4D8;background:rgba(255,255,255,.06)}
.hzp-tab[aria-selected=true]::after{content:"";position:absolute;inset:auto 12px -1px;height:3px;border-radius:3px;background:var(--p-gold)}
.hzp-panel{flex:1;min-height:0;display:flex;flex-direction:column}
.hzp-panel[hidden]{display:none}
.hzp-seg{display:flex;gap:4px;margin:12px 14px 4px;padding:4px;border-radius:12px;background:rgba(0,0,0,.25);align-self:flex-start;flex-wrap:wrap}
.hzp-seg[hidden]{display:none}
.hzp-seg button{padding:5px 12px;border-radius:9px;font-size:13px;color:#CFC5B3}
.hzp-seg button[aria-pressed=true]{background:var(--p-gold);color:#2A1A04;font-weight:700}
.hzp-lyrics{flex:1;min-height:0;overflow-y:auto;padding:6px 14px 40px;scroll-behavior:smooth;scrollbar-width:thin;scrollbar-color:rgba(242,212,138,.35) transparent}
.hzp-hint{margin:4px 4px 10px;font-size:12.5px;color:var(--p-muted)}
.hzp-muted{color:var(--p-muted)}
.hzp-line{position:relative;padding:9px 14px;border-radius:14px;transition:background .35s,opacity .35s}
.hzp-line--gap{height:14px;padding:0}
.hzp-line__b{margin:0;font-size:clamp(17px,1.5vw,20px);font-weight:700;line-height:1.85;color:#F7EEDC}
.hzp-line__f{margin:2px 0 0;font-size:14.5px;line-height:1.8;color:#9FB6CB}
.hzp-lyrics.is-timed .hzp-line{opacity:.6}
.hzp-lyrics.is-timed .hzp-line.is-past{opacity:.45}
.hzp-lyrics .hzp-line.is-now{opacity:1;background:linear-gradient(90deg,rgba(242,212,138,.04),rgba(242,212,138,.13));box-shadow:inset -3px 0 0 var(--p-gold)}
.hzp-lyrics .hzp-line.is-now .hzp-line__b{color:var(--p-gold-l)}
.hzp-lyrics[data-view=bnd] .hzp-line__f{display:none}
.hzp-lyrics[data-view=fa] .hzp-line__b{display:none}
.hzp-lyrics[data-view=fa] .hzp-line__f{font-size:17px;color:#E9E1D2}
.hzp-ts{float:left;margin:6px 0 0 4px;padding:0 7px;border-radius:7px;background:rgba(255,255,255,.07);color:var(--p-muted)!important;font-size:11.5px!important;font-variant-numeric:tabular-nums;direction:ltr}
.hzp-ts:hover{color:var(--p-gold-l)!important}
.hzp-w{font:inherit;color:inherit;background:none;border:0;padding:0 1px;margin:0;border-radius:6px;cursor:help;line-height:inherit;text-decoration:underline dotted transparent;text-underline-offset:6px;transition:background .2s,text-decoration-color .2s}
.hzp-w:hover,.hzp-w:focus-visible{text-decoration-color:var(--hz-gold,#E3A852)}
.hzp-w.is-on{background:rgba(242,212,138,.28)}
.hzp-nolyrics{display:grid;justify-items:center;gap:6px;padding:40px 12px;color:var(--p-muted);text-align:center}
.hzp-nolyrics svg{width:40px;height:40px;opacity:.5}

.hzp-queue{list-style:none;margin:0;padding:8px;overflow-y:auto;flex:1;min-height:0}
.hzp-queue li{display:flex;align-items:center;gap:4px;border-radius:14px;transition:background .2s}
.hzp-queue li:hover{background:rgba(255,255,255,.05)}
.hzp-queue li.is-cur{background:rgba(242,212,138,.12)}
.hzp-queue li.is-broken{opacity:.45}
.hzp-queue li.is-broken .hzp-q__txt b{text-decoration:line-through}
.hzp-q__main{flex:1;min-width:0;display:flex;align-items:center;gap:10px;padding:7px 8px;text-align:start}
.hzp-q__n{width:20px;font-size:12px;color:var(--p-muted);text-align:center;flex:none}
.hzp-queue li.is-cur .hzp-q__n{color:var(--p-gold-l)}
.hzp-q__main img{width:42px;height:42px;border-radius:9px;object-fit:cover;flex:none;background:#15304f}
.hzp-q__txt{display:grid;min-width:0;flex:1}
.hzp-q__txt b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hzp-q__txt small{font-size:12px;color:var(--p-muted)}
.hzp-q__d{font-size:12px;color:var(--p-muted);font-variant-numeric:tabular-nums}
.hzp-q__x{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;color:var(--p-muted);flex:none}
.hzp-q__x:hover{background:rgba(255,255,255,.08);color:#fff}
.hzp-q__x svg{width:16px;height:16px}
.hzp-empty{padding:30px;text-align:center;color:var(--p-muted)}
.hzp-clear{margin:4px 14px 14px;align-self:flex-start;font-size:13px;color:var(--p-muted);text-decoration:underline;text-underline-offset:4px}

@media (max-width:900px){
  .hzp-sheet__body{display:block;overflow-y:auto;padding-bottom:40px}
  .hzp-stage{padding-top:6px}
  .hzp-art{width:min(300px,64vw,40vh)}
  .hzp-side{margin-top:22px;min-height:70vh}
  .hzp-lyrics{max-height:66vh}
  .hzp-queue{max-height:66vh}
  .hzp-ctl--big .hzp-b:not(.hzp-b--xl){width:46px;height:46px}
}

/* ---------------- word popover ---------------- */
.hzp-pop{position:fixed;z-index:100;width:max-content;min-width:200px;padding:12px 14px 13px;border-radius:16px;background:#FFF8EC;color:#1A1F2E;border:1px solid #E7CF9C;box-shadow:0 22px 50px -18px rgba(10,31,61,.6);font-size:14.5px;line-height:1.75;animation:hzp-pop .18s var(--p-ease)}
.hzp-pop[hidden]{display:none}
@keyframes hzp-pop{from{opacity:0;transform:translateY(-4px)}}
.hzp-pop::before{content:"";position:absolute;top:-7px;left:calc(var(--ax,50%) - 7px);width:12px;height:12px;background:#FFF8EC;border-inline-start:1px solid #E7CF9C;border-top:1px solid #E7CF9C;transform:rotate(45deg)}
.hzp-pop.is-up::before{top:auto;bottom:-7px;transform:rotate(225deg)}
.hzp-pop__head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.hzp-pop__head b{font-size:19px;font-weight:900;color:#0A1F3D}
.hzp-pop__x{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;border:0;background:transparent;color:#76716A;cursor:pointer}
.hzp-pop__x:hover{background:#F3E8D2}
.hzp-pop__x svg{width:15px;height:15px}
.hzp-pop p{margin:4px 0 0}
.hzp-pop__head2{font-size:12.5px;color:#76716A}
.hzp-pop__mean{font-weight:700;color:#16687A;font-size:16px}
.hzp-pop__all{font-size:13px;color:#46505F}
.hzp-pop__an{font-size:12.5px;color:#76716A}
.hzp-pop .hzp-muted{color:#76716A}
.hzp-pop__go{display:inline-flex;align-items:center;gap:6px;margin-top:8px;padding:5px 12px;border-radius:99px;background:#0A1F3D;color:#F2D48A!important;font-size:13px;font-weight:600;text-decoration:none!important}
.hzp-pop__go svg{width:16px;height:16px}
.hzp-pop__go:hover{background:#16687A}

/* ---------------- toast (when the site's HZ.toast is absent) ---------------- */
.hzp-toast{position:fixed;z-index:110;inset:auto 50% 100px auto;transform:translate(50%,20px);max-width:min(92vw,460px);padding:10px 18px;border-radius:14px;background:#0A1F3D;color:#F4EAD8;box-shadow:0 18px 40px -16px #000;font-size:14px;opacity:0;pointer-events:none;transition:opacity .25s,transform .25s}
.hzp-toast.is-on{opacity:1;transform:translate(50%,0)}

@media (prefers-reduced-motion:reduce){
  .hzp-bar,.hzp-glow,.hzp-sea path,.hzp-eq i,.hzp.is-playing .hzp-disc{animation:none!important}
  .hzp-sheet,.hzp-disc{transition:none}
}

/* site integration: lift other floating things above the bar */
html.hzp-on .hzc-fab{--hzc-lift:84px!important}
html.hzp-on .hz-toasts{bottom:calc(96px + env(safe-area-inset-bottom))}
@media (max-width:900px){html.hzp-on .hzc-fab{--hzc-lift:72px!important}html.hzp-on .hz-toasts{bottom:calc(80px + env(safe-area-inset-bottom))}}
