/* ========================================
   SOUND CARDS - TARJETAS DE SONIDO
   ======================================== */

.sound-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-card);
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow 0.1s;
    cursor: grab;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
}

.sound-card:active {
    cursor: grabbing;
}

.sound-card.dragging {
    opacity: 0.5;
}

/* Estados de reproducción */
.sound-card.playing-toggle {
    border: 2.5px solid var(--playing-toggle);
    box-shadow: 0 0 0 1px rgba(76, 175, 80, 0.9),
                0 0 0 3px rgba(76, 175, 80, 0.5),
                0 0 10px 4px rgba(76, 175, 80, 0.7),
                0 0 15px 7px rgba(76, 175, 80, 0.3);
    transition: all var(--transition-fast);
}

.sound-card.playing-normal {
    border: 2.5px solid var(--playing-normal);
    box-shadow: 0 0 0 1px rgba(255, 234, 0, 0.9),
                0 0 0 3px rgba(255, 234, 0, 0.5),
                0 0 10px 4px rgba(255, 234, 0, 0.7),
                0 0 15px 7px rgba(255, 234, 0, 0.3);
    transition: all var(--transition-fast);
}

/* Imagen de la tarjeta */
.card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #11131f;
    display: block;
    pointer-events: none;
}

/* Información de la tarjeta */
.card-info {
    padding: 0.4rem;
    background: rgba(0,0,0,0.5);
    text-align: center;
}

.card-title {
    font-weight: 600;
    font-size: 0.7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    word-break: break-word;
    white-space: normal;
    line-height: 1.2;
    transition: background 0.1s;
}

.card-title.editing {
    background: #2a2f4e;
    padding: 0.15rem;
    border-radius: 0.2rem;
    outline: 2px solid var(--accent);
    cursor: text;
}

/* Badge de hotkey */
.hotkey-badge {
    font-size: 0.55rem;
    background: #2a2f44;
    display: inline-block;
    padding: 0.05rem 0.3rem;
    border-radius: 0.8rem;
    margin-top: 3px;
    color: var(--text-muted);
    font-weight: 500;
}