/* Queue */

.queue-section {
  overflow: hidden;
  max-height: calc(100vh - 100px);
}

.queue-list {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--text-muted) transparent;
  height: 100%;
}

.queue-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  transition: background 0.15s;
  align-items: center;
  border-top: 1px solid var(--surface-dark);
}

.queue-item:hover { background: var(--surface-dark); }
.queue-item.active { background: var(--surface-dark); }

.queue-item .index {
  font-size: 12px;
  color: var(--text-muted);
  min-width: 24px;
  text-align: right;
}

.queue-item.active .index { color: var(--accent-red); font-weight: 700; }

.queue-item .thumb {
  width: 43px; height: 30px;
  border-radius: 4px;
  object-fit: cover;
  background: var(--surface-subtle);
  flex-shrink: 0;
}

.queue-item .info { flex: 1; min-width: 0; }

.queue-item .info .title {
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.queue-item.active .info .title { color: var(--accent-green); font-weight: 500; }

.queue-item .play-count-badge {
  font-size: 11px;
  color: var(--text-muted);
}

.queue-error-icon {
  color: color-mix(in srgb, var(--warning-bg), white 25%);
  font-size: 11px;
  margin-right: 2px;
}

@media (max-width: 800px) {
  .queue-section { width: 100%; max-height: 300px; }
}
