/* ═══════════════════════════════════════════════════════════════════════
   paroles.css — Panneau des paroles + bloc « recherche par paroles ».
   Thème sombre cohérent avec l'app (vert --green #1db954).
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Bouton « Paroles » dans la barre du lecteur ───────────────────────── */
#parolesBtn { position: relative; }
#parolesBtn.on { color: var(--green); }
#parolesBtn svg { width: 17px; height: 17px; }

/* ── Panneau latéral ───────────────────────────────────────────────────── */
.paroles-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 92vw;
  height: calc(100% - 90px);          /* laisse la barre du lecteur visible */
  background: linear-gradient(180deg, #1e1e22 0%, var(--bg) 55%);
  border-left: 1px solid var(--border);
  box-shadow: -18px 0 46px rgba(0, 0, 0, .5);
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  z-index: 1400;
}
.paroles-panel.open { transform: translateX(0); }

.paroles-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.paroles-head .ph-badge {
  width: 42px; height: 42px; border-radius: 6px; flex-shrink: 0;
  background: var(--card-h); object-fit: cover;
}
.paroles-head-txt { flex: 1; min-width: 0; }
.paroles-kicker {
  font-size: .68rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green); margin-bottom: 3px;
}
.paroles-title {
  font-size: 1rem; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.paroles-artist {
  font-size: .8rem; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.paroles-close {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 1.1rem; transition: all .15s; background: transparent;
}
.paroles-close:hover { color: var(--text); background: rgba(255, 255, 255, .08); }

.paroles-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px 30px;
  white-space: pre-wrap;
  line-height: 1.62;
  font-size: .96rem;
  color: #e8e8e8;
}
.paroles-body::-webkit-scrollbar { width: 8px; }
.paroles-body::-webkit-scrollbar-thumb { background: #3a3a3a; border-radius: 4px; }

.paroles-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; gap: 12px; text-align: center; color: var(--muted);
  font-size: .9rem; white-space: normal;
}
.paroles-state .ps-ico { font-size: 2.4rem; opacity: .8; }
.paroles-spin {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .12); border-top-color: var(--green);
  animation: paroles-spin 1s linear infinite;
}
@keyframes paroles-spin { to { transform: rotate(360deg); } }

.paroles-foot {
  flex-shrink: 0; padding: 9px 18px; border-top: 1px solid var(--border);
  font-size: .72rem; color: var(--muted); text-align: right;
}
.paroles-foot a { color: var(--muted); text-decoration: underline; }
.paroles-foot a:hover { color: var(--text); }

/* ── Bloc « 🔎 Tu cherches ces paroles ? » en tête de recherche ────────── */
.paroles-find {
  background: linear-gradient(135deg, rgba(29, 185, 84, .14), rgba(29, 185, 84, .04));
  border: 1px solid rgba(29, 185, 84, .35);
  border-radius: 12px;
  padding: 14px 16px 8px;
  margin: 14px 0 6px;
}
.paroles-find-head {
  display: flex; align-items: center; gap: 8px;
  font-size: .95rem; font-weight: 800; color: var(--text); margin-bottom: 4px;
}
.paroles-find-sub { font-size: .78rem; color: var(--muted); margin-bottom: 10px; }
.paroles-find-row {
  display: flex; align-items: center; gap: 12px; padding: 8px 8px;
  border-radius: 8px; cursor: pointer; transition: background .12s;
}
.paroles-find-row:hover { background: rgba(255, 255, 255, .06); }
.paroles-find-row img {
  width: 46px; height: 46px; border-radius: 5px; object-fit: cover;
  flex-shrink: 0; background: var(--card-h);
}
.paroles-find-info { flex: 1; min-width: 0; }
.paroles-find-t {
  font-size: .9rem; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.paroles-find-a {
  font-size: .78rem; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.paroles-find-play {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--green); color: #000;
}
.paroles-find-play svg { width: 15px; height: 15px; fill: #000; }
.paroles-find-dur { font-size: .78rem; color: var(--muted); flex-shrink: 0; }
.paroles-find-empty { font-size: .82rem; color: var(--muted); padding: 4px 8px 12px; }

@media (max-width: 640px) {
  .paroles-panel { width: 100%; max-width: 100%; height: calc(100% - 76px); }
}
