/* ===== Сторінка пісні — новий стиль (як сторінка виконавця) ===== */
:root { --sp-grad: linear-gradient(90deg, #6767e8 0%, #e36775 100%); }

/* --- шапка --- */
.sp-hero { position: relative; overflow: hidden; padding: 92px 0 30px; margin-bottom: 16px; color: #fff; }
.sp-hero-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(28px) saturate(1.3); transform: scale(1.1); }
.sp-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #1a0a2699 0%, #1a0a26d9 70%, #1a0a26f2 100%); }
.sp-hero-in { position: relative; z-index: 2; display: flex; align-items: center; gap: 28px; }

.sp-cover { position: relative; flex: none; width: 210px; height: 210px; border-radius: 20px; padding: 2px; background: var(--sp-grad); box-shadow: 0 24px 60px #0008; }
.sp-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; border: 2px solid #1a0a26; display: block; }
.sp-new { position: absolute; top: 2px; right: 2px; z-index: 2; width: 78px; height: 78px; overflow: hidden; border-radius: 0 18px 0 0; pointer-events: none; font-size: 0; }
.sp-new::before { content: "NEW"; position: absolute; top: 15px; right: -27px; width: 104px; transform: rotate(45deg); text-align: center; background: var(--sp-grad); color: #fff; font-size: 12px; font-weight: bold; letter-spacing: .05em; padding: 3px 0; box-shadow: 0 2px 6px #0004; }
.sp-cover-play { position: absolute; right: 12px; bottom: 12px; z-index: 3; width: 54px; height: 54px; border-radius: 50%; background: var(--sp-grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px; cursor: pointer; box-shadow: 0 8px 22px #0007; transition: transform .2s; }
.sp-cover-play:hover { transform: scale(1.08); }
.sp-cover-play .fa-play { margin-left: 3px; }
.sp-cover-play.play .fa-pause, .sp-cover-play.pause .fa-play,
.sp-listen.play .fa-pause, .sp-listen.pause .fa-play { display: none; }
.sp-cover-play:not(.play):not(.pause) .fa-pause, .sp-listen:not(.play):not(.pause) .fa-pause { display: none; }

.sp-info { min-width: 0; flex: 1; }
.sp-type { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #d5c9e6; }
.sp-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; background: #ffffff1f; border: 1px solid #ffffff2a; font-size: 11px; letter-spacing: .04em; color: #fff; }
.sp-badge .fa-check-circle { color: #6cd38f; }
.sp-badge-warn { background: #e3677540; border-color: #e3677580; }
.sp-tools { margin-left: auto; display: flex; gap: 6px; }
.sp-tools .dropdown-menu { text-transform: none; letter-spacing: normal; font-weight: normal; }
.sp-ic { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #ffffff1a; border: 1px solid #ffffff2a; color: #fff !important; font-size: 14px; cursor: pointer; transition: .2s; text-decoration: none !important; }
.sp-ic:hover { background: #fff; color: #1a0a26 !important; }
.sp-name { font-family: inherit; font-weight: bold; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.08; margin: 6px 0 8px; color: #fff; letter-spacing: -.6px; word-break: break-word; }
.sp-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 18px; margin-bottom: 12px; }
.sp-sub a { color: #fff !important; text-decoration: none !important; }
.sp-sub a:hover { color: #f3b6bd !important; }
.sp-album-type { text-transform: lowercase; padding: 1px 7px; border-radius: 99px; background: #e3677540; opacity: 1 !important; }
.sp-feat { color: #e6dcef; font-size: 15px; }
.sp-dot { opacity: .5; }
.sp-album { font-size: 15px; color: #e6dcef !important; }
.sp-album i { color: #e36775; margin-right: 3px; }
.sp-album small { opacity: .7; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.sp-chips > span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: #ffffff17; border: 1px solid #ffffff22; font-size: 13px; color: #eee6f5; backdrop-filter: blur(6px); }
.sp-chips i { color: #e36775; }
.sp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* кнопки (ті самі, що на сторінці виконавця) */
.ap-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 12px; border: 0; background: var(--sp-grad); color: #fff !important; font-weight: bold; font-size: 14px; cursor: pointer; transition: .2s; text-decoration: none !important; line-height: 1.3; }
.ap-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px #6767e840; }
.ap-btn-ghost { background: #ffffff1a; border: 1px solid #ffffff3a; box-shadow: none !important; }
.sp-btn-soft { background: #a5a5a52a; color: inherit !important; font-weight: 600; }
.sp-btn-soft:hover { background: #6767e830; box-shadow: none; }
.sp-btn-off { background: #a5a5a540; color: inherit !important; }
.sp-btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 10px; }
.sp-round { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #ffffff1a; border: 1px solid #ffffff2a; color: #fff !important; font-size: 15px; transition: .2s; text-decoration: none !important; }
.sp-round:hover { background: #fff; color: #1a0a26 !important; }
.sp-providers { display: inline-flex; gap: 6px; margin-left: 4px; }
.sp-providers a { display: inline-flex; transition: .2s; }
.sp-providers a:hover { transform: translateY(-2px); }
.sp-providers img { width: 30px; height: 30px; object-fit: contain; }

/* --- панелі --- */
.sp-main > .sp-panel, .sp-panel { border-radius: 18px; padding: 22px; margin-bottom: 16px; }
.sp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.sp-head h2 { font-size: 24px; margin: 0; }
.sp-head h2 span { color: #6767e8; }
.sp-count { margin-left: auto; min-width: 28px; height: 28px; padding: 0 9px; border-radius: 99px; background: var(--sp-grad); color: #fff; font-size: 13px; font-weight: bold; display: inline-flex; align-items: center; justify-content: center; }
.sp-muted { opacity: .6; }
.sp-note { padding: 12px 16px; border-radius: 12px; background: #e3677518; border: 1px solid #e3677540; font-size: 15px; }
.sp-video { border-radius: 18px; overflow: hidden; margin-bottom: 16px; height: 315px; background: #000; }
.sp-video iframe { display: block; width: 100%; height: 315px; border: 0; }

/* --- фонограми --- */
.sp-fon { padding: 14px; border-radius: 16px; background: #a5a5a512; border: 1px solid #a5a5a52a; }
.sp-fon + .sp-fon { margin-top: 12px; }
.sp-fon-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.sp-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: #a5a5a522; font-size: 13px; color: inherit; text-decoration: none !important; }
.sp-tag i { opacity: .65; }
.sp-tag-main { background: #6767e822; color: #6767e8; font-weight: 600; }
.sp-tag-main i { opacity: 1; }
.sp-tag-link { color: #b971b3 !important; }
.sp-tag-link:hover { background: #6767e830; }
.sp-fon-dl { margin-left: auto; }
.sp-fon .audioplayer.skin-wave .ap-controls .scrubbar .scrub-bg-img, .sp-fon .audioplayer { border-radius: 12px; }

/* --- текст --- */
.sp-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 14px; background: #a5a5a51c; width: max-content; max-width: 100%; margin-bottom: 14px; }
.sp-tab { padding: 7px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; color: inherit; text-decoration: none !important; transition: .2s; }
.sp-tab:hover { background: #6767e820; }
.sp-tab.on { background: var(--sp-grad); color: #fff !important; }
.sp-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.sp-toolbar-l, .sp-toolbar-r { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sp-toolbar .m-item { width: 38px; height: 38px; padding: 0 !important; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; margin: 0; }
.sp-empty { text-align: center; padding: 40px 0 20px; }
.sp-empty > i { display: block; font-size: 40px; opacity: .25; margin-bottom: 14px; }
.sp-langs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.sp-lang { padding: 5px 14px; border-radius: 99px; background: #a5a5a522; font-size: 14px; color: inherit !important; cursor: pointer; text-decoration: none !important; transition: .2s; }
.sp-lang:hover { background: #6767e830; }
.sp-lang.on { background: var(--sp-grad); color: #fff !important; }
.sp-lang-add { background: transparent; border: 1px dashed #a5a5a580; }
.sp-perevod-admin { display: flex; gap: 14px; margin: 12px 0 0; font-size: 14px; }
.sp-perevod-author { margin-top: 12px; font-size: 14px; }
.sp-lyrics .blocks:before { border: 1px solid #a5a5a54d; border-radius: 14px; background: #a5a5a50d; }
.sp-lyrics .videlit_line { background: var(--sp-grad) !important; color: #fff !important; border: 0 !important; font-size: 12px; letter-spacing: .05em; padding: 2px 10px; text-transform: uppercase; }
.sp-lyrics .blocks { padding: 12px 14px 4px; margin: 14px 0 6px; }
.sp-ai-note { text-align: right; font-size: 13px; font-style: italic; opacity: .7; }
.sp-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }

/* реакції */
.sp-votes { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px solid #a5a5a530; }
.sp-vote { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 9px; border-radius: 99px; background: #a5a5a51f; border: 1px solid #a5a5a530; color: inherit !important; text-decoration: none !important; transition: .2s; }
.sp-vote:hover { transform: translateY(-2px); border-color: #e3677580; background: #e3677514; }
.sp-vote .vote-count { font-weight: bold; font-size: 14px; }
.sp-vote .vote-avatars { display: flex; }
.sp-vote .vote-avatars img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; margin-left: -7px; border: 2px solid #fff; }
.sp-vote .vote-avatars img:first-child { margin-left: 0; }

/* --- про пісню --- */
.sp-people { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.sp-person { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 99px; background: #a5a5a51c; color: inherit !important; text-decoration: none !important; transition: .2s; cursor: pointer; }
.sp-person:hover { background: #6767e826; }
.sp-person > img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.sp-person > span:last-child { display: flex; flex-direction: column; line-height: 1.15; font-size: 14px; }
.sp-person small { font-size: 10px; opacity: .6; text-transform: uppercase; letter-spacing: .05em; }
.sp-person .StackedAvatars { display: flex; }
.sp-person .StackedAvatars img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; margin-left: -8px; border: 2px solid #fff; }
.sp-person .StackedAvatars img:first-child { margin-left: 0; }
.sp-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 12px; font-size: 15px; }
.sp-fact { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; }
.sp-fact > svg, .sp-fact > i { flex: none; color: #e36775; width: 15px !important; align-self: center; }
.sp-fact-k { opacity: .6; }
.sp-fact-v { word-break: break-word; }
.sp-fact-v a { color: #b971b3; }
.sp-themes .sp-fact { display: block; }
.sp-themes .sp-fact > svg { margin-right: 6px; vertical-align: -2px; }
.sp-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; opacity: .8; margin-bottom: 14px; }
.sp-stats i { color: #e36775; margin-right: 3px; }
.sp-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid #a5a5a530; }
.sp-share-t { font-size: 14px; opacity: .7; margin-right: 4px; }
.sp-share a { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #a5a5a524; color: inherit !important; font-size: 16px; transition: .2s; text-decoration: none !important; }
.sp-share a:hover { background: var(--sp-grad); color: #fff !important; transform: translateY(-2px); }

/* перекладів кнопка «показати всі» */
#translates .section-expand--label { margin: 0 auto; display: flex; width: max-content; }

/* --- коментарі --- */
.sp-cform { padding: 12px; border-radius: 16px; background: #a5a5a512; border: 1px solid #a5a5a52a; }
.sp-smiles { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 8px; }
.sp-smiles img { width: 30px; padding: 4px; border-radius: 8px; cursor: pointer; transition: .15s; }
.sp-smiles img:hover { background: #6767e830; transform: scale(1.15); }
.sp-cform textarea { border-radius: 12px; min-height: 84px; resize: vertical; }
.sp-cform-b { display: flex; justify-content: flex-end; margin-top: 8px; }
#comments .message p { margin: 0; }
#comments .media { padding: 12px 0 !important; border-bottom: 1px solid #a5a5a524; }
#comments .media img.rounded { border-radius: 50% !important; width: 42px; height: 42px; object-fit: cover; }

/* --- телефон / планшет --- */
@media (max-width: 991px) {
	.sp-cover { width: 170px; height: 170px; }
}
@media (max-width: 767px) {
	.sp-main > .sp-panel, .sp-panel { padding: 16px; border-radius: 16px; }
	.sp-video { border-radius: 16px; height: 220px; }
	.sp-video iframe { height: 220px; }
}
@media (max-width: 576px) {
	.sp-hero { padding: 80px 0 24px; }
	.sp-hero-in { flex-direction: column; align-items: center; text-align: center; gap: 18px; }
	.sp-cover { width: min(66vw, 270px); height: min(66vw, 270px); }
	.sp-type, .sp-sub, .sp-chips, .sp-actions { justify-content: center; }
	.sp-tools { margin-left: 6px; }
	.sp-head h2 { font-size: 21px; }
	.sp-fon { padding: 10px; }
	.sp-fon-dl { margin-left: 0; width: 100%; }
	.sp-fon-dl .ap-btn { width: 100%; justify-content: center; }
	.sp-tabs { width: 100%; }
	.sp-tab { flex: 1; text-align: center; padding: 7px 8px; }
	.sp-acts .ap-btn { justify-content: center; }
	.sp-facts { grid-template-columns: 1fr; }
}
@media print {
	.sp-panel { padding: 0; }
}

/* смуга відтворення в шапці */
.sp-prog-wrap { position: relative; z-index: 2; display: none; align-items: center; gap: 12px; margin-top: 22px; }
.sp-time { flex: none; min-width: 38px; font-size: 12px; font-variant-numeric: tabular-nums; color: #e6dcef; text-align: center; }
.sp-prog { position: relative; flex: 1; height: 6px; border-radius: 6px; background: #ffffff24; cursor: pointer; }
.sp-prog::before { content: ""; position: absolute; inset: -8px 0; } /* більша зона для кліку */
.sp-prog > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; width: 0; pointer-events: none; }
.sp-prog-buf { background: #ffffff33; }
.sp-prog-fill { background: var(--sp-grad); }
.sp-prog-fill::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px #e3677566; opacity: 0; transition: opacity .2s; }
.sp-prog:hover .sp-prog-fill::after, .sp-prog-wrap.on .sp-prog-fill::after { opacity: 1; }

/* модальні вікна на сторінці пісні */
.modal-content { border-radius: 20px; border: 1px solid #a5a5a52e; overflow: hidden; box-shadow: 0 30px 80px #0007; }
.modal-header { border-bottom: 1px solid #a5a5a52e !important; padding: 18px 22px; align-items: center; }
.modal-title { font-weight: bold; font-size: 20px; }
.modal-header .close { flex: none; width: 36px; height: 36px; margin: 0 0 0 auto !important; padding: 0 !important; border-radius: 50%; background: #a5a5a52a; opacity: 1; text-shadow: none; color: inherit; display: flex; align-items: center; justify-content: center; font-size: 22px; transition: .2s; }
.modal-header .close:hover { background: var(--sp-grad); color: #fff; }
.modal-body { padding: 20px 22px; }
.modal-body .form-control, .modal-body .custom-file-label, .modal-body .selectize-input { border-radius: 12px; }
.modal-body .custom-file-label::after { border-radius: 0 12px 12px 0; }
.modal-body .btn-primary { background: var(--sp-grad); border: 0; border-radius: 12px; font-weight: bold; }
.sp-modal-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #6767e81a; border: 1px solid #6767e840; font-size: 14px; margin-bottom: 16px; }
.sp-modal-note svg, .sp-modal-note i { color: #6767e8; margin-top: 3px; flex: none; }
.sp-share-big { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 16px; }
.sp-share-big a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 14px; background: #a5a5a51c; color: inherit !important; font-size: 12px; text-decoration: none !important; transition: .2s; }
.sp-share-big a svg, .sp-share-big a i { font-size: 22px; width: 22px !important; height: 22px; }
.sp-share-big a:hover { background: var(--sp-grad); color: #fff !important; transform: translateY(-2px); }
.sp-share-link { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 14px; background: #a5a5a51c; border: 1px solid #a5a5a52e; }
.sp-share-link #copyInfo { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; opacity: .85; }
.sp-share-note { text-align: center; font-size: 14px; opacity: .7; margin: 16px 0 0; }
#musicAuthorsModal .musicAuthorItem { border-radius: 12px; margin-bottom: 6px; border: 0 !important; padding: 10px 12px; font-size: 14px; line-height: 1.3;
	background: linear-gradient(90deg, #6767e830 var(--sp-share, 0%), #a5a5a512 0); }
#musicAuthorsModal .musicAuthorItem .avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
#musicAuthorsModal .musicAuthorItem .iq { color: #e36775; font-weight: bold; }
@media (max-width: 576px) {
	.sp-share-big { grid-template-columns: repeat(3, 1fr); }
	.sp-prog-wrap { margin-top: 16px; }
}
.sp-about { padding-top: 18px; }

.sp-prog-wrap.on { display: flex; animation: spIn .3s ease; }
@keyframes spIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sp-vol { flex: none; display: flex; align-items: center; gap: 8px; margin-left: 6px; }
.sp-vol-ic { color: #e6dcef !important; font-size: 15px; width: 18px; text-align: center; }
.sp-prog-wrap.muted .sp-vol-ic { opacity: .5; }
.sp-vol-bar { position: relative; width: 90px; height: 5px; border-radius: 5px; background: #ffffff24; cursor: pointer; }
.sp-vol-bar::before { content: ""; position: absolute; inset: -8px 0; }
.sp-vol-bar > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: var(--sp-grad); pointer-events: none; }
@media (max-width: 576px) { .sp-vol-bar { width: 60px; } }

/* реакція: нова аватарка з'являється плавно */
.sp-ava-new { animation: spPop .35s ease; }
@keyframes spPop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.sp-vote.sp-voted { border-color: #e3677580; background: #e3677514; }
/* телефон: «Поділитися» і «В плейлист» лише значками, щоб усе вмістилось в один рядок */
@media (max-width: 576px) {
	.sp-acts { flex-wrap: nowrap; }
	.sp-acts .ap-btn { flex: 1 1 auto; white-space: nowrap; }
	.sp-acts .sp-btn-icon { flex: 0 0 46px; padding: 9px 0; justify-content: center; }
	.sp-acts .sp-btn-icon span { display: none; }
}
/* телефон: відео без заокруглення, «Поділитися» — один рядок значків */
@media (max-width: 576px) {
	.sp-video { border-radius: 0; }
	.sp-share { flex-wrap: nowrap; justify-content: space-between; gap: 6px; }
	.sp-share-t { display: none; }
	.sp-share a { width: 42px; height: 42px; font-size: 16px; }
}
