/* Scrollable rows where the bar would be visual noise. The element still
   scrolls horizontally via wheel, drag, or touch, just without a visible bar */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }

input[type="range"] {
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 9999px;
  -webkit-appearance: none;
  appearance: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 9999px;
  background: white;
  cursor: pointer;
  border: 0;
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 9999px;
  background: white;
  cursor: pointer;
  border: 0;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

/* Style native selects */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: rgb(23 23 23);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1rem;
  padding-right: 2rem !important;
  border: 1px solid rgb(38 38 38);
  border-radius: 0.5rem;
  color: rgb(245 245 245);
  cursor: pointer;
}
select:focus {
  border-color: rgb(185 28 28);
  outline: none;
}
select option {
  background-color: rgb(23 23 23);
  color: rgb(245 245 245);
}

/* Tighter focus ring (dark red) */
*:focus-visible {
  outline: 2px solid rgb(185 28 28);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Lyrics. Inactive lines stay legible rather than dimmed to nothing, so the
   view still reads as lyrics when there is no synced version to highlight */
.lyric-line {
  padding: 0.3rem 0;
  color: #737373;
  transition: color 160ms ease, transform 160ms ease;
}
.lyric-blank { min-height: 0.75rem; }
/* The highlight is a soft colour change rather than a hard snap: the sync can
   be a second or so out and a sharp transition makes that far more obvious */
.lyric-active {
  color: #fafafa;
  font-weight: 600;
}

/* The row being dragged. Lifted off the list so it reads as picked up: it
   follows the pointer directly, so it must not have a transform transition
   or it would lag behind the finger */
.sorting {
  background: rgb(64 64 64 / 0.95);
  box-shadow: 0 12px 28px rgb(0 0 0 / 0.55);
  outline: 1px solid rgb(244 63 94 / 0.35);
  border-radius: 0.5rem;
  position: relative;
  z-index: 20;
  cursor: grabbing;
  transition: background 120ms ease, box-shadow 120ms ease;
}
/* Rows the dragged one passes slide aside. The transition is on these, not
   on the dragged row, so the gap opens smoothly while the row stays glued
   to the pointer */
.sort-shifting {
  transition: transform 160ms cubic-bezier(0.2, 0, 0, 1);
  will-change: transform;
}
/* Without this a finger drag on the handle scrolls the pane instead */
[data-sort-handle] { touch-action: none; }
/* No text selection while dragging a row around */
.sorting, .sort-shifting { user-select: none; -webkit-user-select: none; }

@media (prefers-reduced-motion: reduce) {
  .sort-shifting { transition: none; }
}
