/* ---------------------------------------------------------------------------
   context-menu-modal.css — Right-click context menu, and the generic
   text-input modal (used for rename/new folder/new playlist/etc).
   --------------------------------------------------------------------------- */

.context-menu {
  position: fixed;
  background: #26262a;
  border: 1px solid #35353a;
  border-radius: 8px;
  padding: 4px;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  min-width: 180px;
}
.context-menu.hidden { display: none; }
.context-menu-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 4px;
}
.context-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  flex-shrink: 0;
  font-size: 14px;
  color: var(--accent-color);
}
.context-menu-label { flex: 1; }
@media (hover: hover) { .context-menu-item:hover { background: #35353a; } }
.context-menu-divider { height: 1px; background: #35353a; margin: 4px 0; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.modal-overlay.hidden { display: none; }
.modal {
  background: #26262a;
  padding: 20px;
  border-radius: 10px;
  width: 300px;
}
#modalTitle { text-align: center; font-weight: 600; margin-bottom: 8px; }
.modal input {
  width: 100%;
  padding: 8px;
  margin: 10px 0;
}
.modal-actions { display: flex; justify-content: center; gap: 8px; }
.modal-actions button {
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: #35353a;
  color: #e8e8ea;
}
#modalOk, #loginOk, #metaApplyBtn { background: color-mix(in srgb, var(--accent-color) 18%, transparent); color: color-mix(in srgb, var(--accent-color) 70%, white); }
@media (hover: hover) { #modalOk:hover, #loginOk:hover, #metaApplyBtn:hover { background: color-mix(in srgb, var(--accent-color) 28%, transparent); } }