/* queue-panel.css */
.queue-panel {
  position: fixed; right: 24px; bottom: 106px; z-index: 40;
  width: 340px; max-width: calc(100vw - 32px);
  background: var(--elevated); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.5); overflow: hidden;
  transform-origin: bottom right;
  animation: queue-in .18s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes queue-in { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
.queue-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px 10px; font-weight: 700; font-size: .95rem;
  border-bottom: 1px solid var(--line);
}
.queue-count { color: var(--muted); font-size: .72rem; font-weight: 500; margin-left: auto; }
.queue-back { display: grid; place-items: center; width: 26px; height: 26px; margin: -4px 4px -4px -4px; border: none; background: none; color: var(--muted); cursor: pointer; border-radius: 999px; }
.queue-back:hover { color: var(--text); background: var(--card-hover); }
.queue-back svg { width: 20px; height: 20px; }
.queue-chev { width: 18px; height: 18px; flex: 0 0 auto; color: var(--muted); }
.queue-item[data-pl]:hover .queue-chev { color: var(--text); }
.queue-playbtn { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 999px; border: none; background: var(--gold); color: #000; display: grid; place-items: center; cursor: pointer; transition: transform .1s, background .15s, opacity .15s; }
.queue-playbtn svg { width: 16px; height: 16px; }
.queue-playbtn:hover { background: var(--gold-bright); transform: scale(1.08); }
.queue-item[data-pl] .queue-playbtn { opacity: 0; }
.queue-item[data-pl]:hover .queue-playbtn { opacity: 1; }
.queue-playbtn.head-play { width: 30px; height: 30px; margin: -4px 0; }
.queue-list { max-height: 320px; overflow-y: auto; padding: 6px; }
.queue-item {
  display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px;
  cursor: pointer; transition: background .15s;
}
.queue-item:hover { background: var(--card-hover); }
.queue-item.is-current { background: var(--card-hover); }
.queue-art { width: 40px; height: 40px; border-radius: 6px; flex: 0 0 auto; background-size: cover; background-position: center; }
.yt-hide { position: fixed; left: -9999px; bottom: 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.queue-info { min-width: 0; flex: 1; }
.queue-title { font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-item.is-current .queue-title { color: var(--gold); }
.queue-artist { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-eq { display: none; flex: 0 0 auto; align-items: flex-end; gap: 2px; height: 14px; }
.queue-item.is-current.is-playing .queue-eq { display: flex; }
.queue-eq span { width: 3px; background: var(--gold); border-radius: 2px; animation: eq 0.9s ease-in-out infinite; }
.queue-eq span:nth-child(1) { animation-delay: -0.3s; }
.queue-eq span:nth-child(2) { animation-delay: -0.6s; }
.queue-eq span:nth-child(3) { animation-delay: -0.15s; }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 14px; } }
