/**
 * @file css/midias_post.css
 * @versao_deploy 2026-11-06-h-o-feed-ganha-o-carrossel
 * 🖼️ A16 · B1 (F5, 6/11): a lista de mídias do compositor (js/midias_post.js), a mesma no feed e na Comunidade.
 *    Miniaturas numa faixa que rola de lado; cada uma mostra a ordem, o estado e as ações.
 */
.mp-aviso {
  margin: 8px 0 0;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  font-size: 0.8rem;
}

.mp-lista {
  list-style: none;
  margin: 8px 0 0;
  padding: 0 0 4px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.mp-item {
  position: relative;
  flex: 0 0 96px;
  height: 106px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mp-previa {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-item--convertendo .mp-previa,
.mp-item--na_fila .mp-previa,
.mp-item--enviando .mp-previa {
  opacity: 0.55;
}

.mp-item--falhou {
  border-color: #ef5350;
}

.mp-ordem {
  position: absolute;
  top: 4px;
  left: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.7rem;
  line-height: 18px;
  text-align: center;
}

.mp-estado,
.mp-erro {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 30px;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.65rem;
  line-height: 1.3;
  text-align: center;
}

.mp-erro {
  bottom: 48px;
  background: rgba(239, 83, 80, 0.9);
  max-height: 3.9em;
  overflow: hidden;
}

.mp-acoes {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  padding: 2px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.mp-btn {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.mp-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.mp-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 1px;
}

.mp-btn--tirar {
  background: rgba(239, 83, 80, 0.85);
}
