/* Drag-and-drop styles for playlist editor */

/* Playlist items: show a drag handle cursor */
#playlist-items [data-item-id] {
  cursor: default;
}

.drag-handle {
  cursor: grab;
  color: #adb5bd;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0 .4rem 0 0;
  flex-shrink: 0;
  user-select: none;
}

.drag-handle:active {
  cursor: grabbing;
}

/* Item currently being dragged */
[data-item-id].is-dragging {
  opacity: 0.4;
}

/* Item being hovered over during reorder */
[data-item-id].drag-over {
  outline: 2px solid #005eb8;
  outline-offset: -2px;
  border-radius: 3px;
}

/* Playlist drop zone when a provider card is being dragged in */
#playlist-drop-zone {
  transition: background 0.15s, outline 0.15s;
  border-radius: 4px;
  min-height: 3rem;
}

#playlist-drop-zone.drop-zone {
  outline: 2px dashed #adb5bd;
  outline-offset: 2px;
}

#playlist-drop-zone.drop-zone-hover {
  background: #e8f0fe;
  outline: 2px dashed #005eb8;
  outline-offset: 2px;
}

/* Provider panel cards: indicate draggable */
[data-media-id] {
  cursor: grab;
}

[data-media-id]:active {
  cursor: grabbing;
}

[data-media-id].is-dragging {
  opacity: 0.5;
}
