:root {
  --queue-sort-duration: 250ms;
  --queue-sort-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-queue-drag] {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 28px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted, #a2a8b0);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

[data-queue-drag]:hover:not(:disabled),
[data-queue-drag]:focus-visible {
  color: var(--accent, #ff876f);
  background: var(--raised, #272c32);
}

[data-queue-drag]:disabled { cursor: default; }
[data-queue-drag] svg { width: 16px; height: 20px; pointer-events: none; }
[data-sorting] [data-queue-drag] { cursor: grabbing; }
.queue-sort-picked:not([hidden]) { background: var(--raised, #272c32); outline: 1px solid var(--accent, #ff876f); outline-offset: -1px; }
.queue-sort-dragging, .queue-sort-dragging * { user-select: none; -webkit-user-select: none; cursor: grabbing !important; }

.queue-sort-placeholder {
  position: relative;
  flex: none;
  width: 100%;
  border-bottom: 1px solid var(--border, #343a41);
  background: color-mix(in srgb, var(--accent, #ff876f) 8%, transparent);
}

.queue-sort-placeholder::after {
  content: '';
  position: absolute;
  inset: 6px 0;
  border: 1px dashed color-mix(in srgb, var(--accent, #ff876f) 60%, transparent);
  border-radius: 5px;
}

.queue-sort-ghost {
  position: fixed;
  z-index: 110;
  top: 0;
  left: 0;
  margin: 0;
  padding-inline: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--surface, #1e2227);
  box-shadow: 0 12px 28px #0008;
  border: 0;
  border-radius: 6px;
  opacity: .97;
  will-change: transform;
}

@media (pointer: coarse) {
  [data-queue-drag] { width: 36px; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-queue-id], .queue-sort-ghost { transition: none !important; animation: none !important; }
}
