:root{
  --z9-bg:#f5f4fa;
  --z9-panel:#ffffff;
  --z9-panel-2:#f7f6fc;
  --z9-panel-3:#efebfb;
  --z9-line:#e7e3f2;
  --z9-line-2:#d9d2ec;
  --z9-text:#1c1b24;
  --z9-text-2:#5b5868;
  --z9-muted:#6e6b7a;
  --z9-accent:#7c5cff;
  --z9-accent-2:#6544e6;
  --z9-accent-btn:#5f3fe0;
  --z9-accent-soft:rgba(124,92,255,.12);
  --z9-like:#e0555a;
  --z9-like-soft:rgba(224,85,90,.12);
  --z9-hd-bg:rgba(255,255,255,.92);
  --z9-player-bg:rgba(255,255,255,.97);
  --z9-player-track:rgba(20,15,40,.08);
  --z9-player-track-2:rgba(20,15,40,.16);
  --z9-player-hover:rgba(20,15,40,.06);
  --z9-r:14px;
  --z9-r-sm:10px;
  --z9-gap:16px;
  --z9-maxw:900px;
  --z9-shadow-sm:0 1px 3px rgba(30,20,60,.08);
  --z9-shadow-lg:0 4px 16px rgba(30,20,60,.1);
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
html,body{overflow-x:hidden}
html{background:var(--z9-bg)}
body{
  margin:0;width:100%;background:var(--z9-bg);color:var(--z9-text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:15px;line-height:1.45;-webkit-font-smoothing:antialiased;
}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
a{color:var(--z9-text);text-decoration:none}
img{max-width:100%;display:block}
button{font:inherit;cursor:pointer}
::selection{background:var(--z9-accent);color:#fff}
.ignore-select{user-select:none;-webkit-user-select:none}

.z9-wrap{max-width:var(--z9-maxw);margin:0 auto;padding:0 16px}

/* ---------- header (ported from tatarskiepesni.ru's .header/.header-in/.search/.nav) ---------- */
.z9-hd{position:sticky;top:0;z-index:50;width:100%;background:var(--z9-panel);backdrop-filter:blur(8px);border-bottom:1px solid var(--z9-line)}
.z9-hd-i{display:flex;align-items:center;width:100%;gap:10px;min-height:56px;padding-top:6px;padding-bottom:6px}
.z9-brand{display:inline-flex;align-items:center;gap:8px;font-size:19px;font-weight:800;letter-spacing:.1px;flex:none;white-space:nowrap;min-width:0}
.z9-brand-ic{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:linear-gradient(135deg,var(--z9-accent),var(--z9-accent-2));color:#fff;font-size:13px;flex:none;box-shadow:0 3px 10px rgba(124,92,255,.35)}
.z9-brand-t{background:linear-gradient(135deg,var(--z9-accent),var(--z9-accent-2));-webkit-background-clip:text;background-clip:text;color:transparent}
/* the search field must never shrink past what its own round submit button (36px + 4px inset each side)
   needs, or that button pokes outside the field and visually overlaps whatever sits next to it —
   that's what caused icons to pile on top of each other on very narrow screens */
.z9-src{flex:1;min-width:48px}
.z9-src-i{position:relative;height:44px}
.z9-src-i input[type="text"]{
  width:100%;height:44px;border:1px solid var(--z9-line);border-radius:999px;padding:0 44px 0 14px;
  background:var(--z9-bg);box-shadow:none;color:var(--z9-text);font-size:15px;
  transition:border-color .15s;
}
.z9-src-i input[type="text"]::placeholder{color:var(--z9-muted)}
.z9-src-i input[type="text"]:focus{outline:none;border-color:var(--z9-accent);box-shadow:inset 0 0 0 1px var(--z9-accent)}
.z9-src-btn{
  position:absolute;right:4px;top:4px;width:36px;height:36px;border:0;border-radius:50%;
  display:flex;align-items:center;justify-content:center;background:transparent;color:var(--z9-muted);
}
.z9-src-btn:hover{background:var(--z9-panel-3);color:var(--z9-text)}
.z9-acc{
  position:relative;flex:none;width:36px;height:36px;border:0;padding:0;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:transparent;color:var(--z9-text-2);font-size:15px;cursor:pointer;transition:background .15s,color .15s;
}
.z9-acc:hover{background:var(--z9-panel-3);color:var(--z9-text)}
.z9-pl-badge{position:absolute;top:-2px;right:-2px;min-width:15px;height:15px;padding:0 3px;border-radius:999px;background:var(--z9-accent);color:#fff;font-size:10px;font-weight:700;line-height:15px;text-align:center}

/* on very narrow screens, shrink the brand and icon buttons a bit so the search field keeps enough
   room to never collapse onto its own button (see .z9-src above) */
@media(max-width:360px){
  .z9-hd-i{gap:6px}
  .z9-brand{font-size:16px;gap:6px}
  .z9-brand-ic{width:26px;height:26px;font-size:11px}
  .z9-acc{width:32px;height:32px}
}

/* ---------- playlist panel ---------- */
.z9-pl-overlay{position:fixed;inset:0;background:rgba(10,10,20,.55);z-index:210;display:none}
.z9-pl-overlay.is-open{display:block}
.z9-pl-panel{position:fixed;top:0;right:0;bottom:0;width:380px;max-width:92vw;background:var(--z9-panel);z-index:211;display:flex;flex-direction:column;transform:translateX(100%);transition:transform .2s}
.z9-pl-overlay.is-open .z9-pl-panel{transform:translateX(0)}
.z9-pl-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px;border-bottom:1px solid var(--z9-line);flex:none}
.z9-pl-head h2{margin:0}
.z9-pl-head-acts{display:flex;align-items:center;gap:8px;flex:none}
.z9-pl-clear{flex:none;border:0;padding:0 10px;height:32px;border-radius:999px;background:transparent;color:var(--z9-muted);font-size:12.5px;cursor:pointer}
.z9-pl-clear:hover{background:var(--z9-like-soft);color:var(--z9-like)}
/* armed state (one click away from actually clearing) — same warm red already used for likes, so it
   reads as "this is the destructive action" without introducing a new color. */
.z9-pl-clear.is-confirm{background:var(--z9-like-soft);color:var(--z9-like);font-weight:600}
.z9-pl-close{flex:none;width:32px;height:32px;border:0;padding:0;border-radius:50%;background:transparent;color:var(--z9-muted);display:flex;align-items:center;justify-content:center;cursor:pointer}
.z9-pl-close:hover{background:var(--z9-panel-3);color:var(--z9-text)}
.z9-pl-list{flex:1;overflow-y:auto;padding:8px}
.z9-pl-empty{padding:30px 16px;text-align:center;color:var(--z9-muted);font-size:14px}
.z9-pl-item{display:flex;align-items:center;gap:10px;padding:8px;border-radius:var(--z9-r-sm)}
.z9-pl-item:hover{background:var(--z9-panel-2)}
.z9-pl-cover{position:relative;flex:none;width:44px;height:44px;border:0;padding:0;border-radius:8px;overflow:hidden;cursor:pointer;background:var(--z9-panel-2)}
.z9-pl-cover img{width:100%;height:100%;object-fit:cover;display:block}
.z9-pl-play-ic{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(10,10,12,.35);color:#fff;font-size:14px;opacity:0;transition:opacity .15s}
.z9-pl-cover:hover .z9-pl-play-ic{opacity:1}
.z9-pl-play-ic .z9-ic-pause{display:none}
.z9-pl-play-ic .fa-play{position:relative;left:1px}
.z9-pl-item.js-item-current .z9-pl-play-ic{opacity:1}
.z9-pl-item.js-item-played .z9-pl-play-ic{opacity:1}
.z9-pl-item.js-item-played .z9-pl-play-ic .z9-ic-play{display:none}
.z9-pl-item.js-item-played .z9-pl-play-ic .z9-ic-pause{display:flex}
.z9-pl-item.js-item-current{background:var(--z9-accent-soft)}
.z9-pl-item.js-item-current .z9-pl-title{color:var(--z9-accent)}
.z9-pl-body{flex:1;min-width:0;display:flex;flex-direction:column;border:0;padding:0;background:transparent;text-align:left;cursor:pointer;font:inherit}
.z9-pl-title{font-size:14px;font-weight:600;color:var(--z9-text)}
.z9-pl-artist{font-size:12px;color:var(--z9-muted);margin-top:1px}
.z9-pl-remove{flex:none;width:30px;height:30px;border:0;padding:0;border-radius:50%;background:transparent;color:var(--z9-muted);display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:13px}
.z9-pl-remove:hover{background:var(--z9-like-soft);color:var(--z9-like)}
@media(max-width:600px){
  .z9-pl-panel{width:100%;max-width:100%}
}

.z9-nav{border-bottom:1px solid var(--z9-line);background:var(--z9-panel);position:relative;width:100%}
.z9-nav-i{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;width:100%;padding:6px 16px}
/* playlist + account icons, sharing the nav row's right side with the hamburger button (mobile) or the
   inline category list (desktop, see the min-width block below) on the left */
.z9-nav-tools{display:flex;align-items:center;gap:8px;flex:none}
.z9-nav-toggle{
  display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 10px;border-radius:10px;
  background:none;border:0;color:var(--z9-text-2);font-family:inherit;
  font-size:14px;font-weight:600;cursor:pointer;transition:background .15s,color .15s;min-width:0;
}
.z9-nav-toggle:hover{background:var(--z9-panel-3);color:var(--z9-text)}
.z9-nav-toggle i{font-size:15px;flex:none}
.z9-nav-cur{color:var(--z9-accent);font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* mobile: a dropdown under the toggle+tools row — order:3 keeps it visually last regardless of where it
   sits in the markup, and width:100% forces it onto its own wrapped row when open */
.z9-nav-panel{
  display:none;order:3;width:100%;flex-direction:column;
  background:var(--z9-panel);border-top:1px solid var(--z9-line);margin-top:6px;
}
.z9-nav.is-open .z9-nav-panel{display:flex}
.z9-nav-panel a{
  display:flex;align-items:center;height:44px;padding:0 18px;border-bottom:1px solid var(--z9-line);
  color:var(--z9-text-2);font-size:14px;font-weight:500;white-space:nowrap;transition:background .15s,color .15s;
}
.z9-nav-panel a:last-child{border-bottom:0}
.z9-nav-panel a:hover{background:var(--z9-panel-3);color:var(--z9-text)}
.z9-nav-panel a.is-active{background:var(--z9-accent-soft);color:var(--z9-accent);font-weight:700}

/* desktop: enough width for every category to sit in one row, so the hamburger/dropdown is unnecessary —
   the panel becomes a plain inline row on the left, tools stay on the right, same single nav line */
@media(min-width:860px){
  .z9-nav-toggle{display:none}
  .z9-nav-panel{
    display:flex!important;order:0;width:auto;flex-direction:row;flex-wrap:wrap;
    background:none;border-top:0;margin-top:0;gap:4px;
  }
  .z9-nav-panel a{height:34px;padding:0 10px;border-radius:10px;border-bottom:0}
  .z9-nav-tools{order:1}
}

/* ---------- layout ---------- */
.z9-page{min-height:100%;width:100%;display:flex;flex-direction:column}
.z9-body{flex:1;width:100%;padding:20px 16px 40px}
.z9-main{display:block}

/* no panel here on purpose — tatarskiepesni.ru doesn't box its card list, just spaces it on the page background */
.z9-blk{margin:0 0 18px}
.z9-crumbs{font-size:13px;color:var(--z9-muted);margin:0 0 16px;display:flex;align-items:center;gap:8px}
.z9-crumbs a{color:var(--z9-muted)}
.z9-crumbs a:hover{color:var(--z9-accent)}
.z9-crumbs-sep{opacity:.6}
.z9-section{margin:0 0 28px}
.z9-section-h{display:flex;align-items:center;gap:8px;font-size:17px;font-weight:700;color:var(--z9-text);margin:0 0 14px}
.z9-blk-h{display:flex;align-items:center;margin:0 0 12px}
.z9-blk-h1{display:flex;align-items:center;justify-content:space-between;margin:0 0 12px}
.z9-blk-t{font-size:21px;font-weight:700;color:var(--z9-text)}
.z9-blk-c{color:var(--z9-text-2)}
.z9-cap{text-transform:capitalize}
.z9-info,.z9-note{font-size:14px;line-height:1.6;color:var(--z9-text-2)}
.z9-note h2{font-size:16px;margin:0 0 10px;color:var(--z9-text)}
.z9-note p{margin:0 0 12px}
/* the admin-set category description ({category-description}) is plain text with blank-line paragraph
   breaks, not real <p> tags — preserve those breaks visually without needing to touch the DLE tag output */
.z9-cat-descr{white-space:pre-line}

.z9-more{
  display:block;text-align:center;margin-top:12px;padding:11px;border-radius:var(--z9-r-sm);
  background:var(--z9-panel-2);color:var(--z9-text-2);font-weight:600;font-size:13px;
}
.z9-more:hover{background:var(--z9-panel-3);color:var(--z9-text)}

/* ---------- ad slot ---------- */
.z9-ad{display:flex;align-items:center;justify-content:center;border-radius:var(--z9-r-sm);overflow:hidden}
.z9-ad:not(:empty){min-height:100px;margin:0 0 16px}
.z9-ad:empty{min-height:0;margin:0;height:0;overflow:hidden}

/* ---------- self-promo banner (aimp3.ru) ---------- */
/* same white panel + shadow as a regular .z9-card (not a loud gradient banner), so it reads as part of
   this site rather than a pasted-in ad. The one accent touch is the CTA pill, styled exactly like the
   site's own primary buttons (.z9-btn-primary / "Скачать"), so it's still unmistakably clickable. */
.z9-promo-card{
  display:flex;flex-direction:column;gap:10px;padding:14px;border-radius:var(--z9-r-sm);
  background:var(--z9-panel);box-shadow:var(--z9-shadow-sm);text-decoration:none;margin:0 0 8px;
}
.z9-promo-top{display:flex;align-items:center;gap:12px;min-width:0}
.z9-promo-ico{
  flex:0 0 40px;width:40px;height:40px;border-radius:50%;background:var(--z9-accent-soft);
  display:flex;align-items:center;justify-content:center;font-size:17px;line-height:1;color:var(--z9-accent);
}
.z9-promo-body{flex:1;min-width:0}
.z9-promo-title{display:block;font-size:15px;font-weight:700;line-height:1.25;color:var(--z9-text)}
.z9-promo-sub{display:block;font-size:12.5px;font-weight:400;line-height:1.35;color:var(--z9-text-2);margin-top:2px}
.z9-promo-cta{
  display:block;text-align:center;font-size:13px;font-weight:600;background:var(--z9-accent-btn);color:#fff;
  padding:9px 12px;border-radius:999px;
}
.z9-promo-card:hover .z9-promo-cta{background:var(--z9-accent-2)}

@media(min-width:640px){
  .z9-promo-card{grid-column:1/-1;flex-direction:row;align-items:center;padding:16px 20px;margin:0 0 10px}
  .z9-promo-top{flex:1}
  .z9-promo-ico{flex-basis:50px;width:50px;height:50px;font-size:21px}
  .z9-promo-title{font-size:16px}
  .z9-promo-sub{font-size:13.5px}
  .z9-promo-cta{flex:none;width:auto;padding:11px 22px;font-size:14px;margin-left:16px}
}

.z9-promo-song{margin:0 0 16px}
@media(min-width:640px){
  .z9-promo-song{padding:18px 22px}
  .z9-promo-song .z9-promo-ico{flex-basis:54px;width:54px;height:54px;font-size:23px}
  .z9-promo-song .z9-promo-title{font-size:17px}
  .z9-promo-song .z9-promo-sub{font-size:14px}
}

/* the same Yandex ad block used in the desktop download-gate modal is shown, ungated, right on the
   page for mobile visitors (who never see the gate at all) - one blockId, two renderTo containers,
   never both active on the same visit since isDesktop()/matchMedia pick exactly one at a time. */
.z9-ad.z9-ad-mobile-only{display:none}
@media (max-width:600px){
.z9-ad.z9-ad-mobile-only{display:flex}
}

/* ---------- download gate (desktop-only ad modal on "Скачать") ---------- */
.z9-dlgate-overlay{position:fixed;inset:0;background:rgba(10,10,20,.65);z-index:1000;display:none;align-items:center;justify-content:center;padding:16px}
.z9-dlgate-overlay.is-open{display:flex}
.z9-dlgate-panel{position:relative;background:var(--z9-panel);border-radius:var(--z9-r);padding:28px 20px 20px;width:360px;max-width:100%;box-shadow:var(--z9-shadow-lg);text-align:center}
.z9-dlgate-msg{font-size:14px;line-height:1.5;color:var(--z9-text);margin:8px 0 22px}
.z9-dlgate-spin{width:36px;height:36px;margin:0 auto;border-radius:50%;border:3px solid var(--z9-line);border-top-color:var(--z9-accent-btn);animation:z9DlGateSpin .8s linear infinite}
@keyframes z9DlGateSpin{to{transform:rotate(360deg)}}
.z9-dlgate-adbox{min-height:250px;display:flex;align-items:center;justify-content:center;background:var(--z9-panel-2);border-radius:var(--z9-r-sm);margin:0 0 16px;overflow:hidden}
.z9-dlgate-adbox .z9-ad{width:100%}
.z9-dlgate-skip{width:100%;justify-content:center}
.z9-dlgate-skip:disabled{opacity:.55;cursor:not-allowed}

/* ---------- card list (structure ported from tatarskiepesni.ru's .card/.card-play/.card-body/.card-side) ---------- */
.z9-list{display:flex;flex-direction:column;gap:8px}
/* search results page only: main.tpl injects DLE's raw search {content} straight into .z9-blk-c
   without a .z9-list wrapper (unlike every other listing), so .z9-card ends up a direct child
   with no flex/gap between cards and they render stuck together. Scoping to the direct-child
   combinator keeps this from touching cards elsewhere, which are always one level deeper inside .z9-list. */
.z9-blk-c > .z9-card{margin-bottom:8px}
.z9-card{
  display:flex;align-items:center;gap:12px;background:var(--z9-panel);
  box-shadow:var(--z9-shadow-sm);border-radius:var(--z9-r-sm);padding:8px;position:relative;min-width:0;
}
.z9-card-cover{
  position:relative;flex:0 0 72px;width:72px;height:72px;border:0;padding:0;display:block;border-radius:var(--z9-r-sm);overflow:hidden;
  background:var(--z9-panel-3);cursor:pointer;transition:border-radius .2s;
}
.z9-card-img{width:100%;height:100%;object-fit:cover;display:block}
.z9-card-play{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  background:rgba(10,10,12,.35);color:#fff;font-size:19px;line-height:1;opacity:0;transition:opacity .15s;
  text-align:center;
}
.z9-card-play i,.z9-card-play svg{display:block;margin:0 auto}
.z9-card-play .fa-play,.z9-song-play .fa-play{position:relative;left:1px}
.z9-card-play .z9-ic-pause{display:none}
.z9-card-cover:hover .z9-card-play,.z9-card.js-item-current .z9-card-play{opacity:1}
.z9-card.js-item-played .z9-card-play{opacity:1;background:rgba(10,10,12,.5)}
.z9-card.js-item-played .z9-card-play .z9-ic-play{display:none}
.z9-card.js-item-played .z9-card-play .z9-ic-pause{display:block}
/* the currently selected track spins like a vinyl record instead of showing a bar visualizer (matches tatarskiepesni.ru) */
.z9-card.js-item-current .z9-card-cover,
.z9-card.js-item-current .z9-card-img,
.z9-card.js-item-current .z9-card-play{border-radius:50%}
.z9-card.js-item-current .z9-card-img{animation:z9vinyl 7s linear infinite;animation-play-state:paused}
.z9-card.js-item-played .z9-card-img{animation-play-state:running}
@keyframes z9vinyl{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
/* bar visualizer removed — the spinning cover above is the "is it playing" indicator now, same as tatarskiepesni.ru */
.track-equalizer{display:none}
.z9-card-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.z9-card-title{display:block;min-width:0}
.z9-card-title:hover .z9-card-song{color:var(--z9-accent)}
.z9-card-song{display:block;font-size:15px;font-weight:600;color:var(--z9-text);line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.z9-card-artist{display:block;font-size:13px;font-weight:400;color:var(--z9-muted);line-height:1.3;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:default}

/* right-hand rail: duration on top, action icons below — same composition as tatarskiepesni's .card-side */
.z9-card-side{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:4px;margin-left:auto}
.z9-card-dur{font-size:12px;color:var(--z9-muted);padding-right:4px;font-variant-numeric:tabular-nums}
.z9-card-acts{display:flex;gap:2px}
.z9-ic-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:3px;
  min-width:36px;height:36px;padding:0 6px;border:1px solid transparent;background:transparent;border-radius:50%;
  color:var(--z9-muted);font-size:15px;cursor:pointer;
}
.z9-ic-btn:hover{background:var(--z9-panel-3);color:var(--z9-accent)}
/* once already liked, pressing the heart again does nothing (one-way vote) — but the button's normal
   hover/tap highlight still applied every time regardless, and on touch screens that highlight sticks
   after a tap until you touch elsewhere, which read as "it did something" on every repeat press. Keep
   an already-liked heart visually flat on hover/tap so a repeat press truly looks like a no-op. */
.z9-ic-btn.z9-like-btn.is-on:hover{background:transparent;color:var(--z9-like)}
.z9-like-btn .z9-ic-heart-on{display:none}
.z9-like-btn.is-on{color:var(--z9-like)}
.z9-like-btn.is-on .fa-heart{display:none}
.z9-like-btn.is-on .z9-ic-heart-on{display:inline}
/* brief pulse on click, in addition to the color/fill swap above — makes the click itself unmistakable */
@keyframes z9-heart-pulse{0%{transform:scale(1)}35%{transform:scale(1.28)}100%{transform:scale(1)}}
.z9-like-btn.z9-pulse .fa-heart,
.z9-like-btn.z9-pulse .z9-ic-heart-on{animation:z9-heart-pulse .35s ease-out}

/* like/vote confirmation toast */
.z9-toast{
  position:fixed;left:50%;bottom:22px;z-index:300;transform:translate(-50%,10px);
  max-width:88vw;padding:10px 18px;border-radius:999px;
  background:var(--z9-text);color:#fff;font-size:13.5px;font-weight:600;text-align:center;
  box-shadow:0 10px 28px rgba(0,0,0,.28);opacity:0;pointer-events:none;
  transition:opacity .2s,transform .2s;
}
.z9-toast.is-show{opacity:1;transform:translate(-50%,0)}
.z9-add-btn .z9-add-on{display:none}
.z9-add-btn .z9-lbl-remove{display:none}
.z9-add-btn.is-on{color:var(--z9-accent)}
.z9-add-btn.is-on .fa-plus{display:none}
.z9-add-btn.is-on .z9-add-on{display:inline}
.z9-add-btn.is-on .z9-lbl-add{display:none}
.z9-add-btn.is-on .z9-lbl-remove{display:inline}

@media(max-width:420px){
  .z9-card-cover{flex-basis:56px;width:56px;height:56px}
  .z9-card-side{flex-direction:row;align-items:center;gap:6px}
}

@media(min-width:640px){
  .z9-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .z9-list .bottom-nav{grid-column:1/-1}
}

/* ---------- song page (ported from tatarskiepesni.ru's .song-head/.song-poster/.song-actions/.btn) ---------- */
.z9-h1{font-size:24px;line-height:1.25;margin:14px 0 10px;font-weight:700;color:var(--z9-text)}
.z9-h2{font-size:18px;margin:0 0 12px;font-weight:700;color:var(--z9-text)}
.z9-song-head{display:flex;gap:18px;margin:16px 0;flex-wrap:wrap}
/* the play control now lives on the cover itself (bottom-right), so the wrap — not the <img> — is the
   flex item and the positioning context for the floating button. */
/* .z9-song-head is display:flex with the default align-items:stretch, so without this the poster wrap
   was being stretched to match .z9-song-main's (taller) content height — 17px past the image's actual
   280px — which pushed the bottom-right play button 5px below the cover on wide screens. */
/* now a real <button> (the whole cover toggles play/pause, same as the card list), so it needs the
   usual browser button chrome reset on top of the layout rules above. */
.z9-song-poster-wrap{
  position:relative;flex:none;align-self:flex-start;width:280px;max-width:100%;
  display:block;border:0;padding:0;margin:0;background:none;font:inherit;text-align:left;cursor:pointer;
}
.z9-song-poster{width:280px;height:280px;max-width:100%;min-width:0;border-radius:var(--z9-r);object-fit:cover;box-shadow:var(--z9-shadow-lg);display:block}
.z9-song-play{
  position:absolute;right:12px;bottom:12px;width:56px;height:56px;border-radius:50%;border:0;cursor:pointer;
  display:flex;align-items:center;justify-content:center;background:var(--z9-accent-btn);color:#fff;
  font-size:20px;box-shadow:var(--z9-shadow-lg);transition:background .15s,transform .15s;
}
/* the whole cover is the click target now (a <button>), so the round icon should react to hovering
   anywhere on it, not just to the icon's own small hit area. */
.z9-song-poster-wrap:hover .z9-song-play{background:var(--z9-accent-2);transform:scale(1.05)}
.z9-song-play .z9-ic-pause{display:none}
.z9-song-poster-wrap.js-item-played .z9-song-play .z9-ic-play{display:none}
.z9-song-poster-wrap.js-item-played .z9-song-play .z9-ic-pause{display:block}
.z9-song-main{flex:1;min-width:0}
.z9-song-h1{margin-top:0}
.z9-edit-pencil{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;margin:2px 0 0 4px;border:0;padding:0;border-radius:50%;background:transparent;color:var(--z9-muted);font-size:14px;vertical-align:middle;cursor:pointer;transition:background .15s,color .15s}
.z9-edit-pencil:hover{background:var(--z9-panel-3);color:var(--z9-accent)}
.z9-song-stats{list-style:none;margin:12px 0;padding:0;color:var(--z9-muted);font-size:14px}
.z9-song-stats li{margin:3px 0}
.z9-song-stats li b{color:var(--z9-text);font-weight:600}

/* one shared pill button — Слушать / Скачать / лайк / плейлист all use it, exactly like tatarskiepesni.ru's .btn */
.z9-song-actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
.z9-btn{
  display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 18px;
  background:var(--z9-panel);color:var(--z9-text);border:1px solid var(--z9-line);border-radius:999px;
  font-size:15px;font-weight:600;cursor:pointer;
}
.z9-btn:hover{background:var(--z9-panel-3)}
.z9-btn.z9-like-btn.is-on:hover{background:var(--z9-panel)}
.z9-btn-primary{background:var(--z9-accent-btn);border-color:var(--z9-accent-btn);color:#fff}
.z9-btn-primary:hover{background:var(--z9-accent-2)}
.z9-btn-small{min-height:36px;padding:7px 16px;font-size:14px}
.z9-cloud{display:flex;flex-wrap:wrap;gap:8px}
/* standard toast for the "copy link" action — replaces a blocking alert() with a small pill that
   fades in/out on its own. */
.z9-toast{
  position:fixed;left:50%;bottom:30px;transform:translate(-50%,10px);z-index:999;
  background:var(--z9-text);color:var(--z9-panel);padding:10px 18px;border-radius:999px;
  font-size:14px;font-weight:600;box-shadow:var(--z9-shadow-lg);opacity:0;pointer-events:none;
  transition:opacity .2s,transform .2s;
}
.z9-toast.z9-toast-show{opacity:1;transform:translate(-50%,0)}
@media(max-width:600px){.z9-toast{bottom:90px}}
.z9-cloud a{max-width:100%;overflow-wrap:break-word}
.z9-tags-row a{color:var(--z9-text-2)}
.z9-tags-row a:hover{color:var(--z9-accent)}

.z9-about-t{font-size:15px;line-height:1.65;color:var(--z9-text-2)}
.z9-about-t p{margin:0 0 8px}
.z9-about-t p:last-child{margin-bottom:0}

.z9-lyrics summary{cursor:pointer;list-style:none;display:inline-flex;align-items:center;gap:8px;margin:0}
.z9-lyrics summary::-webkit-details-marker{display:none}
.z9-lyrics summary::after{content:"\25be";color:var(--z9-muted);font-size:13px}
.z9-lyrics[open] summary::after{content:"\25b4"}

#songLyricsBody{font-size:15px;line-height:1.75;color:var(--z9-text-2);margin-top:12px;overflow-wrap:break-word;word-break:break-word}
#songLyricsBody p{margin:0 0 10px}
.z9-translation{opacity:.75;font-style:italic}

.z9-social-link.z9-disabled{opacity:.45;pointer-events:none}
.z9-nolink{margin-left:4px}

/* ---------- comments ----------
   DLE appends this form after the page content itself (outside anything fullstory.tpl
   controls), so it can't be removed from the template — only restyled in place here. */
.fcomms{background:transparent;box-shadow:none;padding:0;margin:28px 0 0;max-width:var(--z9-maxw)}
.fcomms .sect-header1{display:flex;align-items:center;gap:10px;margin:0 0 14px}
.fcomms .sect-title{font-size:18px;font-weight:700;color:var(--z9-text)}
.fcomms .btn.fadd-comms{
  flex:none;display:inline-flex;align-items:center;height:32px;padding:0 14px;border-radius:999px;
  background:var(--z9-panel-2);color:var(--z9-text-2);font-size:13px;font-weight:600;cursor:pointer;
}
.fcomms .btn.fadd-comms:hover{background:var(--z9-panel-3);color:var(--z9-text)}
.ac-inputs{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 10px}
.ac-inputs input{
  flex:1;min-width:160px;height:42px;border:1px solid var(--z9-line);border-radius:var(--z9-r-sm);
  padding:0 14px;background:var(--z9-panel);color:var(--z9-text);font-size:14px;
}
.ac-inputs input::placeholder{color:var(--z9-muted)}
.ac-inputs input:focus{outline:none;border-color:var(--z9-accent)}
.ac-textarea{margin:0 0 12px}
.wseditor,.tox-tinymce{border-radius:var(--z9-r-sm)!important;border:1px solid var(--z9-line)!important;overflow:hidden}
.tox .tox-toolbar__primary,.tox .tox-toolbar-overlord{background:var(--z9-panel-2)!important}
.ac-protect{margin:0 0 12px}
.ac-protect label{display:block;font-size:13px;color:var(--z9-muted);margin-bottom:6px}
.form-secur{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.form-secur input{
  height:42px;border:1px solid var(--z9-line);border-radius:var(--z9-r-sm);
  padding:0 14px;background:var(--z9-panel);color:var(--z9-text);font-size:14px;
}
.form-secur img{border-radius:8px;display:block}
.ac-submit{margin-top:4px}
.ac-submit button{
  display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 22px;border:0;
  border-radius:999px;background:var(--z9-accent);color:#fff;font-weight:600;font-size:15px;cursor:pointer;
}
.ac-submit button:hover{background:var(--z9-accent-2)}
/* posted comments (comments.tpl output) */
.comm-item{display:flex;gap:12px;background:var(--z9-panel);box-shadow:var(--z9-shadow-sm);border-radius:var(--z9-r-sm);padding:14px;margin:0 0 10px}
.comm-avatar{flex:none;width:38px;height:38px;border-radius:50%;overflow:hidden;background:var(--z9-panel-3)}
.comm-avatar img{width:100%;height:100%;object-fit:cover}
.comm-right{flex:1;min-width:0}
.comm-one{font-size:13px;color:var(--z9-muted);margin:0 0 4px;display:flex;gap:8px;flex-wrap:wrap}
.comm-author{font-weight:600;color:var(--z9-text)}
.comm-two{font-size:14px;line-height:1.55;color:var(--z9-text-2)}
.comm-three{margin-top:8px;font-size:13px;color:var(--z9-muted)}
.comm-three .reply{cursor:pointer;color:var(--z9-accent)}
.comm-rate3{display:inline-flex;align-items:center;gap:6px}

/* ---------- footer ---------- */
.z9-ft{border-top:1px solid var(--z9-line);padding:18px 16px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
.z9-ft-c{font-size:12.5px;color:var(--z9-muted)}
.z9-ft-s{display:flex;gap:10px}
.z9-ft-s a{width:38px;height:38px;border-radius:50%;background:var(--z9-panel);display:flex;align-items:center;justify-content:center;color:var(--z9-muted);transition:background .15s,color .15s}
.z9-ft-s a:hover{background:var(--z9-panel-3);color:var(--z9-text)}

/* ---------- pagination ---------- */
.bottom-nav{display:block;width:100%;margin-top:18px;padding-top:16px;border-top:1px solid var(--z9-line)}
.pagi-nav{display:flex;justify-content:center;width:100%}
.navigation{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.navigation a,.navigation b,.navigation span{
  display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:34px;padding:0 8px;
  border-radius:8px;background:var(--z9-panel);color:var(--z9-text-2);font-size:13px;
}
.navigation b,.navigation span:not(.nav_ext){background:var(--z9-accent);color:#fff;font-weight:700}
.navigation span.nav_ext{background:none;color:var(--z9-muted)}
.navigation a:hover{background:var(--z9-panel-3);color:var(--z9-text)}

/* .berrors.berrors (class doubled on purpose): engine.css defines its own dark .berrors rule
   and loads after this file, so a plain single-class selector here would lose to it on source
   order. Doubling the class raises our specificity just enough to win regardless of load order,
   without needing !important. */
.berrors.berrors{background:var(--z9-panel);border:1px solid var(--z9-line);border-radius:var(--z9-r-sm);padding:20px;color:var(--z9-text-2);margin:16px 0}
.berrors.berrors b{display:block;font-size:18px;color:var(--z9-text);margin-bottom:8px}
.berrors.berrors a{
  display:inline-flex;align-items:center;min-height:40px;padding:8px 18px;margin:10px 8px 0 0;
  background:var(--z9-accent-btn);border:1px solid var(--z9-accent-btn);border-radius:999px;
  color:#fff;font-size:14px;font-weight:600;text-decoration:none;cursor:pointer;transition:background .15s;
}
.berrors.berrors a:hover{background:var(--z9-accent-2)}

/* ---------- misc ---------- */
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:var(--z9-bg)}
::-webkit-scrollbar-thumb{background:var(--z9-panel-3);border-radius:8px}

@media(max-width:600px){
  /* poster goes full-width above the title/buttons instead of a small fixed thumbnail — same stacking tatarskiepesni.ru uses on phones.
     this breakpoint matches where .z9-song-head actually wraps (poster 280px + main's own min-content ~300px), so there's no
     in-between state where the poster has already wrapped onto its own line but is still stuck at a small fixed size. */
  .z9-song-poster-wrap{width:100%}
  .z9-song-poster{width:100%;height:auto;aspect-ratio:1}
  .z9-song-main{flex-basis:100%}
}
@media(max-width:480px){
  .z9-brand{font-size:17px}
  .z9-brand-ic{width:26px;height:26px;font-size:11px}
  .z9-body{padding:14px 12px 30px}
  /* "Скачать MP3" → "Скачать", and all three song-action buttons shrink a bit, so Скачать / В плейлист /
     лайк fit on one row instead of the like button wrapping onto its own line. */
  .z9-btn-mp3{display:none}
  .z9-song-actions{gap:6px}
  .z9-song-actions .z9-btn{padding:8px 12px;font-size:13px;gap:6px;min-height:38px}
}

/* ---------- shared utility classes (used by stock DLE partials: login/pm/comments/registration/etc.) ---------- */
.fx-row{display:flex;flex-direction:row}
.fx-col{display:flex;flex-direction:column}
.fx-middle{align-items:center}
.fx-center{justify-content:center}
.fx-between{justify-content:space-between}
.fx-start{justify-content:flex-start}
.fx-1{flex:1;min-width:0}
.fx-first{order:-1}
.nowrap{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.clearfix::after{content:"";display:table;clear:both}
.img-fit{overflow:hidden}
.img-fit img{width:100%;height:100%;object-fit:cover}
/* no !important here on purpose — jQuery's fadeIn()/fadeOut() (login-box, side-panel, etc.) sets an inline
   display style to reveal these elements, and an !important rule here would always beat that inline style
   and keep them invisible forever */
.hidden{display:none}
.anim{transition:all .15s ease}
.title{font-weight:700;color:var(--z9-text)}
.btn{cursor:pointer;user-select:none}

/* ---------- login / overlay / mobile side panel (from login.tpl, shared markup appended by libs.js) ---------- */
.overlay-box{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:200;display:none}
.login-box{
  position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:201;
  background:var(--z9-panel);border:1px solid var(--z9-line);border-radius:var(--z9-r);
  padding:24px;width:320px;max-width:90vw;display:none;
}
.login-close{position:absolute;top:12px;right:14px;cursor:pointer;color:var(--z9-muted)}
.login-title{font-size:16px;font-weight:700;margin-bottom:14px;color:var(--z9-text)}
.login-avatar{width:56px;height:56px;border-radius:50%;overflow:hidden;margin:0 auto 14px;background:var(--z9-panel-2);display:flex;align-items:center;justify-content:center;font-size:22px;color:var(--z9-muted)}
.login-avatar img{width:100%;height:100%;object-fit:cover}
.login-input{margin-bottom:10px}
.login-input input{width:100%;height:40px;border:0;border-radius:8px;padding:0 12px;background:var(--z9-panel-2);color:var(--z9-text);font-size:13px}
.login-check{margin-bottom:12px;font-size:13px;color:var(--z9-muted)}
.login-btn button{width:100%;height:42px;border:0;border-radius:999px;background:var(--z9-accent);color:#fff;font-weight:700}
.login-btn button:hover{background:var(--z9-accent-2)}
.login-btm{margin-top:12px;font-size:12.5px;color:var(--z9-muted);justify-content:space-between}
.login-btm a{color:var(--z9-muted)}
.login-soc-title{margin-top:14px;font-size:12px;color:var(--z9-muted);text-align:center}
.login-soc-btns{display:flex;justify-content:center;gap:10px;margin-top:8px}
.login-soc-btns img{width:28px;height:28px;border-radius:50%}
/* stacked single column instead of wrapping chips: the admin menu has 8 items of very different
   text lengths, so flex-wrap left them wrapping into ragged, uneven rows. display/flex-direction
   set here beat the .fx-row/.fx-start utility classes DLE puts on the same <ul> because this rule
   comes later in the stylesheet at equal specificity. */
.login-menu{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.login-menu li{width:100%}
.login-menu li a{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:8px;color:var(--z9-text-2);font-size:13px}
.login-menu li a:hover{background:var(--z9-panel-2)}

#side-panel{position:fixed;top:0;right:0;bottom:0;width:280px;max-width:80vw;background:var(--z9-panel);z-index:200;transform:translateX(100%);transition:transform .2s;overflow-y:auto}
#side-panel.active{transform:translateX(0)}
.btn-close{position:fixed;top:16px;right:16px;z-index:202;display:none;width:36px;height:36px;border-radius:50%;background:var(--z9-panel-2);align-items:center;justify-content:center;color:var(--z9-text)}
.btn-close.active{display:flex}
body.opened-menu{overflow:hidden}

/* #gotop is shown/hidden by libs.js via jQuery .fadeIn()/.fadeOut(), which sets an inline display:block —
   not display:flex — so the icon can't be centered with align-items/justify-content on the parent.
   Center it with absolute positioning on the icon instead; that works no matter what display value
   jQuery ends up setting on the button itself. */
#gotop{
  position:fixed;right:16px;bottom:16px;width:44px;height:44px;border-radius:50%;
  background:var(--z9-accent);color:#fff;display:none;z-index:60;cursor:pointer;
  box-shadow:0 6px 18px rgba(124,92,255,.35);
  transition:transform .15s,box-shadow .15s,background-color .15s;
}
#gotop:hover{background:var(--z9-accent-2);transform:translateY(-3px);box-shadow:0 10px 22px rgba(124,92,255,.45)}
#gotop:active{transform:translateY(-1px)}
#gotop span{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:17px;line-height:1}

/* ---------- bottom audio player (markup injected dynamically by libs.js apBuilding()) ---------- */
.wplayer{width:100%;position:fixed;left:0;bottom:0;z-index:995}
.audioplayer{
  position:relative;max-width:none;height:64px;border-radius:0;padding:0 16px;
  background:var(--z9-player-bg);backdrop-filter:blur(8px);color:var(--z9-text);
  border-top:1px solid var(--z9-line);box-shadow:0 -8px 24px rgba(30,20,60,.12);
}
.audioplayer-bar{position:absolute;left:0;right:0;top:0;height:3px;background:var(--z9-player-track);overflow:hidden;cursor:pointer}
.audioplayer-bar-loaded{position:absolute;left:0;top:0;height:100%;background:var(--z9-player-track-2)}
.audioplayer-bar-played{position:absolute;left:0;top:0;height:100%;z-index:1;background:var(--z9-accent)}
.audioplayer:hover .audioplayer-bar{height:5px}
@media(hover:none){
  /* no hover on touch devices, so the seek bar needs a taller hit target by default instead of only growing on :hover */
  .audioplayer-bar{height:8px}
}
/* reserve space at the bottom of the page for the fixed player once a track has actually started, so it doesn't sit on top of the footer/last card */
body:has(.wplayer:not(.wplayer-init)) .z9-body{padding-bottom:84px}
@media(max-width:600px){
  body:has(.wplayer:not(.wplayer-init)) .z9-body{padding-bottom:78px}
}
.ap-desc{width:auto;max-width:36%;flex:1 1 auto;min-width:0}
.ap-img{width:42px;height:42px;min-width:42px;margin-right:11px;border-radius:8px;background:var(--z9-panel-3)}
.ap-title{font-size:14px;font-weight:600;color:var(--z9-text);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ap-artist{font-size:12px;color:var(--z9-muted);margin-top:2px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* absolutely centered on the bar itself (not flex auto-margins) so it can never shift when a sibling's
   width changes between tracks — e.g. the time display growing from "…" to a real duration once metadata
   loads, which previously nudged this group left/right for a moment on every track change */
.ap-btns{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:10px;margin:0}
.audioplayer-playpause a{
  display:flex;align-items:center;justify-content:center;
  width:42px;height:42px;line-height:42px;margin:0;border-radius:50%;
  background:var(--z9-accent);color:#fff;font-size:14px;
}
.audioplayer-playpause a:hover{background:var(--z9-accent-2)}
.ap-prev,.ap-next{
  width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:12px;
  background:transparent;color:var(--z9-muted);border:1px solid var(--z9-line);cursor:pointer;
}
.ap-prev:hover,.ap-next:hover{background:var(--z9-player-hover);color:var(--z9-text);border-color:var(--z9-line-2)}
/* .ap-btns is position:absolute (see comment above), so it's out of flex flow and .ap-time would
   otherwise sit packed right after .ap-desc. margin-left:auto claims all the row's free space and
   pushes the time/volume group to the right end of the bar, where such controls normally live. */
.ap-time{font-size:12px;color:var(--z9-muted);flex:none;font-variant-numeric:tabular-nums;margin-left:auto}
.ap-dl{display:none}
.audioplayer-volume{margin-left:14px;font-size:17px;flex:none;position:relative}
.audioplayer-volume-button a{color:var(--z9-muted);height:32px;line-height:32px;display:block}
.audioplayer-volume-adjust{background:var(--z9-panel-2);border:1px solid var(--z9-line);border-radius:10px;bottom:calc(100% + 6px);position:absolute}
.audioplayer-volume-adjust > div{background:var(--z9-player-track-2);border-radius:4px}
.audioplayer-volume-adjust > div > div{background:var(--z9-accent)}
.ap-mob-btn{width:34px;height:34px;border-radius:50%;color:var(--z9-muted);display:none;align-items:center;justify-content:center}
.player-hide .audioplayer{box-shadow:0 -8px 24px rgba(30,20,60,.12)}
/* player is auto-built for the first track on page load but shouldn't be visible until the user actually presses play */
.wplayer.wplayer-init{display:none}

@media(max-width:600px){
  .audioplayer{height:58px;gap:8px;padding:0 10px}
  .ap-desc{max-width:none;flex:1 1 auto}
  .ap-img{width:38px;height:38px;min-width:38px;margin-right:9px}
  .ap-title{font-size:13px}
  .ap-artist{font-size:11px}
  .ap-btns{position:static;transform:none;margin:0;gap:6px;flex:none}
  .audioplayer-playpause a{width:38px;height:38px}
  .ap-prev,.ap-next{width:30px;height:30px}
  .ap-time,.audioplayer-volume{display:none}
  #gotop{bottom:74px;right:10px;width:36px;height:36px}
  #gotop span{font-size:14px}
}
