/* Окошко «Работает только в наушниках» над кнопкой «Пой со мной» / «Записать» (static/headphones.js) */
.hdph-pop {
  position: fixed; z-index: 1200; width: 320px; max-width: calc(100vw - 24px); box-sizing: border-box;
  padding: 16px; border-radius: var(--radius); border: 1px solid var(--border-2);
  background: var(--surface-2); color: var(--text); box-shadow: var(--shadow);
  animation: hdph-in .16s cubic-bezier(.2, .8, .2, 1);
}
.hdph-pop.out { opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; }
/* хвостик к кнопке */
.hdph-pop::after {
  content: ""; position: absolute; left: var(--arrow, 28px); bottom: -6px; width: 10px; height: 10px; margin-left: -5px;
  background: var(--surface-2); border-right: 1px solid var(--border-2); border-bottom: 1px solid var(--border-2);
  transform: rotate(45deg);
}
.hdph-pop.below::after { bottom: auto; top: -6px; transform: rotate(225deg); }

.hdph-head { display: flex; align-items: center; gap: 10px; }
.hdph-head b { font-size: 15px; line-height: 1.3; }
.hdph-ic {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-text);
}
.hdph-ic svg { width: 18px; height: 18px; }
.hdph-pop p { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

.hdph-again { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); cursor: pointer; user-select: none; }
.hdph-again input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); cursor: pointer; }

.hdph-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.hdph-btns .btn.primary svg { width: 15px; height: 15px; margin-right: 6px; }

/* телефон: снизу во всю ширину */
.hdph-pop.sheet { left: 12px !important; right: 12px; top: auto !important; bottom: 12px; width: auto; max-width: none; }
.hdph-pop.sheet::after { display: none; }
.hdph-pop.sheet .hdph-btns .btn { flex: 1; height: 40px; }

@keyframes hdph-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hdph-pop { animation: none; } .hdph-pop.out { transition: none; } }
