.queue-section {
  margin-top: 3rem;
  margin-bottom: 3rem;
  scroll-margin-top: 5rem;
}

.queue-panel {
  background: #181033;
  border: 1px solid #8a58c4;
  border-radius: 1rem;
  padding: clamp(1rem, 3vw, 1.75rem);
}

.queue-incoming { margin-bottom: 1rem; scroll-margin-top: 4rem; }
.queue-panel h3 { margin-top: 0; }
.queue-toolbar, .queue-item-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}

.queue-toolbar label { flex: 1 1 15rem; }
.queue-toolbar label select { display: block; width: 100%; }
.queue-panel select, .queue-panel button, .queue-panel .queue-next, .queue-panel input {
  background: #2d1b50;
  border: 1px solid #9267c2;
  border-radius: .65rem;
  color: #fff;
  font: inherit;
  padding: .5rem .75rem;
  min-height: 2.5rem;
}

.queue-panel button, .queue-next, [data-queue-video] { cursor: pointer; }
.queue-panel button:disabled { opacity: .45; cursor: default; }
.queue-panel a { color: #9af5f3; }
.queue-panel .queue-next { display: inline-block; font-weight: 800; }
.queue-section [hidden] { display: none !important; }

.queue-list {
  display: grid;
  gap: .5rem;
  padding-inline-start: 1.65rem;
  margin-block: .75rem;
}

.queue-list li {
  border-block-end: 1px solid #493465;
  padding: .35rem 0 .75rem;
  overflow-wrap: anywhere;
}

.queue-list .queue-item-actions { margin-top: .35rem; }
.queue-item-actions span { color: #d7c9f0; font-size: .87rem; }
.queue-panel p { color: #d7c9f0; }
.queue-link { width: 100%; }
.queue-editor { max-width: min(29rem, 90vw); width: 100%; }
.queue-editor input { display: block; width: 100%; margin-bottom: .75rem; }
.queue-editor::backdrop { background: #080513bc; }

.video-card [data-queue-video], .reax-feed-item [data-queue-video] {
  margin-top: .45rem;
  background: #2e1a50;
  border: 1px solid #a271d9;
  border-radius: .55rem;
  color: #fff;
  font: inherit;
  font-size: .82rem;
  padding: .4rem .7rem;
}

[data-queue-video][aria-pressed="true"] {
  background: #304863 !important;
  border-color: #81e7e1 !important;
}

.queue-section :is(a, button, input, select):focus-visible,
[data-queue-video]:focus-visible {
  outline: 2px solid #8ff6f2;
  outline-offset: 3px;
}

.rs-tools {
  margin-top: -12px;
  gap: .55rem 1rem;
}

.rs-tools a {
  color: #a8f4f5;
  text-underline-offset: .25em;
  min-height: 1.75rem;
  padding: .25rem .4rem;
}

.reax-feed-top label.following-toggle {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: .5rem 0;
}

@media (max-width: 640px) {
  .rs-tools { margin-top: 0; }
}
