/* Soundtrack: favoritas, cola y "continuar donde lo dejaste"
   (archivo: css/pages/soundtrack-queue.css) */

/* ── Botones ♥ y ＋ de cada canción ── */
.stq-actions { display: flex; gap: 5px; flex-shrink: 0; margin-left: auto; }
.stq-actions + .soundtrack-song-roblox-btn { margin-left: 6px; }
.stq-fav, .stq-add {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  padding: 0;
  font-size: .9rem;
  line-height: 1;
  color: #8b93a3;
  background: #1b2029;
  border: 2px solid #000;
  border-radius: 50%;
  cursor: pointer;
  transition: transform .12s, color .12s, background .12s;
}
.stq-fav:hover, .stq-add:hover { transform: scale(1.1); color: #fff; }
.stq-fav.on { color: #fff; background: #e0245e; }
.stq-add:active, .stq-fav:active { transform: scale(.9); }
.stq-fav:focus-visible, .stq-add:focus-visible { outline: 3px solid var(--yellow-bright, #FFD700); outline-offset: 2px; }

/* ♥ en el reproductor, junto a 🔂 */
#stq-btn-fav { width: 32px; height: 32px; border: 2px solid var(--yellow-dark, #C89A00); }
#stq-btn-fav.on { border-color: #000; box-shadow: 0 0 10px rgba(224,36,94,.55); }

/* ── Pestañas Canciones / Cola ── */
#stq-tabs {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  background: #0f131b;
  border-bottom: 2px solid #000;
  flex-shrink: 0;
}
#stq-tabs button {
  flex: 1;
  padding: 6px 10px;
  font-family: 'Fredoka One', cursive;
  font-size: .82rem;
  color: #c9ced8;
  background: #1b2029;
  border: 3px solid #000;
  border-radius: 999px;
  cursor: pointer;
}
#stq-tabs button.active { color: #1a1400; background: var(--yellow-bright, #FFD700); }
#stq-queue-count {
  display: inline-block;
  min-width: 20px;
  margin-left: 4px;
  padding: 0 6px;
  font-family: 'Fredoka', sans-serif;
  font-size: .72rem;
  border-radius: 999px;
  background: rgba(0,0,0,.25);
}
#stq-queue-count.has { background: #e0245e; color: #fff; }
#soundtrack-songlist-panel.stq-queue-mode #soundtrack-songlist,
#soundtrack-songlist-panel.stq-queue-mode #sp-search-wrap { display: none !important; }

/* ── Lista de la cola ── */
#stq-queue { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 10px 12px; }
#stq-queue[hidden] { display: none; }
.stq-queue-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 8px; font-size: .76rem; color: #8b93a3; }
#stq-clear {
  padding: 3px 10px;
  font-family: 'Fredoka One', cursive;
  font-size: .74rem;
  color: #ff9d9d;
  background: #2a0b0b;
  border: 2px solid #000;
  border-radius: 999px;
  cursor: pointer;
}
.stq-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  padding: 8px 10px;
  background: #151a23;
  border: 2px solid #000;
  border-radius: 12px;
  cursor: pointer;
}
.stq-row:hover { background: #1e2430; }
.stq-row-i { width: 18px; text-align: center; font-size: .78rem; color: #8b93a3; }
.stq-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.stq-row-name { font-size: .9rem; color: #f2f2f2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stq-row-src { font-size: .72rem; color: #8b93a3; }
.stq-row-x {
  width: 26px; height: 26px;
  padding: 0;
  color: #c9ced8;
  background: #1b2029;
  border: 2px solid #000;
  border-radius: 50%;
  cursor: pointer;
}
.stq-row-x:hover { color: #fff; background: #3a1010; }
.stq-empty { padding: 30px 14px; text-align: center; font-size: .86rem; line-height: 1.6; color: #8b93a3; }
.stq-empty span { display: block; font-size: 2rem; margin-bottom: 6px; }
.stq-empty b { color: #fff; }

/* ── Álbum Favoritas ── */
.stq-fav-cover {
  display: grid !important;
  place-items: center;
  font-size: 1.6rem;
  background: linear-gradient(180deg, #ff4d7e, #c2185b) !important;
}

/* ── Continuar donde lo dejaste ── */
#stq-resume {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #1e2430, #151a23);
  border: 4px solid #000;
  border-radius: 16px;
  box-shadow: 0 6px 0 #000;
}
#stq-resume[hidden] { display: none; }
#stq-resume-cover {
  width: 54px; height: 54px;
  object-fit: cover;
  background: #222;
  border: 3px solid #000;
  border-radius: 10px;
  cursor: pointer;
  transform: rotate(-3deg);
}
#stq-resume-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#stq-resume-label { font-family: 'Fredoka One', cursive; font-size: .72rem; color: var(--yellow-bright, #FFD700); }
#stq-resume-name { font-family: 'Fredoka One', cursive; font-size: 1.05rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#stq-resume-album { font-size: .78rem; color: #8b93a3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#stq-resume-go {
  flex-shrink: 0;
  padding: 9px 16px;
  font-family: 'Fredoka One', cursive;
  font-size: .9rem;
  color: #1a1400;
  background: var(--yellow-bright, #FFD700);
  border: 3px solid #000;
  border-radius: 12px;
  box-shadow: 0 4px 0 #000;
  cursor: pointer;
}
#stq-resume-go:active { transform: translateY(3px); box-shadow: 0 1px 0 #000; }
#stq-resume-go:focus-visible, #stq-tabs button:focus-visible, #stq-clear:focus-visible, .stq-row-x:focus-visible {
  outline: 3px solid var(--yellow-bright, #FFD700); outline-offset: 2px;
}

@media (max-width: 640px) {
  #stq-resume { flex-wrap: wrap; }
  #stq-resume-go { width: 100%; }
  .stq-fav, .stq-add { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .stq-fav, .stq-add { transition: none; }
}
