/* «Мои песни»: жест на ответах, крупное подтверждение, список в Кабинете */
.opt, .stage { touch-action: pan-y; }
.opt.ms-drag { transition: none; z-index: 2; box-shadow: 0 6px 18px rgba(0,0,0,.35), inset 0 0 0 1px var(--line); }
.opt.ms-ready { box-shadow: 0 6px 18px rgba(0,0,0,.35), inset 0 0 0 2px var(--gold); }
.opt.dis { cursor: default; opacity: .5; }
.opt.dis.right, .opt.dis.wrong, .opt.dis.closed { opacity: 1; }
@media (hover: hover) { .opt:not(:disabled):not(.dis):hover { background: var(--surface2); } }
@media (hover: hover) { .opt.dis:hover { background: var(--surface); } }
@media (hover: hover) { .opt.dis.right:hover { background: #1f6b35; } }
@media (hover: hover) { .opt.dis.wrong:hover { background: #8c1c22; } }
.ms-hint { font-size: 13.5px; }

.ms-pop { position: fixed; left: 50%; top: 46%; z-index: 90; transform: translate(-50%, -50%) scale(.8); opacity: 0; pointer-events: none;
  min-width: 220px; max-width: 86vw; padding: 20px 22px 18px; text-align: center; background: var(--surface); color: var(--text);
  box-shadow: 0 10px 36px rgba(0,0,0,.55), inset 0 0 0 2px var(--gold); transition: opacity .15s, transform .2s var(--ease); }
.ms-pop.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.ms-pop .ms-heart { width: 76px; height: 76px; margin: 0 auto 6px; color: var(--red-hi, #e5323b); display: grid; place-items: center; font-size: 56px; font-weight: 800; }
.ms-pop .ms-heart svg { width: 76px; height: 76px; fill: currentColor; }
.ms-pop.show.ok .ms-heart svg { animation: msbeat .5s var(--ease); }
.ms-pop.again .ms-heart { color: var(--muted); }
.ms-pop.wait .ms-heart { opacity: .5; }
.ms-pop.bad { box-shadow: 0 10px 36px rgba(0,0,0,.55), inset 0 0 0 2px var(--red-hi, #e5323b); }
.ms-pop .ms-text { font-size: 20px; font-weight: 800; letter-spacing: -.015em; }
@keyframes msbeat { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .ms-pop, .ms-pop.show.ok .ms-heart svg { transition: none; animation: none; } }

.msong { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.msong:first-of-type { border-top: 0; }
.msong .mi { flex: 1; min-width: 0; }
.msong .mi b { display: block; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.msong .mi span { color: var(--muted); font-size: 13px; }
.msong .btn { flex: none; padding: 8px 10px; min-height: 0; font-size: 13.5px; }
.msong .mdel { color: var(--muted); }
.mscount { font-size: 28px; font-weight: 800; }
.msask { display: flex; gap: 8px; align-items: center; flex: none; }
.opt.dis:active { transform: none; }

/* подтверждение компактной полосой над строкой громкости: не закрывает ни результат, ни ответы */
.ms-pop.slim { top: var(--ms-top, 46%); min-width: 0; padding: 8px 16px; display: flex; align-items: center; gap: 10px; }
.ms-pop.slim .ms-heart { width: 34px; height: 34px; margin: 0; font-size: 28px; }
.ms-pop.slim .ms-heart svg { width: 34px; height: 34px; }
.ms-pop.slim .ms-text { font-size: 16px; white-space: nowrap; }

/* экран «Мои песни» и кнопка в Кабинете */
.mysongsbtn { width: 100%; margin: 0 0 14px; padding: 16px; font-size: 18px; }
.msbar { margin: 4px 0 8px; }
.msback { padding: 8px 14px; min-height: 0; font-size: 14px; }
.mshead { margin: 16px 2px 6px; }
.mspl { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin: 0 0 8px; padding: 14px 16px; text-align: left; font-size: 16px; font-weight: 700;
  background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); border-radius: 12px; }
.mspl.main { background: var(--gold); color: var(--gold-ink, #000); font-size: 18px; box-shadow: none; padding: 18px 16px; }
.mspl .mpg { font-style: normal; font-size: 22px; opacity: .6; }
.mssearch { width: 100%; box-sizing: border-box; margin: 0 0 8px; padding: 12px 14px; font-size: 16px; border-radius: 12px; border: 0; background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.msrows { background: var(--surface); border-radius: 12px; padding: 0 12px; }
.msrow { touch-action: pan-y; }
.msrow.ms-ready { background: rgba(200, 40, 40, .18); }
.msnote { display: block; overflow: visible; -webkit-line-clamp: unset; }

/* кнопка «В Кабинет» после ответа, «Прошлая песня» в следующем раунде, «Недавно звучали» */
.ms-savebtn { margin-top: 8px; padding: 9px 16px; min-height: 0; font-size: 15px; font-weight: 800; }
.ms-savebtn.on { color: var(--red-hi, #e5323b); opacity: 1; }
#stagebox { position: relative; }
.msrecent .msong .ms-savebtn { margin: 0; flex: none; }
/* высота карточки раунда одна на все этапы (ожидание, отсчёт, результат с кнопкой): иначе блок вариантов под ней прыгает */
.playing .stage .ms-savebtn { margin-top: 6px; min-height: 36px; padding: 0 16px; font-size: 14px; }

/* «Избранное»: чипы-фильтры, мини-плеер, строки с ▶ и ♥ */
.msempty { padding: 18px 4px; font-size: 16px; text-align: center; }
.mschips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.mschip { padding: 8px 12px; min-height: 36px; border: 0; border-radius: 18px; font-size: 14px; font-weight: 700; background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.mschip.on { background: var(--gold); color: var(--gold-ink, #000); box-shadow: none; }
.mslisten { width: 100%; margin: 0 0 10px; padding: 14px; font-size: 17px; }
.msplayer { position: sticky; bottom: 8px; z-index: 5; margin: 0 0 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface); color: var(--text); box-shadow: 0 6px 20px rgba(0,0,0,.35), inset 0 0 0 2px var(--gold); display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; }
.msplayer[hidden] { display: none; }
.mspt { min-width: 0; }
.mspt b { display: block; font-size: 15px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mspt span { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mspc { display: flex; gap: 4px; }
.mspb { min-width: 44px; min-height: 44px; padding: 0; font-size: 18px; }
.msppp { background: var(--gold); color: var(--gold-ink, #000); }
.mspbar { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.mspbar i { display: block; height: 100%; width: 0; background: var(--gold); }
.msong { flex-wrap: wrap; }
.msong .msplay, .msong .msheart, .msong .msdl { min-height: 44px; }
.msong .msplay, .msong .msheart { min-width: 44px; padding: 0; font-size: 18px; }
.msong .msheart.on { color: var(--red-hi, #e5323b); }
.msong.now { background: rgba(255, 210, 0, .12); border-radius: 8px; }
.msong .own-st { flex-basis: 100%; font-size: 14px; color: var(--muted); }
.msong .own-st.ok { color: #3ecf6a; font-weight: 700; } .msong .own-st.bad { color: #ff5a5a; }
.ms-savebtn.on { color: var(--red-hi, #e5323b); }

/* обложки */
.cover { width: 56px; height: 56px; flex: none; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--surface2, rgba(128,128,128,.2)); color: var(--gold); box-shadow: inset 0 0 0 1px var(--line); }
.cover svg { width: 55%; height: 55%; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover.sm { width: 44px; height: 44px; border-radius: 8px; }
.aplate { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px 0 2px; max-width: 100%; }
.aplate .answer { margin: 0; text-align: left; min-width: 0; }
.msong .msdl { order: 4; flex: 1 1 100%; }
.msong .own-st { order: 5; }
.stage .aplate .cover { width: 48px; height: 48px; }

/* экспорт плейлиста */
.msexp { margin: 0 0 12px; }
.msxtabs { display: flex; gap: 6px; }
.msxtab { flex: 1; padding: 8px 4px; font-size: 13.5px; text-align: center; }
.msxbody { margin-top: 8px; background: var(--surface); border-radius: 12px; padding: 10px 12px; }
.msxbody:empty { display: none; }
.msxrow { display: flex; gap: 8px; margin: 8px 0; }
.msxrow .msxbtn { flex: 1; }
.msxbtn { width: 100%; margin: 6px 0 0; padding: 11px 10px; min-height: 44px; font-size: 15px; font-weight: 700; }
.msxrow .msxbtn { margin: 0; }
