/* Estilos Generales y Layout */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f9;
    color: #333;
}

.container {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.player-area, .control-area {
    padding: 20px;
    flex: 1; 
}

/* Área del Reproductor */
.player-area {
    background-color: #2c3e50; 
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}



/* Área de Control */
.control-area {
    background-color: #ecf0f1;
    border-left: 1px solid #bdc3c7;
}

/* Botón de Carga */
.upload-button {
    display: block;
    padding: 10px 15px;
    background-color: #3498db;
    color: white;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background-color 0.3s;
}

.upload-button:hover {
    background-color: #2980b9;
}

/* Estilos de la Lista de Reproducción */
#playlist-container {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    min-height: 100px; 
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
}

.playlist-item {
    padding: 10px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    cursor: grab; 
    transition: background-color 0.2s, opacity 0.2s, border-left 0.2s;
}

.playlist-item:last-child {
    border-bottom: none;
}

.playlist-item:hover {
    background-color: #f0f0f0;
}

/* Estado: Reproduciendo actualmente */
.playlist-item.is-playing {
    background-color: #e8f5ff; /* Azul claro */
    border-left: 5px solid #3498db;
    font-weight: bold;
}

/* Estado: Subiendo (Pendiente) */
.playlist-item.is-pending {
    background-color: #fffacd; /* Amarillo claro */
    opacity: 0.8;
    cursor: not-allowed;
}

/* Estado de Arrastre */
.dragging {
    opacity: 0.5;
    border: 2px dashed #3498db;
    background-color: #e8f5ff;
}

.instruction {
    font-size: 0.9em;
    color: #7f8c8d;
    text-align: center;
}

#empty-message {
    text-align: center;
    color: #95a5a6;
    padding: 20px;
}

/* Botón de Eliminar (X) */
.delete-btn {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 3px 7px;
    cursor: pointer;
    font-weight: bold;
    margin-left: 15px;
    line-height: 1; /* Para centrar la 'X' */
    transition: background-color 0.2s;
}

.delete-btn:hover {
    background: #c0392b;
}

/* Contenedor interno para el botón y el nombre */
.playlist-item > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}