.hx-sync-top,
.hx-sync-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hx-sync-top {
  justify-content: space-between;
}

.hx-sync-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hx-sync-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--text-muted, #bbb);
}

.hx-sync-badge.live {
  background: rgba(22, 163, 74, 0.2);
  color: #86efac;
}

.hx-sync-input {
  flex: 1;
  min-width: 80px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: inherit;
  height: 34px;
  padding: 0 10px;
}

.hx-sync-btn,
.hx-sync-icon-btn {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.07);
  color: inherit;
  border-radius: 8px;
  cursor: pointer;
  height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.hx-sync-btn:hover,
.hx-sync-icon-btn:hover {
  background: rgba(255,255,255,0.14);
}

.hx-sync-btn.danger {
  border-color: rgba(220, 38, 38, 0.45);
}

.hx-sync-controls {
  flex-wrap: wrap;
}

.hx-sync-meta {
  font-size: 11px;
  color: #c1c9da;
}

.hx-sync-link {
  font-size: 11px;
  color: #89a8ff;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.hx-sync-qr-wrap {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  align-items: center;
}

#hx-sync-qr {
  width: 88px;
  height: 88px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.3);
  object-fit: cover;
}

.hx-sync-qr-meta {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.hx-sync-queue {
  display: grid;
  gap: 6px;
  max-height: 180px;
  overflow: auto;
}

.hx-sync-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 7px 8px;
}

.hx-sync-item-title {
  font-size: 12px;
  line-height: 1.2;
}

.hx-sync-item-artist {
  margin-top: 2px;
  font-size: 11px;
  color: #a0afca;
}

.hx-sync-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 768px) {
  .hx-sync-row {
    flex-wrap: wrap;
  }

  .hx-sync-row:first-of-type .hx-sync-btn {
    flex: 1 1 0;
    min-width: 118px;
  }

  .hx-sync-input {
    flex: 1 1 100%;
    order: 3;
    height: 38px;
    font-size: 14px;
  }

  .hx-sync-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hx-sync-controls .hx-sync-icon-btn {
    height: 38px;
  }

  .hx-sync-controls .hx-sync-btn {
    grid-column: span 3;
    height: 38px;
  }

  .hx-sync-qr-wrap {
    grid-template-columns: 72px 1fr;
  }

  #hx-sync-qr {
    width: 72px;
    height: 72px;
  }
}
