/* Estilos exclusivos para pantalla dividida (pantalladividida.ejs) */
.split-soundboard-grid {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  z-index: 10 !important;
  opacity: 1 !important;
  position: relative !important;
}

.split-sound-card {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: 2px 1px 11px 0px #ffffff8c;
  z-index: 20 !important;
  opacity: 1 !important;
  position: relative !important;
  pointer-events: auto !important;
}

/* Heredar estilos visuales de .sound-card para pantalla dividida */
.split-sound-card {
  /* Copia de los estilos clave de .sound-card */
  overflow: hidden;
}
.split-sound-card .card-header {
  padding-top: 4px;
  padding-bottom: 4px;
  min-height: 44px;
  font-size: 1.05em;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: normal;
}
.split-sound-card .card-body span {
  font-size: 3.2em !important;
  line-height: 1.1;
}
.split-sound-card .soundboard-volume {
  width: 90% !important;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  display: block;
  height: 18px !important;
  min-height: 12px;
}
.split-sound-card .progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin-bottom: 0;
  height: 8px !important;
  min-height: 5px;
  z-index: 2;
}
.split-sound-card .progress-bar {
  background-color: #8f0707 !important;
}
.split-sound-card .card-footer {
  padding-top: 2px;
  padding-bottom: 2px;
  min-height: 28px;
  font-size: 0.9em;
  line-height: 1.1;
  margin-bottom: 3px;
}
.split-sound-card.playing {
  border: 5.5px solid #198754;
  animation: playingGlow 0.8s infinite alternate, playingScale 0.5s infinite ease-in-out;
  transition: border-color 1.2s, box-shadow 0.2s, transform 0.2s, background 0.2s;
  background: #04bb65 !important;
  color: #fff;
}
.split-sound-card.card-custom-device {
  border: 5px solid orange !important;
}

/* Estilos de edición para pantalla dividida */
.split-sound-card.edit-draggable {
  outline: 3px dashed #ffc107;
  cursor: grab !important;
  opacity: 0.85;
  transition: all 0.2s ease;
}

.split-sound-card.edit-selected {
  box-shadow: 0 0 0 3px #ffc107;
  transform: rotate(3deg);
  z-index: 1000;
}

/* Indicadores de drop para pantalla dividida */
.split-sound-card.drop-target-left {
  border-left: 24px solid #0dff00 !important;
  box-shadow: -8px 0 15px rgba(40, 167, 69, 0.5);
  transform: translateX(8px);
  transition: all 0.2s ease;
}

.split-sound-card.drop-target-right {
  border-right: 24px solid #0dff00 !important;
  box-shadow: 8px 0 15px rgba(40, 167, 69, 0.5);
  transform: translateX(-8px);
  transition: all 0.2s ease;
}
