* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at top, #1d2230 0%, #0f1115 45%, #0b0c10 100%);
  color: #f5f5f5;
}

a {
  color: inherit;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.card {
  background: linear-gradient(135deg, rgba(27, 30, 38, 0.95), rgba(21, 24, 33, 0.98));
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}


.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.title {
  font-size: 26px;
  margin: 0 0 8px 0;
  letter-spacing: 0.2px;
}

.muted {
  color: #9aa0aa;
}

.btn {
  background: #6f4cff;
  border: none;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 18px rgba(111, 76, 255, 0.25);
}

.btn.secondary {
  background: #2f3340;
  box-shadow: none;
}

.btn.ghost {
  background: transparent;
  border: 1px solid #3a4050;
  box-shadow: none;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn:not(:disabled):hover {
  transform: translateY(-1px);
}

.input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #3a4050;
  background: #12151c;
  color: #f5f5f5;
}

select.input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #9aa0aa 50%),
    linear-gradient(135deg, #9aa0aa 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 10px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 28px;
}

.input:focus {
  outline: none;
  border-color: rgba(111, 76, 255, 0.6);
  box-shadow: 0 0 0 2px rgba(111, 76, 255, 0.15);
}

.grid {
  display: grid;
  gap: 12px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.flex-1 {
  flex: 1;
}

.order {
  border: 1px solid #2c3140;
  border-radius: 14px;
  padding: 10px;
  display: grid;
  gap: 6px;
  background: rgba(18, 21, 28, 0.8);
  overflow: hidden;
}

.order.is-active {
  border-color: rgba(111, 76, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(111, 76, 255, 0.2);
}

.order.status-playing {
  border-left: 4px solid #6f4cff;
}

.order.status-approved,
.order.status-pending {
  border-left: 4px solid rgba(111, 204, 132, 0.6);
}

.order.status-rejected {
  border-left: 4px solid rgba(255, 107, 107, 0.7);
}

.order.status-done {
  border-left: 4px solid rgba(154, 160, 170, 0.6);
}

.status {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  display: inline-block;
}

.status.pending {
  background: rgba(255, 211, 106, 0.15);
  color: #ffd36a;
}

.status.approved {
  background: rgba(111, 204, 132, 0.15);
  color: #6fcc84;
}

.status.playing {
  background: rgba(111, 76, 255, 0.2);
  color: #b3a3ff;
}

.status.done {
  background: rgba(154, 160, 170, 0.2);
  color: #9aa0aa;
}

.status.rejected {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
}

.badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: #252a38;
  font-size: 11px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.08);
  object-fit: cover;
}

.player {
  width: 100%;
  min-height: 220px;
  border-radius: 12px;
  background: #0b0d12;
  border: 1px solid #2c3140;
}

.player iframe {
  width: 100%;
  min-height: 220px;
  border-radius: 12px;
  border: none;
}

.queue-list {
  display: grid;
  gap: 8px;
}

.flex-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hidden {
  display: none;
}

.range {
  accent-color: #6f4cff;
  width: 120px;
}

.spacer {
  height: 12px;
}

.volume-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
}

.order-title {
  font-weight: 600;
  text-decoration: none;
  flex: 1;
  min-width: 0;
}

.order-title:hover {
  text-decoration: underline;
}

.drag-handle {
  cursor: grab;
}

.order-header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.drag-grip {
  font-size: 14px;
  color: #9aa0aa;
  cursor: grab;
  user-select: none;
}

.dragging {
  opacity: 0.6;
}

.drag-over {
  outline: 2px dashed rgba(111, 76, 255, 0.6);
}

.truncate {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}


.order-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: #2f3340;
  font-size: 11px;
}

.pill-status.is-playing {
  background: rgba(111, 76, 255, 0.25);
  color: #d7ccff;
}

.pill-status.is-queued {
  background: rgba(111, 204, 132, 0.2);
  color: #bff2cb;
}

.pill-status.is-rejected {
  background: rgba(255, 107, 107, 0.2);
  color: #ffb3b3;
}

.pill-status.is-done {
  background: rgba(154, 160, 170, 0.2);
  color: #d3d7de;
}

.time-pill {
  background: rgba(111, 76, 255, 0.2);
  color: #cfc5ff;
}

.link-box {
  padding: 10px 12px;
  background: #12151c;
  border-radius: 10px;
  border: 1px solid #2c3140;
  word-break: break-all;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: #1b1e26;
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  font-weight: 600;
  z-index: 999;
}

.history-date {
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(47, 51, 64, 0.5);
  font-size: 12px;
  color: #cbd0da;
}

.order-actions .btn {
  padding: 6px 10px;
  font-size: 12px;
}

