/* Общий плеер сайта */
.xdp-bar, .xdp-side, .xdp-fp { --xdp-blue: #2688eb; --xdp-mut: #818c99; box-sizing: border-box; font-family: inherit; }
.xdp-bar *, .xdp-side *, .xdp-fp * { box-sizing: border-box; }
.xdp-bar svg, .xdp-side svg, .xdp-fp svg, .xdp-sh svg { display: block; flex: none; }
html.xdp-lock, html.xdp-lock body { overflow: hidden; }

/* мини-плеер */
.xdp-bar { position: fixed; left: 0; right: 0; bottom: max(var(--xdp-b, 0px), env(safe-area-inset-bottom)); height: 56px; z-index: 1001; display: none; align-items: center; gap: 2px; padding: 0 6px 0 6px; background: #f5f7fa; color: #000; border-top: 1px solid rgba(0,0,0,.05); }
html.xdp-on .xdp-bar { display: flex; }
html.xdp-on.xdp-nobar .xdp-bar { display: none; }
.xdp-line { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: rgba(38,136,235,.15); overflow: hidden; }
.xdp-line i { position: absolute; inset: 0; background: var(--xdp-blue); transform: scaleX(0); transform-origin: 0 50%; }
.xdp-b { width: 44px; height: 44px; border: 0; background: none; color: var(--xdp-blue); display: flex; align-items: center; justify-content: center; padding: 0; flex: none; cursor: pointer; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.xdp-b:active { background: rgba(38,136,235,.1); }
.xdp-b[hidden] { display: none; }
.xdp-m { flex: 1; min-width: 0; text-align: center; cursor: pointer; padding: 0 4px; -webkit-tap-highlight-color: transparent; }
.xdp-m b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xdp-m small { display: block; font-size: 13px; line-height: 1.3; color: var(--xdp-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xdp-pad { display: none; height: 56px; }
html.xdp-on .xdp-pad { display: block; }
html.xdp-nobar .xdp-pad { display: none; }
@media (max-width: 881px) { html.xdp-chat .xdp-bar, html.xdp-chat .xdp-pad { display: none !important; } }

/* боковая панель */
.xdp-side { display: none; position: relative; align-items: center; gap: 10px; margin: 0 10px 10px; padding: 6px; border-radius: 30px; background: var(--xsb-warm, #f7f4f2); color: var(--xsb-ink, #2e2f33); text-align: left; }
html.xdp-on .xdp-side { display: flex; }
.xdp-sc { position: relative; width: 42px; height: 42px; border-radius: 50%; flex: none; background: #dfe3e8; }
.xdp-scc, .xdp-scc img { display: block; width: 100%; height: 100%; }
.xdp-scc { position: relative; z-index: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--xsb-card, #fff); }
.xdp-sc .xdp-wv { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; overflow: visible; pointer-events: none; transition: opacity .3s; }
.xdp-wv path { fill: rgba(58,85,136,.25); }
.xdp-wv path + path { fill: rgba(58,85,136,.45); }
.xdp-side.is-paused .xdp-wv { opacity: 0; }
[data-theme="dark"] .xdp-wv path { fill: rgba(159,182,220,.2); }
[data-theme="dark"] .xdp-wv path + path { fill: rgba(159,182,220,.38); }
.xdp-scc img { object-fit: cover; border-radius: 50%; animation: xdpspin 12s linear infinite; }
.xdp-side.is-paused .xdp-scc img { animation-play-state: paused; }
.xdp-scc .xdp-nocov { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: #8a96a8; }
.xdp-scc .xdp-nocov svg { width: 20px; height: 20px; }
@keyframes xdpspin { to { transform: rotate(360deg); } }
.xdp-sc .xdp-pp { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 50%; background: rgba(0,0,0,.32); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.xdp-sc .xdp-pp:hover { background: rgba(0,0,0,.45); }
.xdp-sc .xdp-pp svg { width: 16px; height: 16px; }
.xdp-side .xdp-m { flex: 1; min-width: 0; text-align: left; padding: 0 0 4px; }
.xdp-side .xdp-m b { font-size: 13.5px; font-weight: 600; }
.xdp-side .xdp-m small { font-size: 12px; color: var(--xsb-mut, #797a7c); }
.xdp-side .xdp-m:hover b { color: var(--xsb-navy, #3a5588); }
.xdp-side .xdp-sn { width: 36px; height: 36px; background: var(--xsb-card, #fff); color: var(--xsb-navy, #3a5588); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.xdp-side .xdp-sn:hover { background: var(--xsb-card, #fff); color: #2688eb; }
.xdp-side .xdp-sn svg { width: 16px; height: 16px; }
.xdp-side .xdp-line { top: auto; bottom: 6px; left: 58px; right: 50px; height: 2px; border-radius: 1px; background: rgba(58,85,136,.15); cursor: pointer; }
.xdp-side .xdp-line i { background: var(--xsb-navy, #3a5588); border-radius: 1px; }
/* полный плеер */
.xdp-fp { position: fixed; inset: 0; z-index: 9000; visibility: hidden; pointer-events: none; transition: visibility 0s .32s; }
.xdp-fp.is-open { visibility: visible; pointer-events: auto; transition: none; }
.xdp-dim { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .25s; }
.xdp-fp.is-open .xdp-dim { opacity: 1; }
.xdp-card { position: absolute; inset: 0; overflow: hidden; background: #f0f1f4; color: #1b1f24; transform: translateY(100%); transition: transform .32s cubic-bezier(.2,.8,.2,1); }
.xdp-fp.is-open .xdp-card { transform: none; }
.xdp-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.xdp-bg img { position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); object-fit: cover; filter: blur(50px) saturate(.6); opacity: 0; }
.xdp-fp.has-bg .xdp-bg img { opacity: .55; }
.xdp-bg::after { content: ''; position: absolute; inset: 0; background: rgba(240,241,244,.8); }
.xdp-in { position: relative; height: 100%; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; padding: calc(6px + env(safe-area-inset-top)) 20px calc(80px + env(safe-area-inset-bottom)); }
.xdp-top { display: flex; align-items: center; gap: 8px; height: 52px; flex: none; }
.xdp-src { flex: 1; min-width: 0; text-align: center; }
.xdp-src small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .6px; color: var(--xdp-mut); }
.xdp-src b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xdp-ib, .xdp-rb, .xdp-cb { border: 0; background: none; color: inherit; padding: 0; display: flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.xdp-ib { width: 44px; height: 44px; }
.xdp-ib:hover { background: rgba(0,0,0,.06); }
.xdp-pc { display: none !important; }
.xdp-cov { width: min(100%, 42vh); aspect-ratio: 1; align-self: center; margin: auto 0 18px; border-radius: 18px; overflow: hidden; background: #dfe3e8; color: #99a2ad; box-shadow: 0 12px 30px rgba(0,0,0,.18); display: flex; align-items: center; justify-content: center; flex: none; }
.xdp-cov img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xdp-cov .xdp-nocov svg { width: 64px; height: 64px; }
.xdp-ttl { display: flex; align-items: center; gap: 10px; flex: none; }
.xdp-ttl > div { flex: 1; min-width: 0; }
.xdp-ttl b { display: block; font-size: 24px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xdp-art { display: block; margin-top: 2px; font-size: 15px; color: #6d7885; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xdp-art:hover { text-decoration: underline; }
.xdp-rb { width: 44px; height: 44px; background: rgba(0,0,0,.07); }
.xdp-rb.is-on { color: var(--xdp-blue); }
.xdp-rb[hidden] { display: none; }
.xdp-pills { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; flex: none; }
.xdp-pills::-webkit-scrollbar { display: none; }
.xdp-pills button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 0; border-radius: 12px; background: rgba(0,0,0,.07); color: inherit; font: inherit; font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer; flex: none; }
.xdp-pills .xdp-ic { width: 46px; padding: 0; justify-content: center; }
.xdp-pills .xdp-dis { display: none; }
.xdp-fp.is-mix .xdp-pills .xdp-dis { display: inline-flex; }
.xdp-fp.is-live [data-x="download"], .xdp-fp.is-live [data-x="toPl"] { display: none; }
.xdp-seek { margin-top: 16px; flex: none; }
.xdp-tr { padding: 10px 0; cursor: pointer; touch-action: none; }
.xdp-tr-in { position: relative; height: 3px; border-radius: 2px; background: rgba(0,0,0,.12); }
.xdp-tr i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 2px; background: currentColor; }
.xdp-tr em { position: absolute; left: 0; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: currentColor; transition: transform .15s; }
.xdp-tr.is-drag em, .xdp-tr:hover em { transform: scale(1.25); }
.xdp-tm { display: flex; justify-content: space-between; font-size: 13px; color: #6d7885; font-variant-numeric: tabular-nums; }
.xdp-ctl { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 auto; padding: 0 2px; flex: none; }
.xdp-cb { width: 52px; height: 52px; position: relative; }
.xdp-cb:active { background: rgba(0,0,0,.06); }
.xdp-shuf, .xdp-rep { color: #99a2ad; }
.xdp-shuf.is-on, .xdp-rep.is-on { color: var(--xdp-blue); }
.xdp-rep i { display: none; position: absolute; top: 9px; right: 8px; min-width: 13px; height: 13px; border-radius: 7px; background: var(--xdp-blue); color: #fff; font: 700 9px/13px system-ui, sans-serif; font-style: normal; text-align: center; }
.xdp-rep.is-one i { display: block; }
.xdp-prev svg, .xdp-next svg { width: 34px; height: 34px; }
.xdp-big { width: 76px; height: 76px; }
.xdp-big svg { width: 48px; height: 48px; }
.xdp-vol { display: none; }

/* очередь */
.xdp-q { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: calc(62px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; overflow: hidden; border-radius: 22px 22px 0 0; background: #fff; box-shadow: 0 -4px 20px rgba(0,0,0,.08); transition: height .3s cubic-bezier(.2,.8,.2,1); }
.xdp-q.is-open { height: 64%; }
.xdp-q-h { flex: none; padding: 9px 20px 12px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.xdp-q-h i { display: block; width: 36px; height: 4px; border-radius: 2px; background: #c4c8cc; margin: 0 auto 10px; }
.xdp-q-h b { font-size: 18px; font-weight: 700; }
.xdp-q-h em { font-style: normal; margin-left: 8px; padding: 1px 8px; border-radius: 10px; background: #eceef1; font-size: 13px; font-weight: 600; vertical-align: 2px; }
.xdp-q-l { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 10px calc(12px + env(safe-area-inset-bottom)); }
.xdp-qi { display: flex; align-items: center; gap: 12px; width: 100%; padding: 6px 10px; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.xdp-qi:hover { background: rgba(0,0,0,.04); }
.xdp-qc { width: 46px; height: 46px; border-radius: 10px; overflow: hidden; flex: none; background: #eceef1; color: #99a2ad; display: flex; align-items: center; justify-content: center; }
.xdp-qc img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xdp-qc .xdp-nocov svg { width: 24px; height: 24px; }
.xdp-qt { flex: 1; min-width: 0; }
.xdp-qt b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xdp-qt small { display: block; font-size: 13px; color: var(--xdp-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xdp-qi.is-cur b { color: var(--xdp-blue); }
.xdp-qd { font-size: 13px; color: var(--xdp-mut); flex: none; }

/* шторки меню */
.xdp-sh { padding: 2px 0 4px; }
.xdp-sh-h { display: flex; align-items: center; gap: 12px; padding: 4px 8px 12px; margin-bottom: 4px; border-bottom: 1px solid rgba(0,0,0,.06); }
.xdp-sh-h .xdp-qc { width: 52px; height: 52px; }
.xdp-sh-i { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 50px; padding: 0 10px; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; font-size: 16px; text-align: left; cursor: pointer; }
.xdp-sh-i:hover { background: rgba(0,0,0,.04); }
.xdp-sh-i:disabled { opacity: .5; }
.xdp-sh-i > svg { width: 22px; height: 22px; color: var(--xdp-blue, #2688eb); }
.xdp-sh-i span { flex: 1; min-width: 0; }
.xdp-sh-i small { display: block; font-size: 13px; color: #818c99; }
.xdp-sh-i.xdp-pl { padding-top: 6px; padding-bottom: 6px; }
.xdp-sh-i.is-red, .xdp-sh-i.is-red > svg { color: #e64646; }
.xdp-sh-i.is-blue { color: #2688eb; }
.xdp-sh hr { border: 0; border-top: 1px solid rgba(0,0,0,.06); margin: 4px 0; }
.xdp-sh-t { font-size: 17px; font-weight: 600; padding: 8px 10px 6px; }
.xdp-sh-s { font-size: 13px; color: #818c99; padding: 10px 10px 6px; }
.xdp-sh-p { margin: 4px 10px 12px; font-size: 15px; color: #6d7885; }
.xdp-sw i { position: relative; width: 40px; height: 24px; border-radius: 12px; background: #d7dbe0; flex: none; transition: background .2s; }
.xdp-sw i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .2s; }
.xdp-sw.is-on i { background: #2688eb; }
.xdp-sw.is-on i::after { left: 18px; }
.xdp-seg { display: flex; gap: 6px; padding: 0 10px 10px; }
.xdp-seg button { flex: 1; height: 40px; border: 0; border-radius: 10px; background: rgba(0,0,0,.05); color: inherit; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.xdp-seg button.is-on { background: #2688eb; color: #fff; }
.xdp-sh-btns { display: flex; gap: 8px; padding: 4px 10px 6px; }
.xdp-btn { flex: 1; height: 44px; border: 0; border-radius: 12px; background: rgba(0,0,0,.06); color: inherit; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.xdp-btn.is-red { background: #e64646; color: #fff; }
.xdp-sh-new { display: flex; gap: 8px; padding: 4px 10px 8px; }
.xdp-sh-new input { flex: 1; min-width: 0; height: 44px; box-sizing: border-box; padding: 0 12px; border: 1px solid rgba(0,0,0,.12); border-radius: 12px; background: #f7f4f2; color: inherit; font: inherit; font-size: 16px; outline: none; }
.xdp-sh-new input:focus { border-color: #2688eb; }
.xdp-sh-new .xdp-btn { flex: none; padding: 0 16px; background: #2688eb; color: #fff; }
.xdp-sh-new .xdp-btn:disabled { opacity: .6; }
[data-theme="dark"] .xdp-sh-new input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }

/* компьютер */
@media (min-width: 882px) {
  .xdp-bar { left: 50%; right: auto; width: 560px; bottom: 16px; transform: translateX(-50%); border-radius: 14px; border: 0; box-shadow: 0 6px 24px rgba(0,0,0,.14); overflow: hidden; }
  .xdp-bar .xdp-line { top: auto; bottom: 0; }
  html.xdp-has-side .xdp-bar, html.xdp-has-side .xdp-pad { display: none !important; }
  .xdp-mob { display: none !important; }
  .xdp-pc { display: flex !important; }
  .xdp-card { inset: auto; left: 50%; top: 50%; width: 380px; max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.3); opacity: 0; transform: translate(-50%, -47%) scale(.97); transition: opacity .2s, transform .25s cubic-bezier(.2,.8,.2,1); }
  .xdp-fp.is-open .xdp-card { opacity: 1; transform: translate(-50%, -50%); }
  .xdp-fp { transition: visibility 0s .25s; }
  .xdp-in { height: auto; padding: 8px 20px 16px; }
  .xdp-top { height: 44px; }
  .xdp-src { text-align: left; padding-left: 2px; }
  .xdp-cov { width: 200px; height: 200px; margin: 6px auto 16px; border-radius: 14px; }
  .xdp-ttl b { font-size: 19px; }
  .xdp-art { color: var(--xdp-blue); font-size: 14.5px; }
  .xdp-rb { width: 38px; height: 38px; background: none; }
  .xdp-rb:hover { background: rgba(0,0,0,.06); }
  .xdp-pills, .xdp-q { display: none; }
  .xdp-seek { margin-top: 10px; }
  .xdp-ctl { display: grid; grid-template-columns: repeat(5, 1fr); grid-template-areas: ". prev play next ." "shuf vol vol vol rep"; justify-items: center; align-items: center; row-gap: 6px; margin: 6px 0 0; }
  .xdp-shuf { grid-area: shuf; } .xdp-prev { grid-area: prev; } .xdp-big { grid-area: play; } .xdp-next { grid-area: next; } .xdp-rep { grid-area: rep; }
  .xdp-cb { width: 44px; height: 44px; }
  .xdp-cb:hover { background: rgba(0,0,0,.06); }
  .xdp-prev svg, .xdp-next svg { width: 28px; height: 28px; }
  .xdp-big { width: 58px; height: 58px; background: var(--xdp-blue); color: #fff; }
  .xdp-big:hover { background: #1f78d1; }
  .xdp-big svg { width: 30px; height: 30px; }
  .xdp-vol { grid-area: vol; display: flex; align-items: center; gap: 2px; width: 100%; color: #99a2ad; }
  .xdp-vol .xdp-cb { width: 36px; height: 36px; }
  .xdp-fp .xdp-vol input[type="range"] { flex: 1; min-width: 0; height: 4px; margin: 0 6px 0 2px; padding: 0; border: 0; border-radius: 999px; box-shadow: none; outline: none; background: linear-gradient(to right, var(--xdp-blue) var(--v, 100%), rgba(0,0,0,.12) var(--v, 100%)); -webkit-appearance: none; appearance: none; cursor: pointer; }
  .xdp-fp .xdp-vol input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.25); transition: transform .15s; }
  .xdp-fp .xdp-vol input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.15); }
  .xdp-fp .xdp-vol input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.25); }
  .xdp-fp .xdp-vol input[type="range"]::-moz-range-track { background: transparent; border: 0; }
}

/* тёмная тема */
[data-theme="dark"] .xdp-bar { background: #222326; color: #e1e3e6; border-top-color: rgba(255,255,255,.06); }
[data-theme="dark"] .xdp-card { background: #19191a; color: #e1e3e6; }
[data-theme="dark"] .xdp-bg::after { background: rgba(25,25,26,.82); }
[data-theme="dark"] .xdp-cov, [data-theme="dark"] .xdp-qc { background: #2c2d2e; color: #76787a; }
[data-theme="dark"] .xdp-rb, [data-theme="dark"] .xdp-pills button { background: rgba(255,255,255,.1); }
[data-theme="dark"] .xdp-tr-in { background: rgba(255,255,255,.18); }
[data-theme="dark"] .xdp-art, [data-theme="dark"] .xdp-tm { color: #939699; }
[data-theme="dark"] .xdp-q { background: #232324; box-shadow: 0 -4px 20px rgba(0,0,0,.4); }
[data-theme="dark"] .xdp-q-h em { background: #2c2d2e; }
[data-theme="dark"] .xdp-q-h i { background: #4a4b4d; }
[data-theme="dark"] .xdp-qi:hover, [data-theme="dark"] .xdp-sh-i:hover, [data-theme="dark"] .xdp-ib:hover, [data-theme="dark"] .xdp-cb:hover { background: rgba(255,255,255,.06); }
[data-theme="dark"] .xdp-sh-h, [data-theme="dark"] .xdp-sh hr { border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .xdp-seg button, [data-theme="dark"] .xdp-btn { background: rgba(255,255,255,.08); }
[data-theme="dark"] .xdp-sw i { background: #4a4b4d; }
@media (min-width: 882px) {
  [data-theme="dark"] .xdp-art { color: #71aaeb; }
  [data-theme="dark"] .xdp-rb { background: none; }
  [data-theme="dark"] .xdp-fp .xdp-vol input[type="range"] { background: linear-gradient(to right, var(--xdp-blue) var(--v, 100%), rgba(255,255,255,.18) var(--v, 100%)); }
}
