body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  padding: 10px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

audio {
  display: none;
}

.audio-player-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  font-family: Arial, sans-serif;
}

.audio-block {
  display: flex;
  justify-content: space-between;
  border: 1px solid #ccc;
  padding: 8px;
  border-radius: 8px;
  background-color: #f9f9f9;
  margin-bottom: 12px;
}

.audio-layout {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.audio-left, .left-col {
  flex: 1;
  padding-right: 10px;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.audio-right, .right-col {
  width: 200px;
  display: grid;
  grid-template-columns: 1fr 70px;
  grid-template-rows: repeat(2, auto);
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.audio-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.audio-title input {
  font-weight: bold;
  font-size: 1em;
  border: none;
  border-bottom: 1px dashed #aaa;
  background: transparent;
  outline: none;
  width: 100%;
  font-family: Arial, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filename {
  font-family: Arial, sans-serif;
  font-size: 0.85em;
  color: #444;
  margin: 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex-shrink: 1;
}

.button-group {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.button-group button {
  padding: 4px 6px;
  font-size: 14px;
  cursor: pointer;
}

.controls, .audio-controls {
  display: flex;
  gap: 0px;
  margin-top: 1px;
  flex-wrap: wrap;
}

.controls button {
  padding: 3px 0px;
  font-size: 1.3rem;
  cursor: pointer;
}

.sliders {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sliders input[type="range"],
input[type="range"],
.volume,
.progress {
  width: 100%;
}

.info-text {
  font-size: 0.85em;
  text-align: right;
  white-space: nowrap;
  font-family: Arial, sans-serif;
}


/* ====== FONDOS PARA COLUMNA IZQUIERDA (.left-col) ====== */

/* Audios 1-10 */
.left-col.playing {
  background-color: #CCFFCC;
  color: #000000;
}

.left-col.paused {
  background-color: #FFEDB3;
  color: #000000;
}

.left-col.stopped {
  background-color: #FFCCCC;
  color: #000000;
}

/* Audio 0 (fondo especial más oscuro y fuente clara) */
/* to be determined, better color for audio 0
.audio-block.background .left-col.playing {
  background-color: #3A7543;
  color: #FFFFFF;
} 

.audio-block.background .left-col.paused {
  background-color: #997A1A;
  color: #FFFFFF;
} 

.audio-block.background .left-col.stopped {
  background-color: #B04242;
  color: #FFFFFF;
} 
*/

/* ====== FONDOS PARA COLUMNA DERECHA (.right-col) ====== */

.right-col.empty {
  background-color: #F9F9F9;
  color: #000000;
}

/* Audios 1-10 con archivo */
.right-col.loaded {
  background-color: #E3EEF8;
  color: #000000;
}

/* Audio 0 con archivo */
.audio-block.background .right-col.loaded {
  background-color: #26405D;
  color: #F9F9F9;
}

/* Fondo general neutro para todos los .audio-block */
.audio-block {
  background-color: #F1F1F1;
}


.global-controls {
    display: flex;
    gap: 3px;
    align-items: center;
    background-color: #eaeaea;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    font-family: sans-serif;
}

.global-controls button {
    padding: 4px 0px;
    font-size: 14px;
    cursor: pointer;
}



.emoji-btn {
    background-color: #f0f0f0;
    border: 0px solid #777;             /* Aqui para agregar margen e los botones globales */
    border-radius: 7px;
    margin: 0rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}



.emoji {
    font-size: 1.7rem;
    line-height: 1;
    display: inline-block;
}

.block-btn {
    background-color: #f4f4f4;
    border: 0px solid #777;             /* Aqui para agregar margen e los botones */
    border-radius: 3px;
    margin: 0.1rem;
    padding: 0.2rem 0rem;
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
